UNPKG

@robertprp/intents-sdk

Version:

Shogun Network Intent-based cross-chain swaps SDK

768 lines (767 loc) 16.2 kB
export const SINGLE_CHAIN_GUARD_LIMIT_ABI = [ { inputs: [ { internalType: 'address', name: 'initialOwner', type: 'address', }, { internalType: 'address', name: '_auctioneer', type: 'address', }, { internalType: 'contract ISignatureTransfer', name: '_permit2', type: 'address', }, { internalType: 'contract IExternalCallHandler', name: '_externalCallHandler', type: 'address', }, ], stateMutability: 'nonpayable', type: 'constructor', }, { inputs: [], name: 'FeeOnTransferTokensNotSupported', type: 'error', }, { inputs: [], name: 'InvalidAuctioneerSignature', type: 'error', }, { inputs: [], name: 'InvalidOrder', type: 'error', }, { inputs: [], name: 'InvalidPermission', type: 'error', }, { inputs: [], name: 'InvalidShortString', type: 'error', }, { inputs: [], name: 'NotASolver', type: 'error', }, { inputs: [], name: 'NotAUser', type: 'error', }, { inputs: [], name: 'OrderWasAlreadyManuallyInitialized', type: 'error', }, { inputs: [], name: 'OrderWasNotManuallyInitialized', type: 'error', }, { inputs: [], name: 'OverdueDeadline', 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: [ { internalType: 'address', name: 'token', type: 'address', }, { internalType: 'address', name: 'account', type: 'address', }, { internalType: 'uint256', name: 'minAmount', type: 'uint256', }, { internalType: 'uint256', name: 'received', type: 'uint256', }, ], name: 'RequestedTransferNotFulfilled', type: 'error', }, { inputs: [], name: 'RequestedTransfersLengthMismatch', type: 'error', }, { inputs: [ { internalType: 'address', name: 'token', type: 'address', }, ], name: 'SafeERC20FailedOperation', type: 'error', }, { inputs: [ { internalType: 'string', name: 'str', type: 'string', }, ], name: 'StringTooLong', type: 'error', }, { inputs: [], name: 'ZeroAddress', type: 'error', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'address', name: '', type: 'address', }, ], name: 'AuctioneerSet', type: 'event', }, { anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'orderHash', type: 'bytes32', }, ], name: 'OrderFulfilled', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'bytes32', name: 'orderHash', type: 'bytes32', }, ], name: 'OrderManuallyCancelled', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'bytes32', name: 'orderHash', type: 'bytes32', }, ], name: 'OrderManuallyInitialized', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address', }, { indexed: true, internalType: 'address', name: 'newOwner', type: 'address', }, ], name: 'OwnershipTransferStarted', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address', }, { indexed: true, internalType: 'address', name: 'newOwner', type: 'address', }, ], name: 'OwnershipTransferred', type: 'event', }, { inputs: [], name: 'acceptOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'auctioneer', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { components: [ { internalType: 'address', name: 'user', type: 'address', }, { internalType: 'address', name: 'tokenIn', type: 'address', }, { internalType: 'uint256', name: 'amountIn', type: 'uint256', }, { components: [ { internalType: 'address', name: 'token', type: 'address', }, { internalType: 'address', name: 'receiver', type: 'address', }, { internalType: 'uint256', name: 'amount', type: 'uint256', }, ], internalType: 'struct RequestedTransferLib.TransferData', name: 'requestedOutput', type: 'tuple', }, { components: [ { internalType: 'address', name: 'token', type: 'address', }, { internalType: 'address', name: 'receiver', type: 'address', }, { internalType: 'uint256', name: 'amount', type: 'uint256', }, ], internalType: 'struct RequestedTransferLib.TransferData[]', name: 'extraTransfers', type: 'tuple[]', }, { internalType: 'bytes', name: 'encodedExternalCallData', type: 'bytes', }, { internalType: 'uint32', name: 'deadline', type: 'uint32', }, { internalType: 'uint256', name: 'nonce', type: 'uint256', }, ], internalType: 'struct SingleChainLimitOrder', name: 'order', type: 'tuple', }, ], name: 'cancelManuallyCreatedOrder', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { components: [ { internalType: 'address', name: 'user', type: 'address', }, { internalType: 'address', name: 'tokenIn', type: 'address', }, { internalType: 'uint256', name: 'amountIn', type: 'uint256', }, { components: [ { internalType: 'address', name: 'token', type: 'address', }, { internalType: 'address', name: 'receiver', type: 'address', }, { internalType: 'uint256', name: 'amount', type: 'uint256', }, ], internalType: 'struct RequestedTransferLib.TransferData', name: 'requestedOutput', type: 'tuple', }, { components: [ { internalType: 'address', name: 'token', type: 'address', }, { internalType: 'address', name: 'receiver', type: 'address', }, { internalType: 'uint256', name: 'amount', type: 'uint256', }, ], internalType: 'struct RequestedTransferLib.TransferData[]', name: 'extraTransfers', type: 'tuple[]', }, { internalType: 'bytes', name: 'encodedExternalCallData', type: 'bytes', }, { internalType: 'uint32', name: 'deadline', type: 'uint32', }, { internalType: 'uint256', name: 'nonce', type: 'uint256', }, ], internalType: 'struct SingleChainLimitOrder', name: 'order', type: 'tuple', }, ], name: 'createOrderManually', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'eip712Domain', outputs: [ { internalType: 'bytes1', name: 'fields', type: 'bytes1', }, { internalType: 'string', name: 'name', type: 'string', }, { internalType: 'string', name: 'version', type: 'string', }, { internalType: 'uint256', name: 'chainId', type: 'uint256', }, { internalType: 'address', name: 'verifyingContract', type: 'address', }, { internalType: 'bytes32', name: 'salt', type: 'bytes32', }, { internalType: 'uint256[]', name: 'extensions', type: 'uint256[]', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'externalCallHandler', outputs: [ { internalType: 'contract IExternalCallHandler', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'promisedAmountOut', type: 'uint256', }, { components: [ { internalType: 'address', name: 'user', type: 'address', }, { internalType: 'address', name: 'tokenIn', type: 'address', }, { internalType: 'uint256', name: 'amountIn', type: 'uint256', }, { components: [ { internalType: 'address', name: 'token', type: 'address', }, { internalType: 'address', name: 'receiver', type: 'address', }, { internalType: 'uint256', name: 'amount', type: 'uint256', }, ], internalType: 'struct RequestedTransferLib.TransferData', name: 'requestedOutput', type: 'tuple', }, { components: [ { internalType: 'address', name: 'token', type: 'address', }, { internalType: 'address', name: 'receiver', type: 'address', }, { internalType: 'uint256', name: 'amount', type: 'uint256', }, ], internalType: 'struct RequestedTransferLib.TransferData[]', name: 'extraTransfers', type: 'tuple[]', }, { internalType: 'bytes', name: 'encodedExternalCallData', type: 'bytes', }, { internalType: 'uint32', name: 'deadline', type: 'uint32', }, { internalType: 'uint256', name: 'nonce', type: 'uint256', }, ], internalType: 'struct SingleChainLimitOrder', name: 'order', type: 'tuple', }, { internalType: 'bytes', name: 'userSignature', type: 'bytes', }, { components: [ { internalType: 'address', name: 'solver', type: 'address', }, { internalType: 'bytes32', name: 'orderHash', type: 'bytes32', }, { internalType: 'uint256', name: 'amountOutMin', type: 'uint256', }, { components: [ { internalType: 'address', name: 'token', type: 'address', }, { internalType: 'address', name: 'receiver', type: 'address', }, { internalType: 'uint256', name: 'amount', type: 'uint256', }, ], internalType: 'struct RequestedTransferLib.TransferData', name: 'protocolFeeTransfer', type: 'tuple', }, { internalType: 'uint32', name: 'permissionDeadline', type: 'uint32', }, ], internalType: 'struct SingleChainLimitSolverPermission', name: 'permission', type: 'tuple', }, { internalType: 'bytes', name: 'auctioneerSignature', type: 'bytes', }, { internalType: 'contract ISingleChainIntentFulfiller', name: 'fillerContract', type: 'address', }, { internalType: 'bytes', name: 'callBackData', type: 'bytes', }, { internalType: 'bool', name: 'orderWasInitializedManually', type: 'bool', }, ], name: 'fulfillLimitOrder', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'orderHash', type: 'bytes32', }, ], name: 'orderManuallyInitialized', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'owner', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'pendingOwner', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'permit2', outputs: [ { internalType: 'contract ISignatureTransfer', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: 'newAuctioneer', type: 'address', }, ], name: 'setAuctioneer', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: 'newOwner', type: 'address', }, ], name: 'transferOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function', }, ] as const;