- copy binaries to
./bin
, includingalt-beacon
andaltrollup-template-node
- prepare
genesis.json
./bin/altrollup-template-node build-spec --chain=dev --raw > genesis.json
- export genesis_commit and validation code
./bin/altrollup-template-node export-genesis-wasm --chain genesis.json > ./bin/producer_code.wasm
./bin/altrollup-template-node export-genesis-commit --chain genesis.json > ./bin/producer_genesis_commit
- launch all nodes (beacon,ganache,3 x proudcers) and do sudo-initialize:
./run.sh
- then you can do
authority change
orcode update
as described below. - you can see the output of all nodes in
./beacon.log
and./alice.log
, etc.
npx ts-node src/authority-change.ts
this command will change authority to charlie, bob, alice
npx ts-node src/code-update.ts <path_to_producer_code>
this command will submit a new wasm code
you can also do sudo-init manually:
npx ts-node src/sudo-init.ts <path_to_validateion_code> <path_to_genesis_commit>
this command will do sudo-initialize with payload defined in src/lib/sudoinit/templatechain.ts
, with rollupid = 0
,
owner = alice
, and alice, bob, charlie
as proposers