UNPKG

@d8x/perpetuals-sdk

Version:

Node TypeScript SDK for D8X Perpetual Futures

264 lines (260 loc) 4.94 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, Interface, type ContractRunner } from "ethers"; import type { LimitOrderBookFactory, LimitOrderBookFactoryInterface, } from "../LimitOrderBookFactory"; const _abi = [ { inputs: [ { internalType: "address", name: "_implementation", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "previousOwner", type: "address", }, { indexed: true, internalType: "address", name: "newOwner", type: "address", }, ], name: "OwnershipTransferred", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint24", name: "perpetualId", type: "uint24", }, { indexed: false, internalType: "address", name: "perpManagerAddress", type: "address", }, { indexed: false, internalType: "address", name: "limitOrderBookAddress", type: "address", }, ], name: "PerpetualLimitOrderBookDeployed", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint24", name: "perpetualId", type: "uint24", }, { indexed: false, internalType: "uint32", name: "gasLimit", type: "uint32", }, ], name: "SetCallbackGasLimit", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "executor", type: "address", }, { indexed: false, internalType: "bool", name: "authorized", type: "bool", }, ], name: "SetExecutor", type: "event", }, { inputs: [ { internalType: "address", name: "_executor", type: "address", }, ], name: "addExecutor", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "approvedExecutor", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_perpetualManagerAddr", type: "address", }, { internalType: "uint24", name: "_perpetualId", type: "uint24", }, ], name: "deployLimitOrderBookProxy", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "getBeacon", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getImplementation", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint24", name: "", type: "uint24", }, ], name: "orderBooks", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "owner", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_executor", type: "address", }, ], name: "removeExecutor", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newOwner", type: "address", }, ], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function", }, ] as const; export class LimitOrderBookFactory__factory { static readonly abi = _abi; static createInterface(): LimitOrderBookFactoryInterface { return new Interface(_abi) as LimitOrderBookFactoryInterface; } static connect( address: string, runner?: ContractRunner | null ): LimitOrderBookFactory { return new Contract( address, _abi, runner ) as unknown as LimitOrderBookFactory; } }