@opendatalabs/vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts.
1,445 lines • 27.6 kB
JavaScript
const DLPRegistryABI = [
{
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: "DlpAddressCannotBeChanged",
type: "error"
},
{
inputs: [],
name: "DlpLpTokenIdNotSet",
type: "error"
},
{
inputs: [],
name: "DlpTokenNotSet",
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: "InvalidAddress",
type: "error"
},
{
inputs: [],
name: "InvalidDepositAmount",
type: "error"
},
{
inputs: [],
name: "InvalidDlpId",
type: "error"
},
{
inputs: [],
name: "InvalidDlpStatus",
type: "error"
},
{
inputs: [],
name: "InvalidDlpVerification",
type: "error"
},
{
inputs: [],
name: "InvalidInitialization",
type: "error"
},
{
inputs: [],
name: "InvalidLpTokenId",
type: "error"
},
{
inputs: [],
name: "InvalidName",
type: "error"
},
{
inputs: [],
name: "InvalidTokenAddress",
type: "error"
},
{
inputs: [],
name: "NotDlpOwner",
type: "error"
},
{
inputs: [],
name: "NotInitializing",
type: "error"
},
{
inputs: [],
name: "ReentrancyGuardReentrantCall",
type: "error"
},
{
inputs: [],
name: "TransferFailed",
type: "error"
},
{
inputs: [],
name: "UUPSUnauthorizedCallContext",
type: "error"
},
{
inputs: [
{
internalType: "bytes32",
name: "slot",
type: "bytes32"
}
],
name: "UUPSUnsupportedProxiableUUID",
type: "error"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "lpTokenId",
type: "uint256"
}
],
name: "DlpLpTokenIdUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "dlpAddress",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "ownerAddress",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "treasuryAddress",
type: "address"
},
{
indexed: false,
internalType: "string",
name: "name",
type: "string"
},
{
indexed: false,
internalType: "string",
name: "iconUrl",
type: "string"
},
{
indexed: false,
internalType: "string",
name: "website",
type: "string"
},
{
indexed: false,
internalType: "string",
name: "metadata",
type: "string"
}
],
name: "DlpRegistered",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "newDlpRegistrationDepositAmount",
type: "uint256"
}
],
name: "DlpRegistrationDepositAmountUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
indexed: false,
internalType: "enum IDLPRegistry.DlpStatus",
name: "newStatus",
type: "uint8"
}
],
name: "DlpStatusUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
indexed: false,
internalType: "address",
name: "tokenAddress",
type: "address"
}
],
name: "DlpTokenUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
indexed: true,
internalType: "address",
name: "dlpAddress",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "ownerAddress",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "treasuryAddress",
type: "address"
},
{
indexed: false,
internalType: "string",
name: "name",
type: "string"
},
{
indexed: false,
internalType: "string",
name: "iconUrl",
type: "string"
},
{
indexed: false,
internalType: "string",
name: "website",
type: "string"
},
{
indexed: false,
internalType: "string",
name: "metadata",
type: "string"
}
],
name: "DlpUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "verificationBlockNumber",
type: "uint256"
}
],
name: "DlpVerificationBlockUpdated",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
indexed: false,
internalType: "bool",
name: "verified",
type: "bool"
}
],
name: "DlpVerificationUpdated",
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: "UPGRADE_INTERFACE_VERSION",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
}
],
name: "deregisterDlp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "dlpAddress",
type: "address"
}
],
name: "dlpIds",
outputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "string",
name: "dlpName",
type: "string"
}
],
name: "dlpNameToId",
outputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "dlpRegistrationDepositAmount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
}
],
name: "dlps",
outputs: [
{
components: [
{
internalType: "uint256",
name: "id",
type: "uint256"
},
{
internalType: "address",
name: "dlpAddress",
type: "address"
},
{
internalType: "address",
name: "ownerAddress",
type: "address"
},
{
internalType: "address",
name: "tokenAddress",
type: "address"
},
{
internalType: "address",
name: "treasuryAddress",
type: "address"
},
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "iconUrl",
type: "string"
},
{
internalType: "string",
name: "website",
type: "string"
},
{
internalType: "string",
name: "metadata",
type: "string"
},
{
internalType: "uint256",
name: "registrationBlockNumber",
type: "uint256"
},
{
internalType: "uint256",
name: "depositAmount",
type: "uint256"
},
{
internalType: "enum IDLPRegistry.DlpStatus",
name: "status",
type: "uint8"
},
{
internalType: "uint256",
name: "lpTokenId",
type: "uint256"
},
{
internalType: "uint256",
name: "verificationBlockNumber",
type: "uint256"
}
],
internalType: "struct IDLPRegistry.DlpInfo",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "dlpAddress",
type: "address"
}
],
name: "dlpsByAddress",
outputs: [
{
components: [
{
internalType: "uint256",
name: "id",
type: "uint256"
},
{
internalType: "address",
name: "dlpAddress",
type: "address"
},
{
internalType: "address",
name: "ownerAddress",
type: "address"
},
{
internalType: "address",
name: "tokenAddress",
type: "address"
},
{
internalType: "address",
name: "treasuryAddress",
type: "address"
},
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "iconUrl",
type: "string"
},
{
internalType: "string",
name: "website",
type: "string"
},
{
internalType: "string",
name: "metadata",
type: "string"
},
{
internalType: "uint256",
name: "registrationBlockNumber",
type: "uint256"
},
{
internalType: "uint256",
name: "depositAmount",
type: "uint256"
},
{
internalType: "enum IDLPRegistry.DlpStatus",
name: "status",
type: "uint8"
},
{
internalType: "uint256",
name: "lpTokenId",
type: "uint256"
},
{
internalType: "uint256",
name: "verificationBlockNumber",
type: "uint256"
}
],
internalType: "struct IDLPRegistry.DlpInfo",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "string",
name: "dlpName",
type: "string"
}
],
name: "dlpsByName",
outputs: [
{
components: [
{
internalType: "uint256",
name: "id",
type: "uint256"
},
{
internalType: "address",
name: "dlpAddress",
type: "address"
},
{
internalType: "address",
name: "ownerAddress",
type: "address"
},
{
internalType: "address",
name: "tokenAddress",
type: "address"
},
{
internalType: "address",
name: "treasuryAddress",
type: "address"
},
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "iconUrl",
type: "string"
},
{
internalType: "string",
name: "website",
type: "string"
},
{
internalType: "string",
name: "metadata",
type: "string"
},
{
internalType: "uint256",
name: "registrationBlockNumber",
type: "uint256"
},
{
internalType: "uint256",
name: "depositAmount",
type: "uint256"
},
{
internalType: "enum IDLPRegistry.DlpStatus",
name: "status",
type: "uint8"
},
{
internalType: "uint256",
name: "lpTokenId",
type: "uint256"
},
{
internalType: "uint256",
name: "verificationBlockNumber",
type: "uint256"
}
],
internalType: "struct IDLPRegistry.DlpInfo",
name: "",
type: "tuple"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "dlpsCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "index",
type: "uint256"
}
],
name: "eligibleDlpsListAt",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "eligibleDlpsListCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "eligibleDlpsListValues",
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: "ownerAddress",
type: "address"
}
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
}
],
name: "isEligibleDlp",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "dlpRootCoreAddress",
type: "address"
},
{
internalType: "uint256",
name: "startDlpId",
type: "uint256"
},
{
internalType: "uint256",
name: "endDlpId",
type: "uint256"
}
],
name: "migrateDlpData",
outputs: [],
stateMutability: "nonpayable",
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: [
{
components: [
{
internalType: "address",
name: "dlpAddress",
type: "address"
},
{
internalType: "address",
name: "ownerAddress",
type: "address"
},
{
internalType: "address payable",
name: "treasuryAddress",
type: "address"
},
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "iconUrl",
type: "string"
},
{
internalType: "string",
name: "website",
type: "string"
},
{
internalType: "string",
name: "metadata",
type: "string"
}
],
internalType: "struct IDLPRegistry.DlpRegistration",
name: "registrationInfo",
type: "tuple"
}
],
name: "registerDlp",
outputs: [],
stateMutability: "payable",
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: "bytes4",
name: "interfaceId",
type: "bytes4"
}
],
name: "supportsInterface",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "treasury",
outputs: [
{
internalType: "contract ITreasury",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "unpause",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
}
],
name: "unverifyDlp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
components: [
{
internalType: "address",
name: "dlpAddress",
type: "address"
},
{
internalType: "address",
name: "ownerAddress",
type: "address"
},
{
internalType: "address payable",
name: "treasuryAddress",
type: "address"
},
{
internalType: "string",
name: "name",
type: "string"
},
{
internalType: "string",
name: "iconUrl",
type: "string"
},
{
internalType: "string",
name: "website",
type: "string"
},
{
internalType: "string",
name: "metadata",
type: "string"
}
],
internalType: "struct IDLPRegistry.DlpRegistration",
name: "dlpUpdateInfo",
type: "tuple"
}
],
name: "updateDlp",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "newDlpRegistrationDepositAmount",
type: "uint256"
}
],
name: "updateDlpRegistrationDepositAmount",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
internalType: "address",
name: "tokenAddress",
type: "address"
},
{
internalType: "uint256",
name: "lpTokenId",
type: "uint256"
}
],
name: "updateDlpToken",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
internalType: "address",
name: "tokenAddress",
type: "address"
},
{
internalType: "uint256",
name: "lpTokenId",
type: "uint256"
},
{
internalType: "uint256",
name: "verificationBlockNumber",
type: "uint256"
}
],
name: "updateDlpTokenAndVerification",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "dlpId",
type: "uint256"
},
{
internalType: "uint256",
name: "verificationBlockNumber",
type: "uint256"
}
],
name: "updateDlpVerificationBlock",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "treasuryAddress",
type: "address"
}
],
name: "updateTreasury",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "vanaEpochAddress",
type: "address"
}
],
name: "updateVanaEpoch",
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: "vanaEpoch",
outputs: [
{
internalType: "contract IVanaEpoch",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "version",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "pure",
type: "function"
}
];
var DLPRegistryImplementation_default = DLPRegistryABI;
export {
DLPRegistryABI,
DLPRegistryImplementation_default as default
};
//# sourceMappingURL=DLPRegistryImplementation.js.map