Skip to content

Commit

Permalink
chore: 📦 May Packages Update (#413)
Browse files Browse the repository at this point in the history
* chore: 📦 Updated non-web3 pkgs

* style: 🚨 Fix Lint

* pkgs

* chore: 📦 Update eth provider libs

* chore: 📦 Update pjs libs

* fix: 🐛 Fix build

* chore: 📦 Update zombienet

* fix: 🐛 fix moonwall config

* chore: 📦 Extra pkg versions

* chore: 📦 Update vitest

* chore: 🔖 Version bump
  • Loading branch information
timbrinded authored May 22, 2024
1 parent d4269d3 commit 9f2bcd7
Show file tree
Hide file tree
Showing 12 changed files with 742 additions and 608 deletions.
8 changes: 8 additions & 0 deletions .changeset/fluffy-ties-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@moonwall/types": minor
"@moonwall/util": minor
"@moonwall/cli": minor
"@moonwall/tests": minor
---

Package Updates (May)
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"typecheck": "pnpm -r --filter='./packages/**' run typecheck"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@changesets/cli": "2.27.1",
"typescript": "5.4.3"
"@biomejs/biome": "1.7.3",
"@changesets/cli": "2.27.3",
"typescript": "5.4.5"
}
}
49 changes: 27 additions & 22 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@
"node": ">=20",
"pnpm": ">=7"
},
"files": ["dist", "bin", "*.d.ts", "*.mjs"],
"files": [
"dist",
"bin",
"*.d.ts",
"*.mjs"
],
"scripts": {
"clean": "rm -rf dist && rm -rf node_modules",
"build": "pnpm exec rm -rf dist && tsup src --format esm --no-splitting --sourcemap && pnpm generate-types",
Expand All @@ -53,42 +58,42 @@
"prepublish": "pnpm run build && pnpm run generate-types"
},
"dependencies": {
"@acala-network/chopsticks": "0.9.13",
"@moonbeam-network/api-augment": "0.2801.0",
"@acala-network/chopsticks": "0.10.2",
"@moonbeam-network/api-augment": "0.2902.0",
"@moonwall/types": "workspace:*",
"@moonwall/util": "workspace:*",
"@octokit/rest": "^20.1.0",
"@polkadot/api": "10.12.6",
"@polkadot/api-derive": "10.12.6",
"@polkadot/api": "11.1.1",
"@polkadot/api-derive": "11.1.1",
"@polkadot/keyring": "12.6.2",
"@polkadot/types": "10.12.6",
"@polkadot/types-codec": "10.12.6",
"@polkadot/types": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@polkadot/util": "12.6.2",
"@polkadot/util-crypto": "12.6.2",
"@vitest/ui": "1.4.0",
"@zombienet/orchestrator": "0.0.76",
"@zombienet/utils": "0.0.24",
"@vitest/ui": "1.6.0",
"@zombienet/orchestrator": "0.0.85",
"@zombienet/utils": "0.0.25",
"bottleneck": "2.19.5",
"chalk": "5.3.0",
"clear": "0.1.0",
"cli-progress": "3.12.0",
"colors": "1.4.0",
"debug": "4.3.4",
"dotenv": "16.4.5",
"ethers": "6.11.1",
"ethers": "6.12.1",
"get-port": "^7.1.0",
"inquirer": "9.2.17",
"inquirer": "9.2.22",
"inquirer-press-to-continue": "1.2.0",
"jsonc-parser": "3.2.1",
"minimatch": "9.0.4",
"node-fetch": "3.3.2",
"semver": "7.6.0",
"viem": "2.9.9",
"vitest": "1.4.0",
"web3": "4.7.0",
"semver": "7.6.2",
"viem": "2.12.0",
"vitest": "1.6.0",
"web3": "4.8.0",
"web3-providers-ws": "^4.0.7",
"ws": "8.16.0",
"yaml": "2.4.1",
"ws": "8.17.0",
"yaml": "2.4.2",
"yargs": "17.7.2"
},
"peerDependencies": {
Expand All @@ -98,18 +103,18 @@
"vitest": "^1.2.2"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "1.7.3",
"@types/clear": "^0.1.4",
"@types/cli-progress": "3.11.5",
"@types/debug": "4.1.12",
"@types/inquirer": "^9.0.7",
"@types/node": "20.12.4",
"@types/node": "20.12.12",
"@types/semver": "^7.5.8",
"@types/ws": "^8.5.10",
"@types/yargs": "17.0.32",
"tsup": "8.0.2",
"tsx": "4.7.2",
"typescript": "5.4.3"
"tsx": "4.10.5",
"typescript": "5.4.5"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/cmds/runNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export async function runNetworkCmd(args: RunCommandArgs) {
)})`
: chalk.dim("Test: NO TESTS SPECIFIED"),
value: 4,
disabled: testFileDirs.length > 0 ? false : true,
disabled: !(testFileDirs.length > 0),
short: "test",
},
{
Expand All @@ -110,7 +110,7 @@ export async function runNetworkCmd(args: RunCommandArgs) {
)})`
: chalk.dim("Test: NO TESTS SPECIFIED"),
value: 5,
disabled: testFileDirs.length > 0 ? false : true,
disabled: !(testFileDirs.length > 0),
short: "grep",
},
new inquirer.Separator(),
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/internal/foundations/devModeHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,11 @@ export async function createDevBlock<
ApiType extends ApiTypes,
Calls extends CallType<ApiType> | Array<CallType<ApiType>>,
>(context: GenericContext, options: BlockCreation, transactions?: Calls) {
const containsViem =
const containsViem = !!(
(context as DevModeContext).isEthereumChain &&
context.viem() &&
(await MoonwallContext.getContext()).providers.find((prov) => prov.type === "viem")
? true
: false;
);
const api = context.polkadotJs();

const originalBlockNumber = (await api.rpc.chain.getHeader()).number.toBigInt();
Expand Down
10 changes: 3 additions & 7 deletions packages/cli/src/lib/governanceProcedures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ import {
import type { ApiPromise } from "@polkadot/api";
import type { ApiTypes, SubmittableExtrinsic } from "@polkadot/api/types";
import type { KeyringPair } from "@polkadot/keyring/types";
import type {
PalletDemocracyReferendumInfo,
PalletReferendaReferendumInfo,
} from "@polkadot/types/lookup";
import type { PalletReferendaReferendumInfo } from "@polkadot/types/lookup";
import { blake2AsHex } from "@polkadot/util-crypto";
import { u8aToBigInt, u8aToNumber } from "@polkadot/util";

export const COUNCIL_MEMBERS: KeyringPair[] = [baltathar, charleth, dorothy];
export const COUNCIL_THRESHOLD = Math.ceil((COUNCIL_MEMBERS.length * 2) / 3);
Expand Down Expand Up @@ -700,7 +696,7 @@ export const executeOpenTechCommitteeProposal = async (api: ApiPromise, encodedH

export const executeProposalWithCouncil = async (api: ApiPromise, encodedHash: string) => {
let nonce = (await api.rpc.system.accountNextIndex(alith.address)).toNumber();
const referendumNextIndex = (await api.query.democracy.referendumCount()).toNumber();
const referendumNextIndex = ((await api.query.democracy.referendumCount()) as any).toNumber();

const callData =
(api.consts.system.version as any).specVersion.toNumber() >= 2000
Expand Down Expand Up @@ -731,7 +727,7 @@ export const executeProposalWithCouncil = async (api: ApiPromise, encodedHash: s
process.stdout.write("✅\n");

process.stdout.write(`Waiting for referendum [${referendumNextIndex}] to be executed...`);
let referenda: PalletDemocracyReferendumInfo | undefined;
let referenda: any;
while (!referenda) {
try {
referenda = (
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/lib/runnerContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ let limiter: Bottleneck | undefined = undefined;
* },
* });
*/
// biome-ignore lint/suspicious/noExportsInTest: <explanation>
export function describeSuite<T extends FoundationType>({
id: suiteId,
title,
Expand Down
27 changes: 16 additions & 11 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
"node": ">=20",
"pnpm": ">=7"
},
"files": ["dist", "bin", "*.d.ts", "*.mjs"],
"files": [
"dist",
"bin",
"*.d.ts",
"*.mjs"
],
"scripts": {
"clean": "rm -rf dist && rm -rf node_modules",
"build": "rm -rf dist && tsup src --format esm --no-splitting --sourcemap && pnpm generate-types",
Expand All @@ -48,19 +53,19 @@
"schema": "typescript-json-schema --tsNodeRegister --esModuleInterop -o config_schema.json ./src/config.ts MoonwallConfig && pnpm biome format config_schema.json --write"
},
"dependencies": {
"@polkadot/api": "10.12.6",
"@polkadot/api-base": "10.12.6",
"@polkadot/api": "11.1.1",
"@polkadot/api-base": "11.1.1",
"@polkadot/keyring": "12.6.2",
"@polkadot/types": "10.12.6",
"@polkadot/types": "11.1.1",
"@polkadot/util": "12.6.2",
"@polkadot/util-crypto": "12.6.2",
"@types/node": "20.12.4",
"@zombienet/utils": "0.0.24",
"@types/node": "20.12.12",
"@zombienet/utils": "0.0.25",
"bottleneck": "2.19.5",
"debug": "4.3.4",
"ethers": "6.11.1",
"viem": "2.9.9",
"web3": "4.7.0"
"ethers": "6.12.1",
"viem": "2.12.0",
"web3": "4.8.0"
},
"peerDependencies": {
"@polkadot/api": "^10.12.6"
Expand All @@ -69,10 +74,10 @@
"access": "public"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "1.7.3",
"@types/debug": "4.1.12",
"tsup": "8.0.2",
"typescript": "5.4.3",
"typescript": "5.4.5",
"typescript-json-schema": "0.63.0"
}
}
41 changes: 23 additions & 18 deletions packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
"node": ">=20",
"pnpm": ">=7"
},
"files": ["dist", "bin", "*.d.ts", "*.mjs"],
"files": [
"dist",
"bin",
"*.d.ts",
"*.mjs"
],
"scripts": {
"clean": "rm -rf dist && rm -rf node_modules",
"build": "pnpm exec rm -rf dist && tsup src --format esm --no-splitting --sourcemap && pnpm generate-types",
Expand All @@ -48,14 +53,14 @@
"prepublish": "pnpm run build && pnpm run generate-types"
},
"dependencies": {
"@moonbeam-network/api-augment": "0.2801.0",
"@moonbeam-network/api-augment": "0.2902.0",
"@moonwall/types": "workspace:*",
"@polkadot/api": "10.12.6",
"@polkadot/api-derive": "10.12.6",
"@polkadot/api": "11.1.1",
"@polkadot/api-derive": "11.1.1",
"@polkadot/keyring": "12.6.2",
"@polkadot/rpc-provider": "10.12.6",
"@polkadot/types": "10.12.6",
"@polkadot/types-codec": "10.12.6",
"@polkadot/rpc-provider": "11.1.1",
"@polkadot/types": "11.1.1",
"@polkadot/types-codec": "11.1.1",
"@polkadot/util": "12.6.2",
"@polkadot/util-crypto": "12.6.2",
"bottleneck": "2.19.5",
Expand All @@ -65,31 +70,31 @@
"colors": "1.4.0",
"debug": "4.3.4",
"dotenv": "16.4.5",
"ethers": "6.11.1",
"inquirer": "9.2.17",
"ethers": "6.12.1",
"inquirer": "9.2.22",
"inquirer-press-to-continue": "1.2.0",
"node-fetch": "3.3.2",
"rlp": "3.0.0",
"semver": "7.6.0",
"viem": "2.9.9",
"vitest": "1.4.0",
"web3": "4.7.0",
"ws": "8.16.0",
"yaml": "2.4.1",
"semver": "7.6.2",
"viem": "2.12.0",
"vitest": "1.6.0",
"web3": "4.8.0",
"ws": "8.17.0",
"yaml": "2.4.2",
"yargs": "17.7.2"
},
"peerDependencies": {
"@polkadot/api": "^10.11.2",
"vitest": "^1.2.2"
},
"devDependencies": {
"@biomejs/biome": "1.6.4",
"@biomejs/biome": "1.7.3",
"@types/debug": "4.1.12",
"@types/node": "20.12.4",
"@types/node": "20.12.12",
"@types/ws": "^8.5.10",
"@types/yargs": "17.0.32",
"tsup": "8.0.2",
"typescript": "5.4.3"
"typescript": "5.4.5"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 9f2bcd7

Please sign in to comment.