Token migration contract
%%% { <API encoded pubkey for contract> : { "amount" : <integer>,
%%% "vm_version" : <integer>,
%%% "abi_version" : <integer>,
%%% "nonce" : <integer>
%%% "code" : <API encoded contract byte array>
%%% "call_data" : <API encoded contract byte array>
%%% }
%%% ...
%%% }
%%%
%%% The locked token account will be the owner of the contracts.
%%% The nonces must correspond to the nonces of the owner account.
%%% The nonces must be consecutive (but not necessarity ordered)
%%% The pubkey of the contract must correspond to the computed pubkey
%%% (based on owner account and nonce). This is mostly a fail safe to ensure
%%% that the contract pubkey is visible in the file.25> Locked = aec_governance:locked_coins_holder_account(), Nonce = 1.
1
26> CtPK = aect_contracts:compute_contract_pubkey(Locked, Nonce).
<<84,180,196,235,185,254,235,68,37,168,101,128,127,111,97,
136,141,11,134,251,228,200,73,71,175,98,22,115,172,...>>
27> aeser_api_encoder:encode(contract_pubkey, CtPK).
<<"ct_eJhrbPPS4V97VLKEVbSCJFpdA4uyXiZujQyLqMFoYV88TzDe6">>Last updated
Was this helpful?