UNPKG

@mean-finance/dca-v2-periphery

Version:

💱 Periphery smart contracts of DCA V2 by mean.finance

472 lines (471 loc) • 13.4 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.DCAHubCompanionHubProxyHandler__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 DCAHubCompanionHubProxyHandler__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.DCAHubCompanionHubProxyHandler__factory = DCAHubCompanionHubProxyHandler__factory; DCAHubCompanionHubProxyHandler__factory.abi = _abi;