Skip to content

Merge pull request #120 from clober-dex/version/75-dev #435

Merge pull request #120 from clober-dex/version/75-dev

Merge pull request #120 from clober-dex/version/75-dev #435

Triggered via push October 18, 2024 05:52
Status Failure
Total duration 6h 0m 19s
Artifacts

ci.yaml

on: push
Matrix: Check TS
Matrix: NPM Test
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 1 warning
Check TS (18.10)
Process completed with exit code 1.
NPM Test (18.10)
The job running on runner GitHub Actions 60 has exceeded the maximum execution time of 360 minutes.
add-liquidity.test.ts > Add liquidity without swap - 1: src/apis/pool.ts#L61
ContractFunctionExecutionError: Position `320` is out of bounds (`0 < position < 320`). Contract Call: address: 0xCF556d850277BC579c99C0729F4E72e62C57D811 function: getPool(bytes32 key) args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d) Docs: https://viem.sh/docs/contract/multicall Version: [email protected] ❯ getContractError ../node_modules/viem/utils/errors/getContractError.ts:72:10 ❯ multicall ../node_modules/viem/actions/public/multicall.ts:271:23 ❯ Module.fetchPool ../src/apis/pool.ts:61:7 ❯ Module.getPool ../src/view.ts:179:16 ❯ add-liquidity.test.ts:31:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: '/docs/contract/multicall', metaMessages: [ 'Contract Call:', ' address: 0xCF556d850277BC579c99C0729F4E72e62C57D811\n function: getPool(bytes32 key)\n args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d)' ], shortMessage: 'Position `320` is out of bounds (`0 < position < 320`).', version: '[email protected]', abi: [ { inputs: [ { internalType: 'contract IBookManager', name: 'bookManager_', type: 'address' }, { internalType: 'address', name: 'initialOwner_', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyOpened', type: 'error' }, { inputs: [], name: 'ERC20TransferFailed', type: 'error' }, { inputs: [], name: 'InvalidAmount', type: 'error' }, { inputs: [], name: 'InvalidBookPair', type: 'error' }, { inputs: [], name: 'InvalidHook', type: 'error' }, { inputs: [], name: 'InvalidLockAcquiredSender', type: 'error' }, { inputs: [], name: 'InvalidLockCaller', type: 'error' }, { inputs: [], name: 'InvalidMaker', type: 'error' }, { inputs: [], name: 'InvalidStrategy', type: 'error' }, { inputs: [], name: 'InvalidTick', type: 'error' }, { inputs: [], name: 'InvalidValue', type: 'error' }, { inputs: [], name: 'LockFailure', type: 'error' }, { inputs: [], name: 'NativeTransferFailed', type: 'error' }, { inputs: [], name: 'NotSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'owner', type: 'address' } ], name: 'OwnableInvalidOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' } ], name: 'OwnableUnauthorizedAccount', type: 'error' }, { inputs: [], name: 'Paused', type: 'error' }, { inputs: [ { internalType: 'uint8', name: 'bits', type: 'uint8' }, { internalType: 'uint256', name: 'value', type: 'uint256' } ], name: 'SafeCastOverflowedUintDowncast', type: 'error' }, { inputs: [ { internalType: 'address', name: 'token', type: 'address' } ], name: 'SafeERC20FailedOperation', type: 'error' }, { inputs: [], name: 'Slippage', type: 'error' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address' }, { indexed: true, internalType: 'address', name: 'spender', type: 'address' }, { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' } ], name: 'Approval', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'user', type: 'address' }, { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'amountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amountB', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'lpAmount', type: 'uint256' } ], name: 'Burn', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountB', type: 'uint256' } ], name: 'Cancel', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountB',
add-liquidity.test.ts > Add liquidity without swap - 2: src/apis/pool.ts#L61
ContractFunctionExecutionError: Position `320` is out of bounds (`0 < position < 320`). Contract Call: address: 0xCF556d850277BC579c99C0729F4E72e62C57D811 function: getPool(bytes32 key) args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d) Docs: https://viem.sh/docs/contract/multicall Version: [email protected] ❯ getContractError ../node_modules/viem/utils/errors/getContractError.ts:72:10 ❯ multicall ../node_modules/viem/actions/public/multicall.ts:271:23 ❯ Module.fetchPool ../src/apis/pool.ts:61:7 ❯ Module.getPool ../src/view.ts:179:16 ❯ add-liquidity.test.ts:193:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: '/docs/contract/multicall', metaMessages: [ 'Contract Call:', ' address: 0xCF556d850277BC579c99C0729F4E72e62C57D811\n function: getPool(bytes32 key)\n args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d)' ], shortMessage: 'Position `320` is out of bounds (`0 < position < 320`).', version: '[email protected]', abi: [ { inputs: [ { internalType: 'contract IBookManager', name: 'bookManager_', type: 'address' }, { internalType: 'address', name: 'initialOwner_', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyOpened', type: 'error' }, { inputs: [], name: 'ERC20TransferFailed', type: 'error' }, { inputs: [], name: 'InvalidAmount', type: 'error' }, { inputs: [], name: 'InvalidBookPair', type: 'error' }, { inputs: [], name: 'InvalidHook', type: 'error' }, { inputs: [], name: 'InvalidLockAcquiredSender', type: 'error' }, { inputs: [], name: 'InvalidLockCaller', type: 'error' }, { inputs: [], name: 'InvalidMaker', type: 'error' }, { inputs: [], name: 'InvalidStrategy', type: 'error' }, { inputs: [], name: 'InvalidTick', type: 'error' }, { inputs: [], name: 'InvalidValue', type: 'error' }, { inputs: [], name: 'LockFailure', type: 'error' }, { inputs: [], name: 'NativeTransferFailed', type: 'error' }, { inputs: [], name: 'NotSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'owner', type: 'address' } ], name: 'OwnableInvalidOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' } ], name: 'OwnableUnauthorizedAccount', type: 'error' }, { inputs: [], name: 'Paused', type: 'error' }, { inputs: [ { internalType: 'uint8', name: 'bits', type: 'uint8' }, { internalType: 'uint256', name: 'value', type: 'uint256' } ], name: 'SafeCastOverflowedUintDowncast', type: 'error' }, { inputs: [ { internalType: 'address', name: 'token', type: 'address' } ], name: 'SafeERC20FailedOperation', type: 'error' }, { inputs: [], name: 'Slippage', type: 'error' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address' }, { indexed: true, internalType: 'address', name: 'spender', type: 'address' }, { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' } ], name: 'Approval', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'user', type: 'address' }, { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'amountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amountB', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'lpAmount', type: 'uint256' } ], name: 'Burn', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountB', type: 'uint256' } ], name: 'Cancel', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountB'
add-liquidity.test.ts > Add liquidity one side with swap: src/apis/pool.ts#L61
ContractFunctionExecutionError: Position `320` is out of bounds (`0 < position < 320`). Contract Call: address: 0xCF556d850277BC579c99C0729F4E72e62C57D811 function: getPool(bytes32 key) args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d) Docs: https://viem.sh/docs/contract/multicall Version: [email protected] ❯ getContractError ../node_modules/viem/utils/errors/getContractError.ts:72:10 ❯ multicall ../node_modules/viem/actions/public/multicall.ts:271:23 ❯ Module.fetchPool ../src/apis/pool.ts:61:7 ❯ Module.getPool ../src/view.ts:179:16 ❯ add-liquidity.test.ts:355:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: '/docs/contract/multicall', metaMessages: [ 'Contract Call:', ' address: 0xCF556d850277BC579c99C0729F4E72e62C57D811\n function: getPool(bytes32 key)\n args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d)' ], shortMessage: 'Position `320` is out of bounds (`0 < position < 320`).', version: '[email protected]', abi: [ { inputs: [ { internalType: 'contract IBookManager', name: 'bookManager_', type: 'address' }, { internalType: 'address', name: 'initialOwner_', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyOpened', type: 'error' }, { inputs: [], name: 'ERC20TransferFailed', type: 'error' }, { inputs: [], name: 'InvalidAmount', type: 'error' }, { inputs: [], name: 'InvalidBookPair', type: 'error' }, { inputs: [], name: 'InvalidHook', type: 'error' }, { inputs: [], name: 'InvalidLockAcquiredSender', type: 'error' }, { inputs: [], name: 'InvalidLockCaller', type: 'error' }, { inputs: [], name: 'InvalidMaker', type: 'error' }, { inputs: [], name: 'InvalidStrategy', type: 'error' }, { inputs: [], name: 'InvalidTick', type: 'error' }, { inputs: [], name: 'InvalidValue', type: 'error' }, { inputs: [], name: 'LockFailure', type: 'error' }, { inputs: [], name: 'NativeTransferFailed', type: 'error' }, { inputs: [], name: 'NotSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'owner', type: 'address' } ], name: 'OwnableInvalidOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' } ], name: 'OwnableUnauthorizedAccount', type: 'error' }, { inputs: [], name: 'Paused', type: 'error' }, { inputs: [ { internalType: 'uint8', name: 'bits', type: 'uint8' }, { internalType: 'uint256', name: 'value', type: 'uint256' } ], name: 'SafeCastOverflowedUintDowncast', type: 'error' }, { inputs: [ { internalType: 'address', name: 'token', type: 'address' } ], name: 'SafeERC20FailedOperation', type: 'error' }, { inputs: [], name: 'Slippage', type: 'error' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address' }, { indexed: true, internalType: 'address', name: 'spender', type: 'address' }, { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' } ], name: 'Approval', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'user', type: 'address' }, { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'amountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amountB', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'lpAmount', type: 'uint256' } ], name: 'Burn', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountB', type: 'uint256' } ], name: 'Cancel', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountB'
add-liquidity.test.ts > Add liquidity two sides with swap: src/apis/pool.ts#L61
ContractFunctionExecutionError: Position `320` is out of bounds (`0 < position < 320`). Contract Call: address: 0xCF556d850277BC579c99C0729F4E72e62C57D811 function: getPool(bytes32 key) args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d) Docs: https://viem.sh/docs/contract/multicall Version: [email protected] ❯ getContractError ../node_modules/viem/utils/errors/getContractError.ts:72:10 ❯ multicall ../node_modules/viem/actions/public/multicall.ts:271:23 ❯ Module.fetchPool ../src/apis/pool.ts:61:7 ❯ Module.getPool ../src/view.ts:179:16 ❯ add-liquidity.test.ts:593:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: '/docs/contract/multicall', metaMessages: [ 'Contract Call:', ' address: 0xCF556d850277BC579c99C0729F4E72e62C57D811\n function: getPool(bytes32 key)\n args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d)' ], shortMessage: 'Position `320` is out of bounds (`0 < position < 320`).', version: '[email protected]', abi: [ { inputs: [ { internalType: 'contract IBookManager', name: 'bookManager_', type: 'address' }, { internalType: 'address', name: 'initialOwner_', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyOpened', type: 'error' }, { inputs: [], name: 'ERC20TransferFailed', type: 'error' }, { inputs: [], name: 'InvalidAmount', type: 'error' }, { inputs: [], name: 'InvalidBookPair', type: 'error' }, { inputs: [], name: 'InvalidHook', type: 'error' }, { inputs: [], name: 'InvalidLockAcquiredSender', type: 'error' }, { inputs: [], name: 'InvalidLockCaller', type: 'error' }, { inputs: [], name: 'InvalidMaker', type: 'error' }, { inputs: [], name: 'InvalidStrategy', type: 'error' }, { inputs: [], name: 'InvalidTick', type: 'error' }, { inputs: [], name: 'InvalidValue', type: 'error' }, { inputs: [], name: 'LockFailure', type: 'error' }, { inputs: [], name: 'NativeTransferFailed', type: 'error' }, { inputs: [], name: 'NotSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'owner', type: 'address' } ], name: 'OwnableInvalidOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' } ], name: 'OwnableUnauthorizedAccount', type: 'error' }, { inputs: [], name: 'Paused', type: 'error' }, { inputs: [ { internalType: 'uint8', name: 'bits', type: 'uint8' }, { internalType: 'uint256', name: 'value', type: 'uint256' } ], name: 'SafeCastOverflowedUintDowncast', type: 'error' }, { inputs: [ { internalType: 'address', name: 'token', type: 'address' } ], name: 'SafeERC20FailedOperation', type: 'error' }, { inputs: [], name: 'Slippage', type: 'error' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address' }, { indexed: true, internalType: 'address', name: 'spender', type: 'address' }, { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' } ], name: 'Approval', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'user', type: 'address' }, { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'amountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amountB', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'lpAmount', type: 'uint256' } ], name: 'Burn', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountB', type: 'uint256' } ], name: 'Cancel', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountB'
adjust-order-price.test.ts > Adjust order price: src/utils/open.ts#L26
ContractFunctionExecutionError: The contract function "isOpened" returned no data ("0x"). This could be due to any of the following: - The contract does not have the function "isOpened", - The parameters passed to the contract function may be invalid, or - The address is not a contract. Contract Call: address: 0xAA9575d63dFC224b9583fC303dB3188C08d5C85A function: isOpened(uint192 id) args: (3925075528294375433585636434806582627786581032830806271349) Docs: https://viem.sh/docs/contract/readContract Version: [email protected] ❯ getContractError ../node_modules/viem/utils/errors/getContractError.ts:72:10 ❯ readContract ../node_modules/viem/actions/public/readContract.ts:128:11 ❯ Module.fetchIsMarketOpened ../src/utils/open.ts:26:26 ❯ getBook ../src/apis/market.ts:74:30 ❯ Module.fetchMarket ../src/apis/market.ts:118:30 ❯ Module.fetchPool ../src/apis/pool.ts:49:7 ❯ Module.getPool ../src/view.ts:179:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "isOpened",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.', ' ', 'Contract Call:', ' address: 0xAA9575d63dFC224b9583fC303dB3188C08d5C85A\n function: isOpened(uint192 id)\n args: (3925075528294375433585636434806582627786581032830806271349)' ], shortMessage: 'The contract function "isOpened" returned no data ("0x").', version: '[email protected]', abi: [ { inputs: [ { internalType: 'BookId', name: 'id', type: 'uint192' } ], name: 'isOpened', outputs: [ { internalType: 'bool', name: '', type: 'bool' } ], stateMutability: 'view', type: 'function' } ], args: [ 3925075528294375433585636434806582627786581032830806271349n ], contractAddress: '0xAA9575d63dFC224b9583fC303dB3188C08d5C85A', formattedArgs: undefined, functionName: 'isOpened', sender: undefined, walk: 'Function<walk>' } Caused by: ContractFunctionZeroDataError: The contract function "isOpened" returned no data ("0x"). This could be due to any of the following: - The contract does not have the function "isOpened", - The parameters passed to the contract function may be invalid, or - The address is not a contract. Version: [email protected] ❯ ../node_modules/viem/utils/errors/getContractError.ts:57:14 ❯ getContractError ../node_modules/viem/utils/errors/getContractError.ts:70:5 ❯ readContract ../node_modules/viem/actions/public/readContract.ts:128:11 ❯ Module.fetchIsMarketOpened ../src/utils/open.ts:26:26 ❯ getBook ../src/apis/market.ts:74:30 ❯ Module.fetchMarket ../src/apis/market.ts:118:30 ❯ Module.fetchPool ../src/apis/pool.ts:49:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: undefined, metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "isOpened",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.' ], shortMessage: 'The contract function "isOpened" returned no data ("0x").', version: '[email protected]', walk: 'Function<walk>' }
open.test.ts > try open pool: src/apis/pool.ts#L61
ContractFunctionExecutionError: Position `320` is out of bounds (`0 < position < 320`). Contract Call: address: 0xCF556d850277BC579c99C0729F4E72e62C57D811 function: getPool(bytes32 key) args: (0x6cf422b2bb53aafd274d55740e6c8437055eba392cb2f69633c35462ab920bb7) Docs: https://viem.sh/docs/contract/multicall Version: [email protected] ❯ getContractError ../node_modules/viem/utils/errors/getContractError.ts:72:10 ❯ multicall ../node_modules/viem/actions/public/multicall.ts:271:23 ❯ Module.fetchPool ../src/apis/pool.ts:61:7 ❯ Module.getPool ../src/view.ts:179:16 ❯ open.test.ts:140:21 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: '/docs/contract/multicall', metaMessages: [ 'Contract Call:', ' address: 0xCF556d850277BC579c99C0729F4E72e62C57D811\n function: getPool(bytes32 key)\n args: (0x6cf422b2bb53aafd274d55740e6c8437055eba392cb2f69633c35462ab920bb7)' ], shortMessage: 'Position `320` is out of bounds (`0 < position < 320`).', version: '[email protected]', abi: [ { inputs: [ { internalType: 'contract IBookManager', name: 'bookManager_', type: 'address' }, { internalType: 'address', name: 'initialOwner_', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyOpened', type: 'error' }, { inputs: [], name: 'ERC20TransferFailed', type: 'error' }, { inputs: [], name: 'InvalidAmount', type: 'error' }, { inputs: [], name: 'InvalidBookPair', type: 'error' }, { inputs: [], name: 'InvalidHook', type: 'error' }, { inputs: [], name: 'InvalidLockAcquiredSender', type: 'error' }, { inputs: [], name: 'InvalidLockCaller', type: 'error' }, { inputs: [], name: 'InvalidMaker', type: 'error' }, { inputs: [], name: 'InvalidStrategy', type: 'error' }, { inputs: [], name: 'InvalidTick', type: 'error' }, { inputs: [], name: 'InvalidValue', type: 'error' }, { inputs: [], name: 'LockFailure', type: 'error' }, { inputs: [], name: 'NativeTransferFailed', type: 'error' }, { inputs: [], name: 'NotSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'owner', type: 'address' } ], name: 'OwnableInvalidOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' } ], name: 'OwnableUnauthorizedAccount', type: 'error' }, { inputs: [], name: 'Paused', type: 'error' }, { inputs: [ { internalType: 'uint8', name: 'bits', type: 'uint8' }, { internalType: 'uint256', name: 'value', type: 'uint256' } ], name: 'SafeCastOverflowedUintDowncast', type: 'error' }, { inputs: [ { internalType: 'address', name: 'token', type: 'address' } ], name: 'SafeERC20FailedOperation', type: 'error' }, { inputs: [], name: 'Slippage', type: 'error' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address' }, { indexed: true, internalType: 'address', name: 'spender', type: 'address' }, { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' } ], name: 'Approval', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'user', type: 'address' }, { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'amountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amountB', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'lpAmount', type: 'uint256' } ], name: 'Burn', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountB', type: 'uint256' } ], name: 'Cancel', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountB', type: '
refill-order.test.ts > Refill order: src/apis/market.ts#L74
ContractFunctionExecutionError: The contract function "getLiquidity" returned no data ("0x"). This could be due to any of the following: - The contract does not have the function "getLiquidity", - The parameters passed to the contract function may be invalid, or - The address is not a contract. Contract Call: address: 0x3e22d091F90ae759733B7CB06a6f7b440d84a425 function: getLiquidity(uint192 id, int24 tick, uint256 n) args: (3925075528294375433585636434806582627786581032830806271349, 524287, 100) Docs: https://viem.sh/docs/contract/readContract Version: [email protected] ❯ getContractError ../node_modules/viem/utils/errors/getContractError.ts:72:10 ❯ readContract ../node_modules/viem/actions/public/readContract.ts:128:11 ❯ getBook ../src/apis/market.ts:74:30 ❯ Module.fetchMarket ../src/apis/market.ts:118:30 ❯ Module.fetchPool ../src/apis/pool.ts:49:7 ❯ Module.addLiquidity ../src/call.ts:1126:16 ❯ refill-order.test.ts:39:32 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: '/docs/contract/readContract', metaMessages: [ 'This could be due to any of the following:', ' - The contract does not have the function "getLiquidity",', ' - The parameters passed to the contract function may be invalid, or', ' - The address is not a contract.', ' ', 'Contract Call:', ' address: 0x3e22d091F90ae759733B7CB06a6f7b440d84a425\n function: getLiquidity(uint192 id, int24 tick, uint256 n)\n args: (3925075528294375433585636434806582627786581032830806271349, 524287, 100)' ], shortMessage: 'The contract function "getLiquidity" returned no data ("0x").', version: '[email protected]', abi: [ { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' }, { indexed: true, internalType: 'address', name: 'newOwner', type: 'address' } ], name: 'OwnershipTransferred', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'previousImplementation', type: 'address' }, { indexed: true, internalType: 'address', name: 'newImplementation', type: 'address' } ], name: 'ProxyImplementationUpdated', type: 'event' }, { stateMutability: 'payable', type: 'fallback' }, { inputs: [], name: 'owner', outputs: [ { internalType: 'address', name: '', type: 'address' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'bytes4', name: 'id', type: 'bytes4' } ], name: 'supportsInterface', outputs: [ { internalType: 'bool', name: '', type: 'bool' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { internalType: 'address', name: 'newOwner', type: 'address' } ], name: 'transferOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address', name: 'newImplementation', type: 'address' } ], name: 'upgradeTo', outputs: [], stateMutability: 'nonpayable', type: 'function' }, { inputs: [ { internalType: 'address', name: 'newImplementation', type: 'address' }, { internalType: 'bytes', name: 'data', type: 'bytes' } ], name: 'upgradeToAndCall', outputs: [], stateMutability: 'payable', type: 'function' }, { stateMutability: 'payable', type: 'receive' }, { inputs: [], name: 'InvalidTick', type: 'error' }, { inputs: [ { internalType: 'uint256', name: 'value', type: 'uint256' } ], name: 'SafeCastOverflowedUintToInt', type: 'error' }, { inputs: [], name: 'bookManager', outputs: [ { internalType: 'contract IBookManager', name: '', type: 'address' } ], stateMutability: 'view', type: 'function' }, { inputs: [ { components: [ { internalType: 'BookId', name: 'id', type: 'uint192' }, { internalType: 'uint256', name: 'limitPrice', type: 'uint256' }, { internalType: 'uint256', name: 'quoteAmount', type: 'uint256' }, { internalType: 'uint256', name: 'maxBaseAmount', type: 'uint256' }, { internalType: 'bytes', name: 'hookData', type: 'bytes' } ], internalType: 'struct IController.TakeOrderParams', name: 'params', type: 'tuple' } ], name: 'getExpectedInput', outputs: [ { internalType: 'uint256', name: 'takenQuoteAmount', type: 'uint256' }, { int
remove-liquidity.test.ts > Remove liquidity: src/apis/pool.ts#L61
ContractFunctionExecutionError: Position `320` is out of bounds (`0 < position < 320`). Contract Call: address: 0xCF556d850277BC579c99C0729F4E72e62C57D811 function: getPool(bytes32 key) args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d) Docs: https://viem.sh/docs/contract/multicall Version: [email protected] ❯ getContractError ../node_modules/viem/utils/errors/getContractError.ts:72:10 ❯ multicall ../node_modules/viem/actions/public/multicall.ts:271:23 ❯ Module.fetchPool ../src/apis/pool.ts:61:7 ❯ Module.getPool ../src/view.ts:179:16 ❯ remove-liquidity.test.ts:31:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: '/docs/contract/multicall', metaMessages: [ 'Contract Call:', ' address: 0xCF556d850277BC579c99C0729F4E72e62C57D811\n function: getPool(bytes32 key)\n args: (0x7f1a575ceb4d9d07a92abe57886551352626b6b600bcada45fa83c3e58cc7e3d)' ], shortMessage: 'Position `320` is out of bounds (`0 < position < 320`).', version: '[email protected]', abi: [ { inputs: [ { internalType: 'contract IBookManager', name: 'bookManager_', type: 'address' }, { internalType: 'address', name: 'initialOwner_', type: 'address' } ], stateMutability: 'nonpayable', type: 'constructor' }, { inputs: [], name: 'AlreadyOpened', type: 'error' }, { inputs: [], name: 'ERC20TransferFailed', type: 'error' }, { inputs: [], name: 'InvalidAmount', type: 'error' }, { inputs: [], name: 'InvalidBookPair', type: 'error' }, { inputs: [], name: 'InvalidHook', type: 'error' }, { inputs: [], name: 'InvalidLockAcquiredSender', type: 'error' }, { inputs: [], name: 'InvalidLockCaller', type: 'error' }, { inputs: [], name: 'InvalidMaker', type: 'error' }, { inputs: [], name: 'InvalidStrategy', type: 'error' }, { inputs: [], name: 'InvalidTick', type: 'error' }, { inputs: [], name: 'InvalidValue', type: 'error' }, { inputs: [], name: 'LockFailure', type: 'error' }, { inputs: [], name: 'NativeTransferFailed', type: 'error' }, { inputs: [], name: 'NotSelf', type: 'error' }, { inputs: [ { internalType: 'address', name: 'owner', type: 'address' } ], name: 'OwnableInvalidOwner', type: 'error' }, { inputs: [ { internalType: 'address', name: 'account', type: 'address' } ], name: 'OwnableUnauthorizedAccount', type: 'error' }, { inputs: [], name: 'Paused', type: 'error' }, { inputs: [ { internalType: 'uint8', name: 'bits', type: 'uint8' }, { internalType: 'uint256', name: 'value', type: 'uint256' } ], name: 'SafeCastOverflowedUintDowncast', type: 'error' }, { inputs: [ { internalType: 'address', name: 'token', type: 'address' } ], name: 'SafeERC20FailedOperation', type: 'error' }, { inputs: [], name: 'Slippage', type: 'error' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'owner', type: 'address' }, { indexed: true, internalType: 'address', name: 'spender', type: 'address' }, { indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' } ], name: 'Approval', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'user', type: 'address' }, { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'amountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'amountB', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'lpAmount', type: 'uint256' } ], name: 'Burn', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'canceledAmountB', type: 'uint256' } ], name: 'Cancel', type: 'event' }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'key', type: 'bytes32' }, { indexed: false, internalType: 'uint256', name: 'claimedAmountA', type: 'uint256' }, { indexed: false, internalType: 'uint256', name: 'claimedAmount
NPM Test (18.10)
The operation was canceled.
NPM Test (18.10)
Process completed with exit code 1.
Check TS (18.10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/