diff --git a/.changeset/bright-falcons-march.md b/.changeset/bright-falcons-march.md new file mode 100644 index 0000000000..7352dac6b2 --- /dev/null +++ b/.changeset/bright-falcons-march.md @@ -0,0 +1,5 @@ +--- +"@wagmi/core": minor +--- + +**Breaking (@wagmi/core/tempo):** Updated Tempo APIs for viem 2.54.0: token balance and allowance reads now return `Amount` objects. diff --git a/.changeset/curly-turtles-move.md b/.changeset/curly-turtles-move.md new file mode 100644 index 0000000000..91d9192375 --- /dev/null +++ b/.changeset/curly-turtles-move.md @@ -0,0 +1,5 @@ +--- +"wagmi": minor +--- + +**Breaking (wagmi/tempo):** Updated Tempo APIs for viem 2.54.0: token balance and allowance reads now return `Amount` objects. diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index d6e71d576b..dd23ecc8fd 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -38,7 +38,7 @@ jobs: fetch-depth: 0 - name: Install dependencies - uses: wevm/actions/.github/actions/pnpm@f95dc1dadcba18fe3f02b8205e653e98e4a93516 + uses: wevm/actions/.github/actions/pnpm@2a55cccb5234b9fa0bbd87c1eaba45571c466a68 with: node-version: 24.5 skip-cache: true # avoid cache poisoning attacks @@ -71,7 +71,7 @@ jobs: uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - name: Install dependencies - uses: wevm/actions/.github/actions/pnpm@f95dc1dadcba18fe3f02b8205e653e98e4a93516 + uses: wevm/actions/.github/actions/pnpm@2a55cccb5234b9fa0bbd87c1eaba45571c466a68 with: node-version: 24.5 skip-cache: true # avoid cache poisoning attacks @@ -101,7 +101,7 @@ jobs: uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - name: Install dependencies - uses: wevm/actions/.github/actions/pnpm@f95dc1dadcba18fe3f02b8205e653e98e4a93516 + uses: wevm/actions/.github/actions/pnpm@2a55cccb5234b9fa0bbd87c1eaba45571c466a68 with: node-version: 24.5 skip-cache: true # avoid cache poisoning attacks diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 6634c53d07..55e6f9e213 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -31,7 +31,7 @@ jobs: uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - name: Install dependencies - uses: wevm/actions/.github/actions/pnpm@f7ad7f00e16e73322562922c241f21f0c7ffbbec + uses: wevm/actions/.github/actions/pnpm@2a55cccb5234b9fa0bbd87c1eaba45571c466a68 with: node-version: 24.5 @@ -55,7 +55,7 @@ jobs: uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - name: Install dependencies - uses: wevm/actions/.github/actions/pnpm@f7ad7f00e16e73322562922c241f21f0c7ffbbec + uses: wevm/actions/.github/actions/pnpm@2a55cccb5234b9fa0bbd87c1eaba45571c466a68 with: node-version: 24.5 diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 32716b1ce1..66d043c488 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -20,7 +20,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Install dependencies - uses: wevm/actions/.github/actions/pnpm@f7ad7f00e16e73322562922c241f21f0c7ffbbec + uses: wevm/actions/.github/actions/pnpm@2a55cccb5234b9fa0bbd87c1eaba45571c466a68 with: node-version: 24.5 @@ -59,7 +59,7 @@ jobs: uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - name: Install dependencies - uses: wevm/actions/.github/actions/pnpm@f7ad7f00e16e73322562922c241f21f0c7ffbbec + uses: wevm/actions/.github/actions/pnpm@2a55cccb5234b9fa0bbd87c1eaba45571c466a68 with: node-version: 24.5 @@ -82,14 +82,14 @@ jobs: strategy: matrix: typescript-version: ['5.9.3', '6.0.3', 'latest'] - viem-version: ['2.51.0', 'latest'] + viem-version: ['2.54.0', 'latest'] steps: - name: Clone repository uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - name: Install dependencies - uses: wevm/actions/.github/actions/pnpm@f7ad7f00e16e73322562922c241f21f0c7ffbbec + uses: wevm/actions/.github/actions/pnpm@2a55cccb5234b9fa0bbd87c1eaba45571c466a68 with: node-version: 24.5 @@ -126,7 +126,7 @@ jobs: uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 - name: Install dependencies - uses: wevm/actions/.github/actions/pnpm@f7ad7f00e16e73322562922c241f21f0c7ffbbec + uses: wevm/actions/.github/actions/pnpm@2a55cccb5234b9fa0bbd87c1eaba45571c466a68 with: node-version: 24.5 diff --git a/package.json b/package.json index 6f135381d4..44aff6e122 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "solid-js": "catalog:", "testcontainers": "^11.13.0", "typescript": "^5.9.3", - "viem": "2.51.0", + "viem": "2.54.0", "vite": "catalog:", "vite-plugin-react-fallback-throttle": "^0.1.3", "vite-plugin-solid": "catalog:", diff --git a/packages/core/src/actions/call.test.ts b/packages/core/src/actions/call.test.ts index cf632a79e6..8e616c22bf 100644 --- a/packages/core/src/actions/call.test.ts +++ b/packages/core/src/actions/call.test.ts @@ -80,7 +80,7 @@ test('insufficient funds', async () => { value: 100000 ETH Details: Insufficient funds for gas * price + value - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) @@ -103,7 +103,7 @@ test('maxFeePerGas less than maxPriorityFeePerGas', async () => { maxFeePerGas: 20 gwei maxPriorityFeePerGas: 22 gwei - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) @@ -123,7 +123,7 @@ test('contract revert (contract error)', async () => { data: 0xa0712d6800000000000000000000000000000000000000000000000000000000000001a4 Details: execution reverted: Token ID is taken - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) @@ -143,6 +143,6 @@ test('contract revert (insufficient params)', async () => { data: 0xa0712d68 Details: execution reverted - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) diff --git a/packages/core/src/actions/connect.test.ts b/packages/core/src/actions/connect.test.ts index bf17a1b86f..945d43c433 100644 --- a/packages/core/src/actions/connect.test.ts +++ b/packages/core/src/actions/connect.test.ts @@ -74,7 +74,7 @@ test('behavior: user rejected request', async () => { [UserRejectedRequestError: User rejected the request. Details: Failed to connect. - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) diff --git a/packages/core/src/actions/deployContract.test.ts b/packages/core/src/actions/deployContract.test.ts index 3b782ed7f3..2bdd96f40c 100644 --- a/packages/core/src/actions/deployContract.test.ts +++ b/packages/core/src/actions/deployContract.test.ts @@ -65,7 +65,7 @@ test('behavior: no funds', async () => { data: 0x608060405260405180602001604052806000815250600b90805190602001906200002b92919062000484565b506000600f60006101000a81548160ff0219169083151502179055503480156200005457600080fd5b50604051620046d0380380620046d0833981810160405260808110156200007a57600080fd5b81019080805160405193929190846401000000008211156200009b57600080fd5b83820191506020820185811115620000b257600080fd5b8251866001820283011164010000000082111715620000d057600080fd5b8083526020830192505050908051906020019080838360005b8381101562000106578082015181840152602081019050620000e9565b50505050905090810190601f168015620001345780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200015857600080fd5b838201915060208201858111156200016f57600080fd5b82518660018202830111640100000000821117156200018d57600080fd5b8083526020830192505050908051906020019080838360005b83811015620001c3578082015181840152602081019050620001a6565b50505050905090810190601f168015620001f15780820380516001836020036101000a031916815260200191505b5060405260200180519060200190929190805190602001909291905050508383620002296301ffc9a760e01b6200037360201b60201c565b81600690805190602001906200024192919062000484565b5080600790805190602001906200025a92919062000484565b50620002736380ac58cd60e01b6200037360201b60201c565b6200028b635b5e139f60e01b6200037360201b60201c565b620002a363780e9d6360e01b6200037360201b60201c565b50506000620002b76200047c60201b60201c565b905080600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600e81905550620bdd808101601081905550505050506200052a565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000410576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433136353a20696e76616c696420696e746572666163652069640000000081525060200191505060405180910390fd5b6001600080837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600033905090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004c757805160ff1916838001178555620004f8565b82800160010185558215620004f8579182015b82811115620004f7578251825591602001919060010190620004da565b5b5090506200050791906200050b565b5090565b5b80821115620005265760008160009055506001016200050c565b5090565b614196806200053a6000396000f3fe60806040526004361061021a5760003560e01c80636c0360eb11610123578063b0f67427116100ab578063e36d64981161006f578063e36d649814610ddf578063e985e9c514610e0a578063e986655014610e91578063eb8d244414610ea8578063f2fde38b14610ed55761021a565b8063b0f6742714610bac578063b88d4fde14610bc3578063bb8a16bd14610cd5578063c87b56dd14610d00578063cb774d4714610db45761021a565b80637d17fcbe116100f25780637d17fcbe14610a395780638da5cb5b14610a5057806395d89b4114610a91578063a22cb46514610b21578063a723533e14610b7e5761021a565b80636c0360eb1461090257806370a0823114610992578063715018a6146109f75780637a3f451e14610a0e5761021a565b80632f745c59116101a65780634f6ccce7116101755780634f6ccce7146106cb57806355f804b31461071a578063571dff3b146107e2578063607e20e31461080d5780636352211e1461089d5761021a565b80632f745c59146105b357806334918dfd146106225780633ccfd60b1461063957806342842e0e146106505761021a565b8063095ea7b3116101ed578063095ea7b3146103bf578063109695231461041a57806318160ddd146104e257806318e20a381461050d57806323b872dd146105385761021a565b8063018a2c371461021f57806301ffc9a71461025a57806306fdde03146102ca578063081812fc1461035a575b600080fd5b34801561022b57600080fd5b506102586004803603602081101561024257600080fd5b8101908080359060200190929190505050610f26565b005b34801561026657600080fd5b506102b26004803603602081101561027d57600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610fdf565b60405180821515815260200191505060405180910390f35b3480156102d657600080fd5b506102df611046565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561031f578082015181840152602081019050610304565b50505050905090810190601f16801561034c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561036657600080fd5b506103936004803603602081101561037d57600080fd5b81019080803590602001909291905050506110e8565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103cb57600080fd5b50610418600480360360408110156103e257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611183565b005b34801561042657600080fd5b506104e06004803603602081101561043d57600080fd5b810190808035906020019064010000000081111561045a57600080fd5b82018360208201111561046c57600080fd5b8035906020019184600183028401116401000000008311171561048e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506112c7565b005b3480156104ee57600080fd5b506104f7611390565b6040518082815260200191505060405180910390f35b34801561051957600080fd5b506105226113a1565b6040518082815260200191505060405180910390f35b34801561054457600080fd5b506105b16004803603606081101561055b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506113a7565b005b3480156105bf57600080fd5b5061060c600480360360408110156105d657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061141d565b6040518082815260200191505060405180910390f35b34801561062e57600080fd5b50610637611478565b005b34801561064557600080fd5b5061064e611553565b005b34801561065c57600080fd5b506106c96004803603606081101561067357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611651565b005b3480156106d757600080fd5b50610704600480360360208110156106ee57600080fd5b8101908080359060200190929190505050611671565b6040518082815260200191505060405180910390f35b34801561072657600080fd5b506107e06004803603602081101561073d57600080fd5b810190808035906020019064010000000081111561075a57600080fd5b82018360208201111561076c57600080fd5b8035906020019184600183028401116401000000008311171561078e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611694565b005b3480156107ee57600080fd5b506107f761174f565b6040518082815260200191505060405180910390f35b34801561081957600080fd5b50610822611754565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610862578082015181840152602081019050610847565b50505050905090810190601f16801561088f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156108a957600080fd5b506108d6600480360360208110156108c057600080fd5b81019080803590602001909291905050506117f2565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561090e57600080fd5b50610917611829565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561095757808201518184015260208101905061093c565b50505050905090810190601f1680156109845780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561099e57600080fd5b506109e1600480360360208110156109b557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506118cb565b6040518082815260200191505060405180910390f35b348015610a0357600080fd5b50610a0c6119a0565b005b348015610a1a57600080fd5b50610a23611b10565b6040518082815260200191505060405180910390f35b348015610a4557600080fd5b50610a4e611b1c565b005b348015610a5c57600080fd5b50610a65611c4c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610a9d57600080fd5b50610aa6611c76565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610ae6578082015181840152602081019050610acb565b50505050905090810190601f168015610b135780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610b2d57600080fd5b50610b7c60048036036040811015610b4457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190505050611d18565b005b610baa60048036036020811015610b9457600080fd5b8101908080359060200190929190505050611ece565b005b348015610bb857600080fd5b50610bc1612127565b005b348015610bcf57600080fd5b50610cd360048036036080811015610be657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190640100000000811115610c4d57600080fd5b820183602082011115610c5f57600080fd5b80359060200191846001830284011164010000000083111715610c8157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061220b565b005b348015610ce157600080fd5b50610cea612283565b6040518082815260200191505060405180910390f35b348015610d0c57600080fd5b50610d3960048036036020811015610d2357600080fd5b8101908080359060200190929190505050612289565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610d79578082015181840152602081019050610d5e565b50505050905090810190601f168015610da65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610dc057600080fd5b50610dc961255a565b6040518082815260200191505060405180910390f35b348015610deb57600080fd5b50610df4612560565b6040518082815260200191505060405180910390f35b348015610e1657600080fd5b50610e7960048036036040811015610e2d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612566565b60405180821515815260200191505060405180910390f35b348015610e9d57600080fd5b50610ea66125fa565b005b348015610eb457600080fd5b50610ebd612764565b60405180821515815260200191505060405180910390f35b348015610ee157600080fd5b50610f2460048036036020811015610ef857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612777565b005b610f2e61296c565b73ffffffffffffffffffffffffffffffffffffffff16610f4c611c4c565b73ffffffffffffffffffffffffffffffffffffffff1614610fd5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8060108190555050565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110de5780601f106110b3576101008083540402835291602001916110de565b820191906000526020600020905b8154815290600101906020018083116110c157829003601f168201915b5050505050905090565b60006110f382612974565b611148576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c81526020018061408b602c913960400191505060405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061118e826117f2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611215576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061410f6021913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661123461296c565b73ffffffffffffffffffffffffffffffffffffffff16148061126357506112628161125d61296c565b612566565b5b6112b8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180613f956038913960400191505060405180910390fd5b6112c28383612991565b505050565b6112cf61296c565b73ffffffffffffffffffffffffffffffffffffffff166112ed611c4c565b73ffffffffffffffffffffffffffffffffffffffff1614611376576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600b908051906020019061138c929190613de6565b5050565b600061139c6002612a4a565b905090565b60105481565b6113b86113b261296c565b82612a5f565b61140d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806141306031913960400191505060405180910390fd5b611418838383612b53565b505050565b600061147082600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612d9690919063ffffffff16565b905092915050565b61148061296c565b73ffffffffffffffffffffffffffffffffffffffff1661149e611c4c565b73ffffffffffffffffffffffffffffffffffffffff1614611527576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600f60009054906101000a900460ff1615600f60006101000a81548160ff021916908315150217905550565b61155b61296c565b73ffffffffffffffffffffffffffffffffffffffff16611579611c4c565b73ffffffffffffffffffffffffffffffffffffffff1614611602576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561164d573d6000803e3d6000fd5b5050565b61166c8383836040518060200160405280600081525061220b565b505050565b600080611688836002612db090919063ffffffff16565b50905080915050919050565b61169c61296c565b73ffffffffffffffffffffffffffffffffffffffff166116ba611c4c565b73ffffffffffffffffffffffffffffffffffffffff1614611743576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61174c81612ddc565b50565b601481565b600b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117ea5780601f106117bf576101008083540402835291602001916117ea565b820191906000526020600020905b8154815290600101906020018083116117cd57829003601f168201915b505050505081565b600061182282604051806060016040528060298152602001613ff7602991396002612df69092919063ffffffff16565b9050919050565b606060098054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156118c15780601f10611896576101008083540402835291602001916118c1565b820191906000526020600020905b8154815290600101906020018083116118a457829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611952576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180613fcd602a913960400191505060405180910390fd5b611999600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612e15565b9050919050565b6119a861296c565b73ffffffffffffffffffffffffffffffffffffffff166119c6611c4c565b73ffffffffffffffffffffffffffffffffffffffff1614611a4f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b67011c37937e08000081565b611b2461296c565b73ffffffffffffffffffffffffffffffffffffffff16611b42611c4c565b73ffffffffffffffffffffffffffffffffffffffff1614611bcb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600d5414611c43576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f5374617274696e6720696e64657820697320616c72656164792073657400000081525060200191505060405180910390fd5b43600c81905550565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d0e5780601f10611ce357610100808354040283529160200191611d0e565b820191906000526020600020905b815481529060010190602001808311611cf157829003601f168201915b5050505050905090565b611d2061296c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dc1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f4552433732313a20617070726f766520746f2063616c6c65720000000000000081525060200191505060405180910390fd5b8060056000611dce61296c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e7b61296c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b600f60009054906101000a900460ff16611f50576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f53616c65206d7573742062652061637469766520746f206d696e74204170650081525060200191505060405180910390fd5b6014811115611faa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180613f746021913960400191505060405180910390fd5b600e54611fc782611fb9611390565b612e2a90919063ffffffff16565b111561201e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806140426028913960400191505060405180910390fd5b3461203a8267011c37937e080000612eb290919063ffffffff16565b11156120ae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45746865722076616c75652073656e74206973206e6f7420636f72726563740081525060200191505060405180910390fd5b60005b818110156120ef5760006120c3611390565b9050600e546120d0611390565b10156120e1576120e03382612f38565b5b5080806001019150506120b1565b506000600c541480156121175750600e54612108611390565b148061211657506010544210155b5b156121245743600c819055505b50565b61212f61296c565b73ffffffffffffffffffffffffffffffffffffffff1661214d611c4c565b73ffffffffffffffffffffffffffffffffffffffff16146121d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60006121e0611390565b905060005b601e811015612207576121fa33828401612f38565b80806001019150506121e5565b5050565b61221c61221661296c565b83612a5f565b612271576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806141306031913960400191505060405180910390fd5b61227d84848484612f56565b50505050565b600e5481565b606061229482612974565b6122e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806140e0602f913960400191505060405180910390fd5b6060600860008481526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156123925780601f1061236757610100808354040283529160200191612392565b820191906000526020600020905b81548152906001019060200180831161237557829003601f168201915b5050505050905060606123a3611829565b90506000815114156123b9578192505050612555565b60008251111561248a5780826040516020018083805190602001908083835b602083106123fb57805182526020820191506020810190506020830392506123d8565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b6020831061244c5780518252602082019150602081019050602083039250612429565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050612555565b8061249485612fc8565b6040516020018083805190602001908083835b602083106124ca57805182526020820191506020810190506020830392506124a7565b6001836020036101000a03801982511681845116808217855250505050505090500182805190602001908083835b6020831061251b57805182526020820191506020810190506020830392506124f8565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052925050505b919050565b600d5481565b600c5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600d5414612672576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f5374617274696e6720696e64657820697320616c72656164792073657400000081525060200191505060405180910390fd5b6000600c5414156126eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f5374617274696e6720696e64657820626c6f636b206d7573742062652073657481525060200191505060405180910390fd5b600e54600c544060001c816126fc57fe5b06600d8190555060ff61271a600c544361310f90919063ffffffff16565b111561273a57600e54600143034060001c8161273257fe5b06600d819055505b6000600d5414156127625761275b6001600d54612e2a90919063ffffffff16565b600d819055505b565b600f60009054906101000a900460ff1681565b61277f61296c565b73ffffffffffffffffffffffffffffffffffffffff1661279d611c4c565b73ffffffffffffffffffffffffffffffffffffffff1614612826576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128ac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613ed86026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600061298a82600261319290919063ffffffff16565b9050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a04836117f2565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a58826000016131ac565b9050919050565b6000612a6a82612974565b612abf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180613f48602c913960400191505060405180910390fd5b6000612aca836117f2565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b3957508373ffffffffffffffffffffffffffffffffffffffff16612b21846110e8565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b4a5750612b498185612566565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b73826117f2565b73ffffffffffffffffffffffffffffffffffffffff1614612bdf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806140b76029913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180613efe6024913960400191505060405180910390fd5b612c708383836131bd565b612c7b600082612991565b612ccc81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206131c290919063ffffffff16565b50612d1e81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206131dc90919063ffffffff16565b50612d35818360026131f69092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612da5836000018361322b565b60001c905092915050565b600080600080612dc386600001866132ae565b915091508160001c8160001c9350935050509250929050565b8060099080519060200190612df2929190613de6565b5050565b6000612e09846000018460001b84613347565b60001c90509392505050565b6000612e238260000161343d565b9050919050565b600080828401905083811015612ea8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600080831415612ec55760009050612f32565b6000828402905082848281612ed657fe5b0414612f2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061406a6021913960400191505060405180910390fd5b809150505b92915050565b612f5282826040518060200160405280600081525061344e565b5050565b612f61848484612b53565b612f6d848484846134bf565b612fc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613ea66032913960400191505060405180910390fd5b50505050565b60606000821415613010576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061310a565b600082905060005b6000821461303a578080600101915050600a828161303257fe5b049150613018565b60608167ffffffffffffffff8111801561305357600080fd5b506040519080825280601f01601f1916602001820160405280156130865781602001600182028036833780820191505090505b50905060006001830390508593505b6000841461310257600a84816130a757fe5b0660300160f81b828280600190039350815181106130c157fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a84816130fa57fe5b049350613095565b819450505050505b919050565b600082821115613187576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60006131a4836000018360001b6136d8565b905092915050565b600081600001805490509050919050565b505050565b60006131d4836000018360001b6136fb565b905092915050565b60006131ee836000018360001b6137e3565b905092915050565b6000613222846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613853565b90509392505050565b60008183600001805490501161328c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613e846022913960400191505060405180910390fd5b82600001828154811061329b57fe5b9060005260206000200154905092915050565b60008082846000018054905011613310576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806140206022913960400191505060405180910390fd5b600084600001848154811061332157fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000808460010160008581526020019081526020016000205490506000811415839061340e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156133d35780820151818401526020810190506133b8565b50505050905090810190601f1680156134005780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5084600001600182038154811061342157fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b613458838361392f565b61346560008484846134bf565b6134ba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526032815260200180613ea66032913960400191505060405180910390fd5b505050565b60006134e08473ffffffffffffffffffffffffffffffffffffffff16613b23565b6134ed57600190506136d0565b606061365763150b7a0260e01b61350261296c565b888787604051602401808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561358657808201518184015260208101905061356b565b50505050905090810190601f1680156135b35780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001613ea6603291398773ffffffffffffffffffffffffffffffffffffffff16613b369092919063ffffffff16565b9050600081806020019051602081101561367057600080fd5b8101908080519060200190929190505050905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b600080836001016000848152602001908152602001600020541415905092915050565b600080836001016000848152602001908152602001600020549050600081146137d7576000600182039050600060018660000180549050039050600086600001828154811061374657fe5b906000526020600020015490508087600001848154811061376357fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061379b57fe5b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506137dd565b60009150505b92915050565b60006137ef8383613b4e565b61384857826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061384d565b600090505b92915050565b60008084600101600085815260200190815260200160002054905060008114156138fa57846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613928565b8285600001600183038154811061390d57fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156139d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4552433732313a206d696e7420746f20746865207a65726f206164647265737381525060200191505060405180910390fd5b6139db81612974565b15613a4e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081525060200191505060405180910390fd5b613a5a600083836131bd565b613aab81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206131dc90919063ffffffff16565b50613ac2818360026131f69092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b6060613b458484600085613b71565b90509392505050565b600080836001016000848152602001908152602001600020541415905092915050565b606082471015613bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180613f226026913960400191505060405180910390fd5b613bd585613b23565b613c47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310613c975780518252602082019150602081019050602083039250613c74565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613cf9576040519150601f19603f3d011682016040523d82523d6000602084013e613cfe565b606091505b5091509150613d0e828286613d1a565b92505050949350505050565b60608315613d2a57829050613ddf565b600083511115613d3d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613da4578082015181840152602081019050613d89565b50505050905090810190601f168015613dd15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613e2757805160ff1916838001178555613e55565b82800160010185558215613e55579182015b82811115613e54578251825591602001919060010190613e39565b5b509050613e629190613e66565b5090565b5b80821115613e7f576000816000905550600101613e67565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e43616e206f6e6c79206d696e7420323020746f6b656e7320617420612074696d654552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473507572636861736520776f756c6420657863656564206d617820737570706c79206f662041706573536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564a2646970667358221220b0e64d1fa6c4dbeb9c6f54607d7e1996943fe27624a80652f57b53fda084621b64736f6c63430007000033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000006080e6d70000000000000000000000000000000000000000000000000000000000000011426f7265644170655961636874436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044241594300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000010f2c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014426f72656420417065205761676d6920436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000044241594300000000000000000000000000000000000000000000000000000000 Details: Insufficient funds for gas * price + value - Version: viem@2.51.0] + Version: viem@2.54.0] `) await disconnect(config, { connector }) diff --git a/packages/core/src/actions/readContracts.test.ts b/packages/core/src/actions/readContracts.test.ts index 34115a6f6e..b46d558a3c 100644 --- a/packages/core/src/actions/readContracts.test.ts +++ b/packages/core/src/actions/readContracts.test.ts @@ -382,7 +382,7 @@ test('throws if allowFailure=false & a contract method fails', async () => { Docs: https://viem.sh/docs/contract/readContract Details: execution reverted: ERC721Enumerable: owner index out of bounds - Version: viem@2.51.0] + Version: viem@2.54.0] `, ) }) @@ -436,7 +436,7 @@ test('allowFailure=true & a contract method fails', async () => { Docs: https://viem.sh/docs/contract/readContract Details: execution reverted: ERC721Enumerable: owner index out of bounds - Version: viem@2.51.0], + Version: viem@2.54.0], "result": undefined, "status": "failure", }, @@ -451,7 +451,7 @@ test('allowFailure=true & a contract method fails', async () => { Docs: https://viem.sh/docs/contract/readContract Details: execution reverted: ERC721Enumerable: owner index out of bounds - Version: viem@2.51.0], + Version: viem@2.54.0], "result": undefined, "status": "failure", }, @@ -489,7 +489,7 @@ test('throws if allowFailure=false & encoding contract function data fails', asy args: (1e+31) Docs: https://viem.sh/docs/contract/readContract - Version: viem@2.51.0] + Version: viem@2.54.0] `, ) }) @@ -548,7 +548,7 @@ test('allowFailure=true & encoding contract function data fails', async () => { args: (1e+31) Docs: https://viem.sh/docs/contract/readContract - Version: viem@2.51.0], + Version: viem@2.54.0], "result": undefined, "status": "failure", }, @@ -566,7 +566,7 @@ test('allowFailure=true & encoding contract function data fails', async () => { args: (1e+31) Docs: https://viem.sh/docs/contract/readContract - Version: viem@2.51.0], + Version: viem@2.54.0], "result": undefined, "status": "failure", }, @@ -604,7 +604,7 @@ test('should throw if allowFailure=false & a contract has no response', async () args: (0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC) Docs: https://viem.sh/docs/contract/readContract - Version: viem@2.51.0] + Version: viem@2.54.0] `, ) }) @@ -656,7 +656,7 @@ test('allowFailure=true & a contract has no response', async () => { args: (0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC) Docs: https://viem.sh/docs/contract/readContract - Version: viem@2.51.0], + Version: viem@2.54.0], "result": undefined, "status": "failure", }, diff --git a/packages/core/src/actions/sendTransaction.test.ts b/packages/core/src/actions/sendTransaction.test.ts index af083ce550..1b3a0d2aa9 100644 --- a/packages/core/src/actions/sendTransaction.test.ts +++ b/packages/core/src/actions/sendTransaction.test.ts @@ -88,7 +88,7 @@ test('behavior: value exceeds balance', async () => { value: 99999 ETH Details: Insufficient funds for gas * price + value - Version: viem@2.51.0] + Version: viem@2.54.0] `) await disconnect(config, { connector }) }) diff --git a/packages/core/src/actions/sendTransactionSync.test.ts b/packages/core/src/actions/sendTransactionSync.test.ts index c2b801ce1f..bbf2c0b585 100644 --- a/packages/core/src/actions/sendTransactionSync.test.ts +++ b/packages/core/src/actions/sendTransactionSync.test.ts @@ -92,7 +92,7 @@ test('behavior: value exceeds balance', async () => { value: 99999 ETH Details: Insufficient funds for gas * price + value - Version: viem@2.51.0] + Version: viem@2.54.0] `) await disconnect(config, { connector }) }) diff --git a/packages/core/src/actions/signMessage.test.ts b/packages/core/src/actions/signMessage.test.ts index ad6c46c379..8bf6c356c5 100644 --- a/packages/core/src/actions/signMessage.test.ts +++ b/packages/core/src/actions/signMessage.test.ts @@ -51,7 +51,7 @@ test('behavior: user rejected request', async () => { [UserRejectedRequestError: User rejected the request. Details: Failed to sign message. - Version: viem@2.51.0] + Version: viem@2.54.0] `) await disconnect(config, { connector: connector_ }) }) diff --git a/packages/core/src/actions/signTypedData.test.ts b/packages/core/src/actions/signTypedData.test.ts index 275cd1edd8..cbcf24117c 100644 --- a/packages/core/src/actions/signTypedData.test.ts +++ b/packages/core/src/actions/signTypedData.test.ts @@ -46,7 +46,7 @@ test('behavior: user rejected request', async () => { [UserRejectedRequestError: User rejected the request. Details: Failed to sign typed data. - Version: viem@2.51.0] + Version: viem@2.54.0] `) await disconnect(config, { connector: connector_ }) }) diff --git a/packages/core/src/actions/switchChain.test.ts b/packages/core/src/actions/switchChain.test.ts index c7af99eb28..54995c5987 100644 --- a/packages/core/src/actions/switchChain.test.ts +++ b/packages/core/src/actions/switchChain.test.ts @@ -43,7 +43,7 @@ test('behavior: user rejected request', async () => { [UserRejectedRequestError: User rejected the request. Details: Failed to switch chain. - Version: viem@2.51.0] + Version: viem@2.54.0] `) await disconnect(config, { connector: connector_ }) }) diff --git a/packages/core/src/actions/waitForTransactionReceipt.test.ts b/packages/core/src/actions/waitForTransactionReceipt.test.ts index ada00a12e2..f2699a4891 100644 --- a/packages/core/src/actions/waitForTransactionReceipt.test.ts +++ b/packages/core/src/actions/waitForTransactionReceipt.test.ts @@ -54,6 +54,6 @@ test('behavior: transaction reverted', async () => { nonce: 43 Details: execution reverted: PartyBid::claim: contribution already claimed - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) diff --git a/packages/core/src/connectors/mock.test.ts b/packages/core/src/connectors/mock.test.ts index 9d393c5c08..1cc2f00a1e 100644 --- a/packages/core/src/connectors/mock.test.ts +++ b/packages/core/src/connectors/mock.test.ts @@ -64,7 +64,7 @@ test('behavior: features.connectError', async () => { [UserRejectedRequestError: User rejected the request. Details: Failed to connect. - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) @@ -92,7 +92,7 @@ test('behavior: connector.getProvider request errors', async () => { [UserRejectedRequestError: User rejected the request. Details: Failed to sign typed data. - Version: viem@2.51.0] + Version: viem@2.54.0] `) await expect( @@ -104,7 +104,7 @@ test('behavior: connector.getProvider request errors', async () => { [UserRejectedRequestError: User rejected the request. Details: Failed to switch chain. - Version: viem@2.51.0] + Version: viem@2.54.0] `) await expect( @@ -116,7 +116,7 @@ test('behavior: connector.getProvider request errors', async () => { [UserRejectedRequestError: User rejected the request. Details: Failed to switch chain. - Version: viem@2.51.0] + Version: viem@2.54.0] `) await expect( @@ -128,7 +128,7 @@ test('behavior: connector.getProvider request errors', async () => { [UserRejectedRequestError: User rejected the request. Details: Failed to sign message. - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) diff --git a/packages/core/src/tempo/actions/dex.test.ts b/packages/core/src/tempo/actions/dex.test.ts index 586f65e577..9b84f5722a 100644 --- a/packages/core/src/tempo/actions/dex.test.ts +++ b/packages/core/src/tempo/actions/dex.test.ts @@ -46,7 +46,7 @@ describe.skip('flaky: merge unblock', () => { }) // Should have received base tokens - expect(baseBalanceAfter).toBeGreaterThan(baseBalanceBefore) + expect(baseBalanceAfter.amount).toBeGreaterThan(baseBalanceBefore.amount) }) test('behavior: respects maxAmountIn', async () => { @@ -985,15 +985,15 @@ describe.skip('flaky: merge unblock', () => { }) // Base token balance should be unchanged (we're buying base, not selling) - expect(baseBalanceAfter).toBe(baseBalanceBefore) + expect(baseBalanceAfter.amount).toBe(baseBalanceBefore.amount) // Quote token balance should decrease (escrowed for the bid) // Amount = orderAmount * (1 + tick/1000) for bids const expectedQuoteEscrowed = (orderAmount * BigInt(100000 + tick)) / BigInt(100000) - expect(quoteBalanceBefore - quoteBalanceAfter).toBeGreaterThanOrEqual( - expectedQuoteEscrowed, - ) + expect( + quoteBalanceBefore.amount - quoteBalanceAfter.amount, + ).toBeGreaterThanOrEqual(expectedQuoteEscrowed) }) test('behavior: multiple orders at same tick', async () => { @@ -1564,7 +1564,9 @@ describe.skip('flaky: merge unblock', () => { token: quote, account: account.address, }) - expect(walletBalanceAfter).toBeGreaterThan(walletBalanceBefore) + expect(walletBalanceAfter.amount).toBeGreaterThan( + walletBalanceBefore.amount, + ) }) }) }) diff --git a/packages/core/src/tempo/actions/token.test.ts b/packages/core/src/tempo/actions/token.test.ts index 769c94f70e..d58690d8cb 100644 --- a/packages/core/src/tempo/actions/token.test.ts +++ b/packages/core/src/tempo/actions/token.test.ts @@ -16,7 +16,7 @@ describe.skip('flaky: merge unblock', () => { token: addresses.alphaUsd, }) expect(allowance).toBeDefined() - expect(typeof allowance).toBe('bigint') + expect(typeof allowance.amount).toBe('bigint') }) describe('queryOptions', () => { @@ -28,7 +28,7 @@ describe.skip('flaky: merge unblock', () => { }) const allowance = await queryClient.fetchQuery(options) expect(allowance).toBeDefined() - expect(typeof allowance).toBe('bigint') + expect(typeof allowance.amount).toBe('bigint') }) }) }) @@ -40,8 +40,8 @@ describe.skip('flaky: merge unblock', () => { token: addresses.alphaUsd, }) expect(balance).toBeDefined() - expect(typeof balance).toBe('bigint') - expect(balance).toBeGreaterThan(0n) + expect(typeof balance.amount).toBe('bigint') + expect(balance.amount).toBeGreaterThan(0n) }) describe('queryOptions', () => { @@ -52,8 +52,8 @@ describe.skip('flaky: merge unblock', () => { }) const balance = await queryClient.fetchQuery(options) expect(balance).toBeDefined() - expect(typeof balance).toBe('bigint') - expect(balance).toBeGreaterThan(0n) + expect(typeof balance.amount).toBe('bigint') + expect(balance.amount).toBeGreaterThan(0n) }) }) }) diff --git a/packages/core/src/tempo/actions/zone.test.ts b/packages/core/src/tempo/actions/zone.test.ts index f7dae1c23c..9e94161c27 100644 --- a/packages/core/src/tempo/actions/zone.test.ts +++ b/packages/core/src/tempo/actions/zone.test.ts @@ -21,6 +21,25 @@ const revealTo = '0x0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798' as const let depositToken: Awaited>['token'] +function getPreparedEncryptedDeposit() { + return { + amount: 123_000n, + chainId: tempoLocal.id, + encrypted: { + ciphertext: '0x01', + ephemeralPubkeyX: + '0x0000000000000000000000000000000000000000000000000000000000000001', + ephemeralPubkeyYParity: 1, + nonce: '0x000000000000000000000000', + tag: '0x00000000000000000000000000000000', + }, + keyIndex: 0n, + portalAddress: zonePortalAddress, + token: depositToken, + zoneId: zoneInfo.zoneId, + } as const +} + beforeAll(async () => { await restart() ;({ token: depositToken } = await setupToken()) @@ -106,7 +125,7 @@ describe('depositSync', () => { spender: zonePortalAddress, token: depositToken, }), - ).toBe(amount) + ).toMatchObject({ amount }) }) }) @@ -125,6 +144,21 @@ describe('encryptedDeposit', () => { expect(hash).toBeDefined() }) + + test('parameters: prepared encrypted payload', async () => { + await connect(config, { + connector: config.connectors[0]!, + }) + + await expect( + zoneActions.encryptedDeposit( + config, + getPreparedEncryptedDeposit() as never, + ), + ).rejects.toThrow( + `No portal address configured for zone ${zoneInfo.zoneId} on chain ${tempoLocal.id}.`, + ) + }) }) describe('encryptedDepositSync', () => { @@ -149,7 +183,22 @@ describe('encryptedDepositSync', () => { spender: zonePortalAddress, token: depositToken, }), - ).toBe(amount) + ).toMatchObject({ amount }) + }) + + test('parameters: prepared encrypted payload', async () => { + await connect(config, { + connector: config.connectors[0]!, + }) + + await expect( + zoneActions.encryptedDepositSync( + config, + getPreparedEncryptedDeposit() as never, + ), + ).rejects.toThrow( + `No portal address configured for zone ${zoneInfo.zoneId} on chain ${tempoLocal.id}.`, + ) }) }) @@ -190,7 +239,7 @@ describe('requestWithdrawalSync', () => { spender: Addresses.zoneOutbox, token: zoneInfo.zoneTokens[0], }), - ).toBe(amount) + ).toMatchObject({ amount }) }) }) @@ -233,7 +282,7 @@ describe('requestVerifiableWithdrawalSync', () => { spender: Addresses.zoneOutbox, token: zoneInfo.zoneTokens[0], }), - ).toBe(amount) + ).toMatchObject({ amount }) }) }) diff --git a/packages/core/src/tempo/actions/zone.ts b/packages/core/src/tempo/actions/zone.ts index dfe87bd4b2..fcdf0c6736 100644 --- a/packages/core/src/tempo/actions/zone.ts +++ b/packages/core/src/tempo/actions/zone.ts @@ -746,6 +746,12 @@ export async function encryptedDeposit( const account_ = account ?? client.account if (!account_) throw new Error('`account` is required.') + if ('encrypted' in rest) + return Actions.zone.encryptedDeposit(client, { + ...rest, + chainId: resolvedChainId, + } as never) + const accountAddress = parseAccount(account_).address const { amount, @@ -875,6 +881,13 @@ export async function encryptedDepositSync( const account_ = account ?? client.account if (!account_) throw new Error('`account` is required.') + if ('encrypted' in rest) + return Actions.zone.encryptedDepositSync(client, { + ...rest, + chainId: resolvedChainId, + throwOnReceiptRevert, + } as never) + const accountAddress = parseAccount(account_).address const { amount, diff --git a/packages/core/src/transports/connector.test.ts b/packages/core/src/transports/connector.test.ts index f464ddafc8..92c971e4c8 100644 --- a/packages/core/src/transports/connector.test.ts +++ b/packages/core/src/transports/connector.test.ts @@ -36,7 +36,7 @@ test('behavior: connector type not found', async () => { [ProviderDisconnectedError: The Provider is disconnected from all chains. Details: Could not find connector of type "foo" in \`connectors\` passed to \`createConfig\`. - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) @@ -58,7 +58,7 @@ test('behavior: provider is disconnected', async () => { [ProviderDisconnectedError: The Provider is disconnected from all chains. Details: Provider is disconnected. - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) @@ -82,7 +82,7 @@ test('behavior: chainId mismatch', async () => { [ChainDisconnectedError: The Provider is not connected to the requested chain. Details: The current chain of the connector (id: 1) does not match the target chain for the request (id: 10 – OP Mainnet). - Version: viem@2.51.0] + Version: viem@2.54.0] `) }) diff --git a/packages/react/src/tempo/hooks/dex.test.ts b/packages/react/src/tempo/hooks/dex.test.ts index 6763584cbb..ee1d478b35 100644 --- a/packages/react/src/tempo/hooks/dex.test.ts +++ b/packages/react/src/tempo/hooks/dex.test.ts @@ -1081,6 +1081,8 @@ describe('useWithdraw', () => { token: quote, account: account.address, }) - expect(walletBalanceAfter).toBeGreaterThan(walletBalanceBefore) + expect(walletBalanceAfter.amount).toBeGreaterThan( + walletBalanceBefore.amount, + ) }) }) diff --git a/packages/react/src/tempo/hooks/token.test.ts b/packages/react/src/tempo/hooks/token.test.ts index 00b59ee573..4c396d8acb 100644 --- a/packages/react/src/tempo/hooks/token.test.ts +++ b/packages/react/src/tempo/hooks/token.test.ts @@ -23,8 +23,9 @@ describe.skip('flaky: merge unblock', () => { timeout: 5000, }) - expect(result.current.data).toBeDefined() - expect(typeof result.current.data).toBe('bigint') + const data = result.current.data + expect(data).toBeDefined() + expect(typeof data!.amount).toBe('bigint') }) test('reactivity: account parameter', async () => { @@ -65,8 +66,9 @@ describe.skip('flaky: merge unblock', () => { // Should now be enabled and have data // expect(result.current.isEnabled).toBe(true) - expect(result.current.data).toBeDefined() - expect(typeof result.current.data).toBe('bigint') + const data = result.current.data + expect(data).toBeDefined() + expect(typeof data!.amount).toBe('bigint') }) }) @@ -81,9 +83,10 @@ describe.skip('flaky: merge unblock', () => { await vi.waitFor(() => expect(result.current.isSuccess).toBeTruthy()) - expect(result.current.data).toBeDefined() - expect(typeof result.current.data).toBe('bigint') - expect(result.current.data).toBeGreaterThan(0n) + const data = result.current.data + expect(data).toBeDefined() + expect(typeof data!.amount).toBe('bigint') + expect(data!.amount).toBeGreaterThan(0n) }) test('reactivity: account parameter', async () => { @@ -114,9 +117,10 @@ describe.skip('flaky: merge unblock', () => { // Should now be enabled and have data // expect(result.current.isEnabled).toBe(true) - expect(result.current.data).toBeDefined() - expect(typeof result.current.data).toBe('bigint') - expect(result.current.data).toBeGreaterThan(0n) + const data = result.current.data + expect(data).toBeDefined() + expect(typeof data!.amount).toBe('bigint') + expect(data!.amount).toBeGreaterThan(0n) }) }) diff --git a/packages/react/src/tempo/hooks/zone.ts b/packages/react/src/tempo/hooks/zone.ts index c8e350dafa..1bfda3e302 100644 --- a/packages/react/src/tempo/hooks/zone.ts +++ b/packages/react/src/tempo/hooks/zone.ts @@ -498,10 +498,10 @@ export function useEncryptedDeposit< return useMutation({ ...mutation, async mutationFn(variables) { - return Actions.zone.encryptedDeposit(config, variables) + return Actions.zone.encryptedDeposit(config, variables as never) }, mutationKey: ['encryptedDeposit'], - }) + }) as useEncryptedDeposit.ReturnType } export declare namespace useEncryptedDeposit { @@ -575,10 +575,10 @@ export function useEncryptedDepositSync< return useMutation({ ...mutation, async mutationFn(variables) { - return Actions.zone.encryptedDepositSync(config, variables) + return Actions.zone.encryptedDepositSync(config, variables as never) }, mutationKey: ['encryptedDepositSync'], - }) + }) as useEncryptedDepositSync.ReturnType } export declare namespace useEncryptedDepositSync { diff --git a/packages/test/src/tempo/config.ts b/packages/test/src/tempo/config.ts index 5cacc58bbd..65b90bf6b6 100644 --- a/packages/test/src/tempo/config.ts +++ b/packages/test/src/tempo/config.ts @@ -333,12 +333,12 @@ export async function viem_setupToken( await sendTransactionSync(client, { calls: [ - Actions.token.grantRoles.call({ + Actions.token.grantRoles.call(client, { role: 'issuer', to: client.account.address, token: token.token, }), - Actions.token.mint.call({ + Actions.token.mint.call(client, { amount: parseUnits('10000', 6), to: client.account.address, token: token.token, @@ -404,32 +404,32 @@ export async function viem_setupTokenPair( await sendTransactionSync(client, { calls: [ - Actions.token.grantRoles.call({ + Actions.token.grantRoles.call(client, { token: baseToken, role: 'issuer', to: client.account.address, }), - Actions.token.grantRoles.call({ + Actions.token.grantRoles.call(client, { token: quoteToken, role: 'issuer', to: client.account.address, }), - Actions.token.mint.call({ + Actions.token.mint.call(client, { token: baseToken, to: client.account.address, amount: parseUnits('10000', 6), }), - Actions.token.mint.call({ + Actions.token.mint.call(client, { token: quoteToken, to: client.account.address, amount: parseUnits('10000', 6), }), - Actions.token.approve.call({ + Actions.token.approve.call(client, { token: baseToken, spender: Addresses.stablecoinDex, amount: parseUnits('10000', 6), }), - Actions.token.approve.call({ + Actions.token.approve.call(client, { token: quoteToken, spender: Addresses.stablecoinDex, amount: parseUnits('10000', 6), diff --git a/packages/test/src/tempo/setup.global.ts b/packages/test/src/tempo/setup.global.ts index cb32ae8897..a3fe7e984a 100644 --- a/packages/test/src/tempo/setup.global.ts +++ b/packages/test/src/tempo/setup.global.ts @@ -397,6 +397,14 @@ function createZoneRpcServer(port: number) { abi: Abis.tip20, data: call.data as `0x${string}`, }) + if (decoded.functionName === 'decimals') { + send({ + id: payload.id, + jsonrpc: '2.0', + result: encodeAbiParameters([{ type: 'uint8' }], [6]), + }) + return + } if (decoded.functionName === 'allowance') { const [owner, spender] = decoded.args as readonly [string, string] const allowance = diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2402d3623a..bb35986be3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -230,8 +230,8 @@ importers: specifier: ^5.9.3 version: 5.9.3 viem: - specifier: 2.51.0 - version: 2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) + specifier: 2.54.0 + version: 2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) vite: specifier: 'catalog:' version: 8.0.16(@types/node@24.6.2)(esbuild@0.28.1)(jiti@2.7.0)(terser@5.31.0)(tsx@4.21.0)(yaml@2.9.0) @@ -349,13 +349,13 @@ importers: version: 2.21.1(@types/react@19.2.3)(bufferutil@4.0.8)(db0@0.3.4)(ioredis@5.10.1)(react@19.2.0)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) accounts: specifier: 'catalog:' - version: 0.12.0(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@packages+react) + version: 0.12.0(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@packages+react) msw: specifier: ^2.4.9 version: 2.4.9(typescript@5.9.3) porto: specifier: 'catalog:' - version: 0.2.37(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@packages+react) + version: 0.2.37(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@packages+react) packages/core: dependencies: @@ -374,7 +374,7 @@ importers: version: 5.49.1 accounts: specifier: 'catalog:' - version: 0.12.0(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6))(wagmi@packages+react) + version: 0.12.0(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6))(wagmi@packages+react) packages/create-wagmi: dependencies: @@ -9019,6 +9019,14 @@ packages: typescript: optional: true + ox@0.14.29: + resolution: {integrity: sha512-M5j87Ec4V99MQdRct/g09eWXW60g6zhHTUs1lr4deUtrPDnezBdCJTgKd7pxqTpSZBFveV0ALi9jMMuT1qKyNg==} + peerDependencies: + typescript: '>=5.4.0' + peerDependenciesMeta: + typescript: + optional: true + ox@0.14.5: resolution: {integrity: sha512-HgmHmBveYO40H/R3K6TMrwYtHsx/u6TAB+GpZlgJCoW0Sq5Ttpjih0IZZiwGQw7T6vdW4IAyobYrE2mdAvyF8Q==} peerDependencies: @@ -11016,6 +11024,14 @@ packages: typescript: optional: true + viem@2.54.0: + resolution: {integrity: sha512-DW6KW3m89+3MLozFNPuI9Nhz2hJw375hUo1bpbo3qXipBvjdjF26B/d3U5adVyLGKOfqK4XeA1wPDWQTFQ/ltA==} + peerDependencies: + typescript: '>=5.0.4' + peerDependenciesMeta: + typescript: + optional: true + vinxi@0.5.10: resolution: {integrity: sha512-qdxevpdm6ZhI4FPXyVpaMOnz0WfyeC0WWj4XUKjRetSNkPj0D45VHep5iv4nBxdc/2XLPBRMW3CNkn/yUMsYIg==} hasBin: true @@ -18028,12 +18044,12 @@ snapshots: - typescript - use-sync-external-store - accounts@0.12.0(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@packages+react): + accounts@0.12.0(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@packages+react): dependencies: hono: 4.12.25 idb-keyval: 6.2.2 mipd: 0.0.7(typescript@5.9.3) - mppx: 0.6.19(hono@4.12.25)(typescript@5.9.3)(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)) + mppx: 0.6.19(hono@4.12.25)(typescript@5.9.3)(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)) ox: 0.14.20(typescript@5.9.3)(zod@4.3.6) webauthx: 0.1.1(typescript@5.9.3)(zod@4.3.6) zod: 4.3.6 @@ -18041,7 +18057,7 @@ snapshots: optionalDependencies: '@wagmi/core': link:packages/core react: 19.2.0 - viem: 2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + viem: 2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) wagmi: link:packages/react transitivePeerDependencies: - '@modelcontextprotocol/sdk' @@ -18052,12 +18068,12 @@ snapshots: - typescript - use-sync-external-store - accounts@0.12.0(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6))(wagmi@packages+react): + accounts@0.12.0(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6))(wagmi@packages+react): dependencies: hono: 4.12.25 idb-keyval: 6.2.2 mipd: 0.0.7(typescript@5.9.3) - mppx: 0.6.19(hono@4.12.25)(typescript@5.9.3)(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)) + mppx: 0.6.19(hono@4.12.25)(typescript@5.9.3)(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)) ox: 0.14.20(typescript@5.9.3)(zod@4.3.6) webauthx: 0.1.1(typescript@5.9.3)(zod@4.3.6) zod: 4.3.6 @@ -18065,7 +18081,7 @@ snapshots: optionalDependencies: '@wagmi/core': link:packages/core react: 19.2.0 - viem: 2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) + viem: 2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) wagmi: link:packages/react transitivePeerDependencies: - '@modelcontextprotocol/sdk' @@ -20715,22 +20731,22 @@ snapshots: transitivePeerDependencies: - typescript - mppx@0.6.19(hono@4.12.25)(typescript@5.9.3)(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)): + mppx@0.6.19(hono@4.12.25)(typescript@5.9.3)(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76)): dependencies: incur: 0.4.5 ox: 0.14.18(typescript@5.9.3)(zod@4.3.6) - viem: 2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + viem: 2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) zod: 4.3.6 optionalDependencies: hono: 4.12.25 transitivePeerDependencies: - typescript - mppx@0.6.19(hono@4.12.25)(typescript@5.9.3)(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)): + mppx@0.6.19(hono@4.12.25)(typescript@5.9.3)(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6)): dependencies: incur: 0.4.5 ox: 0.14.18(typescript@5.9.3)(zod@4.3.6) - viem: 2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) + viem: 2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6) zod: 4.3.6 optionalDependencies: hono: 4.12.25 @@ -21465,6 +21481,36 @@ snapshots: transitivePeerDependencies: - zod + ox@0.14.29(typescript@5.9.3)(zod@3.25.76): + dependencies: + '@adraffy/ens-normalize': 1.11.1 + '@noble/ciphers': 1.3.0 + '@noble/curves': 1.9.1 + '@noble/hashes': 1.8.0 + '@scure/bip32': 1.7.0 + '@scure/bip39': 1.6.0 + abitype: 1.2.3(typescript@5.9.3)(zod@3.25.76) + eventemitter3: 5.0.1 + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - zod + + ox@0.14.29(typescript@5.9.3)(zod@4.3.6): + dependencies: + '@adraffy/ens-normalize': 1.11.1 + '@noble/ciphers': 1.3.0 + '@noble/curves': 1.9.1 + '@noble/hashes': 1.8.0 + '@scure/bip32': 1.7.0 + '@scure/bip39': 1.6.0 + abitype: 1.2.3(typescript@5.9.3)(zod@4.3.6) + eventemitter3: 5.0.1 + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - zod + ox@0.14.5(typescript@5.9.3)(zod@4.1.11): dependencies: '@adraffy/ens-normalize': 1.11.1 @@ -21568,21 +21614,6 @@ snapshots: transitivePeerDependencies: - zod - ox@https://pkg.pr.new/ox@386a3439fe1ce76d237930f8c6e6bb493746069a(typescript@5.9.3)(zod@4.3.6): - dependencies: - '@adraffy/ens-normalize': 1.11.1 - '@noble/ciphers': 1.3.0 - '@noble/curves': 1.9.1 - '@noble/hashes': 1.8.0 - '@scure/bip32': 1.7.0 - '@scure/bip39': 1.6.0 - abitype: 1.2.3(typescript@5.9.3)(zod@4.3.6) - eventemitter3: 5.0.1 - optionalDependencies: - typescript: 5.9.3 - transitivePeerDependencies: - - zod - oxc-minify@0.132.0: optionalDependencies: '@oxc-minify/binding-android-arm-eabi': 0.132.0 @@ -21905,14 +21936,14 @@ snapshots: pony-cause@2.1.11: {} - porto@0.2.37(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@packages+react): + porto@0.2.37(@types/react@19.2.3)(@wagmi/core@packages+core)(react@19.2.0)(typescript@5.9.3)(use-sync-external-store@1.6.0(react@19.2.0))(viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76))(wagmi@packages+react): dependencies: '@wagmi/core': link:packages/core hono: 4.12.25 idb-keyval: 6.2.1 mipd: 0.0.7(typescript@5.9.3) ox: 0.9.6(typescript@5.9.3)(zod@4.1.11) - viem: 2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) + viem: 2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76) zod: 4.1.11 zustand: 5.0.3(@types/react@19.2.3)(react@19.2.0)(use-sync-external-store@1.6.0(react@19.2.0)) optionalDependencies: @@ -23876,7 +23907,24 @@ snapshots: - utf-8-validate - zod - viem@2.51.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6): + viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@3.25.76): + dependencies: + '@noble/curves': 1.9.1 + '@noble/hashes': 1.8.0 + '@scure/bip32': 1.7.0 + '@scure/bip39': 1.6.0 + abitype: 1.2.3(typescript@5.9.3)(zod@3.25.76) + isows: 1.0.7(ws@8.21.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + ox: 0.14.29(typescript@5.9.3)(zod@3.25.76) + ws: 8.21.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + optionalDependencies: + typescript: 5.9.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + - zod + + viem@2.54.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)(zod@4.3.6): dependencies: '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 @@ -23884,7 +23932,7 @@ snapshots: '@scure/bip39': 1.6.0 abitype: 1.2.3(typescript@5.9.3)(zod@4.3.6) isows: 1.0.7(ws@8.21.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - ox: https://pkg.pr.new/ox@386a3439fe1ce76d237930f8c6e6bb493746069a(typescript@5.9.3)(zod@4.3.6) + ox: 0.14.29(typescript@5.9.3)(zod@4.3.6) ws: 8.21.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) optionalDependencies: typescript: 5.9.3 diff --git a/site/tempo/getting-started.md b/site/tempo/getting-started.md index be8267f625..717f70e817 100644 --- a/site/tempo/getting-started.md +++ b/site/tempo/getting-started.md @@ -2,7 +2,7 @@ import connectorsPackageJson from '../../packages/connectors/package.json' const accountsVersion = connectorsPackageJson.peerDependencies.accounts -const viemVersion = '>=2.43.3' +const viemVersion = '>=2.54.0' # Getting Started