UNPKG

@opendatalabs/vana-sdk

Version:

A TypeScript library for interacting with Vana Network smart contracts.

1,395 lines 26.2 kB
const DataPortabilityServersABI = [ { 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: "EmptyPublicKey", type: "error" }, { inputs: [], name: "EmptyUrl", type: "error" }, { inputs: [], name: "EnforcedPause", type: "error" }, { inputs: [], name: "ExpectedPause", type: "error" }, { inputs: [], name: "FailedInnerCall", 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: [], name: "NotInitializing", type: "error" }, { inputs: [ { internalType: "address", name: "serverOwner", type: "address" }, { internalType: "address", name: "requestor", type: "address" } ], name: "NotServerOwner", type: "error" }, { inputs: [], name: "ServerAlreadyRegistered", type: "error" }, { inputs: [], name: "ServerAlreadyTrusted", type: "error" }, { inputs: [], name: "ServerAlreadyUntrusted", type: "error" }, { inputs: [], name: "ServerNotFound", type: "error" }, { inputs: [], name: "ServerNotTrusted", type: "error" }, { inputs: [ { internalType: "string", name: "existingUrl", type: "string" }, { internalType: "string", name: "providedUrl", type: "string" } ], name: "ServerUrlMismatch", 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: "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: "serverId", type: "uint256" }, { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "serverAddress", type: "address" }, { indexed: false, internalType: "string", name: "publicKey", type: "string" }, { indexed: false, internalType: "string", name: "url", type: "string" } ], name: "ServerRegistered", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "user", type: "address" }, { indexed: true, internalType: "uint256", name: "serverId", type: "uint256" } ], name: "ServerTrusted", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "user", type: "address" }, { indexed: true, internalType: "uint256", name: "serverId", type: "uint256" } ], name: "ServerUntrusted", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "serverId", type: "uint256" }, { indexed: false, internalType: "string", name: "url", type: "string" } ], name: "ServerUpdated", 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: "address", name: "ownerAddress", type: "address" }, { components: [ { internalType: "address", name: "serverAddress", type: "address" }, { internalType: "string", name: "publicKey", type: "string" }, { internalType: "string", name: "serverUrl", type: "string" } ], internalType: "struct IDataPortabilityServers.AddServerInput", name: "addServerInput", type: "tuple" } ], name: "addAndTrustServerByManager", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { components: [ { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "address", name: "serverAddress", type: "address" }, { internalType: "string", name: "publicKey", type: "string" }, { internalType: "string", name: "serverUrl", type: "string" } ], internalType: "struct IDataPortabilityServers.AddServerWithSignatureInput", name: "addServerInput", type: "tuple" }, { internalType: "bytes", name: "signature", type: "bytes" } ], name: "addAndTrustServerWithSignature", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { components: [ { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "address", name: "serverAddress", type: "address" }, { internalType: "string", name: "publicKey", type: "string" }, { internalType: "string", name: "serverUrl", type: "string" } ], internalType: "struct IDataPortabilityServers.AddServerWithSignatureInput", name: "addServerInput", type: "tuple" }, { internalType: "bytes", name: "signature", type: "bytes" } ], name: "addServerWithSignature", outputs: [], stateMutability: "nonpayable", 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: "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" } ], 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: "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: "address", name: "serverAddress", type: "address" } ], name: "serverAddressToId", outputs: [ { internalType: "uint256", name: "serverId", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "serverAddress", type: "address" } ], name: "serverByAddress", outputs: [ { components: [ { internalType: "uint256", name: "id", type: "uint256" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "serverAddress", type: "address" }, { internalType: "string", name: "publicKey", type: "string" }, { internalType: "string", name: "url", type: "string" } ], internalType: "struct IDataPortabilityServers.ServerInfo", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "serverId", type: "uint256" } ], name: "servers", outputs: [ { components: [ { internalType: "uint256", name: "id", type: "uint256" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "serverAddress", type: "address" }, { internalType: "string", name: "publicKey", type: "string" }, { internalType: "string", name: "url", type: "string" } ], internalType: "struct IDataPortabilityServers.ServerInfo", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "serversCount", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "bytes32", name: "role", type: "bytes32" }, { internalType: "bytes32", name: "adminRole", type: "bytes32" } ], name: "setRoleAdmin", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" }, { internalType: "uint256", name: "nonce", type: "uint256" } ], name: "setUserNonce", 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: [ { internalType: "uint256", name: "serverId", type: "uint256" } ], name: "trustServer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" }, { internalType: "uint256", name: "serverId", type: "uint256" } ], name: "trustServerByManager", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { components: [ { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "uint256", name: "serverId", type: "uint256" } ], internalType: "struct IDataPortabilityServers.TrustServerInput", name: "trustServerInput", type: "tuple" }, { internalType: "bytes", name: "signature", type: "bytes" } ], name: "trustServerWithSignature", outputs: [], stateMutability: "nonpayable", 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: "uint256", name: "serverId", type: "uint256" } ], name: "untrustServer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { components: [ { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "uint256", name: "serverId", type: "uint256" } ], internalType: "struct IDataPortabilityServers.UntrustServerInput", name: "untrustServerInput", type: "tuple" }, { internalType: "bytes", name: "signature", type: "bytes" } ], name: "untrustServerWithSignature", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "uint256", name: "serverId", type: "uint256" }, { internalType: "string", name: "url", type: "string" } ], name: "updateServer", 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: "serverIndex", type: "uint256" } ], name: "userServerIdsAt", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" } ], name: "userServerIdsLength", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" } ], name: "userServerIdsValues", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" } ], name: "userServerValues", outputs: [ { components: [ { internalType: "uint256", name: "id", type: "uint256" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "serverAddress", type: "address" }, { internalType: "string", name: "publicKey", type: "string" }, { internalType: "string", name: "url", type: "string" }, { internalType: "uint256", name: "startBlock", type: "uint256" }, { internalType: "uint256", name: "endBlock", type: "uint256" } ], internalType: "struct IDataPortabilityServers.TrustedServerInfo[]", name: "serversInfo", type: "tuple[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" }, { internalType: "uint256", name: "serverId", type: "uint256" } ], name: "userServers", outputs: [ { components: [ { internalType: "uint256", name: "id", type: "uint256" }, { internalType: "address", name: "owner", type: "address" }, { internalType: "address", name: "serverAddress", type: "address" }, { internalType: "string", name: "publicKey", type: "string" }, { internalType: "string", name: "url", type: "string" }, { internalType: "uint256", name: "startBlock", type: "uint256" }, { internalType: "uint256", name: "endBlock", type: "uint256" } ], internalType: "struct IDataPortabilityServers.TrustedServerInfo", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "userAddress", type: "address" } ], name: "users", outputs: [ { internalType: "uint256", name: "nonce", type: "uint256" }, { internalType: "uint256[]", name: "trustedServerIds", type: "uint256[]" } ], stateMutability: "view", type: "function" } ]; var DataPortabilityServersImplementation_default = DataPortabilityServersABI; export { DataPortabilityServersABI, DataPortabilityServersImplementation_default as default }; //# sourceMappingURL=DataPortabilityServersImplementation.js.map