From f88cb0cd50eeb08d0bffc3929eee867c8fc95545 Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Thu, 23 Jan 2025 11:14:04 +1100 Subject: [PATCH] chore: format --- pnpm-lock.yaml | 66 +++++++---------------- src/chains/definitions/bitlayer.ts | 6 +-- src/chains/definitions/bitlayerTestnet.ts | 4 +- src/errors/contract.test.ts | 12 ++--- 4 files changed, 31 insertions(+), 57 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2db3ee93b7..ff3b1d12d9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -56,7 +56,7 @@ importers: version: 20.16.12 '@vitest/coverage-v8': specifier: ^1.0.4 - version: 1.0.4(vitest@1.0.4(@types/node@20.16.12)(@vitest/ui@1.0.4)(terser@5.36.0)) + version: 1.0.4(vitest@1.0.4) '@vitest/ui': specifier: ^1.0.4 version: 1.0.4(vitest@1.0.4) @@ -175,7 +175,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -188,7 +188,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -201,7 +201,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -214,7 +214,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -227,7 +227,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -246,7 +246,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^18.0.27 @@ -274,7 +274,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^18.0.27 @@ -296,7 +296,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -309,7 +309,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -328,7 +328,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^18.0.27 @@ -350,7 +350,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -363,7 +363,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -376,7 +376,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -389,7 +389,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -436,7 +436,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^18.0.27 @@ -464,7 +464,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^18.0.27 @@ -486,7 +486,7 @@ importers: dependencies: viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -505,7 +505,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.22.10(typescript@5.6.2)(zod@3.23.8) + version: 2.22.11(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^18.0.27 @@ -2639,7 +2639,6 @@ packages: bun@1.1.30: resolution: {integrity: sha512-ysRL1pq10Xba0jqVLPrKU3YIv0ohfp3cTajCPtpjCyppbn3lfiAVNpGoHfyaxS17OlPmWmR67UZRPw/EueQuug==} - cpu: [arm64, x64] os: [darwin, linux, win32] hasBin: true @@ -5431,14 +5430,6 @@ packages: typescript: optional: true - viem@2.22.9: - resolution: {integrity: sha512-2yy46qYhcdo8GZggQ3Zoq9QCahI0goddzpVI/vSnTpcClQBSDxYRCuAqRzzLqjvJ7hS0UYgplC7eRkM2sYgflw==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - viem@file:src: resolution: {directory: src, type: directory} peerDependencies: @@ -7575,7 +7566,7 @@ snapshots: transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@1.0.4(vitest@1.0.4(@types/node@20.16.12)(@vitest/ui@1.0.4)(terser@5.36.0))': + '@vitest/coverage-v8@1.0.4(vitest@1.0.4)': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -11296,23 +11287,6 @@ snapshots: - utf-8-validate - zod - viem@2.22.9(typescript@5.6.2)(zod@3.23.8): - dependencies: - '@noble/curves': 1.7.0 - '@noble/hashes': 1.6.1 - '@scure/bip32': 1.6.0 - '@scure/bip39': 1.5.0 - abitype: 1.0.7(typescript@5.6.2)(zod@3.23.8) - isows: 1.0.6(ws@8.18.0) - ox: 0.6.5(typescript@5.6.2)(zod@3.23.8) - ws: 8.18.0 - optionalDependencies: - typescript: 5.6.2 - transitivePeerDependencies: - - bufferutil - - utf-8-validate - - zod - viem@file:src(typescript@5.6.2)(zod@3.23.8): dependencies: '@noble/curves': 1.7.0 diff --git a/src/chains/definitions/bitlayer.ts b/src/chains/definitions/bitlayer.ts index eedd19e53d..727fd6531f 100644 --- a/src/chains/definitions/bitlayer.ts +++ b/src/chains/definitions/bitlayer.ts @@ -22,8 +22,8 @@ export const bitlayer = /*#__PURE__*/ defineChain({ }, contracts: { multicall3: { - address: "0x5B256fE9e993902eCe49D138a5b1162cBb529474", + address: '0x5B256fE9e993902eCe49D138a5b1162cBb529474', blockCreated: 2421963, - } - } + }, + }, }) diff --git a/src/chains/definitions/bitlayerTestnet.ts b/src/chains/definitions/bitlayerTestnet.ts index f39dad50d0..c27fbdc675 100644 --- a/src/chains/definitions/bitlayerTestnet.ts +++ b/src/chains/definitions/bitlayerTestnet.ts @@ -22,9 +22,9 @@ export const bitlayerTestnet = /*#__PURE__*/ defineChain({ }, contracts: { multicall3: { - address: "0x5B256fE9e993902eCe49D138a5b1162cBb529474", + address: '0x5B256fE9e993902eCe49D138a5b1162cBb529474', blockCreated: 4135671, - } + }, }, testnet: true, }) diff --git a/src/errors/contract.test.ts b/src/errors/contract.test.ts index 88211e7907..b741b57bf6 100644 --- a/src/errors/contract.test.ts +++ b/src/errors/contract.test.ts @@ -330,7 +330,7 @@ describe('ContractFunctionRevertedError', () => { Version: viem@x.y.z] `) - expect(err.rawData).be.undefined + expect(err.raw).be.undefined }) test('data: Error(string)', () => { @@ -348,7 +348,7 @@ describe('ContractFunctionRevertedError', () => { Version: viem@x.y.z] `) - expect(err.rawData).toEqual(data) + expect(err.raw).toEqual(data) }) test('data: Panic(uint256)', () => { @@ -366,7 +366,7 @@ describe('ContractFunctionRevertedError', () => { Version: viem@x.y.z] `) - expect(err.rawData).toEqual(data) + expect(err.raw).toEqual(data) }) test('data: custom error', () => { @@ -386,7 +386,7 @@ describe('ContractFunctionRevertedError', () => { Version: viem@x.y.z] `) - expect(err.rawData).toEqual(data) + expect(err.raw).toEqual(data) }) test('data: zero data', () => { @@ -402,7 +402,7 @@ describe('ContractFunctionRevertedError', () => { Version: viem@x.y.z] `) - expect(err.rawData).toEqual(data) + expect(err.raw).toEqual(data) }) test('data: error signature does not exist on ABI', () => { @@ -427,6 +427,6 @@ describe('ContractFunctionRevertedError', () => { Version: viem@x.y.z] `) - expect(err.rawData).toEqual(data) + expect(err.raw).toEqual(data) }) })