UNPKG

@mean-finance/dca-v2-periphery

Version:

💱 Periphery smart contracts of DCA V2 by mean.finance

472 lines (471 loc) • 13.3 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.IDCAHubCompanionHubProxyHandler__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [], name: "UnauthorizedCaller", type: "error", }, { inputs: [ { internalType: "contract IDCAHub", name: "hub", type: "address", }, { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint32", name: "amountOfSwaps", type: "uint32", }, { internalType: "uint32", name: "swapInterval", type: "uint32", }, { internalType: "address", name: "owner", type: "address", }, { components: [ { internalType: "address", name: "operator", type: "address", }, { internalType: "enum IDCAPermissionManager.Permission[]", name: "permissions", type: "uint8[]", }, ], internalType: "struct IDCAPermissionManager.PermissionSet[]", name: "permissions", type: "tuple[]", }, { internalType: "bytes", name: "miscellaneous", type: "bytes", }, ], name: "deposit", outputs: [ { internalType: "uint256", name: "positionId", type: "uint256", }, ], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IDCAHub", name: "hub", type: "address", }, { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint32", name: "amountOfSwaps", type: "uint32", }, { internalType: "uint32", name: "swapInterval", type: "uint32", }, { internalType: "address", name: "owner", type: "address", }, { components: [ { internalType: "address", name: "operator", type: "address", }, { internalType: "enum IDCAPermissionManager.Permission[]", name: "permissions", type: "uint8[]", }, ], internalType: "struct IDCAPermissionManager.PermissionSet[]", name: "permissions", type: "tuple[]", }, { internalType: "bytes", name: "miscellaneous", type: "bytes", }, ], name: "depositWithBalanceOnContract", outputs: [ { internalType: "uint256", name: "positionId", type: "uint256", }, ], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IDCAHub", name: "hub", type: "address", }, { internalType: "uint256", name: "positionId", type: "uint256", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint32", name: "newSwaps", type: "uint32", }, ], name: "increasePosition", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IDCAHub", name: "hub", type: "address", }, { internalType: "uint256", name: "positionId", type: "uint256", }, { internalType: "uint32", name: "newSwaps", type: "uint32", }, ], name: "increasePositionWithBalanceOnContract", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IDCAPermissionManager", name: "permissionManager", type: "address", }, { components: [ { internalType: "uint256", name: "tokenId", type: "uint256", }, { components: [ { internalType: "address", name: "operator", type: "address", }, { internalType: "enum IDCAPermissionManager.Permission[]", name: "permissions", type: "uint8[]", }, ], internalType: "struct IDCAPermissionManager.PermissionSet[]", name: "permissionSets", type: "tuple[]", }, ], internalType: "struct IDCAPermissionManager.PositionPermissions[]", name: "permissions", type: "tuple[]", }, { internalType: "uint256", name: "deadline", type: "uint256", }, { internalType: "uint8", name: "v", type: "uint8", }, { internalType: "bytes32", name: "r", type: "bytes32", }, { internalType: "bytes32", name: "s", type: "bytes32", }, ], name: "multiPermissionPermit", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IDCAPermissionManager", name: "permissionManager", type: "address", }, { components: [ { internalType: "address", name: "operator", type: "address", }, { internalType: "enum IDCAPermissionManager.Permission[]", name: "permissions", type: "uint8[]", }, ], internalType: "struct IDCAPermissionManager.PermissionSet[]", name: "permissions", type: "tuple[]", }, { internalType: "uint256", name: "tokenId", type: "uint256", }, { internalType: "uint256", name: "deadline", type: "uint256", }, { internalType: "uint8", name: "v", type: "uint8", }, { internalType: "bytes32", name: "r", type: "bytes32", }, { internalType: "bytes32", name: "s", type: "bytes32", }, ], name: "permissionPermit", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IDCAHub", name: "hub", type: "address", }, { internalType: "uint256", name: "positionId", type: "uint256", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint32", name: "newSwaps", type: "uint32", }, { internalType: "address", name: "recipient", type: "address", }, ], name: "reducePosition", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IDCAHub", name: "hub", type: "address", }, { internalType: "uint256", name: "positionId", type: "uint256", }, { internalType: "address", name: "recipientUnswapped", type: "address", }, { internalType: "address", name: "recipientSwapped", type: "address", }, ], name: "terminate", outputs: [ { internalType: "uint256", name: "unswapped", type: "uint256", }, { internalType: "uint256", name: "swapped", type: "uint256", }, ], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IDCAHub", name: "hub", type: "address", }, { internalType: "uint256", name: "positionId", type: "uint256", }, { internalType: "address", name: "recipient", type: "address", }, ], name: "withdrawSwapped", outputs: [ { internalType: "uint256", name: "swapped", type: "uint256", }, ], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "contract IDCAHub", name: "hub", type: "address", }, { components: [ { internalType: "address", name: "token", type: "address", }, { internalType: "uint256[]", name: "positionIds", type: "uint256[]", }, ], internalType: "struct IDCAHubPositionHandler.PositionSet[]", name: "positions", type: "tuple[]", }, { internalType: "address", name: "recipient", type: "address", }, ], name: "withdrawSwappedMany", outputs: [ { internalType: "uint256[]", name: "withdrawn", type: "uint256[]", }, ], stateMutability: "payable", type: "function", }, ]; class IDCAHubCompanionHubProxyHandler__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.IDCAHubCompanionHubProxyHandler__factory = IDCAHubCompanionHubProxyHandler__factory; IDCAHubCompanionHubProxyHandler__factory.abi = _abi;