Skip to content

Commit e78ee51

Browse files
authored
Merge pull request #14 from SolarRepublic/push-notifications
Push notifications
2 parents 4cd963c + 055805c commit e78ee51

File tree

10 files changed

+1245
-88
lines changed

10 files changed

+1245
-88
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"**/node_modules": true
1515
},
1616
"editor.insertSpaces": false,
17-
"editor.tabSize": 3,
17+
"editor.tabSize": 4,
1818
"typescript.tsdk": "node_modules/typescript/lib",
1919
"typescript.preferences.quoteStyle": "single",
2020
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,

Cargo.lock

Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "snip20-reference-impl"
3-
version = "1.0.0"
3+
version = "2.0.0"
44
authors = ["@reuvenpo","@toml01","@assafmo","@liorbond","Itzik <[email protected]>","@darwinzer0","@supdoggie"]
55
edition = "2021"
66
exclude = [
@@ -38,9 +38,9 @@ cosmwasm-std = { package = "secret-cosmwasm-std", version = "1.1.11" }
3838
cosmwasm-storage = { package = "secret-cosmwasm-storage", version = "1.1.11" }
3939
rand = { version = "0.8.5", default-features = false }
4040
# secret-toolkit = { version = "0.10.0", default-features = false, features = ["permit", "storage", "viewing-key"] }
41-
secret-toolkit = { git = "https://github.com/SolarRepublic/secret-toolkit.git", default-features = false, features = ["permit", "storage", "viewing-key", "notification"] }
41+
secret-toolkit = { git = "https://github.com/SolarRepublic/secret-toolkit.git", default-features = false, features = ["permit", "storage", "viewing-key", "notification"], rev = "8aed92d589dc119f69d20f8538d5a6eea8003d95" }
4242
# secret-toolkit-crypto = { version = "0.10.0", default-features = false, features = ["hash"] }
43-
secret-toolkit-crypto = { git = "https://github.com/SolarRepublic/secret-toolkit.git", default-features = false, features = ["hash"] }
43+
secret-toolkit-crypto = { git = "https://github.com/SolarRepublic/secret-toolkit.git", default-features = false, features = ["hash"], rev = "8aed92d589dc119f69d20f8538d5a6eea8003d95" }
4444
static_assertions = "1.1.0"
4545

4646
schemars = "0.8.12"
@@ -49,6 +49,7 @@ serde-big-array = "0.5.1"
4949
base64 = "0.21.0"
5050
constant_time_eq = "0.3.0"
5151
primitive-types = { version = "0.12.2", default-features = false }
52+
minicbor-ser = "0.2.0"
5253

5354
[dev-dependencies]
5455
cosmwasm-schema = { version = "1.1.8" }

src/btbe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ use constant_time_eq::constant_time_eq;
66
use cosmwasm_std::{CanonicalAddr, StdError, StdResult, Storage};
77
use primitive_types::U256;
88
use secret_toolkit::{
9-
notification::hkdf_sha_256,
109
serialization::{Bincode2, Serde},
1110
storage::Item,
1211
};
12+
use secret_toolkit_crypto::hkdf_sha_256;
1313
use serde::{Deserialize, Serialize};
1414
use serde_big_array::BigArray;
1515

@@ -511,7 +511,7 @@ pub fn stored_tx_count(storage: &dyn Storage, entry: &Option<StoredEntry>) -> St
511511
}
512512

513513
// merges a dwb entry into the current node's bucket
514-
// `spent_amount` is any required subtraction due to being sender of tx
514+
// `amount_spent` is any required subtraction due to being sender of tx
515515
pub fn merge_dwb_entry(
516516
storage: &mut dyn Storage,
517517
dwb_entry: &DelayedWriteBufferEntry,

0 commit comments

Comments
 (0)