UNPKG

@opendatalabs/vana-sdk

Version:

A TypeScript library for interacting with Vana Network smart contracts.

936 lines 17.7 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var TeePoolPersistentGpuImplementation_exports = {}; __export(TeePoolPersistentGpuImplementation_exports, { TeePoolPersistentGpuABI: () => TeePoolPersistentGpuABI, default: () => TeePoolPersistentGpuImplementation_default }); module.exports = __toCommonJS(TeePoolPersistentGpuImplementation_exports); const TeePoolPersistentGpuABI = [ { 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: [], name: "EnforcedPause", type: "error" }, { inputs: [], name: "ExpectedPause", type: "error" }, { inputs: [], name: "HWRequirementNotMet", type: "error" }, { inputs: [], name: "InvalidInitialization", type: "error" }, { inputs: [], name: "MaxTimeoutExceeded", type: "error" }, { inputs: [ { internalType: "address", name: "teePoolAddress", type: "address" } ], name: "NoActiveTee", type: "error" }, { inputs: [], name: "NotComputeEngine", type: "error" }, { inputs: [], name: "NotInitializing", type: "error" }, { inputs: [], name: "NotTeePoolFactory", type: "error" }, { inputs: [], name: "TeeAlreadyAdded", type: "error" }, { inputs: [ { internalType: "address", name: "teeAddress", type: "address" } ], name: "TeeNotActive", type: "error" }, { anonymous: false, inputs: [ { indexed: false, internalType: "enum IComputeEngineTeePool.HardwareType", name: "newHardwareType", type: "uint8" } ], name: "HardwareTypeUpdated", 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: "JobRemoved", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "jobId", type: "uint256" }, { indexed: false, internalType: "address", name: "teeAddress", type: "address" } ], name: "JobSubmitted", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address" } ], name: "Paused", 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: "address", name: "teeAddress", type: "address" }, { indexed: false, internalType: "string", name: "url", type: "string" }, { indexed: false, internalType: "string", name: "publicKey", type: "string" } ], name: "TeeAdded", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "enum IComputeEngineTeePool.TeePoolType", name: "newTeePoolType", type: "uint8" } ], name: "TeePoolTypeUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "teeAddress", type: "address" } ], name: "TeeRemoved", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "account", type: "address" } ], name: "Unpaused", 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: "activeTeeList", outputs: [ { internalType: "address[]", name: "", type: "address[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "index", type: "uint256" } ], name: "activeTeeListAt", outputs: [ { components: [ { internalType: "address", name: "teeAddress", type: "address" }, { internalType: "string", name: "url", type: "string" }, { internalType: "enum IComputeEngineTeePool.TeeStatus", name: "status", type: "uint8" }, { internalType: "uint256", name: "jobsCount", type: "uint256" }, { internalType: "string", name: "publicKey", type: "string" } ], internalType: "struct IComputeEngineTeePool.TeeInfo", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "activeTeesCount", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "teeAddress", type: "address" }, { internalType: "bytes", name: "params", type: "bytes" } ], name: "addTee", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "computeEngine", outputs: [ { internalType: "address", name: "", type: "address" } ], 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: [], name: "hardwareType", outputs: [ { internalType: "enum IComputeEngineTeePool.HardwareType", name: "", type: "uint8" } ], stateMutability: "view", 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: "initComputeEngine", type: "address" }, { internalType: "address", name: "initTeePoolFactory", type: "address" }, { internalType: "enum IComputeEngineTeePool.TeePoolType", name: "initTeePoolType", type: "uint8" }, { internalType: "enum IComputeEngineTeePool.HardwareType", name: "initHardwareType", type: "uint8" }, { internalType: "uint80", name: "initMaxTimeout", type: "uint80" } ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "teeAddress", type: "address" } ], name: "isTee", outputs: [ { internalType: "bool", name: "", type: "bool" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "maxTimeout", outputs: [ { internalType: "uint80", name: "", type: "uint80" } ], 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: [ { internalType: "uint256", name: "jobId", type: "uint256" } ], name: "removeJob", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "teeAddress", type: "address" } ], name: "removeTee", 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: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "account", type: "address" } ], name: "revokeRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "bytes", name: "params", type: "bytes" } ], name: "submitJob", outputs: [ { internalType: "address", name: "", type: "address" }, { internalType: "bytes", name: "", type: "bytes" } ], 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: "teeList", outputs: [ { internalType: "address[]", name: "", type: "address[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "index", type: "uint256" } ], name: "teeListAt", outputs: [ { components: [ { internalType: "address", name: "teeAddress", type: "address" }, { internalType: "string", name: "url", type: "string" }, { internalType: "enum IComputeEngineTeePool.TeeStatus", name: "status", type: "uint8" }, { internalType: "uint256", name: "jobsCount", type: "uint256" }, { internalType: "string", name: "publicKey", type: "string" } ], internalType: "struct IComputeEngineTeePool.TeeInfo", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "teePoolFactory", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "teePoolType", outputs: [ { internalType: "enum IComputeEngineTeePool.TeePoolType", name: "", type: "uint8" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "teeAddress", type: "address" } ], name: "tees", outputs: [ { components: [ { internalType: "address", name: "teeAddress", type: "address" }, { internalType: "string", name: "url", type: "string" }, { internalType: "enum IComputeEngineTeePool.TeeStatus", name: "status", type: "uint8" }, { internalType: "uint256", name: "jobsCount", type: "uint256" }, { internalType: "string", name: "publicKey", type: "string" } ], internalType: "struct IComputeEngineTeePool.TeeInfo", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "teesCount", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "newComputeEngine", type: "address" } ], name: "updateComputeEngine", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "uint80", name: "newMaxTimeout", type: "uint80" } ], name: "updateMaxTimeout", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "newTeePoolFactory", type: "address" } ], name: "updateTeePoolFactory", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "version", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "pure", type: "function" } ]; var TeePoolPersistentGpuImplementation_default = TeePoolPersistentGpuABI; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { TeePoolPersistentGpuABI }); //# sourceMappingURL=TeePoolPersistentGpuImplementation.cjs.map