@antefinance/ante-sdk
Version:
Library for interacting with Ante smart contracts
136 lines (135 loc) • 3.24 kB
text/typescript
export const allowlistAnteGateAbi = [
{
type: 'function',
name: 'check',
inputs: [
{ name: 'candidate', type: 'address', internalType: 'address' },
{
name: 'entryData',
type: 'tuple',
internalType: 'struct IAnteMetaPoolV01.JoinCommitmentParams',
components: [
{ name: 'anteId', type: 'uint256', internalType: 'uint256' },
{
name: 'side',
type: 'uint8',
internalType: 'enum IAnteMetaPoolV01.ParticipantSide',
},
{
name: 'stakeAmount',
type: 'uint256',
internalType: 'uint256',
},
{ name: 'entryKeyData', type: 'bytes', internalType: 'bytes' },
],
},
],
outputs: [{ name: '', type: 'bool', internalType: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
name: 'getConfig',
inputs: [
{ name: 'metaPool', type: 'address', internalType: 'address' },
{ name: 'commitmentId', type: 'uint256', internalType: 'uint256' },
],
outputs: [
{
name: '',
type: 'tuple',
internalType: 'struct IBaseAnteGateV01.GateManagementConfig',
components: [
{ name: 'initialized', type: 'bool', internalType: 'bool' },
{ name: 'manager', type: 'address', internalType: 'address' },
{
name: 'configuration',
type: 'bytes',
internalType: 'bytes',
},
],
},
],
stateMutability: 'view',
},
{
type: 'function',
name: 'initialize',
inputs: [
{
name: 'commitmentId',
type: 'uint256',
internalType: 'uint256',
},
{ name: 'data', type: 'bytes', internalType: 'bytes' },
],
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
name: 'setConfig',
inputs: [
{ name: 'metaPool', type: 'address', internalType: 'address' },
{
name: 'commitmentId',
type: 'uint256',
internalType: 'uint256',
},
{ name: 'data', type: 'bytes', internalType: 'bytes' },
],
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'event',
name: 'GateConfigUpdated',
inputs: [
{
name: 'metaPool',
type: 'address',
indexed: true,
internalType: 'address',
},
{
name: 'commitmentId',
type: 'uint256',
indexed: true,
internalType: 'uint256',
},
{
name: 'configuration',
type: 'bytes',
indexed: false,
internalType: 'bytes',
},
],
anonymous: false,
},
{
type: 'event',
name: 'GateInitialized',
inputs: [
{
name: 'metaPool',
type: 'address',
indexed: true,
internalType: 'address',
},
{
name: 'commitmentId',
type: 'uint256',
indexed: true,
internalType: 'uint256',
},
{
name: 'configuration',
type: 'bytes',
indexed: false,
internalType: 'bytes',
},
],
anonymous: false,
},
{ type: 'error', name: 'NotAllowed', inputs: [] },
] as const;