@orionprotocol/contracts
Version:
Orion Protocol contracts typings
215 lines (214 loc) • 5.06 kB
JavaScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Interface } from "ethers";
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "contract IERC20",
name: "_orion",
type: "address",
},
{
internalType: "contract IERC20",
name: "_lumia",
type: "address",
},
{
internalType: "uint256",
name: "_conversionScaleFactor",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
inputs: [],
name: "ConversionDisabled",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "ornAmount",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "lumiaAmount",
type: "uint256",
},
],
name: "Convert",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnershipTransferred",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "burnAddress",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "burn",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "conversionScaleFactor",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "ornAmount",
type: "uint256",
},
],
name: "convert",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "isConversionEnabled",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "lumia",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "orion",
outputs: [
{
internalType: "contract IERC20",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "renounceOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "toggleIsConversionEnabled",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class OrionToLumiaConverter__factory {
static createInterface() {
return new Interface(_abi);
}
static connect(address, runner) {
return new Contract(address, _abi, runner);
}
}
OrionToLumiaConverter__factory.abi = _abi;
export { OrionToLumiaConverter__factory };