Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions KNOWN_GOOD_BLOCK_NUMBERS_KUSAMA.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ASSETHUBKUSAMA_BLOCK_NUMBER=15266696
BASILISK_BLOCK_NUMBER=13791468
BIFROSTKUSAMA_BLOCK_NUMBER=13297328
BRIDGEHUBKUSAMA_BLOCK_NUMBER=7940620
CORETIMEKUSAMA_BLOCK_NUMBER=4876001
ENCOINTERKUSAMA_BLOCK_NUMBER=13168874
KARURA_BLOCK_NUMBER=11306730
KUSAMA_BLOCK_NUMBER=32980208
MOONRIVER_BLOCK_NUMBER=15782764
PEOPLEKUSAMA_BLOCK_NUMBER=8531378
SHIDEN_BLOCK_NUMBER=14341841
ASSETHUBKUSAMA_BLOCK_NUMBER=15274111
BASILISK_BLOCK_NUMBER=13793389
BIFROSTKUSAMA_BLOCK_NUMBER=13299882
BRIDGEHUBKUSAMA_BLOCK_NUMBER=7941897
CORETIMEKUSAMA_BLOCK_NUMBER=4877278
ENCOINTERKUSAMA_BLOCK_NUMBER=13171107
KARURA_BLOCK_NUMBER=11308009
KUSAMA_BLOCK_NUMBER=32982773
MOONRIVER_BLOCK_NUMBER=15785129
PEOPLEKUSAMA_BLOCK_NUMBER=8533929
SHIDEN_BLOCK_NUMBER=14344021
22 changes: 11 additions & 11 deletions KNOWN_GOOD_BLOCK_NUMBERS_POLKADOT.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ACALA_BLOCK_NUMBER=10846987
ASSETHUBPOLKADOT_BLOCK_NUMBER=14241994
ASTAR_BLOCK_NUMBER=12899616
BIFROSTPOLKADOT_BLOCK_NUMBER=11758765
BRIDGEHUBPOLKADOT_BLOCK_NUMBER=7386348
COLLECTIVESPOLKADOT_BLOCK_NUMBER=8592133
CORETIMEPOLKADOT_BLOCK_NUMBER=3978012
HYDRATION_BLOCK_NUMBER=11996921
MOONBEAM_BLOCK_NUMBER=15110066
PEOPLEPOLKADOT_BLOCK_NUMBER=4313711
POLKADOT_BLOCK_NUMBER=30681893
ACALA_BLOCK_NUMBER=10848297
ASSETHUBPOLKADOT_BLOCK_NUMBER=14248871
ASTAR_BLOCK_NUMBER=12901873
BIFROSTPOLKADOT_BLOCK_NUMBER=11761071
BRIDGEHUBPOLKADOT_BLOCK_NUMBER=7387641
COLLECTIVESPOLKADOT_BLOCK_NUMBER=8593439
CORETIMEPOLKADOT_BLOCK_NUMBER=3979309
HYDRATION_BLOCK_NUMBER=11999182
MOONBEAM_BLOCK_NUMBER=15112469
PEOPLEPOLKADOT_BLOCK_NUMBER=4314930
POLKADOT_BLOCK_NUMBER=30684518
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Kusama Asset Hub Asset Rate > assetRate.create > rejects signed origin and creates a rate with root, rejecting duplicates > AssetRateCreated event 1`] = `
[
{
"data": {
"assetKind": {
"V4": {
"assetId": {
"interior": {
"X2": [
{
"PalletInstance": 50,
},
{
"GeneralIndex": "(rounded 2000)",
},
],
},
"parents": 0,
},
"location": {
"interior": {
"X2": [
{
"PalletInstance": 50,
},
{
"GeneralIndex": "(rounded 2000)",
},
],
},
"parents": 0,
},
},
},
"rate": 1000000000000000000,
},
"method": "AssetRateCreated",
"section": "assetRate",
},
]
`;

exports[`Kusama Asset Hub Asset Rate > assetRate.create > rejects signed origin and creates a rate with root, rejecting duplicates > cannot create rate with signed origin 1`] = `
[
{
"data": {
"dispatchError": "BadOrigin",
"dispatchInfo": {
"class": "Normal",
"paysFee": "Yes",
"weight": {
"proofSize": 0,
"refTime": "(rounded 500000000)",
},
},
},
"method": "ExtrinsicFailed",
"section": "system",
},
]
`;

exports[`Kusama Asset Hub Asset Rate > assetRate.remove > rejects signed origin and removes an existing rate with root, rejecting unknown assets > AssetRateRemoved event 1`] = `
[
{
"data": {
"assetKind": {
"V4": {
"assetId": {
"interior": {
"X2": [
{
"PalletInstance": 50,
},
{
"GeneralIndex": "(rounded 2000)",
},
],
},
"parents": 0,
},
"location": {
"interior": {
"X2": [
{
"PalletInstance": 50,
},
{
"GeneralIndex": "(rounded 2000)",
},
],
},
"parents": 0,
},
},
},
},
"method": "AssetRateRemoved",
"section": "assetRate",
},
]
`;

exports[`Kusama Asset Hub Asset Rate > assetRate.remove > rejects signed origin and removes an existing rate with root, rejecting unknown assets > cannot remove rate with signed origin 1`] = `
[
{
"data": {
"dispatchError": "BadOrigin",
"dispatchInfo": {
"class": "Normal",
"paysFee": "Yes",
"weight": {
"proofSize": 0,
"refTime": "(rounded 500000000)",
},
},
},
"method": "ExtrinsicFailed",
"section": "system",
},
]
`;

exports[`Kusama Asset Hub Asset Rate > assetRate.update > rejects signed origin and updates an existing rate with root, rejecting unknown assets > AssetRateUpdated event 1`] = `
[
{
"data": {
"assetKind": {
"V4": {
"assetId": {
"interior": {
"X2": [
{
"PalletInstance": 50,
},
{
"GeneralIndex": "(rounded 2000)",
},
],
},
"parents": 0,
},
"location": {
"interior": {
"X2": [
{
"PalletInstance": 50,
},
{
"GeneralIndex": "(rounded 2000)",
},
],
},
"parents": 0,
},
},
},
"new_": 2000000000000000000,
"old": 1000000000000000000,
},
"method": "AssetRateUpdated",
"section": "assetRate",
},
]
`;

exports[`Kusama Asset Hub Asset Rate > assetRate.update > rejects signed origin and updates an existing rate with root, rejecting unknown assets > cannot update rate with signed origin 1`] = `
[
{
"data": {
"dispatchError": "BadOrigin",
"dispatchInfo": {
"class": "Normal",
"paysFee": "Yes",
"weight": {
"proofSize": 0,
"refTime": "(rounded 500000000)",
},
},
},
"method": "ExtrinsicFailed",
"section": "system",
},
]
`;
8 changes: 8 additions & 0 deletions packages/kusama/src/assetHubKusama.assetRate.e2e.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { assetHubKusama } from '@e2e-test/networks/chains'
import { baseAssetRateE2ETests, registerTestTree, type TestConfig } from '@e2e-test/shared'

const testConfig: TestConfig = {
testSuiteName: 'Kusama Asset Hub Asset Rate',
}

registerTestTree(baseAssetRateE2ETests(assetHubKusama, testConfig))
Loading
Loading