UNPKG

@antefinance/ante-sdk

Version:

Library for interacting with Ante smart contracts

160 lines (159 loc) 4.14 kB
export const zupassAnteGateAbi = [ { type: 'function', name: 'ZUPASS_SIGNER', inputs: [{ name: '', type: 'uint256', internalType: 'uint256' }], outputs: [{ name: '', type: 'uint256', internalType: 'uint256' }], stateMutability: 'view', }, { 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: 'nonpayable', }, { 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: 'function', name: 'usedNullifiers', inputs: [ { name: 'nullifierHash', type: 'uint256', internalType: 'uint256' }, ], outputs: [{ name: '', type: 'bool', internalType: 'bool' }], stateMutability: 'view', }, { type: 'function', name: 'verifyProof', inputs: [ { name: '_pA', type: 'uint256[2]', internalType: 'uint256[2]' }, { name: '_pB', type: 'uint256[2][2]', internalType: 'uint256[2][2]', }, { name: '_pC', type: 'uint256[2]', internalType: 'uint256[2]' }, { name: '_pubSignals', type: 'uint256[38]', internalType: 'uint256[38]', }, ], outputs: [{ name: '', type: 'bool', internalType: 'bool' }], stateMutability: 'view', }, { 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;