@antefinance/ante-sdk
Version:
Library for interacting with Ante smart contracts
270 lines (269 loc) • 4.92 kB
text/typescript
export const AntePoolFactoryAbi = [
{
inputs: [
{
internalType: 'address',
name: '_controller',
type: 'address',
},
],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'testAddr',
type: 'address',
},
{
indexed: false,
internalType: 'address',
name: 'tokenAddr',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'tokenMinimum',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'payoutRatio',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'decayRate',
type: 'uint256',
},
{
indexed: false,
internalType: 'uint256',
name: 'authorRewardRate',
type: 'uint256',
},
{
indexed: false,
internalType: 'address',
name: 'testPool',
type: 'address',
},
{
indexed: false,
internalType: 'address',
name: 'poolCreator',
type: 'address',
},
],
name: 'AntePoolCreated',
type: 'event',
},
{
inputs: [],
name: 'MAX_POOLS_PER_TEST',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
name: 'allPools',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'controller',
outputs: [
{
internalType: 'contract IAntePoolFactoryController',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'testAddr',
type: 'address',
},
{
internalType: 'address',
name: 'tokenAddr',
type: 'address',
},
{
internalType: 'uint256',
name: 'payoutRatio',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'decayRate',
type: 'uint256',
},
{
internalType: 'uint256',
name: 'authorRewardRate',
type: 'uint256',
},
],
name: 'createPool',
outputs: [
{
internalType: 'address',
name: 'testPool',
type: 'address',
},
],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'verifier',
type: 'address',
},
{
internalType: 'address',
name: 'testAddr',
type: 'address',
},
{
internalType: 'bytes32',
name: 'poolConfig',
type: 'bytes32',
},
],
name: 'failAllPoolsForTest',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'testAddr',
type: 'address',
},
],
name: 'getNumPoolsByTest',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: 'testAddr',
type: 'address',
},
],
name: 'getPoolsByTest',
outputs: [
{
internalType: 'address[]',
name: '',
type: 'address[]',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'numPools',
outputs: [
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'bytes32',
name: '',
type: 'bytes32',
},
],
name: 'poolByConfig',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
{
internalType: 'uint256',
name: '',
type: 'uint256',
},
],
name: 'poolsByTest',
outputs: [
{
internalType: 'address',
name: '',
type: 'address',
},
],
stateMutability: 'view',
type: 'function',
},
] as const;