@vechain/vebetterdao-contracts
Version:
Vebetter DAO smart contracts, including their addresses, ABIs, and interfaces.
2,546 lines (2,526 loc) • 6.94 MB
JavaScript
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// index.ts
var vebetterdao_contracts_exports = {};
__export(vebetterdao_contracts_exports, {
B3TR: () => B3TR,
B3TRGovernor: () => B3TRGovernor,
Emissions: () => Emissions,
GalaxyMember: () => GalaxyMember,
NodeManagement: () => NodeManagement,
TimeLock: () => TimeLock,
Treasury: () => Treasury,
VOT3: () => VOT3,
VeBetterPassport: () => VeBetterPassport,
VoterRewards: () => VoterRewards,
X2EarnApps: () => X2EarnApps,
X2EarnCreator: () => X2EarnCreator,
X2EarnRewardsPool: () => X2EarnRewardsPool,
XAllocationPool: () => XAllocationPool,
XAllocationVoting: () => XAllocationVoting
});
module.exports = __toCommonJS(vebetterdao_contracts_exports);
// 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
var import_ethers = require("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 import_ethers.Interface(_abi);
}
static connect(address, runner) {
return new import_ethers.Contract(address, _abi, runner);
}
};
AccessControl__factory.abi = _abi;
// typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts
var import_ethers2 = require("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 import_ethers2.Interface(_abi2);
}
static connect(address, runner) {
return new import_ethers2.Contract(address, _abi2, runner);
}
};
IAccessControl__factory.abi = _abi2;
// typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts
var import_ethers3 = require("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 import_ethers3.Interface(_abi3);
}
static connect(address, runner) {
return new import_ethers3.Contract(address, _abi3, runner);
}
};
Ownable__factory.abi = _abi3;
// typechain-types/factories/@openzeppelin/contracts/governance/utils/IVotes__factory.ts
var import_ethers4 = require("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 import_ethers4.Interface(_abi4);
}
static connect(address, runner) {
return new import_ethers4.Contract(address, _abi4, runner);
}
};
IVotes__factory.abi = _abi4;
// typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts
var import_ethers5 = require("ethers");
var _abi5 = [
{
inputs: [],
name: "proxiableUUID",
outputs: [
{
internalType: "bytes32",
name: "",
type: "bytes32"
}
],
stateMutability: "view",
type: "function"
}
];
var IERC1822Proxiable__factory = class {
static createInterface() {
return new import_ethers5.Interface(_abi5);
}
static connect(address, runner) {
return new import_ethers5.Contract(address, _abi5, runner);
}
};
IERC1822Proxiable__factory.abi = _abi5;
// typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts
var import_ethers6 = require("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 import_ethers6.Interface(_abi6);
}
static connect(address, runner) {
return new import_ethers6.Contract(address, _abi6, runner);
}
};
IERC1155Errors__factory.abi = _abi6;
// typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts
var import_ethers7 = require("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 import_ethers7.Interface(_abi7);
}
static connect(address, runner) {
return new import_ethers7.Contract(address, _abi7, runner);
}
};
IERC20Errors__factory.abi = _abi7;
// typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts
var import_ethers8 = require("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 import_ethers8.Interface(_abi8);
}
static connect(address, runner) {
return new import_ethers8.Contract(address, _abi8, runner);
}
};
IERC721Errors__factory.abi = _abi8;
// typechain-types/factories/@openzeppelin/contracts/interfaces/IERC4906__factory.ts
var import_ethers9 = require("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 import_ethers9.Interface(_abi9);
}
static connect(address, runner) {
return new import_ethers9.Contract(address, _abi9, runner);
}
};
IERC4906__factory.abi = _abi9;
// typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5267__factory.ts
var import_ethers10 = require("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 import_ethers10.Interface(_abi10);
}
static connect(address, runner) {
return new import_ethers10.Contract(address, _abi10, runner);
}
};
IERC5267__factory.abi = _abi10;
// typechain-types/factories/@openzeppelin/contracts/interfaces/IERC5805__factory.ts
var import_ethers11 = require("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 import_ethers11.Interface(_abi11);
}
static connect(address, runner) {
return new import_ethers11.Contract(address, _abi11, runner);
}
};
IERC5805__factory.abi = _abi11;
// typechain-types/factories/@openzeppelin/contracts/interfaces/IERC6372__factory.ts
var import_ethers12 = require("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 import_ethers12.Interface(_abi12);
}
static connect(address, runner) {
return new import_ethers12.Contract(address, _abi12, runner);
}
};
IERC6372__factory.abi = _abi12;
// typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.ts
var import_ethers13 = require("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 import_ethers13.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 import_ethers13.Interface(_abi13);
}
static connect(address, runner) {
return new import_ethers13.Contract(address, _abi13, runner);
}
};
ERC1967Utils__factory.bytecode = _bytecode;
ERC1967Utils__factory.abi = _abi13;
// typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts
var import_ethers14 = require("ethers");
var _abi14 = [
{
inputs: [],
name: "implementation",
outputs: [
{
internalType: "address",
name: "",
type: "address"
}
],
stateMutability: "view",
type: "function"
}
];
var IBeacon__factory = class {
static createInterface() {
return new import_ethers14.Interface(_abi14);
}
static connect(address, runner) {
return new import_ethers14.Contract(address, _abi14, runner);
}
};
IBeacon__factory.abi = _abi14;
// typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts
var import_ethers15 = require("ethers");
var _abi15 = [
{
stateMutability: "payable",
type: "fallback"
}
];
var Proxy__factory = class {
static createInterface() {
return new import_ethers15.Interface(_abi15);
}
static connect(address, runner) {
return new import_ethers15.Contract(address, _abi15, runner);
}
};
Proxy__factory.abi = _abi15;
// typechain-types/factories/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI__factory.ts
var import_ethers16 = require("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 import_ethers16.Interface(_abi16);
}
static connect(address, runner) {
return new import_ethers16.Contract(
address,
_abi16,
runner
);
}
};
IERC1155MetadataURI__factory.abi = _abi16;
// typechain-types/factories/@openzeppelin/contracts/token/ERC1155/ERC1155__factory.ts
var import_ethers17 = require("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: [
{
indexe