UNPKG

@uniswap/v4-sdk

Version:

⚒️ An SDK for building applications on top of Uniswap V4

1,318 lines 32.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.positionManagerAbi = void 0; // TODO: import this from npm exports.positionManagerAbi = [ { type: 'constructor', inputs: [ { name: '_poolManager', type: 'address', internalType: 'contract IPoolManager', }, { name: '_permit2', type: 'address', internalType: 'contract IAllowanceTransfer', }, { name: '_unsubscribeGasLimit', type: 'uint256', internalType: 'uint256', }, { name: '_tokenDescriptor', type: 'address', internalType: 'contract IPositionDescriptor', }, { name: '_weth9', type: 'address', internalType: 'contract IWETH9', }, ], stateMutability: 'nonpayable', }, { type: 'receive', stateMutability: 'payable', }, { type: 'function', name: 'DOMAIN_SEPARATOR', inputs: [], outputs: [ { name: '', type: 'bytes32', internalType: 'bytes32', }, ], stateMutability: 'view', }, { type: 'function', name: 'WETH9', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract IWETH9', }, ], stateMutability: 'view', }, { type: 'function', name: 'approve', inputs: [ { name: 'spender', type: 'address', internalType: 'address', }, { name: 'id', type: 'uint256', internalType: 'uint256', }, ], outputs: [], stateMutability: 'nonpayable', }, { type: 'function', name: 'balanceOf', inputs: [ { name: 'owner', type: 'address', internalType: 'address', }, ], outputs: [ { name: '', type: 'uint256', internalType: 'uint256', }, ], stateMutability: 'view', }, { type: 'function', name: 'getApproved', inputs: [ { name: '', type: 'uint256', internalType: 'uint256', }, ], outputs: [ { name: '', type: 'address', internalType: 'address', }, ], stateMutability: 'view', }, { type: 'function', name: 'getPoolAndPositionInfo', inputs: [ { name: 'tokenId', type: 'uint256', internalType: 'uint256', }, ], outputs: [ { name: 'poolKey', type: 'tuple', internalType: 'struct PoolKey', components: [ { name: 'currency0', type: 'address', internalType: 'Currency', }, { name: 'currency1', type: 'address', internalType: 'Currency', }, { name: 'fee', type: 'uint24', internalType: 'uint24', }, { name: 'tickSpacing', type: 'int24', internalType: 'int24', }, { name: 'hooks', type: 'address', internalType: 'contract IHooks', }, ], }, { name: 'info', type: 'uint256', internalType: 'PositionInfo', }, ], stateMutability: 'view', }, { type: 'function', name: 'getPositionLiquidity', inputs: [ { name: 'tokenId', type: 'uint256', internalType: 'uint256', }, ], outputs: [ { name: 'liquidity', type: 'uint128', internalType: 'uint128', }, ], stateMutability: 'view', }, { type: 'function', name: 'initializePool', inputs: [ { name: 'key', type: 'tuple', internalType: 'struct PoolKey', components: [ { name: 'currency0', type: 'address', internalType: 'Currency', }, { name: 'currency1', type: 'address', internalType: 'Currency', }, { name: 'fee', type: 'uint24', internalType: 'uint24', }, { name: 'tickSpacing', type: 'int24', internalType: 'int24', }, { name: 'hooks', type: 'address', internalType: 'contract IHooks', }, ], }, { name: 'sqrtPriceX96', type: 'uint160', internalType: 'uint160', }, ], outputs: [ { name: '', type: 'int24', internalType: 'int24', }, ], stateMutability: 'payable', }, { type: 'function', name: 'isApprovedForAll', inputs: [ { name: '', type: 'address', internalType: 'address', }, { name: '', type: 'address', internalType: 'address', }, ], outputs: [ { name: '', type: 'bool', internalType: 'bool', }, ], stateMutability: 'view', }, { type: 'function', name: 'modifyLiquidities', inputs: [ { name: 'unlockData', type: 'bytes', internalType: 'bytes', }, { name: 'deadline', type: 'uint256', internalType: 'uint256', }, ], outputs: [], stateMutability: 'payable', }, { type: 'function', name: 'modifyLiquiditiesWithoutUnlock', inputs: [ { name: 'actions', type: 'bytes', internalType: 'bytes', }, { name: 'params', type: 'bytes[]', internalType: 'bytes[]', }, ], outputs: [], stateMutability: 'payable', }, { type: 'function', name: 'msgSender', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'address', }, ], stateMutability: 'view', }, { type: 'function', name: 'multicall', inputs: [ { name: 'data', type: 'bytes[]', internalType: 'bytes[]', }, ], outputs: [ { name: 'results', type: 'bytes[]', internalType: 'bytes[]', }, ], stateMutability: 'payable', }, { type: 'function', name: 'name', inputs: [], outputs: [ { name: '', type: 'string', internalType: 'string', }, ], stateMutability: 'view', }, { type: 'function', name: 'nextTokenId', inputs: [], outputs: [ { name: '', type: 'uint256', internalType: 'uint256', }, ], stateMutability: 'view', }, { type: 'function', name: 'nonces', inputs: [ { name: 'owner', type: 'address', internalType: 'address', }, { name: 'word', type: 'uint256', internalType: 'uint256', }, ], outputs: [ { name: 'bitmap', type: 'uint256', internalType: 'uint256', }, ], stateMutability: 'view', }, { type: 'function', name: 'ownerOf', inputs: [ { name: 'id', type: 'uint256', internalType: 'uint256', }, ], outputs: [ { name: 'owner', type: 'address', internalType: 'address', }, ], stateMutability: 'view', }, { type: 'function', name: 'permit', inputs: [ { name: 'spender', type: 'address', internalType: 'address', }, { name: 'tokenId', type: 'uint256', internalType: 'uint256', }, { name: 'deadline', type: 'uint256', internalType: 'uint256', }, { name: 'nonce', type: 'uint256', internalType: 'uint256', }, { name: 'signature', type: 'bytes', internalType: 'bytes', }, ], outputs: [], stateMutability: 'payable', }, { type: 'function', name: 'permit', inputs: [ { name: 'owner', type: 'address', internalType: 'address', }, { name: 'permitSingle', type: 'tuple', internalType: 'struct IAllowanceTransfer.PermitSingle', components: [ { name: 'details', type: 'tuple', internalType: 'struct IAllowanceTransfer.PermitDetails', components: [ { name: 'token', type: 'address', internalType: 'address', }, { name: 'amount', type: 'uint160', internalType: 'uint160', }, { name: 'expiration', type: 'uint48', internalType: 'uint48', }, { name: 'nonce', type: 'uint48', internalType: 'uint48', }, ], }, { name: 'spender', type: 'address', internalType: 'address', }, { name: 'sigDeadline', type: 'uint256', internalType: 'uint256', }, ], }, { name: 'signature', type: 'bytes', internalType: 'bytes', }, ], outputs: [ { name: 'err', type: 'bytes', internalType: 'bytes', }, ], stateMutability: 'payable', }, { type: 'function', name: 'permit2', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract IAllowanceTransfer', }, ], stateMutability: 'view', }, { type: 'function', name: 'permitBatch', inputs: [ { name: 'owner', type: 'address', internalType: 'address', }, { name: '_permitBatch', type: 'tuple', internalType: 'struct IAllowanceTransfer.PermitBatch', components: [ { name: 'details', type: 'tuple[]', internalType: 'struct IAllowanceTransfer.PermitDetails[]', components: [ { name: 'token', type: 'address', internalType: 'address', }, { name: 'amount', type: 'uint160', internalType: 'uint160', }, { name: 'expiration', type: 'uint48', internalType: 'uint48', }, { name: 'nonce', type: 'uint48', internalType: 'uint48', }, ], }, { name: 'spender', type: 'address', internalType: 'address', }, { name: 'sigDeadline', type: 'uint256', internalType: 'uint256', }, ], }, { name: 'signature', type: 'bytes', internalType: 'bytes', }, ], outputs: [ { name: 'err', type: 'bytes', internalType: 'bytes', }, ], stateMutability: 'payable', }, { type: 'function', name: 'permitForAll', inputs: [ { name: 'owner', type: 'address', internalType: 'address', }, { name: 'operator', type: 'address', internalType: 'address', }, { name: 'approved', type: 'bool', internalType: 'bool', }, { name: 'deadline', type: 'uint256', internalType: 'uint256', }, { name: 'nonce', type: 'uint256', internalType: 'uint256', }, { name: 'signature', type: 'bytes', internalType: 'bytes', }, ], outputs: [], stateMutability: 'payable', }, { type: 'function', name: 'poolKeys', inputs: [ { name: 'poolId', type: 'bytes25', internalType: 'bytes25', }, ], outputs: [ { name: 'currency0', type: 'address', internalType: 'Currency', }, { name: 'currency1', type: 'address', internalType: 'Currency', }, { name: 'fee', type: 'uint24', internalType: 'uint24', }, { name: 'tickSpacing', type: 'int24', internalType: 'int24', }, { name: 'hooks', type: 'address', internalType: 'contract IHooks', }, ], stateMutability: 'view', }, { type: 'function', name: 'poolManager', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract IPoolManager', }, ], stateMutability: 'view', }, { type: 'function', name: 'positionInfo', inputs: [ { name: 'tokenId', type: 'uint256', internalType: 'uint256', }, ], outputs: [ { name: 'info', type: 'uint256', internalType: 'PositionInfo', }, ], stateMutability: 'view', }, { type: 'function', name: 'revokeNonce', inputs: [ { name: 'nonce', type: 'uint256', internalType: 'uint256', }, ], outputs: [], stateMutability: 'payable', }, { type: 'function', name: 'safeTransferFrom', inputs: [ { name: 'from', type: 'address', internalType: 'address', }, { name: 'to', type: 'address', internalType: 'address', }, { name: 'id', type: 'uint256', internalType: 'uint256', }, ], outputs: [], stateMutability: 'nonpayable', }, { type: 'function', name: 'safeTransferFrom', inputs: [ { name: 'from', type: 'address', internalType: 'address', }, { name: 'to', type: 'address', internalType: 'address', }, { name: 'id', type: 'uint256', internalType: 'uint256', }, { name: 'data', type: 'bytes', internalType: 'bytes', }, ], outputs: [], stateMutability: 'nonpayable', }, { type: 'function', name: 'setApprovalForAll', inputs: [ { name: 'operator', type: 'address', internalType: 'address', }, { name: 'approved', type: 'bool', internalType: 'bool', }, ], outputs: [], stateMutability: 'nonpayable', }, { type: 'function', name: 'subscribe', inputs: [ { name: 'tokenId', type: 'uint256', internalType: 'uint256', }, { name: 'newSubscriber', type: 'address', internalType: 'address', }, { name: 'data', type: 'bytes', internalType: 'bytes', }, ], outputs: [], stateMutability: 'payable', }, { type: 'function', name: 'subscriber', inputs: [ { name: 'tokenId', type: 'uint256', internalType: 'uint256', }, ], outputs: [ { name: 'subscriber', type: 'address', internalType: 'contract ISubscriber', }, ], stateMutability: 'view', }, { type: 'function', name: 'supportsInterface', inputs: [ { name: 'interfaceId', type: 'bytes4', internalType: 'bytes4', }, ], outputs: [ { name: '', type: 'bool', internalType: 'bool', }, ], stateMutability: 'view', }, { type: 'function', name: 'symbol', inputs: [], outputs: [ { name: '', type: 'string', internalType: 'string', }, ], stateMutability: 'view', }, { type: 'function', name: 'tokenDescriptor', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract IPositionDescriptor', }, ], stateMutability: 'view', }, { type: 'function', name: 'tokenURI', inputs: [ { name: 'tokenId', type: 'uint256', internalType: 'uint256', }, ], outputs: [ { name: '', type: 'string', internalType: 'string', }, ], stateMutability: 'view', }, { type: 'function', name: 'transferFrom', inputs: [ { name: 'from', type: 'address', internalType: 'address', }, { name: 'to', type: 'address', internalType: 'address', }, { name: 'id', type: 'uint256', internalType: 'uint256', }, ], outputs: [], stateMutability: 'nonpayable', }, { type: 'function', name: 'unlockCallback', inputs: [ { name: 'data', type: 'bytes', internalType: 'bytes', }, ], outputs: [ { name: '', type: 'bytes', internalType: 'bytes', }, ], stateMutability: 'nonpayable', }, { type: 'function', name: 'unsubscribe', inputs: [ { name: 'tokenId', type: 'uint256', internalType: 'uint256', }, ], outputs: [], stateMutability: 'payable', }, { type: 'function', name: 'unsubscribeGasLimit', inputs: [], outputs: [ { name: '', type: 'uint256', internalType: 'uint256', }, ], stateMutability: 'view', }, { type: 'event', name: 'Approval', inputs: [ { name: 'owner', type: 'address', indexed: true, internalType: 'address', }, { name: 'spender', type: 'address', indexed: true, internalType: 'address', }, { name: 'id', type: 'uint256', indexed: true, internalType: 'uint256', }, ], anonymous: false, }, { type: 'event', name: 'ApprovalForAll', inputs: [ { name: 'owner', type: 'address', indexed: true, internalType: 'address', }, { name: 'operator', type: 'address', indexed: true, internalType: 'address', }, { name: 'approved', type: 'bool', indexed: false, internalType: 'bool', }, ], anonymous: false, }, { type: 'event', name: 'Subscription', inputs: [ { name: 'tokenId', type: 'uint256', indexed: true, internalType: 'uint256', }, { name: 'subscriber', type: 'address', indexed: true, internalType: 'address', }, ], anonymous: false, }, { type: 'event', name: 'Transfer', inputs: [ { name: 'from', type: 'address', indexed: true, internalType: 'address', }, { name: 'to', type: 'address', indexed: true, internalType: 'address', }, { name: 'id', type: 'uint256', indexed: true, internalType: 'uint256', }, ], anonymous: false, }, { type: 'event', name: 'Unsubscription', inputs: [ { name: 'tokenId', type: 'uint256', indexed: true, internalType: 'uint256', }, { name: 'subscriber', type: 'address', indexed: true, internalType: 'address', }, ], anonymous: false, }, { type: 'error', name: 'AlreadySubscribed', inputs: [ { name: 'tokenId', type: 'uint256', internalType: 'uint256', }, { name: 'subscriber', type: 'address', internalType: 'address', }, ], }, { type: 'error', name: 'BurnNotificationReverted', inputs: [ { name: 'subscriber', type: 'address', internalType: 'address', }, { name: 'reason', type: 'bytes', internalType: 'bytes', }, ], }, { type: 'error', name: 'ContractLocked', inputs: [], }, { type: 'error', name: 'DeadlinePassed', inputs: [ { name: 'deadline', type: 'uint256', internalType: 'uint256', }, ], }, { type: 'error', name: 'DeltaNotNegative', inputs: [ { name: 'currency', type: 'address', internalType: 'Currency', }, ], }, { type: 'error', name: 'DeltaNotPositive', inputs: [ { name: 'currency', type: 'address', internalType: 'Currency', }, ], }, { type: 'error', name: 'GasLimitTooLow', inputs: [], }, { type: 'error', name: 'InputLengthMismatch', inputs: [], }, { type: 'error', name: 'InsufficientBalance', inputs: [], }, { type: 'error', name: 'InvalidContractSignature', inputs: [], }, { type: 'error', name: 'InvalidEthSender', inputs: [], }, { type: 'error', name: 'InvalidSignature', inputs: [], }, { type: 'error', name: 'InvalidSignatureLength', inputs: [], }, { type: 'error', name: 'InvalidSigner', inputs: [], }, { type: 'error', name: 'MaximumAmountExceeded', inputs: [ { name: 'maximumAmount', type: 'uint128', internalType: 'uint128', }, { name: 'amountRequested', type: 'uint128', internalType: 'uint128', }, ], }, { type: 'error', name: 'MinimumAmountInsufficient', inputs: [ { name: 'minimumAmount', type: 'uint128', internalType: 'uint128', }, { name: 'amountReceived', type: 'uint128', internalType: 'uint128', }, ], }, { type: 'error', name: 'ModifyLiquidityNotificationReverted', inputs: [ { name: 'subscriber', type: 'address', internalType: 'address', }, { name: 'reason', type: 'bytes', internalType: 'bytes', }, ], }, { type: 'error', name: 'NoCodeSubscriber', inputs: [], }, { type: 'error', name: 'NoSelfPermit', inputs: [], }, { type: 'error', name: 'NonceAlreadyUsed', inputs: [], }, { type: 'error', name: 'NotApproved', inputs: [ { name: 'caller', type: 'address', internalType: 'address', }, ], }, { type: 'error', name: 'NotPoolManager', inputs: [], }, { type: 'error', name: 'NotSubscribed', inputs: [], }, { type: 'error', name: 'PoolManagerMustBeLocked', inputs: [], }, { type: 'error', name: 'SignatureDeadlineExpired', inputs: [], }, { type: 'error', name: 'SubscriptionReverted', inputs: [ { name: 'subscriber', type: 'address', internalType: 'address', }, { name: 'reason', type: 'bytes', internalType: 'bytes', }, ], }, { type: 'error', name: 'TransferNotificationReverted', inputs: [ { name: 'subscriber', type: 'address', internalType: 'address', }, { name: 'reason', type: 'bytes', internalType: 'bytes', }, ], }, { type: 'error', name: 'Unauthorized', inputs: [], }, { type: 'error', name: 'UnsupportedAction', inputs: [ { name: 'action', type: 'uint256', internalType: 'uint256', }, ], }, ]; //# sourceMappingURL=positionManagerAbi.js.map