mirror of
https://github.com/lux-tel/websites.git
synced 2026-10-30 20:31:36 +00:00
397 lines
7.4 KiB
TypeScript
397 lines
7.4 KiB
TypeScript
// This file is generated by the generate-abis script. Do not modify it manually.
|
|
|
|
/**
|
|
* Generated ABI for the ServiceNodeContributionFactory contract.
|
|
*/
|
|
export const ServiceNodeContributionFactoryAbi = [
|
|
{
|
|
inputs: [],
|
|
name: 'EnforcedPause',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'ExpectedPause',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'InvalidInitialization',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'NotInitializing',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'owner',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'OwnableInvalidOwner',
|
|
type: 'error',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'account',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'OwnableUnauthorizedAccount',
|
|
type: 'error',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint64',
|
|
name: 'version',
|
|
type: 'uint64',
|
|
},
|
|
],
|
|
name: 'Initialized',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'contributorContract',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: false,
|
|
internalType: 'uint256',
|
|
name: 'serviceNodePubkey',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
name: 'NewServiceNodeContributionContract',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'previousOwner',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'newOwner',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'OwnershipTransferStarted',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'previousOwner',
|
|
type: 'address',
|
|
},
|
|
{
|
|
indexed: true,
|
|
internalType: 'address',
|
|
name: 'newOwner',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'OwnershipTransferred',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'address',
|
|
name: 'account',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'Paused',
|
|
type: 'event',
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: 'address',
|
|
name: 'account',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'Unpaused',
|
|
type: 'event',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'acceptOwnership',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
components: [
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'X',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'Y',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
internalType: 'struct BN256G1.G1Point',
|
|
name: 'key',
|
|
type: 'tuple',
|
|
},
|
|
{
|
|
components: [
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'sigs0',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'sigs1',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'sigs2',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'sigs3',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
internalType: 'struct IServiceNodeRewards.BLSSignatureParams',
|
|
name: 'sig',
|
|
type: 'tuple',
|
|
},
|
|
{
|
|
components: [
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'serviceNodePubkey',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'serviceNodeSignature1',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'serviceNodeSignature2',
|
|
type: 'uint256',
|
|
},
|
|
{
|
|
internalType: 'uint16',
|
|
name: 'fee',
|
|
type: 'uint16',
|
|
},
|
|
],
|
|
internalType: 'struct IServiceNodeRewards.ServiceNodeParams',
|
|
name: 'params',
|
|
type: 'tuple',
|
|
},
|
|
{
|
|
components: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'addr',
|
|
type: 'address',
|
|
},
|
|
{
|
|
internalType: 'uint256',
|
|
name: 'amount',
|
|
type: 'uint256',
|
|
},
|
|
],
|
|
internalType: 'struct IServiceNodeRewards.ReservedContributor[]',
|
|
name: 'reserved',
|
|
type: 'tuple[]',
|
|
},
|
|
{
|
|
internalType: 'bool',
|
|
name: 'manualFinalize',
|
|
type: 'bool',
|
|
},
|
|
],
|
|
name: 'deploy',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'result',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'deployedContracts',
|
|
outputs: [
|
|
{
|
|
internalType: 'bool',
|
|
name: '',
|
|
type: 'bool',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '_stakingRewardsContract',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'initialize',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'owner',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'contractAddress',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'owns',
|
|
outputs: [
|
|
{
|
|
internalType: 'bool',
|
|
name: '',
|
|
type: 'bool',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'pause',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'paused',
|
|
outputs: [
|
|
{
|
|
internalType: 'bool',
|
|
name: '',
|
|
type: 'bool',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'pendingOwner',
|
|
outputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'renounceOwnership',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'stakingRewardsContract',
|
|
outputs: [
|
|
{
|
|
internalType: 'contract IServiceNodeRewards',
|
|
name: '',
|
|
type: 'address',
|
|
},
|
|
],
|
|
stateMutability: 'view',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: 'address',
|
|
name: 'newOwner',
|
|
type: 'address',
|
|
},
|
|
],
|
|
name: 'transferOwnership',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: 'unpause',
|
|
outputs: [],
|
|
stateMutability: 'nonpayable',
|
|
type: 'function',
|
|
},
|
|
] as const;
|