UNPKG

vana-sdk

Version:

A TypeScript library for interacting with Vana Network smart contracts

961 lines 23.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataLiquidityPoolImplementationAbi = void 0; exports.DataLiquidityPoolImplementationAbi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor", }, { inputs: [ { internalType: "address", name: "target", type: "address", }, ], name: "AddressEmptyCode", type: "error", }, { inputs: [ { internalType: "address", name: "account", type: "address", }, ], name: "AddressInsufficientBalance", type: "error", }, { inputs: [], name: "ECDSAInvalidSignature", type: "error", }, { inputs: [ { internalType: "uint256", name: "length", type: "uint256", }, ], name: "ECDSAInvalidSignatureLength", type: "error", }, { inputs: [ { internalType: "bytes32", name: "s", type: "bytes32", }, ], name: "ECDSAInvalidSignatureS", type: "error", }, { inputs: [ { internalType: "address", name: "implementation", type: "address", }, ], name: "ERC1967InvalidImplementation", type: "error", }, { inputs: [], name: "ERC1967NonPayable", type: "error", }, { inputs: [], name: "EnforcedPause", type: "error", }, { inputs: [], name: "ExpectedPause", type: "error", }, { inputs: [], name: "FailedInnerCall", type: "error", }, { inputs: [], name: "FileAlreadyAdded", type: "error", }, { inputs: [], name: "InvalidAttestator", type: "error", }, { inputs: [], name: "InvalidInitialization", type: "error", }, { inputs: [], name: "InvalidProof", 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", }, { inputs: [], name: "ReentrancyGuardReentrantCall", type: "error", }, { inputs: [ { internalType: "address", name: "token", type: "address", }, ], name: "SafeERC20FailedOperation", type: "error", }, { inputs: [], name: "UUPSUnauthorizedCallContext", type: "error", }, { inputs: [ { internalType: "bytes32", name: "slot", type: "bytes32", }, ], name: "UUPSUnsupportedProxiableUUID", type: "error", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "fileId", type: "uint256", }, ], name: "FileInvalidated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "newFileRewardFactor", type: "uint256", }, ], name: "FileRewardFactorUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "fileId", type: "uint256", }, ], name: "FileValidated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "version", type: "uint64", }, ], name: "Initialized", 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: "string", name: "newProofInstruction", type: "string", }, ], name: "ProofInstructionUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "string", name: "newPublicKey", type: "string", }, ], name: "PublicKeyUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "contributorAddress", type: "address", }, { indexed: true, internalType: "uint256", name: "fileId", type: "uint256", }, { indexed: true, internalType: "uint256", name: "proofIndex", type: "uint256", }, { indexed: false, internalType: "uint256", name: "rewardAmount", type: "uint256", }, ], name: "RewardRequested", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "newTeePool", type: "address", }, ], name: "TeePoolUpdated", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address", }, ], name: "Unpaused", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "implementation", type: "address", }, ], name: "Upgraded", type: "event", }, { inputs: [], name: "UPGRADE_INTERFACE_VERSION", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "contributorsRewardAmount", type: "uint256", }, ], name: "addRewardsForContributors", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "contributorAddress", type: "address", }, { internalType: "uint256", name: "index", type: "uint256", }, ], name: "contributorFiles", outputs: [ { components: [ { internalType: "uint256", name: "fileId", type: "uint256", }, { internalType: "uint256", name: "timestamp", type: "uint256", }, { internalType: "uint256", name: "proofIndex", type: "uint256", }, { internalType: "uint256", name: "rewardAmount", type: "uint256", }, ], internalType: "struct IDataLiquidityPool.FileResponse", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "contributorAddress", type: "address", }, ], name: "contributorInfo", outputs: [ { components: [ { internalType: "address", name: "contributorAddress", type: "address", }, { internalType: "uint256", name: "filesListCount", type: "uint256", }, ], internalType: "struct IDataLiquidityPool.ContributorInfoResponse", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "index", type: "uint256", }, ], name: "contributors", outputs: [ { components: [ { internalType: "address", name: "contributorAddress", type: "address", }, { internalType: "uint256", name: "filesListCount", type: "uint256", }, ], internalType: "struct IDataLiquidityPool.ContributorInfoResponse", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "contributorsCount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "dataRegistry", outputs: [ { internalType: "contract IDataRegistry", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "fileRewardFactor", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "fileId", type: "uint256", }, ], name: "files", outputs: [ { components: [ { internalType: "uint256", name: "fileId", type: "uint256", }, { internalType: "uint256", name: "timestamp", type: "uint256", }, { internalType: "uint256", name: "proofIndex", type: "uint256", }, { internalType: "uint256", name: "rewardAmount", type: "uint256", }, ], internalType: "struct IDataLiquidityPool.FileResponse", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "index", type: "uint256", }, ], name: "filesListAt", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "filesListCount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "ownerAddress", type: "address", }, { internalType: "address", name: "tokenAddress", type: "address", }, { internalType: "address", name: "dataRegistryAddress", type: "address", }, { internalType: "address", name: "teePoolAddress", type: "address", }, { internalType: "string", name: "name", type: "string", }, { internalType: "string", name: "publicKey", type: "string", }, { internalType: "string", name: "proofInstruction", type: "string", }, { internalType: "uint256", name: "fileRewardFactor", type: "uint256", }, ], internalType: "struct DataLiquidityPoolImplementation.InitParams", name: "params", type: "tuple", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes[]", name: "data", type: "bytes[]", }, ], name: "multicall", outputs: [ { internalType: "bytes[]", name: "results", type: "bytes[]", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "name", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "owner", outputs: [ { internalType: "address", name: "", type: "address", }, ], 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: "proofInstruction", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "proxiableUUID", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "publicKey", outputs: [ { internalType: "string", name: "", type: "string", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "renounceOwnership", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "fileId", type: "uint256", }, { internalType: "uint256", name: "proofIndex", type: "uint256", }, ], name: "requestReward", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "teePool", outputs: [ { internalType: "contract ITeePool", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "token", outputs: [ { internalType: "contract IERC20", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "totalContributorsRewardAmount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], 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", }, { inputs: [ { internalType: "uint256", name: "newFileRewardFactor", type: "uint256", }, ], name: "updateFileRewardFactor", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "newProofInstruction", type: "string", }, ], name: "updateProofInstruction", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "string", name: "newPublicKey", type: "string", }, ], name: "updatePublicKey", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newTeePool", type: "address", }, ], name: "updateTeePool", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newImplementation", type: "address", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "upgradeToAndCall", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [], name: "version", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "pure", type: "function", }, ]; //# sourceMappingURL=DataLiquidityPoolImplementation.js.map