Skip to content

Commit

Permalink
ci-skip-rust update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Ad96el committed Jan 24, 2025
1 parent c49bc1f commit 5306394
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 593 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/check-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,15 @@ jobs:
env:
working-dir: ./integration-tests/chopsticks
CI: true
PEREGRINE_WASM_OVERRIDE: ../../target/debug/wbuild/peregrine-runtime/peregrine_runtime.wasm
SPIRITNET_BLOCK_NUMBER: 7850499
HYDRATION_BLOCK_NUMBER: 5235787
POLKADOT_BLOCK_NUMBER: 21010819
ASSETHUB_BLOCK_NUMBER: 7934113
SPIRITNET_WASM_OVERRIDE: ../../target/debug/wbuild/peregrine-runtime/peregrine_runtime.wasm
PEREGRINE_WASM_OVERRIDE: ../../target/debug/wbuild/peregrine-runtime/peregrine_runtime.wasm

# Configured by the Docker image. We can't change this unless the image does it.
CARGO_HOME: /usr/local/cargo

defaults:
run:
Expand All @@ -154,6 +157,18 @@ jobs:
with:
tool-cache: true

- name: Set up Cargo cache
uses: actions/cache@v4
with:
# These paths are mounted inside the Docker container.
# We cannot mount the `.cargo/bin` folder since the container already contains binaries, and overriding with an empty one breaks compilation.
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
key: ${{ github.job }}-${{ github.ref }}-${{ matrix.features }}-${{ hashFiles('**/Cargo.lock') }}
save-always: true

- name: Setup environment
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -181,7 +196,7 @@ jobs:
save-always: true

- name: Build Peregrine runtime
run: cargo build -p peregrine-runtime
run: cargo build -p peregrine-runtime --no-default-features --target wasm32-unknown-unknown

- name: Run Chopsticks tests
run: yarn test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,52 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events "messageQueue" 1`] = `
[
{
"data": {
"id": "(hash)",
"origin": {
"Sibling": "(rounded 2000)",
},
"success": true,
"weightUsed": {
"proofSize": 0,
"refTime": 800000000,
},
},
"method": "Processed",
"section": "messageQueue",
},
]
`;

exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events {"section":"balances","method":"Burned"} 1`] = `
[
{
"data": {
"amount": 1000000000000000,
"who": "4qXPdpioJ6D8cgdeYXaukV2Y2oAQUHaX1VnGhdbSRqJn2CBt",
},
"method": "Burned",
"section": "balances",
},
]
`;

exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events {"section":"balances","method":"Minted"} 1`] = `
[
{
"data": {
"amount": "(rounded 1000000000000000)",
"who": "4rsmbFBYpVmWE2LHRsSZKxf22a8cbJLxMZqvVGkGkSDmDBcr",
},
"method": "Minted",
"section": "balances",
},
]
`;

exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events {"section":"system","method":"NewAccount"} 1`] = `
exports[`Withdraw Asset > Hydration -> KILT DEV > receiver events {"section":"system","method":"NewAccount"} 1`] = `
[
{
"data": {
Expand All @@ -58,41 +12,6 @@ exports[`Withdraw Asset > Hydration -> KILT at Block > receiver events {"section
]
`;

exports[`Withdraw Asset > Hydration -> KILT at Block > sender events "xcmpQueue" 1`] = `
[
{
"data": {
"messageHash": "(hash)",
},
"method": "XcmpMessageSent",
"section": "xcmpQueue",
},
]
`;

exports[`Withdraw Asset > Hydration -> KILT at Block > sender events {"section":"currencies","method":"Withdrawn"} 1`] = `
[
{
"data": {
"amount": "(rounded 500000000000)",
"currencyId": 0,
"who": "7NL1GYCJu8cFSnWBLwET2X3fMdodw8T75zuxi59hA2bhdjQq",
},
"method": "Withdrawn",
"section": "currencies",
},
{
"data": {
"amount": 1000000000000000,
"currencyId": "(rounded 30)",
"who": "7NL1GYCJu8cFSnWBLwET2X3fMdodw8T75zuxi59hA2bhdjQq",
},
"method": "Withdrawn",
"section": "currencies",
},
]
`;

exports[`Withdraw Asset > Hydration -> KILT live > receiver events {"section":"system","method":"NewAccount"} 1`] = `
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,59 +126,4 @@ export const testPairsWithdrawAssets: WithdrawAssetTestConfiguration[] = [
receiver: mainChains.hydration.chainInfo.sovereignAccountOnSiblingChains,
},
},

{
config: {
desc: 'Hydration -> KILT at Block',
precision: BigInt(99),
network: {
relay: mainChains.polkadot.getConfig({
blockNumber: mainChains.polkadot.parameters.blockNumber,
}),
// sender, receiver
parachains: [mainChains.hydration.getConfig({}), mainChains.kilt.getConfig({})],
},
storage: {
senderStorage: {
...mainChains.hydration.storage.assignKiltTokensToAccounts([keysAlice.address], initialBalanceKILT),
...mainChains.hydration.storage.assignNativeTokensToAccounts(
[keysAlice.address],
initialBalanceHDX
),
},
receiverStorage: {},
relayStorage: {},
},
},

accounts: {
senderAccount: keysAlice,
receiverAccount: keysBob,
},
query: {
sender: query.tokens(mainChains.hydration.chainInfo.kiltTokenId),
receiver: query.balances,
},
txContext: {
tx: tx.xtokens.transfer(
mainChains.hydration.chainInfo.kiltTokenId,
tx.xtokens.parachainV3(mainChains.kilt.chainInfo.paraId)
),
pallets: {
sender: ['xcmpQueue', { section: 'currencies', method: 'Withdrawn' }],
receiver: [
'messageQueue',
{ section: 'balances', method: 'Burned' },
{ section: 'balances', method: 'Minted' },
{ section: 'system', method: 'NewAccount' },
],
},
balanceToTransfer: BigInt(1e15),
},

sovereignAccount: {
sender: mainChains.kilt.chainInfo.sovereignAccountOnSiblingChains,
receiver: mainChains.hydration.chainInfo.sovereignAccountOnSiblingChains,
},
},
] as const
Loading

0 comments on commit 5306394

Please sign in to comment.