UNPKG

@river-build/generated

Version:

## How to generate contract types

472 lines (464 loc) 15 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; import type { Provider, TransactionRequest } from "@ethersproject/providers"; import type { PromiseOrValue } from "../common"; import type { PlatformRequirementsFacet, PlatformRequirementsFacetInterface, } from "../PlatformRequirementsFacet"; const _abi = [ { type: "function", name: "__PlatformRequirements_init", inputs: [ { name: "feeRecipient", type: "address", internalType: "address", }, { name: "membershipBps", type: "uint16", internalType: "uint16", }, { name: "membershipFee", type: "uint256", internalType: "uint256", }, { name: "membershipMintLimit", type: "uint256", internalType: "uint256", }, { name: "membershipDuration", type: "uint64", internalType: "uint64", }, { name: "membershipMinPrice", type: "uint256", internalType: "uint256", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "getDenominator", inputs: [], outputs: [ { name: "", type: "uint256", internalType: "uint256", }, ], stateMutability: "pure", }, { type: "function", name: "getFeeRecipient", inputs: [], outputs: [ { name: "", type: "address", internalType: "address", }, ], stateMutability: "view", }, { type: "function", name: "getMembershipBps", inputs: [], outputs: [ { name: "", type: "uint16", internalType: "uint16", }, ], stateMutability: "view", }, { type: "function", name: "getMembershipDuration", inputs: [], outputs: [ { name: "", type: "uint64", internalType: "uint64", }, ], stateMutability: "view", }, { type: "function", name: "getMembershipFee", inputs: [], outputs: [ { name: "", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "getMembershipMinPrice", inputs: [], outputs: [ { name: "", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "getMembershipMintLimit", inputs: [], outputs: [ { name: "", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "setFeeRecipient", inputs: [ { name: "recipient", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "setMembershipBps", inputs: [ { name: "bps", type: "uint16", internalType: "uint16", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "setMembershipDuration", inputs: [ { name: "duration", type: "uint64", internalType: "uint64", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "setMembershipFee", inputs: [ { name: "fee", type: "uint256", internalType: "uint256", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "setMembershipMinPrice", inputs: [ { name: "minPrice", type: "uint256", internalType: "uint256", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "setMembershipMintLimit", inputs: [ { name: "limit", type: "uint256", internalType: "uint256", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "event", name: "Initialized", inputs: [ { name: "version", type: "uint32", indexed: false, internalType: "uint32", }, ], anonymous: false, }, { type: "event", name: "InterfaceAdded", inputs: [ { name: "interfaceId", type: "bytes4", indexed: true, internalType: "bytes4", }, ], anonymous: false, }, { type: "event", name: "InterfaceRemoved", inputs: [ { name: "interfaceId", type: "bytes4", indexed: true, internalType: "bytes4", }, ], anonymous: false, }, { type: "event", name: "OwnershipTransferred", inputs: [ { name: "previousOwner", type: "address", indexed: true, internalType: "address", }, { name: "newOwner", type: "address", indexed: true, internalType: "address", }, ], anonymous: false, }, { type: "event", name: "PlatformFeeRecipientSet", inputs: [ { name: "recipient", type: "address", indexed: true, internalType: "address", }, ], anonymous: false, }, { type: "event", name: "PlatformMembershipBpsSet", inputs: [ { name: "bps", type: "uint16", indexed: false, internalType: "uint16", }, ], anonymous: false, }, { type: "event", name: "PlatformMembershipDurationSet", inputs: [ { name: "duration", type: "uint256", indexed: false, internalType: "uint256", }, ], anonymous: false, }, { type: "event", name: "PlatformMembershipFeeSet", inputs: [ { name: "fee", type: "uint256", indexed: false, internalType: "uint256", }, ], anonymous: false, }, { type: "event", name: "PlatformMembershipMinPriceSet", inputs: [ { name: "minPrice", type: "uint256", indexed: false, internalType: "uint256", }, ], anonymous: false, }, { type: "event", name: "PlatformMembershipMintLimitSet", inputs: [ { name: "limit", type: "uint256", indexed: false, internalType: "uint256", }, ], anonymous: false, }, { type: "error", name: "Initializable_InInitializingState", inputs: [], }, { type: "error", name: "Initializable_NotInInitializingState", inputs: [], }, { type: "error", name: "Introspection_AlreadySupported", inputs: [], }, { type: "error", name: "Introspection_NotSupported", inputs: [], }, { type: "error", name: "Ownable__NotOwner", inputs: [ { name: "account", type: "address", internalType: "address", }, ], }, { type: "error", name: "Ownable__ZeroAddress", inputs: [], }, { type: "error", name: "Platform__InvalidFeeRecipient", inputs: [], }, { type: "error", name: "Platform__InvalidMembershipBps", inputs: [], }, { type: "error", name: "Platform__InvalidMembershipDuration", inputs: [], }, { type: "error", name: "Platform__InvalidMembershipMinPrice", inputs: [], }, { type: "error", name: "Platform__InvalidMembershipMintLimit", inputs: [], }, ] as const; const _bytecode = "0x608060405234801561001057600080fd5b5061001961001e565b6100c4565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef520008054640100000000900460ff161561006a576040516366008a2d60e01b815260040160405180910390fd5b805463ffffffff90811610156100c157805463ffffffff191663ffffffff90811782556040519081527fe9c9b456cb2994b80aeef036cf59d26e9617df80f816a6ee5a5b4166e07e2f5c9060200160405180910390a15b50565b610a22806100d36000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c806383f3f0dc1161008c578063ce8221b611610066578063ce8221b6146101e5578063e74b981b146101f8578063edd436de1461020b578063f02579641461021e57600080fd5b806383f3f0dc146101915780639f6542aa146101a4578063c60b2f82146101d257600080fd5b80631b159e2e116100c85780631b159e2e146101275780632cbb9d131461012f5780634ccb20c0146101375780638120f0ba1461015757600080fd5b806304777bca146100ef5780630eac306d14610104578063190eaaba1461011f575b600080fd5b6101026100fd366004610911565b610231565b005b61010c6102c9565b6040519081526020015b60405180910390f35b61271061010c565b61010c6102e6565b61010c610310565b61013f61033a565b6040516001600160a01b039091168152602001610116565b6000805160206109e283398151915254600160a01b900467ffffffffffffffff1660405167ffffffffffffffff9091168152602001610116565b61010261019f366004610970565b61035b565b6000805160206109e283398151915254600160e01b900461ffff1660405161ffff9091168152602001610116565b6101026101e0366004610992565b6103a7565b6101026101f33660046109ab565b6103eb565b6101026102063660046109c6565b61042f565b610102610219366004610992565b610473565b61010261022c366004610992565b6104b7565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef5200054640100000000900460ff1661027b57604051630ef4733760e31b815260040160405180910390fd5b61028b630342227360e01b6104fb565b610294866105d4565b61029d85610652565b6102a6846106de565b6102af8361071f565b6102b882610793565b6102c181610828565b505050505050565b60006102e1600080516020610a028339815191525490565b905090565b60006102e17fb29a817dd0719f30ad87abc8dff26e6354077e5b46bf38f34d5ac48732860d035490565b60006102e17fb29a817dd0719f30ad87abc8dff26e6354077e5b46bf38f34d5ac48732860d015490565b60006102e16000805160206109e2833981519152546001600160a01b031690565b61036361089d565b6001600160a01b0316336001600160a01b03161461039b576040516365f4906560e01b81523360048201526024015b60405180910390fd5b6103a481610793565b50565b6103af61089d565b6001600160a01b0316336001600160a01b0316146103e2576040516365f4906560e01b8152336004820152602401610392565b6103a4816106de565b6103f361089d565b6001600160a01b0316336001600160a01b031614610426576040516365f4906560e01b8152336004820152602401610392565b6103a481610652565b61043761089d565b6001600160a01b0316336001600160a01b03161461046a576040516365f4906560e01b8152336004820152602401610392565b6103a4816105d4565b61047b61089d565b6001600160a01b0316336001600160a01b0316146104ae576040516365f4906560e01b8152336004820152602401610392565b6103a481610828565b6104bf61089d565b6001600160a01b0316336001600160a01b0316146104f2576040516365f4906560e01b8152336004820152602401610392565b6103a48161071f565b6001600160e01b0319811660009081527f81088bbc801e045ea3e7620779ab349988f58afbdfba10dff983df3f33522b00602052604090205460ff16610583576001600160e01b0319811660009081527f81088bbc801e045ea3e7620779ab349988f58afbdfba10dff983df3f33522b0060205260409020805460ff1916600117905561059c565b604051637967f77d60e11b815260040160405180910390fd5b6040516001600160e01b03198216907f78f84e5b1c5c05be2b5ad3800781dd404d6d6c6302bc755c0fe20f58a33a7f2290600090a250565b6001600160a01b0381166105fb576040516383e3352160e01b815260040160405180910390fd5b6000805160206109e283398151915280546001600160a01b0319166001600160a01b0383169081179091556040517f3cc0ae1aeb9c9f264efea06a56cdd51909ff08984601a60572e90b520105f66b90600090a250565b6127108161ffff16111561067957604051630d97252560e21b815260040160405180910390fd5b80600080516020610a02833981519152600201805461ffff60e01b1916600160e01b61ffff9384160217905560405190821681527f3b56f95d00baee21935a9ae0b495b827b894967975bed5ad55f4cde35386492d906020015b60405180910390a150565b80600080516020610a02833981519152556040518181527fd586b88b974ccf090a61851ce0b8c6ba390e3e97db43513cc42b0b6f155a440d906020016106d3565b8060000361073f5760405162951ce360e01b815260040160405180910390fd5b7fb29a817dd0719f30ad87abc8dff26e6354077e5b46bf38f34d5ac48732860d018190556040518181527f333d71c9d6dfea817be074bc8d0cd09737726b9d29a6cfe42f2ff95f82a222b1906020016106d3565b8067ffffffffffffffff166000036107be5760405163e8decb2760e01b815260040160405180910390fd5b80600080516020610a02833981519152600201805467ffffffffffffffff60a01b1916600160a01b67ffffffffffffffff9384160217905560405190821681527f93f329d9b419a1dbbb08ec1d29d6fcc68e2926b743dc2a665f1b70b30eb542de906020016106d3565b8060000361084957604051631898c9a560e11b815260040160405180910390fd5b7fb29a817dd0719f30ad87abc8dff26e6354077e5b46bf38f34d5ac48732860d038190556040518181527f82ea03a29fda4754fc4ebb678ee41f834ad7bfede7d8cd39094ad6de82cd17ad906020016106d3565b7f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae300546001600160a01b031690565b80356001600160a01b03811681146108e257600080fd5b919050565b803561ffff811681146108e257600080fd5b803567ffffffffffffffff811681146108e257600080fd5b60008060008060008060c0878903121561092a57600080fd5b610933876108cb565b9550610941602088016108e7565b9450604087013593506060870135925061095d608088016108f9565b915060a087013590509295509295509295565b60006020828403121561098257600080fd5b61098b826108f9565b9392505050565b6000602082840312156109a457600080fd5b5035919050565b6000602082840312156109bd57600080fd5b61098b826108e7565b6000602082840312156109d857600080fd5b61098b826108cb56feb29a817dd0719f30ad87abc8dff26e6354077e5b46bf38f34d5ac48732860d02b29a817dd0719f30ad87abc8dff26e6354077e5b46bf38f34d5ac48732860d00"; type PlatformRequirementsFacetConstructorParams = | [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; const isSuperArgs = ( xs: PlatformRequirementsFacetConstructorParams ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1; export class PlatformRequirementsFacet__factory extends ContractFactory { constructor(...args: PlatformRequirementsFacetConstructorParams) { if (isSuperArgs(args)) { super(...args); } else { super(_abi, _bytecode, args[0]); } } override deploy( overrides?: Overrides & { from?: PromiseOrValue<string> } ): Promise<PlatformRequirementsFacet> { return super.deploy(overrides || {}) as Promise<PlatformRequirementsFacet>; } override getDeployTransaction( overrides?: Overrides & { from?: PromiseOrValue<string> } ): TransactionRequest { return super.getDeployTransaction(overrides || {}); } override attach(address: string): PlatformRequirementsFacet { return super.attach(address) as PlatformRequirementsFacet; } override connect(signer: Signer): PlatformRequirementsFacet__factory { return super.connect(signer) as PlatformRequirementsFacet__factory; } static readonly bytecode = _bytecode; static readonly abi = _abi; static createInterface(): PlatformRequirementsFacetInterface { return new utils.Interface(_abi) as PlatformRequirementsFacetInterface; } static connect( address: string, signerOrProvider: Signer | Provider ): PlatformRequirementsFacet { return new Contract( address, _abi, signerOrProvider ) as PlatformRequirementsFacet; } }