vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts
1,214 lines • 28.9 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComputeEngineImplementationAbi = void 0;
exports.ComputeEngineImplementationAbi = [
{
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: [
{
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: "FailedToAssignTee",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "computeInstructionId",
type: "uint256",
},
],
name: "InstructionNotFound",
type: "error",
},
{
inputs: [],
name: "InsufficientBalance",
type: "error",
},
{
inputs: [],
name: "InvalidAmount",
type: "error",
},
{
inputs: [],
name: "InvalidInitialization",
type: "error",
},
{
inputs: [
{
internalType: "enum IComputeEngine.JobStatus",
name: "currentStatus",
type: "uint8",
},
{
internalType: "enum IComputeEngine.JobStatus",
name: "newStatus",
type: "uint8",
},
],
name: "InvalidStatusTransition",
type: "error",
},
{
inputs: [],
name: "InvalidVanaAmount",
type: "error",
},
{
inputs: [],
name: "JobAlreadyDoneOrCanceled",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "jobId",
type: "uint256",
},
],
name: "JobNotFound",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "jobId",
type: "uint256",
},
],
name: "JobNotSubmitted",
type: "error",
},
{
inputs: [],
name: "NotInitializing",
type: "error",
},
{
inputs: [],
name: "NotJobOwner",
type: "error",
},
{
inputs: [],
name: "NotLongRunningJob",
type: "error",
},
{
inputs: [],
name: "NotQueryEngine",
type: "error",
},
{
inputs: [],
name: "NotTee",
type: "error",
},
{
inputs: [],
name: "ReentrancyGuardReentrantCall",
type: "error",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "SafeERC20FailedOperation",
type: "error",
},
{
inputs: [
{
internalType: "uint256",
name: "jobId",
type: "uint256",
},
],
name: "TeeAlreadyAssigned",
type: "error",
},
{
inputs: [],
name: "TeePoolNotFound",
type: "error",
},
{
inputs: [],
name: "UUPSUnauthorizedCallContext",
type: "error",
},
{
inputs: [
{
internalType: "bytes32",
name: "slot",
type: "bytes32",
},
],
name: "UUPSUnsupportedProxiableUUID",
type: "error",
},
{
inputs: [],
name: "UnauthorizedPaymentRequestor",
type: "error",
},
{
inputs: [],
name: "ZeroTeeAddress",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "token",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "Deposit",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint64",
name: "version",
type: "uint64",
},
],
name: "Initialized",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "jobId",
type: "uint256",
},
],
name: "JobCanceled",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "jobId",
type: "uint256",
},
{
indexed: true,
internalType: "address",
name: "ownerAddress",
type: "address",
},
],
name: "JobRegistered",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "jobId",
type: "uint256",
},
{
indexed: false,
internalType: "enum IComputeEngine.JobStatus",
name: "status",
type: "uint8",
},
{
indexed: false,
internalType: "string",
name: "statusMessage",
type: "string",
},
],
name: "JobStatusUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "account",
type: "address",
},
],
name: "Paused",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "jobId",
type: "uint256",
},
{
indexed: true,
internalType: "address",
name: "token",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "PaymentExecuted",
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: true,
internalType: "uint256",
name: "jobId",
type: "uint256",
},
{
indexed: false,
internalType: "bytes",
name: "reason",
type: "bytes",
},
],
name: "TeeAssignmentFailed",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "jobId",
type: "uint256",
},
{
indexed: true,
internalType: "address",
name: "teePoolAddress",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "teeAddress",
type: "address",
},
],
name: "TeeAssignmentSucceeded",
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",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "token",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "Withdraw",
type: "event",
},
{
inputs: [],
name: "DEDICATED_TIMEOUT",
outputs: [
{
internalType: "uint80",
name: "",
type: "uint80",
},
],
stateMutability: "view",
type: "function",
},
{
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: "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: "address",
name: "account",
type: "address",
},
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "jobId",
type: "uint256",
},
],
name: "cancelJob",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "computeEngineTreasury",
outputs: [
{
internalType: "contract IDataAccessTreasury",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "deposit",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
{
internalType: "bytes",
name: "metadata",
type: "bytes",
},
],
name: "executePaymentRequest",
outputs: [],
stateMutability: "nonpayable",
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: "initQueryEngine",
type: "address",
},
{
internalType: "contract IComputeEngineTeePoolFactory",
name: "initTeePoolFactory",
type: "address",
},
{
internalType: "contract DataAccessTreasuryFactoryBeacon",
name: "initDataAccessTreasuryFactory",
type: "address",
},
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "instructionRegistry",
outputs: [
{
internalType: "contract IComputeInstructionRegistry",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "jobId",
type: "uint256",
},
],
name: "jobs",
outputs: [
{
components: [
{
internalType: "address",
name: "ownerAddress",
type: "address",
},
{
internalType: "uint80",
name: "maxTimeout",
type: "uint80",
},
{
internalType: "bool",
name: "gpuRequired",
type: "bool",
},
{
internalType: "enum IComputeEngine.JobStatus",
name: "status",
type: "uint8",
},
{
internalType: "address",
name: "teeAddress",
type: "address",
},
{
internalType: "uint32",
name: "computeInstructionId",
type: "uint32",
},
{
internalType: "uint48",
name: "addedTimestamp",
type: "uint48",
},
{
internalType: "string",
name: "statusMessage",
type: "string",
},
{
internalType: "address",
name: "teePoolAddress",
type: "address",
},
],
internalType: "struct IComputeEngine.Job",
name: "",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "jobsCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
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: "proxiableUUID",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "queryEngine",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "bytes32",
name: "role",
type: "bytes32",
},
{
internalType: "address",
name: "callerConfirmation",
type: "address",
},
],
name: "renounceRole",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "jobId",
type: "uint256",
},
],
name: "resubmitJob",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "jobId",
type: "uint256",
},
{
internalType: "address",
name: "teeAddress",
type: "address",
},
],
name: "resubmitJobWithTee",
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: "uint80",
name: "maxTimeout",
type: "uint80",
},
{
internalType: "bool",
name: "gpuRequired",
type: "bool",
},
{
internalType: "uint256",
name: "computeInstructionId",
type: "uint256",
},
],
name: "submitJob",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "maxTimeout",
type: "uint256",
},
{
internalType: "bool",
name: "gpuRequired",
type: "bool",
},
{
internalType: "uint256",
name: "computeInstructionId",
type: "uint256",
},
{
internalType: "address",
name: "teeAddress",
type: "address",
},
],
name: "submitJobWithTee",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "bytes4",
name: "interfaceId",
type: "bytes4",
},
],
name: "supportsInterface",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "teePoolFactory",
outputs: [
{
internalType: "contract IComputeEngineTeePoolFactory",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "unpause",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IDataAccessTreasury",
name: "newComputeEngineTreasuryAddress",
type: "address",
},
],
name: "updateComputeEngineTreasury",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IComputeInstructionRegistry",
name: "newInstructionRegistry",
type: "address",
},
],
name: "updateInstructionRegistry",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "jobId",
type: "uint256",
},
{
internalType: "enum IComputeEngine.JobStatus",
name: "status",
type: "uint8",
},
{
internalType: "string",
name: "statusMessage",
type: "string",
},
],
name: "updateJobStatus",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newQueryEngineAddress",
type: "address",
},
],
name: "updateQueryEngine",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "contract IComputeEngineTeePoolFactory",
name: "newTeePoolFactory",
type: "address",
},
],
name: "updateTeePoolFactory",
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",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
name: "withdraw",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
//# sourceMappingURL=ComputeEngineImplementation.js.map