Skip to content

Commit

Permalink
Upgrade typescript API for runtime 2000 (moonbeam-foundation#1938)
Browse files Browse the repository at this point in the history
* typescript API v0.1901.0"

* regen typescript api

* update moonbeam/moonbeam-types-bundle/package-lock.json

* Updates dependencies

* Typescript api 2000 (moonbeam-foundation#1973)

* fix staking benchmark tests (moonbeam-foundation#1951)

* remove reward for delegator warn logs (moonbeam-foundation#1895)

* Add once (moonbeam-foundation#1857)

* Added tests for standard eth RPC methods (moonbeam-foundation#1949)

* Added standard eth RPC tests

* reduced line length

* Added testskip for FullFilter pool

* bump client and runtime versions (moonbeam-foundation#1910)

* Fix CI for external pr (moonbeam-foundation#1963)

* remove useless job docker-parachain

* fix if condition for exterrnal PRs

solution find here: https://github.com/orgs/community/discussions/25217

* apply suggestion

* Fixing type errors on new pkgs (moonbeam-foundation#1964)

* New smoke tests for detecting XCM and ETH failures (moonbeam-foundation#1955)

* Added xcm failures smoke test

* Lint

* fixed spelling

* New smoke test to detect emulated Ethereum txn failures (moonbeam-foundation#1961)

* Progress on paysFee

* Added new eth fail test

* Added tests new eth failed txn tests

* Lint

* Reverted vsc settings.json

* Update settings.json

for some reason prettier was flagging this as error despite on ignore list.

* Update settings.json

* prettier

* prettier

* update sha3 and libsecp256k1 dependencies (moonbeam-foundation#1959)

* fix(ci): job prepare-polkadot must never be skipped (moonbeam-foundation#1967)

* Moonbeam polkadot v0.9.32 (moonbeam-foundation#1933)

* UPdate tomls

* bump ethereum types

* pallet-staking: RuntimeEvent, RUntimeCall, RuntimeOrigin

* asset-manager: RuntimeEvent, RUntimeCall, RuntimeOrigin

* author-mapping: RuntimeEvent, RUntimeCall, RuntimeOrigin

* ethereum-xcm: RuntimeEvent, RUntimeCall, RuntimeOrigin

* maintenance-mode: RuntimeEvent, RUntimeCall, RuntimeOrigin

* migrations: RuntimeEvent, RUntimeCall, RuntimeOrigin

* moonbeam-orbiters: RuntimeEvent, RUntimeCall, RuntimeOrigin

* proxy-genesis: RuntimeEvent, RUntimeCall, RuntimeOrigin

* randomness: RuntimeEvent, RUntimeCall, RuntimeOrigin

* xcm-transactor: RuntimeEvent, RUntimeCall, RuntimeOrigin

* FMT

* assets-erc20-precomp: RuntimeEvent, RUntimeCall, RuntimeOrigin and new weights

* author-mapping-precomp: RuntimeEvent, RUntimeCall, RuntimeOrigin and new weights

* balances-precomp: RuntimeEvent, RUntimeCall, RuntimeOrigin and new weights

* batch-precomp: RuntimeEvent, RUntimeCall, RuntimeOrigin and new weights

* call-permit: RuntimeEvent, RUntimeCall, RuntimeOrigin and new weights

* collective-precomp: RuntimeEvent, RUntimeCall, RuntimeOrigin and new weights

* crowdloan-precomp: RuntimeEvent, RUntimeCall, RuntimeOrigin and new weights

* new cargo lock

* Fix error on toml

* pallet-democracy:runtimecall, runtime:origin

* staking-precomp:runtimecall, runtime:origin

* democracy-precomp:runtimecall, runtimeorigin

* randomness-precomp:runtimecall, runtimeorigin

* relay-encoder-precomp:runtimecall, runtimeorigin

* xcm-transactor-precomp:runtimecall, runtimeorigin

* xcm-utils-precomp:runtimecall, runtimeorigin

* xtokens-precomp:runtimecall, runtimeorigin

* precompile fmt

* Adapting moonbase to RuntimeEvent, RuntimeCall, RuntimeOrigin

* Fix moonbase runtime, which compiles now

* Adapt moonriver runtime to: democracy changes, RuntimeOrigin, RuntimeEvent, RuntimeCall

* moonbeam

* Adapt everything to clap 4.0.9

* FMT and fix democracy precompiles

* Start fixing pallet-democracy precompile tests

* BRing back note_preimage tests, imminent is removed

* Bring back imminent preimage

* moonbase tests updated

* FMT

* moonriver tests working

* install protoc in ci

* try again without sudo

* try again, this time manually

* Moonriver fmt, test fixes

* Fix moonbeam rust tests

* Fix last rust tests

* Adapt weight calculus to new weight system

* start fixing typescript tests

* Keep fixing tests

* Dispatch info now returns with base weight

* fix queue now new weight

* Keep fixing new weight related tests

* remove proto installation

* fix again github job

* Point at official evm and ethereum crates

* Debugging scheduler not working

* Keep fixing bounded democracy test calls

* Fix crowdloan democracy test

* Keep fixing tests

* More fixes related to weights and democracy

* FMT

* toml sort

* prettier

* more prettier

* compile benchmarks

* toml sort

* remove warning

* remove unused var

* Cargo lock

* fix proxy-governance test

* change democracy-proposal test

* More fixes

* Fix latest of democracy tests

* Add remaining migrations from BoundedCall

* Upgrade to 0.9.32

* FMT

* toml sort

* prettier

* editorconfig

* update polkadot api

* fix ega

* add proxy filters, this time in create_pure and kill_pure

* Add couple of db reads

* remove some as anys

* Revert "remove some as anys"

This reverts commit 5c9294a.

* fix try-runtime

* try-runtime hooks being executed

* Add pr suggestions

* warnings cleared

* more unused imports

* Fix merge error

* prettier

* add when runtime migrations were completed

* remove migrations that have already run and that require maintenance

* Preimage lazy migration (moonbeam-foundation#1962)

* migration call

* add new migration Call to runtimes

* unit tests

* benchmarking

* Benchmarking from the benchmarking server

* toml fmt

Co-authored-by: girazoki <gorka.irazoki@gmail.com>

* fmt

* 0.9.31 ts fixes (moonbeam-foundation#1966)

* ts fixes

* small fixes

* lint

Co-authored-by: nanocryk <6422796+nanocryk@users.noreply.github.com>
Co-authored-by: Tim B <timbrinded@gmail.com>
Co-authored-by: Crystalin <alan.sapede@gmail.com>

* fix workflow check features (moonbeam-foundation#1970)

* types for runtime 2000

Co-authored-by: Nisheeth Barthwal <nbaztec@gmail.com>
Co-authored-by: Amar Singh <asinghchrony@protonmail.com>
Co-authored-by: bear <boundless.forest@outlook.com>
Co-authored-by: Tim B <timbrinded@gmail.com>
Co-authored-by: Éloïs <c@elo.tf>
Co-authored-by: Qinxuan Chen <koushiro.cqx@gmail.com>
Co-authored-by: girazoki <gorka.irazoki@gmail.com>
Co-authored-by: nanocryk <6422796+nanocryk@users.noreply.github.com>

* Updates test api-augment

* Upgrade typescripts

Co-authored-by: crystalin <crystalin@users.noreply.github.com>
Co-authored-by: librelois <c@elo.tf>
Co-authored-by: Crystalin <alan.sapede@gmail.com>
Co-authored-by: Alan Sapede <alan@purestake.com>
Co-authored-by: Nisheeth Barthwal <nbaztec@gmail.com>
Co-authored-by: Amar Singh <asinghchrony@protonmail.com>
Co-authored-by: bear <boundless.forest@outlook.com>
Co-authored-by: Tim B <timbrinded@gmail.com>
Co-authored-by: Qinxuan Chen <koushiro.cqx@gmail.com>
Co-authored-by: girazoki <gorka.irazoki@gmail.com>
Co-authored-by: nanocryk <6422796+nanocryk@users.noreply.github.com>
  • Loading branch information
12 people authored and imstar15 committed May 16, 2023
1 parent 0a4f0ce commit dcca39b
Show file tree
Hide file tree
Showing 47 changed files with 13,953 additions and 14,128 deletions.
928 changes: 464 additions & 464 deletions moonbeam-types-bundle/package-lock.json

Large diffs are not rendered by default.

17 changes: 16 additions & 1 deletion moonbeam-types-bundle/package.json
Expand Up @@ -26,11 +26,26 @@
"url": "git+https://github.com/PureStake/moonbeam.git"
},
"dependencies": {
"@polkadot/api": "^9.4.2",
"@polkadot/api": "^9.9.4",
"typescript": "^4.7.4"
},
"devDependencies": {
"@types/underscore": "^1.11.3",
"underscore": "^1.13.1"
},
"overrides": {
"@polkadot/api": "$@polkadot/api",
"@polkadot/api-derive": "$@polkadot/api",
"@polkadot/api-augment": "$@polkadot/api",
"@polkadot/api-base": "$@polkadot/api",
"@polkadot/rpc-augment": "$@polkadot/api",
"@polkadot/rpc-core": "$@polkadot/api",
"@polkadot/rpc-provider": "$@polkadot/api",
"@polkadot/types-create": "$@polkadot/api",
"@polkadot/types-augment": "$@polkadot/api",
"@polkadot/types-support": "$@polkadot/api",
"@polkadot/types-codec": "$@polkadot/api",
"@polkadot/types": "$@polkadot/api",
"@polkadot/types-known": "$@polkadot/api"
}
}
5 changes: 3 additions & 2 deletions tests/fork-tests/test-pov-migration.ts
Expand Up @@ -87,8 +87,9 @@ describeParachain(
},
(context) => {
it("should not fail", async function () {
const blocksPerRound =
context.polkadotApiParaone.consts.parachainStaking.defaultBlocksPerRound.toNumber();
const blocksPerRound = (
await context.polkadotApiParaone.query.parachainStaking.round()
).length.toNumber();
const blocksToWait = blocksPerRound * ROUNDS_TO_WAIT;

this.timeout((3600 + blocksToWait * 12) * 1000);
Expand Down

0 comments on commit dcca39b

Please sign in to comment.