mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-05-17 13:39:39 +00:00
fix: some wallet default config fixes after rebase
This commit is contained in:
parent
7b50c68550
commit
3913446cd2
@ -19,7 +19,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Private": {
|
"Private": {
|
||||||
"account_id": "HWkW5qd4XK3me6sCAb4bfPj462k33DjtKtEcYpuzNwB",
|
"account_id": "9DGDXnrNo4QhUUb2F8WDuDrPESja3eYDkZG5HkzvAvMC",
|
||||||
"account": {
|
"account": {
|
||||||
"program_owner": [
|
"program_owner": [
|
||||||
0,
|
0,
|
||||||
@ -37,184 +37,184 @@
|
|||||||
},
|
},
|
||||||
"key_chain": {
|
"key_chain": {
|
||||||
"secret_spending_key": [
|
"secret_spending_key": [
|
||||||
14,
|
75,
|
||||||
202,
|
231,
|
||||||
241,
|
|
||||||
109,
|
|
||||||
32,
|
|
||||||
181,
|
|
||||||
152,
|
|
||||||
140,
|
|
||||||
76,
|
|
||||||
153,
|
|
||||||
108,
|
|
||||||
57,
|
|
||||||
77,
|
|
||||||
192,
|
|
||||||
181,
|
|
||||||
97,
|
|
||||||
108,
|
|
||||||
144,
|
144,
|
||||||
122,
|
165,
|
||||||
45,
|
|
||||||
219,
|
|
||||||
5,
|
5,
|
||||||
203,
|
36,
|
||||||
193,
|
183,
|
||||||
|
237,
|
||||||
|
190,
|
||||||
|
227,
|
||||||
|
238,
|
||||||
|
13,
|
||||||
|
132,
|
||||||
|
39,
|
||||||
|
114,
|
||||||
|
228,
|
||||||
|
172,
|
||||||
82,
|
82,
|
||||||
123,
|
119,
|
||||||
83,
|
164,
|
||||||
34,
|
233,
|
||||||
250,
|
132,
|
||||||
214,
|
130,
|
||||||
137,
|
224,
|
||||||
63
|
201,
|
||||||
|
90,
|
||||||
|
200,
|
||||||
|
156,
|
||||||
|
108,
|
||||||
|
199,
|
||||||
|
56,
|
||||||
|
22
|
||||||
],
|
],
|
||||||
"private_key_holder": {
|
"private_key_holder": {
|
||||||
"nullifier_secret_key": [
|
"nullifier_secret_key": [
|
||||||
174,
|
212,
|
||||||
56,
|
34,
|
||||||
101,
|
166,
|
||||||
30,
|
184,
|
||||||
248,
|
182,
|
||||||
249,
|
77,
|
||||||
100,
|
127,
|
||||||
0,
|
176,
|
||||||
122,
|
147,
|
||||||
199,
|
68,
|
||||||
209,
|
148,
|
||||||
246,
|
190,
|
||||||
58,
|
41,
|
||||||
163,
|
244,
|
||||||
223,
|
8,
|
||||||
146,
|
202,
|
||||||
59,
|
51,
|
||||||
143,
|
10,
|
||||||
78,
|
44,
|
||||||
95,
|
43,
|
||||||
41,
|
93,
|
||||||
186,
|
41,
|
||||||
106,
|
229,
|
||||||
187,
|
130,
|
||||||
53,
|
54,
|
||||||
63,
|
96,
|
||||||
75,
|
198,
|
||||||
244,
|
242,
|
||||||
233,
|
10,
|
||||||
185,
|
227,
|
||||||
110,
|
119,
|
||||||
199
|
1
|
||||||
],
|
],
|
||||||
"viewing_secret_key": [
|
"viewing_secret_key": [
|
||||||
251,
|
205,
|
||||||
85,
|
10,
|
||||||
223,
|
5,
|
||||||
73,
|
19,
|
||||||
142,
|
148,
|
||||||
127,
|
98,
|
||||||
134,
|
49,
|
||||||
132,
|
19,
|
||||||
185,
|
251,
|
||||||
210,
|
186,
|
||||||
100,
|
247,
|
||||||
103,
|
216,
|
||||||
198,
|
75,
|
||||||
108,
|
53,
|
||||||
229,
|
184,
|
||||||
80,
|
36,
|
||||||
176,
|
84,
|
||||||
211,
|
87,
|
||||||
249,
|
236,
|
||||||
114,
|
205,
|
||||||
110,
|
105,
|
||||||
7,
|
217,
|
||||||
225,
|
213,
|
||||||
17,
|
21,
|
||||||
7,
|
61,
|
||||||
69,
|
183,
|
||||||
204,
|
133,
|
||||||
32,
|
174,
|
||||||
47,
|
121,
|
||||||
242,
|
115,
|
||||||
103,
|
51,
|
||||||
247
|
203
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"nullifier_public_key": [
|
"nullifier_public_key": [
|
||||||
139,
|
122,
|
||||||
19,
|
213,
|
||||||
158,
|
|
||||||
11,
|
|
||||||
155,
|
|
||||||
231,
|
|
||||||
85,
|
|
||||||
206,
|
|
||||||
132,
|
|
||||||
228,
|
|
||||||
220,
|
|
||||||
114,
|
|
||||||
145,
|
|
||||||
89,
|
|
||||||
113,
|
113,
|
||||||
156,
|
8,
|
||||||
238,
|
118,
|
||||||
142,
|
179,
|
||||||
242,
|
235,
|
||||||
74,
|
94,
|
||||||
182,
|
5,
|
||||||
91,
|
219,
|
||||||
43,
|
131,
|
||||||
|
106,
|
||||||
|
246,
|
||||||
|
253,
|
||||||
|
14,
|
||||||
|
204,
|
||||||
|
65,
|
||||||
|
93,
|
||||||
|
0,
|
||||||
|
198,
|
||||||
100,
|
100,
|
||||||
|
108,
|
||||||
|
57,
|
||||||
|
48,
|
||||||
6,
|
6,
|
||||||
190,
|
65,
|
||||||
|
183,
|
||||||
31,
|
31,
|
||||||
15,
|
136,
|
||||||
31,
|
86,
|
||||||
88,
|
82,
|
||||||
96,
|
165
|
||||||
204
|
|
||||||
],
|
],
|
||||||
"viewing_public_key": [
|
"viewing_public_key": [
|
||||||
3,
|
3,
|
||||||
136,
|
165,
|
||||||
153,
|
235,
|
||||||
50,
|
|
||||||
191,
|
|
||||||
184,
|
|
||||||
135,
|
|
||||||
36,
|
|
||||||
29,
|
|
||||||
107,
|
|
||||||
57,
|
|
||||||
9,
|
|
||||||
218,
|
|
||||||
135,
|
|
||||||
249,
|
|
||||||
213,
|
|
||||||
118,
|
|
||||||
215,
|
215,
|
||||||
118,
|
|
||||||
173,
|
|
||||||
30,
|
|
||||||
137,
|
|
||||||
116,
|
|
||||||
77,
|
77,
|
||||||
17,
|
4,
|
||||||
86,
|
|
||||||
62,
|
|
||||||
154,
|
|
||||||
31,
|
|
||||||
173,
|
|
||||||
19,
|
19,
|
||||||
|
45,
|
||||||
|
0,
|
||||||
|
27,
|
||||||
|
18,
|
||||||
|
26,
|
||||||
|
11,
|
||||||
|
226,
|
||||||
|
126,
|
||||||
|
174,
|
||||||
|
144,
|
||||||
167,
|
167,
|
||||||
211
|
160,
|
||||||
|
199,
|
||||||
|
14,
|
||||||
|
23,
|
||||||
|
49,
|
||||||
|
163,
|
||||||
|
49,
|
||||||
|
138,
|
||||||
|
129,
|
||||||
|
229,
|
||||||
|
79,
|
||||||
|
9,
|
||||||
|
15,
|
||||||
|
234,
|
||||||
|
30
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Private": {
|
"Private": {
|
||||||
"account_id": "HUpbRQ1vEcZv5y6TDYv9tpt1VA64ji2v4RDLJfK2rpZn",
|
"account_id": "A6AT9UvsgitUi8w4BH43n6DyX1bK37DtSCfjEWXQQUrQ",
|
||||||
"account": {
|
"account": {
|
||||||
"program_owner": [
|
"program_owner": [
|
||||||
0,
|
0,
|
||||||
@ -232,181 +232,180 @@
|
|||||||
},
|
},
|
||||||
"key_chain": {
|
"key_chain": {
|
||||||
"secret_spending_key": [
|
"secret_spending_key": [
|
||||||
32,
|
107,
|
||||||
|
49,
|
||||||
|
136,
|
||||||
|
174,
|
||||||
162,
|
162,
|
||||||
244,
|
107,
|
||||||
221,
|
|
||||||
2,
|
|
||||||
133,
|
|
||||||
168,
|
|
||||||
250,
|
250,
|
||||||
240,
|
105,
|
||||||
52,
|
252,
|
||||||
92,
|
146,
|
||||||
187,
|
166,
|
||||||
157,
|
197,
|
||||||
116,
|
163,
|
||||||
249,
|
132,
|
||||||
203,
|
|
||||||
143,
|
|
||||||
194,
|
|
||||||
214,
|
|
||||||
112,
|
|
||||||
115,
|
|
||||||
142,
|
|
||||||
153,
|
153,
|
||||||
78,
|
222,
|
||||||
241,
|
68,
|
||||||
173,
|
17,
|
||||||
103,
|
87,
|
||||||
242,
|
101,
|
||||||
192,
|
22,
|
||||||
196,
|
113,
|
||||||
29,
|
88,
|
||||||
133
|
97,
|
||||||
|
180,
|
||||||
|
203,
|
||||||
|
139,
|
||||||
|
18,
|
||||||
|
28,
|
||||||
|
62,
|
||||||
|
51,
|
||||||
|
149
|
||||||
],
|
],
|
||||||
"private_key_holder": {
|
"private_key_holder": {
|
||||||
"nullifier_secret_key": [
|
"nullifier_secret_key": [
|
||||||
188,
|
219,
|
||||||
235,
|
5,
|
||||||
121,
|
233,
|
||||||
54,
|
185,
|
||||||
131,
|
144,
|
||||||
206,
|
150,
|
||||||
7,
|
100,
|
||||||
215,
|
58,
|
||||||
94,
|
97,
|
||||||
231,
|
5,
|
||||||
102,
|
57,
|
||||||
22,
|
163,
|
||||||
12,
|
110,
|
||||||
27,
|
46,
|
||||||
253,
|
241,
|
||||||
161,
|
216,
|
||||||
248,
|
155,
|
||||||
206,
|
217,
|
||||||
41,
|
100,
|
||||||
160,
|
51,
|
||||||
206,
|
184,
|
||||||
149,
|
21,
|
||||||
5,
|
225,
|
||||||
217,
|
148,
|
||||||
127,
|
198,
|
||||||
235,
|
9,
|
||||||
154,
|
121,
|
||||||
230,
|
239,
|
||||||
198,
|
232,
|
||||||
232,
|
98,
|
||||||
102,
|
22,
|
||||||
31
|
218
|
||||||
],
|
],
|
||||||
"viewing_secret_key": [
|
"viewing_secret_key": [
|
||||||
89,
|
35,
|
||||||
116,
|
105,
|
||||||
140,
|
230,
|
||||||
122,
|
121,
|
||||||
211,
|
218,
|
||||||
179,
|
177,
|
||||||
190,
|
21,
|
||||||
229,
|
55,
|
||||||
18,
|
83,
|
||||||
94,
|
80,
|
||||||
56,
|
95,
|
||||||
235,
|
235,
|
||||||
48,
|
161,
|
||||||
99,
|
83,
|
||||||
104,
|
11,
|
||||||
228,
|
221,
|
||||||
111,
|
67,
|
||||||
72,
|
83,
|
||||||
231,
|
1,
|
||||||
18,
|
218,
|
||||||
247,
|
49,
|
||||||
97,
|
242,
|
||||||
110,
|
53,
|
||||||
60,
|
29,
|
||||||
238,
|
26,
|
||||||
138,
|
171,
|
||||||
0,
|
170,
|
||||||
25,
|
144,
|
||||||
92,
|
49,
|
||||||
44,
|
233,
|
||||||
30,
|
159,
|
||||||
145
|
48
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"nullifier_public_key": [
|
"nullifier_public_key": [
|
||||||
173,
|
|
||||||
134,
|
|
||||||
33,
|
33,
|
||||||
223,
|
68,
|
||||||
54,
|
229,
|
||||||
226,
|
154,
|
||||||
10,
|
12,
|
||||||
71,
|
235,
|
||||||
215,
|
210,
|
||||||
254,
|
229,
|
||||||
143,
|
236,
|
||||||
172,
|
144,
|
||||||
24,
|
126,
|
||||||
244,
|
122,
|
||||||
|
58,
|
||||||
|
107,
|
||||||
|
36,
|
||||||
|
58,
|
||||||
243,
|
243,
|
||||||
208,
|
128,
|
||||||
65,
|
174,
|
||||||
112,
|
197,
|
||||||
118,
|
141,
|
||||||
70,
|
137,
|
||||||
217,
|
162,
|
||||||
240,
|
190,
|
||||||
69,
|
155,
|
||||||
100,
|
234,
|
||||||
129,
|
94,
|
||||||
3,
|
156,
|
||||||
121,
|
218,
|
||||||
25,
|
34,
|
||||||
213,
|
13,
|
||||||
132,
|
221
|
||||||
42,
|
|
||||||
45
|
|
||||||
],
|
],
|
||||||
"viewing_public_key": [
|
"viewing_public_key": [
|
||||||
2,
|
3,
|
||||||
43,
|
122,
|
||||||
42,
|
7,
|
||||||
253,
|
137,
|
||||||
112,
|
250,
|
||||||
83,
|
84,
|
||||||
195,
|
10,
|
||||||
164,
|
85,
|
||||||
26,
|
3,
|
||||||
141,
|
15,
|
||||||
92,
|
|
||||||
28,
|
|
||||||
224,
|
|
||||||
120,
|
|
||||||
155,
|
|
||||||
119,
|
|
||||||
225,
|
|
||||||
1,
|
|
||||||
45,
|
|
||||||
42,
|
|
||||||
245,
|
|
||||||
172,
|
|
||||||
134,
|
134,
|
||||||
136,
|
250,
|
||||||
52,
|
205,
|
||||||
183,
|
40,
|
||||||
170,
|
126,
|
||||||
96,
|
211,
|
||||||
115,
|
14,
|
||||||
212,
|
|
||||||
114,
|
|
||||||
120,
|
120,
|
||||||
37
|
15,
|
||||||
|
55,
|
||||||
|
56,
|
||||||
|
214,
|
||||||
|
72,
|
||||||
|
243,
|
||||||
|
83,
|
||||||
|
17,
|
||||||
|
124,
|
||||||
|
242,
|
||||||
|
251,
|
||||||
|
184,
|
||||||
|
174,
|
||||||
|
150,
|
||||||
|
83
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"basic_auth": null
|
|
||||||
}
|
}
|
||||||
@ -2,7 +2,6 @@ use std::{
|
|||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
io::{BufReader, Write as _},
|
io::{BufReader, Write as _},
|
||||||
path::Path,
|
path::Path,
|
||||||
str::FromStr as _,
|
|
||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -207,6 +206,28 @@ pub struct WalletConfig {
|
|||||||
|
|
||||||
impl Default for WalletConfig {
|
impl Default for WalletConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
|
let pub_sign_key1 = nssa::PrivateKey::try_new([
|
||||||
|
127, 39, 48, 152, 242, 91, 113, 230, 192, 5, 169, 81, 159, 38, 120, 218, 141, 28, 127,
|
||||||
|
1, 246, 162, 119, 120, 226, 217, 148, 138, 189, 249, 1, 251,
|
||||||
|
])
|
||||||
|
.unwrap();
|
||||||
|
let public_key1 = nssa::PublicKey::new_from_private_key(&pub_sign_key1);
|
||||||
|
let public_account_id1 = nssa::AccountId::from(&public_key1);
|
||||||
|
|
||||||
|
let pub_sign_key2 = nssa::PrivateKey::try_new([
|
||||||
|
244, 52, 248, 116, 23, 32, 1, 69, 134, 174, 67, 53, 109, 42, 236, 98, 87, 218, 8, 98,
|
||||||
|
34, 246, 4, 221, 183, 93, 105, 115, 59, 134, 252, 76,
|
||||||
|
])
|
||||||
|
.unwrap();
|
||||||
|
let public_key2 = nssa::PublicKey::new_from_private_key(&pub_sign_key2);
|
||||||
|
let public_account_id2 = nssa::AccountId::from(&public_key2);
|
||||||
|
|
||||||
|
let key_chain1 = KeyChain::new_mnemonic("default_private_account_1".to_owned());
|
||||||
|
let private_account_id1 = nssa::AccountId::from(&key_chain1.nullifier_public_key);
|
||||||
|
|
||||||
|
let key_chain2 = KeyChain::new_mnemonic("default_private_account_2".to_owned());
|
||||||
|
let private_account_id2 = nssa::AccountId::from(&key_chain2.nullifier_public_key);
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
sequencer_addr: "http://127.0.0.1:3040".parse().unwrap(),
|
sequencer_addr: "http://127.0.0.1:3040".parse().unwrap(),
|
||||||
seq_poll_timeout: Duration::from_secs(12),
|
seq_poll_timeout: Duration::from_secs(12),
|
||||||
@ -216,48 +237,28 @@ impl Default for WalletConfig {
|
|||||||
basic_auth: None,
|
basic_auth: None,
|
||||||
initial_accounts: vec![
|
initial_accounts: vec![
|
||||||
InitialAccountData::Public(InitialAccountDataPublic {
|
InitialAccountData::Public(InitialAccountDataPublic {
|
||||||
account_id: nssa::AccountId::from_str(
|
account_id: public_account_id1,
|
||||||
"CbgR6tj5kWx5oziiFptM7jMvrQeYY3Mzaao6ciuhSr2r",
|
pub_sign_key: pub_sign_key1,
|
||||||
)
|
|
||||||
.unwrap(),
|
|
||||||
pub_sign_key: nssa::PrivateKey::try_new([
|
|
||||||
127, 39, 48, 152, 242, 91, 113, 230, 192, 5, 169, 81, 159, 38, 120, 218,
|
|
||||||
141, 28, 127, 1, 246, 162, 119, 120, 226, 217, 148, 138, 189, 249, 1, 251,
|
|
||||||
])
|
|
||||||
.unwrap(),
|
|
||||||
}),
|
}),
|
||||||
InitialAccountData::Public(InitialAccountDataPublic {
|
InitialAccountData::Public(InitialAccountDataPublic {
|
||||||
account_id: nssa::AccountId::from_str(
|
account_id: public_account_id2,
|
||||||
"7wHg9sbJwc6h3NP1S9bekfAzB8CHifEcxKswCKUt3YQo",
|
pub_sign_key: pub_sign_key2,
|
||||||
)
|
|
||||||
.unwrap(),
|
|
||||||
pub_sign_key: nssa::PrivateKey::try_new([
|
|
||||||
244, 52, 248, 116, 23, 32, 1, 69, 134, 174, 67, 53, 109, 42, 236, 98, 87,
|
|
||||||
218, 8, 98, 34, 246, 4, 221, 183, 93, 105, 115, 59, 134, 252, 76,
|
|
||||||
])
|
|
||||||
.unwrap(),
|
|
||||||
}),
|
}),
|
||||||
InitialAccountData::Private(Box::new(InitialAccountDataPrivate {
|
InitialAccountData::Private(Box::new(InitialAccountDataPrivate {
|
||||||
account_id: nssa::AccountId::from_str(
|
account_id: private_account_id1,
|
||||||
"HWkW5qd4XK3me6sCAb4bfPj462k33DjtKtEcYpuzNwB",
|
|
||||||
)
|
|
||||||
.unwrap(),
|
|
||||||
account: nssa::Account {
|
account: nssa::Account {
|
||||||
balance: 10_000,
|
balance: 10_000,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
key_chain: KeyChain::new_mnemonic("default_private_account_1".to_owned()),
|
key_chain: key_chain1,
|
||||||
})),
|
})),
|
||||||
InitialAccountData::Private(Box::new(InitialAccountDataPrivate {
|
InitialAccountData::Private(Box::new(InitialAccountDataPrivate {
|
||||||
account_id: nssa::AccountId::from_str(
|
account_id: private_account_id2,
|
||||||
"HUpbRQ1vEcZv5y6TDYv9tpt1VA64ji2v4RDLJfK2rpZn",
|
|
||||||
)
|
|
||||||
.unwrap(),
|
|
||||||
account: nssa::Account {
|
account: nssa::Account {
|
||||||
balance: 20_000,
|
balance: 20_000,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
key_chain: KeyChain::new_mnemonic("default_private_account_2".to_owned()),
|
key_chain: key_chain2,
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user