@orionprotocol/contracts
Version:
Orion Protocol contracts typings
377 lines (376 loc) • 9.1 kB
JavaScript
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, utils } from "ethers";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "NewTokenDistribution",
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",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "receiver",
type: "address",
},
{
indexed: false,
internalType: "uint192",
name: "amount",
type: "uint192",
},
{
indexed: false,
internalType: "bytes32",
name: "orderHash",
type: "bytes32",
},
],
name: "TokensClaimed",
type: "event",
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "accrued",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "address",
name: "sender",
type: "address",
},
{
internalType: "address",
name: "receiver",
type: "address",
},
{
internalType: "address",
name: "asset",
type: "address",
},
{
internalType: "uint192",
name: "amount",
type: "uint192",
},
{
internalType: "uint64",
name: "startTime",
type: "uint64",
},
{
internalType: "bytes",
name: "signature",
type: "bytes",
},
],
internalType: "struct IDOAccruedDistributor.Order",
name: "order_",
type: "tuple",
},
],
name: "claimTokens",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
name: "claimedOrders",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "uint32",
name: "finishClaimTime_",
type: "uint32",
},
],
name: "distibuteNewTokens",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "asset",
type: "address",
},
],
name: "emergencyAssetWithdrawal",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "finishClaimTime",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "idoToken",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "idoToken_",
type: "address",
},
{
internalType: "address",
name: "verifier_",
type: "address",
},
{
internalType: "uint32",
name: "startClaimTime_",
type: "uint32",
},
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "lastTimeRewardApplicable",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "payouts",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "renounceOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "startClaimTime",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "term",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "tokensAllocation",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "idoToken_",
type: "address",
},
{
internalType: "address",
name: "verifier_",
type: "address",
},
{
internalType: "uint32",
name: "startClaimTime_",
type: "uint32",
},
],
name: "updateParams",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "verifier",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
];
class IDODistributor__factory {
static createInterface() {
return new utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new Contract(address, _abi, signerOrProvider);
}
}
IDODistributor__factory.abi = _abi;
export { IDODistributor__factory };