UNPKG

@sharwa.finance/hegic-stop-orders-sdk

Version:

HegicStopOrdersSDK is a specialized SDK package designed to facilitate interaction with HegicStopOrders contracts. It enables the automatic execution of options based on time and price triggers.

267 lines (266 loc) 5.56 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "Expired", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "Paid", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "Replenished", "type": "event" }, { "inputs": [], "name": "benchmark", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract IHegicStrategy", "name": "strategy", "type": "address" }, { "internalType": "address", "name": "holder", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "period", "type": "uint256" }, { "internalType": "bytes[]", "name": "additional", "type": "bytes[]" } ], "name": "buy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "coverPool", "outputs": [ { "internalType": "contract ICoverPool", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract IHegicStrategy", "name": "strategy", "type": "address" } ], "name": "lockedByStrategy", "outputs": [ { "internalType": "uint256", "name": "lockedAmount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "lockedLiquidity", "outputs": [ { "internalType": "enum IOperationalTreasury.LockedLiquidityState", "name": "state", "type": "uint8" }, { "internalType": "contract IHegicStrategy", "name": "strategy", "type": "address" }, { "internalType": "uint128", "name": "negativepnl", "type": "uint128" }, { "internalType": "uint128", "name": "positivepnl", "type": "uint128" }, { "internalType": "uint32", "name": "expiration", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lockedPremium", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "manager", "outputs": [ { "internalType": "contract IPositionsManager", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "positionID", "type": "uint256" }, { "internalType": "address", "name": "account", "type": "address" } ], "name": "payOff", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "token", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalLocked", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "lockedLiquidityID", "type": "uint256" } ], "name": "unlock", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]