Skip to content

Commit 3dba9a9

Browse files
authored
Merge pull request everx-labs#234 from tonlabs/smft
Shadow SMFT for first deployment test on a network
2 parents ac41562 + 1a55f62 commit 3dba9a9

40 files changed

+5650
-135
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## Version 0.57.0
6+
7+
- Shadow SMFT is prepared for first deployment
8+
59
## Version 0.56.8
610

711
- `./configs/ton-global.config.json` renamed to `./configs/ton-global-config-sample.json` because

Cargo.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build = 'common/build/build.rs'
33
edition = '2021'
44
name = 'ton_node'
5-
version = '0.56.8'
5+
version = '0.57.0'
66

77
[workspace]
88
members = [ 'storage' ]
@@ -54,13 +54,15 @@ colored = '1.9.3'
5454
crossbeam-channel = '0.4.2'
5555
ctrlc = { features = [ 'termination' ], version = '3.4.0' }
5656
dashmap = '5.4.0'
57+
deflate = '1.0.0'
5758
dirs = '2.0.2'
5859
enum-as-inner = '=0.5.1'
5960
env_logger = '0.7.1'
6061
failure = '0.1'
6162
futures = '0.3.1'
6263
futures-timer = '3.0.1'
6364
hex = '0.4'
65+
inflate = '0.4.5'
6466
lazy_static = '1.4.0'
6567
log = '0.4'
6668
log4rs = '1.2'
@@ -88,7 +90,7 @@ adnl = { features = [ 'client', 'node', 'server' ], git = 'https://github.com/to
8890
catchain = { path = 'catchain' }
8991
lockfree = { git = 'https://github.com/tonlabs/lockfree.git' }
9092
storage = { path = 'storage' }
91-
ton_abi = { git = 'https://github.com/tonlabs/ever-abi.git', optional = true, tag = '2.4.25' }
93+
ton_abi = { git = 'https://github.com/tonlabs/ever-abi.git', tag = '2.4.25' }
9294
ton_api = { git = 'https://github.com/tonlabs/ever-tl.git', package = 'ton_api', tag = '0.3.72' }
9395
ton_block = { git = 'https://github.com/tonlabs/ever-block.git', tag = '1.9.141' }
9496
ton_block_json = { git = 'https://github.com/tonlabs/ever-block-json.git', tag = '0.7.231' }
@@ -106,19 +108,20 @@ pretty_assertions = '1.3'
106108
tokio = { features = [ 'macros' ], version = '1.5' }
107109

108110
[features]
109-
default = [ 'telemetry' ]
111+
default = [ 'telemetry', 'ton_types/export_key' ]
110112
export_key = [ 'catchain/export_key', 'ton_types/export_key' ]
111113
external_db = [ 'rdkafka' ]
112114
fast_finality_extra = [ ]
113115
gosh = [ 'ton_block/gosh', 'ton_vm/gosh' ]
114116
log_metrics = [ ]
115117
prometheus = [ 'metrics-exporter-prometheus', 'log_metrics' ]
116118
signature_with_id = [ 'ton_block/signature_with_id', 'ton_vm/signature_with_id', 'ton_executor/signature_with_id' ]
117-
slashing = [ 'ton_abi', 'validator_session/slashing' ]
119+
slashing = [ 'validator_session/slashing' ]
118120
statsd = [ 'metrics-exporter-statsd', 'log_metrics', 'dep:statsd' ]
119121
telemetry = [ 'adnl/telemetry', 'storage/telemetry' ]
120122
trace_alloc = [ ]
121123
trace_alloc_detail = [ 'trace_alloc' ]
124+
verification = [ 'ton_types/export_key' ]
122125

123126
[profile]
124127

bin/Elector.abi.json

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
{
2+
"ABI version": 2,
3+
"version": "2.3",
4+
"header": ["time"],
5+
"functions": [
6+
{
7+
"name": "constructor",
8+
"inputs": [
9+
],
10+
"outputs": [
11+
]
12+
},
13+
{
14+
"name": "process_new_stake",
15+
"id": "0x4E73744B",
16+
"inputs": [
17+
{"name":"query_id","type":"uint64"},
18+
{"name":"validator_pubkey","type":"uint256"},
19+
{"name":"stake_at","type":"uint32"},
20+
{"name":"max_factor","type":"uint32"},
21+
{"name":"adnl_addr","type":"uint256"},
22+
{"name":"bls_key1","type":"uint256"},
23+
{"name":"bls_key2","type":"uint128"},
24+
{"name":"signature","type":"bytes"}
25+
],
26+
"outputs": [
27+
]
28+
},
29+
{
30+
"name": "config_set_confirmed_ok",
31+
"id": "0xEE764F4B",
32+
"inputs": [
33+
{"name":"query_id","type":"uint64"}
34+
],
35+
"outputs": [
36+
]
37+
},
38+
{
39+
"name": "config_set_confirmed_err",
40+
"id": "0xEE764F6F",
41+
"inputs": [
42+
{"name":"query_id","type":"uint64"}
43+
],
44+
"outputs": [
45+
]
46+
},
47+
{
48+
"name": "config_slash_confirmed_ok",
49+
"id": "0xEE764F4C",
50+
"inputs": [
51+
{"name":"query_id","type":"uint64"}
52+
],
53+
"outputs": [
54+
]
55+
},
56+
{
57+
"name": "config_slash_confirmed_err",
58+
"id": "0xEE764F70",
59+
"inputs": [
60+
{"name":"query_id","type":"uint64"}
61+
],
62+
"outputs": [
63+
]
64+
},
65+
{
66+
"name": "grant",
67+
"id": "0x4772616E",
68+
"inputs": [
69+
],
70+
"outputs": [
71+
]
72+
},
73+
{
74+
"name": "take_change",
75+
"inputs": [
76+
],
77+
"outputs": [
78+
]
79+
},
80+
{
81+
"name": "recover_stake",
82+
"id": "0x47657424",
83+
"inputs": [
84+
{"name":"query_id","type":"uint64"}
85+
],
86+
"outputs": [
87+
]
88+
},
89+
{
90+
"name": "recover_stake_gracefully",
91+
"id": "0x47657425",
92+
"inputs": [
93+
{"name":"query_id","type":"uint64"},
94+
{"name":"elect_id","type":"uint32"}
95+
],
96+
"outputs": [
97+
]
98+
},
99+
{
100+
"name": "get_elect_at",
101+
"id": "0x47657426",
102+
"inputs": [
103+
{"name":"query_id","type":"uint64"}
104+
],
105+
"outputs": [
106+
]
107+
},
108+
{
109+
"name": "upgrade_code",
110+
"id": "0x4E436F64",
111+
"inputs": [
112+
{"name":"query_id","type":"uint64"},
113+
{"name":"code","type":"cell"},
114+
{"name":"data","type":"cell"}
115+
],
116+
"outputs": [
117+
]
118+
},
119+
{
120+
"name": "proceed_register_vote",
121+
"id": "0x56744370",
122+
"inputs": [
123+
{"name":"query_id","type":"uint64"},
124+
{"name":"signature_hi","type":"uint256"},
125+
{"name":"signature_lo","type":"uint256"},
126+
{"name":"sign_tag","type":"uint32"},
127+
{"name":"idx","type":"uint16"},
128+
{"name":"elect_id","type":"uint32"},
129+
{"name":"chash","type":"uint256"}
130+
],
131+
"outputs": [
132+
]
133+
},
134+
{
135+
"name": "report",
136+
"inputs": [
137+
{"name":"signature_hi","type":"uint256"},
138+
{"name":"signature_lo","type":"uint256"},
139+
{"name":"reporter_pubkey","type":"uint256"},
140+
{"name":"victim_pubkey","type":"uint256"},
141+
{"name":"metric_id","type":"uint8"}
142+
],
143+
"outputs": [
144+
]
145+
},
146+
{
147+
"name": "get",
148+
"inputs": [
149+
],
150+
"outputs": [
151+
{"name":"election_open","type":"bool"},
152+
{"components":[{"name":"elect_at","type":"uint32"},{"name":"elect_close","type":"uint32"},{"name":"min_stake","type":"varuint16"},{"name":"total_stake","type":"varuint16"},{"components":[{"name":"stake","type":"varuint16"},{"name":"time","type":"uint32"},{"name":"max_factor","type":"uint32"},{"name":"addr","type":"uint256"},{"name":"adnl_addr","type":"uint256"},{"name":"bls_key1","type":"uint256"},{"name":"bls_key2","type":"uint128"}],"name":"members","type":"map(uint256,tuple)"},{"name":"failed","type":"bool"},{"name":"finished","type":"bool"}],"name":"cur_elect","type":"tuple"},
153+
{"name":"credits","type":"map(uint256,varuint16)"},
154+
{"components":[{"name":"unfreeze_at","type":"uint32"},{"name":"stake_held","type":"uint32"},{"name":"vset_hash","type":"uint256"},{"components":[{"name":"addr","type":"uint256"},{"name":"weight","type":"uint64"},{"name":"stake","type":"varuint16"},{"name":"banned","type":"bool"}],"name":"frozen_dict","type":"map(uint256,tuple)"},{"name":"total_stake","type":"varuint16"},{"name":"bonuses","type":"varuint16"},{"components":[{"name":"tag","type":"uint8"},{"name":"complaint","type":"cell"},{"name":"voters","type":"map(uint16,uint32)"},{"name":"vset_id","type":"uint256"},{"name":"weight_remaining","type":"int64"}],"name":"complaints","type":"map(uint256,tuple)"}],"name":"past_elections","type":"map(uint32,tuple)"},
155+
{"name":"grams","type":"uint128"},
156+
{"name":"active_id","type":"uint32"},
157+
{"name":"active_hash","type":"uint256"}
158+
]
159+
},
160+
{
161+
"name": "get_banned",
162+
"inputs": [
163+
],
164+
"outputs": [
165+
{"name":"value0","type":"map(uint256,bool)"}
166+
]
167+
},
168+
{
169+
"name": "get_buckets",
170+
"inputs": [
171+
{"name":"victim_pubkey","type":"uint256"}
172+
],
173+
"outputs": [
174+
{"components":[{"name":"weight","type":"uint64"},{"name":"reports","type":"map(uint256,uint64)"}],"name":"value0","type":"map(uint8,tuple)"}
175+
]
176+
},
177+
{
178+
"name": "get_buckets_workchain",
179+
"inputs": [
180+
{"name":"victim_pubkey","type":"uint256"}
181+
],
182+
"outputs": [
183+
{"components":[{"name":"weight","type":"uint64"},{"name":"reports","type":"map(uint256,uint64)"}],"name":"value0","type":"map(uint8,tuple)"}
184+
]
185+
},
186+
{
187+
"name": "active_election_id",
188+
"inputs": [
189+
],
190+
"outputs": [
191+
{"name":"value0","type":"uint32"}
192+
]
193+
},
194+
{
195+
"name": "compute_returned_stake",
196+
"inputs": [
197+
{"name":"wallet_addr","type":"uint256"}
198+
],
199+
"outputs": [
200+
{"name":"value0","type":"uint256"}
201+
]
202+
}
203+
],
204+
"data": [
205+
],
206+
"events": [
207+
],
208+
"fields": [
209+
{"name":"_pubkey","type":"uint256"},
210+
{"name":"_constructorFlag","type":"bool"},
211+
{"name":"m_election_open","type":"bool"},
212+
{"components":[{"name":"elect_at","type":"uint32"},{"name":"elect_close","type":"uint32"},{"name":"min_stake","type":"varuint16"},{"name":"total_stake","type":"varuint16"},{"components":[{"name":"stake","type":"varuint16"},{"name":"time","type":"uint32"},{"name":"max_factor","type":"uint32"},{"name":"addr","type":"uint256"},{"name":"adnl_addr","type":"uint256"},{"name":"bls_key1","type":"uint256"},{"name":"bls_key2","type":"uint128"}],"name":"members","type":"map(uint256,tuple)"},{"name":"failed","type":"bool"},{"name":"finished","type":"bool"}],"name":"m_cur_elect","type":"tuple"},
213+
{"name":"m_credits","type":"map(uint256,varuint16)"},
214+
{"components":[{"name":"unfreeze_at","type":"uint32"},{"name":"stake_held","type":"uint32"},{"name":"vset_hash","type":"uint256"},{"components":[{"name":"addr","type":"uint256"},{"name":"weight","type":"uint64"},{"name":"stake","type":"varuint16"},{"name":"banned","type":"bool"}],"name":"frozen_dict","type":"map(uint256,tuple)"},{"name":"total_stake","type":"varuint16"},{"name":"bonuses","type":"varuint16"},{"components":[{"name":"tag","type":"uint8"},{"name":"complaint","type":"cell"},{"name":"voters","type":"map(uint16,uint32)"},{"name":"vset_id","type":"uint256"},{"name":"weight_remaining","type":"int64"}],"name":"complaints","type":"map(uint256,tuple)"}],"name":"m_past_elections","type":"map(uint32,tuple)"},
215+
{"name":"m_grams","type":"varuint16"},
216+
{"name":"m_active_id","type":"uint32"},
217+
{"name":"m_active_hash","type":"uint256"},
218+
{"name":"m_masterchain_vtors_weight","type":"uint64"},
219+
{"name":"m_workchain_vtors_weight","type":"uint64"},
220+
{"name":"m_banned","type":"map(uint256,bool)"},
221+
{"components":[{"name":"weight","type":"uint64"},{"name":"reports","type":"map(uint256,uint64)"}],"name":"m_reports","type":"map(uint256,map(uint8,tuple))"},
222+
{"components":[{"name":"weight","type":"uint64"},{"name":"reports","type":"map(uint256,uint64)"}],"name":"m_reports_workchain","type":"map(uint256,map(uint8,tuple))"}
223+
]
224+
}

0 commit comments

Comments
 (0)