Skip to content

Commit 1c87423

Browse files
committed
small improvements, comments & doc comments
- ganache-cil - mvoe old addresses to the end of ganche cmd
1 parent 9275b8d commit 1c87423

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

primitives/src/address.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ impl TryFrom<&str> for Address {
110110
///
111111
/// # Example
112112
/// ```
113+
/// use once_cell::sync::Lazy;
114+
/// use crate::Address;
115+
///
113116
/// static ADDRESS_0: Lazy<Address> = Lazy::new(|| b"0x80690751969B234697e9059e04ed72195c3507fa".try_into().unwrap());
114117
///
115118
/// println!("Address: {}", ADDRESS_0);

primitives/src/test_util.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
use once_cell::sync::Lazy;
32

43
use crate::Address;

scripts/ethereum/ganache-cli.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ node /app/ganache-core.docker.cli.js --gasLimit 0xfffffffffffff \
3737
--db="./snapshot" \
3838
--deterministic \
3939
--mnemonic="diary west sketch curious expose decade symptom height minor layer carry man" \
40-
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,9000000000000000000000000000" \
41-
--account="0xd66ecc35fe42ae2063888bfd11c4573db08bdbd5c2b9b835deef05beb43b407f,9000000000000000000000000000" \
42-
--account="0x1d00a65debb6143cebc3b48b11db2ddfa81411c1f7c443f706d4f2bd8145ee4a,9000000000000000000000000000" \
43-
--account="0x30e87297872f658845b755fe9e5ff319605a2513177a871110e25aebfe115f0f,9000000000000000000000000000" \
44-
--account="0xe001626993056febeae724da4cb5c1028a55ac40ce5df4b0c7441d51a843e3fc,9000000000000000000000000000" \
45-
--account="0xcb5158eccfe180f35d4c05483cfaf3f769210ade3fd1f281737d10d491b5be40,9000000000000000000000000000" \
46-
\
4740
--account="0xf224ebee7563c68de46b3f57db880e7709c102f56ecedeaa4bccd15dea702815,9000000000000000000000000000" \
4841
--account="0x8d2fc41b784fd976ae59d88583d1cf9fa04d6b6acdfca9b56966afcc798d0917,9000000000000000000000000000" \
4942
--account="0x7a6ceb75f17f55158224e674e57cacef5ea848dcaa95b7fb9b0b35a7f2ccaa51,9000000000000000000000000000" \
@@ -54,4 +47,10 @@ node /app/ganache-core.docker.cli.js --gasLimit 0xfffffffffffff \
5447
--account="0x0d137045e22a98ee462f4d86939dd8ff3c8570e7fb72e4fea5c9e7ef09ab7276,9000000000000000000000000000" \
5548
--account="0xd2d8a41c67627e43c0f46c2c73a4631b11e291bb0917da51b231da780d3fd074,9000000000000000000000000000" \
5649
--account="0xf1571482718eefe760ad89269202a33409299af1b9057aa40699a11fb358572b,9000000000000000000000000000" \
57-
50+
\
51+
--account="0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,9000000000000000000000000000" \
52+
--account="0xd66ecc35fe42ae2063888bfd11c4573db08bdbd5c2b9b835deef05beb43b407f,9000000000000000000000000000" \
53+
--account="0x1d00a65debb6143cebc3b48b11db2ddfa81411c1f7c443f706d4f2bd8145ee4a,9000000000000000000000000000" \
54+
--account="0x30e87297872f658845b755fe9e5ff319605a2513177a871110e25aebfe115f0f,9000000000000000000000000000" \
55+
--account="0xe001626993056febeae724da4cb5c1028a55ac40ce5df4b0c7441d51a843e3fc,9000000000000000000000000000" \
56+
--account="0xcb5158eccfe180f35d4c05483cfaf3f769210ade3fd1f281737d10d491b5be40,9000000000000000000000000000" \

sentry/Cargo.toml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,26 @@ hex = "0.4"
2727
clap = "^2.33"
2828
# Server
2929
tokio = { version = "1", features = ["macros", "time", "rt-multi-thread"] }
30-
hyper = { version = "0.14", features = ["stream", "runtime", "http1", "server"] }
30+
hyper = { version = "0.14", features = [
31+
"stream",
32+
"runtime",
33+
"http1",
34+
"server",
35+
] }
3136
regex = "1"
3237
# Database
3338
redis = { version = "0.20", features = ["aio", "tokio-comp"] }
3439
deadpool = "0.8.0"
3540
deadpool-postgres = "0.9.0"
36-
tokio-postgres = { version = "0.7.0", features = ["with-chrono-0_4", "with-serde_json-1"] }
37-
postgres-types = { version = "0.2.1", features = ["derive", "with-chrono-0_4", "with-serde_json-1"] }
41+
tokio-postgres = { version = "0.7.0", features = [
42+
"with-chrono-0_4",
43+
"with-serde_json-1",
44+
] }
45+
postgres-types = { version = "0.2.1", features = [
46+
"derive",
47+
"with-chrono-0_4",
48+
"with-serde_json-1",
49+
] }
3850

3951
# Migrations
4052
migrant_lib = { version = "^0.32", features = ["d-postgres"] }

sentry/src/spender.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub mod fee {
3636

3737
// normal payout - no flooring
3838
{
39+
// 300 * 100 / 1000 = 30
3940
let payout = (*PUBLISHER, UnifiedNum::from(300));
4041

4142
let validator_fee =

0 commit comments

Comments
 (0)