@0xsplits/splits-sdk
Version:
SDK for the 0xSplits protocol
417 lines • 14.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pullSplitAbi = void 0;
exports.pullSplitAbi = [
{
inputs: [
{ internalType: 'address', name: '_splitWarehouse', type: 'address' },
],
stateMutability: 'nonpayable',
type: 'constructor',
},
{
inputs: [
{
components: [
{ internalType: 'address', name: 'to', type: 'address' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
],
internalType: 'struct Wallet.Call',
name: 'call',
type: 'tuple',
},
],
name: 'InvalidCalldataForEOA',
type: 'error',
},
{ inputs: [], name: 'InvalidShortString', type: 'error' },
{ inputs: [], name: 'InvalidSplit', type: 'error' },
{ inputs: [], name: 'InvalidSplit_LengthMismatch', type: 'error' },
{ inputs: [], name: 'InvalidSplit_TotalAllocationMismatch', type: 'error' },
{ inputs: [], name: 'Paused', type: 'error' },
{
inputs: [{ internalType: 'string', name: 'str', type: 'string' }],
name: 'StringTooLong',
type: 'error',
},
{ inputs: [], name: 'Unauthorized', type: 'error' },
{ inputs: [], name: 'UnauthorizedInitializer', type: 'error' },
{ anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event' },
{
anonymous: false,
inputs: [
{
components: [
{ internalType: 'address', name: 'to', type: 'address' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
],
indexed: false,
internalType: 'struct Wallet.Call[]',
name: 'calls',
type: 'tuple[]',
},
],
name: 'ExecCalls',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'oldOwner',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'newOwner',
type: 'address',
},
],
name: 'OwnershipTransferred',
type: 'event',
},
{
anonymous: false,
inputs: [
{ indexed: false, internalType: 'bool', name: 'paused', type: 'bool' },
],
name: 'SetPaused',
type: 'event',
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: 'address',
name: 'token',
type: 'address',
},
{
indexed: true,
internalType: 'address',
name: 'distributor',
type: 'address',
},
{
indexed: false,
internalType: 'uint256',
name: 'amount',
type: 'uint256',
},
],
name: 'SplitDistributed',
type: 'event',
},
{
anonymous: false,
inputs: [
{
components: [
{ internalType: 'address[]', name: 'recipients', type: 'address[]' },
{ internalType: 'uint256[]', name: 'allocations', type: 'uint256[]' },
{ internalType: 'uint256', name: 'totalAllocation', type: 'uint256' },
{
internalType: 'uint16',
name: 'distributionIncentive',
type: 'uint16',
},
],
indexed: false,
internalType: 'struct SplitV2Lib.Split',
name: '_split',
type: 'tuple',
},
],
name: 'SplitUpdated',
type: 'event',
},
{
inputs: [],
name: 'FACTORY',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'NATIVE_TOKEN',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'SPLITS_WAREHOUSE',
outputs: [
{ internalType: 'contract ISplitsWarehouse', name: '', type: 'address' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '_token', type: 'address' },
{ internalType: 'uint256', name: '_amount', type: 'uint256' },
],
name: 'depositToWarehouse',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
components: [
{ internalType: 'address[]', name: 'recipients', type: 'address[]' },
{ internalType: 'uint256[]', name: 'allocations', type: 'uint256[]' },
{ internalType: 'uint256', name: 'totalAllocation', type: 'uint256' },
{
internalType: 'uint16',
name: 'distributionIncentive',
type: 'uint16',
},
],
internalType: 'struct SplitV2Lib.Split',
name: '_split',
type: 'tuple',
},
{ internalType: 'address', name: '_token', type: 'address' },
{ internalType: 'address', name: '_distributor', type: 'address' },
],
name: 'distribute',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
components: [
{ internalType: 'address[]', name: 'recipients', type: 'address[]' },
{ internalType: 'uint256[]', name: 'allocations', type: 'uint256[]' },
{ internalType: 'uint256', name: 'totalAllocation', type: 'uint256' },
{
internalType: 'uint16',
name: 'distributionIncentive',
type: 'uint16',
},
],
internalType: 'struct SplitV2Lib.Split',
name: '_split',
type: 'tuple',
},
{ internalType: 'address', name: '_token', type: 'address' },
{ internalType: 'uint256', name: '_distributeAmount', type: 'uint256' },
{ internalType: 'bool', name: '_performWarehouseTransfer', type: 'bool' },
{ internalType: 'address', name: '_distributor', type: 'address' },
],
name: 'distribute',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'eip712Domain',
outputs: [
{ internalType: 'bytes1', name: 'fields', type: 'bytes1' },
{ internalType: 'string', name: 'name', type: 'string' },
{ internalType: 'string', name: 'version', type: 'string' },
{ internalType: 'uint256', name: 'chainId', type: 'uint256' },
{ internalType: 'address', name: 'verifyingContract', type: 'address' },
{ internalType: 'bytes32', name: 'salt', type: 'bytes32' },
{ internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{ internalType: 'address', name: 'to', type: 'address' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
],
internalType: 'struct Wallet.Call[]',
name: '_calls',
type: 'tuple[]',
},
],
name: 'execCalls',
outputs: [
{ internalType: 'uint256', name: 'blockNumber', type: 'uint256' },
{ internalType: 'bytes[]', name: 'returnData', type: 'bytes[]' },
],
stateMutability: 'payable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '_token', type: 'address' }],
name: 'getSplitBalance',
outputs: [
{ internalType: 'uint256', name: 'splitBalance', type: 'uint256' },
{ internalType: 'uint256', name: 'warehouseBalance', type: 'uint256' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{ internalType: 'address[]', name: 'recipients', type: 'address[]' },
{ internalType: 'uint256[]', name: 'allocations', type: 'uint256[]' },
{ internalType: 'uint256', name: 'totalAllocation', type: 'uint256' },
{
internalType: 'uint16',
name: 'distributionIncentive',
type: 'uint16',
},
],
internalType: 'struct SplitV2Lib.Split',
name: '_split',
type: 'tuple',
},
{ internalType: 'address', name: '_owner', type: 'address' },
],
name: 'initialize',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'bytes32', name: 'hash', type: 'bytes32' },
{ internalType: 'bytes', name: 'signature', type: 'bytes' },
],
name: 'isValidSignature',
outputs: [{ internalType: 'bytes4', name: 'result', type: 'bytes4' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'uint256[]', name: '', type: 'uint256[]' },
{ internalType: 'uint256[]', name: '', type: 'uint256[]' },
{ internalType: 'bytes', name: '', type: 'bytes' },
],
name: 'onERC1155BatchReceived',
outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'bytes', name: '', type: 'bytes' },
],
name: 'onERC1155Received',
outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'address', name: '', type: 'address' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'bytes', name: '', type: 'bytes' },
],
name: 'onERC721Received',
outputs: [{ internalType: 'bytes4', name: '', type: 'bytes4' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'owner',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'paused',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'bytes32', name: 'hash', type: 'bytes32' }],
name: 'replaySafeHash',
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'bool', name: '_paused', type: 'bool' }],
name: 'setPaused',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'splitHash',
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
name: 'supportsInterface',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '_owner', type: 'address' }],
name: 'transferOwnership',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'updateBlockNumber',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{
components: [
{ internalType: 'address[]', name: 'recipients', type: 'address[]' },
{ internalType: 'uint256[]', name: 'allocations', type: 'uint256[]' },
{ internalType: 'uint256', name: 'totalAllocation', type: 'uint256' },
{
internalType: 'uint16',
name: 'distributionIncentive',
type: 'uint16',
},
],
internalType: 'struct SplitV2Lib.Split',
name: '_split',
type: 'tuple',
},
],
name: 'updateSplit',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
];
//# sourceMappingURL=pullSplit.js.map