@0xsplits/splits-sdk
Version:
SDK for the 0xSplits protocol
50 lines (49 loc) • 1.15 kB
text/typescript
export const splitAbi = [
{ inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
{ inputs: [], name: 'Unauthorized', type: 'error' },
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'split',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'ReceiveETH',
type: 'event',
},
{
inputs: [
{ internalType: 'contract ERC20', name: 'token', type: 'address' },
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
],
name: 'sendERC20ToMain',
outputs: [],
stateMutability: 'payable',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: 'amount', type: 'uint256' }],
name: 'sendETHToMain',
outputs: [],
stateMutability: 'payable',
type: 'function',
},
{
inputs: [],
name: 'splitMain',
outputs: [
{ internalType: 'contract ISplitMain', name: '', type: 'address' },
],
stateMutability: 'view',
type: 'function',
},
] as const