feat: add cross chain sync #3332
checks.yml
on: pull_request
Build
3m 58s
Lint
1m 18s
Unit-Test
1m 54s
Integration-Test
2m 4s
Annotations
10 errors and 8 warnings
lib/modules/tokens/TokenBalancesProvider.integration.spec.ts > fetches balance for native asset token:
lib/modules/tokens/TokenBalancesProvider.integration.spec.ts#L13
AssertionError: expected +0 to be 1 // Object.is equality
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
- Expected
+ Received
- 1
+ 0
❯ lib/modules/tokens/TokenBalancesProvider.integration.spec.ts:13:62
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
lib/modules/tokens/TokenBalancesProvider.integration.spec.ts > fetches balance for native asset token:
lib/modules/tokens/TokenBalancesProvider.integration.spec.ts#L13
AssertionError: expected +0 to be 1 // Object.is equality
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
- Expected
+ Received
- 1
+ 0
❯ lib/modules/tokens/TokenBalancesProvider.integration.spec.ts:13:62
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
lib/modules/tokens/TokenBalancesProvider.integration.spec.ts > Should not return balances when user is not connected (account is empty) :
lib/modules/tokens/TokenBalancesProvider.integration.spec.ts#L84
AssertionError: expected 1 to be 2 // Object.is equality
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
- Expected
+ Received
- 2
+ 1
❯ lib/modules/tokens/TokenBalancesProvider.integration.spec.ts:84:62
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
lib/modules/tokens/TokenBalancesProvider.integration.spec.ts > Should not return balances when user is not connected (account is empty) :
lib/modules/tokens/TokenBalancesProvider.integration.spec.ts#L84
AssertionError: expected 1 to be 2 // Object.is equality
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
- Expected
+ Received
- 2
+ 1
❯ lib/modules/tokens/TokenBalancesProvider.integration.spec.ts:84:62
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library+dom@10.0.0/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts > fetches onchain and overrides user balances > when the user has wallet balance:
test/integration/sdk-utils.ts#L239
ContractFunctionExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Contract Call:
address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
function: balanceOf(address account)
args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)
Docs: https://viem.sh/docs/contract/readContract
Version: 2.21.6
❯ getContractError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/actions/public/readContract.ts:136:11
❯ findTokenBalanceSlot test/integration/sdk-utils.ts:239:23
❯ setupToken test/integration/sdk-utils.ts:302:18
❯ Object.setUserPoolBalance test/integration/sdk-utils.ts:326:12
❯ lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts:41:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'Raw Call Arguments:', ' to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266', ' ', 'Contract Call:', ' address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n function: balanceOf(address account)\n args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)' ], shortMessage: 'Cannot decode zero data ("0x") with ABI parameters.', version: '2.21.6', abi: [ { type: 'event', name: 'Approval', inputs: [ { indexed: true, name: 'owner', type: 'address' }, { indexed: true, name: 'spender', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'event', name: 'Transfer', inputs: [ { indexed: true, name: 'from', type: 'address' }, { indexed: true, name: 'to', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'function', name: 'allowance', stateMutability: 'view', inputs: [ { name: 'owner', type: 'address' }, { name: 'spender', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'approve', stateMutability: 'nonpayable', inputs: [ { name: 'spender', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'balanceOf', stateMutability: 'view', inputs: [ { name: 'account', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'decimals', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint8' } ] }, { type: 'function', name: 'name', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'symbol', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'totalSupply', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'transfer', stateMutability: 'nonpayable', inputs: [ { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'transferFrom', stateMutability: 'nonpayable', inputs: [ { name: 'sender', type: 'address' }, { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] } ], args: [ '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' ], contractAddress: '0x5c6ee304399dbdb9c8ef030ab642b10820db8f56', formattedArgs: undefined, functionName: 'balanceOf', sender: undefined, walk: 'Function<walk>' }
Caused by: Caused by: CallExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Version: 2.21.6
❯ getCallError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getCall
|
lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts > fetches onchain and overrides user balances > when the user has wallet balance:
test/integration/sdk-utils.ts#L239
ContractFunctionExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Contract Call:
address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
function: balanceOf(address account)
args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)
Docs: https://viem.sh/docs/contract/readContract
Version: 2.21.6
❯ getContractError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/actions/public/readContract.ts:136:11
❯ findTokenBalanceSlot test/integration/sdk-utils.ts:239:23
❯ setupToken test/integration/sdk-utils.ts:302:18
❯ Object.setUserPoolBalance test/integration/sdk-utils.ts:326:12
❯ lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts:41:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'Raw Call Arguments:', ' to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266', ' ', 'Contract Call:', ' address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n function: balanceOf(address account)\n args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)' ], shortMessage: 'Cannot decode zero data ("0x") with ABI parameters.', version: '2.21.6', abi: [ { type: 'event', name: 'Approval', inputs: [ { indexed: true, name: 'owner', type: 'address' }, { indexed: true, name: 'spender', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'event', name: 'Transfer', inputs: [ { indexed: true, name: 'from', type: 'address' }, { indexed: true, name: 'to', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'function', name: 'allowance', stateMutability: 'view', inputs: [ { name: 'owner', type: 'address' }, { name: 'spender', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'approve', stateMutability: 'nonpayable', inputs: [ { name: 'spender', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'balanceOf', stateMutability: 'view', inputs: [ { name: 'account', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'decimals', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint8' } ] }, { type: 'function', name: 'name', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'symbol', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'totalSupply', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'transfer', stateMutability: 'nonpayable', inputs: [ { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'transferFrom', stateMutability: 'nonpayable', inputs: [ { name: 'sender', type: 'address' }, { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] } ], args: [ '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' ], contractAddress: '0x5c6ee304399dbdb9c8ef030ab642b10820db8f56', formattedArgs: undefined, functionName: 'balanceOf', sender: undefined, walk: 'Function<walk>' }
Caused by: CallExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Version: 2.21.6
❯ getCallError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getCallError.ts:42
|
lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts > fetches onchain and overrides user balances > when the pool does not have staking info:
test/integration/sdk-utils.ts#L239
ContractFunctionExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Contract Call:
address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
function: balanceOf(address account)
args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)
Docs: https://viem.sh/docs/contract/readContract
Version: 2.21.6
❯ getContractError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/actions/public/readContract.ts:136:11
❯ findTokenBalanceSlot test/integration/sdk-utils.ts:239:23
❯ setupToken test/integration/sdk-utils.ts:302:18
❯ Object.setUserPoolBalance test/integration/sdk-utils.ts:326:12
❯ lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts:57:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'Raw Call Arguments:', ' to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266', ' ', 'Contract Call:', ' address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n function: balanceOf(address account)\n args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)' ], shortMessage: 'Cannot decode zero data ("0x") with ABI parameters.', version: '2.21.6', abi: [ { type: 'event', name: 'Approval', inputs: [ { indexed: true, name: 'owner', type: 'address' }, { indexed: true, name: 'spender', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'event', name: 'Transfer', inputs: [ { indexed: true, name: 'from', type: 'address' }, { indexed: true, name: 'to', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'function', name: 'allowance', stateMutability: 'view', inputs: [ { name: 'owner', type: 'address' }, { name: 'spender', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'approve', stateMutability: 'nonpayable', inputs: [ { name: 'spender', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'balanceOf', stateMutability: 'view', inputs: [ { name: 'account', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'decimals', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint8' } ] }, { type: 'function', name: 'name', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'symbol', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'totalSupply', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'transfer', stateMutability: 'nonpayable', inputs: [ { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'transferFrom', stateMutability: 'nonpayable', inputs: [ { name: 'sender', type: 'address' }, { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] } ], args: [ '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' ], contractAddress: '0x5c6ee304399dbdb9c8ef030ab642b10820db8f56', formattedArgs: undefined, functionName: 'balanceOf', sender: undefined, walk: 'Function<walk>' }
Caused by: Caused by: CallExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Version: 2.21.6
❯ getCallError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getCall
|
lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts > fetches onchain and overrides user balances > when the pool does not have staking info:
test/integration/sdk-utils.ts#L239
ContractFunctionExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Contract Call:
address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
function: balanceOf(address account)
args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)
Docs: https://viem.sh/docs/contract/readContract
Version: 2.21.6
❯ getContractError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/actions/public/readContract.ts:136:11
❯ findTokenBalanceSlot test/integration/sdk-utils.ts:239:23
❯ setupToken test/integration/sdk-utils.ts:302:18
❯ Object.setUserPoolBalance test/integration/sdk-utils.ts:326:12
❯ lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts:57:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'Raw Call Arguments:', ' to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266', ' ', 'Contract Call:', ' address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n function: balanceOf(address account)\n args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)' ], shortMessage: 'Cannot decode zero data ("0x") with ABI parameters.', version: '2.21.6', abi: [ { type: 'event', name: 'Approval', inputs: [ { indexed: true, name: 'owner', type: 'address' }, { indexed: true, name: 'spender', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'event', name: 'Transfer', inputs: [ { indexed: true, name: 'from', type: 'address' }, { indexed: true, name: 'to', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'function', name: 'allowance', stateMutability: 'view', inputs: [ { name: 'owner', type: 'address' }, { name: 'spender', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'approve', stateMutability: 'nonpayable', inputs: [ { name: 'spender', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'balanceOf', stateMutability: 'view', inputs: [ { name: 'account', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'decimals', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint8' } ] }, { type: 'function', name: 'name', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'symbol', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'totalSupply', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'transfer', stateMutability: 'nonpayable', inputs: [ { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'transferFrom', stateMutability: 'nonpayable', inputs: [ { name: 'sender', type: 'address' }, { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] } ], args: [ '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' ], contractAddress: '0x5c6ee304399dbdb9c8ef030ab642b10820db8f56', formattedArgs: undefined, functionName: 'balanceOf', sender: undefined, walk: 'Function<walk>' }
Caused by: CallExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Version: 2.21.6
❯ getCallError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getCallError.ts:42
|
lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts > fetches onchain and overrides user balances > when the pool has no gaugeAddress:
test/integration/sdk-utils.ts#L239
ContractFunctionExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Contract Call:
address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
function: balanceOf(address account)
args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)
Docs: https://viem.sh/docs/contract/readContract
Version: 2.21.6
❯ getContractError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getContractError.ts:72:10
❯ readContract node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/actions/public/readContract.ts:136:11
❯ findTokenBalanceSlot test/integration/sdk-utils.ts:239:23
❯ setupToken test/integration/sdk-utils.ts:302:18
❯ Object.setUserPoolBalance test/integration/sdk-utils.ts:326:12
❯ lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts:88:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'Raw Call Arguments:', ' to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266', ' ', 'Contract Call:', ' address: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56\n function: balanceOf(address account)\n args: (0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266)' ], shortMessage: 'Cannot decode zero data ("0x") with ABI parameters.', version: '2.21.6', abi: [ { type: 'event', name: 'Approval', inputs: [ { indexed: true, name: 'owner', type: 'address' }, { indexed: true, name: 'spender', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'event', name: 'Transfer', inputs: [ { indexed: true, name: 'from', type: 'address' }, { indexed: true, name: 'to', type: 'address' }, { indexed: false, name: 'value', type: 'uint256' } ] }, { type: 'function', name: 'allowance', stateMutability: 'view', inputs: [ { name: 'owner', type: 'address' }, { name: 'spender', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'approve', stateMutability: 'nonpayable', inputs: [ { name: 'spender', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'balanceOf', stateMutability: 'view', inputs: [ { name: 'account', type: 'address' } ], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'decimals', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint8' } ] }, { type: 'function', name: 'name', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'symbol', stateMutability: 'view', inputs: [], outputs: [ { type: 'string' } ] }, { type: 'function', name: 'totalSupply', stateMutability: 'view', inputs: [], outputs: [ { type: 'uint256' } ] }, { type: 'function', name: 'transfer', stateMutability: 'nonpayable', inputs: [ { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] }, { type: 'function', name: 'transferFrom', stateMutability: 'nonpayable', inputs: [ { name: 'sender', type: 'address' }, { name: 'recipient', type: 'address' }, { name: 'amount', type: 'uint256' } ], outputs: [ { type: 'bool' } ] } ], args: [ '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266' ], contractAddress: '0x5c6ee304399dbdb9c8ef030ab642b10820db8f56', formattedArgs: undefined, functionName: 'balanceOf', sender: undefined, walk: 'Function<walk>' }
Caused by: Caused by: CallExecutionError: Cannot decode zero data ("0x") with ABI parameters.
Raw Call Arguments:
to: 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56
data: 0x70a08231000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266
Version: 2.21.6
❯ getCallError node_modules/.pnpm/viem@2.21.6_bufferutil@4.0.8_typescript@5.4.5_utf-8-validate@5.0.10_zod@3.22.4/node_modules/viem/utils/errors/getCall
|
lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts > fetches onchain and overrides user balances > when the pool has no gaugeAddress:
lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts#L73
Error: toMatchInlineSnapshot cannot be called multiple times at the same location.
❯ lib/modules/pool/queries/useOnchainUserPoolBalances.integration.spec.ts:73:58
|
Lint
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Lint
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Unit-Test
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Unit-Test
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Integration-Test
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Integration-Test
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Build
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|
Build
Unexpected input(s) 'node-version', valid inputs are ['version', 'dest', 'run_install', 'package_json_file', 'standalone']
|