Skip to content

Commit

Permalink
Basilisk Integration (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb authored and DidacSF committed Jun 27, 2024
1 parent cc17b27 commit 3f1302d
Show file tree
Hide file tree
Showing 14 changed files with 1,769 additions and 92 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ build/
/target

# Chopsticks
/chopsticks/*.db.sqlite*
/chopsticks/dbs/

# genesis state and chain-spec dumps
/chain_dumps
Expand Down
155 changes: 153 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = [ "Ajuna Network <https://github.com/ajuna-network>" ]
edition = "2021"
homepage = "https://ajuna.io"
repository = "https://github.com/ajuna-network/Ajuna"
version = "0.4.1"
version = "0.5.0"

[workspace]
resolver = "2"
Expand Down Expand Up @@ -32,6 +32,7 @@ parity-scale-codec = { version = "3.0.0", default-features = false }
scale-info = { version = "2.1.1", default-features = false }

# Substrate
assets-common = { version = "0.11.0", default-features = false }
frame-benchmarking = { version = "32.0.0", default-features = false }
frame-benchmarking-cli = { version = "36.0.0" }
frame-executive = { version = "32.0.0", default-features = false }
Expand All @@ -40,6 +41,7 @@ frame-system = { version = "32.0.0", default-featu
frame-system-benchmarking = { version = "32.0.0", default-features = false }
frame-system-rpc-runtime-api = { version = "30.0.0", default-features = false }
frame-try-runtime = { version = "0.38.0", default-features = false }
pallet-assets = { version = "33.0.0", default-features = false }
pallet-aura = { version = "31.0.0", default-features = false }
pallet-authorship = { version = "32.0.0", default-features = false }
pallet-balances = { version = "33.0.0", default-features = false }
Expand Down Expand Up @@ -145,12 +147,16 @@ cumulus-relay-chain-inprocess-interface = { version = "0.11.0", default-features
cumulus-relay-chain-interface = { version = "0.11.0" }
cumulus-relay-chain-minimal-node = { version = "0.11.0", default-features = false }
cumulus-relay-chain-rpc-interface = { version = "0.11.0", default-features = false }
pallet-collator-selection = { version = "13.0.0", default-features = false }
pallet-collator-selection = { version = "13.0.1", default-features = false }
parachains-common = { version = "11.0.0", default-features = false }
staging-parachain-info = { version = "0.11.0", default-features = false }

# ORML
orml-traits = { version = "0.10.0", default-features = false }
orml-vesting = { version = "0.10.0", default-features = false }
orml-xcm = { version = "0.10.0", default-features = false }
orml-xcm-support = { version = "0.10.0", default-features = false }
orml-xtokens = { version = "0.10.0", default-features = false }

# Runtime
bajun-runtime = { path = "runtime/bajun" }
Expand All @@ -165,6 +171,10 @@ pallet-ajuna-nft-staking = { git = "https://github.com/ajuna-ne
pallet-ajuna-tournament = { git = "https://github.com/ajuna-network/ajuna-pallets.git", tag = "v0.7.1", default-features = false }
orml-pallets-benchmarking = { git = "https://github.com/ajuna-network/ajuna-pallets.git", tag = "v0.7.1", default-features = false }

# integritee pallets
pallet-asset-registry = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "cl/polkadot-v1.10.0" }
xcm-primitives = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "cl/polkadot-v1.10.0" }

[profile.production]
codegen-units = 1
inherits = "release"
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ Then we can send an arbitrary extrinsic to trigger the next block and observe th

### Test XCM stuff

TBD when we actually start setting up XCM.
Test Basilisk integration. Note: the tx links will work only if the local setup with chopsticks is running.

1. Setup local network
with `npx @acala-network/chopsticks@latest xcm --p=chopsticks/bajun.yml --p=chopsticks/basilisk.yml`
2. Transfer from Bajun to Basilisk: Our token has token id 18 on basilisk, so you can send this
tx: [Transfer Bajun to Alice on Basilisk](https://polkadot.js.org/apps/?rpc=ws%3A%2F%2Flocalhost%3A8000#/extrinsics/decode/0x2300000010a5d4e8000000000000000000000003010200a9200100d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d00)
3. Transfer from Basilisk to
Bajun: [Transfer Bajun to Alice Stash on Bajun](https://polkadot.js.org/apps/?rpc=ws%3A%2F%2Flocalhost%3A8001#/extrinsics/decode/0x9a001200000000e87648170000000000000000000000030102001d210100be5ddb1579b72e84524fc29e78609e3caf42e85aa118ebfe0b0ad404b5bdd25f00)

### Test Governance execution

Expand Down
2 changes: 1 addition & 1 deletion chopsticks/bajun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endpoint:
- wss://bajun.public.curie.radiumblock.co/ws
mock-signature-host: true
block: ${env.BAJUN_PARACHAIN_BLOCK_NUMBER}
db: ./chopsticks/bajun-parachain.db.sqlite
db: ./chopsticks/dbs/bajun/db.sqlite
runtime-log-level: 5
# wasm-override: bajun_runtime.wasm

Expand Down
27 changes: 27 additions & 0 deletions chopsticks/basilisk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
endpoint:
- wss://basilisk-rpc.dwellir.com
mock-signature-host: true
db: ./chopsticks/dbs/basilisk/db.sqlite
runtime-log-level: 5

import-storage:
System:
Account: # Give our dev accounts some funds
- - - 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY # Alice
- providers: 1
data:
free: 1000000000000000
- - - 5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty # Bob
- providers: 1
data:
free: 1000000000000000
- - - 5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y # Charlie
- providers: 1
data:
free: 1000000000000000
Council:
Members:
- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
TechnicalCommittee:
Members:
- 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
Loading

0 comments on commit 3f1302d

Please sign in to comment.