Skip to content

Commit

Permalink
try out AssetHub transfers with chopsticks
Browse files Browse the repository at this point in the history
  • Loading branch information
JuaniRios committed May 6, 2024
1 parent 0dbc032 commit b2a40cc
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 0 deletions.
30 changes: 30 additions & 0 deletions scripts/chopsticks/assethub-transfers/polkadot-assethub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
db: ./db.sqlite

endpoint: wss://statemint-rpc.dwellir.com
import-storage:
System:
Account:
# Polimec sovereign account (sibling - 3344) 1 DOT
- - - "0x7369626c100d0000000000000000000000000000000000000000000000000000"
- providers: 1
data:
free: "10000000000"
# Politest Sudo, 1MM DOT
- - - "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42"
- providers: 1
data:
free: "10000000000000000"
Assets:
Account:
[
[
[1984, 15CyvMWHKwbAPQ3ekqRFWLyq3kcjU8ypMuuGfsMnxanW85WZ],
{ balance: 1000000000 },
],
[
[1337, 15CyvMWHKwbAPQ3ekqRFWLyq3kcjU8ypMuuGfsMnxanW85WZ],
{ balance: 1000000000 },
],
]

mock-signature-host: true
92 changes: 92 additions & 0 deletions scripts/chopsticks/assethub-transfers/polkadot-polimec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
db: ./db.sqlite

endpoint: wss://rpc.polimec.org
import-storage:
System:
Account:
# Politest Sudo
[
[
[
"0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
],
{ providers: 1, data: { free: "10000000000000000" } },
],
]

ForeignAssets:
Asset:
[
[
[1984],
{
owner: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
issuer: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
admin: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
freezer: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
supply: 1000000000,
deposit: 10,
minBalance: 10,
isSufficient: false,
accounts: 1,
sufficients: 1,
approvals: 0,
status: Live,
},
],
[
[10],
{
owner: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
issuer: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
admin: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
freezer: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
supply: 1000000000,
deposit: 10,
minBalance: 10,
isSufficient: false,
accounts: 1,
sufficients: 1,
approvals: 0,
status: Live,
},
],
[
[1337],
{
owner: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
issuer: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
admin: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
freezer: "0xba143e2096e073cb9cddc78e6f4969d8a02160d716a69e08214caf5339d88c42",
supply: 1000000000,
deposit: 10,
minBalance: 10,
isSufficient: false,
accounts: 1,
sufficients: 1,
approvals: 0,
status: Live,
},
],
]

Metadata:
[
[[1984], { symbol: "USDT", name: USDT, decimals: 6, isFrozen: false }],
[[10], { symbol: "DOT", name: DOT, decimals: 10, isFrozen: false }],
[[1337], { symbol: "USDC", name: USDC, decimals: 6, isFrozen: false }],
]

Account:
[
[
[1984, 15CyvMWHKwbAPQ3ekqRFWLyq3kcjU8ypMuuGfsMnxanW85WZ],
{ balance: 1000000000 },
],
[
[10, 15CyvMWHKwbAPQ3ekqRFWLyq3kcjU8ypMuuGfsMnxanW85WZ],
{ balance: 1000000000 },
],
]

mock-signature-host: true

0 comments on commit b2a40cc

Please sign in to comment.