From 3a702dd6529b47c9a20b5486f9c0dd14d7939fa6 Mon Sep 17 00:00:00 2001 From: Davide Silva Date: Thu, 2 May 2024 15:42:56 +0100 Subject: [PATCH] new deploy --- packages/contracts/script/Deploy.s.sol | 10 +- packages/contracts/wagmi.config.ts | 6 +- packages/web-app/wagmi.generated.ts | 4598 +++++++++++++----------- 3 files changed, 2600 insertions(+), 2014 deletions(-) diff --git a/packages/contracts/script/Deploy.s.sol b/packages/contracts/script/Deploy.s.sol index 4d838be5..5dd89f92 100644 --- a/packages/contracts/script/Deploy.s.sol +++ b/packages/contracts/script/Deploy.s.sol @@ -10,8 +10,8 @@ contract DeployScript is Script { uint256 startRegistration = 1714953600; uint256 endRegistration = 1715212800; - uint256 start = 1715299200; - uint256 end = 1715385599; + uint256 start = 1714660299; + uint256 end = 1715342400; address USDC = 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238; @@ -20,14 +20,14 @@ contract DeployScript is Script { 5 ether, start, end, + 2500000 ether, + 500000 ether, 1000000 ether, - 1000000 ether, - 2000000 ether, startRegistration, endRegistration ); - sale.setMinContribution(200 ether); + sale.setMinContribution(1 ether); vm.stopBroadcast(); } diff --git a/packages/contracts/wagmi.config.ts b/packages/contracts/wagmi.config.ts index cdab82cc..b39ade57 100644 --- a/packages/contracts/wagmi.config.ts +++ b/packages/contracts/wagmi.config.ts @@ -10,15 +10,15 @@ export default defineConfig({ contracts: [ { name: "CtzndSale", - address: "0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C", + address: "0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1", }, ], }), foundry({ project: "./", - exclude: ["MockERC20.sol"], + exclude: ["MockERC20.sol", "Sale.d.sol"], deployments: { - Project: { + Sale: { 31337: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0", }, }, diff --git a/packages/web-app/wagmi.generated.ts b/packages/web-app/wagmi.generated.ts index 85417538..8e3848af 100644 --- a/packages/web-app/wagmi.generated.ts +++ b/packages/web-app/wagmi.generated.ts @@ -1513,7 +1513,7 @@ export const controllerAbi = [ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const ctzndSaleAbi = [ { @@ -1528,7 +1528,6 @@ export const ctzndSaleAbi = [ { name: '_maxTarget', internalType: 'uint256', type: 'uint256' }, { name: '_startRegistration', internalType: 'uint256', type: 'uint256' }, { name: '_endRegistration', internalType: 'uint256', type: 'uint256' }, - { name: '_merkleRoot', internalType: 'bytes32', type: 'bytes32' }, ], stateMutability: 'nonpayable', }, @@ -1553,6 +1552,7 @@ export const ctzndSaleAbi = [ }, { type: 'error', inputs: [], name: 'FailedInnerCall' }, { type: 'error', inputs: [], name: 'InvalidLeaf' }, + { type: 'error', inputs: [], name: 'MaxTargetReached' }, { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, { type: 'error', @@ -1947,6 +1947,13 @@ export const ctzndSaleAbi = [ outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, + { + type: 'function', + inputs: [{ name: '_end', internalType: 'uint256', type: 'uint256' }], + name: 'setEnd', + outputs: [], + stateMutability: 'nonpayable', + }, { type: 'function', inputs: [{ name: '_cap', internalType: 'uint256', type: 'uint256' }], @@ -1956,10 +1963,8 @@ export const ctzndSaleAbi = [ }, { type: 'function', - inputs: [ - { name: '_maxContribution', internalType: 'uint256', type: 'uint256' }, - ], - name: 'setMaxContribution', + inputs: [{ name: '_maxTarget', internalType: 'uint256', type: 'uint256' }], + name: 'setMaxTarget', outputs: [], stateMutability: 'nonpayable', }, @@ -1979,6 +1984,20 @@ export const ctzndSaleAbi = [ outputs: [], stateMutability: 'nonpayable', }, + { + type: 'function', + inputs: [{ name: '_minTarget', internalType: 'uint256', type: 'uint256' }], + name: 'setMinTarget', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: '_start', internalType: 'uint256', type: 'uint256' }], + name: 'setStart', + outputs: [], + stateMutability: 'nonpayable', + }, { type: 'function', inputs: [{ name: '_token', internalType: 'address', type: 'address' }], @@ -2061,14 +2080,14 @@ export const ctzndSaleAbi = [ ] as const /** - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const ctzndSaleAddress = { - 11155111: '0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C', + 11155111: '0xF2EAcaa2b8374d648b2F1bab51C0e0aDD18Ec0D1', } as const /** - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const ctzndSaleConfig = { address: ctzndSaleAddress, @@ -5135,9 +5154,6 @@ export const poolAbi = [ // Project ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -/** - * - */ export const projectAbi = [ { type: 'constructor', @@ -5291,21 +5307,6 @@ export const projectAbi = [ { type: 'error', inputs: [], name: 'InvalidLeaf' }, ] as const -/** - * - */ -export const projectAddress = { - 31337: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0', -} as const - -/** - * - */ -export const projectConfig = { - address: projectAddress, - abi: projectAbi, -} as const - ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ProjectHelpers ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -5321,413 +5322,181 @@ export const projectHelpersAbi = [ ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// ProjectVoting +// ProjectTest ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -export const projectVotingAbi = [ - { - type: 'function', - inputs: [{ name: '', internalType: 'address', type: 'address' }], - name: 'projectToVotesIndex', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: '', internalType: 'address', type: 'address' }], - name: 'projectVoteCount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'projectVoting_finalBonus', - outputs: [{ name: '', internalType: 'int256', type: 'int256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'projectVoting_initialBonus', - outputs: [{ name: '', internalType: 'int256', type: 'int256' }], - stateMutability: 'view', - }, +export const projectTestAbi = [ { type: 'function', inputs: [], - name: 'projectVoting_projects', - outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], + name: 'IS_TEST', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'projectVoting_singleSlotDuration', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'excludeArtifacts', + outputs: [ + { + name: 'excludedArtifacts_', + internalType: 'string[]', + type: 'string[]', + }, + ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'projectVoting_voteLimitPerUser', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'excludeContracts', + outputs: [ + { + name: 'excludedContracts_', + internalType: 'address[]', + type: 'address[]', + }, + ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'projectVoting_votingPeriod', + name: 'excludeSenders', outputs: [ { - name: '', - internalType: 'struct ICommon.Period', - type: 'tuple', - components: [ - { name: 'start', internalType: 'uint256', type: 'uint256' }, - { name: 'end', internalType: 'uint256', type: 'uint256' }, - ], + name: 'excludedSenders_', + internalType: 'address[]', + type: 'address[]', }, ], stateMutability: 'view', }, { type: 'function', - inputs: [ - { name: '', internalType: 'address', type: 'address' }, - { name: '', internalType: 'address', type: 'address' }, - ], - name: 'userHasVotedForProject', + inputs: [], + name: 'failed', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: '', internalType: 'address', type: 'address' }], - name: 'userVoteCount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - name: 'votes', - outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - name: 'votesIndexToProject', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', + stateMutability: 'nonpayable', }, { type: 'function', - inputs: [{ name: '', internalType: 'address', type: 'address' }], - name: 'weightedProjectVoteCount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + inputs: [ + { name: '', internalType: 'address', type: 'address' }, + { name: '', internalType: 'uint256', type: 'uint256' }, + ], + name: 'proofs', + outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], stateMutability: 'view', }, -] as const - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// ReentrancyGuard -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -export const reentrancyGuardAbi = [ - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, -] as const - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// RisingTide -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -export const risingTideAbi = [ { type: 'function', inputs: [], - name: 'CAP_VALIDATION_GAS_LIMIT', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: 'setUp', + outputs: [], + stateMutability: 'nonpayable', }, { type: 'function', inputs: [], - name: 'individualCap', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'n', internalType: 'uint256', type: 'uint256' }], - name: 'investorAmountAt', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'targetArtifactSelectors', + outputs: [ + { + name: 'targetedArtifactSelectors_', + internalType: 'struct StdInvariant.FuzzSelector[]', + type: 'tuple[]', + components: [ + { name: 'addr', internalType: 'address', type: 'address' }, + { name: 'selectors', internalType: 'bytes4[]', type: 'bytes4[]' }, + ], + }, + ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'investorCount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'targetArtifacts', + outputs: [ + { + name: 'targetedArtifacts_', + internalType: 'string[]', + type: 'string[]', + }, + ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'risingTideCache', + name: 'targetContracts', outputs: [ - { name: 'index', internalType: 'uint256', type: 'uint256' }, - { name: 'sumForCap', internalType: 'uint256', type: 'uint256' }, - { name: 'sumForNextCap', internalType: 'uint256', type: 'uint256' }, - { name: 'largest', internalType: 'uint256', type: 'uint256' }, + { + name: 'targetedContracts_', + internalType: 'address[]', + type: 'address[]', + }, ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'risingTideState', + name: 'targetInterfaces', outputs: [ { - name: '', - internalType: 'enum RisingTide.RisingTideState', - type: 'uint8', + name: 'targetedInterfaces_', + internalType: 'struct StdInvariant.FuzzInterface[]', + type: 'tuple[]', + components: [ + { name: 'addr', internalType: 'address', type: 'address' }, + { name: 'artifacts', internalType: 'string[]', type: 'string[]' }, + ], }, ], stateMutability: 'view', }, - { - type: 'function', - inputs: [{ name: '_amount', internalType: 'uint256', type: 'uint256' }], - name: 'risingTide_applyCap', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, { type: 'function', inputs: [], - name: 'risingTide_isValidCap', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + name: 'targetSelectors', + outputs: [ + { + name: 'targetedSelectors_', + internalType: 'struct StdInvariant.FuzzSelector[]', + type: 'tuple[]', + components: [ + { name: 'addr', internalType: 'address', type: 'address' }, + { name: 'selectors', internalType: 'bytes4[]', type: 'bytes4[]' }, + ], + }, + ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'risingTide_totalAllocatedUncapped', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'targetSenders', + outputs: [ + { + name: 'targetedSenders_', + internalType: 'address[]', + type: 'address[]', + }, + ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'risingTide_totalCap', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: 'testInvest', + outputs: [], + stateMutability: 'nonpayable', }, { type: 'function', inputs: [], - name: 'risingTide_validate', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'risingTide_validating', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', - }, -] as const - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// RisingTideTest -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -export const risingTideTestAbi = [ - { - type: 'function', - inputs: [], - name: 'IS_TEST', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'excludeArtifacts', - outputs: [ - { - name: 'excludedArtifacts_', - internalType: 'string[]', - type: 'string[]', - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'excludeContracts', - outputs: [ - { - name: 'excludedContracts_', - internalType: 'address[]', - type: 'address[]', - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'excludeSenders', - outputs: [ - { - name: 'excludedSenders_', - internalType: 'address[]', - type: 'address[]', - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'failed', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'setUp', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'targetArtifactSelectors', - outputs: [ - { - name: 'targetedArtifactSelectors_', - internalType: 'struct StdInvariant.FuzzSelector[]', - type: 'tuple[]', - components: [ - { name: 'addr', internalType: 'address', type: 'address' }, - { name: 'selectors', internalType: 'bytes4[]', type: 'bytes4[]' }, - ], - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'targetArtifacts', - outputs: [ - { - name: 'targetedArtifacts_', - internalType: 'string[]', - type: 'string[]', - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'targetContracts', - outputs: [ - { - name: 'targetedContracts_', - internalType: 'address[]', - type: 'address[]', - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'targetInterfaces', - outputs: [ - { - name: 'targetedInterfaces_', - internalType: 'struct StdInvariant.FuzzInterface[]', - type: 'tuple[]', - components: [ - { name: 'addr', internalType: 'address', type: 'address' }, - { name: 'artifacts', internalType: 'string[]', type: 'string[]' }, - ], - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'targetSelectors', - outputs: [ - { - name: 'targetedSelectors_', - internalType: 'struct StdInvariant.FuzzSelector[]', - type: 'tuple[]', - components: [ - { name: 'addr', internalType: 'address', type: 'address' }, - { name: 'selectors', internalType: 'bytes4[]', type: 'bytes4[]' }, - ], - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'targetSenders', - outputs: [ - { - name: 'targetedSenders_', - internalType: 'address[]', - type: 'address[]', - }, - ], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'testGitbookExampleCorrectly', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'testGitbookExampleFailsWithLargerCap', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'testGitbookExampleFailsWithSmallerCap', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'testSmallExampleCorrectly', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'testSmallExampleFails', + name: 'testInvestShouldRevertWithInvalidProof', outputs: [], stateMutability: 'nonpayable', }, @@ -5963,246 +5732,157 @@ export const risingTideTestAbi = [ ] as const ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// SafeERC20 +// ProjectVoting ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -export const safeErc20Abi = [ - { - type: 'error', - inputs: [ - { name: 'spender', internalType: 'address', type: 'address' }, - { name: 'currentAllowance', internalType: 'uint256', type: 'uint256' }, - { name: 'requestedDecrease', internalType: 'uint256', type: 'uint256' }, - ], - name: 'SafeERC20FailedDecreaseAllowance', - }, +export const projectVotingAbi = [ { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + type: 'function', + inputs: [{ name: '', internalType: 'address', type: 'address' }], + name: 'projectToVotesIndex', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, -] as const - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// Sale -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -export const saleAbi = [ { - type: 'constructor', - inputs: [ - { name: '_paymentToken', internalType: 'address', type: 'address' }, - { name: '_rate', internalType: 'uint256', type: 'uint256' }, - { name: '_start', internalType: 'uint256', type: 'uint256' }, - { name: '_end', internalType: 'uint256', type: 'uint256' }, - { name: '_totalTokensForSale', internalType: 'uint256', type: 'uint256' }, - { name: '_minTarget', internalType: 'uint256', type: 'uint256' }, - { name: '_maxTarget', internalType: 'uint256', type: 'uint256' }, - { name: '_startRegistration', internalType: 'uint256', type: 'uint256' }, - { name: '_endRegistration', internalType: 'uint256', type: 'uint256' }, - { name: '_merkleRoot', internalType: 'bytes32', type: 'bytes32' }, - ], - stateMutability: 'nonpayable', + type: 'function', + inputs: [{ name: '', internalType: 'address', type: 'address' }], + name: 'projectVoteCount', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'CAP_VALIDATION_GAS_LIMIT', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'projectVoting_finalBonus', + outputs: [{ name: '', internalType: 'int256', type: 'int256' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'CAP_VALIDATOR_ROLE', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], + name: 'projectVoting_initialBonus', + outputs: [{ name: '', internalType: 'int256', type: 'int256' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'DEFAULT_ADMIN_ROLE', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], + name: 'projectVoting_projects', + outputs: [{ name: '', internalType: 'address[]', type: 'address[]' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'allocated', + name: 'projectVoting_singleSlotDuration', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, - { - type: 'function', - inputs: [{ name: '_to', internalType: 'address', type: 'address' }], - name: 'allocation', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: '_amount', internalType: 'uint256', type: 'uint256' }, - { name: '_merkleProof', internalType: 'bytes32[]', type: 'bytes32[]' }, - ], - name: 'buy', - outputs: [], - stateMutability: 'nonpayable', - }, { type: 'function', inputs: [], - name: 'end', + name: 'projectVoting_voteLimitPerUser', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'endRegistration', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'role', internalType: 'bytes32', type: 'bytes32' }], - name: 'getRoleAdmin', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32' }, - { name: 'account', internalType: 'address', type: 'address' }, + name: 'projectVoting_votingPeriod', + outputs: [ + { + name: '', + internalType: 'struct ICommon.Period', + type: 'tuple', + components: [ + { name: 'start', internalType: 'uint256', type: 'uint256' }, + { name: 'end', internalType: 'uint256', type: 'uint256' }, + ], + }, ], - name: 'grantRole', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'view', }, { type: 'function', inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32' }, - { name: 'account', internalType: 'address', type: 'address' }, + { name: '', internalType: 'address', type: 'address' }, + { name: '', internalType: 'address', type: 'address' }, ], - name: 'hasRole', + name: 'userHasVotedForProject', outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, { type: 'function', - inputs: [], - name: 'individualCap', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'i', internalType: 'uint256', type: 'uint256' }], - name: 'investorAmountAt', + inputs: [{ name: '', internalType: 'address', type: 'address' }], + name: 'userVoteCount', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', - inputs: [], - name: 'investorCount', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'votes', + outputs: [{ name: '', internalType: 'uint32', type: 'uint32' }], stateMutability: 'view', }, { type: 'function', - inputs: [], - name: 'maxContribution', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'votesIndexToProject', + outputs: [{ name: '', internalType: 'address', type: 'address' }], stateMutability: 'view', }, { type: 'function', - inputs: [], - name: 'maxTarget', + inputs: [{ name: '', internalType: 'address', type: 'address' }], + name: 'weightedProjectVoteCount', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, +] as const + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// ReentrancyGuard +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +export const reentrancyGuardAbi = [ + { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, +] as const + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// RisingTide +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +export const risingTideAbi = [ { type: 'function', inputs: [], - name: 'merkleRoot', - outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'minContribution', + name: 'CAP_VALIDATION_GAS_LIMIT', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'minTarget', + name: 'individualCap', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', - inputs: [], - name: 'paymentToken', - outputs: [{ name: '', internalType: 'address', type: 'address' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [ - { name: '_paymentAmount', internalType: 'uint256', type: 'uint256' }, - ], - name: 'paymentTokenToToken', + inputs: [{ name: 'n', internalType: 'uint256', type: 'uint256' }], + name: 'investorAmountAt', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'rate', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [{ name: 'to', internalType: 'address', type: 'address' }], - name: 'refund', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [{ name: 'to', internalType: 'address', type: 'address' }], - name: 'refundAmount', + name: 'investorCount', outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, - { - type: 'function', - inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32' }, - { name: 'callerConfirmation', internalType: 'address', type: 'address' }, - ], - name: 'renounceRole', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32' }, - { name: 'account', internalType: 'address', type: 'address' }, - ], - name: 'revokeRole', - outputs: [], - stateMutability: 'nonpayable', - }, { type: 'function', inputs: [], @@ -6270,314 +5950,1078 @@ export const saleAbi = [ outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'view', }, +] as const + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// RisingTideTest +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +export const risingTideTestAbi = [ { type: 'function', - inputs: [{ name: '_cap', internalType: 'uint256', type: 'uint256' }], - name: 'setIndividualCap', - outputs: [], - stateMutability: 'nonpayable', + inputs: [], + name: 'IS_TEST', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', }, { type: 'function', - inputs: [ - { name: '_maxContribution', internalType: 'uint256', type: 'uint256' }, + inputs: [], + name: 'excludeArtifacts', + outputs: [ + { + name: 'excludedArtifacts_', + internalType: 'string[]', + type: 'string[]', + }, ], - name: 'setMaxContribution', - outputs: [], - stateMutability: 'nonpayable', + stateMutability: 'view', }, { type: 'function', - inputs: [{ name: '_merkleRoot', internalType: 'bytes32', type: 'bytes32' }], - name: 'setMerkleRoot', - outputs: [], - stateMutability: 'nonpayable', + inputs: [], + name: 'excludeContracts', + outputs: [ + { + name: 'excludedContracts_', + internalType: 'address[]', + type: 'address[]', + }, + ], + stateMutability: 'view', }, { type: 'function', - inputs: [ - { name: '_minContribution', internalType: 'uint256', type: 'uint256' }, + inputs: [], + name: 'excludeSenders', + outputs: [ + { + name: 'excludedSenders_', + internalType: 'address[]', + type: 'address[]', + }, ], - name: 'setMinContribution', - outputs: [], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'failed', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], stateMutability: 'nonpayable', }, { type: 'function', - inputs: [{ name: '_token', internalType: 'address', type: 'address' }], - name: 'setToken', + inputs: [], + name: 'setUp', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], - name: 'start', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'targetArtifactSelectors', + outputs: [ + { + name: 'targetedArtifactSelectors_', + internalType: 'struct StdInvariant.FuzzSelector[]', + type: 'tuple[]', + components: [ + { name: 'addr', internalType: 'address', type: 'address' }, + { name: 'selectors', internalType: 'bytes4[]', type: 'bytes4[]' }, + ], + }, + ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'startRegistration', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'targetArtifacts', + outputs: [ + { + name: 'targetedArtifacts_', + internalType: 'string[]', + type: 'string[]', + }, + ], stateMutability: 'view', }, { type: 'function', - inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], - name: 'supportsInterface', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + inputs: [], + name: 'targetContracts', + outputs: [ + { + name: 'targetedContracts_', + internalType: 'address[]', + type: 'address[]', + }, + ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'token', - outputs: [{ name: '', internalType: 'address', type: 'address' }], + name: 'targetInterfaces', + outputs: [ + { + name: 'targetedInterfaces_', + internalType: 'struct StdInvariant.FuzzInterface[]', + type: 'tuple[]', + components: [ + { name: 'addr', internalType: 'address', type: 'address' }, + { name: 'artifacts', internalType: 'string[]', type: 'string[]' }, + ], + }, + ], stateMutability: 'view', }, { type: 'function', - inputs: [ - { name: '_tokenAmount', internalType: 'uint256', type: 'uint256' }, + inputs: [], + name: 'targetSelectors', + outputs: [ + { + name: 'targetedSelectors_', + internalType: 'struct StdInvariant.FuzzSelector[]', + type: 'tuple[]', + components: [ + { name: 'addr', internalType: 'address', type: 'address' }, + { name: 'selectors', internalType: 'bytes4[]', type: 'bytes4[]' }, + ], + }, ], - name: 'tokenToPaymentToken', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'totalTokensForSale', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + name: 'targetSenders', + outputs: [ + { + name: 'targetedSenders_', + internalType: 'address[]', + type: 'address[]', + }, + ], stateMutability: 'view', }, { type: 'function', inputs: [], - name: 'totalUncappedAllocations', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + name: 'testGitbookExampleCorrectly', + outputs: [], + stateMutability: 'nonpayable', }, { type: 'function', - inputs: [{ name: '_to', internalType: 'address', type: 'address' }], - name: 'uncappedAllocation', - outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], - stateMutability: 'view', + inputs: [], + name: 'testGitbookExampleFailsWithLargerCap', + outputs: [], + stateMutability: 'nonpayable', }, { type: 'function', inputs: [], - name: 'withdraw', + name: 'testGitbookExampleFailsWithSmallerCap', outputs: [], stateMutability: 'nonpayable', }, { type: 'function', inputs: [], - name: 'withdrawn', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + name: 'testSmallExampleCorrectly', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [], + name: 'testSmallExampleFails', + outputs: [], + stateMutability: 'nonpayable', }, { type: 'event', anonymous: false, inputs: [ - { name: 'to', internalType: 'address', type: 'address', indexed: true }, - { - name: 'tokenAmount', - internalType: 'uint256', - type: 'uint256', - indexed: false, - }, + { name: '', internalType: 'string', type: 'string', indexed: false }, ], - name: 'Claim', + name: 'log', }, { type: 'event', anonymous: false, inputs: [ - { name: 'from', internalType: 'address', type: 'address', indexed: true }, - { - name: 'paymentTokenAmount', - internalType: 'uint256', - type: 'uint256', - indexed: false, - }, - { - name: 'tokenAmount', - internalType: 'uint256', - type: 'uint256', - indexed: false, - }, + { name: '', internalType: 'address', type: 'address', indexed: false }, ], - name: 'Purchase', + name: 'log_address', }, { type: 'event', anonymous: false, inputs: [ - { name: 'to', internalType: 'address', type: 'address', indexed: true }, { - name: 'paymentTokenAmount', - internalType: 'uint256', - type: 'uint256', + name: 'val', + internalType: 'uint256[]', + type: 'uint256[]', indexed: false, }, ], - name: 'Refund', + name: 'log_array', }, { type: 'event', anonymous: false, inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true }, - { - name: 'previousAdminRole', - internalType: 'bytes32', - type: 'bytes32', - indexed: true, - }, { - name: 'newAdminRole', - internalType: 'bytes32', - type: 'bytes32', - indexed: true, + name: 'val', + internalType: 'int256[]', + type: 'int256[]', + indexed: false, }, ], - name: 'RoleAdminChanged', + name: 'log_array', }, { type: 'event', anonymous: false, inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true }, - { - name: 'account', - internalType: 'address', - type: 'address', - indexed: true, - }, { - name: 'sender', - internalType: 'address', - type: 'address', - indexed: true, + name: 'val', + internalType: 'address[]', + type: 'address[]', + indexed: false, }, ], - name: 'RoleGranted', + name: 'log_array', }, { type: 'event', anonymous: false, inputs: [ - { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true }, - { - name: 'account', - internalType: 'address', - type: 'address', - indexed: true, - }, - { - name: 'sender', - internalType: 'address', - type: 'address', - indexed: true, - }, + { name: '', internalType: 'bytes', type: 'bytes', indexed: false }, ], - name: 'RoleRevoked', + name: 'log_bytes', }, { type: 'event', anonymous: false, inputs: [ - { name: 'to', internalType: 'address', type: 'address', indexed: true }, - { - name: 'paymentTokenAmount', - internalType: 'uint256', - type: 'uint256', - indexed: false, - }, + { name: '', internalType: 'bytes32', type: 'bytes32', indexed: false }, ], - name: 'Withdraw', + name: 'log_bytes32', }, - { type: 'error', inputs: [], name: 'AccessControlBadConfirmation' }, { - type: 'error', + type: 'event', + anonymous: false, inputs: [ - { name: 'account', internalType: 'address', type: 'address' }, - { name: 'neededRole', internalType: 'bytes32', type: 'bytes32' }, + { name: '', internalType: 'int256', type: 'int256', indexed: false }, ], - name: 'AccessControlUnauthorizedAccount', - }, - { - type: 'error', - inputs: [{ name: 'target', internalType: 'address', type: 'address' }], - name: 'AddressEmptyCode', - }, - { - type: 'error', - inputs: [{ name: 'account', internalType: 'address', type: 'address' }], - name: 'AddressInsufficientBalance', - }, - { type: 'error', inputs: [], name: 'FailedInnerCall' }, - { type: 'error', inputs: [], name: 'InvalidLeaf' }, - { type: 'error', inputs: [], name: 'MaxTargetReached' }, - { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, - { - type: 'error', - inputs: [{ name: 'token', internalType: 'address', type: 'address' }], - name: 'SafeERC20FailedOperation', + name: 'log_int', }, -] as const - -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// SaleTest -////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -export const saleTestAbi = [ { - type: 'function', - inputs: [], - name: 'IS_TEST', - outputs: [{ name: '', internalType: 'bool', type: 'bool' }], - stateMutability: 'view', + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, + { name: 'val', internalType: 'address', type: 'address', indexed: false }, + ], + name: 'log_named_address', }, { - type: 'function', - inputs: [], - name: 'excludeArtifacts', - outputs: [ + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, { - name: 'excludedArtifacts_', - internalType: 'string[]', - type: 'string[]', + name: 'val', + internalType: 'uint256[]', + type: 'uint256[]', + indexed: false, }, ], - stateMutability: 'view', + name: 'log_named_array', }, { - type: 'function', - inputs: [], - name: 'excludeContracts', - outputs: [ + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, { - name: 'excludedContracts_', - internalType: 'address[]', - type: 'address[]', + name: 'val', + internalType: 'int256[]', + type: 'int256[]', + indexed: false, }, ], - stateMutability: 'view', + name: 'log_named_array', }, { - type: 'function', - inputs: [], - name: 'excludeSenders', - outputs: [ + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, { - name: 'excludedSenders_', + name: 'val', + internalType: 'address[]', + type: 'address[]', + indexed: false, + }, + ], + name: 'log_named_array', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, + { name: 'val', internalType: 'bytes', type: 'bytes', indexed: false }, + ], + name: 'log_named_bytes', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, + { name: 'val', internalType: 'bytes32', type: 'bytes32', indexed: false }, + ], + name: 'log_named_bytes32', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, + { name: 'val', internalType: 'int256', type: 'int256', indexed: false }, + { + name: 'decimals', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + ], + name: 'log_named_decimal_int', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, + { name: 'val', internalType: 'uint256', type: 'uint256', indexed: false }, + { + name: 'decimals', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + ], + name: 'log_named_decimal_uint', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, + { name: 'val', internalType: 'int256', type: 'int256', indexed: false }, + ], + name: 'log_named_int', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, + { name: 'val', internalType: 'string', type: 'string', indexed: false }, + ], + name: 'log_named_string', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'key', internalType: 'string', type: 'string', indexed: false }, + { name: 'val', internalType: 'uint256', type: 'uint256', indexed: false }, + ], + name: 'log_named_uint', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: '', internalType: 'string', type: 'string', indexed: false }, + ], + name: 'log_string', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: '', internalType: 'uint256', type: 'uint256', indexed: false }, + ], + name: 'log_uint', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: '', internalType: 'bytes', type: 'bytes', indexed: false }, + ], + name: 'logs', + }, +] as const + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// SafeERC20 +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +export const safeErc20Abi = [ + { + type: 'error', + inputs: [ + { name: 'spender', internalType: 'address', type: 'address' }, + { name: 'currentAllowance', internalType: 'uint256', type: 'uint256' }, + { name: 'requestedDecrease', internalType: 'uint256', type: 'uint256' }, + ], + name: 'SafeERC20FailedDecreaseAllowance', + }, + { + type: 'error', + inputs: [{ name: 'token', internalType: 'address', type: 'address' }], + name: 'SafeERC20FailedOperation', + }, +] as const + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// Sale +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +/** + * + */ +export const saleAbi = [ + { + type: 'constructor', + inputs: [ + { name: '_paymentToken', internalType: 'address', type: 'address' }, + { name: '_rate', internalType: 'uint256', type: 'uint256' }, + { name: '_start', internalType: 'uint256', type: 'uint256' }, + { name: '_end', internalType: 'uint256', type: 'uint256' }, + { name: '_totalTokensForSale', internalType: 'uint256', type: 'uint256' }, + { name: '_minTarget', internalType: 'uint256', type: 'uint256' }, + { name: '_maxTarget', internalType: 'uint256', type: 'uint256' }, + { name: '_startRegistration', internalType: 'uint256', type: 'uint256' }, + { name: '_endRegistration', internalType: 'uint256', type: 'uint256' }, + ], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [], + name: 'CAP_VALIDATION_GAS_LIMIT', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'CAP_VALIDATOR_ROLE', + outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'DEFAULT_ADMIN_ROLE', + outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'allocated', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: '_to', internalType: 'address', type: 'address' }], + name: 'allocation', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: '_amount', internalType: 'uint256', type: 'uint256' }, + { name: '_merkleProof', internalType: 'bytes32[]', type: 'bytes32[]' }, + ], + name: 'buy', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [], + name: 'end', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'endRegistration', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'role', internalType: 'bytes32', type: 'bytes32' }], + name: 'getRoleAdmin', + outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: 'role', internalType: 'bytes32', type: 'bytes32' }, + { name: 'account', internalType: 'address', type: 'address' }, + ], + name: 'grantRole', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [ + { name: 'role', internalType: 'bytes32', type: 'bytes32' }, + { name: 'account', internalType: 'address', type: 'address' }, + ], + name: 'hasRole', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'individualCap', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'i', internalType: 'uint256', type: 'uint256' }], + name: 'investorAmountAt', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'investorCount', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'maxContribution', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'maxTarget', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'merkleRoot', + outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'minContribution', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'minTarget', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'paymentToken', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: '_paymentAmount', internalType: 'uint256', type: 'uint256' }, + ], + name: 'paymentTokenToToken', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'rate', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'to', internalType: 'address', type: 'address' }], + name: 'refund', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: 'to', internalType: 'address', type: 'address' }], + name: 'refundAmount', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: 'role', internalType: 'bytes32', type: 'bytes32' }, + { name: 'callerConfirmation', internalType: 'address', type: 'address' }, + ], + name: 'renounceRole', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [ + { name: 'role', internalType: 'bytes32', type: 'bytes32' }, + { name: 'account', internalType: 'address', type: 'address' }, + ], + name: 'revokeRole', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [], + name: 'risingTideCache', + outputs: [ + { name: 'index', internalType: 'uint256', type: 'uint256' }, + { name: 'sumForCap', internalType: 'uint256', type: 'uint256' }, + { name: 'sumForNextCap', internalType: 'uint256', type: 'uint256' }, + { name: 'largest', internalType: 'uint256', type: 'uint256' }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'risingTideState', + outputs: [ + { + name: '', + internalType: 'enum RisingTide.RisingTideState', + type: 'uint8', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: '_amount', internalType: 'uint256', type: 'uint256' }], + name: 'risingTide_applyCap', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'risingTide_isValidCap', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'risingTide_totalAllocatedUncapped', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'risingTide_totalCap', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'risingTide_validate', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [], + name: 'risingTide_validating', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: '_end', internalType: 'uint256', type: 'uint256' }], + name: 'setEnd', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: '_cap', internalType: 'uint256', type: 'uint256' }], + name: 'setIndividualCap', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: '_maxTarget', internalType: 'uint256', type: 'uint256' }], + name: 'setMaxTarget', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: '_merkleRoot', internalType: 'bytes32', type: 'bytes32' }], + name: 'setMerkleRoot', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [ + { name: '_minContribution', internalType: 'uint256', type: 'uint256' }, + ], + name: 'setMinContribution', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: '_minTarget', internalType: 'uint256', type: 'uint256' }], + name: 'setMinTarget', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: '_start', internalType: 'uint256', type: 'uint256' }], + name: 'setStart', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [{ name: '_token', internalType: 'address', type: 'address' }], + name: 'setToken', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [], + name: 'start', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'startRegistration', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }], + name: 'supportsInterface', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'token', + outputs: [{ name: '', internalType: 'address', type: 'address' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [ + { name: '_tokenAmount', internalType: 'uint256', type: 'uint256' }, + ], + name: 'tokenToPaymentToken', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'totalTokensForSale', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'totalUncappedAllocations', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [{ name: '_to', internalType: 'address', type: 'address' }], + name: 'uncappedAllocation', + outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'withdraw', + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + inputs: [], + name: 'withdrawn', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { + name: 'tokenAmount', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + ], + name: 'Claim', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'from', internalType: 'address', type: 'address', indexed: true }, + { + name: 'paymentTokenAmount', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + { + name: 'tokenAmount', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + ], + name: 'Purchase', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { + name: 'paymentTokenAmount', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + ], + name: 'Refund', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true }, + { + name: 'previousAdminRole', + internalType: 'bytes32', + type: 'bytes32', + indexed: true, + }, + { + name: 'newAdminRole', + internalType: 'bytes32', + type: 'bytes32', + indexed: true, + }, + ], + name: 'RoleAdminChanged', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true }, + { + name: 'account', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'sender', + internalType: 'address', + type: 'address', + indexed: true, + }, + ], + name: 'RoleGranted', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true }, + { + name: 'account', + internalType: 'address', + type: 'address', + indexed: true, + }, + { + name: 'sender', + internalType: 'address', + type: 'address', + indexed: true, + }, + ], + name: 'RoleRevoked', + }, + { + type: 'event', + anonymous: false, + inputs: [ + { name: 'to', internalType: 'address', type: 'address', indexed: true }, + { + name: 'paymentTokenAmount', + internalType: 'uint256', + type: 'uint256', + indexed: false, + }, + ], + name: 'Withdraw', + }, + { type: 'error', inputs: [], name: 'AccessControlBadConfirmation' }, + { + type: 'error', + inputs: [ + { name: 'account', internalType: 'address', type: 'address' }, + { name: 'neededRole', internalType: 'bytes32', type: 'bytes32' }, + ], + name: 'AccessControlUnauthorizedAccount', + }, + { + type: 'error', + inputs: [{ name: 'target', internalType: 'address', type: 'address' }], + name: 'AddressEmptyCode', + }, + { + type: 'error', + inputs: [{ name: 'account', internalType: 'address', type: 'address' }], + name: 'AddressInsufficientBalance', + }, + { type: 'error', inputs: [], name: 'FailedInnerCall' }, + { type: 'error', inputs: [], name: 'InvalidLeaf' }, + { type: 'error', inputs: [], name: 'MaxTargetReached' }, + { type: 'error', inputs: [], name: 'ReentrancyGuardReentrantCall' }, + { + type: 'error', + inputs: [{ name: 'token', internalType: 'address', type: 'address' }], + name: 'SafeERC20FailedOperation', + }, +] as const + +/** + * + */ +export const saleAddress = { + 31337: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0', +} as const + +/** + * + */ +export const saleConfig = { address: saleAddress, abi: saleAbi } as const + +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +// SaleTest +////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +export const saleTestAbi = [ + { + type: 'function', + inputs: [], + name: 'IS_TEST', + outputs: [{ name: '', internalType: 'bool', type: 'bool' }], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'excludeArtifacts', + outputs: [ + { + name: 'excludedArtifacts_', + internalType: 'string[]', + type: 'string[]', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'excludeContracts', + outputs: [ + { + name: 'excludedContracts_', + internalType: 'address[]', + type: 'address[]', + }, + ], + stateMutability: 'view', + }, + { + type: 'function', + inputs: [], + name: 'excludeSenders', + outputs: [ + { + name: 'excludedSenders_', internalType: 'address[]', type: 'address[]', }, @@ -6691,154 +7135,7 @@ export const saleTestAbi = [ { type: 'function', inputs: [], - name: 'testConstructor', - outputs: [], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'test_Buy', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_BuyMultiplePurchasesSameAccount', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_BuyRevertsAfterReachingMaxTarget', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_BuyRevertsWhenAboveMaximum', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_BuyRevertsWhenBelowMinimum', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_BuyRevertsWhenInvalidMerkleProof', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_PaymentTokenToToken', - outputs: [], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'test_RefundAmountIsZeroBeforeSale', - outputs: [], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'test_RefundAmountIsZeroIfAlreadyRefunded', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_RefundAmountIsZeroIfIndividualCapIsHigherThanInvestedTotal', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_RefundReturnsCorrectAmmount', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_RefundRevertsIfDoubleRefund', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_RefundRevertsWhenCapIsNotSet', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_SetIndividualCap', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_SetIndividualCapFailsValidateForWrongValue', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_TokenToPaymentToken', - outputs: [], - stateMutability: 'view', - }, - { - type: 'function', - inputs: [], - name: 'test_Withdraw', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_WithdrawDoesNotWithdrawRefunds', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_WithdrawOnlyOnce', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_WithdrawRevertsIfNoCapSet', - outputs: [], - stateMutability: 'nonpayable', - }, - { - type: 'function', - inputs: [], - name: 'test_WithdrawRevertsIfNotOwner', + name: 'test_InitialContribution', outputs: [], stateMutability: 'nonpayable', }, @@ -14831,7 +15128,7 @@ export const useWatchControllerRoleRevokedEvent = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSale = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -14841,7 +15138,7 @@ export const useReadCtzndSale = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"CAP_VALIDATION_GAS_LIMIT"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleCapValidationGasLimit = /*#__PURE__*/ createUseReadContract({ @@ -14853,7 +15150,7 @@ export const useReadCtzndSaleCapValidationGasLimit = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"CAP_VALIDATOR_ROLE"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleCapValidatorRole = /*#__PURE__*/ createUseReadContract({ @@ -14865,7 +15162,7 @@ export const useReadCtzndSaleCapValidatorRole = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"DEFAULT_ADMIN_ROLE"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleDefaultAdminRole = /*#__PURE__*/ createUseReadContract({ @@ -14877,7 +15174,7 @@ export const useReadCtzndSaleDefaultAdminRole = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"allocated"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleAllocated = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -14888,7 +15185,7 @@ export const useReadCtzndSaleAllocated = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"allocation"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleAllocation = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -14899,7 +15196,7 @@ export const useReadCtzndSaleAllocation = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"end"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleEnd = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -14910,7 +15207,7 @@ export const useReadCtzndSaleEnd = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"endRegistration"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleEndRegistration = /*#__PURE__*/ createUseReadContract({ @@ -14922,7 +15219,7 @@ export const useReadCtzndSaleEndRegistration = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"getRoleAdmin"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleGetRoleAdmin = /*#__PURE__*/ createUseReadContract( { @@ -14935,7 +15232,7 @@ export const useReadCtzndSaleGetRoleAdmin = /*#__PURE__*/ createUseReadContract( /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"hasRole"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleHasRole = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -14946,7 +15243,7 @@ export const useReadCtzndSaleHasRole = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"individualCap"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleIndividualCap = /*#__PURE__*/ createUseReadContract({ @@ -14958,7 +15255,7 @@ export const useReadCtzndSaleIndividualCap = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"investorAmountAt"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleInvestorAmountAt = /*#__PURE__*/ createUseReadContract({ @@ -14970,7 +15267,7 @@ export const useReadCtzndSaleInvestorAmountAt = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"investorCount"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleInvestorCount = /*#__PURE__*/ createUseReadContract({ @@ -14982,7 +15279,7 @@ export const useReadCtzndSaleInvestorCount = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"maxContribution"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleMaxContribution = /*#__PURE__*/ createUseReadContract({ @@ -14994,7 +15291,7 @@ export const useReadCtzndSaleMaxContribution = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"maxTarget"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleMaxTarget = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -15005,7 +15302,7 @@ export const useReadCtzndSaleMaxTarget = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"merkleRoot"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleMerkleRoot = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -15016,7 +15313,7 @@ export const useReadCtzndSaleMerkleRoot = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"minContribution"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleMinContribution = /*#__PURE__*/ createUseReadContract({ @@ -15028,7 +15325,7 @@ export const useReadCtzndSaleMinContribution = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"minTarget"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleMinTarget = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -15039,7 +15336,7 @@ export const useReadCtzndSaleMinTarget = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"paymentToken"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSalePaymentToken = /*#__PURE__*/ createUseReadContract( { @@ -15052,7 +15349,7 @@ export const useReadCtzndSalePaymentToken = /*#__PURE__*/ createUseReadContract( /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"paymentTokenToToken"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSalePaymentTokenToToken = /*#__PURE__*/ createUseReadContract({ @@ -15064,7 +15361,7 @@ export const useReadCtzndSalePaymentTokenToToken = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"rate"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleRate = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -15075,7 +15372,7 @@ export const useReadCtzndSaleRate = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"refundAmount"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleRefundAmount = /*#__PURE__*/ createUseReadContract( { @@ -15088,7 +15385,7 @@ export const useReadCtzndSaleRefundAmount = /*#__PURE__*/ createUseReadContract( /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"risingTideCache"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleRisingTideCache = /*#__PURE__*/ createUseReadContract({ @@ -15100,7 +15397,7 @@ export const useReadCtzndSaleRisingTideCache = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"risingTideState"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleRisingTideState = /*#__PURE__*/ createUseReadContract({ @@ -15112,7 +15409,7 @@ export const useReadCtzndSaleRisingTideState = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"risingTide_applyCap"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleRisingTideApplyCap = /*#__PURE__*/ createUseReadContract({ @@ -15124,7 +15421,7 @@ export const useReadCtzndSaleRisingTideApplyCap = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"risingTide_isValidCap"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleRisingTideIsValidCap = /*#__PURE__*/ createUseReadContract({ @@ -15136,7 +15433,7 @@ export const useReadCtzndSaleRisingTideIsValidCap = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"risingTide_totalAllocatedUncapped"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleRisingTideTotalAllocatedUncapped = /*#__PURE__*/ createUseReadContract({ @@ -15148,7 +15445,7 @@ export const useReadCtzndSaleRisingTideTotalAllocatedUncapped = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"risingTide_totalCap"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleRisingTideTotalCap = /*#__PURE__*/ createUseReadContract({ @@ -15160,7 +15457,7 @@ export const useReadCtzndSaleRisingTideTotalCap = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"risingTide_validating"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleRisingTideValidating = /*#__PURE__*/ createUseReadContract({ @@ -15172,7 +15469,7 @@ export const useReadCtzndSaleRisingTideValidating = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"start"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleStart = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -15183,7 +15480,7 @@ export const useReadCtzndSaleStart = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"startRegistration"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleStartRegistration = /*#__PURE__*/ createUseReadContract({ @@ -15195,7 +15492,7 @@ export const useReadCtzndSaleStartRegistration = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"supportsInterface"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleSupportsInterface = /*#__PURE__*/ createUseReadContract({ @@ -15207,7 +15504,7 @@ export const useReadCtzndSaleSupportsInterface = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"token"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleToken = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -15218,7 +15515,7 @@ export const useReadCtzndSaleToken = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"tokenToPaymentToken"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleTokenToPaymentToken = /*#__PURE__*/ createUseReadContract({ @@ -15230,7 +15527,7 @@ export const useReadCtzndSaleTokenToPaymentToken = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"totalTokensForSale"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleTotalTokensForSale = /*#__PURE__*/ createUseReadContract({ @@ -15242,7 +15539,7 @@ export const useReadCtzndSaleTotalTokensForSale = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"totalUncappedAllocations"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleTotalUncappedAllocations = /*#__PURE__*/ createUseReadContract({ @@ -15254,7 +15551,7 @@ export const useReadCtzndSaleTotalUncappedAllocations = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"uncappedAllocation"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleUncappedAllocation = /*#__PURE__*/ createUseReadContract({ @@ -15266,7 +15563,7 @@ export const useReadCtzndSaleUncappedAllocation = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"withdrawn"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useReadCtzndSaleWithdrawn = /*#__PURE__*/ createUseReadContract({ abi: ctzndSaleAbi, @@ -15277,7 +15574,7 @@ export const useReadCtzndSaleWithdrawn = /*#__PURE__*/ createUseReadContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSale = /*#__PURE__*/ createUseWriteContract({ abi: ctzndSaleAbi, @@ -15287,7 +15584,7 @@ export const useWriteCtzndSale = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"buy"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleBuy = /*#__PURE__*/ createUseWriteContract({ abi: ctzndSaleAbi, @@ -15298,7 +15595,7 @@ export const useWriteCtzndSaleBuy = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"grantRole"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleGrantRole = /*#__PURE__*/ createUseWriteContract({ abi: ctzndSaleAbi, @@ -15309,7 +15606,7 @@ export const useWriteCtzndSaleGrantRole = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"refund"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleRefund = /*#__PURE__*/ createUseWriteContract({ abi: ctzndSaleAbi, @@ -15320,7 +15617,7 @@ export const useWriteCtzndSaleRefund = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"renounceRole"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleRenounceRole = /*#__PURE__*/ createUseWriteContract({ @@ -15332,7 +15629,7 @@ export const useWriteCtzndSaleRenounceRole = /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"revokeRole"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleRevokeRole = /*#__PURE__*/ createUseWriteContract( { abi: ctzndSaleAbi, address: ctzndSaleAddress, functionName: 'revokeRole' }, @@ -15341,7 +15638,7 @@ export const useWriteCtzndSaleRevokeRole = /*#__PURE__*/ createUseWriteContract( /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"risingTide_validate"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleRisingTideValidate = /*#__PURE__*/ createUseWriteContract({ @@ -15350,10 +15647,21 @@ export const useWriteCtzndSaleRisingTideValidate = functionName: 'risingTide_validate', }) +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setEnd"` + * + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) + */ +export const useWriteCtzndSaleSetEnd = /*#__PURE__*/ createUseWriteContract({ + abi: ctzndSaleAbi, + address: ctzndSaleAddress, + functionName: 'setEnd', +}) + /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setIndividualCap"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleSetIndividualCap = /*#__PURE__*/ createUseWriteContract({ @@ -15363,21 +15671,21 @@ export const useWriteCtzndSaleSetIndividualCap = }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMaxContribution"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMaxTarget"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ -export const useWriteCtzndSaleSetMaxContribution = +export const useWriteCtzndSaleSetMaxTarget = /*#__PURE__*/ createUseWriteContract({ abi: ctzndSaleAbi, address: ctzndSaleAddress, - functionName: 'setMaxContribution', + functionName: 'setMaxTarget', }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMerkleRoot"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleSetMerkleRoot = /*#__PURE__*/ createUseWriteContract({ @@ -15387,21 +15695,44 @@ export const useWriteCtzndSaleSetMerkleRoot = }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMinContribution"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMinContribution"` + * + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) + */ +export const useWriteCtzndSaleSetMinContribution = + /*#__PURE__*/ createUseWriteContract({ + abi: ctzndSaleAbi, + address: ctzndSaleAddress, + functionName: 'setMinContribution', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMinTarget"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ -export const useWriteCtzndSaleSetMinContribution = +export const useWriteCtzndSaleSetMinTarget = /*#__PURE__*/ createUseWriteContract({ abi: ctzndSaleAbi, address: ctzndSaleAddress, - functionName: 'setMinContribution', + functionName: 'setMinTarget', }) +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setStart"` + * + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) + */ +export const useWriteCtzndSaleSetStart = /*#__PURE__*/ createUseWriteContract({ + abi: ctzndSaleAbi, + address: ctzndSaleAddress, + functionName: 'setStart', +}) + /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setToken"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleSetToken = /*#__PURE__*/ createUseWriteContract({ abi: ctzndSaleAbi, @@ -15412,7 +15743,7 @@ export const useWriteCtzndSaleSetToken = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"withdraw"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWriteCtzndSaleWithdraw = /*#__PURE__*/ createUseWriteContract({ abi: ctzndSaleAbi, @@ -15423,7 +15754,7 @@ export const useWriteCtzndSaleWithdraw = /*#__PURE__*/ createUseWriteContract({ /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSale = /*#__PURE__*/ createUseSimulateContract({ abi: ctzndSaleAbi, @@ -15433,7 +15764,7 @@ export const useSimulateCtzndSale = /*#__PURE__*/ createUseSimulateContract({ /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"buy"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleBuy = /*#__PURE__*/ createUseSimulateContract({ abi: ctzndSaleAbi, @@ -15444,7 +15775,7 @@ export const useSimulateCtzndSaleBuy = /*#__PURE__*/ createUseSimulateContract({ /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"grantRole"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleGrantRole = /*#__PURE__*/ createUseSimulateContract({ @@ -15456,7 +15787,7 @@ export const useSimulateCtzndSaleGrantRole = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"refund"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleRefund = /*#__PURE__*/ createUseSimulateContract({ @@ -15468,7 +15799,7 @@ export const useSimulateCtzndSaleRefund = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"renounceRole"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleRenounceRole = /*#__PURE__*/ createUseSimulateContract({ @@ -15480,7 +15811,7 @@ export const useSimulateCtzndSaleRenounceRole = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"revokeRole"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleRevokeRole = /*#__PURE__*/ createUseSimulateContract({ @@ -15492,7 +15823,7 @@ export const useSimulateCtzndSaleRevokeRole = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"risingTide_validate"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleRisingTideValidate = /*#__PURE__*/ createUseSimulateContract({ @@ -15501,10 +15832,22 @@ export const useSimulateCtzndSaleRisingTideValidate = functionName: 'risingTide_validate', }) +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setEnd"` + * + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) + */ +export const useSimulateCtzndSaleSetEnd = + /*#__PURE__*/ createUseSimulateContract({ + abi: ctzndSaleAbi, + address: ctzndSaleAddress, + functionName: 'setEnd', + }) + /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setIndividualCap"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleSetIndividualCap = /*#__PURE__*/ createUseSimulateContract({ @@ -15514,21 +15857,21 @@ export const useSimulateCtzndSaleSetIndividualCap = }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMaxContribution"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMaxTarget"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ -export const useSimulateCtzndSaleSetMaxContribution = +export const useSimulateCtzndSaleSetMaxTarget = /*#__PURE__*/ createUseSimulateContract({ abi: ctzndSaleAbi, address: ctzndSaleAddress, - functionName: 'setMaxContribution', + functionName: 'setMaxTarget', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMerkleRoot"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleSetMerkleRoot = /*#__PURE__*/ createUseSimulateContract({ @@ -15540,7 +15883,7 @@ export const useSimulateCtzndSaleSetMerkleRoot = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMinContribution"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleSetMinContribution = /*#__PURE__*/ createUseSimulateContract({ @@ -15549,10 +15892,34 @@ export const useSimulateCtzndSaleSetMinContribution = functionName: 'setMinContribution', }) +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setMinTarget"` + * + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) + */ +export const useSimulateCtzndSaleSetMinTarget = + /*#__PURE__*/ createUseSimulateContract({ + abi: ctzndSaleAbi, + address: ctzndSaleAddress, + functionName: 'setMinTarget', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setStart"` + * + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) + */ +export const useSimulateCtzndSaleSetStart = + /*#__PURE__*/ createUseSimulateContract({ + abi: ctzndSaleAbi, + address: ctzndSaleAddress, + functionName: 'setStart', + }) + /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"setToken"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleSetToken = /*#__PURE__*/ createUseSimulateContract({ @@ -15564,7 +15931,7 @@ export const useSimulateCtzndSaleSetToken = /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link ctzndSaleAbi}__ and `functionName` set to `"withdraw"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useSimulateCtzndSaleWithdraw = /*#__PURE__*/ createUseSimulateContract({ @@ -15576,7 +15943,7 @@ export const useSimulateCtzndSaleWithdraw = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ctzndSaleAbi}__ * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWatchCtzndSaleEvent = /*#__PURE__*/ createUseWatchContractEvent( { abi: ctzndSaleAbi, address: ctzndSaleAddress }, @@ -15585,7 +15952,7 @@ export const useWatchCtzndSaleEvent = /*#__PURE__*/ createUseWatchContractEvent( /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ctzndSaleAbi}__ and `eventName` set to `"Claim"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWatchCtzndSaleClaimEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -15597,7 +15964,7 @@ export const useWatchCtzndSaleClaimEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ctzndSaleAbi}__ and `eventName` set to `"Purchase"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWatchCtzndSalePurchaseEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -15609,7 +15976,7 @@ export const useWatchCtzndSalePurchaseEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ctzndSaleAbi}__ and `eventName` set to `"Refund"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWatchCtzndSaleRefundEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -15621,7 +15988,7 @@ export const useWatchCtzndSaleRefundEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ctzndSaleAbi}__ and `eventName` set to `"RoleAdminChanged"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWatchCtzndSaleRoleAdminChangedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -15633,7 +16000,7 @@ export const useWatchCtzndSaleRoleAdminChangedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ctzndSaleAbi}__ and `eventName` set to `"RoleGranted"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWatchCtzndSaleRoleGrantedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -15645,7 +16012,7 @@ export const useWatchCtzndSaleRoleGrantedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ctzndSaleAbi}__ and `eventName` set to `"RoleRevoked"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWatchCtzndSaleRoleRevokedEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -15657,7 +16024,7 @@ export const useWatchCtzndSaleRoleRevokedEvent = /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link ctzndSaleAbi}__ and `eventName` set to `"Withdraw"` * - * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xBe9fF1A0BdF6979534784F1B80fE0e60803f334C) + * [__View Contract on Sepolia Etherscan__](https://sepolia.etherscan.io/address/0xf2eacaa2b8374d648b2f1bab51c0e0add18ec0d1) */ export const useWatchCtzndSaleWithdrawEvent = /*#__PURE__*/ createUseWatchContractEvent({ @@ -18282,1288 +18649,1570 @@ export const useSimulateMockErc721 = /*#__PURE__*/ createUseSimulateContract({ }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"approve"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"approve"` + */ +export const useSimulateMockErc721Approve = + /*#__PURE__*/ createUseSimulateContract({ + abi: mockErc721Abi, + functionName: 'approve', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"initialize"` + */ +export const useSimulateMockErc721Initialize = + /*#__PURE__*/ createUseSimulateContract({ + abi: mockErc721Abi, + functionName: 'initialize', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"safeTransferFrom"` + */ +export const useSimulateMockErc721SafeTransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: mockErc721Abi, + functionName: 'safeTransferFrom', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"setApprovalForAll"` + */ +export const useSimulateMockErc721SetApprovalForAll = + /*#__PURE__*/ createUseSimulateContract({ + abi: mockErc721Abi, + functionName: 'setApprovalForAll', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"transferFrom"` + */ +export const useSimulateMockErc721TransferFrom = + /*#__PURE__*/ createUseSimulateContract({ + abi: mockErc721Abi, + functionName: 'transferFrom', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link mockErc721Abi}__ + */ +export const useWatchMockErc721Event = + /*#__PURE__*/ createUseWatchContractEvent({ abi: mockErc721Abi }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link mockErc721Abi}__ and `eventName` set to `"Approval"` + */ +export const useWatchMockErc721ApprovalEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: mockErc721Abi, + eventName: 'Approval', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link mockErc721Abi}__ and `eventName` set to `"ApprovalForAll"` + */ +export const useWatchMockErc721ApprovalForAllEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: mockErc721Abi, + eventName: 'ApprovalForAll', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link mockErc721Abi}__ and `eventName` set to `"Transfer"` + */ +export const useWatchMockErc721TransferEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: mockErc721Abi, + eventName: 'Transfer', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ + */ +export const useReadMockProject = /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"approveByLegal"` + */ +export const useReadMockProjectApproveByLegal = + /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'approveByLegal', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"approveByManager"` + */ +export const useReadMockProjectApproveByManager = + /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'approveByManager', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"approvedByLegal"` + */ +export const useReadMockProjectApprovedByLegal = + /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'approvedByLegal', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"approvedByManager"` + */ +export const useReadMockProjectApprovedByManager = + /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'approvedByManager', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"hasTokens"` + */ +export const useReadMockProjectHasTokens = /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'hasTokens', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"investmentTokenToToken"` + */ +export const useReadMockProjectInvestmentTokenToToken = + /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'investmentTokenToToken', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"isReadyForListing"` + */ +export const useReadMockProjectIsReadyForListing = + /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'isReadyForListing', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"merkleRoot"` + */ +export const useReadMockProjectMerkleRoot = /*#__PURE__*/ createUseReadContract( + { abi: mockProjectAbi, functionName: 'merkleRoot' }, +) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"peoplesPool"` + */ +export const useReadMockProjectPeoplesPool = + /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'peoplesPool', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"stakersPool"` + */ +export const useReadMockProjectStakersPool = + /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'stakersPool', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"tokenToInvestmentToken"` + */ +export const useReadMockProjectTokenToInvestmentToken = + /*#__PURE__*/ createUseReadContract({ + abi: mockProjectAbi, + functionName: 'tokenToInvestmentToken', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockProjectAbi}__ + */ +export const useWriteMockProject = /*#__PURE__*/ createUseWriteContract({ + abi: mockProjectAbi, +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"invest"` + */ +export const useWriteMockProjectInvest = /*#__PURE__*/ createUseWriteContract({ + abi: mockProjectAbi, + functionName: 'invest', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"test_createPeoplesPool"` + */ +export const useWriteMockProjectTestCreatePeoplesPool = + /*#__PURE__*/ createUseWriteContract({ + abi: mockProjectAbi, + functionName: 'test_createPeoplesPool', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"test_createStakersPool"` + */ +export const useWriteMockProjectTestCreateStakersPool = + /*#__PURE__*/ createUseWriteContract({ + abi: mockProjectAbi, + functionName: 'test_createStakersPool', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockProjectAbi}__ + */ +export const useSimulateMockProject = /*#__PURE__*/ createUseSimulateContract({ + abi: mockProjectAbi, +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"invest"` */ -export const useSimulateMockErc721Approve = +export const useSimulateMockProjectInvest = /*#__PURE__*/ createUseSimulateContract({ - abi: mockErc721Abi, - functionName: 'approve', + abi: mockProjectAbi, + functionName: 'invest', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"initialize"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"test_createPeoplesPool"` */ -export const useSimulateMockErc721Initialize = +export const useSimulateMockProjectTestCreatePeoplesPool = /*#__PURE__*/ createUseSimulateContract({ - abi: mockErc721Abi, - functionName: 'initialize', + abi: mockProjectAbi, + functionName: 'test_createPeoplesPool', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"safeTransferFrom"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"test_createStakersPool"` */ -export const useSimulateMockErc721SafeTransferFrom = +export const useSimulateMockProjectTestCreateStakersPool = /*#__PURE__*/ createUseSimulateContract({ - abi: mockErc721Abi, - functionName: 'safeTransferFrom', + abi: mockProjectAbi, + functionName: 'test_createStakersPool', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"setApprovalForAll"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ */ -export const useSimulateMockErc721SetApprovalForAll = - /*#__PURE__*/ createUseSimulateContract({ - abi: mockErc721Abi, - functionName: 'setApprovalForAll', - }) +export const useReadMockSale = /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, +}) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockErc721Abi}__ and `functionName` set to `"transferFrom"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"allocation"` */ -export const useSimulateMockErc721TransferFrom = - /*#__PURE__*/ createUseSimulateContract({ - abi: mockErc721Abi, - functionName: 'transferFrom', - }) +export const useReadMockSaleAllocation = /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, + functionName: 'allocation', +}) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link mockErc721Abi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"buy"` */ -export const useWatchMockErc721Event = - /*#__PURE__*/ createUseWatchContractEvent({ abi: mockErc721Abi }) +export const useReadMockSaleBuy = /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, + functionName: 'buy', +}) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link mockErc721Abi}__ and `eventName` set to `"Approval"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"calls"` */ -export const useWatchMockErc721ApprovalEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: mockErc721Abi, - eventName: 'Approval', - }) +export const useReadMockSaleCalls = /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, + functionName: 'calls', +}) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link mockErc721Abi}__ and `eventName` set to `"ApprovalForAll"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"paymentToken"` */ -export const useWatchMockErc721ApprovalForAllEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: mockErc721Abi, - eventName: 'ApprovalForAll', - }) +export const useReadMockSalePaymentToken = /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, + functionName: 'paymentToken', +}) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link mockErc721Abi}__ and `eventName` set to `"Transfer"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"paymentTokenToToken"` */ -export const useWatchMockErc721TransferEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: mockErc721Abi, - eventName: 'Transfer', +export const useReadMockSalePaymentTokenToToken = + /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, + functionName: 'paymentTokenToToken', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"refundAmount"` */ -export const useReadMockProject = /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, +export const useReadMockSaleRefundAmount = /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, + functionName: 'refundAmount', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"approveByLegal"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"setIndividualCap"` */ -export const useReadMockProjectApproveByLegal = +export const useReadMockSaleSetIndividualCap = /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'approveByLegal', + abi: mockSaleAbi, + functionName: 'setIndividualCap', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"approveByManager"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"supportsInterface"` */ -export const useReadMockProjectApproveByManager = +export const useReadMockSaleSupportsInterface = /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'approveByManager', + abi: mockSaleAbi, + functionName: 'supportsInterface', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"approvedByLegal"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_Called"` */ -export const useReadMockProjectApprovedByLegal = +export const useReadMockSaleTestCalled = /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, + functionName: 'test_Called', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"token"` + */ +export const useReadMockSaleToken = /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, + functionName: 'token', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"tokenToPaymentToken"` + */ +export const useReadMockSaleTokenToPaymentToken = /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'approvedByLegal', + abi: mockSaleAbi, + functionName: 'tokenToPaymentToken', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"approvedByManager"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"uncappedAllocation"` */ -export const useReadMockProjectApprovedByManager = +export const useReadMockSaleUncappedAllocation = /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'approvedByManager', + abi: mockSaleAbi, + functionName: 'uncappedAllocation', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"hasTokens"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"withdraw"` */ -export const useReadMockProjectHasTokens = /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'hasTokens', +export const useReadMockSaleWithdraw = /*#__PURE__*/ createUseReadContract({ + abi: mockSaleAbi, + functionName: 'withdraw', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"investmentTokenToToken"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockSaleAbi}__ */ -export const useReadMockProjectInvestmentTokenToToken = - /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'investmentTokenToToken', +export const useWriteMockSale = /*#__PURE__*/ createUseWriteContract({ + abi: mockSaleAbi, +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"refund"` + */ +export const useWriteMockSaleRefund = /*#__PURE__*/ createUseWriteContract({ + abi: mockSaleAbi, + functionName: 'refund', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_addAllocation"` + */ +export const useWriteMockSaleTestAddAllocation = + /*#__PURE__*/ createUseWriteContract({ + abi: mockSaleAbi, + functionName: 'test_addAllocation', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"isReadyForListing"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_addRefund"` */ -export const useReadMockProjectIsReadyForListing = - /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'isReadyForListing', +export const useWriteMockSaleTestAddRefund = + /*#__PURE__*/ createUseWriteContract({ + abi: mockSaleAbi, + functionName: 'test_addRefund', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"merkleRoot"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockSaleAbi}__ */ -export const useReadMockProjectMerkleRoot = /*#__PURE__*/ createUseReadContract( - { abi: mockProjectAbi, functionName: 'merkleRoot' }, -) +export const useSimulateMockSale = /*#__PURE__*/ createUseSimulateContract({ + abi: mockSaleAbi, +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"peoplesPool"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"refund"` */ -export const useReadMockProjectPeoplesPool = - /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'peoplesPool', +export const useSimulateMockSaleRefund = + /*#__PURE__*/ createUseSimulateContract({ + abi: mockSaleAbi, + functionName: 'refund', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"stakersPool"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_addAllocation"` */ -export const useReadMockProjectStakersPool = - /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'stakersPool', +export const useSimulateMockSaleTestAddAllocation = + /*#__PURE__*/ createUseSimulateContract({ + abi: mockSaleAbi, + functionName: 'test_addAllocation', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"tokenToInvestmentToken"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_addRefund"` */ -export const useReadMockProjectTokenToInvestmentToken = - /*#__PURE__*/ createUseReadContract({ - abi: mockProjectAbi, - functionName: 'tokenToInvestmentToken', +export const useSimulateMockSaleTestAddRefund = + /*#__PURE__*/ createUseSimulateContract({ + abi: mockSaleAbi, + functionName: 'test_addRefund', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockProjectAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pausableAbi}__ */ -export const useWriteMockProject = /*#__PURE__*/ createUseWriteContract({ - abi: mockProjectAbi, +export const useReadPausable = /*#__PURE__*/ createUseReadContract({ + abi: pausableAbi, }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"invest"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link pausableAbi}__ and `functionName` set to `"paused"` */ -export const useWriteMockProjectInvest = /*#__PURE__*/ createUseWriteContract({ - abi: mockProjectAbi, - functionName: 'invest', +export const useReadPausablePaused = /*#__PURE__*/ createUseReadContract({ + abi: pausableAbi, + functionName: 'paused', +}) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link pausableAbi}__ + */ +export const useWatchPausableEvent = /*#__PURE__*/ createUseWatchContractEvent({ + abi: pausableAbi, }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"test_createPeoplesPool"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link pausableAbi}__ and `eventName` set to `"Paused"` + */ +export const useWatchPausablePausedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: pausableAbi, + eventName: 'Paused', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link pausableAbi}__ and `eventName` set to `"Unpaused"` + */ +export const useWatchPausableUnpausedEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: pausableAbi, + eventName: 'Unpaused', + }) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ */ -export const useWriteMockProjectTestCreatePeoplesPool = - /*#__PURE__*/ createUseWriteContract({ - abi: mockProjectAbi, - functionName: 'test_createPeoplesPool', - }) +export const useReadPeoplesPool = /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, +}) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"test_createStakersPool"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"CAP_VALIDATION_GAS_LIMIT"` */ -export const useWriteMockProjectTestCreateStakersPool = - /*#__PURE__*/ createUseWriteContract({ - abi: mockProjectAbi, - functionName: 'test_createStakersPool', +export const useReadPeoplesPoolCapValidationGasLimit = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'CAP_VALIDATION_GAS_LIMIT', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockProjectAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"allocation"` */ -export const useSimulateMockProject = /*#__PURE__*/ createUseSimulateContract({ - abi: mockProjectAbi, -}) +export const useReadPeoplesPoolAllocation = /*#__PURE__*/ createUseReadContract( + { abi: peoplesPoolAbi, functionName: 'allocation' }, +) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"invest"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"individualCap"` */ -export const useSimulateMockProjectInvest = - /*#__PURE__*/ createUseSimulateContract({ - abi: mockProjectAbi, - functionName: 'invest', +export const useReadPeoplesPoolIndividualCap = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'individualCap', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"test_createPeoplesPool"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"investmentToken"` */ -export const useSimulateMockProjectTestCreatePeoplesPool = - /*#__PURE__*/ createUseSimulateContract({ - abi: mockProjectAbi, - functionName: 'test_createPeoplesPool', +export const useReadPeoplesPoolInvestmentToken = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'investmentToken', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockProjectAbi}__ and `functionName` set to `"test_createStakersPool"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"investorAmountAt"` */ -export const useSimulateMockProjectTestCreateStakersPool = - /*#__PURE__*/ createUseSimulateContract({ - abi: mockProjectAbi, - functionName: 'test_createStakersPool', +export const useReadPeoplesPoolInvestorAmountAt = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'investorAmountAt', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"investorCount"` */ -export const useReadMockSale = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, -}) +export const useReadPeoplesPoolInvestorCount = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'investorCount', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"allocation"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"project"` */ -export const useReadMockSaleAllocation = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'allocation', +export const useReadPeoplesPoolProject = /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'project', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"buy"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"refundableAmount"` */ -export const useReadMockSaleBuy = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'buy', -}) +export const useReadPeoplesPoolRefundableAmount = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'refundableAmount', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"calls"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTideCache"` */ -export const useReadMockSaleCalls = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'calls', -}) +export const useReadPeoplesPoolRisingTideCache = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'risingTideCache', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"paymentToken"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTideState"` */ -export const useReadMockSalePaymentToken = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'paymentToken', -}) +export const useReadPeoplesPoolRisingTideState = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'risingTideState', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"paymentTokenToToken"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_applyCap"` */ -export const useReadMockSalePaymentTokenToToken = +export const useReadPeoplesPoolRisingTideApplyCap = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'paymentTokenToToken', + abi: peoplesPoolAbi, + functionName: 'risingTide_applyCap', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"refundAmount"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_isValidCap"` */ -export const useReadMockSaleRefundAmount = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'refundAmount', -}) +export const useReadPeoplesPoolRisingTideIsValidCap = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'risingTide_isValidCap', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"setIndividualCap"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_totalAllocatedUncapped"` */ -export const useReadMockSaleSetIndividualCap = +export const useReadPeoplesPoolRisingTideTotalAllocatedUncapped = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'setIndividualCap', + abi: peoplesPoolAbi, + functionName: 'risingTide_totalAllocatedUncapped', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"supportsInterface"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_totalCap"` */ -export const useReadMockSaleSupportsInterface = +export const useReadPeoplesPoolRisingTideTotalCap = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'supportsInterface', + abi: peoplesPoolAbi, + functionName: 'risingTide_totalCap', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_Called"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_validating"` */ -export const useReadMockSaleTestCalled = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'test_Called', -}) +export const useReadPeoplesPoolRisingTideValidating = + /*#__PURE__*/ createUseReadContract({ + abi: peoplesPoolAbi, + functionName: 'risingTide_validating', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"token"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"saleSupply"` */ -export const useReadMockSaleToken = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'token', -}) +export const useReadPeoplesPoolSaleSupply = /*#__PURE__*/ createUseReadContract( + { abi: peoplesPoolAbi, functionName: 'saleSupply' }, +) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"tokenToPaymentToken"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"totalUncappedAllocations"` */ -export const useReadMockSaleTokenToPaymentToken = +export const useReadPeoplesPoolTotalUncappedAllocations = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'tokenToPaymentToken', + abi: peoplesPoolAbi, + functionName: 'totalUncappedAllocations', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"uncappedAllocation"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"uncappedAllocation"` */ -export const useReadMockSaleUncappedAllocation = +export const useReadPeoplesPoolUncappedAllocation = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, + abi: peoplesPoolAbi, functionName: 'uncappedAllocation', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"withdraw"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ */ -export const useReadMockSaleWithdraw = /*#__PURE__*/ createUseReadContract({ - abi: mockSaleAbi, - functionName: 'withdraw', +export const useWritePeoplesPool = /*#__PURE__*/ createUseWriteContract({ + abi: peoplesPoolAbi, }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockSaleAbi}__ + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"invest"` */ -export const useWriteMockSale = /*#__PURE__*/ createUseWriteContract({ - abi: mockSaleAbi, +export const useWritePeoplesPoolInvest = /*#__PURE__*/ createUseWriteContract({ + abi: peoplesPoolAbi, + functionName: 'invest', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"refund"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"refund"` */ -export const useWriteMockSaleRefund = /*#__PURE__*/ createUseWriteContract({ - abi: mockSaleAbi, +export const useWritePeoplesPoolRefund = /*#__PURE__*/ createUseWriteContract({ + abi: peoplesPoolAbi, functionName: 'refund', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_addAllocation"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_validate"` */ -export const useWriteMockSaleTestAddAllocation = +export const useWritePeoplesPoolRisingTideValidate = /*#__PURE__*/ createUseWriteContract({ - abi: mockSaleAbi, - functionName: 'test_addAllocation', + abi: peoplesPoolAbi, + functionName: 'risingTide_validate', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_addRefund"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"setIndividualCap"` */ -export const useWriteMockSaleTestAddRefund = +export const useWritePeoplesPoolSetIndividualCap = /*#__PURE__*/ createUseWriteContract({ - abi: mockSaleAbi, - functionName: 'test_addRefund', + abi: peoplesPoolAbi, + functionName: 'setIndividualCap', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockSaleAbi}__ + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ */ -export const useSimulateMockSale = /*#__PURE__*/ createUseSimulateContract({ - abi: mockSaleAbi, +export const useSimulatePeoplesPool = /*#__PURE__*/ createUseSimulateContract({ + abi: peoplesPoolAbi, }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"refund"` - */ -export const useSimulateMockSaleRefund = - /*#__PURE__*/ createUseSimulateContract({ - abi: mockSaleAbi, - functionName: 'refund', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_addAllocation"` - */ -export const useSimulateMockSaleTestAddAllocation = - /*#__PURE__*/ createUseSimulateContract({ - abi: mockSaleAbi, - functionName: 'test_addAllocation', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link mockSaleAbi}__ and `functionName` set to `"test_addRefund"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"invest"` */ -export const useSimulateMockSaleTestAddRefund = +export const useSimulatePeoplesPoolInvest = /*#__PURE__*/ createUseSimulateContract({ - abi: mockSaleAbi, - functionName: 'test_addRefund', + abi: peoplesPoolAbi, + functionName: 'invest', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link pausableAbi}__ - */ -export const useReadPausable = /*#__PURE__*/ createUseReadContract({ - abi: pausableAbi, -}) + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"refund"` + */ +export const useSimulatePeoplesPoolRefund = + /*#__PURE__*/ createUseSimulateContract({ + abi: peoplesPoolAbi, + functionName: 'refund', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link pausableAbi}__ and `functionName` set to `"paused"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_validate"` */ -export const useReadPausablePaused = /*#__PURE__*/ createUseReadContract({ - abi: pausableAbi, - functionName: 'paused', -}) +export const useSimulatePeoplesPoolRisingTideValidate = + /*#__PURE__*/ createUseSimulateContract({ + abi: peoplesPoolAbi, + functionName: 'risingTide_validate', + }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link pausableAbi}__ + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"setIndividualCap"` */ -export const useWatchPausableEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: pausableAbi, -}) +export const useSimulatePeoplesPoolSetIndividualCap = + /*#__PURE__*/ createUseSimulateContract({ + abi: peoplesPoolAbi, + functionName: 'setIndividualCap', + }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link pausableAbi}__ and `eventName` set to `"Paused"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link peoplesPoolAbi}__ */ -export const useWatchPausablePausedEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: pausableAbi, - eventName: 'Paused', - }) +export const useWatchPeoplesPoolEvent = + /*#__PURE__*/ createUseWatchContractEvent({ abi: peoplesPoolAbi }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link pausableAbi}__ and `eventName` set to `"Unpaused"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link peoplesPoolAbi}__ and `eventName` set to `"Refund"` */ -export const useWatchPausableUnpausedEvent = +export const useWatchPeoplesPoolRefundEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: pausableAbi, - eventName: 'Unpaused', + abi: peoplesPoolAbi, + eventName: 'Refund', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ */ -export const useReadPeoplesPool = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, -}) +export const useReadPool = /*#__PURE__*/ createUseReadContract({ abi: poolAbi }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"CAP_VALIDATION_GAS_LIMIT"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"CAP_VALIDATION_GAS_LIMIT"` */ -export const useReadPeoplesPoolCapValidationGasLimit = +export const useReadPoolCapValidationGasLimit = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, + abi: poolAbi, functionName: 'CAP_VALIDATION_GAS_LIMIT', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"allocation"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"allocation"` */ -export const useReadPeoplesPoolAllocation = /*#__PURE__*/ createUseReadContract( - { abi: peoplesPoolAbi, functionName: 'allocation' }, -) +export const useReadPoolAllocation = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'allocation', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"individualCap"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"individualCap"` */ -export const useReadPeoplesPoolIndividualCap = - /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, - functionName: 'individualCap', - }) +export const useReadPoolIndividualCap = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'individualCap', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"investmentToken"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"investmentToken"` */ -export const useReadPeoplesPoolInvestmentToken = - /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, - functionName: 'investmentToken', - }) +export const useReadPoolInvestmentToken = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'investmentToken', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"investorAmountAt"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"investorAmountAt"` */ -export const useReadPeoplesPoolInvestorAmountAt = - /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, - functionName: 'investorAmountAt', - }) +export const useReadPoolInvestorAmountAt = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'investorAmountAt', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"investorCount"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"investorCount"` */ -export const useReadPeoplesPoolInvestorCount = - /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, - functionName: 'investorCount', - }) +export const useReadPoolInvestorCount = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'investorCount', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"project"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"project"` */ -export const useReadPeoplesPoolProject = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, +export const useReadPoolProject = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, functionName: 'project', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"refundableAmount"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"refundableAmount"` */ -export const useReadPeoplesPoolRefundableAmount = - /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, - functionName: 'refundableAmount', - }) +export const useReadPoolRefundableAmount = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'refundableAmount', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTideCache"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTideCache"` */ -export const useReadPeoplesPoolRisingTideCache = - /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, - functionName: 'risingTideCache', - }) +export const useReadPoolRisingTideCache = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'risingTideCache', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTideState"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTideState"` */ -export const useReadPeoplesPoolRisingTideState = - /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, - functionName: 'risingTideState', - }) +export const useReadPoolRisingTideState = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'risingTideState', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_applyCap"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_applyCap"` */ -export const useReadPeoplesPoolRisingTideApplyCap = +export const useReadPoolRisingTideApplyCap = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, + abi: poolAbi, functionName: 'risingTide_applyCap', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_isValidCap"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_isValidCap"` */ -export const useReadPeoplesPoolRisingTideIsValidCap = +export const useReadPoolRisingTideIsValidCap = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, + abi: poolAbi, functionName: 'risingTide_isValidCap', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_totalAllocatedUncapped"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_totalAllocatedUncapped"` */ -export const useReadPeoplesPoolRisingTideTotalAllocatedUncapped = +export const useReadPoolRisingTideTotalAllocatedUncapped = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, + abi: poolAbi, functionName: 'risingTide_totalAllocatedUncapped', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_totalCap"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_totalCap"` */ -export const useReadPeoplesPoolRisingTideTotalCap = +export const useReadPoolRisingTideTotalCap = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, + abi: poolAbi, functionName: 'risingTide_totalCap', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_validating"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_validating"` */ -export const useReadPeoplesPoolRisingTideValidating = +export const useReadPoolRisingTideValidating = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, + abi: poolAbi, functionName: 'risingTide_validating', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"saleSupply"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"saleSupply"` */ -export const useReadPeoplesPoolSaleSupply = /*#__PURE__*/ createUseReadContract( - { abi: peoplesPoolAbi, functionName: 'saleSupply' }, -) +export const useReadPoolSaleSupply = /*#__PURE__*/ createUseReadContract({ + abi: poolAbi, + functionName: 'saleSupply', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"totalUncappedAllocations"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"totalUncappedAllocations"` */ -export const useReadPeoplesPoolTotalUncappedAllocations = +export const useReadPoolTotalUncappedAllocations = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, + abi: poolAbi, functionName: 'totalUncappedAllocations', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"uncappedAllocation"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"uncappedAllocation"` */ -export const useReadPeoplesPoolUncappedAllocation = +export const useReadPoolUncappedAllocation = /*#__PURE__*/ createUseReadContract({ - abi: peoplesPoolAbi, + abi: poolAbi, functionName: 'uncappedAllocation', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ */ -export const useWritePeoplesPool = /*#__PURE__*/ createUseWriteContract({ - abi: peoplesPoolAbi, +export const useWritePool = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"invest"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"invest"` */ -export const useWritePeoplesPoolInvest = /*#__PURE__*/ createUseWriteContract({ - abi: peoplesPoolAbi, +export const useWritePoolInvest = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, functionName: 'invest', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"refund"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"refund"` */ -export const useWritePeoplesPoolRefund = /*#__PURE__*/ createUseWriteContract({ - abi: peoplesPoolAbi, +export const useWritePoolRefund = /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'refund', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_validate"` + */ +export const useWritePoolRisingTideValidate = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'risingTide_validate', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setIndividualCap"` + */ +export const useWritePoolSetIndividualCap = + /*#__PURE__*/ createUseWriteContract({ + abi: poolAbi, + functionName: 'setIndividualCap', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ + */ +export const useSimulatePool = /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"invest"` + */ +export const useSimulatePoolInvest = /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, + functionName: 'invest', +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"refund"` + */ +export const useSimulatePoolRefund = /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, functionName: 'refund', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_validate"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_validate"` */ -export const useWritePeoplesPoolRisingTideValidate = - /*#__PURE__*/ createUseWriteContract({ - abi: peoplesPoolAbi, +export const useSimulatePoolRisingTideValidate = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, functionName: 'risingTide_validate', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"setIndividualCap"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setIndividualCap"` */ -export const useWritePeoplesPoolSetIndividualCap = - /*#__PURE__*/ createUseWriteContract({ - abi: peoplesPoolAbi, +export const useSimulatePoolSetIndividualCap = + /*#__PURE__*/ createUseSimulateContract({ + abi: poolAbi, functionName: 'setIndividualCap', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ */ -export const useSimulatePeoplesPool = /*#__PURE__*/ createUseSimulateContract({ - abi: peoplesPoolAbi, +export const useWatchPoolEvent = /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"invest"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"Refund"` */ -export const useSimulatePeoplesPoolInvest = - /*#__PURE__*/ createUseSimulateContract({ - abi: peoplesPoolAbi, - functionName: 'invest', +export const useWatchPoolRefundEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: poolAbi, + eventName: 'Refund', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"refund"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ */ -export const useSimulatePeoplesPoolRefund = - /*#__PURE__*/ createUseSimulateContract({ - abi: peoplesPoolAbi, - functionName: 'refund', - }) +export const useReadProject = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, +}) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"risingTide_validate"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"MUL"` */ -export const useSimulatePeoplesPoolRisingTideValidate = - /*#__PURE__*/ createUseSimulateContract({ - abi: peoplesPoolAbi, - functionName: 'risingTide_validate', +export const useReadProjectMul = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'MUL', +}) + +/** + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approvedByLegal"` + */ +export const useReadProjectApprovedByLegal = + /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'approvedByLegal', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link peoplesPoolAbi}__ and `functionName` set to `"setIndividualCap"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approvedByManager"` */ -export const useSimulatePeoplesPoolSetIndividualCap = - /*#__PURE__*/ createUseSimulateContract({ - abi: peoplesPoolAbi, - functionName: 'setIndividualCap', +export const useReadProjectApprovedByManager = + /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'approvedByManager', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link peoplesPoolAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"controller"` */ -export const useWatchPeoplesPoolEvent = - /*#__PURE__*/ createUseWatchContractEvent({ abi: peoplesPoolAbi }) +export const useReadProjectController = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'controller', +}) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link peoplesPoolAbi}__ and `eventName` set to `"Refund"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"description"` */ -export const useWatchPeoplesPoolRefundEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: peoplesPoolAbi, - eventName: 'Refund', - }) +export const useReadProjectDescription = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'description', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"hasTokens"` */ -export const useReadPool = /*#__PURE__*/ createUseReadContract({ abi: poolAbi }) +export const useReadProjectHasTokens = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'hasTokens', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"CAP_VALIDATION_GAS_LIMIT"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"investmentTokenToToken"` */ -export const useReadPoolCapValidationGasLimit = +export const useReadProjectInvestmentTokenToToken = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'CAP_VALIDATION_GAS_LIMIT', + abi: projectAbi, + functionName: 'investmentTokenToToken', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"allocation"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"isReadyForListing"` */ -export const useReadPoolAllocation = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'allocation', -}) +export const useReadProjectIsReadyForListing = + /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'isReadyForListing', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"individualCap"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"merkleRoot"` */ -export const useReadPoolIndividualCap = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'individualCap', +export const useReadProjectMerkleRoot = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'merkleRoot', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"investmentToken"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"peoplesPool"` */ -export const useReadPoolInvestmentToken = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'investmentToken', +export const useReadProjectPeoplesPool = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'peoplesPool', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"investorAmountAt"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"rate"` */ -export const useReadPoolInvestorAmountAt = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'investorAmountAt', +export const useReadProjectRate = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'rate', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"investorCount"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"saleSupply"` */ -export const useReadPoolInvestorCount = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'investorCount', +export const useReadProjectSaleSupply = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'saleSupply', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"project"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"stakersPool"` */ -export const useReadPoolProject = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'project', +export const useReadProjectStakersPool = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'stakersPool', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"refundableAmount"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"supportsInterface"` */ -export const useReadPoolRefundableAmount = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'refundableAmount', -}) +export const useReadProjectSupportsInterface = + /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'supportsInterface', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTideCache"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"token"` */ -export const useReadPoolRisingTideCache = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'risingTideCache', +export const useReadProjectToken = /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'token', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTideState"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"tokenToInvestmentToken"` */ -export const useReadPoolRisingTideState = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'risingTideState', +export const useReadProjectTokenToInvestmentToken = + /*#__PURE__*/ createUseReadContract({ + abi: projectAbi, + functionName: 'tokenToInvestmentToken', + }) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectAbi}__ + */ +export const useWriteProject = /*#__PURE__*/ createUseWriteContract({ + abi: projectAbi, }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_applyCap"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approveByLegal"` */ -export const useReadPoolRisingTideApplyCap = - /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'risingTide_applyCap', +export const useWriteProjectApproveByLegal = + /*#__PURE__*/ createUseWriteContract({ + abi: projectAbi, + functionName: 'approveByLegal', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_isValidCap"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approveByManager"` */ -export const useReadPoolRisingTideIsValidCap = - /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'risingTide_isValidCap', +export const useWriteProjectApproveByManager = + /*#__PURE__*/ createUseWriteContract({ + abi: projectAbi, + functionName: 'approveByManager', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_totalAllocatedUncapped"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"invest"` */ -export const useReadPoolRisingTideTotalAllocatedUncapped = - /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'risingTide_totalAllocatedUncapped', - }) +export const useWriteProjectInvest = /*#__PURE__*/ createUseWriteContract({ + abi: projectAbi, + functionName: 'invest', +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_totalCap"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectAbi}__ */ -export const useReadPoolRisingTideTotalCap = - /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'risingTide_totalCap', +export const useSimulateProject = /*#__PURE__*/ createUseSimulateContract({ + abi: projectAbi, +}) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approveByLegal"` + */ +export const useSimulateProjectApproveByLegal = + /*#__PURE__*/ createUseSimulateContract({ + abi: projectAbi, + functionName: 'approveByLegal', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_validating"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approveByManager"` */ -export const useReadPoolRisingTideValidating = - /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'risingTide_validating', +export const useSimulateProjectApproveByManager = + /*#__PURE__*/ createUseSimulateContract({ + abi: projectAbi, + functionName: 'approveByManager', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"saleSupply"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"invest"` */ -export const useReadPoolSaleSupply = /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'saleSupply', -}) +export const useSimulateProjectInvest = /*#__PURE__*/ createUseSimulateContract( + { abi: projectAbi, functionName: 'invest' }, +) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"totalUncappedAllocations"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectHelpersAbi}__ */ -export const useReadPoolTotalUncappedAllocations = - /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'totalUncappedAllocations', - }) +export const useReadProjectHelpers = /*#__PURE__*/ createUseReadContract({ + abi: projectHelpersAbi, +}) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"uncappedAllocation"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectHelpersAbi}__ and `functionName` set to `"MUL"` */ -export const useReadPoolUncappedAllocation = - /*#__PURE__*/ createUseReadContract({ - abi: poolAbi, - functionName: 'uncappedAllocation', - }) +export const useReadProjectHelpersMul = /*#__PURE__*/ createUseReadContract({ + abi: projectHelpersAbi, + functionName: 'MUL', +}) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ */ -export const useWritePool = /*#__PURE__*/ createUseWriteContract({ - abi: poolAbi, +export const useReadProjectTest = /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"invest"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"IS_TEST"` */ -export const useWritePoolInvest = /*#__PURE__*/ createUseWriteContract({ - abi: poolAbi, - functionName: 'invest', +export const useReadProjectTestIsTest = /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'IS_TEST', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"refund"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"excludeArtifacts"` */ -export const useWritePoolRefund = /*#__PURE__*/ createUseWriteContract({ - abi: poolAbi, - functionName: 'refund', -}) +export const useReadProjectTestExcludeArtifacts = + /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'excludeArtifacts', + }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_validate"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"excludeContracts"` */ -export const useWritePoolRisingTideValidate = - /*#__PURE__*/ createUseWriteContract({ - abi: poolAbi, - functionName: 'risingTide_validate', +export const useReadProjectTestExcludeContracts = + /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'excludeContracts', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setIndividualCap"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"excludeSenders"` */ -export const useWritePoolSetIndividualCap = - /*#__PURE__*/ createUseWriteContract({ - abi: poolAbi, - functionName: 'setIndividualCap', +export const useReadProjectTestExcludeSenders = + /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'excludeSenders', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"proofs"` */ -export const useSimulatePool = /*#__PURE__*/ createUseSimulateContract({ - abi: poolAbi, +export const useReadProjectTestProofs = /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'proofs', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"invest"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"targetArtifactSelectors"` */ -export const useSimulatePoolInvest = /*#__PURE__*/ createUseSimulateContract({ - abi: poolAbi, - functionName: 'invest', -}) +export const useReadProjectTestTargetArtifactSelectors = + /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'targetArtifactSelectors', + }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"refund"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"targetArtifacts"` */ -export const useSimulatePoolRefund = /*#__PURE__*/ createUseSimulateContract({ - abi: poolAbi, - functionName: 'refund', -}) +export const useReadProjectTestTargetArtifacts = + /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'targetArtifacts', + }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"risingTide_validate"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"targetContracts"` */ -export const useSimulatePoolRisingTideValidate = - /*#__PURE__*/ createUseSimulateContract({ - abi: poolAbi, - functionName: 'risingTide_validate', +export const useReadProjectTestTargetContracts = + /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'targetContracts', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link poolAbi}__ and `functionName` set to `"setIndividualCap"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"targetInterfaces"` */ -export const useSimulatePoolSetIndividualCap = - /*#__PURE__*/ createUseSimulateContract({ - abi: poolAbi, - functionName: 'setIndividualCap', +export const useReadProjectTestTargetInterfaces = + /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'targetInterfaces', }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"targetSelectors"` */ -export const useWatchPoolEvent = /*#__PURE__*/ createUseWatchContractEvent({ - abi: poolAbi, -}) +export const useReadProjectTestTargetSelectors = + /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'targetSelectors', + }) /** - * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link poolAbi}__ and `eventName` set to `"Refund"` + * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"targetSenders"` */ -export const useWatchPoolRefundEvent = - /*#__PURE__*/ createUseWatchContractEvent({ - abi: poolAbi, - eventName: 'Refund', +export const useReadProjectTestTargetSenders = + /*#__PURE__*/ createUseReadContract({ + abi: projectTestAbi, + functionName: 'targetSenders', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ - * - * + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectTestAbi}__ */ -export const useReadProject = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, +export const useWriteProjectTest = /*#__PURE__*/ createUseWriteContract({ + abi: projectTestAbi, }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"MUL"` - * - * + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"failed"` */ -export const useReadProjectMul = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'MUL', +export const useWriteProjectTestFailed = /*#__PURE__*/ createUseWriteContract({ + abi: projectTestAbi, + functionName: 'failed', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approvedByLegal"` - * - * + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"setUp"` */ -export const useReadProjectApprovedByLegal = - /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'approvedByLegal', +export const useWriteProjectTestSetUp = /*#__PURE__*/ createUseWriteContract({ + abi: projectTestAbi, + functionName: 'setUp', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"testInvest"` + */ +export const useWriteProjectTestTestInvest = + /*#__PURE__*/ createUseWriteContract({ + abi: projectTestAbi, + functionName: 'testInvest', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approvedByManager"` - * - * + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"testInvestShouldRevertWithInvalidProof"` */ -export const useReadProjectApprovedByManager = - /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'approvedByManager', +export const useWriteProjectTestTestInvestShouldRevertWithInvalidProof = + /*#__PURE__*/ createUseWriteContract({ + abi: projectTestAbi, + functionName: 'testInvestShouldRevertWithInvalidProof', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"controller"` - * - * + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectTestAbi}__ */ -export const useReadProjectController = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'controller', +export const useSimulateProjectTest = /*#__PURE__*/ createUseSimulateContract({ + abi: projectTestAbi, }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"description"` - * - * + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"failed"` */ -export const useReadProjectDescription = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'description', -}) +export const useSimulateProjectTestFailed = + /*#__PURE__*/ createUseSimulateContract({ + abi: projectTestAbi, + functionName: 'failed', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"hasTokens"` - * - * + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"setUp"` */ -export const useReadProjectHasTokens = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'hasTokens', -}) +export const useSimulateProjectTestSetUp = + /*#__PURE__*/ createUseSimulateContract({ + abi: projectTestAbi, + functionName: 'setUp', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"investmentTokenToToken"` - * - * + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"testInvest"` */ -export const useReadProjectInvestmentTokenToToken = - /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'investmentTokenToToken', +export const useSimulateProjectTestTestInvest = + /*#__PURE__*/ createUseSimulateContract({ + abi: projectTestAbi, + functionName: 'testInvest', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"isReadyForListing"` - * - * + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectTestAbi}__ and `functionName` set to `"testInvestShouldRevertWithInvalidProof"` */ -export const useReadProjectIsReadyForListing = - /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'isReadyForListing', +export const useSimulateProjectTestTestInvestShouldRevertWithInvalidProof = + /*#__PURE__*/ createUseSimulateContract({ + abi: projectTestAbi, + functionName: 'testInvestShouldRevertWithInvalidProof', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"merkleRoot"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ */ -export const useReadProjectMerkleRoot = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'merkleRoot', -}) +export const useWatchProjectTestEvent = + /*#__PURE__*/ createUseWatchContractEvent({ abi: projectTestAbi }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"peoplesPool"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log"` */ -export const useReadProjectPeoplesPool = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'peoplesPool', -}) +export const useWatchProjectTestLogEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"rate"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_address"` */ -export const useReadProjectRate = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'rate', -}) +export const useWatchProjectTestLogAddressEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_address', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"saleSupply"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_array"` */ -export const useReadProjectSaleSupply = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'saleSupply', -}) +export const useWatchProjectTestLogArrayEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_array', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"stakersPool"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_bytes"` */ -export const useReadProjectStakersPool = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'stakersPool', -}) +export const useWatchProjectTestLogBytesEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_bytes', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"supportsInterface"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_bytes32"` */ -export const useReadProjectSupportsInterface = - /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'supportsInterface', +export const useWatchProjectTestLogBytes32Event = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_bytes32', }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"token"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_int"` */ -export const useReadProjectToken = /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'token', -}) +export const useWatchProjectTestLogIntEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_int', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"tokenToInvestmentToken"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_named_address"` */ -export const useReadProjectTokenToInvestmentToken = - /*#__PURE__*/ createUseReadContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'tokenToInvestmentToken', +export const useWatchProjectTestLogNamedAddressEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_named_address', + }) + +/** + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_named_array"` + */ +export const useWatchProjectTestLogNamedArrayEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_named_array', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectAbi}__ - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_named_bytes"` */ -export const useWriteProject = /*#__PURE__*/ createUseWriteContract({ - abi: projectAbi, - address: projectAddress, -}) +export const useWatchProjectTestLogNamedBytesEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_named_bytes', + }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approveByLegal"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_named_bytes32"` */ -export const useWriteProjectApproveByLegal = - /*#__PURE__*/ createUseWriteContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'approveByLegal', +export const useWatchProjectTestLogNamedBytes32Event = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_named_bytes32', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approveByManager"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_named_decimal_int"` */ -export const useWriteProjectApproveByManager = - /*#__PURE__*/ createUseWriteContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'approveByManager', +export const useWatchProjectTestLogNamedDecimalIntEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_named_decimal_int', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"invest"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_named_decimal_uint"` */ -export const useWriteProjectInvest = /*#__PURE__*/ createUseWriteContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'invest', -}) +export const useWatchProjectTestLogNamedDecimalUintEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_named_decimal_uint', + }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectAbi}__ - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_named_int"` */ -export const useSimulateProject = /*#__PURE__*/ createUseSimulateContract({ - abi: projectAbi, - address: projectAddress, -}) +export const useWatchProjectTestLogNamedIntEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_named_int', + }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approveByLegal"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_named_string"` */ -export const useSimulateProjectApproveByLegal = - /*#__PURE__*/ createUseSimulateContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'approveByLegal', +export const useWatchProjectTestLogNamedStringEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_named_string', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"approveByManager"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_named_uint"` */ -export const useSimulateProjectApproveByManager = - /*#__PURE__*/ createUseSimulateContract({ - abi: projectAbi, - address: projectAddress, - functionName: 'approveByManager', +export const useWatchProjectTestLogNamedUintEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_named_uint', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link projectAbi}__ and `functionName` set to `"invest"` - * - * + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_string"` */ -export const useSimulateProjectInvest = /*#__PURE__*/ createUseSimulateContract( - { abi: projectAbi, address: projectAddress, functionName: 'invest' }, -) +export const useWatchProjectTestLogStringEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_string', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectHelpersAbi}__ + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"log_uint"` */ -export const useReadProjectHelpers = /*#__PURE__*/ createUseReadContract({ - abi: projectHelpersAbi, -}) +export const useWatchProjectTestLogUintEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'log_uint', + }) /** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectHelpersAbi}__ and `functionName` set to `"MUL"` + * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link projectTestAbi}__ and `eventName` set to `"logs"` */ -export const useReadProjectHelpersMul = /*#__PURE__*/ createUseReadContract({ - abi: projectHelpersAbi, - functionName: 'MUL', -}) +export const useWatchProjectTestLogsEvent = + /*#__PURE__*/ createUseWatchContractEvent({ + abi: projectTestAbi, + eventName: 'logs', + }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link projectVotingAbi}__ @@ -20229,595 +20878,875 @@ export const useWatchRisingTideTestLogsEvent = /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ + * + * */ -export const useReadSale = /*#__PURE__*/ createUseReadContract({ abi: saleAbi }) +export const useReadSale = /*#__PURE__*/ createUseReadContract({ + abi: saleAbi, + address: saleAddress, +}) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"CAP_VALIDATION_GAS_LIMIT"` + * + * */ export const useReadSaleCapValidationGasLimit = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'CAP_VALIDATION_GAS_LIMIT', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"CAP_VALIDATOR_ROLE"` + * + * */ export const useReadSaleCapValidatorRole = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'CAP_VALIDATOR_ROLE', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"DEFAULT_ADMIN_ROLE"` + * + * */ export const useReadSaleDefaultAdminRole = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'DEFAULT_ADMIN_ROLE', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"allocated"` + * + * */ export const useReadSaleAllocated = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'allocated', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"allocation"` + * + * */ export const useReadSaleAllocation = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'allocation', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"end"` + * + * */ export const useReadSaleEnd = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'end', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"endRegistration"` + * + * */ export const useReadSaleEndRegistration = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'endRegistration', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"getRoleAdmin"` + * + * */ export const useReadSaleGetRoleAdmin = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'getRoleAdmin', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"hasRole"` + * + * */ export const useReadSaleHasRole = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'hasRole', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"individualCap"` + * + * */ export const useReadSaleIndividualCap = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'individualCap', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"investorAmountAt"` + * + * */ export const useReadSaleInvestorAmountAt = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'investorAmountAt', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"investorCount"` + * + * */ export const useReadSaleInvestorCount = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'investorCount', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"maxContribution"` + * + * */ export const useReadSaleMaxContribution = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'maxContribution', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"maxTarget"` + * + * */ export const useReadSaleMaxTarget = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'maxTarget', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"merkleRoot"` + * + * */ export const useReadSaleMerkleRoot = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'merkleRoot', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"minContribution"` + * + * */ export const useReadSaleMinContribution = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'minContribution', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"minTarget"` + * + * */ export const useReadSaleMinTarget = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'minTarget', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"paymentToken"` + * + * */ export const useReadSalePaymentToken = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'paymentToken', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"paymentTokenToToken"` + * + * */ export const useReadSalePaymentTokenToToken = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'paymentTokenToToken', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"rate"` + * + * */ export const useReadSaleRate = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'rate', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"refundAmount"` + * + * */ export const useReadSaleRefundAmount = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'refundAmount', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"risingTideCache"` + * + * */ export const useReadSaleRisingTideCache = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'risingTideCache', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"risingTideState"` + * + * */ export const useReadSaleRisingTideState = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'risingTideState', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"risingTide_applyCap"` + * + * */ export const useReadSaleRisingTideApplyCap = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'risingTide_applyCap', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"risingTide_isValidCap"` + * + * */ export const useReadSaleRisingTideIsValidCap = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'risingTide_isValidCap', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"risingTide_totalAllocatedUncapped"` + * + * */ export const useReadSaleRisingTideTotalAllocatedUncapped = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'risingTide_totalAllocatedUncapped', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"risingTide_totalCap"` + * + * */ export const useReadSaleRisingTideTotalCap = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'risingTide_totalCap', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"risingTide_validating"` + * + * */ export const useReadSaleRisingTideValidating = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'risingTide_validating', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"start"` + * + * */ export const useReadSaleStart = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'start', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"startRegistration"` + * + * */ export const useReadSaleStartRegistration = /*#__PURE__*/ createUseReadContract( - { abi: saleAbi, functionName: 'startRegistration' }, + { abi: saleAbi, address: saleAddress, functionName: 'startRegistration' }, ) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"supportsInterface"` + * + * */ export const useReadSaleSupportsInterface = /*#__PURE__*/ createUseReadContract( - { abi: saleAbi, functionName: 'supportsInterface' }, + { abi: saleAbi, address: saleAddress, functionName: 'supportsInterface' }, ) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"token"` + * + * */ export const useReadSaleToken = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'token', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"tokenToPaymentToken"` + * + * */ export const useReadSaleTokenToPaymentToken = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'tokenToPaymentToken', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"totalTokensForSale"` + * + * */ export const useReadSaleTotalTokensForSale = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'totalTokensForSale', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"totalUncappedAllocations"` + * + * */ export const useReadSaleTotalUncappedAllocations = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'totalUncappedAllocations', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"uncappedAllocation"` + * + * */ export const useReadSaleUncappedAllocation = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'uncappedAllocation', }) /** * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"withdrawn"` + * + * */ export const useReadSaleWithdrawn = /*#__PURE__*/ createUseReadContract({ abi: saleAbi, + address: saleAddress, functionName: 'withdrawn', }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ + * + * */ export const useWriteSale = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"buy"` + * + * */ export const useWriteSaleBuy = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'buy', }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"grantRole"` + * + * */ export const useWriteSaleGrantRole = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'grantRole', }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"refund"` + * + * */ export const useWriteSaleRefund = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'refund', }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"renounceRole"` + * + * */ export const useWriteSaleRenounceRole = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'renounceRole', }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"revokeRole"` + * + * */ export const useWriteSaleRevokeRole = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'revokeRole', }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"risingTide_validate"` + * + * */ export const useWriteSaleRisingTideValidate = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'risingTide_validate', }) +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setEnd"` + * + * + */ +export const useWriteSaleSetEnd = /*#__PURE__*/ createUseWriteContract({ + abi: saleAbi, + address: saleAddress, + functionName: 'setEnd', +}) + /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setIndividualCap"` + * + * */ export const useWriteSaleSetIndividualCap = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'setIndividualCap', }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMaxContribution"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMaxTarget"` + * + * */ -export const useWriteSaleSetMaxContribution = - /*#__PURE__*/ createUseWriteContract({ - abi: saleAbi, - functionName: 'setMaxContribution', - }) +export const useWriteSaleSetMaxTarget = /*#__PURE__*/ createUseWriteContract({ + abi: saleAbi, + address: saleAddress, + functionName: 'setMaxTarget', +}) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMerkleRoot"` + * + * */ export const useWriteSaleSetMerkleRoot = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'setMerkleRoot', }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMinContribution"` + * + * */ export const useWriteSaleSetMinContribution = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'setMinContribution', }) +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMinTarget"` + * + * + */ +export const useWriteSaleSetMinTarget = /*#__PURE__*/ createUseWriteContract({ + abi: saleAbi, + address: saleAddress, + functionName: 'setMinTarget', +}) + +/** + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setStart"` + * + * + */ +export const useWriteSaleSetStart = /*#__PURE__*/ createUseWriteContract({ + abi: saleAbi, + address: saleAddress, + functionName: 'setStart', +}) + /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setToken"` + * + * */ export const useWriteSaleSetToken = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'setToken', }) /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"withdraw"` + * + * */ export const useWriteSaleWithdraw = /*#__PURE__*/ createUseWriteContract({ abi: saleAbi, + address: saleAddress, functionName: 'withdraw', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ + * + * */ export const useSimulateSale = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"buy"` + * + * */ export const useSimulateSaleBuy = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, functionName: 'buy', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"grantRole"` + * + * */ export const useSimulateSaleGrantRole = /*#__PURE__*/ createUseSimulateContract( - { abi: saleAbi, functionName: 'grantRole' }, + { abi: saleAbi, address: saleAddress, functionName: 'grantRole' }, ) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"refund"` + * + * */ export const useSimulateSaleRefund = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, functionName: 'refund', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"renounceRole"` + * + * */ export const useSimulateSaleRenounceRole = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, functionName: 'renounceRole', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"revokeRole"` + * + * */ export const useSimulateSaleRevokeRole = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, functionName: 'revokeRole', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"risingTide_validate"` + * + * */ export const useSimulateSaleRisingTideValidate = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, functionName: 'risingTide_validate', }) +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setEnd"` + * + * + */ +export const useSimulateSaleSetEnd = /*#__PURE__*/ createUseSimulateContract({ + abi: saleAbi, + address: saleAddress, + functionName: 'setEnd', +}) + /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setIndividualCap"` + * + * */ export const useSimulateSaleSetIndividualCap = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, functionName: 'setIndividualCap', }) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMaxContribution"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMaxTarget"` + * + * */ -export const useSimulateSaleSetMaxContribution = +export const useSimulateSaleSetMaxTarget = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, - functionName: 'setMaxContribution', + address: saleAddress, + functionName: 'setMaxTarget', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMerkleRoot"` + * + * */ export const useSimulateSaleSetMerkleRoot = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, functionName: 'setMerkleRoot', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMinContribution"` + * + * + */ +export const useSimulateSaleSetMinContribution = + /*#__PURE__*/ createUseSimulateContract({ + abi: saleAbi, + address: saleAddress, + functionName: 'setMinContribution', + }) + +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setMinTarget"` + * + * */ -export const useSimulateSaleSetMinContribution = +export const useSimulateSaleSetMinTarget = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, - functionName: 'setMinContribution', + address: saleAddress, + functionName: 'setMinTarget', }) +/** + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setStart"` + * + * + */ +export const useSimulateSaleSetStart = /*#__PURE__*/ createUseSimulateContract({ + abi: saleAbi, + address: saleAddress, + functionName: 'setStart', +}) + /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"setToken"` + * + * */ export const useSimulateSaleSetToken = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, functionName: 'setToken', }) /** * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleAbi}__ and `functionName` set to `"withdraw"` + * + * */ export const useSimulateSaleWithdraw = /*#__PURE__*/ createUseSimulateContract({ abi: saleAbi, + address: saleAddress, functionName: 'withdraw', }) /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link saleAbi}__ + * + * */ export const useWatchSaleEvent = /*#__PURE__*/ createUseWatchContractEvent({ abi: saleAbi, + address: saleAddress, }) /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link saleAbi}__ and `eventName` set to `"Claim"` + * + * */ export const useWatchSaleClaimEvent = /*#__PURE__*/ createUseWatchContractEvent( - { abi: saleAbi, eventName: 'Claim' }, + { abi: saleAbi, address: saleAddress, eventName: 'Claim' }, ) /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link saleAbi}__ and `eventName` set to `"Purchase"` + * + * */ export const useWatchSalePurchaseEvent = /*#__PURE__*/ createUseWatchContractEvent({ abi: saleAbi, + address: saleAddress, eventName: 'Purchase', }) /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link saleAbi}__ and `eventName` set to `"Refund"` + * + * */ export const useWatchSaleRefundEvent = /*#__PURE__*/ createUseWatchContractEvent({ abi: saleAbi, + address: saleAddress, eventName: 'Refund', }) /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link saleAbi}__ and `eventName` set to `"RoleAdminChanged"` + * + * */ export const useWatchSaleRoleAdminChangedEvent = /*#__PURE__*/ createUseWatchContractEvent({ abi: saleAbi, + address: saleAddress, eventName: 'RoleAdminChanged', }) /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link saleAbi}__ and `eventName` set to `"RoleGranted"` + * + * */ export const useWatchSaleRoleGrantedEvent = /*#__PURE__*/ createUseWatchContractEvent({ abi: saleAbi, + address: saleAddress, eventName: 'RoleGranted', }) /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link saleAbi}__ and `eventName` set to `"RoleRevoked"` + * + * */ export const useWatchSaleRoleRevokedEvent = /*#__PURE__*/ createUseWatchContractEvent({ abi: saleAbi, + address: saleAddress, eventName: 'RoleRevoked', }) /** * Wraps __{@link useWatchContractEvent}__ with `abi` set to __{@link saleAbi}__ and `eventName` set to `"Withdraw"` + * + * */ export const useWatchSaleWithdrawEvent = /*#__PURE__*/ createUseWatchContractEvent({ abi: saleAbi, + address: saleAddress, eventName: 'Withdraw', }) @@ -20915,42 +21844,6 @@ export const useReadSaleTestTargetSenders = /*#__PURE__*/ createUseReadContract( { abi: saleTestAbi, functionName: 'targetSenders' }, ) -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"testConstructor"` - */ -export const useReadSaleTestTestConstructor = - /*#__PURE__*/ createUseReadContract({ - abi: saleTestAbi, - functionName: 'testConstructor', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_PaymentTokenToToken"` - */ -export const useReadSaleTestTestPaymentTokenToToken = - /*#__PURE__*/ createUseReadContract({ - abi: saleTestAbi, - functionName: 'test_PaymentTokenToToken', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundAmountIsZeroBeforeSale"` - */ -export const useReadSaleTestTestRefundAmountIsZeroBeforeSale = - /*#__PURE__*/ createUseReadContract({ - abi: saleTestAbi, - functionName: 'test_RefundAmountIsZeroBeforeSale', - }) - -/** - * Wraps __{@link useReadContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_TokenToPaymentToken"` - */ -export const useReadSaleTestTestTokenToPaymentToken = - /*#__PURE__*/ createUseReadContract({ - abi: saleTestAbi, - functionName: 'test_TokenToPaymentToken', - }) - /** * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ */ @@ -20975,165 +21868,12 @@ export const useWriteSaleTestSetUp = /*#__PURE__*/ createUseWriteContract({ }) /** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_Buy"` - */ -export const useWriteSaleTestTestBuy = /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_Buy', -}) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyMultiplePurchasesSameAccount"` - */ -export const useWriteSaleTestTestBuyMultiplePurchasesSameAccount = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_BuyMultiplePurchasesSameAccount', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyRevertsAfterReachingMaxTarget"` - */ -export const useWriteSaleTestTestBuyRevertsAfterReachingMaxTarget = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_BuyRevertsAfterReachingMaxTarget', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyRevertsWhenAboveMaximum"` - */ -export const useWriteSaleTestTestBuyRevertsWhenAboveMaximum = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_BuyRevertsWhenAboveMaximum', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyRevertsWhenBelowMinimum"` - */ -export const useWriteSaleTestTestBuyRevertsWhenBelowMinimum = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_BuyRevertsWhenBelowMinimum', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyRevertsWhenInvalidMerkleProof"` - */ -export const useWriteSaleTestTestBuyRevertsWhenInvalidMerkleProof = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_BuyRevertsWhenInvalidMerkleProof', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundAmountIsZeroIfAlreadyRefunded"` - */ -export const useWriteSaleTestTestRefundAmountIsZeroIfAlreadyRefunded = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_RefundAmountIsZeroIfAlreadyRefunded', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundAmountIsZeroIfIndividualCapIsHigherThanInvestedTotal"` - */ -export const useWriteSaleTestTestRefundAmountIsZeroIfIndividualCapIsHigherThanInvestedTotal = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: - 'test_RefundAmountIsZeroIfIndividualCapIsHigherThanInvestedTotal', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundReturnsCorrectAmmount"` - */ -export const useWriteSaleTestTestRefundReturnsCorrectAmmount = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_RefundReturnsCorrectAmmount', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundRevertsIfDoubleRefund"` - */ -export const useWriteSaleTestTestRefundRevertsIfDoubleRefund = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_RefundRevertsIfDoubleRefund', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundRevertsWhenCapIsNotSet"` - */ -export const useWriteSaleTestTestRefundRevertsWhenCapIsNotSet = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_RefundRevertsWhenCapIsNotSet', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_SetIndividualCap"` - */ -export const useWriteSaleTestTestSetIndividualCap = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_SetIndividualCap', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_SetIndividualCapFailsValidateForWrongValue"` - */ -export const useWriteSaleTestTestSetIndividualCapFailsValidateForWrongValue = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_SetIndividualCapFailsValidateForWrongValue', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_Withdraw"` - */ -export const useWriteSaleTestTestWithdraw = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_Withdraw', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_WithdrawDoesNotWithdrawRefunds"` - */ -export const useWriteSaleTestTestWithdrawDoesNotWithdrawRefunds = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_WithdrawDoesNotWithdrawRefunds', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_WithdrawOnlyOnce"` - */ -export const useWriteSaleTestTestWithdrawOnlyOnce = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_WithdrawOnlyOnce', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_WithdrawRevertsIfNoCapSet"` - */ -export const useWriteSaleTestTestWithdrawRevertsIfNoCapSet = - /*#__PURE__*/ createUseWriteContract({ - abi: saleTestAbi, - functionName: 'test_WithdrawRevertsIfNoCapSet', - }) - -/** - * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_WithdrawRevertsIfNotOwner"` + * Wraps __{@link useWriteContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_InitialContribution"` */ -export const useWriteSaleTestTestWithdrawRevertsIfNotOwner = +export const useWriteSaleTestTestInitialContribution = /*#__PURE__*/ createUseWriteContract({ abi: saleTestAbi, - functionName: 'test_WithdrawRevertsIfNotOwner', + functionName: 'test_InitialContribution', }) /** @@ -21160,166 +21900,12 @@ export const useSimulateSaleTestSetUp = /*#__PURE__*/ createUseSimulateContract( ) /** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_Buy"` - */ -export const useSimulateSaleTestTestBuy = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_Buy', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyMultiplePurchasesSameAccount"` - */ -export const useSimulateSaleTestTestBuyMultiplePurchasesSameAccount = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_BuyMultiplePurchasesSameAccount', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyRevertsAfterReachingMaxTarget"` - */ -export const useSimulateSaleTestTestBuyRevertsAfterReachingMaxTarget = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_BuyRevertsAfterReachingMaxTarget', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyRevertsWhenAboveMaximum"` - */ -export const useSimulateSaleTestTestBuyRevertsWhenAboveMaximum = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_BuyRevertsWhenAboveMaximum', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyRevertsWhenBelowMinimum"` - */ -export const useSimulateSaleTestTestBuyRevertsWhenBelowMinimum = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_BuyRevertsWhenBelowMinimum', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_BuyRevertsWhenInvalidMerkleProof"` - */ -export const useSimulateSaleTestTestBuyRevertsWhenInvalidMerkleProof = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_BuyRevertsWhenInvalidMerkleProof', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundAmountIsZeroIfAlreadyRefunded"` - */ -export const useSimulateSaleTestTestRefundAmountIsZeroIfAlreadyRefunded = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_RefundAmountIsZeroIfAlreadyRefunded', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundAmountIsZeroIfIndividualCapIsHigherThanInvestedTotal"` - */ -export const useSimulateSaleTestTestRefundAmountIsZeroIfIndividualCapIsHigherThanInvestedTotal = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: - 'test_RefundAmountIsZeroIfIndividualCapIsHigherThanInvestedTotal', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundReturnsCorrectAmmount"` - */ -export const useSimulateSaleTestTestRefundReturnsCorrectAmmount = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_RefundReturnsCorrectAmmount', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundRevertsIfDoubleRefund"` - */ -export const useSimulateSaleTestTestRefundRevertsIfDoubleRefund = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_RefundRevertsIfDoubleRefund', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_RefundRevertsWhenCapIsNotSet"` - */ -export const useSimulateSaleTestTestRefundRevertsWhenCapIsNotSet = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_RefundRevertsWhenCapIsNotSet', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_SetIndividualCap"` - */ -export const useSimulateSaleTestTestSetIndividualCap = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_SetIndividualCap', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_SetIndividualCapFailsValidateForWrongValue"` - */ -export const useSimulateSaleTestTestSetIndividualCapFailsValidateForWrongValue = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_SetIndividualCapFailsValidateForWrongValue', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_Withdraw"` - */ -export const useSimulateSaleTestTestWithdraw = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_Withdraw', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_WithdrawDoesNotWithdrawRefunds"` - */ -export const useSimulateSaleTestTestWithdrawDoesNotWithdrawRefunds = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_WithdrawDoesNotWithdrawRefunds', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_WithdrawOnlyOnce"` - */ -export const useSimulateSaleTestTestWithdrawOnlyOnce = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_WithdrawOnlyOnce', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_WithdrawRevertsIfNoCapSet"` - */ -export const useSimulateSaleTestTestWithdrawRevertsIfNoCapSet = - /*#__PURE__*/ createUseSimulateContract({ - abi: saleTestAbi, - functionName: 'test_WithdrawRevertsIfNoCapSet', - }) - -/** - * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_WithdrawRevertsIfNotOwner"` + * Wraps __{@link useSimulateContract}__ with `abi` set to __{@link saleTestAbi}__ and `functionName` set to `"test_InitialContribution"` */ -export const useSimulateSaleTestTestWithdrawRevertsIfNotOwner = +export const useSimulateSaleTestTestInitialContribution = /*#__PURE__*/ createUseSimulateContract({ abi: saleTestAbi, - functionName: 'test_WithdrawRevertsIfNotOwner', + functionName: 'test_InitialContribution', }) /**