@opendatalabs/vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts.
1,036 lines • 20 kB
JavaScript
"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 DataPortabilityGranteesImplementation_exports = {};
__export(DataPortabilityGranteesImplementation_exports, {
DataPortabilityGranteesABI: () => DataPortabilityGranteesABI,
default: () => DataPortabilityGranteesImplementation_default
});
module.exports = __toCommonJS(DataPortabilityGranteesImplementation_exports);
const DataPortabilityGranteesABI = [
{
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: "implementation",
type: "address"
}
],
name: "ERC1967InvalidImplementation",
type: "error"
},
{
inputs: [],
name: "ERC1967NonPayable",
type: "error"
},
{
inputs: [],
name: "EmptyPublicKey",
type: "error"
},
{
inputs: [],
name: "EnforcedPause",
type: "error"
},
{
inputs: [],
name: "ExpectedPause",
type: "error"
},
{
inputs: [],
name: "FailedInnerCall",
type: "error"
},
{
inputs: [],
name: "GranteeAlreadyRegistered",
type: "error"
},
{
inputs: [],
name: "GranteeNotFound",
type: "error"
},
{
inputs: [],
name: "InvalidInitialization",
type: "error"
},
{
inputs: [],
name: "NotInitializing",
type: "error"
},
{
inputs: [],
name: "UUPSUnauthorizedCallContext",
type: "error"
},
{
inputs: [
{
internalType: "bytes32",
name: "slot",
type: "bytes32"
}
],
name: "UUPSUnsupportedProxiableUUID",
type: "error"
},
{
inputs: [],
name: "UnauthorizedRegistration",
type: "error"
},
{
inputs: [],
name: "ZeroAddress",
type: "error"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "granteeId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "granteeAddress",
type: "address"
},
{
indexed: false,
internalType: "string",
name: "publicKey",
type: "string"
}
],
name: "GranteeRegistered",
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: "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: "PERMISSION_MANAGER_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: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
},
{
internalType: "uint256",
name: "permissionId",
type: "uint256"
}
],
name: "addPermissionToGrantee",
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: "address",
name: "granteeAddress",
type: "address"
}
],
name: "granteeAddressToId",
outputs: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "granteeAddress",
type: "address"
}
],
name: "granteeByAddress",
outputs: [
{
components: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "granteeAddress",
type: "address"
},
{
internalType: "string",
name: "publicKey",
type: "string"
},
{
internalType: "uint256[]",
name: "permissionIds",
type: "uint256[]"
}
],
internalType: "struct IDataPortabilityGrantees.GranteeInfo",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "granteeAddress",
type: "address"
}
],
name: "granteeByAddressV2",
outputs: [
{
components: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "granteeAddress",
type: "address"
},
{
internalType: "string",
name: "publicKey",
type: "string"
},
{
internalType: "uint256",
name: "permissionsCount",
type: "uint256"
}
],
internalType: "struct IDataPortabilityGrantees.GranteeInfoV2",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
}
],
name: "granteeInfo",
outputs: [
{
components: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "granteeAddress",
type: "address"
},
{
internalType: "string",
name: "publicKey",
type: "string"
},
{
internalType: "uint256[]",
name: "permissionIds",
type: "uint256[]"
}
],
internalType: "struct IDataPortabilityGrantees.GranteeInfo",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
}
],
name: "granteeInfoV2",
outputs: [
{
components: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "granteeAddress",
type: "address"
},
{
internalType: "string",
name: "publicKey",
type: "string"
},
{
internalType: "uint256",
name: "permissionsCount",
type: "uint256"
}
],
internalType: "struct IDataPortabilityGrantees.GranteeInfoV2",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
}
],
name: "granteePermissionIds",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
}
],
name: "granteePermissions",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
},
{
internalType: "uint256",
name: "offset",
type: "uint256"
},
{
internalType: "uint256",
name: "limit",
type: "uint256"
}
],
name: "granteePermissionsPaginated",
outputs: [
{
internalType: "uint256[]",
name: "permissionIds",
type: "uint256[]"
},
{
internalType: "uint256",
name: "totalCount",
type: "uint256"
},
{
internalType: "bool",
name: "hasMore",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
}
],
name: "grantees",
outputs: [
{
components: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "granteeAddress",
type: "address"
},
{
internalType: "string",
name: "publicKey",
type: "string"
},
{
internalType: "uint256[]",
name: "permissionIds",
type: "uint256[]"
}
],
internalType: "struct IDataPortabilityGrantees.GranteeInfo",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "granteesCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
}
],
name: "granteesV2",
outputs: [
{
components: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "granteeAddress",
type: "address"
},
{
internalType: "string",
name: "publicKey",
type: "string"
},
{
internalType: "uint256",
name: "permissionsCount",
type: "uint256"
}
],
internalType: "struct IDataPortabilityGrantees.GranteeInfoV2",
name: "",
type: "tuple"
}
],
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: "trustedForwarderAddress",
type: "address"
},
{
internalType: "address",
name: "ownerAddress",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "forwarder",
type: "address"
}
],
name: "isTrustedForwarder",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
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: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "granteeAddress",
type: "address"
},
{
internalType: "string",
name: "publicKey",
type: "string"
}
],
name: "registerGrantee",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "granteeId",
type: "uint256"
},
{
internalType: "uint256",
name: "permissionId",
type: "uint256"
}
],
name: "removePermissionFromGrantee",
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: "bytes32",
name: "role",
type: "bytes32"
},
{
internalType: "bytes32",
name: "adminRole",
type: "bytes32"
}
],
name: "setRoleAdmin",
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: "trustedForwarder",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "unpause",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "trustedForwarderAddress",
type: "address"
}
],
name: "updateTrustedForwarder",
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"
}
];
var DataPortabilityGranteesImplementation_default = DataPortabilityGranteesABI;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
DataPortabilityGranteesABI
});
//# sourceMappingURL=DataPortabilityGranteesImplementation.cjs.map