@opendatalabs/vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts.
960 lines • 17.3 kB
JavaScript
const DataRefinerRegistryABI = [
{
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: "EnforcedPause",
type: "error"
},
{
inputs: [],
name: "ExpectedPause",
type: "error"
},
{
inputs: [],
name: "FailedInnerCall",
type: "error"
},
{
inputs: [],
name: "InvalidInitialization",
type: "error"
},
{
inputs: [
{
internalType: "uint256",
name: "schemaId",
type: "uint256"
}
],
name: "InvalidSchemaId",
type: "error"
},
{
inputs: [],
name: "NotDlpOwner",
type: "error"
},
{
inputs: [],
name: "NotInitializing",
type: "error"
},
{
inputs: [],
name: "UUPSUnauthorizedCallContext",
type: "error"
},
{
inputs: [
{
internalType: "bytes32",
name: "slot",
type: "bytes32"
}
],
name: "UUPSUnsupportedProxiableUUID",
type: "error"
},
{
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: "refinerId",
type: "uint256"
},
{
indexed: true,
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "name",
type: "string"
},
{
indexed: true,
internalType: "uint256",
name: "schemaId",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "schemaDefinitionUrl",
type: "string"
},
{
indexed: false,
internalType: "string",
name: "refinementInstructionUrl",
type: "string"
}
],
name: "RefinerAdded",
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: "schemaId",
type: "uint256"
},
{
indexed: false,
internalType: "string",
name: "name",
type: "string"
},
{
indexed: false,
internalType: "string",
name: "dialect",
type: "string"
},
{
indexed: false,
internalType: "string",
name: "definitionUrl",
type: "string"
}
],
name: "SchemaAdded",
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: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
internalType: "address",
name: "refinementService",
type: "address"
}
],
name: "addRefinementService",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "schemaDefinitionUrl",
type: "string"
},
{
internalType: "string",
name: "refinementInstructionUrl",
type: "string"
}
],
name: "addRefiner",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "uint256",
name: "schemaId",
type: "uint256"
},
{
internalType: "string",
name: "refinementInstructionUrl",
type: "string"
}
],
name: "addRefinerWithSchemaId",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "dialect",
type: "string"
},
{
internalType: "string",
name: "definitionUrl",
type: "string"
}
],
name: "addSchema",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
}
],
name: "dlpRefinementServices",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
}
],
name: "dlpRefiners",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "dlpRegistry",
outputs: [
{
internalType: "contract IDLPRegistry",
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: [
{
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: "initDlpRegistryAddress",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "refinerId",
type: "uint256"
},
{
internalType: "address",
name: "refinementService",
type: "address"
}
],
name: "isRefinementService",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "schemaId",
type: "uint256"
}
],
name: "isValidSchemaId",
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: "uint256",
name: "refinerId",
type: "uint256"
}
],
name: "refiners",
outputs: [
{
components: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "schemaDefinitionUrl",
type: "string"
},
{
internalType: "string",
name: "refinementInstructionUrl",
type: "string"
},
{
internalType: "uint256",
name: "schemaId",
type: "uint256"
}
],
internalType: "struct IDataRefinerRegistry.RefinerInfo",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "refinersCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
internalType: "address",
name: "refinementService",
type: "address"
}
],
name: "removeRefinementService",
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: "uint256",
name: "schemaId",
type: "uint256"
}
],
name: "schemas",
outputs: [
{
components: [
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "dialect",
type: "string"
},
{
internalType: "string",
name: "definitionUrl",
type: "string"
}
],
internalType: "struct IDataRefinerRegistry.Schema",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "schemasCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "bytes4",
name: "interfaceId",
type: "bytes4"
}
],
name: "supportsInterface",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "unpause",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
}
],
name: "updateDlpRefinersOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newDlpRegistryAddress",
type: "address"
}
],
name: "updateDlpRegistry",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "refinerId",
type: "uint256"
}
],
name: "updateRefinerOwner",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "refinerId",
type: "uint256"
},
{
internalType: "uint256",
name: "newSchemaId",
type: "uint256"
}
],
name: "updateSchemaId",
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: [],
name: "version",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "pure",
type: "function"
}
];
var DataRefinerRegistryImplementation_default = DataRefinerRegistryABI;
export {
DataRefinerRegistryABI,
DataRefinerRegistryImplementation_default as default
};
//# sourceMappingURL=DataRefinerRegistryImplementation.js.map