UNPKG

@catalabs/catalyst-sdk

Version:
279 lines 6.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Router__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [ { components: [ { internalType: 'address', name: 'permit2', type: 'address', }, { internalType: 'address', name: 'weth9', type: 'address', }, ], internalType: 'struct RouterParameters', name: 'params', type: 'tuple', }, ], stateMutability: 'nonpayable', type: 'constructor', }, { inputs: [], name: 'BalanceTooLow', type: 'error', }, { inputs: [], name: 'BuyPunkFailed', type: 'error', }, { inputs: [], name: 'ContractLocked', type: 'error', }, { inputs: [], name: 'ETHNotAccepted', type: 'error', }, { inputs: [ { internalType: 'uint256', name: 'commandIndex', type: 'uint256', }, { internalType: 'bytes', name: 'message', type: 'bytes', }, ], name: 'ExecutionFailed', type: 'error', }, { inputs: [], name: 'FromAddressIsNotOwner', type: 'error', }, { inputs: [], name: 'InsufficientETH', type: 'error', }, { inputs: [], name: 'InsufficientToken', type: 'error', }, { inputs: [], name: 'InvalidBips', type: 'error', }, { inputs: [ { internalType: 'uint256', name: 'commandType', type: 'uint256', }, ], name: 'InvalidCommandType', type: 'error', }, { inputs: [], name: 'InvalidOwnerERC1155', type: 'error', }, { inputs: [], name: 'InvalidOwnerERC721', type: 'error', }, { inputs: [], name: 'LengthMismatch', type: 'error', }, { inputs: [], name: 'SwapCanceled', type: 'error', }, { inputs: [], name: 'TransactionDeadlinePassed', type: 'error', }, { inputs: [], name: 'UnsafeCast', type: 'error', }, { inputs: [ { internalType: 'bytes', name: 'tt', type: 'bytes', }, ], name: 'debugError', type: 'error', }, { inputs: [], name: 'WETH9', outputs: [ { internalType: 'contract IWETH9', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'cancelIdentifier', type: 'bytes32', }, ], name: 'cancelSwap', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'cancelIdentifier', type: 'bytes32', }, { internalType: 'bool', name: 'state', type: 'bool', }, ], name: 'cancelSwap', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes', name: 'commands', type: 'bytes', }, { internalType: 'bytes[]', name: 'inputs', type: 'bytes[]', }, ], name: 'execute', outputs: [], stateMutability: 'payable', type: 'function', }, { inputs: [ { internalType: 'bytes', name: 'commands', type: 'bytes', }, { internalType: 'bytes[]', name: 'inputs', type: 'bytes[]', }, { internalType: 'uint256', name: 'deadline', type: 'uint256', }, ], name: 'execute', outputs: [], stateMutability: 'payable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: 'purchasedTokens', type: 'uint256', }, { internalType: 'bytes', name: 'data', type: 'bytes', }, ], name: 'onCatalystCall', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: '', type: 'address', }, { internalType: 'bytes32', name: '', type: 'bytes32', }, ], name: 'swapIdentifier', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], stateMutability: 'view', type: 'function', }, { stateMutability: 'payable', type: 'receive', }, ]; class Router__factory { static abi = _abi; static createInterface() { return new ethers_1.Interface(_abi); } static connect(address, runner) { return new ethers_1.Contract(address, _abi, runner); } } exports.Router__factory = Router__factory; //# sourceMappingURL=Router__factory.js.map