UNPKG

@mean-finance/dca-v2-periphery

Version:

💱 Periphery smart contracts of DCA V2 by mean.finance

464 lines (463 loc) • 11.1 kB
{ "_format": "hh-sol-artifact-1", "contractName": "DCAHubCompanionHubProxyHandler", "sourceName": "contracts/DCAHubCompanion/DCAHubCompanionHubProxyHandler.sol", "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" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }