add test cases

This commit is contained in:
Ayush Acharjya
2024-10-25 18:08:28 +01:00
parent 2a04ee34f1
commit 04ddaab282
170 changed files with 63501 additions and 1048 deletions

View File

@@ -0,0 +1,334 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
FtsoV2Interface,
FtsoV2InterfaceInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/FtsoV2Interface";
const _abi = [
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getFeedById",
outputs: [
{
internalType: "uint256",
name: "_value",
type: "uint256",
},
{
internalType: "int8",
name: "_decimals",
type: "int8",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getFeedByIdInWei",
outputs: [
{
internalType: "uint256",
name: "_value",
type: "uint256",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "getFeedByIndex",
outputs: [
{
internalType: "uint256",
name: "_value",
type: "uint256",
},
{
internalType: "int8",
name: "_decimals",
type: "int8",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "getFeedByIndexInWei",
outputs: [
{
internalType: "uint256",
name: "_value",
type: "uint256",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "getFeedId",
outputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getFeedIndex",
outputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21[]",
name: "_feedIds",
type: "bytes21[]",
},
],
name: "getFeedsById",
outputs: [
{
internalType: "uint256[]",
name: "_values",
type: "uint256[]",
},
{
internalType: "int8[]",
name: "_decimals",
type: "int8[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "bytes21[]",
name: "_feedIds",
type: "bytes21[]",
},
],
name: "getFeedsByIdInWei",
outputs: [
{
internalType: "uint256[]",
name: "_values",
type: "uint256[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_indices",
type: "uint256[]",
},
],
name: "getFeedsByIndex",
outputs: [
{
internalType: "uint256[]",
name: "_values",
type: "uint256[]",
},
{
internalType: "int8[]",
name: "_decimals",
type: "int8[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_indices",
type: "uint256[]",
},
],
name: "getFeedsByIndexInWei",
outputs: [
{
internalType: "uint256[]",
name: "_values",
type: "uint256[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "bytes32[]",
name: "proof",
type: "bytes32[]",
},
{
components: [
{
internalType: "uint32",
name: "votingRoundId",
type: "uint32",
},
{
internalType: "bytes21",
name: "id",
type: "bytes21",
},
{
internalType: "int32",
name: "value",
type: "int32",
},
{
internalType: "uint16",
name: "turnoutBIPS",
type: "uint16",
},
{
internalType: "int8",
name: "decimals",
type: "int8",
},
],
internalType: "struct FtsoV2Interface.FeedData",
name: "body",
type: "tuple",
},
],
internalType: "struct FtsoV2Interface.FeedDataWithProof",
name: "_feedData",
type: "tuple",
},
],
name: "verifyFeedData",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class FtsoV2Interface__factory {
static readonly abi = _abi;
static createInterface(): FtsoV2InterfaceInterface {
return new utils.Interface(_abi) as FtsoV2InterfaceInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): FtsoV2Interface {
return new Contract(address, _abi, signerOrProvider) as FtsoV2Interface;
}
}

View File

@@ -0,0 +1,136 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IAddressBinder,
IAddressBinderInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IAddressBinder";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "bytes",
name: "publicKey",
type: "bytes",
},
{
indexed: false,
internalType: "bytes20",
name: "pAddress",
type: "bytes20",
},
{
indexed: false,
internalType: "address",
name: "cAddress",
type: "address",
},
],
name: "AddressesRegistered",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "_cAddress",
type: "address",
},
],
name: "cAddressToPAddress",
outputs: [
{
internalType: "bytes20",
name: "_pAddress",
type: "bytes20",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_pAddress",
type: "bytes20",
},
],
name: "pAddressToCAddress",
outputs: [
{
internalType: "address",
name: "_cAddress",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes",
name: "_publicKey",
type: "bytes",
},
{
internalType: "bytes20",
name: "_pAddress",
type: "bytes20",
},
{
internalType: "address",
name: "_cAddress",
type: "address",
},
],
name: "registerAddresses",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes",
name: "_publicKey",
type: "bytes",
},
],
name: "registerPublicKey",
outputs: [
{
internalType: "bytes20",
name: "_pAddress",
type: "bytes20",
},
{
internalType: "address",
name: "_cAddress",
type: "address",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IAddressBinder__factory {
static readonly abi = _abi;
static createInterface(): IAddressBinderInterface {
return new utils.Interface(_abi) as IAddressBinderInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IAddressBinder {
return new Contract(address, _abi, signerOrProvider) as IAddressBinder;
}
}

View File

@@ -0,0 +1,680 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IClaimSetupManager,
IClaimSetupManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IClaimSetupManager";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "address[]",
name: "recipients",
type: "address[]",
},
],
name: "AllowedClaimRecipientsChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "executor",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "validFromRewardEpoch",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "feeValueWei",
type: "uint256",
},
],
name: "ClaimExecutorFeeValueChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "address[]",
name: "executors",
type: "address[]",
},
],
name: "ClaimExecutorsChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "contract IDelegationAccount",
name: "delegationAccount",
type: "address",
},
],
name: "DelegationAccountCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "contract IDelegationAccount",
name: "delegationAccount",
type: "address",
},
{
indexed: false,
internalType: "bool",
name: "enabled",
type: "bool",
},
],
name: "DelegationAccountUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "executor",
type: "address",
},
],
name: "ExecutorRegistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "executor",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "validFromRewardEpoch",
type: "uint256",
},
],
name: "ExecutorUnregistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "maxFeeValueWei",
type: "uint256",
},
],
name: "MaxFeeSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "minFeeValueWei",
type: "uint256",
},
],
name: "MinFeeSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "registerExecutorFeeValueWei",
type: "uint256",
},
],
name: "RegisterExecutorFeeSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "excessAmount",
type: "uint256",
},
],
name: "SetExecutorsExcessAmountRefunded",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "accountToDelegationAccount",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
],
name: "allowedClaimRecipients",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_delegatees",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
],
name: "batchDelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "claimExecutors",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_bips",
type: "uint256",
},
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
],
name: "delegateGovernance",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "disableDelegationAccount",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "enableDelegationAccount",
outputs: [
{
internalType: "contract IDelegationAccount",
name: "",
type: "address",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "getDelegationAccountData",
outputs: [
{
internalType: "contract IDelegationAccount",
name: "_delegationAccount",
type: "address",
},
{
internalType: "bool",
name: "_enabled",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_executor",
type: "address",
},
],
name: "getExecutorCurrentFeeValue",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_executor",
type: "address",
},
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
],
name: "getExecutorFeeValue",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_executor",
type: "address",
},
],
name: "getExecutorInfo",
outputs: [
{
internalType: "bool",
name: "_registered",
type: "bool",
},
{
internalType: "uint256",
name: "_currentFeeValue",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_executor",
type: "address",
},
],
name: "getExecutorScheduledFeeValueChanges",
outputs: [
{
internalType: "uint256[]",
name: "_feeValue",
type: "uint256[]",
},
{
internalType: "uint256[]",
name: "_validFromEpoch",
type: "uint256[]",
},
{
internalType: "bool[]",
name: "_fixed",
type: "bool[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_start",
type: "uint256",
},
{
internalType: "uint256",
name: "_end",
type: "uint256",
},
],
name: "getRegisteredExecutors",
outputs: [
{
internalType: "address[]",
name: "_registeredExecutors",
type: "address[]",
},
{
internalType: "uint256",
name: "_totalLength",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "address",
name: "_executor",
type: "address",
},
],
name: "isClaimExecutor",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_feeValue",
type: "uint256",
},
],
name: "registerExecutor",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "revokeDelegationAt",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_recipients",
type: "address[]",
},
],
name: "setAllowedClaimRecipients",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_executors",
type: "address[]",
},
{
internalType: "bool",
name: "_enableDelegationAccount",
type: "bool",
},
],
name: "setAutoClaiming",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_executors",
type: "address[]",
},
],
name: "setClaimExecutors",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "contract IERC20",
name: "_token",
type: "address",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "transferExternalToken",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "undelegateAll",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "undelegateGovernance",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "unregisterExecutor",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_feeValue",
type: "uint256",
},
],
name: "updateExecutorFeeValue",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "withdraw",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IClaimSetupManager__factory {
static readonly abi = _abi;
static createInterface(): IClaimSetupManagerInterface {
return new utils.Interface(_abi) as IClaimSetupManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IClaimSetupManager {
return new Contract(address, _abi, signerOrProvider) as IClaimSetupManager;
}
}

View File

@@ -0,0 +1,159 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IDelegationAccount,
IDelegationAccountInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IDelegationAccount";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "bips",
type: "uint256",
},
],
name: "DelegateFtso",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "to",
type: "address",
},
],
name: "DelegateGovernance",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "executor",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "ExecutorFeePaid",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IERC20",
name: "token",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "ExternalTokenTransferred",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "contract IClaimSetupManager",
name: "manager",
type: "address",
},
],
name: "Initialize",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "blockNumber",
type: "uint256",
},
],
name: "RevokeFtso",
type: "event",
},
{
anonymous: false,
inputs: [],
name: "UndelegateAllFtso",
type: "event",
},
{
anonymous: false,
inputs: [],
name: "UndelegateGovernance",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "WithdrawToOwner",
type: "event",
},
] as const;
export class IDelegationAccount__factory {
static readonly abi = _abi;
static createInterface(): IDelegationAccountInterface {
return new utils.Interface(_abi) as IDelegationAccountInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IDelegationAccount {
return new Contract(address, _abi, signerOrProvider) as IDelegationAccount;
}
}

View File

@@ -0,0 +1,277 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IDistributionToDelegators,
IDistributionToDelegatorsInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IDistributionToDelegators";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "whoClaimed",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sentTo",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "month",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "amountWei",
type: "uint256",
},
],
name: "AccountClaimed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "theAccount",
type: "address",
},
{
indexed: false,
internalType: "bool",
name: "confirmed",
type: "bool",
},
],
name: "AccountOptOut",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "entitlementStartTs",
type: "uint256",
},
],
name: "EntitlementStart",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "bool",
name: "useGoodRandom",
type: "bool",
},
{
indexed: false,
internalType: "uint256",
name: "maxWaitForGoodRandomSeconds",
type: "uint256",
},
],
name: "UseGoodRandomSet",
type: "event",
},
{
inputs: [
{
internalType: "address[]",
name: "_rewardOwners",
type: "address[]",
},
{
internalType: "uint256",
name: "_month",
type: "uint256",
},
],
name: "autoClaim",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
{
internalType: "address",
name: "_recipient",
type: "address",
},
{
internalType: "uint256",
name: "_month",
type: "uint256",
},
{
internalType: "bool",
name: "_wrap",
type: "bool",
},
],
name: "claim",
outputs: [
{
internalType: "uint256",
name: "_rewardAmount",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_month",
type: "uint256",
},
],
name: "getClaimableAmount",
outputs: [
{
internalType: "uint256",
name: "_amountWei",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address",
},
{
internalType: "uint256",
name: "_month",
type: "uint256",
},
],
name: "getClaimableAmountOf",
outputs: [
{
internalType: "uint256",
name: "_amountWei",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getClaimableMonths",
outputs: [
{
internalType: "uint256",
name: "_startMonth",
type: "uint256",
},
{
internalType: "uint256",
name: "_endMonth",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentMonth",
outputs: [
{
internalType: "uint256",
name: "_currentMonth",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getMonthToExpireNext",
outputs: [
{
internalType: "uint256",
name: "_monthToExpireNext",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
],
name: "nextClaimableMonth",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "optOutOfAirdrop",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IDistributionToDelegators__factory {
static readonly abi = _abi;
static createInterface(): IDistributionToDelegatorsInterface {
return new utils.Interface(_abi) as IDistributionToDelegatorsInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IDistributionToDelegators {
return new Contract(
address,
_abi,
signerOrProvider
) as IDistributionToDelegators;
}
}

View File

@@ -0,0 +1,814 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IEntityManager,
IEntityManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IEntityManager";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "delegationAddress",
type: "address",
},
],
name: "DelegationAddressProposed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "delegationAddress",
type: "address",
},
],
name: "DelegationAddressRegistrationConfirmed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "maxNodeIdsPerEntity",
type: "uint256",
},
],
name: "MaxNodeIdsPerEntitySet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
],
name: "NodeIdRegistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
],
name: "NodeIdUnregistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "bytes32",
name: "part1",
type: "bytes32",
},
{
indexed: true,
internalType: "bytes32",
name: "part2",
type: "bytes32",
},
],
name: "PublicKeyRegistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "bytes32",
name: "part1",
type: "bytes32",
},
{
indexed: true,
internalType: "bytes32",
name: "part2",
type: "bytes32",
},
],
name: "PublicKeyUnregistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
],
name: "SigningPolicyAddressProposed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
],
name: "SigningPolicyAddressRegistrationConfirmed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "submitAddress",
type: "address",
},
],
name: "SubmitAddressProposed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "submitAddress",
type: "address",
},
],
name: "SubmitAddressRegistrationConfirmed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "submitSignaturesAddress",
type: "address",
},
],
name: "SubmitSignaturesAddressProposed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "submitSignaturesAddress",
type: "address",
},
],
name: "SubmitSignaturesAddressRegistrationConfirmed",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "confirmDelegationAddressRegistration",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "confirmSigningPolicyAddressRegistration",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "confirmSubmitAddressRegistration",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "confirmSubmitSignaturesAddressRegistration",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "getDelegationAddressOf",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getDelegationAddressOfAt",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "getNodeIdsOf",
outputs: [
{
internalType: "bytes20[]",
name: "",
type: "bytes20[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getNodeIdsOfAt",
outputs: [
{
internalType: "bytes20[]",
name: "",
type: "bytes20[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "getPublicKeyOf",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getPublicKeyOfAt",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "getVoterAddresses",
outputs: [
{
components: [
{
internalType: "address",
name: "submitAddress",
type: "address",
},
{
internalType: "address",
name: "submitSignaturesAddress",
type: "address",
},
{
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
],
internalType: "struct IEntityManager.VoterAddresses",
name: "_addresses",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getVoterAddressesAt",
outputs: [
{
components: [
{
internalType: "address",
name: "submitAddress",
type: "address",
},
{
internalType: "address",
name: "submitSignaturesAddress",
type: "address",
},
{
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
],
internalType: "struct IEntityManager.VoterAddresses",
name: "_addresses",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_delegationAddress",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getVoterForDelegationAddress",
outputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getVoterForNodeId",
outputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "_part1",
type: "bytes32",
},
{
internalType: "bytes32",
name: "_part2",
type: "bytes32",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getVoterForPublicKey",
outputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_signingPolicyAddress",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getVoterForSigningPolicyAddress",
outputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_submitAddress",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getVoterForSubmitAddress",
outputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_submitSignaturesAddress",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getVoterForSubmitSignaturesAddress",
outputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_delegationAddress",
type: "address",
},
],
name: "proposeDelegationAddress",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_signingPolicyAddress",
type: "address",
},
],
name: "proposeSigningPolicyAddress",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_submitAddress",
type: "address",
},
],
name: "proposeSubmitAddress",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_submitSignaturesAddress",
type: "address",
},
],
name: "proposeSubmitSignaturesAddress",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
{
internalType: "bytes",
name: "_certificateRaw",
type: "bytes",
},
{
internalType: "bytes",
name: "_signature",
type: "bytes",
},
],
name: "registerNodeId",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "_part1",
type: "bytes32",
},
{
internalType: "bytes32",
name: "_part2",
type: "bytes32",
},
{
internalType: "bytes",
name: "_verificationData",
type: "bytes",
},
],
name: "registerPublicKey",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
],
name: "unregisterNodeId",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "unregisterPublicKey",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IEntityManager__factory {
static readonly abi = _abi;
static createInterface(): IEntityManagerInterface {
return new utils.Interface(_abi) as IEntityManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IEntityManager {
return new Contract(address, _abi, signerOrProvider) as IEntityManager;
}
}

View File

@@ -0,0 +1,258 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFastUpdateIncentiveManager,
IFastUpdateIncentiveManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFastUpdateIncentiveManager";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "Range",
name: "rangeIncrease",
type: "uint256",
},
{
indexed: false,
internalType: "SampleSize",
name: "sampleSizeIncrease",
type: "uint256",
},
{
indexed: false,
internalType: "Fee",
name: "offerAmount",
type: "uint256",
},
],
name: "IncentiveOffered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
components: [
{
internalType: "bytes21",
name: "feedId",
type: "bytes21",
},
{
internalType: "uint32",
name: "rewardBandValue",
type: "uint32",
},
{
internalType: "uint24",
name: "inflationShare",
type: "uint24",
},
],
indexed: false,
internalType: "struct IFastUpdatesConfiguration.FeedConfiguration[]",
name: "feedConfigurations",
type: "tuple[]",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "InflationRewardsOffered",
type: "event",
},
{
inputs: [],
name: "getBaseScale",
outputs: [
{
internalType: "Scale",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentSampleSizeIncreasePrice",
outputs: [
{
internalType: "Fee",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getExpectedSampleSize",
outputs: [
{
internalType: "SampleSize",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getIncentiveDuration",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getPrecision",
outputs: [
{
internalType: "Precision",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRange",
outputs: [
{
internalType: "Range",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getScale",
outputs: [
{
internalType: "Scale",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "Range",
name: "rangeIncrease",
type: "uint256",
},
{
internalType: "Range",
name: "rangeLimit",
type: "uint256",
},
],
internalType: "struct IFastUpdateIncentiveManager.IncentiveOffer",
name: "_offer",
type: "tuple",
},
],
name: "offerIncentive",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [],
name: "rangeIncreaseLimit",
outputs: [
{
internalType: "Range",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "rangeIncreasePrice",
outputs: [
{
internalType: "Fee",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "sampleIncreaseLimit",
outputs: [
{
internalType: "SampleSize",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFastUpdateIncentiveManager__factory {
static readonly abi = _abi;
static createInterface(): IFastUpdateIncentiveManagerInterface {
return new utils.Interface(_abi) as IFastUpdateIncentiveManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFastUpdateIncentiveManager {
return new Contract(
address,
_abi,
signerOrProvider
) as IFastUpdateIncentiveManager;
}
}

View File

@@ -0,0 +1,378 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFastUpdater,
IFastUpdaterInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFastUpdater";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "FastUpdateFeedRemoved",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "votingRoundId",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "index",
type: "uint256",
},
{
indexed: true,
internalType: "bytes21",
name: "id",
type: "bytes21",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
{
indexed: false,
internalType: "int8",
name: "decimals",
type: "int8",
},
],
name: "FastUpdateFeedReset",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "votingEpochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256[]",
name: "feeds",
type: "uint256[]",
},
{
indexed: false,
internalType: "int8[]",
name: "decimals",
type: "int8[]",
},
],
name: "FastUpdateFeeds",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint32",
name: "votingRoundId",
type: "uint32",
},
{
indexed: true,
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
],
name: "FastUpdateFeedsSubmitted",
type: "event",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNum",
type: "uint256",
},
],
name: "blockScoreCutoff",
outputs: [
{
internalType: "uint256",
name: "_cutoff",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "currentRewardEpochId",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "currentScoreCutoff",
outputs: [
{
internalType: "uint256",
name: "_cutoff",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_signingPolicyAddress",
type: "address",
},
],
name: "currentSortitionWeight",
outputs: [
{
internalType: "uint256",
name: "_weight",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "fetchAllCurrentFeeds",
outputs: [
{
internalType: "bytes21[]",
name: "_feedIds",
type: "bytes21[]",
},
{
internalType: "uint256[]",
name: "_feeds",
type: "uint256[]",
},
{
internalType: "int8[]",
name: "_decimals",
type: "int8[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_indices",
type: "uint256[]",
},
],
name: "fetchCurrentFeeds",
outputs: [
{
internalType: "uint256[]",
name: "_feeds",
type: "uint256[]",
},
{
internalType: "int8[]",
name: "_decimals",
type: "int8[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_historySize",
type: "uint256",
},
],
name: "numberOfUpdates",
outputs: [
{
internalType: "uint256[]",
name: "_noOfUpdates",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "numberOfUpdatesInBlock",
outputs: [
{
internalType: "uint256",
name: "_noOfUpdates",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "submissionWindow",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "uint256",
name: "sortitionBlock",
type: "uint256",
},
{
components: [
{
internalType: "uint256",
name: "replicate",
type: "uint256",
},
{
components: [
{
internalType: "uint256",
name: "x",
type: "uint256",
},
{
internalType: "uint256",
name: "y",
type: "uint256",
},
],
internalType: "struct G1Point",
name: "gamma",
type: "tuple",
},
{
internalType: "uint256",
name: "c",
type: "uint256",
},
{
internalType: "uint256",
name: "s",
type: "uint256",
},
],
internalType: "struct SortitionCredential",
name: "sortitionCredential",
type: "tuple",
},
{
internalType: "bytes",
name: "deltas",
type: "bytes",
},
{
components: [
{
internalType: "uint8",
name: "v",
type: "uint8",
},
{
internalType: "bytes32",
name: "r",
type: "bytes32",
},
{
internalType: "bytes32",
name: "s",
type: "bytes32",
},
],
internalType: "struct IFastUpdater.Signature",
name: "signature",
type: "tuple",
},
],
internalType: "struct IFastUpdater.FastUpdates",
name: "_updates",
type: "tuple",
},
],
name: "submitUpdates",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IFastUpdater__factory {
static readonly abi = _abi;
static createInterface(): IFastUpdaterInterface {
return new utils.Interface(_abi) as IFastUpdaterInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFastUpdater {
return new Contract(address, _abi, signerOrProvider) as IFastUpdater;
}
}

View File

@@ -0,0 +1,218 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFastUpdatesConfiguration,
IFastUpdatesConfigurationInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFastUpdatesConfiguration";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes21",
name: "feedId",
type: "bytes21",
},
{
indexed: false,
internalType: "uint32",
name: "rewardBandValue",
type: "uint32",
},
{
indexed: false,
internalType: "uint24",
name: "inflationShare",
type: "uint24",
},
{
indexed: false,
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "FeedAdded",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes21",
name: "feedId",
type: "bytes21",
},
{
indexed: false,
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "FeedRemoved",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes21",
name: "feedId",
type: "bytes21",
},
{
indexed: false,
internalType: "uint32",
name: "rewardBandValue",
type: "uint32",
},
{
indexed: false,
internalType: "uint24",
name: "inflationShare",
type: "uint24",
},
{
indexed: false,
internalType: "uint256",
name: "index",
type: "uint256",
},
],
name: "FeedUpdated",
type: "event",
},
{
inputs: [],
name: "getFeedConfigurations",
outputs: [
{
components: [
{
internalType: "bytes21",
name: "feedId",
type: "bytes21",
},
{
internalType: "uint32",
name: "rewardBandValue",
type: "uint32",
},
{
internalType: "uint24",
name: "inflationShare",
type: "uint24",
},
],
internalType: "struct IFastUpdatesConfiguration.FeedConfiguration[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "getFeedId",
outputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getFeedIds",
outputs: [
{
internalType: "bytes21[]",
name: "",
type: "bytes21[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getFeedIndex",
outputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getNumberOfFeeds",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getUnusedIndices",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFastUpdatesConfiguration__factory {
static readonly abi = _abi;
static createInterface(): IFastUpdatesConfigurationInterface {
return new utils.Interface(_abi) as IFastUpdatesConfigurationInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFastUpdatesConfiguration {
return new Contract(
address,
_abi,
signerOrProvider
) as IFastUpdatesConfiguration;
}
}

View File

@@ -0,0 +1,64 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFeeCalculator,
IFeeCalculatorInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFeeCalculator";
const _abi = [
{
inputs: [
{
internalType: "bytes21[]",
name: "_feedIds",
type: "bytes21[]",
},
],
name: "calculateFeeByIds",
outputs: [
{
internalType: "uint256",
name: "_fee",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_indices",
type: "uint256[]",
},
],
name: "calculateFeeByIndices",
outputs: [
{
internalType: "uint256",
name: "_fee",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFeeCalculator__factory {
static readonly abi = _abi;
static createInterface(): IFeeCalculatorInterface {
return new utils.Interface(_abi) as IFeeCalculatorInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFeeCalculator {
return new Contract(address, _abi, signerOrProvider) as IFeeCalculator;
}
}

View File

@@ -0,0 +1,256 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFlareAssetRegistry,
IFlareAssetRegistryInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFlareAssetRegistry";
const _abi = [
{
inputs: [],
name: "allAssetTypes",
outputs: [
{
internalType: "bytes32[]",
name: "",
type: "bytes32[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "allAssets",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "_assetType",
type: "bytes32",
},
],
name: "allAssetsOfType",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "_assetType",
type: "bytes32",
},
],
name: "allAssetsOfTypeWithSymbols",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
{
internalType: "string[]",
name: "",
type: "string[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "allAssetsWithSymbols",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
{
internalType: "string[]",
name: "",
type: "string[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "symbol",
type: "string",
},
],
name: "assetBySymbol",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_token",
type: "address",
},
],
name: "assetType",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "bytes32",
name: "nameHash",
type: "bytes32",
},
],
name: "getAttribute",
outputs: [
{
internalType: "bool",
name: "defined",
type: "bool",
},
{
internalType: "bytes32",
name: "value",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "incentivePoolFor",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "isFlareAsset",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "maxDelegatesByPercent",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "supportsFtsoDelegation",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFlareAssetRegistry__factory {
static readonly abi = _abi;
static createInterface(): IFlareAssetRegistryInterface {
return new utils.Interface(_abi) as IFlareAssetRegistryInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFlareAssetRegistry {
return new Contract(address, _abi, signerOrProvider) as IFlareAssetRegistry;
}
}

View File

@@ -0,0 +1,124 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFlareContractRegistry,
IFlareContractRegistryInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFlareContractRegistry";
const _abi = [
{
inputs: [],
name: "getAllContracts",
outputs: [
{
internalType: "string[]",
name: "_names",
type: "string[]",
},
{
internalType: "address[]",
name: "_addresses",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "_nameHash",
type: "bytes32",
},
],
name: "getContractAddressByHash",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_name",
type: "string",
},
],
name: "getContractAddressByName",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32[]",
name: "_nameHashes",
type: "bytes32[]",
},
],
name: "getContractAddressesByHash",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string[]",
name: "_names",
type: "string[]",
},
],
name: "getContractAddressesByName",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFlareContractRegistry__factory {
static readonly abi = _abi;
static createInterface(): IFlareContractRegistryInterface {
return new utils.Interface(_abi) as IFlareContractRegistryInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFlareContractRegistry {
return new Contract(
address,
_abi,
signerOrProvider
) as IFlareContractRegistry;
}
}

View File

@@ -0,0 +1,137 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFlareSystemsCalculator,
IFlareSystemsCalculatorInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFlareSystemsCalculator";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "address",
name: "delegationAddress",
type: "address",
},
{
indexed: false,
internalType: "uint16",
name: "delegationFeeBIPS",
type: "uint16",
},
{
indexed: false,
internalType: "uint256",
name: "wNatWeight",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "wNatCappedWeight",
type: "uint256",
},
{
indexed: false,
internalType: "bytes20[]",
name: "nodeIds",
type: "bytes20[]",
},
{
indexed: false,
internalType: "uint256[]",
name: "nodeWeights",
type: "uint256[]",
},
],
name: "VoterRegistrationInfo",
type: "event",
},
{
inputs: [],
name: "signingPolicySignNoRewardsDurationBlocks",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "signingPolicySignNonPunishableDurationBlocks",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "signingPolicySignNonPunishableDurationSeconds",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "wNatCapPPM",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFlareSystemsCalculator__factory {
static readonly abi = _abi;
static createInterface(): IFlareSystemsCalculatorInterface {
return new utils.Interface(_abi) as IFlareSystemsCalculatorInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFlareSystemsCalculator {
return new Contract(
address,
_abi,
signerOrProvider
) as IFlareSystemsCalculator;
}
}

View File

@@ -0,0 +1,677 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFlareSystemsManager,
IFlareSystemsManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFlareSystemsManager";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "uint64",
name: "timestamp",
type: "uint64",
},
],
name: "RandomAcquisitionStarted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "uint32",
name: "startVotingRoundId",
type: "uint32",
},
{
indexed: false,
internalType: "uint64",
name: "timestamp",
type: "uint64",
},
],
name: "RewardEpochStarted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: true,
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "bytes32",
name: "rewardsHash",
type: "bytes32",
},
{
components: [
{
internalType: "uint256",
name: "rewardManagerId",
type: "uint256",
},
{
internalType: "uint256",
name: "noOfWeightBasedClaims",
type: "uint256",
},
],
indexed: false,
internalType: "struct IFlareSystemsManager.NumberOfWeightBasedClaims[]",
name: "noOfWeightBasedClaims",
type: "tuple[]",
},
{
indexed: false,
internalType: "uint64",
name: "timestamp",
type: "uint64",
},
{
indexed: false,
internalType: "bool",
name: "thresholdReached",
type: "bool",
},
],
name: "RewardsSigned",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "uint64",
name: "timestamp",
type: "uint64",
},
],
name: "SignUptimeVoteEnabled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: true,
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "uint64",
name: "timestamp",
type: "uint64",
},
{
indexed: false,
internalType: "bool",
name: "thresholdReached",
type: "bool",
},
],
name: "SigningPolicySigned",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: true,
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "bytes32",
name: "uptimeVoteHash",
type: "bytes32",
},
{
indexed: false,
internalType: "uint64",
name: "timestamp",
type: "uint64",
},
{
indexed: false,
internalType: "bool",
name: "thresholdReached",
type: "bool",
},
],
name: "UptimeVoteSigned",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: true,
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "bytes20[]",
name: "nodeIds",
type: "bytes20[]",
},
{
indexed: false,
internalType: "uint64",
name: "timestamp",
type: "uint64",
},
],
name: "UptimeVoteSubmitted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "uint64",
name: "votePowerBlock",
type: "uint64",
},
{
indexed: false,
internalType: "uint64",
name: "timestamp",
type: "uint64",
},
],
name: "VotePowerBlockSelected",
type: "event",
},
{
inputs: [],
name: "firstRewardEpochStartTs",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "firstVotingRoundStartTs",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRewardEpoch",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRewardEpochId",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentVotingEpochId",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getSeed",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getStartVotingRoundId",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getThreshold",
outputs: [
{
internalType: "uint16",
name: "",
type: "uint16",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getVotePowerBlock",
outputs: [
{
internalType: "uint64",
name: "_votePowerBlock",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getVoterRegistrationData",
outputs: [
{
internalType: "uint256",
name: "_votePowerBlock",
type: "uint256",
},
{
internalType: "bool",
name: "_enabled",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isVoterRegistrationEnabled",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "rewardEpochDurationSeconds",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
{
internalType: "bytes32",
name: "_newSigningPolicyHash",
type: "bytes32",
},
{
components: [
{
internalType: "uint8",
name: "v",
type: "uint8",
},
{
internalType: "bytes32",
name: "r",
type: "bytes32",
},
{
internalType: "bytes32",
name: "s",
type: "bytes32",
},
],
internalType: "struct IFlareSystemsManager.Signature",
name: "_signature",
type: "tuple",
},
],
name: "signNewSigningPolicy",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
{
components: [
{
internalType: "uint256",
name: "rewardManagerId",
type: "uint256",
},
{
internalType: "uint256",
name: "noOfWeightBasedClaims",
type: "uint256",
},
],
internalType: "struct IFlareSystemsManager.NumberOfWeightBasedClaims[]",
name: "_noOfWeightBasedClaims",
type: "tuple[]",
},
{
internalType: "bytes32",
name: "_rewardsHash",
type: "bytes32",
},
{
components: [
{
internalType: "uint8",
name: "v",
type: "uint8",
},
{
internalType: "bytes32",
name: "r",
type: "bytes32",
},
{
internalType: "bytes32",
name: "s",
type: "bytes32",
},
],
internalType: "struct IFlareSystemsManager.Signature",
name: "_signature",
type: "tuple",
},
],
name: "signRewards",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
{
internalType: "bytes32",
name: "_uptimeVoteHash",
type: "bytes32",
},
{
components: [
{
internalType: "uint8",
name: "v",
type: "uint8",
},
{
internalType: "bytes32",
name: "r",
type: "bytes32",
},
{
internalType: "bytes32",
name: "s",
type: "bytes32",
},
],
internalType: "struct IFlareSystemsManager.Signature",
name: "_signature",
type: "tuple",
},
],
name: "signUptimeVote",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
{
internalType: "bytes20[]",
name: "_nodeIds",
type: "bytes20[]",
},
{
components: [
{
internalType: "uint8",
name: "v",
type: "uint8",
},
{
internalType: "bytes32",
name: "r",
type: "bytes32",
},
{
internalType: "bytes32",
name: "s",
type: "bytes32",
},
],
internalType: "struct IFlareSystemsManager.Signature",
name: "_signature",
type: "tuple",
},
],
name: "submitUptimeVote",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "votingEpochDurationSeconds",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFlareSystemsManager__factory {
static readonly abi = _abi;
static createInterface(): IFlareSystemsManagerInterface {
return new utils.Interface(_abi) as IFlareSystemsManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFlareSystemsManager {
return new Contract(
address,
_abi,
signerOrProvider
) as IFlareSystemsManager;
}
}

View File

@@ -0,0 +1,192 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoFeedDecimals,
IFtsoFeedDecimalsInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFtsoFeedDecimals";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes21",
name: "feedId",
type: "bytes21",
},
{
indexed: false,
internalType: "int8",
name: "decimals",
type: "int8",
},
{
indexed: false,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
],
name: "DecimalsChanged",
type: "event",
},
{
inputs: [],
name: "decimalsUpdateOffset",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "defaultDecimals",
outputs: [
{
internalType: "int8",
name: "",
type: "int8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getCurrentDecimals",
outputs: [
{
internalType: "int8",
name: "",
type: "int8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes",
name: "_feedIds",
type: "bytes",
},
],
name: "getCurrentDecimalsBulk",
outputs: [
{
internalType: "bytes",
name: "_decimals",
type: "bytes",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getDecimals",
outputs: [
{
internalType: "int8",
name: "",
type: "int8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes",
name: "_feedIds",
type: "bytes",
},
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getDecimalsBulk",
outputs: [
{
internalType: "bytes",
name: "_decimals",
type: "bytes",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getScheduledDecimalsChanges",
outputs: [
{
internalType: "int8[]",
name: "_decimals",
type: "int8[]",
},
{
internalType: "uint256[]",
name: "_validFromEpochId",
type: "uint256[]",
},
{
internalType: "bool[]",
name: "_fixed",
type: "bool[]",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFtsoFeedDecimals__factory {
static readonly abi = _abi;
static createInterface(): IFtsoFeedDecimalsInterface {
return new utils.Interface(_abi) as IFtsoFeedDecimalsInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoFeedDecimals {
return new Contract(address, _abi, signerOrProvider) as IFtsoFeedDecimals;
}
}

View File

@@ -0,0 +1,78 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoFeedIdConverter,
IFtsoFeedIdConverterInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFtsoFeedIdConverter";
const _abi = [
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getFeedCategoryAndName",
outputs: [
{
internalType: "uint8",
name: "_category",
type: "uint8",
},
{
internalType: "string",
name: "_name",
type: "string",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "uint8",
name: "_category",
type: "uint8",
},
{
internalType: "string",
name: "_name",
type: "string",
},
],
name: "getFeedId",
outputs: [
{
internalType: "bytes21",
name: "",
type: "bytes21",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFtsoFeedIdConverter__factory {
static readonly abi = _abi;
static createInterface(): IFtsoFeedIdConverterInterface {
return new utils.Interface(_abi) as IFtsoFeedIdConverterInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoFeedIdConverter {
return new Contract(
address,
_abi,
signerOrProvider
) as IFtsoFeedIdConverter;
}
}

View File

@@ -0,0 +1,238 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoFeedPublisher,
IFtsoFeedPublisherInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFtsoFeedPublisher";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint32",
name: "votingRoundId",
type: "uint32",
},
{
indexed: true,
internalType: "bytes21",
name: "id",
type: "bytes21",
},
{
indexed: false,
internalType: "int32",
name: "value",
type: "int32",
},
{
indexed: false,
internalType: "uint16",
name: "turnoutBIPS",
type: "uint16",
},
{
indexed: false,
internalType: "int8",
name: "decimals",
type: "int8",
},
],
name: "FtsoFeedPublished",
type: "event",
},
{
inputs: [],
name: "feedsHistorySize",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "ftsoProtocolId",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getCurrentFeed",
outputs: [
{
components: [
{
internalType: "uint32",
name: "votingRoundId",
type: "uint32",
},
{
internalType: "bytes21",
name: "id",
type: "bytes21",
},
{
internalType: "int32",
name: "value",
type: "int32",
},
{
internalType: "uint16",
name: "turnoutBIPS",
type: "uint16",
},
{
internalType: "int8",
name: "decimals",
type: "int8",
},
],
internalType: "struct IFtsoFeedPublisher.Feed",
name: "",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
{
internalType: "uint256",
name: "_votingRoundId",
type: "uint256",
},
],
name: "getFeed",
outputs: [
{
components: [
{
internalType: "uint32",
name: "votingRoundId",
type: "uint32",
},
{
internalType: "bytes21",
name: "id",
type: "bytes21",
},
{
internalType: "int32",
name: "value",
type: "int32",
},
{
internalType: "uint16",
name: "turnoutBIPS",
type: "uint16",
},
{
internalType: "int8",
name: "decimals",
type: "int8",
},
],
internalType: "struct IFtsoFeedPublisher.Feed",
name: "",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "bytes32[]",
name: "merkleProof",
type: "bytes32[]",
},
{
components: [
{
internalType: "uint32",
name: "votingRoundId",
type: "uint32",
},
{
internalType: "bytes21",
name: "id",
type: "bytes21",
},
{
internalType: "int32",
name: "value",
type: "int32",
},
{
internalType: "uint16",
name: "turnoutBIPS",
type: "uint16",
},
{
internalType: "int8",
name: "decimals",
type: "int8",
},
],
internalType: "struct IFtsoFeedPublisher.Feed",
name: "body",
type: "tuple",
},
],
internalType: "struct IFtsoFeedPublisher.FeedWithProof[]",
name: "_proofs",
type: "tuple[]",
},
],
name: "publish",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IFtsoFeedPublisher__factory {
static readonly abi = _abi;
static createInterface(): IFtsoFeedPublisherInterface {
return new utils.Interface(_abi) as IFtsoFeedPublisherInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoFeedPublisher {
return new Contract(address, _abi, signerOrProvider) as IFtsoFeedPublisher;
}
}

View File

@@ -0,0 +1,126 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoInflationConfigurations,
IFtsoInflationConfigurationsInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFtsoInflationConfigurations";
const _abi = [
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "getFtsoConfiguration",
outputs: [
{
components: [
{
internalType: "bytes",
name: "feedIds",
type: "bytes",
},
{
internalType: "uint24",
name: "inflationShare",
type: "uint24",
},
{
internalType: "uint16",
name: "minRewardedTurnoutBIPS",
type: "uint16",
},
{
internalType: "uint24",
name: "primaryBandRewardSharePPM",
type: "uint24",
},
{
internalType: "bytes",
name: "secondaryBandWidthPPMs",
type: "bytes",
},
{
internalType: "uint16",
name: "mode",
type: "uint16",
},
],
internalType: "struct IFtsoInflationConfigurations.FtsoConfiguration",
name: "",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getFtsoConfigurations",
outputs: [
{
components: [
{
internalType: "bytes",
name: "feedIds",
type: "bytes",
},
{
internalType: "uint24",
name: "inflationShare",
type: "uint24",
},
{
internalType: "uint16",
name: "minRewardedTurnoutBIPS",
type: "uint16",
},
{
internalType: "uint24",
name: "primaryBandRewardSharePPM",
type: "uint24",
},
{
internalType: "bytes",
name: "secondaryBandWidthPPMs",
type: "bytes",
},
{
internalType: "uint16",
name: "mode",
type: "uint16",
},
],
internalType: "struct IFtsoInflationConfigurations.FtsoConfiguration[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFtsoInflationConfigurations__factory {
static readonly abi = _abi;
static createInterface(): IFtsoInflationConfigurationsInterface {
return new utils.Interface(_abi) as IFtsoInflationConfigurationsInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoInflationConfigurations {
return new Contract(
address,
_abi,
signerOrProvider
) as IFtsoInflationConfigurations;
}
}

View File

@@ -0,0 +1,391 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoManager,
IFtsoManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFtsoManager";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
],
name: "AccruingUnearnedRewardsFailed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "ftso",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
],
name: "DistributingRewardsFailed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "bool",
name: "fallbackMode",
type: "bool",
},
],
name: "FallbackMode",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IIFtso",
name: "ftso",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "enum IFtso.PriceFinalizationType",
name: "failingType",
type: "uint8",
},
],
name: "FinalizingPriceEpochFailed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IIFtso",
name: "ftso",
type: "address",
},
{
indexed: false,
internalType: "bool",
name: "add",
type: "bool",
},
],
name: "FtsoAdded",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IIFtso",
name: "ftso",
type: "address",
},
{
indexed: false,
internalType: "bool",
name: "fallbackMode",
type: "bool",
},
],
name: "FtsoFallbackMode",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IIFtso",
name: "ftso",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
],
name: "InitializingCurrentEpochStateForRevealFailed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "chosenFtso",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "rewardEpochId",
type: "uint256",
},
],
name: "PriceEpochFinalized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "votepowerBlock",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "startBlock",
type: "uint256",
},
],
name: "RewardEpochFinalized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "bool",
name: "useGoodRandom",
type: "bool",
},
{
indexed: false,
internalType: "uint256",
name: "maxWaitForGoodRandomSeconds",
type: "uint256",
},
],
name: "UseGoodRandomSet",
type: "event",
},
{
inputs: [],
name: "active",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceEpochData",
outputs: [
{
internalType: "uint256",
name: "_priceEpochId",
type: "uint256",
},
{
internalType: "uint256",
name: "_priceEpochStartTimestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "_priceEpochEndTimestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "_priceEpochRevealEndTimestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "_currentTimestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceEpochId",
outputs: [
{
internalType: "uint256",
name: "_priceEpochId",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRewardEpoch",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getFallbackMode",
outputs: [
{
internalType: "bool",
name: "_fallbackMode",
type: "bool",
},
{
internalType: "contract IIFtso[]",
name: "_ftsos",
type: "address[]",
},
{
internalType: "bool[]",
name: "_ftsoInFallbackMode",
type: "bool[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getFtsos",
outputs: [
{
internalType: "contract IIFtso[]",
name: "_ftsos",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getPriceEpochConfiguration",
outputs: [
{
internalType: "uint256",
name: "_firstPriceEpochStartTs",
type: "uint256",
},
{
internalType: "uint256",
name: "_priceEpochDurationSeconds",
type: "uint256",
},
{
internalType: "uint256",
name: "_revealEpochDurationSeconds",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRewardEpochConfiguration",
outputs: [
{
internalType: "uint256",
name: "_firstRewardEpochStartTs",
type: "uint256",
},
{
internalType: "uint256",
name: "_rewardEpochDurationSeconds",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRewardEpochToExpireNext",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
],
name: "getRewardEpochVotePowerBlock",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFtsoManager__factory {
static readonly abi = _abi;
static createInterface(): IFtsoManagerInterface {
return new utils.Interface(_abi) as IFtsoManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoManager {
return new Contract(address, _abi, signerOrProvider) as IFtsoManager;
}
}

View File

@@ -0,0 +1,460 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoRegistry,
IFtsoRegistryInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFtsoRegistry";
const _abi = [
{
inputs: [],
name: "getAllCurrentPrices",
outputs: [
{
components: [
{
internalType: "uint256",
name: "ftsoIndex",
type: "uint256",
},
{
internalType: "uint256",
name: "price",
type: "uint256",
},
{
internalType: "uint256",
name: "decimals",
type: "uint256",
},
{
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
internalType: "struct IFtsoRegistry.PriceInfo[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_symbol",
type: "string",
},
],
name: "getCurrentPrice",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_ftsoIndex",
type: "uint256",
},
],
name: "getCurrentPrice",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_assetIndex",
type: "uint256",
},
],
name: "getCurrentPriceWithDecimals",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "_assetPriceUsdDecimals",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_symbol",
type: "string",
},
],
name: "getCurrentPriceWithDecimals",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "_assetPriceUsdDecimals",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_indices",
type: "uint256[]",
},
],
name: "getCurrentPricesByIndices",
outputs: [
{
components: [
{
internalType: "uint256",
name: "ftsoIndex",
type: "uint256",
},
{
internalType: "uint256",
name: "price",
type: "uint256",
},
{
internalType: "uint256",
name: "decimals",
type: "uint256",
},
{
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
internalType: "struct IFtsoRegistry.PriceInfo[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string[]",
name: "_symbols",
type: "string[]",
},
],
name: "getCurrentPricesBySymbols",
outputs: [
{
components: [
{
internalType: "uint256",
name: "ftsoIndex",
type: "uint256",
},
{
internalType: "uint256",
name: "price",
type: "uint256",
},
{
internalType: "uint256",
name: "decimals",
type: "uint256",
},
{
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
internalType: "struct IFtsoRegistry.PriceInfo[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_ftsoIndex",
type: "uint256",
},
],
name: "getFtso",
outputs: [
{
internalType: "contract IIFtso",
name: "_activeFtsoAddress",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_symbol",
type: "string",
},
],
name: "getFtsoBySymbol",
outputs: [
{
internalType: "contract IIFtso",
name: "_activeFtsoAddress",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_symbol",
type: "string",
},
],
name: "getFtsoIndex",
outputs: [
{
internalType: "uint256",
name: "_assetIndex",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_ftsoIndex",
type: "uint256",
},
],
name: "getFtsoSymbol",
outputs: [
{
internalType: "string",
name: "_symbol",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_indices",
type: "uint256[]",
},
],
name: "getFtsos",
outputs: [
{
internalType: "contract IFtsoGenesis[]",
name: "_ftsos",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getSupportedFtsos",
outputs: [
{
internalType: "contract IIFtso[]",
name: "_ftsos",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getSupportedIndices",
outputs: [
{
internalType: "uint256[]",
name: "_supportedIndices",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getSupportedIndicesAndFtsos",
outputs: [
{
internalType: "uint256[]",
name: "_supportedIndices",
type: "uint256[]",
},
{
internalType: "contract IIFtso[]",
name: "_ftsos",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getSupportedIndicesAndSymbols",
outputs: [
{
internalType: "uint256[]",
name: "_supportedIndices",
type: "uint256[]",
},
{
internalType: "string[]",
name: "_supportedSymbols",
type: "string[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getSupportedIndicesSymbolsAndFtsos",
outputs: [
{
internalType: "uint256[]",
name: "_supportedIndices",
type: "uint256[]",
},
{
internalType: "string[]",
name: "_supportedSymbols",
type: "string[]",
},
{
internalType: "contract IIFtso[]",
name: "_ftsos",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getSupportedSymbols",
outputs: [
{
internalType: "string[]",
name: "_supportedSymbols",
type: "string[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getSupportedSymbolsAndFtsos",
outputs: [
{
internalType: "string[]",
name: "_supportedSymbols",
type: "string[]",
},
{
internalType: "contract IIFtso[]",
name: "_ftsos",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFtsoRegistry__factory {
static readonly abi = _abi;
static createInterface(): IFtsoRegistryInterface {
return new utils.Interface(_abi) as IFtsoRegistryInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoRegistry {
return new Contract(address, _abi, signerOrProvider) as IFtsoRegistry;
}
}

View File

@@ -0,0 +1,717 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoRewardManager,
IFtsoRewardManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFtsoRewardManager";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "dataProvider",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "validFromEpoch",
type: "uint256",
},
],
name: "FeePercentageChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "ftsoRewardManager",
type: "address",
},
],
name: "FtsoRewardManagerActivated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "ftsoRewardManager",
type: "address",
},
],
name: "FtsoRewardManagerDeactivated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "dataProvider",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "whoClaimed",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sentTo",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "rewardEpoch",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "RewardClaimed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "rewardEpochId",
type: "uint256",
},
],
name: "RewardClaimsEnabled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "rewardEpochId",
type: "uint256",
},
],
name: "RewardClaimsExpired",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "ftso",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "address[]",
name: "addresses",
type: "address[]",
},
{
indexed: false,
internalType: "uint256[]",
name: "rewards",
type: "uint256[]",
},
],
name: "RewardsDistributed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "reward",
type: "uint256",
},
],
name: "UnearnedRewardsAccrued",
type: "event",
},
{
inputs: [],
name: "active",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_rewardOwners",
type: "address[]",
},
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
],
name: "autoClaim",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
{
internalType: "address payable",
name: "_recipient",
type: "address",
},
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
{
internalType: "bool",
name: "_wrap",
type: "bool",
},
],
name: "claim",
outputs: [
{
internalType: "uint256",
name: "_rewardAmount",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
{
internalType: "address payable",
name: "_recipient",
type: "address",
},
{
internalType: "uint256[]",
name: "_rewardEpochs",
type: "uint256[]",
},
{
internalType: "address[]",
name: "_dataProviders",
type: "address[]",
},
{
internalType: "bool",
name: "_wrap",
type: "bool",
},
],
name: "claimFromDataProviders",
outputs: [
{
internalType: "uint256",
name: "_rewardAmount",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address payable",
name: "_recipient",
type: "address",
},
{
internalType: "uint256[]",
name: "_rewardEpochs",
type: "uint256[]",
},
],
name: "claimReward",
outputs: [
{
internalType: "uint256",
name: "_rewardAmount",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address payable",
name: "_recipient",
type: "address",
},
{
internalType: "uint256[]",
name: "_rewardEpochs",
type: "uint256[]",
},
{
internalType: "address[]",
name: "_dataProviders",
type: "address[]",
},
],
name: "claimRewardFromDataProviders",
outputs: [
{
internalType: "uint256",
name: "_rewardAmount",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
{
internalType: "address",
name: "_dataProvider",
type: "address",
},
{
internalType: "address",
name: "_claimer",
type: "address",
},
],
name: "getClaimedReward",
outputs: [
{
internalType: "bool",
name: "_claimed",
type: "bool",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRewardEpoch",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_dataProvider",
type: "address",
},
],
name: "getDataProviderCurrentFeePercentage",
outputs: [
{
internalType: "uint256",
name: "_feePercentageBIPS",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_dataProvider",
type: "address",
},
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
],
name: "getDataProviderFeePercentage",
outputs: [
{
internalType: "uint256",
name: "_feePercentageBIPS",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
{
internalType: "address",
name: "_dataProvider",
type: "address",
},
],
name: "getDataProviderPerformanceInfo",
outputs: [
{
internalType: "uint256",
name: "_rewardAmount",
type: "uint256",
},
{
internalType: "uint256",
name: "_votePowerIgnoringRevocation",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_dataProvider",
type: "address",
},
],
name: "getDataProviderScheduledFeePercentageChanges",
outputs: [
{
internalType: "uint256[]",
name: "_feePercentageBIPS",
type: "uint256[]",
},
{
internalType: "uint256[]",
name: "_validFromEpoch",
type: "uint256[]",
},
{
internalType: "bool[]",
name: "_fixed",
type: "bool[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
],
name: "getEpochReward",
outputs: [
{
internalType: "uint256",
name: "_totalReward",
type: "uint256",
},
{
internalType: "uint256",
name: "_claimedReward",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getEpochsWithClaimableRewards",
outputs: [
{
internalType: "uint256",
name: "_startEpochId",
type: "uint256",
},
{
internalType: "uint256",
name: "_endEpochId",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_beneficiary",
type: "address",
},
],
name: "getEpochsWithUnclaimedRewards",
outputs: [
{
internalType: "uint256[]",
name: "_epochIds",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getInitialRewardEpoch",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRewardEpochToExpireNext",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
],
name: "getRewardEpochVotePowerBlock",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_beneficiary",
type: "address",
},
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
],
name: "getStateOfRewards",
outputs: [
{
internalType: "address[]",
name: "_dataProviders",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_rewardAmounts",
type: "uint256[]",
},
{
internalType: "bool[]",
name: "_claimed",
type: "bool[]",
},
{
internalType: "bool",
name: "_claimable",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_beneficiary",
type: "address",
},
{
internalType: "uint256",
name: "_rewardEpoch",
type: "uint256",
},
{
internalType: "address[]",
name: "_dataProviders",
type: "address[]",
},
],
name: "getStateOfRewardsFromDataProviders",
outputs: [
{
internalType: "uint256[]",
name: "_rewardAmounts",
type: "uint256[]",
},
{
internalType: "bool[]",
name: "_claimed",
type: "bool[]",
},
{
internalType: "bool",
name: "_claimable",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
],
name: "nextClaimableRewardEpoch",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_feePercentageBIPS",
type: "uint256",
},
],
name: "setDataProviderFeePercentage",
outputs: [
{
internalType: "uint256",
name: "_validFromEpoch",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IFtsoRewardManager__factory {
static readonly abi = _abi;
static createInterface(): IFtsoRewardManagerInterface {
return new utils.Interface(_abi) as IFtsoRewardManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoRewardManager {
return new Contract(address, _abi, signerOrProvider) as IFtsoRewardManager;
}
}

View File

@@ -0,0 +1,216 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoRewardOffersManager,
IFtsoRewardOffersManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFtsoRewardOffersManager";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "bytes",
name: "feedIds",
type: "bytes",
},
{
indexed: false,
internalType: "bytes",
name: "decimals",
type: "bytes",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
indexed: false,
internalType: "uint16",
name: "minRewardedTurnoutBIPS",
type: "uint16",
},
{
indexed: false,
internalType: "uint24",
name: "primaryBandRewardSharePPM",
type: "uint24",
},
{
indexed: false,
internalType: "bytes",
name: "secondaryBandWidthPPMs",
type: "bytes",
},
{
indexed: false,
internalType: "uint16",
name: "mode",
type: "uint16",
},
],
name: "InflationRewardsOffered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "valueWei",
type: "uint256",
},
],
name: "MinimalRewardsOfferValueSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "bytes21",
name: "feedId",
type: "bytes21",
},
{
indexed: false,
internalType: "int8",
name: "decimals",
type: "int8",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
indexed: false,
internalType: "uint16",
name: "minRewardedTurnoutBIPS",
type: "uint16",
},
{
indexed: false,
internalType: "uint24",
name: "primaryBandRewardSharePPM",
type: "uint24",
},
{
indexed: false,
internalType: "uint24",
name: "secondaryBandWidthPPM",
type: "uint24",
},
{
indexed: false,
internalType: "address",
name: "claimBackAddress",
type: "address",
},
],
name: "RewardsOffered",
type: "event",
},
{
inputs: [],
name: "minimalRewardsOfferValueWei",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint24",
name: "_nextRewardEpochId",
type: "uint24",
},
{
components: [
{
internalType: "uint120",
name: "amount",
type: "uint120",
},
{
internalType: "bytes21",
name: "feedId",
type: "bytes21",
},
{
internalType: "uint16",
name: "minRewardedTurnoutBIPS",
type: "uint16",
},
{
internalType: "uint24",
name: "primaryBandRewardSharePPM",
type: "uint24",
},
{
internalType: "uint24",
name: "secondaryBandWidthPPM",
type: "uint24",
},
{
internalType: "address",
name: "claimBackAddress",
type: "address",
},
],
internalType: "struct IFtsoRewardOffersManager.Offer[]",
name: "_offers",
type: "tuple[]",
},
],
name: "offerRewards",
outputs: [],
stateMutability: "payable",
type: "function",
},
] as const;
export class IFtsoRewardOffersManager__factory {
static readonly abi = _abi;
static createInterface(): IFtsoRewardOffersManagerInterface {
return new utils.Interface(_abi) as IFtsoRewardOffersManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoRewardOffersManager {
return new Contract(
address,
_abi,
signerOrProvider
) as IFtsoRewardOffersManager;
}
}

View File

@@ -0,0 +1,487 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtso,
IFtsoInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IFtso";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "natTurnout",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "lowNatTurnoutThresholdBIPS",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "LowTurnout",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "PriceEpochInitializedOnFtso",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "price",
type: "uint256",
},
{
indexed: false,
internalType: "bool",
name: "rewardedFtso",
type: "bool",
},
{
indexed: false,
internalType: "uint256",
name: "lowIQRRewardPrice",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "highIQRRewardPrice",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "lowElasticBandRewardPrice",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "highElasticBandRewardPrice",
type: "uint256",
},
{
indexed: false,
internalType: "enum IFtso.PriceFinalizationType",
name: "finalizationType",
type: "uint8",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "PriceFinalized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "price",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "votePowerNat",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "votePowerAsset",
type: "uint256",
},
],
name: "PriceRevealed",
type: "event",
},
{
inputs: [],
name: "active",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentEpochId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPrice",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceDetails",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_priceTimestamp",
type: "uint256",
},
{
internalType: "enum IFtso.PriceFinalizationType",
name: "_priceFinalizationType",
type: "uint8",
},
{
internalType: "uint256",
name: "_lastPriceEpochFinalizationTimestamp",
type: "uint256",
},
{
internalType: "enum IFtso.PriceFinalizationType",
name: "_lastPriceEpochFinalizationType",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceFromTrustedProviders",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceWithDecimals",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "_assetPriceUsdDecimals",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceWithDecimalsFromTrustedProviders",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "_assetPriceUsdDecimals",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRandom",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
name: "getEpochId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "getEpochPrice",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "getEpochPriceForVoter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getPriceEpochConfiguration",
outputs: [
{
internalType: "uint256",
name: "_firstEpochStartTs",
type: "uint256",
},
{
internalType: "uint256",
name: "_submitPeriodSeconds",
type: "uint256",
},
{
internalType: "uint256",
name: "_revealPeriodSeconds",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getPriceEpochData",
outputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "uint256",
name: "_epochSubmitEndTime",
type: "uint256",
},
{
internalType: "uint256",
name: "_epochRevealEndTime",
type: "uint256",
},
{
internalType: "uint256",
name: "_votePowerBlock",
type: "uint256",
},
{
internalType: "bool",
name: "_fallbackMode",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "getRandom",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFtso__factory {
static readonly abi = _abi;
static createInterface(): IFtsoInterface {
return new utils.Interface(_abi) as IFtsoInterface;
}
static connect(address: string, signerOrProvider: Signer | Provider): IFtso {
return new Contract(address, _abi, signerOrProvider) as IFtso;
}
}

View File

@@ -0,0 +1,267 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IGenericRewardManager,
IGenericRewardManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IGenericRewardManager";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "rewardOwner",
type: "address",
},
{
indexed: false,
internalType: "address[]",
name: "recipients",
type: "address[]",
},
],
name: "AllowedClaimRecipientsChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "rewardOwner",
type: "address",
},
{
indexed: false,
internalType: "address[]",
name: "executors",
type: "address[]",
},
],
name: "ClaimExecutorsChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "beneficiary",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "sentTo",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "RewardClaimed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "rewardManager",
type: "address",
},
],
name: "RewardManagerActivated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "rewardManager",
type: "address",
},
],
name: "RewardManagerDeactivated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address[]",
name: "addresses",
type: "address[]",
},
{
indexed: false,
internalType: "uint256[]",
name: "rewards",
type: "uint256[]",
},
],
name: "RewardsDistributed",
type: "event",
},
{
inputs: [],
name: "active",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
],
name: "allowedClaimRecipients",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
{
internalType: "address payable",
name: "_recipient",
type: "address",
},
{
internalType: "uint256",
name: "_rewardAmount",
type: "uint256",
},
{
internalType: "bool",
name: "_wrap",
type: "bool",
},
],
name: "claim",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
],
name: "claimExecutors",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_beneficiary",
type: "address",
},
],
name: "getStateOfRewards",
outputs: [
{
internalType: "uint256",
name: "_totalReward",
type: "uint256",
},
{
internalType: "uint256",
name: "_claimedReward",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_recipients",
type: "address[]",
},
],
name: "setAllowedClaimRecipients",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_executors",
type: "address[]",
},
],
name: "setClaimExecutors",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IGenericRewardManager__factory {
static readonly abi = _abi;
static createInterface(): IGenericRewardManagerInterface {
return new utils.Interface(_abi) as IGenericRewardManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IGenericRewardManager {
return new Contract(
address,
_abi,
signerOrProvider
) as IGenericRewardManager;
}
}

View File

@@ -0,0 +1,84 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IGovernanceSettings,
IGovernanceSettingsInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IGovernanceSettings";
const _abi = [
{
inputs: [],
name: "getExecutors",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getGovernanceAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getTimelock",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_address",
type: "address",
},
],
name: "isExecutor",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IGovernanceSettings__factory {
static readonly abi = _abi;
static createInterface(): IGovernanceSettingsInterface {
return new utils.Interface(_abi) as IGovernanceSettingsInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IGovernanceSettings {
return new Contract(address, _abi, signerOrProvider) as IGovernanceSettings;
}
}

View File

@@ -0,0 +1,136 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IGovernanceVotePower,
IGovernanceVotePowerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IGovernanceVotePower";
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getDelegateOfAt",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "getDelegateOfAtNow",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "getVotes",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IGovernanceVotePower__factory {
static readonly abi = _abi;
static createInterface(): IGovernanceVotePowerInterface {
return new utils.Interface(_abi) as IGovernanceVotePowerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IGovernanceVotePower {
return new Contract(
address,
_abi,
signerOrProvider
) as IGovernanceVotePower;
}
}

View File

@@ -0,0 +1,39 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IIncreaseManager,
IIncreaseManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IIncreaseManager";
const _abi = [
{
inputs: [],
name: "getIncentiveDuration",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IIncreaseManager__factory {
static readonly abi = _abi;
static createInterface(): IIncreaseManagerInterface {
return new utils.Interface(_abi) as IIncreaseManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IIncreaseManager {
return new Contract(address, _abi, signerOrProvider) as IIncreaseManager;
}
}

View File

@@ -0,0 +1,332 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IPChainStakeMirrorMultiSigVoting,
IPChainStakeMirrorMultiSigVotingInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IPChainStakeMirrorMultiSigVoting";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "rewardEpochId",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
{
indexed: false,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "bytes20[]",
name: "nodeIds",
type: "bytes20[]",
},
],
name: "PChainStakeMirrorValidatorUptimeVoteSubmitted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "bytes32",
name: "merkleRoot",
type: "bytes32",
},
],
name: "PChainStakeMirrorVoteSubmitted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address[]",
name: "voters",
type: "address[]",
},
],
name: "PChainStakeMirrorVotersSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "bytes32",
name: "merkleRoot",
type: "bytes32",
},
],
name: "PChainStakeMirrorVotingFinalized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
],
name: "PChainStakeMirrorVotingReset",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "votingThreshold",
type: "uint256",
},
],
name: "PChainStakeMirrorVotingThresholdSet",
type: "event",
},
{
inputs: [],
name: "getCurrentEpochId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getEpochConfiguration",
outputs: [
{
internalType: "uint256",
name: "_firstEpochStartTs",
type: "uint256",
},
{
internalType: "uint256",
name: "_epochDurationSeconds",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
name: "getEpochId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "getMerkleRoot",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getVoters",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "getVotes",
outputs: [
{
components: [
{
internalType: "bytes32",
name: "merkleRoot",
type: "bytes32",
},
{
internalType: "address[]",
name: "votes",
type: "address[]",
},
],
internalType: "struct IPChainStakeMirrorMultiSigVoting.PChainVotes[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getVotingThreshold",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "shouldVote",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
{
internalType: "bytes20[]",
name: "_nodeIds",
type: "bytes20[]",
},
],
name: "submitValidatorUptimeVote",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "bytes32",
name: "_merkleRoot",
type: "bytes32",
},
],
name: "submitVote",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IPChainStakeMirrorMultiSigVoting__factory {
static readonly abi = _abi;
static createInterface(): IPChainStakeMirrorMultiSigVotingInterface {
return new utils.Interface(
_abi
) as IPChainStakeMirrorMultiSigVotingInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IPChainStakeMirrorMultiSigVoting {
return new Contract(
address,
_abi,
signerOrProvider
) as IPChainStakeMirrorMultiSigVoting;
}
}

View File

@@ -0,0 +1,590 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IPChainStakeMirror,
IPChainStakeMirrorInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IPChainStakeMirror";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "maxUpdatesPerBlock",
type: "uint256",
},
],
name: "MaxUpdatesPerBlockSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
{
indexed: true,
internalType: "bytes32",
name: "txHash",
type: "bytes32",
},
{
indexed: false,
internalType: "uint256",
name: "amountWei",
type: "uint256",
},
{
indexed: false,
internalType: "bytes32",
name: "pChainTxId",
type: "bytes32",
},
],
name: "StakeConfirmed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
{
indexed: true,
internalType: "bytes32",
name: "txHash",
type: "bytes32",
},
{
indexed: false,
internalType: "uint256",
name: "amountWei",
type: "uint256",
},
],
name: "StakeEnded",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
{
indexed: true,
internalType: "bytes32",
name: "txHash",
type: "bytes32",
},
{
indexed: false,
internalType: "uint256",
name: "amountWei",
type: "uint256",
},
],
name: "StakeRevoked",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
{
indexed: false,
internalType: "uint256",
name: "blockNumber",
type: "uint256",
},
],
name: "VotePowerCacheCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
{
indexed: false,
internalType: "uint256",
name: "priorVotePower",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "newVotePower",
type: "uint256",
},
],
name: "VotePowerChanged",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "balanceOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes20[]",
name: "_nodeIds",
type: "bytes20[]",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "batchVotePowerOfAt",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "_txId",
type: "bytes32",
},
{
internalType: "bytes20",
name: "_inputAddress",
type: "bytes20",
},
],
name: "isActiveStakeMirrored",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "bytes32",
name: "txId",
type: "bytes32",
},
{
internalType: "uint8",
name: "stakingType",
type: "uint8",
},
{
internalType: "bytes20",
name: "inputAddress",
type: "bytes20",
},
{
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
{
internalType: "uint64",
name: "startTime",
type: "uint64",
},
{
internalType: "uint64",
name: "endTime",
type: "uint64",
},
{
internalType: "uint64",
name: "weight",
type: "uint64",
},
],
internalType: "struct IPChainStakeMirrorVerifier.PChainStake",
name: "_stakeData",
type: "tuple",
},
{
internalType: "bytes32[]",
name: "_merkleProof",
type: "bytes32[]",
},
],
name: "mirrorStake",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "stakesOf",
outputs: [
{
internalType: "bytes20[]",
name: "_nodeIds",
type: "bytes20[]",
},
{
internalType: "uint256[]",
name: "_amounts",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "stakesOfAt",
outputs: [
{
internalType: "bytes20[]",
name: "_nodeIds",
type: "bytes20[]",
},
{
internalType: "uint256[]",
name: "_amounts",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalSupplyAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalVotePower",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalVotePowerAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalVotePowerAtCached",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
],
name: "votePowerFromTo",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerFromToAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
],
name: "votePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_owner",
type: "bytes20",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAtCached",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IPChainStakeMirror__factory {
static readonly abi = _abi;
static createInterface(): IPChainStakeMirrorInterface {
return new utils.Interface(_abi) as IPChainStakeMirrorInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IPChainStakeMirror {
return new Contract(address, _abi, signerOrProvider) as IPChainStakeMirror;
}
}

View File

@@ -0,0 +1,324 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IPChainVotePower,
IPChainVotePowerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IPChainVotePower";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
{
indexed: false,
internalType: "uint256",
name: "blockNumber",
type: "uint256",
},
],
name: "VotePowerCacheCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "bytes20",
name: "nodeId",
type: "bytes20",
},
{
indexed: false,
internalType: "uint256",
name: "priorVotePower",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "newVotePower",
type: "uint256",
},
],
name: "VotePowerChanged",
type: "event",
},
{
inputs: [
{
internalType: "bytes20[]",
name: "_nodeIds",
type: "bytes20[]",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "batchVotePowerOfAt",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "stakesOf",
outputs: [
{
internalType: "bytes20[]",
name: "_nodeIds",
type: "bytes20[]",
},
{
internalType: "uint256[]",
name: "_amounts",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "stakesOfAt",
outputs: [
{
internalType: "bytes20[]",
name: "_nodeIds",
type: "bytes20[]",
},
{
internalType: "uint256[]",
name: "_amounts",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalVotePower",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalVotePowerAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalVotePowerAtCached",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
],
name: "votePowerFromTo",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerFromToAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
],
name: "votePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_nodeId",
type: "bytes20",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes20",
name: "_owner",
type: "bytes20",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAtCached",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IPChainVotePower__factory {
static readonly abi = _abi;
static createInterface(): IPChainVotePowerInterface {
return new utils.Interface(_abi) as IPChainVotePowerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IPChainVotePower {
return new Contract(address, _abi, signerOrProvider) as IPChainVotePower;
}
}

View File

@@ -0,0 +1,503 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IPollingFtso,
IPollingFtsoInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IPollingFtso";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "rewardEpochId",
type: "uint256",
},
{
indexed: false,
internalType: "address",
name: "proposer",
type: "address",
},
{
indexed: false,
internalType: "string",
name: "description",
type: "string",
},
{
indexed: false,
internalType: "uint256",
name: "voteStartTime",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "voteEndTime",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "threshold",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "majorityConditionBIPS",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "totalWeight",
type: "uint256",
},
],
name: "FtsoProposalCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "newMaintainer",
type: "address",
},
],
name: "MaintainerSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "votingDelaySeconds",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "votingPeriodSeconds",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "thresholdConditionBIPS",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "majorityConditionBIPS",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "proposalFeeValueWei",
type: "uint256",
},
],
name: "ParametersSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256",
},
],
name: "ProposalCanceled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "proxyVoter",
type: "address",
},
],
name: "ProxyVoterSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "proposalId",
type: "uint256",
},
{
indexed: false,
internalType: "uint8",
name: "support",
type: "uint8",
},
{
indexed: false,
internalType: "uint256",
name: "forVotePower",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "againstVotePower",
type: "uint256",
},
],
name: "VoteCast",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address",
},
],
name: "canPropose",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address",
},
{
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
],
name: "canVote",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
],
name: "cancel",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
{
internalType: "uint8",
name: "_support",
type: "uint8",
},
],
name: "castVote",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "getLastProposal",
outputs: [
{
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
{
internalType: "string",
name: "_description",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
],
name: "getProposalDescription",
outputs: [
{
internalType: "string",
name: "_description",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
],
name: "getProposalInfo",
outputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
{
internalType: "string",
name: "_description",
type: "string",
},
{
internalType: "address",
name: "_proposer",
type: "address",
},
{
internalType: "uint256",
name: "_voteStartTime",
type: "uint256",
},
{
internalType: "uint256",
name: "_voteEndTime",
type: "uint256",
},
{
internalType: "uint256",
name: "_thresholdConditionBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_majorityConditionBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalWeight",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
],
name: "getProposalVotes",
outputs: [
{
internalType: "uint256",
name: "_for",
type: "uint256",
},
{
internalType: "uint256",
name: "_against",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "hasVoted",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_description",
type: "string",
},
],
name: "propose",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_votingDelaySeconds",
type: "uint256",
},
{
internalType: "uint256",
name: "_votingPeriodSeconds",
type: "uint256",
},
{
internalType: "uint256",
name: "_thresholdConditionBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_majorityConditionBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_proposalFeeValueWei",
type: "uint256",
},
],
name: "setParameters",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_proxyVoter",
type: "address",
},
],
name: "setProxyVoter",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
],
name: "state",
outputs: [
{
internalType: "enum IPollingFtso.ProposalState",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IPollingFtso__factory {
static readonly abi = _abi;
static createInterface(): IPollingFtsoInterface {
return new utils.Interface(_abi) as IPollingFtsoInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IPollingFtso {
return new Contract(address, _abi, signerOrProvider) as IPollingFtso;
}
}

View File

@@ -0,0 +1,236 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IPriceSubmitter,
IPriceSubmitterInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IPriceSubmitter";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "submitter",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "bytes32",
name: "hash",
type: "bytes32",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "HashSubmitted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "contract IFtsoGenesis[]",
name: "ftsos",
type: "address[]",
},
{
indexed: false,
internalType: "uint256[]",
name: "prices",
type: "uint256[]",
},
{
indexed: false,
internalType: "uint256",
name: "random",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "PricesRevealed",
type: "event",
},
{
inputs: [],
name: "getCurrentRandom",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getFtsoManager",
outputs: [
{
internalType: "contract IFtsoManagerGenesis",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getFtsoRegistry",
outputs: [
{
internalType: "contract IFtsoRegistryGenesis",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "getRandom",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getVoterWhitelister",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "uint256[]",
name: "_ftsoIndices",
type: "uint256[]",
},
{
internalType: "uint256[]",
name: "_prices",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_random",
type: "uint256",
},
],
name: "revealPrices",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "bytes32",
name: "_hash",
type: "bytes32",
},
],
name: "submitHash",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "voterWhitelistBitmap",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IPriceSubmitter__factory {
static readonly abi = _abi;
static createInterface(): IPriceSubmitterInterface {
return new utils.Interface(_abi) as IPriceSubmitterInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IPriceSubmitter {
return new Contract(address, _abi, signerOrProvider) as IPriceSubmitter;
}
}

View File

@@ -0,0 +1,161 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IRNatAccount,
IRNatAccountInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IRNatAccount";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address[]",
name: "executors",
type: "address[]",
},
],
name: "ClaimExecutorsSet",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "contract IERC20",
name: "token",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "ExternalTokenTransferred",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
indexed: false,
internalType: "bool",
name: "wrap",
type: "bool",
},
],
name: "FundsWithdrawn",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "contract IRNat",
name: "rNat",
type: "address",
},
],
name: "Initialized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "LockedAmountBurned",
type: "event",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "rNat",
outputs: [
{
internalType: "contract IRNat",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "receivedRewards",
outputs: [
{
internalType: "uint128",
name: "",
type: "uint128",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "withdrawnRewards",
outputs: [
{
internalType: "uint128",
name: "",
type: "uint128",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IRNatAccount__factory {
static readonly abi = _abi;
static createInterface(): IRNatAccountInterface {
return new utils.Interface(_abi) as IRNatAccountInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IRNatAccount {
return new Contract(address, _abi, signerOrProvider) as IRNatAccount;
}
}

View File

@@ -0,0 +1,951 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IRNat,
IRNatInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IRNat";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Approval",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256[]",
name: "projectIds",
type: "uint256[]",
},
{
indexed: false,
internalType: "bool",
name: "disabled",
type: "bool",
},
],
name: "ClaimingPermissionUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256[]",
name: "projectIds",
type: "uint256[]",
},
{
indexed: false,
internalType: "bool",
name: "disabled",
type: "bool",
},
],
name: "DistributionPermissionUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256",
},
{
indexed: false,
internalType: "string",
name: "name",
type: "string",
},
{
indexed: false,
internalType: "address",
name: "distributor",
type: "address",
},
{
indexed: false,
internalType: "bool",
name: "currentMonthDistributionEnabled",
type: "bool",
},
],
name: "ProjectAdded",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256",
},
{
indexed: false,
internalType: "string",
name: "name",
type: "string",
},
{
indexed: false,
internalType: "address",
name: "distributor",
type: "address",
},
{
indexed: false,
internalType: "bool",
name: "currentMonthDistributionEnabled",
type: "bool",
},
],
name: "ProjectUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "contract IRNatAccount",
name: "rNatAccount",
type: "address",
},
],
name: "RNatAccountCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "month",
type: "uint256",
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128",
},
],
name: "RewardsAssigned",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "month",
type: "uint256",
},
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128",
},
],
name: "RewardsClaimed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "month",
type: "uint256",
},
{
indexed: false,
internalType: "address[]",
name: "recipients",
type: "address[]",
},
{
indexed: false,
internalType: "uint128[]",
name: "amounts",
type: "uint128[]",
},
],
name: "RewardsDistributed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "month",
type: "uint256",
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128",
},
],
name: "RewardsUnassigned",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Transfer",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "recipient",
type: "address",
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128",
},
],
name: "UnassignedRewardsWithdrawn",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "projectId",
type: "uint256",
},
{
indexed: true,
internalType: "uint256",
name: "month",
type: "uint256",
},
{
indexed: false,
internalType: "uint128",
name: "amount",
type: "uint128",
},
],
name: "UnclaimedRewardsUnassigned",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "spender",
type: "address",
},
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_projectIds",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_month",
type: "uint256",
},
],
name: "claimRewards",
outputs: [
{
internalType: "uint128",
name: "_claimedRewardsWei",
type: "uint128",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_projectId",
type: "uint256",
},
{
internalType: "uint256",
name: "_month",
type: "uint256",
},
{
internalType: "address[]",
name: "_recipients",
type: "address[]",
},
{
internalType: "uint128[]",
name: "_amountsWei",
type: "uint128[]",
},
],
name: "distributeRewards",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "firstMonthStartTs",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "getBalancesOf",
outputs: [
{
internalType: "uint256",
name: "_wNatBalance",
type: "uint256",
},
{
internalType: "uint256",
name: "_rNatBalance",
type: "uint256",
},
{
internalType: "uint256",
name: "_lockedBalance",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_projectId",
type: "uint256",
},
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "getClaimableRewards",
outputs: [
{
internalType: "uint128",
name: "",
type: "uint128",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentMonth",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_projectId",
type: "uint256",
},
{
internalType: "uint256",
name: "_month",
type: "uint256",
},
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "getOwnerRewardsInfo",
outputs: [
{
internalType: "uint128",
name: "_assignedRewards",
type: "uint128",
},
{
internalType: "uint128",
name: "_claimedRewards",
type: "uint128",
},
{
internalType: "bool",
name: "_claimable",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_projectId",
type: "uint256",
},
],
name: "getProjectInfo",
outputs: [
{
internalType: "string",
name: "_name",
type: "string",
},
{
internalType: "address",
name: "_distributor",
type: "address",
},
{
internalType: "bool",
name: "_currentMonthDistributionEnabled",
type: "bool",
},
{
internalType: "bool",
name: "_distributionDisabled",
type: "bool",
},
{
internalType: "bool",
name: "_claimingDisabled",
type: "bool",
},
{
internalType: "uint128",
name: "_totalAssignedRewards",
type: "uint128",
},
{
internalType: "uint128",
name: "_totalDistributedRewards",
type: "uint128",
},
{
internalType: "uint128",
name: "_totalClaimedRewards",
type: "uint128",
},
{
internalType: "uint128",
name: "_totalUnassignedUnclaimedRewards",
type: "uint128",
},
{
internalType: "uint256[]",
name: "_monthsWithRewards",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_projectId",
type: "uint256",
},
{
internalType: "uint256",
name: "_month",
type: "uint256",
},
],
name: "getProjectRewardsInfo",
outputs: [
{
internalType: "uint128",
name: "_assignedRewards",
type: "uint128",
},
{
internalType: "uint128",
name: "_distributedRewards",
type: "uint128",
},
{
internalType: "uint128",
name: "_claimedRewards",
type: "uint128",
},
{
internalType: "uint128",
name: "_unassignedUnclaimedRewards",
type: "uint128",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getProjectsBasicInfo",
outputs: [
{
internalType: "string[]",
name: "_names",
type: "string[]",
},
{
internalType: "bool[]",
name: "_claimingDisabled",
type: "bool[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getProjectsCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "getRNatAccount",
outputs: [
{
internalType: "contract IRNatAccount",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRewardsInfo",
outputs: [
{
internalType: "uint256",
name: "_totalAssignableRewards",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalAssignedRewards",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalClaimedRewards",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalWithdrawnRewards",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalWithdrawnAssignableRewards",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_executors",
type: "address[]",
},
],
name: "setClaimExecutors",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IERC20",
name: "_token",
type: "address",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "transferExternalToken",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "wNat",
outputs: [
{
internalType: "contract IWNat",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint128",
name: "_amount",
type: "uint128",
},
{
internalType: "bool",
name: "_wrap",
type: "bool",
},
],
name: "withdraw",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bool",
name: "_wrap",
type: "bool",
},
],
name: "withdrawAll",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IRNat__factory {
static readonly abi = _abi;
static createInterface(): IRNatInterface {
return new utils.Interface(_abi) as IRNatInterface;
}
static connect(address: string, signerOrProvider: Signer | Provider): IRNat {
return new Contract(address, _abi, signerOrProvider) as IRNat;
}
}

View File

@@ -0,0 +1,80 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IRandomProvider,
IRandomProviderInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IRandomProvider";
const _abi = [
{
inputs: [],
name: "getCurrentRandom",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRandomWithQuality",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
{
internalType: "bool",
name: "_isSecureRandom",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRandomWithQualityAndTimestamp",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
{
internalType: "bool",
name: "_isSecureRandom",
type: "bool",
},
{
internalType: "uint256",
name: "_randomTimestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IRandomProvider__factory {
static readonly abi = _abi;
static createInterface(): IRandomProviderInterface {
return new utils.Interface(_abi) as IRandomProviderInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IRandomProvider {
return new Contract(address, _abi, signerOrProvider) as IRandomProvider;
}
}

View File

@@ -0,0 +1,447 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IRelay,
IRelayInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IRelay";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint8",
name: "protocolId",
type: "uint8",
},
{
indexed: true,
internalType: "uint32",
name: "votingRoundId",
type: "uint32",
},
{
indexed: false,
internalType: "bool",
name: "isSecureRandom",
type: "bool",
},
{
indexed: false,
internalType: "bytes32",
name: "merkleRoot",
type: "bytes32",
},
],
name: "ProtocolMessageRelayed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "uint32",
name: "startVotingRoundId",
type: "uint32",
},
{
indexed: false,
internalType: "uint16",
name: "threshold",
type: "uint16",
},
{
indexed: false,
internalType: "uint256",
name: "seed",
type: "uint256",
},
{
indexed: false,
internalType: "address[]",
name: "voters",
type: "address[]",
},
{
indexed: false,
internalType: "uint16[]",
name: "weights",
type: "uint16[]",
},
{
indexed: false,
internalType: "bytes",
name: "signingPolicyBytes",
type: "bytes",
},
{
indexed: false,
internalType: "uint64",
name: "timestamp",
type: "uint64",
},
],
name: "SigningPolicyInitialized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "rewardEpochId",
type: "uint256",
},
],
name: "SigningPolicyRelayed",
type: "event",
},
{
inputs: [],
name: "feeCollectionAddress",
outputs: [
{
internalType: "address payable",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRandomNumber",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
{
internalType: "bool",
name: "_isSecureRandom",
type: "bool",
},
{
internalType: "uint256",
name: "_randomTimestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_votingRoundId",
type: "uint256",
},
],
name: "getRandomNumberHistorical",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
{
internalType: "bool",
name: "_isSecureRandom",
type: "bool",
},
{
internalType: "uint256",
name: "_randomTimestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
name: "getVotingRoundId",
outputs: [
{
internalType: "uint256",
name: "_votingRoundId",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes",
name: "_relayMessage",
type: "bytes",
},
{
components: [
{
internalType: "bytes32",
name: "descriptionHash",
type: "bytes32",
},
{
internalType: "uint256",
name: "chainId",
type: "uint256",
},
{
components: [
{
internalType: "uint8",
name: "protocolId",
type: "uint8",
},
{
internalType: "uint256",
name: "feeInWei",
type: "uint256",
},
],
internalType: "struct IRelay.FeeConfig[]",
name: "newFeeConfigs",
type: "tuple[]",
},
],
internalType: "struct IRelay.RelayGovernanceConfig",
name: "_config",
type: "tuple",
},
],
name: "governanceFeeSetup",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_protocolId",
type: "uint256",
},
{
internalType: "uint256",
name: "_votingRoundId",
type: "uint256",
},
],
name: "isFinalized",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "lastInitializedRewardEpochData",
outputs: [
{
internalType: "uint32",
name: "_lastInitializedRewardEpoch",
type: "uint32",
},
{
internalType: "uint32",
name: "_startingVotingRoundIdForLastInitializedRewardEpoch",
type: "uint32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_protocolId",
type: "uint256",
},
{
internalType: "uint256",
name: "_votingRoundId",
type: "uint256",
},
],
name: "merkleRoots",
outputs: [
{
internalType: "bytes32",
name: "_merkleRoot",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_protocolId",
type: "uint256",
},
],
name: "protocolFeeInWei",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "relay",
outputs: [
{
internalType: "bytes",
name: "",
type: "bytes",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "startingVotingRoundIds",
outputs: [
{
internalType: "uint256",
name: "_startingVotingRoundId",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "toSigningPolicyHash",
outputs: [
{
internalType: "bytes32",
name: "_signingPolicyHash",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_protocolId",
type: "uint256",
},
{
internalType: "uint256",
name: "_votingRoundId",
type: "uint256",
},
{
internalType: "bytes32",
name: "_leaf",
type: "bytes32",
},
{
internalType: "bytes32[]",
name: "_proof",
type: "bytes32[]",
},
],
name: "verify",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "bytes",
name: "_relayMessage",
type: "bytes",
},
{
internalType: "bytes32",
name: "_messageHash",
type: "bytes32",
},
],
name: "verifyCustomSignature",
outputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IRelay__factory {
static readonly abi = _abi;
static createInterface(): IRelayInterface {
return new utils.Interface(_abi) as IRelayInterface;
}
static connect(address: string, signerOrProvider: Signer | Provider): IRelay {
return new Contract(address, _abi, signerOrProvider) as IRelay;
}
}

View File

@@ -0,0 +1,616 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IRewardManager,
IRewardManagerInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IRewardManager";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "beneficiary",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "rewardOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "recipient",
type: "address",
},
{
indexed: false,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: false,
internalType: "enum RewardsV2Interface.ClaimType",
name: "claimType",
type: "uint8",
},
{
indexed: false,
internalType: "uint120",
name: "amount",
type: "uint120",
},
],
name: "RewardClaimed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "rewardEpochId",
type: "uint256",
},
],
name: "RewardClaimsEnabled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "rewardEpochId",
type: "uint256",
},
],
name: "RewardClaimsExpired",
type: "event",
},
{
inputs: [],
name: "active",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_rewardOwners",
type: "address[]",
},
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
{
components: [
{
internalType: "bytes32[]",
name: "merkleProof",
type: "bytes32[]",
},
{
components: [
{
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
internalType: "bytes20",
name: "beneficiary",
type: "bytes20",
},
{
internalType: "uint120",
name: "amount",
type: "uint120",
},
{
internalType: "enum RewardsV2Interface.ClaimType",
name: "claimType",
type: "uint8",
},
],
internalType: "struct RewardsV2Interface.RewardClaim",
name: "body",
type: "tuple",
},
],
internalType: "struct RewardsV2Interface.RewardClaimWithProof[]",
name: "_proofs",
type: "tuple[]",
},
],
name: "autoClaim",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
{
internalType: "address payable",
name: "_recipient",
type: "address",
},
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
{
internalType: "bool",
name: "_wrap",
type: "bool",
},
{
components: [
{
internalType: "bytes32[]",
name: "merkleProof",
type: "bytes32[]",
},
{
components: [
{
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
internalType: "bytes20",
name: "beneficiary",
type: "bytes20",
},
{
internalType: "uint120",
name: "amount",
type: "uint120",
},
{
internalType: "enum RewardsV2Interface.ClaimType",
name: "claimType",
type: "uint8",
},
],
internalType: "struct RewardsV2Interface.RewardClaim",
name: "body",
type: "tuple",
},
],
internalType: "struct RewardsV2Interface.RewardClaimWithProof[]",
name: "_proofs",
type: "tuple[]",
},
],
name: "claim",
outputs: [
{
internalType: "uint256",
name: "_rewardAmountWei",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "cleanupBlockNumber",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "firstClaimableRewardEpochId",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRewardEpochId",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getInitialRewardEpochId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
],
name: "getNextClaimableRewardEpochId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRewardEpochIdToExpireNext",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRewardEpochIdsWithClaimableRewards",
outputs: [
{
internalType: "uint24",
name: "_startEpochId",
type: "uint24",
},
{
internalType: "uint24",
name: "_endEpochId",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
],
name: "getRewardEpochTotals",
outputs: [
{
internalType: "uint256",
name: "_totalRewardsWei",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalInflationRewardsWei",
type: "uint256",
},
{
internalType: "uint256",
name: "_initialisedRewardsWei",
type: "uint256",
},
{
internalType: "uint256",
name: "_claimedRewardsWei",
type: "uint256",
},
{
internalType: "uint256",
name: "_burnedRewardsWei",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
],
name: "getStateOfRewards",
outputs: [
{
components: [
{
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
internalType: "bytes20",
name: "beneficiary",
type: "bytes20",
},
{
internalType: "uint120",
name: "amount",
type: "uint120",
},
{
internalType: "enum RewardsV2Interface.ClaimType",
name: "claimType",
type: "uint8",
},
{
internalType: "bool",
name: "initialised",
type: "bool",
},
],
internalType: "struct RewardsV2Interface.RewardState[][]",
name: "_rewardStates",
type: "tuple[][]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
],
name: "getStateOfRewardsAt",
outputs: [
{
components: [
{
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
internalType: "bytes20",
name: "beneficiary",
type: "bytes20",
},
{
internalType: "uint120",
name: "amount",
type: "uint120",
},
{
internalType: "enum RewardsV2Interface.ClaimType",
name: "claimType",
type: "uint8",
},
{
internalType: "bool",
name: "initialised",
type: "bool",
},
],
internalType: "struct RewardsV2Interface.RewardState[]",
name: "_rewardStates",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getTotals",
outputs: [
{
internalType: "uint256",
name: "_totalRewardsWei",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalInflationRewardsWei",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalClaimedWei",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalBurnedWei",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_beneficiary",
type: "address",
},
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
{
internalType: "enum RewardsV2Interface.ClaimType",
name: "_claimType",
type: "uint8",
},
],
name: "getUnclaimedRewardState",
outputs: [
{
components: [
{
internalType: "bool",
name: "initialised",
type: "bool",
},
{
internalType: "uint120",
name: "amount",
type: "uint120",
},
{
internalType: "uint128",
name: "weight",
type: "uint128",
},
],
internalType: "struct IRewardManager.UnclaimedRewardState",
name: "_state",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "bytes32[]",
name: "merkleProof",
type: "bytes32[]",
},
{
components: [
{
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
internalType: "bytes20",
name: "beneficiary",
type: "bytes20",
},
{
internalType: "uint120",
name: "amount",
type: "uint120",
},
{
internalType: "enum RewardsV2Interface.ClaimType",
name: "claimType",
type: "uint8",
},
],
internalType: "struct RewardsV2Interface.RewardClaim",
name: "body",
type: "tuple",
},
],
internalType: "struct RewardsV2Interface.RewardClaimWithProof[]",
name: "_proofs",
type: "tuple[]",
},
],
name: "initialiseWeightBasedClaims",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "noOfInitialisedWeightBasedClaims",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IRewardManager__factory {
static readonly abi = _abi;
static createInterface(): IRewardManagerInterface {
return new utils.Interface(_abi) as IRewardManagerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IRewardManager {
return new Contract(address, _abi, signerOrProvider) as IRewardManager;
}
}

View File

@@ -0,0 +1,157 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
ISubmission,
ISubmissionInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/ISubmission";
const _abi = [
{
anonymous: false,
inputs: [],
name: "NewVotingRoundInitiated",
type: "event",
},
{
inputs: [],
name: "getCurrentRandom",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRandomWithQuality",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
{
internalType: "bool",
name: "_isSecureRandom",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRandomWithQualityAndTimestamp",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
{
internalType: "bool",
name: "_isSecureRandom",
type: "bool",
},
{
internalType: "uint256",
name: "_randomTimestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "submit1",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "submit2",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "submit3",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bytes",
name: "_data",
type: "bytes",
},
],
name: "submitAndPass",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "submitSignatures",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class ISubmission__factory {
static readonly abi = _abi;
static createInterface(): ISubmissionInterface {
return new utils.Interface(_abi) as ISubmissionInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): ISubmission {
return new Contract(address, _abi, signerOrProvider) as ISubmission;
}
}

View File

@@ -0,0 +1,88 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IVPContractEvents,
IVPContractEventsInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IVPContractEvents";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "priorVotePower",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "newVotePower",
type: "uint256",
},
],
name: "Delegate",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "delegator",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "delegatee",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "votePower",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "blockNumber",
type: "uint256",
},
],
name: "Revoke",
type: "event",
},
] as const;
export class IVPContractEvents__factory {
static readonly abi = _abi;
static createInterface(): IVPContractEventsInterface {
return new utils.Interface(_abi) as IVPContractEventsInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IVPContractEvents {
return new Contract(address, _abi, signerOrProvider) as IVPContractEvents;
}
}

View File

@@ -0,0 +1,715 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IVPToken,
IVPTokenInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IVPToken";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Approval",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Transfer",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "spender",
type: "address",
},
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "balanceOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_delegatees",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
],
name: "batchDelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_bips",
type: "uint256",
},
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "delegateExplicit",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "delegatesOf",
outputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_count",
type: "uint256",
},
{
internalType: "uint256",
name: "_delegationMode",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "delegatesOfAt",
outputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_count",
type: "uint256",
},
{
internalType: "uint256",
name: "_delegationMode",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "delegationModeOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "governanceVotePower",
outputs: [
{
internalType: "contract IGovernanceVotePower",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "readVotePowerContract",
outputs: [
{
internalType: "contract IVPContractEvents",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "revokeDelegationAt",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalSupplyAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalVotePower",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalVotePowerAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "undelegateAll",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
],
name: "undelegateAllExplicit",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "undelegatedVotePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "undelegatedVotePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
],
name: "votePowerFromTo",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerFromToAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "votePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAtIgnoringRevocation",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "writeVotePowerContract",
outputs: [
{
internalType: "contract IVPContractEvents",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IVPToken__factory {
static readonly abi = _abi;
static createInterface(): IVPTokenInterface {
return new utils.Interface(_abi) as IVPTokenInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IVPToken {
return new Contract(address, _abi, signerOrProvider) as IVPToken;
}
}

View File

@@ -0,0 +1,151 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IValidatorRegistry,
IValidatorRegistryInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IValidatorRegistry";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "dataProvider",
type: "address",
},
{
indexed: false,
internalType: "string",
name: "nodeId",
type: "string",
},
{
indexed: false,
internalType: "string",
name: "pChainPublicKey",
type: "string",
},
],
name: "DataProviderRegistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "dataProvider",
type: "address",
},
],
name: "DataProviderUnregistered",
type: "event",
},
{
inputs: [
{
internalType: "bytes32",
name: "_nodeId",
type: "bytes32",
},
],
name: "getDataProviderForNodeId",
outputs: [
{
internalType: "address",
name: "_dataProvider",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "_pChainPublicKey",
type: "bytes32",
},
],
name: "getDataProviderForPChainPublicKey",
outputs: [
{
internalType: "address",
name: "_dataProvider",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_dataProvider",
type: "address",
},
],
name: "getDataProviderInfo",
outputs: [
{
internalType: "string",
name: "_nodeId",
type: "string",
},
{
internalType: "string",
name: "_pChainPublicKey",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_nodeId",
type: "string",
},
{
internalType: "string",
name: "_pChainPublicKey",
type: "string",
},
],
name: "registerDataProvider",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "unregisterDataProvider",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IValidatorRegistry__factory {
static readonly abi = _abi;
static createInterface(): IValidatorRegistryInterface {
return new utils.Interface(_abi) as IValidatorRegistryInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IValidatorRegistry {
return new Contract(address, _abi, signerOrProvider) as IValidatorRegistry;
}
}

View File

@@ -0,0 +1,280 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IVoterRegistry,
IVoterRegistryInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IVoterRegistry";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "bytes20",
name: "beneficiary",
type: "bytes20",
},
{
indexed: false,
internalType: "uint256",
name: "untilRewardEpochId",
type: "uint256",
},
],
name: "BeneficiaryChilled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
indexed: true,
internalType: "address",
name: "signingPolicyAddress",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "submitAddress",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "submitSignaturesAddress",
type: "address",
},
{
indexed: false,
internalType: "bytes32",
name: "publicKeyPart1",
type: "bytes32",
},
{
indexed: false,
internalType: "bytes32",
name: "publicKeyPart2",
type: "bytes32",
},
{
indexed: false,
internalType: "uint256",
name: "registrationWeight",
type: "uint256",
},
],
name: "VoterRegistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "rewardEpochId",
type: "uint256",
},
],
name: "VoterRemoved",
type: "event",
},
{
inputs: [
{
internalType: "bytes20",
name: "_beneficiary",
type: "bytes20",
},
],
name: "chilledUntilRewardEpochId",
outputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getNumberOfRegisteredVoters",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getRegisteredVoters",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "isVoterRegistered",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "maxVoters",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "newSigningPolicyInitializationStartBlockNumber",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "publicKeyRequired",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
components: [
{
internalType: "uint8",
name: "v",
type: "uint8",
},
{
internalType: "bytes32",
name: "r",
type: "bytes32",
},
{
internalType: "bytes32",
name: "s",
type: "bytes32",
},
],
internalType: "struct IVoterRegistry.Signature",
name: "_signature",
type: "tuple",
},
],
name: "registerVoter",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IVoterRegistry__factory {
static readonly abi = _abi;
static createInterface(): IVoterRegistryInterface {
return new utils.Interface(_abi) as IVoterRegistryInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IVoterRegistry {
return new Contract(address, _abi, signerOrProvider) as IVoterRegistry;
}
}

View File

@@ -0,0 +1,214 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IVoterWhitelister,
IVoterWhitelisterInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IVoterWhitelister";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "untilRewardEpoch",
type: "uint256",
},
],
name: "VoterChilled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "ftsoIndex",
type: "uint256",
},
],
name: "VoterRemovedFromWhitelist",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "ftsoIndex",
type: "uint256",
},
],
name: "VoterWhitelisted",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "chilledUntilRewardEpoch",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "defaultMaxVotersForFtso",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_ftsoIndex",
type: "uint256",
},
],
name: "getFtsoWhitelistedPriceProviders",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_symbol",
type: "string",
},
],
name: "getFtsoWhitelistedPriceProvidersBySymbol",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_ftsoIndex",
type: "uint256",
},
],
name: "maxVotersForFtso",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "requestFullVoterWhitelisting",
outputs: [
{
internalType: "uint256[]",
name: "_supportedIndices",
type: "uint256[]",
},
{
internalType: "bool[]",
name: "_success",
type: "bool[]",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_ftsoIndex",
type: "uint256",
},
],
name: "requestWhitelistingVoter",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IVoterWhitelister__factory {
static readonly abi = _abi;
static createInterface(): IVoterWhitelisterInterface {
return new utils.Interface(_abi) as IVoterWhitelisterInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IVoterWhitelister {
return new Contract(address, _abi, signerOrProvider) as IVoterWhitelister;
}
}

View File

@@ -0,0 +1,168 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IWNatDelegationFee,
IWNatDelegationFeeInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IWNatDelegationFee";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: false,
internalType: "uint16",
name: "value",
type: "uint16",
},
{
indexed: false,
internalType: "uint24",
name: "validFromEpochId",
type: "uint24",
},
],
name: "FeePercentageChanged",
type: "event",
},
{
inputs: [],
name: "defaultFeePercentageBIPS",
outputs: [
{
internalType: "uint16",
name: "",
type: "uint16",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "feePercentageUpdateOffset",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "getVoterCurrentFeePercentage",
outputs: [
{
internalType: "uint16",
name: "",
type: "uint16",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getVoterFeePercentage",
outputs: [
{
internalType: "uint16",
name: "",
type: "uint16",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "getVoterScheduledFeePercentageChanges",
outputs: [
{
internalType: "uint256[]",
name: "_feePercentageBIPS",
type: "uint256[]",
},
{
internalType: "uint256[]",
name: "_validFromEpochId",
type: "uint256[]",
},
{
internalType: "bool[]",
name: "_fixed",
type: "bool[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint16",
name: "_feePercentageBIPS",
type: "uint16",
},
],
name: "setVoterFeePercentage",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IWNatDelegationFee__factory {
static readonly abi = _abi;
static createInterface(): IWNatDelegationFeeInterface {
return new utils.Interface(_abi) as IWNatDelegationFeeInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IWNatDelegationFee {
return new Contract(address, _abi, signerOrProvider) as IWNatDelegationFee;
}
}

View File

@@ -0,0 +1,802 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IWNat,
IWNatInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/IWNat";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Approval",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Transfer",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "spender",
type: "address",
},
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "balanceOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_delegatees",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
],
name: "batchDelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "cleanupBlockNumber",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_bips",
type: "uint256",
},
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "delegateExplicit",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "delegatesOf",
outputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_count",
type: "uint256",
},
{
internalType: "uint256",
name: "_delegationMode",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "delegatesOfAt",
outputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_count",
type: "uint256",
},
{
internalType: "uint256",
name: "_delegationMode",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "delegationModeOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "recipient",
type: "address",
},
],
name: "depositTo",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [],
name: "governanceVotePower",
outputs: [
{
internalType: "contract IGovernanceVotePower",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "readVotePowerContract",
outputs: [
{
internalType: "contract IVPContractEvents",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "revokeDelegationAt",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_cleanerContract",
type: "address",
},
],
name: "setCleanerContract",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "setCleanupBlockNumber",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalSupplyAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalVotePower",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalVotePowerAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "undelegateAll",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
],
name: "undelegateAllExplicit",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "undelegatedVotePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "undelegatedVotePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
],
name: "votePowerFromTo",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerFromToAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "votePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAtIgnoringRevocation",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "withdraw",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "withdrawFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "writeVotePowerContract",
outputs: [
{
internalType: "contract IVPContractEvents",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IWNat__factory {
static readonly abi = _abi;
static createInterface(): IWNatInterface {
return new utils.Interface(_abi) as IWNatInterface;
}
static connect(address: string, signerOrProvider: Signer | Provider): IWNat {
return new Contract(address, _abi, signerOrProvider) as IWNat;
}
}

View File

@@ -0,0 +1,146 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
ProtocolsV2Interface,
ProtocolsV2InterfaceInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/ProtocolsV2Interface";
const _abi = [
{
inputs: [],
name: "firstRewardEpochStartTs",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "firstVotingRoundStartTs",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRewardEpochId",
outputs: [
{
internalType: "uint24",
name: "",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentVotingEpochId",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getStartVotingRoundId",
outputs: [
{
internalType: "uint32",
name: "",
type: "uint32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_rewardEpochId",
type: "uint256",
},
],
name: "getVotePowerBlock",
outputs: [
{
internalType: "uint64",
name: "_votePowerBlock",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "rewardEpochDurationSeconds",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "votingEpochDurationSeconds",
outputs: [
{
internalType: "uint64",
name: "",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class ProtocolsV2Interface__factory {
static readonly abi = _abi;
static createInterface(): ProtocolsV2InterfaceInterface {
return new utils.Interface(_abi) as ProtocolsV2InterfaceInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): ProtocolsV2Interface {
return new Contract(
address,
_abi,
signerOrProvider
) as ProtocolsV2Interface;
}
}

View File

@@ -0,0 +1,82 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
RandomNumberV2Interface,
RandomNumberV2InterfaceInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/RandomNumberV2Interface";
const _abi = [
{
inputs: [],
name: "getRandomNumber",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
{
internalType: "bool",
name: "_isSecureRandom",
type: "bool",
},
{
internalType: "uint256",
name: "_randomTimestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_votingRoundId",
type: "uint256",
},
],
name: "getRandomNumberHistorical",
outputs: [
{
internalType: "uint256",
name: "_randomNumber",
type: "uint256",
},
{
internalType: "bool",
name: "_isSecureRandom",
type: "bool",
},
{
internalType: "uint256",
name: "_randomTimestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class RandomNumberV2Interface__factory {
static readonly abi = _abi;
static createInterface(): RandomNumberV2InterfaceInterface {
return new utils.Interface(_abi) as RandomNumberV2InterfaceInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): RandomNumberV2Interface {
return new Contract(
address,
_abi,
signerOrProvider
) as RandomNumberV2Interface;
}
}

View File

@@ -0,0 +1,195 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
RewardsV2Interface,
RewardsV2InterfaceInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/RewardsV2Interface";
const _abi = [
{
inputs: [],
name: "active",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
{
internalType: "address payable",
name: "_recipient",
type: "address",
},
{
internalType: "uint24",
name: "_rewardEpochId",
type: "uint24",
},
{
internalType: "bool",
name: "_wrap",
type: "bool",
},
{
components: [
{
internalType: "bytes32[]",
name: "merkleProof",
type: "bytes32[]",
},
{
components: [
{
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
internalType: "bytes20",
name: "beneficiary",
type: "bytes20",
},
{
internalType: "uint120",
name: "amount",
type: "uint120",
},
{
internalType: "enum RewardsV2Interface.ClaimType",
name: "claimType",
type: "uint8",
},
],
internalType: "struct RewardsV2Interface.RewardClaim",
name: "body",
type: "tuple",
},
],
internalType: "struct RewardsV2Interface.RewardClaimWithProof[]",
name: "_proofs",
type: "tuple[]",
},
],
name: "claim",
outputs: [
{
internalType: "uint256",
name: "_rewardAmountWei",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
],
name: "getNextClaimableRewardEpochId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getRewardEpochIdsWithClaimableRewards",
outputs: [
{
internalType: "uint24",
name: "_startEpochId",
type: "uint24",
},
{
internalType: "uint24",
name: "_endEpochId",
type: "uint24",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_rewardOwner",
type: "address",
},
],
name: "getStateOfRewards",
outputs: [
{
components: [
{
internalType: "uint24",
name: "rewardEpochId",
type: "uint24",
},
{
internalType: "bytes20",
name: "beneficiary",
type: "bytes20",
},
{
internalType: "uint120",
name: "amount",
type: "uint120",
},
{
internalType: "enum RewardsV2Interface.ClaimType",
name: "claimType",
type: "uint8",
},
{
internalType: "bool",
name: "initialised",
type: "bool",
},
],
internalType: "struct RewardsV2Interface.RewardState[][]",
name: "_rewardStates",
type: "tuple[][]",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class RewardsV2Interface__factory {
static readonly abi = _abi;
static createInterface(): RewardsV2InterfaceInterface {
return new utils.Interface(_abi) as RewardsV2InterfaceInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): RewardsV2Interface {
return new Contract(address, _abi, signerOrProvider) as RewardsV2Interface;
}
}

View File

@@ -0,0 +1,334 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
TestFtsoV2Interface,
TestFtsoV2InterfaceInterface,
} from "../../../../@flarenetwork/flare-periphery-contracts/coston2/TestFtsoV2Interface";
const _abi = [
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getFeedById",
outputs: [
{
internalType: "uint256",
name: "_value",
type: "uint256",
},
{
internalType: "int8",
name: "_decimals",
type: "int8",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getFeedByIdInWei",
outputs: [
{
internalType: "uint256",
name: "_value",
type: "uint256",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "getFeedByIndex",
outputs: [
{
internalType: "uint256",
name: "_value",
type: "uint256",
},
{
internalType: "int8",
name: "_decimals",
type: "int8",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "getFeedByIndexInWei",
outputs: [
{
internalType: "uint256",
name: "_value",
type: "uint256",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
name: "getFeedId",
outputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21",
name: "_feedId",
type: "bytes21",
},
],
name: "getFeedIndex",
outputs: [
{
internalType: "uint256",
name: "_index",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21[]",
name: "_feedIds",
type: "bytes21[]",
},
],
name: "getFeedsById",
outputs: [
{
internalType: "uint256[]",
name: "_values",
type: "uint256[]",
},
{
internalType: "int8[]",
name: "_decimals",
type: "int8[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes21[]",
name: "_feedIds",
type: "bytes21[]",
},
],
name: "getFeedsByIdInWei",
outputs: [
{
internalType: "uint256[]",
name: "_values",
type: "uint256[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_indices",
type: "uint256[]",
},
],
name: "getFeedsByIndex",
outputs: [
{
internalType: "uint256[]",
name: "_values",
type: "uint256[]",
},
{
internalType: "int8[]",
name: "_decimals",
type: "int8[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256[]",
name: "_indices",
type: "uint256[]",
},
],
name: "getFeedsByIndexInWei",
outputs: [
{
internalType: "uint256[]",
name: "_values",
type: "uint256[]",
},
{
internalType: "uint64",
name: "_timestamp",
type: "uint64",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "bytes32[]",
name: "proof",
type: "bytes32[]",
},
{
components: [
{
internalType: "uint32",
name: "votingRoundId",
type: "uint32",
},
{
internalType: "bytes21",
name: "id",
type: "bytes21",
},
{
internalType: "int32",
name: "value",
type: "int32",
},
{
internalType: "uint16",
name: "turnoutBIPS",
type: "uint16",
},
{
internalType: "int8",
name: "decimals",
type: "int8",
},
],
internalType: "struct TestFtsoV2Interface.FeedData",
name: "body",
type: "tuple",
},
],
internalType: "struct TestFtsoV2Interface.FeedDataWithProof",
name: "_feedData",
type: "tuple",
},
],
name: "verifyFeedData",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class TestFtsoV2Interface__factory {
static readonly abi = _abi;
static createInterface(): TestFtsoV2InterfaceInterface {
return new utils.Interface(_abi) as TestFtsoV2InterfaceInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): TestFtsoV2Interface {
return new Contract(address, _abi, signerOrProvider) as TestFtsoV2Interface;
}
}

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as interface from "./interface";

View File

@@ -0,0 +1,900 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IIFtso,
IIFtsoInterface,
} from "../../../../../../@flarenetwork/flare-periphery-contracts/coston2/ftso/interface/IIFtso";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "natTurnout",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "lowNatTurnoutThresholdBIPS",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "LowTurnout",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "endTime",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "PriceEpochInitializedOnFtso",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "price",
type: "uint256",
},
{
indexed: false,
internalType: "bool",
name: "rewardedFtso",
type: "bool",
},
{
indexed: false,
internalType: "uint256",
name: "lowIQRRewardPrice",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "highIQRRewardPrice",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "lowElasticBandRewardPrice",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "highElasticBandRewardPrice",
type: "uint256",
},
{
indexed: false,
internalType: "enum IFtso.PriceFinalizationType",
name: "finalizationType",
type: "uint8",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "PriceFinalized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "voter",
type: "address",
},
{
indexed: true,
internalType: "uint256",
name: "epochId",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "price",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "votePowerNat",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "votePowerAsset",
type: "uint256",
},
],
name: "PriceRevealed",
type: "event",
},
{
inputs: [
{
internalType: "uint256",
name: "_firstEpochStartTs",
type: "uint256",
},
{
internalType: "uint256",
name: "_submitPeriodSeconds",
type: "uint256",
},
{
internalType: "uint256",
name: "_revealPeriodSeconds",
type: "uint256",
},
],
name: "activateFtso",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "active",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_maxVotePowerNatThresholdFraction",
type: "uint256",
},
{
internalType: "uint256",
name: "_maxVotePowerAssetThresholdFraction",
type: "uint256",
},
{
internalType: "uint256",
name: "_lowAssetUSDThreshold",
type: "uint256",
},
{
internalType: "uint256",
name: "_highAssetUSDThreshold",
type: "uint256",
},
{
internalType: "uint256",
name: "_highAssetTurnoutThresholdBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_lowNatTurnoutThresholdBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_elasticBandRewardBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_elasticBandWidthPPM",
type: "uint256",
},
{
internalType: "address[]",
name: "_trustedAddresses",
type: "address[]",
},
],
name: "configureEpochs",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "deactivateFtso",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "epochsConfiguration",
outputs: [
{
internalType: "uint256",
name: "_maxVotePowerNatThresholdFraction",
type: "uint256",
},
{
internalType: "uint256",
name: "_maxVotePowerAssetThresholdFraction",
type: "uint256",
},
{
internalType: "uint256",
name: "_lowAssetUSDThreshold",
type: "uint256",
},
{
internalType: "uint256",
name: "_highAssetUSDThreshold",
type: "uint256",
},
{
internalType: "uint256",
name: "_highAssetTurnoutThresholdBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_lowNatTurnoutThresholdBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_elasticBandRewardBIPS",
type: "uint256",
},
{
internalType: "uint256",
name: "_elasticBandWidthPPM",
type: "uint256",
},
{
internalType: "address[]",
name: "_trustedAddresses",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "fallbackFinalizePriceEpoch",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "bool",
name: "_returnRewardData",
type: "bool",
},
],
name: "finalizePriceEpoch",
outputs: [
{
internalType: "address[]",
name: "_eligibleAddresses",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_natWeights",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_totalNatWeight",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "forceFinalizePriceEpoch",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "ftsoManager",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getAsset",
outputs: [
{
internalType: "contract IIVPToken",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getAssetFtsos",
outputs: [
{
internalType: "contract IIFtso[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentEpochId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPrice",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceDetails",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_priceTimestamp",
type: "uint256",
},
{
internalType: "enum IFtso.PriceFinalizationType",
name: "_priceFinalizationType",
type: "uint8",
},
{
internalType: "uint256",
name: "_lastPriceEpochFinalizationTimestamp",
type: "uint256",
},
{
internalType: "enum IFtso.PriceFinalizationType",
name: "_lastPriceEpochFinalizationType",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceFromTrustedProviders",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceWithDecimals",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "_assetPriceUsdDecimals",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentPriceWithDecimalsFromTrustedProviders",
outputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
{
internalType: "uint256",
name: "_assetPriceUsdDecimals",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentRandom",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_timestamp",
type: "uint256",
},
],
name: "getEpochId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "getEpochPrice",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "address",
name: "_voter",
type: "address",
},
],
name: "getEpochPriceForVoter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getPriceEpochConfiguration",
outputs: [
{
internalType: "uint256",
name: "_firstEpochStartTs",
type: "uint256",
},
{
internalType: "uint256",
name: "_submitPeriodSeconds",
type: "uint256",
},
{
internalType: "uint256",
name: "_revealPeriodSeconds",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getPriceEpochData",
outputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "uint256",
name: "_epochSubmitEndTime",
type: "uint256",
},
{
internalType: "uint256",
name: "_epochRevealEndTime",
type: "uint256",
},
{
internalType: "uint256",
name: "_votePowerBlock",
type: "uint256",
},
{
internalType: "bool",
name: "_fallbackMode",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "getRandom",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getVoteWeightingParameters",
outputs: [
{
internalType: "contract IIVPToken[]",
name: "_assets",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_assetMultipliers",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_totalVotePowerNat",
type: "uint256",
},
{
internalType: "uint256",
name: "_totalVotePowerAsset",
type: "uint256",
},
{
internalType: "uint256",
name: "_assetWeightRatio",
type: "uint256",
},
{
internalType: "uint256",
name: "_votePowerBlock",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_circulatingSupplyNat",
type: "uint256",
},
{
internalType: "bool",
name: "_fallbackMode",
type: "bool",
},
],
name: "initializeCurrentEpochStateForReveal",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_wNatVP",
type: "uint256",
},
],
name: "revealPriceSubmitter",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IIVPToken",
name: "_asset",
type: "address",
},
],
name: "setAsset",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IIFtso[]",
name: "_assetFtsos",
type: "address[]",
},
],
name: "setAssetFtsos",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "setVotePowerBlock",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_initialPriceUSD",
type: "uint256",
},
{
internalType: "uint256",
name: "_initialPriceTimestamp",
type: "uint256",
},
],
name: "updateInitialPrice",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "wNat",
outputs: [
{
internalType: "contract IIVPToken",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "wNatVotePowerCached",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IIFtso__factory {
static readonly abi = _abi;
static createInterface(): IIFtsoInterface {
return new utils.Interface(_abi) as IIFtsoInterface;
}
static connect(address: string, signerOrProvider: Signer | Provider): IIFtso {
return new Contract(address, _abi, signerOrProvider) as IIFtso;
}
}

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export { IIFtso__factory } from "./IIFtso__factory";

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as interface from "./interface";

View File

@@ -0,0 +1,78 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoGenesis,
IFtsoGenesisInterface,
} from "../../../../../../@flarenetwork/flare-periphery-contracts/coston2/genesis/interface/IFtsoGenesis";
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
{
internalType: "uint256",
name: "_wNatVP",
type: "uint256",
},
],
name: "revealPriceSubmitter",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_voter",
type: "address",
},
{
internalType: "uint256",
name: "_epochId",
type: "uint256",
},
],
name: "wNatVotePowerCached",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IFtsoGenesis__factory {
static readonly abi = _abi;
static createInterface(): IFtsoGenesisInterface {
return new utils.Interface(_abi) as IFtsoGenesisInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoGenesis {
return new Contract(address, _abi, signerOrProvider) as IFtsoGenesis;
}
}

View File

@@ -0,0 +1,39 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoManagerGenesis,
IFtsoManagerGenesisInterface,
} from "../../../../../../@flarenetwork/flare-periphery-contracts/coston2/genesis/interface/IFtsoManagerGenesis";
const _abi = [
{
inputs: [],
name: "getCurrentPriceEpochId",
outputs: [
{
internalType: "uint256",
name: "_priceEpochId",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFtsoManagerGenesis__factory {
static readonly abi = _abi;
static createInterface(): IFtsoManagerGenesisInterface {
return new utils.Interface(_abi) as IFtsoManagerGenesisInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoManagerGenesis {
return new Contract(address, _abi, signerOrProvider) as IFtsoManagerGenesis;
}
}

View File

@@ -0,0 +1,49 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IFtsoRegistryGenesis,
IFtsoRegistryGenesisInterface,
} from "../../../../../../@flarenetwork/flare-periphery-contracts/coston2/genesis/interface/IFtsoRegistryGenesis";
const _abi = [
{
inputs: [
{
internalType: "uint256[]",
name: "_indices",
type: "uint256[]",
},
],
name: "getFtsos",
outputs: [
{
internalType: "contract IFtsoGenesis[]",
name: "_ftsos",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IFtsoRegistryGenesis__factory {
static readonly abi = _abi;
static createInterface(): IFtsoRegistryGenesisInterface {
return new utils.Interface(_abi) as IFtsoRegistryGenesisInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IFtsoRegistryGenesis {
return new Contract(
address,
_abi,
signerOrProvider
) as IFtsoRegistryGenesis;
}
}

View File

@@ -0,0 +1,6 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export { IFtsoGenesis__factory } from "./IFtsoGenesis__factory";
export { IFtsoManagerGenesis__factory } from "./IFtsoManagerGenesis__factory";
export { IFtsoRegistryGenesis__factory } from "./IFtsoRegistryGenesis__factory";

View File

@@ -0,0 +1,55 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as ftso from "./ftso";
export * as genesis from "./genesis";
export * as token from "./token";
export { FtsoV2Interface__factory } from "./FtsoV2Interface__factory";
export { IAddressBinder__factory } from "./IAddressBinder__factory";
export { IClaimSetupManager__factory } from "./IClaimSetupManager__factory";
export { IDelegationAccount__factory } from "./IDelegationAccount__factory";
export { IDistributionToDelegators__factory } from "./IDistributionToDelegators__factory";
export { IEntityManager__factory } from "./IEntityManager__factory";
export { IFastUpdateIncentiveManager__factory } from "./IFastUpdateIncentiveManager__factory";
export { IFastUpdater__factory } from "./IFastUpdater__factory";
export { IFastUpdatesConfiguration__factory } from "./IFastUpdatesConfiguration__factory";
export { IFeeCalculator__factory } from "./IFeeCalculator__factory";
export { IFlareAssetRegistry__factory } from "./IFlareAssetRegistry__factory";
export { IFlareContractRegistry__factory } from "./IFlareContractRegistry__factory";
export { IFlareSystemsCalculator__factory } from "./IFlareSystemsCalculator__factory";
export { IFlareSystemsManager__factory } from "./IFlareSystemsManager__factory";
export { IFtso__factory } from "./IFtso__factory";
export { IFtsoFeedDecimals__factory } from "./IFtsoFeedDecimals__factory";
export { IFtsoFeedIdConverter__factory } from "./IFtsoFeedIdConverter__factory";
export { IFtsoFeedPublisher__factory } from "./IFtsoFeedPublisher__factory";
export { IFtsoInflationConfigurations__factory } from "./IFtsoInflationConfigurations__factory";
export { IFtsoManager__factory } from "./IFtsoManager__factory";
export { IFtsoRegistry__factory } from "./IFtsoRegistry__factory";
export { IFtsoRewardManager__factory } from "./IFtsoRewardManager__factory";
export { IFtsoRewardOffersManager__factory } from "./IFtsoRewardOffersManager__factory";
export { IGenericRewardManager__factory } from "./IGenericRewardManager__factory";
export { IGovernanceSettings__factory } from "./IGovernanceSettings__factory";
export { IGovernanceVotePower__factory } from "./IGovernanceVotePower__factory";
export { IIncreaseManager__factory } from "./IIncreaseManager__factory";
export { IPChainStakeMirror__factory } from "./IPChainStakeMirror__factory";
export { IPChainStakeMirrorMultiSigVoting__factory } from "./IPChainStakeMirrorMultiSigVoting__factory";
export { IPChainVotePower__factory } from "./IPChainVotePower__factory";
export { IPollingFtso__factory } from "./IPollingFtso__factory";
export { IPriceSubmitter__factory } from "./IPriceSubmitter__factory";
export { IRNat__factory } from "./IRNat__factory";
export { IRNatAccount__factory } from "./IRNatAccount__factory";
export { IRandomProvider__factory } from "./IRandomProvider__factory";
export { IRelay__factory } from "./IRelay__factory";
export { IRewardManager__factory } from "./IRewardManager__factory";
export { ISubmission__factory } from "./ISubmission__factory";
export { IVPContractEvents__factory } from "./IVPContractEvents__factory";
export { IVPToken__factory } from "./IVPToken__factory";
export { IValidatorRegistry__factory } from "./IValidatorRegistry__factory";
export { IVoterRegistry__factory } from "./IVoterRegistry__factory";
export { IVoterWhitelister__factory } from "./IVoterWhitelister__factory";
export { IWNat__factory } from "./IWNat__factory";
export { IWNatDelegationFee__factory } from "./IWNatDelegationFee__factory";
export { ProtocolsV2Interface__factory } from "./ProtocolsV2Interface__factory";
export { RandomNumberV2Interface__factory } from "./RandomNumberV2Interface__factory";
export { RewardsV2Interface__factory } from "./RewardsV2Interface__factory";
export { TestFtsoV2Interface__factory } from "./TestFtsoV2Interface__factory";

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as interface from "./interface";

View File

@@ -0,0 +1,65 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IICleanable,
IICleanableInterface,
} from "../../../../../../@flarenetwork/flare-periphery-contracts/coston2/token/interface/IICleanable";
const _abi = [
{
inputs: [],
name: "cleanupBlockNumber",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_cleanerContract",
type: "address",
},
],
name: "setCleanerContract",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "setCleanupBlockNumber",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IICleanable__factory {
static readonly abi = _abi;
static createInterface(): IICleanableInterface {
return new utils.Interface(_abi) as IICleanableInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IICleanable {
return new Contract(address, _abi, signerOrProvider) as IICleanable;
}
}

View File

@@ -0,0 +1,284 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IIGovernanceVotePower,
IIGovernanceVotePowerInterface,
} from "../../../../../../@flarenetwork/flare-periphery-contracts/coston2/token/interface/IIGovernanceVotePower";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "delegator",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "fromDelegate",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "toDelegate",
type: "address",
},
],
name: "DelegateChanged",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "delegate",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "previousBalance",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "newBalance",
type: "uint256",
},
],
name: "DelegateVotesChanged",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "getCleanupBlockNumber",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "getDelegateOfAt",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "getDelegateOfAtNow",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "getVotes",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "ownerToken",
outputs: [
{
internalType: "contract IVPToken",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "pChainStakeMirror",
outputs: [
{
internalType: "contract IPChainStakeMirror",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_cleanerContract",
type: "address",
},
],
name: "setCleanerContract",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "setCleanupBlockNumber",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "undelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_fromBalance",
type: "uint256",
},
{
internalType: "uint256",
name: "_toBalance",
type: "uint256",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "updateAtTokenTransfer",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IIGovernanceVotePower__factory {
static readonly abi = _abi;
static createInterface(): IIGovernanceVotePowerInterface {
return new utils.Interface(_abi) as IIGovernanceVotePowerInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IIGovernanceVotePower {
return new Contract(
address,
_abi,
signerOrProvider
) as IIGovernanceVotePower;
}
}

View File

@@ -0,0 +1,635 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IIVPContract,
IIVPContractInterface,
} from "../../../../../../@flarenetwork/flare-periphery-contracts/coston2/token/interface/IIVPContract";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "priorVotePower",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "newVotePower",
type: "uint256",
},
],
name: "Delegate",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "delegator",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "delegatee",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "votePower",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "blockNumber",
type: "uint256",
},
],
name: "Revoke",
type: "event",
},
{
inputs: [
{
internalType: "address[]",
name: "_owners",
type: "address[]",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "batchVotePowerOfAt",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "cleanupBlockNumber",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
{
internalType: "uint256",
name: "_bips",
type: "uint256",
},
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "delegateExplicit",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "delegatesOf",
outputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_count",
type: "uint256",
},
{
internalType: "uint256",
name: "_delegationMode",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "delegatesOfAt",
outputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_count",
type: "uint256",
},
{
internalType: "uint256",
name: "_delegationMode",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "delegationModeOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isReplacement",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "ownerToken",
outputs: [
{
internalType: "contract IVPToken",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "revokeDelegationAt",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_cleanerContract",
type: "address",
},
],
name: "setCleanerContract",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "setCleanupBlockNumber",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
],
name: "undelegateAll",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
],
name: "undelegateAllExplicit",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
],
name: "undelegatedVotePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "undelegatedVotePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_fromBalance",
type: "uint256",
},
{
internalType: "uint256",
name: "_toBalance",
type: "uint256",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "updateAtTokenTransfer",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
],
name: "votePowerFromTo",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_balance",
type: "uint256",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerFromToAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "votePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAtCached",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAtIgnoringRevocation",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IIVPContract__factory {
static readonly abi = _abi;
static createInterface(): IIVPContractInterface {
return new utils.Interface(_abi) as IIVPContractInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IIVPContract {
return new Contract(address, _abi, signerOrProvider) as IIVPContract;
}
}

View File

@@ -0,0 +1,847 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IIVPToken,
IIVPTokenInterface,
} from "../../../../../../@flarenetwork/flare-periphery-contracts/coston2/token/interface/IIVPToken";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Approval",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Transfer",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "spender",
type: "address",
},
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "balanceOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_delegatees",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
],
name: "batchDelegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_owners",
type: "address[]",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "batchVotePowerOfAt",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "cleanupBlockNumber",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_bips",
type: "uint256",
},
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_amount",
type: "uint256",
},
],
name: "delegateExplicit",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "delegatesOf",
outputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_count",
type: "uint256",
},
{
internalType: "uint256",
name: "_delegationMode",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "delegatesOfAt",
outputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
{
internalType: "uint256[]",
name: "_bips",
type: "uint256[]",
},
{
internalType: "uint256",
name: "_count",
type: "uint256",
},
{
internalType: "uint256",
name: "_delegationMode",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
],
name: "delegationModeOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "governanceVotePower",
outputs: [
{
internalType: "contract IGovernanceVotePower",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "readVotePowerContract",
outputs: [
{
internalType: "contract IVPContractEvents",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_who",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "revokeDelegationAt",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_cleanerContract",
type: "address",
},
],
name: "setCleanerContract",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "setCleanupBlockNumber",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_cleanupBlockNumberManager",
type: "address",
},
],
name: "setCleanupBlockNumberManager",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IIGovernanceVotePower",
name: "_governanceVotePower",
type: "address",
},
],
name: "setGovernanceVotePower",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalSupplyAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalVotePower",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalVotePowerAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "totalVotePowerAtCached",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "undelegateAll",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "_delegateAddresses",
type: "address[]",
},
],
name: "undelegateAllExplicit",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "undelegatedVotePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "undelegatedVotePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
],
name: "votePowerFromTo",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_from",
type: "address",
},
{
internalType: "address",
name: "_to",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerFromToAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
name: "votePowerOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAtCached",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
{
internalType: "uint256",
name: "_blockNumber",
type: "uint256",
},
],
name: "votePowerOfAtIgnoringRevocation",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "writeVotePowerContract",
outputs: [
{
internalType: "contract IVPContractEvents",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
] as const;
export class IIVPToken__factory {
static readonly abi = _abi;
static createInterface(): IIVPTokenInterface {
return new utils.Interface(_abi) as IIVPTokenInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IIVPToken {
return new Contract(address, _abi, signerOrProvider) as IIVPToken;
}
}

View File

@@ -0,0 +1,7 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export { IICleanable__factory } from "./IICleanable__factory";
export { IIGovernanceVotePower__factory } from "./IIGovernanceVotePower__factory";
export { IIVPContract__factory } from "./IIVPContract__factory";
export { IIVPToken__factory } from "./IIVPToken__factory";

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as coston2 from "./coston2";

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as flarePeripheryContracts from "./flare-periphery-contracts";

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as token from "./token";

View File

@@ -0,0 +1,206 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IERC20,
IERC20Interface,
} from "../../../../../@openzeppelin/contracts/token/ERC20/IERC20";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Approval",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Transfer",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "spender",
type: "address",
},
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IERC20__factory {
static readonly abi = _abi;
static createInterface(): IERC20Interface {
return new utils.Interface(_abi) as IERC20Interface;
}
static connect(address: string, signerOrProvider: Signer | Provider): IERC20 {
return new Contract(address, _abi, signerOrProvider) as IERC20;
}
}

View File

@@ -0,0 +1,248 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
IERC20Metadata,
IERC20MetadataInterface,
} from "../../../../../../@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata";
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "spender",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Approval",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "Transfer",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "spender",
type: "address",
},
],
name: "allowance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "approve",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "decimals",
outputs: [
{
internalType: "uint8",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "name",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "symbol",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transfer",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "transferFrom",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
] as const;
export class IERC20Metadata__factory {
static readonly abi = _abi;
static createInterface(): IERC20MetadataInterface {
return new utils.Interface(_abi) as IERC20MetadataInterface;
}
static connect(
address: string,
signerOrProvider: Signer | Provider
): IERC20Metadata {
return new Contract(address, _abi, signerOrProvider) as IERC20Metadata;
}
}

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export { IERC20Metadata__factory } from "./IERC20Metadata__factory";

View File

@@ -0,0 +1,5 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as extensions from "./extensions";
export { IERC20__factory } from "./IERC20__factory";

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as erc20 from "./ERC20";

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as contracts from "./contracts";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export { FtsoV2FeedConsumer__factory } from "./FtsoV2FeedConsumer__factory";

View File

@@ -0,0 +1,6 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as flareOracleSol from "./FlareOracle.sol";
export { Escrow__factory } from "./Escrow__factory";
export { EventManager__factory } from "./EventManager__factory";

View File

@@ -0,0 +1,6 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * as flarenetwork from "./@flarenetwork";
export * as openzeppelin from "./@openzeppelin";
export * as contracts from "./contracts";