-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchromia-devnet1.yml
More file actions
367 lines (365 loc) · 15.2 KB
/
chromia-devnet1.yml
File metadata and controls
367 lines (365 loc) · 15.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
definitions:
chain_version: &chain_version
release_version: ${RELEASE_VERSION:-dev}
release_commit: ${RELEASE_COMMIT:-dev}
blockchains:
devnet1:
module: management_chain_devnet1
config:
features:
merkle_hash_version: 2
# *common_config
signers:
- x"0350fe40766bc0ce8d08b3f5b810e49a8352fdd458606bd5fafe5acdcdc8ff3f57"
sync_ext:
- "net.postchain.d1.icmf.IcmfReceiverSynchronizationInfrastructureExtension"
gtx:
modules:
- "net.postchain.d1.icmf.IcmfSenderGTXModule"
- "net.postchain.d1.icmf.IcmfReceiverGTXModule"
- "net.postchain.eif.transaction.signerupdate.directorychain.SignerUpdateGTXModule"
- "net.postchain.d1.iccf.IccfGTXModule"
icmf:
receiver:
anchoring:
topics:
- G_configuration_updated
- G_configuration_failed
global:
blockchains:
- bc-rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
topic: G_create_cluster_v2
- bc-rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
topic: G_create_container
- bc-rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
topic: G_stop_container
- bc-rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
topic: G_restart_container
- bc-rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
topic: G_upgrade_container
- bc-rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
topic: G_remove_container
- bc-rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
topic: G_assign_subnode_image_to_container
- bc-rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
topic: G_add_subnode_jar_extensions_to_container
- bc-rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
topic: G_register_dapp_provider
moduleArgs:
common.init:
initial_provider: 03ECD350EEBC617CBBFBEF0A1B7AE553A748021FD65C7C50C5ABB4CA16D4EA5B05
genesis_node:
- 0350fe40766bc0ce8d08b3f5b810e49a8352fdd458606bd5fafe5acdcdc8ff3f57
- node0.devnet1.chromia.dev
- 9870
- https://node0.devnet1.chromia.dev:7740
- SE
common:
allow_blockchain_dependencies: false
provider_quota_max_actions_per_day: 100
common.queries:
developers:
- andrei.ursu@chromaway.com
- eugene.tykulov@chromaway.com
- johan.nilsson@chromaway.com
- mikael.staldal@chromaway.com
- robert.wideberg@chromaway.com
proposal_blockchain_move:
provider_quota_move_cost: 35
proposal_blockchain.util:
# *proposal_blockchain_util
max_config_path_depth: 10
max_config_size: 5242880 # 5 MiB
max_block_size: 27262976 # 26 MiB
min_inter_block_interval: 1000
min_fast_revolt_status_timeout: 2000
min_max_block_time: 10000 # 10 seconds
allowed_dapp_chain_gtx_modules:
- "net.postchain.rell.module.RellPostchainModuleFactory"
- "net.postchain.gtx.StandardOpsGTXModule"
- "net.postchain.d1.icmf.IcmfSenderGTXModule"
- "net.postchain.d1.icmf.IcmfReceiverGTXModule"
- "net.postchain.d1.iccf.IccfGTXModule"
- "net.postchain.eif.EifGTXModule"
- "net.postchain.web.WebStaticGTXModuleFactory"
- "net.postchain.crypto.ethereum.EthereumAuthGTXModule"
- "net.postchain.crypto.webauthn.WebAuthnGTXModuleFactory"
allowed_dapp_chain_sync_exts:
- "net.postchain.d1.icmf.IcmfReceiverSynchronizationInfrastructureExtension"
- "net.postchain.eif.EifSynchronizationInfrastructureExtension"
allowed_blockchain_features:
- "merkle_hash_version"
required_blockchain_features:
- "merkle_hash_version"
require_min_merkle_hash_version: 2
require_eif_snapshot_version: 2
allowed_dapp_chain_native_functions:
- "net.postchain.d1.BlockWitnessRellNative"
proposal_container.proposal_container_configuration:
min_slow_db_statement_log_ms: 1000
chain_version: *chain_version
housekeeping:
max_empty_container_time: 259200000 # 3 days
node_software_version:
node_image:
url: registry.gitlab.com/chromaway/postchain-chromia/chromaway/chromia-server
tag: 3.28.1
digest: sha256:f426ce4bda073d63ade194a3dbbe095a532466672ef4a80de71df8d165de879e
default_subnode_image:
url: registry.gitlab.com/chromaway/postchain-chromia/chromaway/chromia-subnode
tag: 3.28.1
digest: sha256:e736c6d1465b6a5ae480b5431619e16438000a500fae9214a5ef23c69614dd15
blockchain_auth_icmf:
icmf_rate_limit_ms: 10000
system_anchoring:
module: anchoring_chain_system
config:
features:
merkle_hash_version: 2
blockstrategy:
maxblocktime: 300000
gtx:
modules:
- "net.postchain.d1.anchoring.system.SystemAnchoringGTXModule"
- "net.postchain.d1.icmf.IcmfSenderGTXModule"
moduleArgs:
chain_version: *chain_version
test:
modules:
- anchoring_chain_system.test
cluster_anchoring:
module: anchoring_chain_cluster
config:
features:
merkle_hash_version: 2
anchoring:
max_blocks_per_chain: 10
blockstrategy:
maxblocktime: 300000
sync_ext:
- "net.postchain.d1.icmf.IcmfReceiverSynchronizationInfrastructureExtension"
gtx:
modules:
- "net.postchain.d1.anchoring.cluster.ClusterAnchoringGTXModule"
- "net.postchain.d1.icmf.IcmfSenderGTXModule"
- "net.postchain.d1.icmf.IcmfReceiverGTXModule"
icmf:
receiver:
directory-chain:
topics:
- L_container_blockchain_update
moduleArgs:
chain_version: *chain_version
test:
modules:
- anchoring_chain_cluster.test
moduleArgs:
anchoring_chain_cluster:
imcf_headers_with_messages_query_limit: 3 # Good for testing limits
economy_chain_devnet1:
module: economy_chain_devnet1
config:
features:
merkle_hash_version: 2
sync_ext:
- "net.postchain.d1.icmf.IcmfReceiverSynchronizationInfrastructureExtension"
gtx:
modules:
- "net.postchain.d1.icmf.IcmfReceiverGTXModule"
- "net.postchain.d1.icmf.IcmfSenderGTXModule"
- 'net.postchain.eif.EifGTXModule'
- "net.postchain.d1.iccf.IccfGTXModule"
icmf:
receiver:
anchoring:
topics:
- G_node_availability_report
- G_resource_usage_statistics
directory-chain:
topics:
- L_create_cluster_error
- L_ticket_container_result
- L_cluster_update
- L_provider_update
- L_provider_auth_update
- L_node_update
- L_cluster_node_update
- L_blockchain_rid_topic
- L_subnode_image_update
- L_cluster_subnode_image_update
- L_subnode_jar_extension_update
- L_cluster_subnode_jar_extension_update
global:
topics:
blockchains:
- bc-rid: x"6E570F37B0BE001717326E9FC91AFD9F8B6F78A949C0EF9D78E49C86A3A5AAB5" # evm_transaction_submitter_chain
topic: G_evm_transaction_submitter_cost_topic
local:
- topic: L_evm_block_events
bc-rid: x"6272D4BCD57DD736309ED8C82693C55A199B8FC9C72CD06A187497425328CE42" # evm_event_receiver_chain
moduleArgs:
lib.hbridge.core:
evm_read_offsets:
"97": 10
"84532": 10
# *economy_chain_ft4_module_args_devnet1
lib.ft4.core.accounts:
rate_limit:
active: 1
max_points: 20
recovery_time: 5000
points_at_account_creation: 1
lib.ft4.core.auth:
evm_signatures_authorized_operations:
- eif.hbridge.link_evm_eoa_account
lib.ft4.core.accounts.strategies.transfer:
rules:
- sender_blockchain:
- "42415FEF744C07C49568FB41C06857D94C4662F3627F9B62D5A9C7BCE0CF73AE" # chr repl -c '("EVM",97,x"8e59d72e4DdA56F26963C6b8c77cA1959E9A74F0").hash()', based on BSC testnet token address
sender: "*"
recipient: "*"
asset:
- name: "Chromia Test" # Should match `economy_chain_module_args.asset_name`
min_amount: 10000000L # 10.0 tCHR
timeout_days: 1
strategy: "open"
- sender_blockchain: "$"
sender: "*"
recipient: "*"
asset:
- name: "Chromia Test" # Should match `economy_chain_module_args.asset_name`
min_amount: 10000000L # 10.0 tCHR
timeout_days: 1
strategy: "fee"
lib.ft4.core.accounts.strategies.transfer.fee:
asset:
- name: "Chromia Test" # Should match `economy_chain_module_args.asset_name`
amount: 10000000L # 10.0 tCHR
fee_account: x"23746168BF9C5F4E96A0866720CDC63A540E036CCB11F7A7F76F7B23A992C063" # pool account
# *economy_chain_test_claim_tchr_args
economy_chain_test_claim_tchr:
asset_name: "Chromia Test"
asset_symbol: "tCHR"
asset_decimals: 6
amount_to_mint: 1000000000
test_chr_refill_limit_millis: 604800000 # 1 week
account_creator_pubkey: x"036AF40CBAFA718B1AFBB8335E3315B8BD3821AB2AA891E5287521EEB6462AE2C5"
economy_chain:
# *economy_chain_module_args
evm_bridges:
- network_id: 97
asset_address: "8e59d72e4DdA56F26963C6b8c77cA1959E9A74F0"
bridge_address: "2Cf48D2891CC286d18596Df1261D011d1B78E03E"
skip_to_height: 5801241
asset_name: "Chromia Test"
asset_symbol: "tCHR"
asset_decimals: 6
asset_icon: "https://s3.eu-central-1.amazonaws.com/www.chromiadev.net/assets/tCHR.png"
pool_amount_to_mint: 150000000000 # 150k CHR
staking_withdrawal_delay_ms: 120000 # 2 min
staking_delegation_delay_ms: 60000 # 1 min
staking_rewards_payout_interval_ms: 86400000 # 1 day
staking_withdrawals_payout_interval_ms: 30000 # 60 seconds (approximately every other block)
staking_rewards_payout_batch_size: 50
staking_default_rewards_share: 0.1
pool_refill_limit_ms: 86400000 # 1 day
max_dapp_providers_per_lease: 2 # Good for testing
max_bridge_leases_per_container: 10
evm_transaction_submitters_bonus: 0.1
container_removal_timeout: 1209600000 # 2 weeks
token_rate_update_interval_ms: 3600000 # 1 hour
staking_oracle_pubkey: x"02825F12B62C09C1DBA09FB371E6D1C19DEE18D763265709864192CDEE58F9E511"
chromia_foundation_mint_amount_limit: 150000000000 # 150k CHR, at 2025-04-15 this is ~0.08 / 12500 USD
economy_chain_test_mint_on_ras_staking:
amount_to_mint: 1000000000
chain_version: *chain_version
token_chain_devnet1:
module: token_chain
config:
features:
merkle_hash_version: 2
gtx:
modules:
- "net.postchain.d1.icmf.IcmfSenderGTXModule"
- "net.postchain.d1.icmf.IcmfReceiverGTXModule"
- "net.postchain.d1.iccf.IccfGTXModule"
- "net.postchain.eif.EifGTXModule"
sync_ext:
- "net.postchain.d1.icmf.IcmfReceiverSynchronizationInfrastructureExtension"
icmf:
receiver:
directory-chain:
topics:
- L_provider_update # To sync system providers
- L_provider_auth_update
local:
- topic: L_evm_block_events
bc-rid: x"9FB605065E96EF3CEE24F787DD58E830CCAD0A9949E7B0153FB781DA0190C56B" # evm_event_receiver_token_chain
eif:
snapshot:
version: 2
moduleArgs:
token_chain:
init_pubkey: x"03ECD350EEBC617CBBFBEF0A1B7AE553A748021FD65C7C50C5ABB4CA16D4EA5B05" # Alpha provider
asset_name: "Chromia Test"
asset_symbol: "tCHR"
asset_decimals: 6
asset_icon: "https://s3.eu-central-1.amazonaws.com/www.chromiadev.net/assets/tCHR.png"
economy_chain_blockchain_rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
proposal_revoke_timeout_days: 0
lib.begin_block:
detect_configuration_updates: true
lib.hbridge.core:
evm_read_offsets:
"97": 10
"84532": 10
lib.hbridge:
version: 2 # multiple bridges
lib.ft4.core.auth:
evm_signatures_authorized_operations:
- eif.hbridge.link_evm_eoa_account
lib.ft4.core.accounts.strategies.transfer:
rules:
- sender_blockchain: "*"
sender: "*"
recipient: "*"
asset:
- name: "Chromia Test" # Should match `economy_chain_module_args.asset_name`
min_amount: 1000000L # 1.0 tCHR
issuing_blockchain_rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
timeout_days: 10
strategy: "fee"
- sender_blockchain: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
sender: "X"
recipient: "X"
asset:
- name: "Chromia Test" # Should match `economy_chain_module_args.asset_name`
min_amount: 1L # Smallest possible unit of tCHR should be OK
issuing_blockchain_rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
timeout_days: 10
strategy: "open"
- sender_blockchain: x"DDE588E82F8F723269A1EEDE1D29EB51635019FC593B2B586E6796FBFCA8A682" # Used for account creation during token MNA2 deposit
sender: "*"
recipient: "*"
asset:
- id: x"AAFE163D60F3DCD531B263BB0159DA36EE76F1F2FA7AB78D10F15037B3F5028E"
min_amount: 1L # Smallest possible unit of MNA2 should be OK
timeout_days: 10
strategy: "open"
lib.ft4.core.accounts.strategies.transfer.fee:
asset:
- name: "Chromia Test" # Should match `economy_chain_module_args.asset_name`
amount: 1000000L # 1.0 tCHR
issuing_blockchain_rid: x"83A9D1CC62C468A0D20854CAABB5EAD6DF50CD4DC0B2BCC2CDEC71F9DC201F9D" # economy chain
fee_account: x"06F63A7A83FF05273516DD468943DA15B106AC4736C63C3FCC6EB2F2C1590B22" # Token chain governance account id - chr repl -c "\"TOKEN_CHAIN_GOVERNANCE\".hash()"
chain_version: *chain_version
docs:
title: Directory chain
footerMessage: © 2024 Chromia
additionalContent:
- module-docs.md
sourceLink:
remoteUrl: https://gitlab.com/chromaway/core/directory-chain/-/tree/dev/src
remoteLineSuffix: "#L"
compile:
rellVersion: 0.14.15