difftreelog
Update runtime types
in: master
2 files changed
README.mddiffbeforeafterboth133133134Additional CLI usage options are available and may be shown by running `cargo run -- --help`.134Additional CLI usage options are available and may be shown by running `cargo run -- --help`.135135136## Building and Running as Parachain locally137138Rust toolchain: nightly-2021-04-23139Note: checkout this project and polkadot project (see below) in the sibling folders (both under the same folder)140141### Parachain Code and Other Configurations142143Some changes need to be made in the parachain code depending on the relay chain it connects to1441451. Chain Spec (incl. chain_spec.rs)146```147Extensions {148 relay_chain: "rococo".into(),149 para_id: PARA_ID,150}151```1521532. All collators need to have at least existential balance154155156157158### Build relay159160```161git clone https://github.com/paritytech/polkadot.git162cd polkadot163git checkout aa386760164cargo build --release165```166167### Build parachain168169Run in the root of this project:170```171cargo --build172```173174### Run 4-node Relay1751761. Download `rococo-custom-4.json` chain spec here: https://substrate.dev/cumulus-workshop/shared/chainspecs/rococo-custom-4.json1772. Use these instructions to launch 4 nodes: https://substrate.dev/cumulus-workshop/#/en/2-relay-chain/1-launch178179Example (Run in polkadot folder. Replace `12D3KooWNLAmKcyee3oqSgTMthaQVXaAcXeo8RrGCzMfMVA3B5on` with output from Alice node):180```181./target/release/polkadot --alice --validator --base-path ./cumulus_relay0 --chain rococo-custom-4.json --port 50555 --ws-port 9944182./target/release/polkadot --bob --validator --base-path ./cumulus_relay1 --chain rococo-custom-4.json --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWNLAmKcyee3oqSgTMthaQVXaAcXeo8RrGCzMfMVA3B5on --port 50556 --ws-port 9945183./target/release/polkadot --charlie --validator --base-path ./cumulus_relay1 --chain rococo-custom-4.json --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWNLAmKcyee3oqSgTMthaQVXaAcXeo8RrGCzMfMVA3B5on --port 50557 --ws-port 9946184./target/release/polkadot --dave --validator --base-path ./cumulus_relay1 --chain rococo-custom-4.json --bootnodes /ip4/127.0.0.1/tcp/30333/p2p/12D3KooWNLAmKcyee3oqSgTMthaQVXaAcXeo8RrGCzMfMVA3B5on --port 50558 --ws-port 9947185186```1871883. Export genesis state and runtime wasm from NFT parachain:189190Run from this project root:191```192./target/release/nft export-genesis-state --parachain-id 2000 > ./resources/para-2000-genesis193./target/release/nft export-genesis-wasm > ./resources/para-2000-wasm194```1951964. Run two parachain nodes:197198Replace `12D3KooWN1ah2bFQSysEFnwZqcmcVpDDR8UedXyo6xfzV1zDNMNg` with Alice or Bob relay ID199200Run from this project root:201```202./target/release/nft --alice --collator --force-authoring --base-path ./tmp/parachain-alice --parachain-id 2000 --port 40333 --ws-port 9844 -- --execution wasm --chain ../polkadot/rococo-custom-4.json --port 30343 --ws-port 9977203./target/release/nft --bob --collator --force-authoring --parachain-id 2000 --base-path ./tmp/parachain/bob --port 40334 --ws-port 9845 -- --execution wasm --chain ../polkadot/rococo-custom-4.json --port 30344 --ws-port 9978 --bootnodes /ip4/127.0.0.1/tcp/50556/p2p/12D3KooWN1ah2bFQSysEFnwZqcmcVpDDR8UedXyo6xfzV1zDNMNg204```2052064. Reserve parachain ID as described here: https://substrate.dev/cumulus-workshop/#/en/2-relay-chain/2-reserve2072085. Register parachain in relay as described here: https://substrate.dev/cumulus-workshop/#/en/3-parachains/2-register209210136## Run Integration Tests211## Run Integration Testsruntime_types.jsondiffbeforeafterboth31 "ConstData": "Vec<u8>",31 "ConstData": "Vec<u8>",32 "VariableData": "Vec<u8>"32 "VariableData": "Vec<u8>"33 },33 },34 "SponsorshipState": {35 "_enum": {36 "Disabled": null,37 "Unconfirmed": "AccountId",38 "Confirmed": "AccountId"39 }40 },41 "Collection": {34 "Collection": {42 "Owner": "AccountId",35 "Owner": "AccountId",43 "Mode": "CollectionMode",36 "Mode": "CollectionMode",49 "MintMode": "bool",42 "MintMode": "bool",50 "OffchainSchema": "Vec<u8>",43 "OffchainSchema": "Vec<u8>",51 "SchemaVersion": "SchemaVersion",44 "SchemaVersion": "SchemaVersion",52 "Sponsorship": "SponsorshipState",45 "Sponsor": "AccountId",46 "SponsorConfirmed": "bool",53 "Limits": "CollectionLimits",47 "Limits": "CollectionLimits",54 "VariableOnChainSchema": "Vec<u8>",48 "VariableOnChainSchema": "Vec<u8>",55 "ConstOnChainSchema": "Vec<u8>"49 "ConstOnChainSchema": "Vec<u8>"99 },93 },100 "CollectionLimits": {94 "CollectionLimits": {101 "AccountTokenOwnershipLimit": "u32",95 "AccountTokenOwnershipLimit": "u32",102 "SponsoredDataSize": "u32",96 "SponsoredMintSize": "u32",103 "SponsoredDataRateLimit": "Option<BlockNumber>",104 "TokenLimit": "u32",97 "TokenLimit": "u32",105 "SponsorTimeout": "u32",98 "SponsorTimeout": "u32",106 "OwnerCanTransfer": "bool",99 "OwnerCanTransfer": "bool",107 "OwnerCanDestroy": "bool"100 "OwnerCanDestroy": "bool"108 }101 },102 "AccountInfo": "AccountInfoWithDualRefCount"109}103}104