Skip to content

Instantly share code, notes, and snippets.

@stiiifff
Created November 30, 2020 10:37
Show Gist options
  • Save stiiifff/5b727f3ac59514997ef57f690f67e1a6 to your computer and use it in GitHub Desktop.
Save stiiifff/5b727f3ac59514997ef57f690f67e1a6 to your computer and use it in GitHub Desktop.
Substrate Enterprise sample demo
1. Run 3-node local net
2. Create ALICE_ORG in sample UI
3. Run chain-init-story script
4. Create new shipment in sample UI e.g. S0002 (status: Ready)
6. (Install & run Android app)
7. Create account e.g. ANDROID
8. Add account to Polkadot.js extension
9. Provision new account (balance transfer from ALICE to e.g. ANDROID account)
10. Add ANDROID account to ALICE_ORG org
11. Create Manage role for ProductTracking pallet
12. Assign ProductTracking.Manage role to ALICE
13. Create Execute role for ProductTracking pallet
14. Assign ProductTracking.Execute role to ANDROID
15. In Android app
1. ANDROID account should have a balance
2. ANDROID account should see shipments S0001 & S0002 as it’s part of ALICE_ORG, which the shipments belong to.
3. ANDROID account can now perform pickup / scan / deliver operations for shipment S0002
16. Shipping operations appear in Android app & in sample web UI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment