Skip to main content

MerkleExecute

Git Source

Structs

ConstructorParams

Struct encapsulating the constructor parameters of Merkle Execute campaigns.

The fields are arranged alphabetically.

struct ConstructorParams {
string campaignName;
uint40 campaignStartTime;
uint40 expiration;
address initialAdmin;
string ipfsCID;
bytes32 merkleRoot;
bytes4 selector;
address target;
IERC20 token;
}

Properties

NameTypeDescription
campaignNamestringThe name of the campaign.
campaignStartTimeuint40The start time of the campaign, as a Unix timestamp.
expirationuint40The expiration of the campaign, as a Unix timestamp. A value of zero means the campaign does not expire.
initialAdminaddressThe initial admin of the campaign.
ipfsCIDstringThe content identifier for indexing the contract on IPFS. An empty value may break certain UI features that depend upon the IPFS CID.
merkleRootbytes32The Merkle root of the claim data.
selectorbytes4The function selector to call on the target contract when users claim tokens.
targetaddressThe address of the target contract (staking contract, lending pool) to which the function selector will be called when users claim tokens.
tokenIERC20The contract address of the ERC-20 token to be distributed.