Skip to content

Commit

Permalink
RT2801 Smoke Test Compatibility (#2702)
Browse files Browse the repository at this point in the history
* Fix to fees smoketest

* Fixed staking rewards test

* update api augment

* removed any

* remove rounding error

* fix alphanet balances

* fixed comment
  • Loading branch information
timbrinded authored Mar 11, 2024
1 parent 4a8fb81 commit 2a2b15b
Show file tree
Hide file tree
Showing 8 changed files with 825 additions and 256 deletions.
18 changes: 12 additions & 6 deletions test/helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,27 @@ export const PRECOMPILE_RELAY_DATA_VERIFIER_ADDRESS = "0x00000000000000000000000
// Fees
export const RUNTIME_CONSTANTS = {
MOONBASE: {
MIN_FEE_MULTIPLIER: "100000000000000000",
MAX_FEE_MULTIPLIER: "100000000000000000000000",
MIN_FEE_MULTIPLIER: 100_000_000_000_000_000n,
MAX_FEE_MULTIPLIER: 100_000_000_000_000_000_000_000n,
MIN_BASE_FEE_IN_WEI: "125000000",
MAX_BASE_FEE_IN_WEI: "125000000000000",
TARGET_FILL_PERMILL: 500_000n,
OLD_TARGET_FILL_PERMILL: 250_000n,
},
MOONRIVER: {
MIN_FEE_MULTIPLIER: "1000000000000000000",
MAX_FEE_MULTIPLIER: "100000000000000000000000",
MIN_FEE_MULTIPLIER: 1_000_000_000_000_000_000n,
MAX_FEE_MULTIPLIER: 100_000_000_000_000_000_000_000n,
MIN_BASE_FEE_IN_WEI: "1250000000",
MAX_BASE_FEE_IN_WEI: "125000000000000",
TARGET_FILL_PERMILL: 500_000n,
OLD_TARGET_FILL_PERMILL: 250_000n,
},
MOONBEAM: {
MIN_FEE_MULTIPLIER: "1000000000000000000",
MAX_FEE_MULTIPLIER: "100000000000000000000000",
MIN_FEE_MULTIPLIER: 1_000_000_000_000_000_000n,
MAX_FEE_MULTIPLIER: 100_000_000_000_000_000_000_000n,
MIN_BASE_FEE_IN_WEI: "125000000000",
MAX_BASE_FEE_IN_WEI: "12500000000000000",
TARGET_FILL_PERMILL: 500_000n,
OLD_TARGET_FILL_PERMILL: 250_000n,
},
} as const;
1 change: 1 addition & 0 deletions test/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export * from "./precompiles";
export * from "./providers";
export * from "./randomness";
export * from "./referenda";
export * from "./shortfalls";
export * from "./staking";
export * from "./storageQueries";
export * from "./tracing-txns";
Expand Down
102 changes: 102 additions & 0 deletions test/helpers/shortfalls.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
export const AccountShortfalls = {
"Moonbase Stage": {
"0x7cb3790906f902a02f0d6784058362db929c5f3f": {
comment: "localAssetDeposit to be manually returned",
brokenIn: 2801,
reserved: 300000000000000000000n,
locks: 0n,
},
"0x56c97e8fb7faebebe643473d5c9adaeb3fb2538e": {
comment: "localAssetDeposit to be manually returned",
brokenIn: 2801,
reserved: 1009200000000000000n,
locks: 0n,
},
},
"Moonbase Alpha": {
"0x2cbdf7c89b265320121925de4c1a9f842310d86a": {
comment: "localAssetDeposit to be manually returned",
brokenIn: 2801,
reserved: 1009900000000000000n,
locks: 0n,
},
"0x5d9ab5522c64e1f6ef5e3627eccc093f56167818": {
comment: "localAssetDeposit to be manually returned",
brokenIn: 2801,
reserved: 1007400000000000000n,
locks: 0n,
},
"0xb12c13e66ade1f72f71834f2fc5082db8c091358": {
comment: "localAssetDeposit to be manually returned (from repatriated)",
brokenIn: 2801,
reserved: 1007800000000000000n,
locks: 0n,
},
"0xa0c92679eb35dc6fbabe4fcf154dd925bb6d9933": {
comment: "localAssetDeposit to be manually returned ",
brokenIn: 2801,
reserved: 100000000000000000000n,
locks: 0n,
},
"0x72c397908cb93d1b569bbb0ff8d3d26b7b21d730": {
comment: "localAssetDeposit to be manually returned ",
brokenIn: 2801,
reserved: 101007900000000000000n,
locks: 0n,
},
"0x798ce91bbfa900b4680904d4d8d560daf11d7a98": {
comment: "localAssetDeposit to be manually returned (repatriated)",
brokenIn: 2801,
reserved: 2017200000000000000n,
locks: 0n,
},
"0x499ab66749b8ebc370cc73458d33940ae13f5d99": {
comment: "localAssetDeposit to be manually returned ",
brokenIn: 2801,
reserved: 100000000000000000000n,
locks: 0n,
},
"0x08480769599e23f626efff39b89f3137e9917a40": {
comment: "localAssetDeposit to be manually returned ",
brokenIn: 2801,
reserved: 200000000000000000000n,
locks: 0n,
},
"0x1be578aa93594fab84f4665fa1661dc554a3de6e": {
comment: "localAssetDeposit to be manually returned ",
brokenIn: 2801,
reserved: 101008000000000000000n,
locks: 0n,
},
"0x7a852c4f4ecc07164365b0def5f37b44b085c558": {
comment: "localAssetDeposit to be manually returned ",
brokenIn: 2801,
reserved: 1009200000000000000n,
locks: 0n,
},
"0x6cb33761955ec73580c7f5d85ba3a47d543a4399": {
comment: "localAssetDeposit to be manually returned ",
brokenIn: 2801,
reserved: 200000000000000000000n,
locks: 0n,
},
"0x248e9ebe34e24cf332566d440e2b095ec2cc97bd": {
comment: "localAssetDeposit to be manually returned ",
brokenIn: 2801,
reserved: 101008200000000000000n,
locks: 0n,
},
"0xe6c5b9500035cb5557e8fdbaa758d78a15361a0e": {
comment: "localAssetDeposit & metadata to be manually returned",
brokenIn: 2801,
reserved: 101009600000000000000n,
locks: 0n,
},
"0xd720165d294224a7d16f22ffc6320eb31f3006e1": {
comment: "alberto's account 😬",
brokenIn: 2801,
reserved: 302017300000000000000n,
locks: 0n,
},
},
} as const;
12 changes: 6 additions & 6 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"license": "ISC",
"dependencies": {
"@acala-network/chopsticks": "0.9.8",
"@moonbeam-network/api-augment": "0.2700.0",
"@moonwall/cli": "^5.0.0",
"@moonwall/util": "^5.0.0",
"@moonbeam-network/api-augment": "0.2801.0",
"@moonwall/cli": "^5.0.3",
"@moonwall/util": "^5.0.3",
"@openzeppelin/contracts": "4.9.3",
"@polkadot/api": "10.11.2",
"@polkadot/api-augment": "10.11.2",
Expand Down Expand Up @@ -55,8 +55,8 @@
"devDependencies": {
"@types/debug": "4.1.12",
"@types/json-bigint": "^1.0.4",
"@types/node": "20.11.19",
"@types/semver": "7.5.7",
"@types/node": "20.11.25",
"@types/semver": "7.5.8",
"@types/yargs": "17.0.32",
"@typescript-eslint/eslint-plugin": "7.0.2",
"@typescript-eslint/parser": "7.0.2",
Expand All @@ -65,7 +65,7 @@
"eslint": "8.56.0",
"eslint-plugin-unused-imports": "3.1.0",
"prettier": "2.8.8",
"typescript": "5.3.3",
"typescript": "5.4.2",
"yargs": "17.7.2"
},
"engines": {
Expand Down
Loading

0 comments on commit 2a2b15b

Please sign in to comment.