@0xsplits/splits-sdk
Version:
SDK for the 0xSplits protocol
140 lines (139 loc) • 3.79 kB
text/typescript
export const vestingAbi = [
{ inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
{
inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }],
name: 'InvalidVestingStreamId',
type: 'error',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' },
{
indexed: true,
internalType: 'address',
name: 'token',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'CreateVestingStream',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'ReceiveETH',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'uint256', name: 'id', type: 'uint256' },
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'ReleaseFromVestingStream',
type: 'event',
},
{
inputs: [],
name: 'beneficiary',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'pure',
type: 'function',
},
{
inputs: [{ internalType: 'address[]', name: 'tokens', type: 'address[]' }],
name: 'createVestingStreams',
outputs: [{ internalType: 'uint256[]', name: 'ids', type: 'uint256[]' }],
stateMutability: 'payable',
type: 'function',
},
{
inputs: [],
name: 'numVestingStreams',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256[]', name: 'ids', type: 'uint256[]' }],
name: 'releaseFromVesting',
outputs: [
{ internalType: 'uint256[]', name: 'releasedFunds', type: 'uint256[]' },
],
stateMutability: 'payable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'released',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }],
name: 'vested',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }],
name: 'vestedAndUnreleased',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'vesting',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'vestingPeriod',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'pure',
type: 'function',
},
{
inputs: [{ internalType: 'uint256', name: 'id', type: 'uint256' }],
name: 'vestingStream',
outputs: [
{
components: [
{ internalType: 'address', name: 'token', type: 'address' },
{ internalType: 'uint256', name: 'vestingStart', type: 'uint256' },
{ internalType: 'uint256', name: 'total', type: 'uint256' },
{ internalType: 'uint256', name: 'released', type: 'uint256' },
],
internalType: 'struct VestingModule.VestingStream',
name: 'vs',
type: 'tuple',
},
],
stateMutability: 'view',
type: 'function',
},
] as const