@vechain/vebetterdao-contracts
Version:
Vebetter DAO smart contracts, including their addresses, ABIs, and interfaces.
2,589 lines (2,571 loc) • 6.94 MB
JavaScript
// addresses/mainnet.json
var mainnet_default = {
B3TR: "0x5ef79995FE8a89e0812330E4378eB2660ceDe699",
B3TRGovernor: "0x1c65C25fABe2fc1bCb82f253fA0C916a322f777C",
Emissions: "0xDf94739bd169C84fe6478D8420Bb807F1f47b135",
GalaxyMember: "0x93B8cD34A7Fc4f53271b9011161F7A2B5fEA9D1F",
TimeLock: "0x7B7EaF620d88E38782c6491D7Ce0B8D8cF3227e4",
Treasury: "0xD5903BCc66e439c753e525F8AF2FeC7be2429593",
VOT3: "0x76Ca782B59C74d088C7D2Cce2f211BC00836c602",
VoterRewards: "0x838A33AF756a6366f93e201423E1425f67eC0Fa7",
X2EarnApps: "0x8392B7CCc763dB03b47afcD8E8f5e24F9cf0554D",
X2EarnRewardsPool: "0x6Bee7DDab6c99d5B2Af0554EaEA484CE18F52631",
XAllocationPool: "0x4191776F05f4bE4848d3f4d587345078B439C7d3",
XAllocationVoting: "0x89A00Bb0947a30FF95BEeF77a66AEdE3842Fe5B7",
VeBetterPassport: "0x35a267671d8EDD607B2056A9a13E7ba7CF53c8b3",
NodeManagement: "0xB0EF9D89C6b49CbA6BBF86Bf2FDf0Eee4968c6AB",
X2EarnCreator: "0xe8e96a768ffd00417d4bd985bec9EcfC6F732a7f"
};
// addresses/testnet.json
var testnet_default = {
B3TR: "0xbf64cf86894Ee0877C4e7d03936e35Ee8D8b864F",
B3TRGovernor: "0xDF5E114D391CAC840529802fe8D01f6bdeBE41eC",
Emissions: "0x148d21032F4a7b4aeF236E2E9C0c5bF62d10f8EB",
GalaxyMember: "0xCf73039913e05aa1838d5869E72290d2b454C1E8",
TimeLock: "0x30ee94F303643902a68aD8A7A6456cA69d763192",
Treasury: "0x039893EBe092A2D22B08E2b029735D211bfF7F50",
VOT3: "0xa704c45971995467696EE9544Da77DD42Bc9706E",
VoterRewards: "0x2E47fc4aabB3403037fB5E1f38995E7a91Ce8Ed2",
X2EarnApps: "0xcB23Eb1bBD5c07553795b9538b1061D0f4ABA153",
X2EarnRewardsPool: "0x5F8f86B8D0Fa93cdaE20936d150175dF0205fB38",
XAllocationPool: "0x9B9CA9D0C41Add1d204f90BA0E9a6844f1843A84",
XAllocationVoting: "0x5859ff910d8b0c127364c98E24233b0af7443c1c",
VeBetterPassport: "",
NodeManagement: "",
X2EarnCreator: ""
};
// typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.ts
import { Contract, Interface } from "ethers";
var _abi = [
{
inputs: [],
name: "AccessControlBadConfirmation",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "bytes32",
name: "neededRole",
type: "bytes32"
}
],
name: "AccessControlUnauthorizedAccount",
type: "error"
},
{
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"
},
{
inputs: [],
name: "DEFAULT_ADMIN_ROLE",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
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: "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"
}
];
var AccessControl__factory = class {
static createInterface() {
return new Interface(_abi);
}
static connect(address, runner) {
return new Contract(address, _abi, runner);
}
};
AccessControl__factory.abi = _abi;
// typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts
import { Contract as Contract2, Interface as Interface2 } from "ethers";
var _abi2 = [
{
inputs: [],
name: "AccessControlBadConfirmation",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "bytes32",
name: "neededRole",
type: "bytes32"
}
],
name: "AccessControlUnauthorizedAccount",
type: "error"
},
{
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"
},
{
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: "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"
}
];
var IAccessControl__factory = class {
static createInterface() {
return new Interface2(_abi2);
}
static connect(address, runner) {
return new Contract2(address, _abi2, runner);
}
};
IAccessControl__factory.abi = _abi2;
// typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts
import { Contract as Contract3, Interface as Interface3 } from "ethers";
var _abi3 = [
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "OwnableInvalidOwner",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "OwnableUnauthorizedAccount",
type: "error"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address"
}
],
name: "OwnershipTransferred",
type: "event"
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "renounceOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address"
}
],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
var Ownable__factory = class {
static createInterface() {
return new Interface3(_abi3);
}
static connect(address, runner) {
return new Contract3(address, _abi3, runner);
}
};
Ownable__factory.abi = _abi3;
// typechain-types/factories/@openzeppelin/contracts/governance/utils/IVotes__factory.ts
import { Contract as Contract4, Interface as Interface4 } from "ethers";
var _abi4 = [
{
inputs: [
{
internalType: "uint256",
name: "expiry",
type: "uint256"
}
],
name: "VotesExpiredSignature",
type: "error"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "delegator",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "fromDelegate",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "toDelegate",
type: "address"
}
],
name: "DelegateChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "delegate",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "previousVotes",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "newVotes",
type: "uint256"
}
],
name: "DelegateVotesChanged",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "delegatee",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "delegatee",
type: "address"
},
{
internalType: "uint256",
name: "nonce",
type: "uint256"
},
{
internalType: "uint256",
name: "expiry",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "delegateBySig",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "delegates",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "timepoint",
type: "uint256"
}
],
name: "getPastTotalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "timepoint",
type: "uint256"
}
],
name: "getPastVotes",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "getVotes",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
}
];
var IVotes__factory = class {
static createInterface() {
return new Interface4(_abi4);
}
static connect(address, runner) {
return new Contract4(address, _abi4, runner);
}
};
IVotes__factory.abi = _abi4;
// typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts
import { Contract as Contract5, Interface as Interface5 } from "ethers";
var _abi5 = [
{
inputs: [],
name: "proxiableUUID",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
}
];
var IERC1822Proxiable__factory = class {
static createInterface() {
return new Interface5(_abi5);
}
static connect(address, runner) {
return new Contract5(address, _abi5, runner);
}
};
IERC1822Proxiable__factory.abi = _abi5;
// typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts
import { Contract as Contract6, Interface as Interface6 } from "ethers";
var _abi6 = [
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "ERC1155InsufficientBalance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "approver",
type: "address"
}
],
name: "ERC1155InvalidApprover",
type: "error"
},
{
inputs: [
{
internalType: "uint256",
name: "idsLength",
type: "uint256"
},
{
internalType: "uint256",
name: "valuesLength",
type: "uint256"
}
],
name: "ERC1155InvalidArrayLength",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
}
],
name: "ERC1155InvalidOperator",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address"
}
],
name: "ERC1155InvalidReceiver",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
}
],
name: "ERC1155InvalidSender",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
},
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "ERC1155MissingApprovalForAll",
type: "error"
}
];
var IERC1155Errors__factory = class {
static createInterface() {
return new Interface6(_abi6);
}
static connect(address, runner) {
return new Contract6(address, _abi6, runner);
}
};
IERC1155Errors__factory.abi = _abi6;
// typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts
import { Contract as Contract7, Interface as Interface7 } from "ethers";
var _abi7 = [
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
},
{
internalType: "uint256",
name: "allowance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
}
],
name: "ERC20InsufficientAllowance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
}
],
name: "ERC20InsufficientBalance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "approver",
type: "address"
}
],
name: "ERC20InvalidApprover",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address"
}
],
name: "ERC20InvalidReceiver",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
}
],
name: "ERC20InvalidSender",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "spender",
type: "address"
}
],
name: "ERC20InvalidSpender",
type: "error"
}
];
var IERC20Errors__factory = class {
static createInterface() {
return new Interface7(_abi7);
}
static connect(address, runner) {
return new Contract7(address, _abi7, runner);
}
};
IERC20Errors__factory.abi = _abi7;
// typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts
import { Contract as Contract8, Interface as Interface8 } from "ethers";
var _abi8 = [
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
},
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "ERC721IncorrectOwner",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "ERC721InsufficientApproval",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "approver",
type: "address"
}
],
name: "ERC721InvalidApprover",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
}
],
name: "ERC721InvalidOperator",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "ERC721InvalidOwner",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address"
}
],
name: "ERC721InvalidReceiver",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
}
],
name: "ERC721InvalidSender",
type: "error"
},
{
inputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "ERC721NonexistentToken",
type: "error"
}
];
var IERC721Errors__factory = class {
static createInterface() {
return new Interface8(_abi8);
}
static connect(address, runner) {
return new Contract8(address, _abi8, runner);
}
};
IERC721Errors__factory.abi = _abi8;
// typechain-types/factories/@openzeppelin/contracts/interfaces/IERC4906__factory.ts
import { Contract as Contract9, Interface as Interface9 } from "ethers";
var _abi9 = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "approved",
type: "address"
},
{
indexed: true,
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "Approval",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "owner",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "operator",
type: "address"
},
{
indexed: false,
internalType: "bool",
name: "approved",
type: "bool"
}
],
name: "ApprovalForAll",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_fromTokenId",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "_toTokenId",
type: "uint256"
}
],
name: "BatchMetadataUpdate",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_tokenId",
type: "uint256"
}
],
name: "MetadataUpdate",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: true,
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "Transfer",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "approve",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "balance",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "getApproved",
outputs: [
{
internalType: "address",
name: "operator",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address"
},
{
internalType: "address",
name: "operator",
type: "address"
}
],
name: "isApprovedForAll",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "ownerOf",
outputs: [
{
internalType: "address",
name: "owner",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "safeTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "safeTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
},
{
internalType: "bool",
name: "approved",
type: "bool"
}
],
name: "setApprovalForAll",
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: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "transferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function"
}
];
var IERC4906__factory = class {
static createInterface() {
return new Interface9(_abi9);
}
static connect(address, runner) {
return new Contract9(address, _abi9, runner);
}
};
IERC4906__factory.abi = _abi9;
// typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.ts
import { Contract as Contract10, Interface as Interface10 } from "ethers";
var _abi10 = [
{
anonymous: false,
inputs: [],
name: "EIP712DomainChanged",
type: "event"
},
{
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"
}
];
var IERC5267__factory = class {
static createInterface() {
return new Interface10(_abi10);
}
static connect(address, runner) {
return new Contract10(address, _abi10, runner);
}
};
IERC5267__factory.abi = _abi10;
// typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5805__factory.ts
import { Contract as Contract11, Interface as Interface11 } from "ethers";
var _abi11 = [
{
inputs: [
{
internalType: "uint256",
name: "expiry",
type: "uint256"
}
],
name: "VotesExpiredSignature",
type: "error"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "delegator",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "fromDelegate",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "toDelegate",
type: "address"
}
],
name: "DelegateChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "delegate",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "previousVotes",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "newVotes",
type: "uint256"
}
],
name: "DelegateVotesChanged",
type: "event"
},
{
inputs: [],
name: "CLOCK_MODE",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "clock",
outputs: [
{
internalType: "uint48",
name: "",
type: "uint48"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "delegatee",
type: "address"
}
],
name: "delegate",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "delegatee",
type: "address"
},
{
internalType: "uint256",
name: "nonce",
type: "uint256"
},
{
internalType: "uint256",
name: "expiry",
type: "uint256"
},
{
internalType: "uint8",
name: "v",
type: "uint8"
},
{
internalType: "bytes32",
name: "r",
type: "bytes32"
},
{
internalType: "bytes32",
name: "s",
type: "bytes32"
}
],
name: "delegateBySig",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "delegates",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "uint256",
name: "timepoint",
type: "uint256"
}
],
name: "getPastTotalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "timepoint",
type: "uint256"
}
],
name: "getPastVotes",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
}
],
name: "getVotes",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
}
];
var IERC5805__factory = class {
static createInterface() {
return new Interface11(_abi11);
}
static connect(address, runner) {
return new Contract11(address, _abi11, runner);
}
};
IERC5805__factory.abi = _abi11;
// typechain-types/factories/@openzeppelin/contracts/interfaces/IERC6372__factory.ts
import { Contract as Contract12, Interface as Interface12 } from "ethers";
var _abi12 = [
{
inputs: [],
name: "CLOCK_MODE",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [],
name: "clock",
outputs: [
{
internalType: "uint48",
name: "",
type: "uint48"
}
],
stateMutability: "view",
type: "function"
}
];
var IERC6372__factory = class {
static createInterface() {
return new Interface12(_abi12);
}
static connect(address, runner) {
return new Contract12(address, _abi12, runner);
}
};
IERC6372__factory.abi = _abi12;
// typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.ts
import {
Contract as Contract13,
ContractFactory,
Interface as Interface13
} from "ethers";
var _abi13 = [
{
inputs: [
{
internalType: "address",
name: "admin",
type: "address"
}
],
name: "ERC1967InvalidAdmin",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "beacon",
type: "address"
}
],
name: "ERC1967InvalidBeacon",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "implementation",
type: "address"
}
],
name: "ERC1967InvalidImplementation",
type: "error"
},
{
inputs: [],
name: "ERC1967NonPayable",
type: "error"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "previousAdmin",
type: "address"
},
{
indexed: false,
internalType: "address",
name: "newAdmin",
type: "address"
}
],
name: "AdminChanged",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "beacon",
type: "address"
}
],
name: "BeaconUpgraded",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "implementation",
type: "address"
}
],
name: "Upgraded",
type: "event"
}
];
var _bytecode = "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122080d025bde6ecd3e9751bf52f4767f80cad11d4bafac081158d8af523c400a75c64736f6c63430008140033";
var isSuperArgs = (xs) => xs.length > 1;
var ERC1967Utils__factory = class extends ContractFactory {
constructor(...args) {
if (isSuperArgs(args)) {
super(...args);
} else {
super(_abi13, _bytecode, args[0]);
}
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(overrides || {});
}
deploy(overrides) {
return super.deploy(overrides || {});
}
connect(runner) {
return super.connect(runner);
}
static createInterface() {
return new Interface13(_abi13);
}
static connect(address, runner) {
return new Contract13(address, _abi13, runner);
}
};
ERC1967Utils__factory.bytecode = _bytecode;
ERC1967Utils__factory.abi = _abi13;
// typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts
import { Contract as Contract14, Interface as Interface14 } from "ethers";
var _abi14 = [
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
var IBeacon__factory = class {
static createInterface() {
return new Interface14(_abi14);
}
static connect(address, runner) {
return new Contract14(address, _abi14, runner);
}
};
IBeacon__factory.abi = _abi14;
// typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts
import { Contract as Contract15, Interface as Interface15 } from "ethers";
var _abi15 = [
{
stateMutability: "payable",
type: "fallback"
}
];
var Proxy__factory = class {
static createInterface() {
return new Interface15(_abi15);
}
static connect(address, runner) {
return new Contract15(address, _abi15, runner);
}
};
Proxy__factory.abi = _abi15;
// typechain-types/factories/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI__factory.ts
import { Contract as Contract16, Interface as Interface16 } from "ethers";
var _abi16 = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "operator",
type: "address"
},
{
indexed: false,
internalType: "bool",
name: "approved",
type: "bool"
}
],
name: "ApprovalForAll",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "operator",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256[]",
name: "ids",
type: "uint256[]"
},
{
indexed: false,
internalType: "uint256[]",
name: "values",
type: "uint256[]"
}
],
name: "TransferBatch",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "operator",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "TransferSingle",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "string",
name: "value",
type: "string"
},
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
}
],
name: "URI",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "id",
type: "uint256"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "accounts",
type: "address[]"
},
{
internalType: "uint256[]",
name: "ids",
type: "uint256[]"
}
],
name: "balanceOfBatch",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "address",
name: "operator",
type: "address"
}
],
name: "isApprovedForAll",
outputs: [
{
internalType: "bool",
name: "",
type: "bool"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256[]",
name: "ids",
type: "uint256[]"
},
{
internalType: "uint256[]",
name: "values",
type: "uint256[]"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "safeBatchTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "from",
type: "address"
},
{
internalType: "address",
name: "to",
type: "address"
},
{
internalType: "uint256",
name: "id",
type: "uint256"
},
{
internalType: "uint256",
name: "value",
type: "uint256"
},
{
internalType: "bytes",
name: "data",
type: "bytes"
}
],
name: "safeTransferFrom",
outputs: [],
stateMutability: "nonpayable",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
},
{
internalType: "bool",
name: "approved",
type: "bool"
}
],
name: "setApprovalForAll",
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: "id",
type: "uint256"
}
],
name: "uri",
outputs: [
{
internalType: "string",
name: "",
type: "string"
}
],
stateMutability: "view",
type: "function"
}
];
var IERC1155MetadataURI__factory = class {
static createInterface() {
return new Interface16(_abi16);
}
static connect(address, runner) {
return new Contract16(
address,
_abi16,
runner
);
}
};
IERC1155MetadataURI__factory.abi = _abi16;
// typechain-types/factories/@openzeppelin/contracts/token/ERC1155/ERC1155__factory.ts
import { Contract as Contract17, Interface as Interface17 } from "ethers";
var _abi17 = [
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
},
{
internalType: "uint256",
name: "balance",
type: "uint256"
},
{
internalType: "uint256",
name: "needed",
type: "uint256"
},
{
internalType: "uint256",
name: "tokenId",
type: "uint256"
}
],
name: "ERC1155InsufficientBalance",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "approver",
type: "address"
}
],
name: "ERC1155InvalidApprover",
type: "error"
},
{
inputs: [
{
internalType: "uint256",
name: "idsLength",
type: "uint256"
},
{
internalType: "uint256",
name: "valuesLength",
type: "uint256"
}
],
name: "ERC1155InvalidArrayLength",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
}
],
name: "ERC1155InvalidOperator",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "receiver",
type: "address"
}
],
name: "ERC1155InvalidReceiver",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "sender",
type: "address"
}
],
name: "ERC1155InvalidSender",
type: "error"
},
{
inputs: [
{
internalType: "address",
name: "operator",
type: "address"
},
{
internalType: "address",
name: "owner",
type: "address"
}
],
name: "ERC1155MissingApprovalForAll",
type: "error"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "account",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "operator",
type: "address"
},
{
indexed: false,
internalType: "bool",
name: "approved",
type: "bool"
}
],
name: "ApprovalForAll",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "operator",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256[]",
name: "ids",
type: "uint256[]"
},
{
indexed: false,
internalType: "uint256[]",
name: "values",
type: "uint256[]"
}
],
name: "TransferBatch",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "operator",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "from",
type: "address"
},
{
indexed: true,
internalType: "address",
name: "to",
type: "address"
},
{
indexed: false,
internalType: "uint256",
name: "id",
type: "uint256"
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256"
}
],
name: "TransferSingle",
type: "event"
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "string",
name: "value",
type: "string"
},
{
indexed: true,
internalType: "uint256",
name: "id",
type: "uint256"
}
],
name: "URI",
type: "event"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "uint256",
name: "id",
type: "uint256"
}
],
name: "balanceOf",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address[]",
name: "accounts",
type: "address[]"
},
{
internalType: "uint256[]",
name: "ids",
type: "uint256[]"
}
],
name: "balanceOfBatch",
outputs: [
{
internalType: "uint256[]",
name: "",
type: "uint256[]"
}
],
stateMutability: "view",
type: "function"
},
{
inputs: [
{
internalType: "address",
name: "account",
type: "address"
},
{
internalType: "address",
name: "operator",
type: "address"
}
],
name: "isApprovedForAll",
outputs: [
{
i