UNPKG

@opendatalabs/vana-sdk

Version:

A TypeScript library for interacting with Vana Network smart contracts.

1,274 lines 23.8 kB
const DataPortabilityPermissionsABI = [ { 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: [], name: "ECDSAInvalidSignature", type: "error" }, { inputs: [ { internalType: "uint256", name: "length", type: "uint256" } ], name: "ECDSAInvalidSignatureLength", type: "error" }, { inputs: [ { internalType: "bytes32", name: "s", type: "bytes32" } ], name: "ECDSAInvalidSignatureS", type: "error" }, { inputs: [ { internalType: "address", name: "implementation", type: "address" } ], name: "ERC1967InvalidImplementation", type: "error" }, { inputs: [], name: "ERC1967NonPayable", type: "error" }, { inputs: [], name: "EmptyGrant", type: "error" }, { inputs: [], name: "EnforcedPause", type: "error" }, { inputs: [], name: "ExpectedPause", type: "error" }, { inputs: [], name: "FailedInnerCall", type: "error" }, { inputs: [], name: "GranteeNotFound", type: "error" }, { inputs: [ { internalType: "uint256", name: "permissionId", type: "uint256" } ], name: "InactivePermission", type: "error" }, { inputs: [], name: "InvalidInitialization", type: "error" }, { inputs: [ { internalType: "uint256", name: "expectedNonce", type: "uint256" }, { internalType: "uint256", name: "providedNonce", type: "uint256" } ], name: "InvalidNonce", type: "error" }, { inputs: [ { internalType: "uint256", name: "filesLength", type: "uint256" }, { internalType: "uint256", name: "permissionsLength", type: "uint256" } ], name: "InvalidPermissionsLength", type: "error" }, { inputs: [ { internalType: "uint256", name: "filesLength", type: "uint256" }, { internalType: "uint256", name: "schemaIdsLength", type: "uint256" } ], name: "InvalidSchemaIdsLength", type: "error" }, { inputs: [], name: "InvalidSignature", type: "error" }, { inputs: [ { internalType: "address", name: "fileOwner", type: "address" }, { internalType: "address", name: "requestor", type: "address" } ], name: "NotFileOwner", type: "error" }, { inputs: [], name: "NotInitializing", type: "error" }, { inputs: [ { internalType: "address", name: "permissionOwner", type: "address" }, { internalType: "address", name: "requestor", type: "address" } ], name: "NotPermissionGrantor", 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: [], name: "EIP712DomainChanged", 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: "uint256", name: "permissionId", type: "uint256" }, { indexed: true, internalType: "address", name: "user", type: "address" }, { indexed: true, internalType: "uint256", name: "granteeId", type: "uint256" }, { indexed: false, internalType: "string", name: "grant", type: "string" }, { indexed: false, internalType: "uint256[]", name: "fileIds", type: "uint256[]" } ], name: "PermissionAdded", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "permissionId", type: "uint256" } ], name: "PermissionRevoked", 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: "UPGRADE_INTERFACE_VERSION", outputs: [ { internalType: "string", name: "", type: "string" } ], stateMutability: "view", type: "function" }, { inputs: [ { components: [ { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "uint256", name: "granteeId", type: "uint256" }, { internalType: "string", name: "grant", type: "string" }, { internalType: "uint256[]", name: "fileIds", type: "uint256[]" } ], internalType: "struct IDataPortabilityPermissions.PermissionInput", name: "permissionInput", type: "tuple" }, { internalType: "bytes", name: "signature", type: "bytes" } ], name: "addPermission", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "nonpayable", type: "function" }, { inputs: [ { components: [ { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "uint256", name: "granteeId", type: "uint256" }, { internalType: "string", name: "grant", type: "string" }, { internalType: "string[]", name: "fileUrls", type: "string[]" }, { internalType: "uint256[]", name: "schemaIds", type: "uint256[]" }, { internalType: "address", name: "serverAddress", type: "address" }, { internalType: "string", name: "serverUrl", type: "string" }, { internalType: "string", name: "serverPublicKey", type: "string" }, { components: [ { internalType: "address", name: "account", type: "address" }, { internalType: "string", name: "key", type: "string" } ], internalType: "struct IDataRegistry.Permission[][]", name: "filePermissions", type: "tuple[][]" } ], internalType: "struct IDataPortabilityPermissions.ServerFilesAndPermissionInput", name: "serverFilesAndPermissionInput", type: "tuple" }, { internalType: "bytes", name: "signature", type: "bytes" } ], name: "addServerFilesAndPermissions", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "dataPortabilityGrantees", outputs: [ { internalType: "contract IDataPortabilityGrantees", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "dataPortabilityServers", outputs: [ { internalType: "contract IDataPortabilityServers", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "dataRegistry", outputs: [ { internalType: "contract IDataRegistry", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "eip712Domain", outputs: [ { internalType: "bytes1", name: "fields", type: "bytes1" }, { internalType: "string", name: "name", type: "string" }, { internalType: "string", name: "version", type: "string" }, { internalType: "uint256", name: "chainId", type: "uint256" }, { internalType: "address", name: "verifyingContract", type: "address" }, { internalType: "bytes32", name: "salt", type: "bytes32" }, { internalType: "uint256[]", name: "extensions", type: "uint256[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "fileId", type: "uint256" } ], name: "filePermissionIds", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "fileId", type: "uint256" } ], name: "filePermissions", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]" } ], 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: "trustedForwarderAddress", type: "address" }, { internalType: "address", name: "ownerAddress", type: "address" }, { internalType: "contract IDataRegistry", name: "dataRegistryAddress", type: "address" }, { internalType: "contract IDataPortabilityServers", name: "serversContractAddr", type: "address" }, { internalType: "contract IDataPortabilityGrantees", name: "granteesContractAddr", 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: [ { internalType: "uint256", name: "permissionId", type: "uint256" } ], name: "permissionFileIds", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "permissionId", type: "uint256" } ], name: "permissions", outputs: [ { components: [ { internalType: "uint256", name: "id", type: "uint256" }, { internalType: "address", name: "grantor", type: "address" }, { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "uint256", name: "granteeId", type: "uint256" }, { internalType: "string", name: "grant", type: "string" }, { internalType: "uint256", name: "startBlock", type: "uint256" }, { internalType: "uint256", name: "endBlock", type: "uint256" }, { internalType: "uint256[]", name: "fileIds", type: "uint256[]" } ], internalType: "struct IDataPortabilityPermissions.PermissionInfo", 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: [ { internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "address", name: "callerConfirmation", type: "address" } ], name: "renounceRole", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "uint256", name: "permissionId", type: "uint256" } ], name: "revokePermission", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { components: [ { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "uint256", name: "permissionId", type: "uint256" } ], internalType: "struct IDataPortabilityPermissions.RevokePermissionInput", name: "revokePermissionInput", type: "tuple" }, { internalType: "bytes", name: "signature", type: "bytes" } ], name: "revokePermissionWithSignature", 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: "contract IDataRegistry", name: "newDataRegistry", type: "address" } ], name: "updateDataRegistry", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "contract IDataPortabilityGrantees", name: "newGranteesContract", type: "address" } ], name: "updateGranteesContract", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "contract IDataPortabilityServers", name: "newServersContract", type: "address" } ], name: "updateServersContract", 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" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" } ], name: "userNonce", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" }, { internalType: "uint256", name: "permissionIndex", type: "uint256" } ], name: "userPermissionIdsAt", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" } ], name: "userPermissionIdsLength", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" } ], name: "userPermissionIdsValues", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" } ], name: "users", outputs: [ { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "uint256[]", name: "permissionIds", type: "uint256[]" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "version", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "pure", type: "function" } ]; var DataPortabilityPermissionsImplementation_default = DataPortabilityPermissionsABI; export { DataPortabilityPermissionsABI, DataPortabilityPermissionsImplementation_default as default }; //# sourceMappingURL=DataPortabilityPermissionsImplementation.js.map