UNPKG

mferbuilderdao-sdk

Version:

a TypeScript library that provides type safe interactions and data fetching for the mferbuilderDAO contracts

2,351 lines (2,349 loc) 88.1 kB
// package/abis/Token.ts var abi = [ { inputs: [ { internalType: "address", name: "_manager", type: "address" } ], stateMutability: "payable", type: "constructor" }, { inputs: [], name: "ADDRESS_ZERO", type: "error" }, { inputs: [], name: "ALREADY_INITIALIZED", type: "error" }, { inputs: [], name: "ALREADY_MINTED", type: "error" }, { inputs: [], name: "DELEGATE_CALL_FAILED", type: "error" }, { inputs: [], name: "EXPIRED_SIGNATURE", type: "error" }, { inputs: [], name: "INITIALIZING", type: "error" }, { inputs: [], name: "INVALID_APPROVAL", type: "error" }, { inputs: [], name: "INVALID_FOUNDER_OWNERSHIP", type: "error" }, { inputs: [], name: "INVALID_OWNER", type: "error" }, { inputs: [], name: "INVALID_RECIPIENT", type: "error" }, { inputs: [], name: "INVALID_SIGNATURE", type: "error" }, { inputs: [], name: "INVALID_TARGET", type: "error" }, { inputs: [], name: "INVALID_TIMESTAMP", type: "error" }, { inputs: [ { internalType: "address", name: "impl", type: "address" } ], name: "INVALID_UPGRADE", type: "error" }, { inputs: [], name: "NOT_INITIALIZING", type: "error" }, { inputs: [], name: "NOT_MINTED", type: "error" }, { inputs: [], name: "NO_METADATA_GENERATED", type: "error" }, { inputs: [], name: "ONLY_AUCTION", type: "error" }, { inputs: [], name: "ONLY_CALL", type: "error" }, { inputs: [], name: "ONLY_DELEGATECALL", type: "error" }, { inputs: [], name: "ONLY_MANAGER", type: "error" }, { inputs: [], name: "ONLY_OWNER", type: "error" }, { inputs: [], name: "ONLY_PENDING_OWNER", type: "error" }, { inputs: [], name: "ONLY_PROXY", type: "error" }, { inputs: [], name: "ONLY_UUPS", type: "error" }, { inputs: [], name: "REENTRANCY", type: "error" }, { inputs: [], name: "UNSUPPORTED_UUID", type: "error" }, { 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: true, internalType: "address", name: "delegator", type: "address" }, { indexed: true, internalType: "address", name: "from", type: "address" }, { indexed: true, internalType: "address", name: "to", type: "address" } ], name: "DelegateChanged", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "delegate", type: "address" }, { indexed: false, internalType: "uint256", name: "prevTotalVotes", type: "uint256" }, { indexed: false, internalType: "uint256", name: "newTotalVotes", type: "uint256" } ], name: "DelegateVotesChanged", type: "event" }, { anonymous: false, inputs: [ { components: [ { internalType: "address", name: "wallet", type: "address" }, { internalType: "uint256", name: "ownershipPct", type: "uint256" }, { internalType: "uint256", name: "vestExpiry", type: "uint256" } ], indexed: false, internalType: "struct IManager.FounderParams[]", name: "newFounders", type: "tuple[]" } ], name: "FounderAllocationsCleared", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "version", type: "uint256" } ], name: "Initialized", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "baseTokenId", type: "uint256" }, { indexed: false, internalType: "uint256", name: "founderId", type: "uint256" }, { components: [ { internalType: "address", name: "wallet", type: "address" }, { internalType: "uint8", name: "ownershipPct", type: "uint8" }, { internalType: "uint32", name: "vestExpiry", type: "uint32" } ], indexed: false, internalType: "struct TokenTypesV1.Founder", name: "founder", type: "tuple" } ], name: "MintScheduled", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "baseTokenId", type: "uint256" }, { indexed: false, internalType: "uint256", name: "founderId", type: "uint256" }, { components: [ { internalType: "address", name: "wallet", type: "address" }, { internalType: "uint8", name: "ownershipPct", type: "uint8" }, { internalType: "uint32", name: "vestExpiry", type: "uint32" } ], indexed: false, internalType: "struct TokenTypesV1.Founder", name: "founder", type: "tuple" } ], name: "MintUnscheduled", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "canceledOwner", type: "address" } ], name: "OwnerCanceled", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "pendingOwner", type: "address" } ], name: "OwnerPending", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "prevOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" } ], name: "OwnerUpdated", 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" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "impl", type: "address" } ], name: "Upgraded", type: "event" }, { inputs: [], name: "DOMAIN_SEPARATOR", outputs: [ { internalType: "bytes32", name: "", type: "bytes32" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "_to", type: "address" }, { internalType: "uint256", name: "_tokenId", type: "uint256" } ], name: "approve", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "auction", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "_owner", type: "address" } ], name: "balanceOf", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "_tokenId", type: "uint256" } ], name: "burn", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "cancelOwnershipTransfer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "contractURI", outputs: [ { internalType: "string", name: "", type: "string" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "_to", type: "address" } ], name: "delegate", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "_from", type: "address" }, { internalType: "address", name: "_to", type: "address" }, { internalType: "uint256", name: "_deadline", 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: "_tokenId", type: "uint256" } ], name: "getApproved", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "_founderId", type: "uint256" } ], name: "getFounder", outputs: [ { components: [ { internalType: "address", name: "wallet", type: "address" }, { internalType: "uint8", name: "ownershipPct", type: "uint8" }, { internalType: "uint32", name: "vestExpiry", type: "uint32" } ], internalType: "struct TokenTypesV1.Founder", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "getFounders", outputs: [ { components: [ { internalType: "address", name: "wallet", type: "address" }, { internalType: "uint8", name: "ownershipPct", type: "uint8" }, { internalType: "uint32", name: "vestExpiry", type: "uint32" } ], internalType: "struct TokenTypesV1.Founder[]", name: "", type: "tuple[]" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "_account", type: "address" }, { internalType: "uint256", name: "_timestamp", type: "uint256" } ], name: "getPastVotes", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "_tokenId", type: "uint256" } ], name: "getScheduledRecipient", outputs: [ { components: [ { internalType: "address", name: "wallet", type: "address" }, { internalType: "uint8", name: "ownershipPct", type: "uint8" }, { internalType: "uint32", name: "vestExpiry", type: "uint32" } ], internalType: "struct TokenTypesV1.Founder", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "_account", type: "address" } ], name: "getVotes", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [ { components: [ { internalType: "address", name: "wallet", type: "address" }, { internalType: "uint256", name: "ownershipPct", type: "uint256" }, { internalType: "uint256", name: "vestExpiry", type: "uint256" } ], internalType: "struct IManager.FounderParams[]", name: "_founders", type: "tuple[]" }, { internalType: "bytes", name: "_initStrings", type: "bytes" }, { internalType: "address", name: "_metadataRenderer", type: "address" }, { internalType: "address", name: "_auction", type: "address" }, { internalType: "address", name: "_initialOwner", type: "address" } ], name: "initialize", outputs: [], stateMutability: "nonpayable", 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: [], name: "metadataRenderer", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "mint", outputs: [ { internalType: "uint256", name: "tokenId", type: "uint256" } ], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "name", outputs: [ { internalType: "string", name: "", type: "string" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "_account", type: "address" } ], name: "nonce", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "onFirstAuctionStarted", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "owner", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "_tokenId", type: "uint256" } ], name: "ownerOf", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "pendingOwner", outputs: [ { internalType: "address", name: "", type: "address" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "proxiableUUID", outputs: [ { internalType: "bytes32", name: "", type: "bytes32" } ], 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: "_newOwner", type: "address" } ], name: "safeTransferOwnership", 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: "pure", type: "function" }, { inputs: [], name: "symbol", outputs: [ { internalType: "string", name: "", type: "string" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "uint256", name: "_tokenId", type: "uint256" } ], name: "tokenURI", outputs: [ { internalType: "string", name: "", type: "string" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "totalFounderOwnership", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "totalFounders", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "totalSupply", outputs: [ { internalType: "uint256", name: "", type: "uint256" } ], 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" }, { inputs: [ { internalType: "address", name: "_newOwner", type: "address" } ], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { components: [ { internalType: "address", name: "wallet", type: "address" }, { internalType: "uint256", name: "ownershipPct", type: "uint256" }, { internalType: "uint256", name: "vestExpiry", type: "uint256" } ], internalType: "struct IManager.FounderParams[]", name: "newFounders", type: "tuple[]" } ], name: "updateFounders", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "_newImpl", type: "address" } ], name: "upgradeTo", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "_newImpl", type: "address" }, { internalType: "bytes", name: "_data", type: "bytes" } ], name: "upgradeToAndCall", outputs: [], stateMutability: "payable", type: "function" } ]; // package/abis/Auction.ts var abi2 = [ { inputs: [ { internalType: "address", name: "_manager", type: "address" }, { internalType: "address", name: "_weth", type: "address" } ], stateMutability: "payable", type: "constructor" }, { inputs: [], name: "ADDRESS_ZERO", type: "error" }, { inputs: [], name: "ALREADY_INITIALIZED", type: "error" }, { inputs: [], name: "AUCTION_ACTIVE", type: "error" }, { inputs: [], name: "AUCTION_CREATE_FAILED_TO_LAUNCH", type: "error" }, { inputs: [], name: "AUCTION_NOT_STARTED", type: "error" }, { inputs: [], name: "AUCTION_OVER", type: "error" }, { inputs: [], name: "AUCTION_SETTLED", type: "error" }, { inputs: [], name: "DELEGATE_CALL_FAILED", type: "error" }, { inputs: [], name: "FAILING_WETH_TRANSFER", type: "error" }, { inputs: [], name: "INITIALIZING", type: "error" }, { inputs: [], name: "INSOLVENT", type: "error" }, { inputs: [], name: "INVALID_TARGET", type: "error" }, { inputs: [], name: "INVALID_TOKEN_ID", type: "error" }, { inputs: [{ internalType: "address", name: "impl", type: "address" }], name: "INVALID_UPGRADE", type: "error" }, { inputs: [], name: "MINIMUM_BID_NOT_MET", type: "error" }, { inputs: [], name: "NOT_INITIALIZING", type: "error" }, { inputs: [], name: "ONLY_CALL", type: "error" }, { inputs: [], name: "ONLY_DELEGATECALL", type: "error" }, { inputs: [], name: "ONLY_MANAGER", type: "error" }, { inputs: [], name: "ONLY_OWNER", type: "error" }, { inputs: [], name: "ONLY_PENDING_OWNER", type: "error" }, { inputs: [], name: "ONLY_PROXY", type: "error" }, { inputs: [], name: "ONLY_UUPS", type: "error" }, { inputs: [], name: "PAUSED", type: "error" }, { inputs: [], name: "REENTRANCY", type: "error" }, { inputs: [], name: "RESERVE_PRICE_NOT_MET", type: "error" }, { inputs: [], name: "UNPAUSED", type: "error" }, { inputs: [], name: "UNSAFE_CAST", type: "error" }, { inputs: [], name: "UNSUPPORTED_UUID", type: "error" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "tokenId", type: "uint256" }, { indexed: false, internalType: "address", name: "bidder", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" }, { indexed: false, internalType: "bool", name: "extended", type: "bool" }, { indexed: false, internalType: "uint256", name: "endTime", type: "uint256" } ], name: "AuctionBid", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "tokenId", type: "uint256" }, { indexed: false, internalType: "uint256", name: "startTime", type: "uint256" }, { indexed: false, internalType: "uint256", name: "endTime", type: "uint256" } ], name: "AuctionCreated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "tokenId", type: "uint256" }, { indexed: false, internalType: "address", name: "winner", type: "address" }, { indexed: false, internalType: "uint256", name: "amount", type: "uint256" } ], name: "AuctionSettled", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "duration", type: "uint256" } ], name: "DurationUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "version", type: "uint256" } ], name: "Initialized", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "minBidIncrementPercentage", type: "uint256" } ], name: "MinBidIncrementPercentageUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "canceledOwner", type: "address" } ], name: "OwnerCanceled", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "pendingOwner", type: "address" } ], name: "OwnerPending", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "prevOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" } ], name: "OwnerUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "user", type: "address" } ], name: "Paused", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "reservePrice", type: "uint256" } ], name: "ReservePriceUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "timeBuffer", type: "uint256" } ], name: "TimeBufferUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "user", type: "address" } ], name: "Unpaused", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "impl", type: "address" } ], name: "Upgraded", type: "event" }, { inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "auction", outputs: [ { internalType: "uint256", name: "tokenId", type: "uint256" }, { internalType: "uint256", name: "highestBid", type: "uint256" }, { internalType: "address", name: "highestBidder", type: "address" }, { internalType: "uint40", name: "startTime", type: "uint40" }, { internalType: "uint40", name: "endTime", type: "uint40" }, { internalType: "bool", name: "settled", type: "bool" } ], stateMutability: "view", type: "function" }, { inputs: [], name: "cancelOwnershipTransfer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "_tokenId", type: "uint256" }], name: "createBid", outputs: [], stateMutability: "payable", type: "function" }, { inputs: [], name: "duration", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "_token", type: "address" }, { internalType: "address", name: "_founder", type: "address" }, { internalType: "address", name: "_treasury", type: "address" }, { internalType: "uint256", name: "_duration", type: "uint256" }, { internalType: "uint256", name: "_reservePrice", type: "uint256" } ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "minBidIncrement", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "owner", outputs: [{ internalType: "address", name: "", type: "address" }], 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: "pendingOwner", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "proxiableUUID", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "reservePrice", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_newOwner", type: "address" }], name: "safeTransferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "_duration", type: "uint256" }], name: "setDuration", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "_percentage", type: "uint256" }], name: "setMinimumBidIncrement", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "uint256", name: "_reservePrice", type: "uint256" } ], name: "setReservePrice", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "uint256", name: "_timeBuffer", type: "uint256" }], name: "setTimeBuffer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "settleAuction", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "settleCurrentAndCreateNewAuction", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "timeBuffer", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "token", outputs: [{ internalType: "contract Token", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [{ internalType: "address", name: "_newOwner", type: "address" }], name: "transferOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "treasury", outputs: [{ internalType: "address", name: "", type: "address" }], stateMutability: "view", type: "function" }, { inputs: [], name: "unpause", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "address", name: "_newImpl", type: "address" }], name: "upgradeTo", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "_newImpl", type: "address" }, { internalType: "bytes", name: "_data", type: "bytes" } ], name: "upgradeToAndCall", outputs: [], stateMutability: "payable", type: "function" } ]; // package/abis/Governor.ts var abi3 = [ { inputs: [{ internalType: "address", name: "_manager", type: "address" }], stateMutability: "payable", type: "constructor" }, { inputs: [], name: "ADDRESS_ZERO", type: "error" }, { inputs: [], name: "ALREADY_INITIALIZED", type: "error" }, { inputs: [], name: "ALREADY_VOTED", type: "error" }, { inputs: [], name: "BELOW_PROPOSAL_THRESHOLD", type: "error" }, { inputs: [], name: "DELEGATE_CALL_FAILED", type: "error" }, { inputs: [], name: "EXPIRED_SIGNATURE", type: "error" }, { inputs: [], name: "INITIALIZING", type: "error" }, { inputs: [], name: "INVALID_CANCEL", type: "error" }, { inputs: [], name: "INVALID_PROPOSAL_THRESHOLD_BPS", type: "error" }, { inputs: [], name: "INVALID_QUORUM_THRESHOLD_BPS", type: "error" }, { inputs: [], name: "INVALID_SIGNATURE", type: "error" }, { inputs: [], name: "INVALID_TARGET", type: "error" }, { inputs: [{ internalType: "address", name: "impl", type: "address" }], name: "INVALID_UPGRADE", type: "error" }, { inputs: [], name: "INVALID_VOTE", type: "error" }, { inputs: [], name: "INVALID_VOTING_DELAY", type: "error" }, { inputs: [], name: "INVALID_VOTING_PERIOD", type: "error" }, { inputs: [], name: "NOT_INITIALIZING", type: "error" }, { inputs: [], name: "ONLY_CALL", type: "error" }, { inputs: [], name: "ONLY_DELEGATECALL", type: "error" }, { inputs: [], name: "ONLY_MANAGER", type: "error" }, { inputs: [], name: "ONLY_OWNER", type: "error" }, { inputs: [], name: "ONLY_PENDING_OWNER", type: "error" }, { inputs: [], name: "ONLY_PROXY", type: "error" }, { inputs: [], name: "ONLY_UUPS", type: "error" }, { inputs: [], name: "ONLY_VETOER", type: "error" }, { inputs: [], name: "PROPOSAL_ALREADY_EXECUTED", type: "error" }, { inputs: [], name: "PROPOSAL_DOES_NOT_EXIST", type: "error" }, { inputs: [{ internalType: "bytes32", name: "proposalId", type: "bytes32" }], name: "PROPOSAL_EXISTS", type: "error" }, { inputs: [], name: "PROPOSAL_LENGTH_MISMATCH", type: "error" }, { inputs: [{ internalType: "bytes32", name: "proposalId", type: "bytes32" }], name: "PROPOSAL_NOT_QUEUED", type: "error" }, { inputs: [], name: "PROPOSAL_TARGET_MISSING", type: "error" }, { inputs: [], name: "PROPOSAL_UNSUCCESSFUL", type: "error" }, { inputs: [], name: "UNSAFE_CAST", type: "error" }, { inputs: [], name: "UNSUPPORTED_UUID", type: "error" }, { inputs: [], name: "VOTING_NOT_STARTED", type: "error" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "version", type: "uint256" } ], name: "Initialized", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "canceledOwner", type: "address" } ], name: "OwnerCanceled", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address" }, { indexed: true, internalType: "address", name: "pendingOwner", type: "address" } ], name: "OwnerPending", type: "event" }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "prevOwner", type: "address" }, { indexed: true, internalType: "address", name: "newOwner", type: "address" } ], name: "OwnerUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "bytes32", name: "proposalId", type: "bytes32" } ], name: "ProposalCanceled", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "bytes32", name: "proposalId", type: "bytes32" }, { indexed: false, internalType: "address[]", name: "targets", type: "address[]" }, { indexed: false, internalType: "uint256[]", name: "values", type: "uint256[]" }, { indexed: false, internalType: "bytes[]", name: "calldatas", type: "bytes[]" }, { indexed: false, internalType: "string", name: "description", type: "string" }, { indexed: false, internalType: "bytes32", name: "descriptionHash", type: "bytes32" }, { components: [ { internalType: "address", name: "proposer", type: "address" }, { internalType: "uint32", name: "timeCreated", type: "uint32" }, { internalType: "uint32", name: "againstVotes", type: "uint32" }, { internalType: "uint32", name: "forVotes", type: "uint32" }, { internalType: "uint32", name: "abstainVotes", type: "uint32" }, { internalType: "uint32", name: "voteStart", type: "uint32" }, { internalType: "uint32", name: "voteEnd", type: "uint32" }, { internalType: "uint32", name: "proposalThreshold", type: "uint32" }, { internalType: "uint32", name: "quorumVotes", type: "uint32" }, { internalType: "bool", name: "executed", type: "bool" }, { internalType: "bool", name: "canceled", type: "bool" }, { internalType: "bool", name: "vetoed", type: "bool" } ], indexed: false, internalType: "struct GovernorTypesV1.Proposal", name: "proposal", type: "tuple" } ], name: "ProposalCreated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "bytes32", name: "proposalId", type: "bytes32" } ], name: "ProposalExecuted", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "bytes32", name: "proposalId", type: "bytes32" }, { indexed: false, internalType: "uint256", name: "eta", type: "uint256" } ], name: "ProposalQueued", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "prevBps", type: "uint256" }, { indexed: false, internalType: "uint256", name: "newBps", type: "uint256" } ], name: "ProposalThresholdBpsUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "bytes32", name: "proposalId", type: "bytes32" } ], name: "ProposalVetoed", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "prevBps", type: "uint256" }, { indexed: false, internalType: "uint256", name: "newBps", type: "uint256" } ], name: "QuorumVotesBpsUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "impl", type: "address" } ], name: "Upgraded", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "prevVetoer", type: "address" }, { indexed: false, internalType: "address", name: "newVetoer", type: "address" } ], name: "VetoerUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "voter", type: "address" }, { indexed: false, internalType: "bytes32", name: "proposalId", type: "bytes32" }, { indexed: false, internalType: "uint256", name: "support", type: "uint256" }, { indexed: false, internalType: "uint256", name: "weight", type: "uint256" }, { indexed: false, internalType: "string", name: "reason", type: "string" } ], name: "VoteCast", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "prevVotingDelay", type: "uint256" }, { indexed: false, internalType: "uint256", name: "newVotingDelay", type: "uint256" } ], name: "VotingDelayUpdated", type: "event" }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "prevVotingPeriod", type: "uint256" }, { indexed: false, internalType: "uint256", name: "newVotingPeriod", type: "uint256" } ], name: "VotingPeriodUpdated", type: "event" }, { inputs: [], name: "DOMAIN_SEPARATOR", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MAX_PROPOSAL_THRESHOLD_BPS", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MAX_QUORUM_THRESHOLD_BPS", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MAX_VOTING_DELAY", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MAX_VOTING_PERIOD", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MIN_PROPOSAL_THRESHOLD_BPS", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MIN_QUORUM_THRESHOLD_BPS", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MIN_VOTING_DELAY", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "MIN_VOTING_PERIOD", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [], name: "VOTE_TYPEHASH", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "view", type: "function" }, { inputs: [], name: "acceptOwnership", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "burnVetoer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "_proposalId", type: "bytes32" }], name: "cancel", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [], name: "cancelOwnershipTransfer", outputs: [], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "bytes32", name: "_proposalId", type: "bytes32" }, { internalType: "uint256", name: "_support", type: "uint256" } ], name: "castVote", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address", name: "_voter", type: "address" }, { internalType: "bytes32", name: "_proposalId", type: "bytes32" }, { internalType: "uint256", name: "_support", type: "uint256" }, { internalType: "uint256", name: "_deadline", type: "uint256" }, { internalType: "uint8", name: "_v", type: "uint8" }, { internalType: "bytes32", name: "_r", type: "bytes32" }, { internalType: "bytes32", name: "_s", type: "bytes32" } ], name: "castVoteBySig", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "bytes32", name: "_proposalId", type: "bytes32" }, { internalType: "uint256", name: "_support", type: "uint256" }, { internalType: "string", name: "_reason", type: "string" } ], name: "castVoteWithReason", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "nonpayable", type: "function" }, { inputs: [ { internalType: "address[]", name: "_targets", type: "address[]" }, { internalType: "uint256[]", name: "_values", type: "uint256[]" }, { internalType: "bytes[]", name: "_calldatas", type: "bytes[]" }, { internalType: "bytes32", name: "_descriptionHash", type: "bytes32" }, { internalType: "address", name: "_proposer", type: "address" } ], name: "execute", outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }], stateMutability: "payable", type: "function" }, { inputs: [{ internalType: "bytes32", name: "_proposalId", type: "bytes32" }], name: "getProposal", outputs: [ { components: [ { internalType: "address", name: "proposer", type: "address" }, { internalType: "uint32", name: "timeCreated", type: "uint32" }, { internalType: "uint32", name: "againstVotes", type: "uint32" }, { internalType: "uint32", name: "forVotes", type: "uint32" }, { internalType: "uint32", name: "abstainVotes", type: "uint32" }, { internalType: "uint32", name: "voteStart", type: "uint32" }, { internalType: "uint32", name: "voteEnd", type: "uint32" }, { internalType: "uint32", name: "proposalThreshold", type: "uint32" }, { internalType: "uint32", name: "quorumVotes", type: "uint32" }, { internalType: "bool", name: "executed", type: "bool" }, { internalType: "bool", name: "canceled", type: "bool" }, { internalType: "bool", name: "vetoed", type: "bool" } ], internalType: "struct GovernorTypesV1.Proposal", name: "", type: "tuple" } ], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address", name: "_account", type: "address" }, { internalType: "uint256", name: "_timestamp", type: "uint256" } ], name: "getVotes", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function" }, { inputs: [ { internalType: "address[]", name: "_targets", type: "address[]" }, { internalType: "uint256[]", name: "_values", type: "uint256[]" }, { internalType: "bytes[]", name: "_calldatas", type: "bytes[]" }, { internalType: "bytes3