@opendatalabs/vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts.
1,012 lines • 18.8 kB
JavaScript
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;
export {
DataPortabilityGranteesABI,
DataPortabilityGranteesImplementation_default as default
};
//# sourceMappingURL=DataPortabilityGranteesImplementation.js.map