You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* able to set mintFees for lazyClaim
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* add comments about mint fees
* remove mintfee settings in constructor
* use one setMintFees function to set mintFee and mintMerkleFee
* lint-fix
* add kill switch for claim initialization and tests
* use Pausable library from openzepplin
* fix wordings
* add more tests for pausing logic
* fix up tests to separate between owner of claim contract vs creator contract
* add comments
* dont use openzepplin lib
* rename to active
* separate out updatable mint fee lazyClam vs normal lazyClaim
* remove redundant artifacts
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* lint-fix
* ad comments
function withdraw(address payablereceiver, uint256amount) external;
40
+
41
+
/**
42
+
* @notice Set the Manifold Membership address
43
+
*/
44
+
function setMembershipAddress(addressmembershipAddress) external;
45
+
46
+
/**
47
+
* @notice Set the mint fees for claims
48
+
*/
49
+
function setMintFees(uint256mintFee, uint256mintFeeMerkle) external;
50
+
51
+
/**
52
+
* @notice Set the active state of the claim, whether to allow new claims to be initialized
53
+
*/
54
+
function setActive(boolactive) external;
55
+
56
+
/**
57
+
* @notice check if a mint index has been consumed or not (only for merkle claims)
58
+
*
59
+
* @param creatorContractAddress the address of the creator contract for the claim
60
+
* @param instanceId the claim instanceId for the creator contract
61
+
* @param mintIndex the mint claim instance
62
+
* @return whether or not the mint index was consumed
63
+
*/
64
+
function checkMintIndex(addresscreatorContractAddress, uint256instanceId, uint32mintIndex) externalviewreturns(bool);
65
+
66
+
/**
67
+
* @notice check if multiple mint indices has been consumed or not (only for merkle claims)
68
+
*
69
+
* @param creatorContractAddress the address of the creator contract for the claim
70
+
* @param instanceId the claim instanceId for the creator contract
71
+
* @param mintIndices the mint claim instance
72
+
* @return whether or not the mint index was consumed
73
+
*/
74
+
function checkMintIndices(addresscreatorContractAddress, uint256instanceId, uint32[] calldatamintIndices) externalviewreturns(bool[] memory);
75
+
76
+
/**
77
+
* @notice get mints made for a wallet (only for non-merkle claims with walletMax)
78
+
*
79
+
* @param minter the address of the minting address
80
+
* @param creatorContractAddress the address of the creator contract for the claim
81
+
* @param instanceId the claim instance for the creator contract
82
+
* @return how many mints the minter has made
83
+
*/
84
+
function getTotalMints(addressminter, addresscreatorContractAddress, uint256instanceId) externalviewreturns(uint32);
85
+
86
+
/**
87
+
* @notice allow a wallet to lazily claim a token according to parameters
88
+
* @param creatorContractAddress the creator contract address
89
+
* @param instanceId the claim instanceId for the creator contract
90
+
* @param mintIndex the mint index (only needed for merkle claims)
91
+
* @param merkleProof if the claim has a merkleRoot, verifying merkleProof ensures that address + minterValue was used to construct it (only needed for merkle claims)
92
+
* @param mintFor mintFor must be the msg.sender or a delegate wallet address (in the case of merkle based mints)
93
+
*/
94
+
function mint(addresscreatorContractAddress, uint256instanceId, uint32mintIndex, bytes32[] calldatamerkleProof, addressmintFor) externalpayable;
95
+
96
+
/**
97
+
* @notice allow a wallet to lazily claim a token according to parameters
98
+
* @param creatorContractAddress the creator contract address
99
+
* @param instanceId the claim instanceId for the creator contract
100
+
* @param mintCount the number of claims to mint
101
+
* @param mintIndices the mint index (only needed for merkle claims)
102
+
* @param merkleProofs if the claim has a merkleRoot, verifying merkleProof ensures that address + minterValue was used to construct it (only needed for merkle claims)
103
+
* @param mintFor mintFor must be the msg.sender or a delegate wallet address (in the case of merkle based mints)
104
+
*/
105
+
function mintBatch(addresscreatorContractAddress, uint256instanceId, uint16mintCount, uint32[] calldatamintIndices, bytes32[][] calldatamerkleProofs, addressmintFor) externalpayable;
106
+
107
+
/**
108
+
* @notice allow a proxy to mint a token for another address
109
+
* @param creatorContractAddress the creator contract address
110
+
* @param instanceId the claim instanceId for the creator contract
111
+
* @param mintCount the number of claims to mint
112
+
* @param mintIndices the mint index (only needed for merkle claims)
113
+
* @param merkleProofs if the claim has a merkleRoot, verifying merkleProof ensures that address + minterValue was used to construct it (only needed for merkle claims)
114
+
* @param mintFor the address to mint for
115
+
*/
116
+
function mintProxy(addresscreatorContractAddress, uint256instanceId, uint16mintCount, uint32[] calldatamintIndices, bytes32[][] calldatamerkleProofs, addressmintFor) externalpayable;
117
+
118
+
/**
119
+
* @notice allowlist minting based on signatures
120
+
* @param creatorContractAddress the creator contract address
121
+
* @param instanceId the claim instanceId for the creator contract
122
+
* @param mintCount the number of claims to mint
123
+
* @param signature if the claim has a signerAddress, verifying signatures were signed by it
124
+
* @param message the message that was signed
125
+
* @param nonce the nonce that was signed
126
+
* @param mintFor the address to mint for
127
+
*/
128
+
function mintSignature(addresscreatorContractAddress, uint256instanceId, uint16mintCount, bytescalldatasignature, bytes32message, bytes32nonce, addressmintFor, uint256expiration) externalpayable;
0 commit comments