UNPKG

@opendatalabs/vana-sdk

Version:

A TypeScript library for interacting with Vana Network smart contracts.

1,295 lines 23.6 kB
const QueryEngineABI = [ { inputs: [], stateMutability: "nonpayable", type: "constructor" }, { inputs: [], name: "AccessControlBadConfirmation", type: "error" }, { inputs: [ { internalType: "address", name: "account", type: "address" }, { internalType: "bytes32", name: "neededRole", type: "bytes32" } ], name: "AccessControlUnauthorizedAccount", type: "error" }, { inputs: [ { internalType: "address", name: "target", type: "address" } ], name: "AddressEmptyCode", type: "error" }, { inputs: [ { internalType: "address", name: "account", type: "address" } ], name: "AddressInsufficientBalance", type: "error" }, { inputs: [], name: "ColumnNameUnexpected", type: "error" }, { inputs: [], name: "DlpNotFound", 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: "InvalidDlpPaymentPercentage", type: "error" }, { inputs: [], name: "InvalidDlpTreasuryAddress", type: "error" }, { inputs: [], name: "InvalidInitialization", type: "error" }, { inputs: [ { internalType: "address", name: "token", type: "address" } ], name: "InvalidPaymentToken", type: "error" }, { inputs: [], name: "NotDlpOwner", type: "error" }, { inputs: [], name: "NotInitializing", type: "error" }, { inputs: [], name: "NotRefinerOwner", type: "error" }, { inputs: [], name: "PaymentNotReceived", type: "error" }, { inputs: [], name: "PermissionNotFound", type: "error" }, { inputs: [], name: "ReentrancyGuardReentrantCall", type: "error" }, { inputs: [], name: "RefinerNotFound", type: "error" }, { inputs: [ { internalType: "address", name: "token", type: "address" } ], name: "SafeERC20FailedOperation", type: "error" }, { inputs: [ { internalType: "address", name: "token", type: "address" } ], name: "TokenAlreadyWhitelisted", type: "error" }, { inputs: [], name: "UUPSUnauthorizedCallContext", type: "error" }, { inputs: [ { internalType: "bytes32", name: "slot", type: "bytes32" } ], name: "UUPSUnsupportedProxiableUUID", type: "error" }, { inputs: [], name: "ZeroAddress", type: "error" }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "dlpId", type: "uint256" }, { indexed: true, internalType: "address", name: "dlpTreasuryAddress", type: "address" }, { indexed: true, internalType: "address", name: "token", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" } ], name: "DlpPaymentClaimed", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint64", name: "version", type: "uint64" } ], name: "Initialized", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address" } ], name: "Paused", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "token", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }, { indexed: false, internalType: "uint256", name: "jobId", type: "uint256" }, { indexed: false, internalType: "uint256", name: "refinerId", type: "uint256" } ], name: "PaymentReceived", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "permissionId", type: "uint256" }, { indexed: true, internalType: "address", name: "grantee", type: "address" }, { indexed: true, internalType: "uint256", name: "refinerId", type: "uint256" }, { indexed: false, internalType: "string", name: "tableName", type: "string" }, { indexed: false, internalType: "string", name: "columnName", type: "string" }, { indexed: false, internalType: "address", name: "tokenAddress", type: "address" }, { indexed: false, internalType: "uint256", name: "price", type: "uint256" } ], name: "PermissionAdded", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "permissionId", type: "uint256" }, { indexed: false, internalType: "bool", name: "approved", type: "bool" } ], name: "PermissionApprovalUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "bytes32", name: "previousAdminRole", type: "bytes32" }, { indexed: true, internalType: "bytes32", name: "newAdminRole", type: "bytes32" } ], name: "RoleAdminChanged", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "address", name: "account", type: "address" }, { indexed: true, internalType: "address", name: "sender", type: "address" } ], name: "RoleGranted", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "role", type: "bytes32" }, { indexed: true, internalType: "address", name: "account", type: "address" }, { indexed: true, internalType: "address", name: "sender", type: "address" } ], name: "RoleRevoked", 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: "DEFAULT_ADMIN_ROLE", outputs: [ { internalType: "bytes32", name: "", type: "bytes32" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "MAINTAINER_ROLE", outputs: [ { internalType: "bytes32", name: "", type: "bytes32" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "ONE_HUNDRED_PERCENT", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "QUERY_ENGINE_ROLE", outputs: [ { internalType: "bytes32", name: "", type: "bytes32" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "UPGRADE_INTERFACE_VERSION", outputs: [ { internalType: "string", name: "", type: "string" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "VANA", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "refinerId", type: "uint256" }, { internalType: "string", name: "tableName", type: "string" }, { internalType: "string", name: "columnName", type: "string" }, { internalType: "address", name: "tokenAddress", type: "address" }, { internalType: "uint256", name: "price", type: "uint256" } ], name: "addGenericPermission", outputs: [ { internalType: "uint256", name: "permissionId", type: "uint256" } ], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "token", type: "address" } ], name: "addPaymentToken", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "grantee", type: "address" }, { internalType: "uint256", name: "refinerId", type: "uint256" }, { internalType: "string", name: "tableName", type: "string" }, { internalType: "string", name: "columnName", type: "string" }, { internalType: "address", name: "tokenAddress", type: "address" }, { internalType: "uint256", name: "price", type: "uint256" } ], name: "addPermission", outputs: [ { internalType: "uint256", name: "permissionId", type: "uint256" } ], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "uint256", name: "dlpId", type: "uint256" }, { internalType: "address", name: "token", type: "address" } ], name: "balanceOf", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "dlpId", type: "uint256" }, { internalType: "address", name: "token", type: "address" } ], name: "claimDlpPayment", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "computeEngine", outputs: [ { internalType: "contract IComputeEngine", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "dlpPaymentPercentage", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "dlpId", type: "uint256" } ], name: "dlpPubKeys", outputs: [ { internalType: "string", name: "pubKey", type: "string" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "refinerId", type: "uint256" }, { internalType: "address", name: "grantee", type: "address" } ], name: "getPermissions", outputs: [ { components: [ { internalType: "uint256", name: "permissionId", type: "uint256" }, { internalType: "address", name: "grantee", type: "address" }, { internalType: "bool", name: "approved", type: "bool" }, { internalType: "uint256", name: "refinerId", type: "uint256" }, { internalType: "string", name: "tableName", type: "string" }, { internalType: "string", name: "columnName", type: "string" }, { internalType: "uint256", name: "price", type: "uint256" }, { internalType: "address", name: "tokenAddress", type: "address" } ], internalType: "struct IQueryEngine.PermissionInfo[]", name: "", type: "tuple[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "bytes32", name: "role", type: "bytes32" } ], name: "getRoleAdmin", outputs: [ { internalType: "bytes32", name: "", type: "bytes32" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" } ], name: "grantRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" } ], name: "hasRole", outputs: [ { internalType: "bool", name: "", type: "bool" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "ownerAddress", type: "address" }, { internalType: "address", name: "initRefinerRegistryAddress", type: "address" }, { internalType: "contract DataAccessTreasuryProxyFactory", name: "initDataAccessTreasuryFactory", type: "address" } ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "paused", outputs: [ { internalType: "bool", name: "", type: "bool" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "permissionId", type: "uint256" } ], name: "permissions", outputs: [ { components: [ { internalType: "address", name: "grantee", type: "address" }, { internalType: "bool", name: "approved", type: "bool" }, { internalType: "uint256", name: "refinerId", type: "uint256" }, { internalType: "string", name: "tableName", type: "string" }, { internalType: "string", name: "columnName", type: "string" }, { internalType: "uint256", name: "price", type: "uint256" }, { internalType: "address", name: "tokenAddress", type: "address" } ], internalType: "struct IQueryEngine.Permission", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "permissionsCount", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "proxiableUUID", outputs: [ { internalType: "bytes32", name: "", type: "bytes32" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "queryEngineTreasury", outputs: [ { internalType: "contract IDataAccessTreasury", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "refinerRegistry", outputs: [ { internalType: "contract IDataRefinerRegistry", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "token", type: "address" } ], name: "removePaymentToken", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "callerConfirmation", type: "address" } ], name: "renounceRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "token", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "bytes", name: "metadata", type: "bytes" } ], name: "requestPayment", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "token", type: "address" }, { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "jobId", type: "uint256" }, { internalType: "uint256", name: "refinerId", type: "uint256" } ], name: "requestPaymentInToken", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "uint256", name: "amount", type: "uint256" }, { internalType: "uint256", name: "jobId", type: "uint256" }, { internalType: "uint256", name: "refinerId", type: "uint256" } ], name: "requestPaymentInVana", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" } ], name: "revokeRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "bytes4", name: "interfaceId", type: "bytes4" } ], name: "supportsInterface", outputs: [ { internalType: "bool", name: "", type: "bool" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "newComputeEngineAddress", type: "address" } ], name: "updateComputeEngine", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "uint256", name: "newDlpPaymentPercentage", type: "uint256" } ], name: "updateDlpPaymentPercentage", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "uint256", name: "dlpId", type: "uint256" }, { internalType: "string", name: "pubKey", type: "string" } ], name: "updateDlpPubKey", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "uint256", name: "permissionId", type: "uint256" }, { internalType: "bool", name: "approved", type: "bool" } ], name: "updatePermissionApproval", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "contract IDataAccessTreasury", name: "newQueryEngineTreasury", type: "address" } ], name: "updateQueryEngineTreasury", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "newRefinerRegistryAddress", type: "address" } ], name: "updateRefinerRegistry", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "newVanaTreasury", type: "address" } ], name: "updateVanaTreasury", 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: "vanaTreasury", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "version", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "pure", type: "function" }, { stateMutability: "payable", type: "receive" } ]; var QueryEngineImplementation_default = QueryEngineABI; export { QueryEngineABI, QueryEngineImplementation_default as default }; //# sourceMappingURL=QueryEngineImplementation.js.map