Configurate
Configuration
Brief
compiler
[TODO] choose which compiler to usetransactions
object of constructors arranged by contract file namelimit
mainchain transaction limitdepth
how many blocks to wait for to count transactions as complete in mainchainprivateKey
default privatekey to use for all transactions with mainchainfromAddress
default address to use for all transactions with mainchain
subchain
subchain configs:limit
subchain transaction limitdepth
how many blocks to wait for to count transactions as complete in subchainnode
http-address to use for subchain
shard
object of http-address of mainchain arranged by shard1
http-address to use for shard 1 of mainchain2
http-address to use for shard 2 of mainchain3
http-address to use for shard 3 of mainchain4
http-address to use for shard 4 of mainchain
constructors
"StemRootchain.sol"
The constructor for subchain contract
addressBook
object of contract-address arranged by contract file name"StemRootchain.sol"
The subchain address
More
constructors
constructors
The "StemRootchain.sol"
field in constructors
is matched to an array:
[0] abi array
[1] value array
[2] transaction amount when deploy
This is exactly as what seele-cotnract-core requires. Refer to the example in appendix.
_subchainName
, (bytes32
): strings hashed into_genesisInfo
, (bytes32[]
):filled by
anc fill
option
_staticNodes
, (bytes32[]
):_creatorDeposit
, (uint256
):_ops
, (address[]
):[0]
mintAccount (refer to StemCreation.sol)[1]
meltAccount (refer to StemCreation.sol)
_opsDeposits
, (uint256[]
):[0]
: 0[1]
: 0
_refundAccounts
, (address[]
):[0]
:"0x0000000000000000000000000000000000000000"
[1]
:"0x0000000000000000000000000000000000000000"
addressBook
addressBook
Delete the "StemRootchain.sol"
field in addressBook
and re-run anc make -d
to re-deploy the StemRootchain.sol contract which essentially reuses the other addresses and updates the contract you're now focused on. The "StemRootchain.sol"
field will contain the contract-address that all anc action assumes.
Similarly, to change more parameters like challenge period and relay periods, you would change them in the StemRootchain.sol file in your subchain project's ./src
directory, then you can delete the "StemCreation.sol"
field along with "StemRootchain.sol"
field to re-deploy your subchain.
genesis
genesis
"rootaccounts"
: "validators"
: equal to the constructors
Appendix
Last updated