UNPKG

@electra.finance/contracts

Version:
157 lines (156 loc) 3.95 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface } from "ethers"; const _abi = [ { inputs: [ { components: [ { internalType: "address", name: "trader", type: "address", }, { internalType: "bool", name: "isSetDelegate", type: "bool", }, { internalType: "uint88", name: "deadline", type: "uint88", }, { internalType: "address", name: "delegate", type: "address", }, { internalType: "bytes", name: "signature", type: "bytes", }, ], internalType: "struct CFDStructs.DelegationRequest", name: "request", type: "tuple", }, ], name: "changeDelegateFrom", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "trader", type: "address", }, ], name: "delegateFromTimeout", outputs: [ { internalType: "uint88", name: "timeLeft", type: "uint88", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "trader", type: "address", }, { internalType: "bytes", name: "call_data", type: "bytes", }, ], name: "delegatedAction", outputs: [ { internalType: "bytes", name: "", type: "bytes", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "trader", type: "address", }, ], name: "delegations", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "removeDelegate", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "delegate", type: "address", }, ], name: "setDelegate", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "hash", type: "bytes32", }, ], name: "usedDelegationRequests", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, ]; export class DelegateStorage__factory { static createInterface() { return new Interface(_abi); } static connect(address, runner) { return new Contract(address, _abi, runner); } } DelegateStorage__factory.abi = _abi;