Skip to main content

MerkleBase

Git Source

Structs

ConstructorParams

Struct encapsulating the base constructor parameters of a Merkle campaign.

struct ConstructorParams {
IERC20 token;
uint40 expiration;
address initialAdmin;
string ipfsCID;
bytes32 merkleRoot;
string campaignName;
string shape;
}

Properties

NameTypeDescription
tokenIERC20The contract address of the ERC-20 token to be distributed.
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.
merkleRootbytes32The Merkle root of the claim data.
campaignNamestringThe name of the campaign. It is truncated if exceeding 32 bytes
shapestringThe shape of Lockup stream is used for differentiating between streams in the UI. It is truncated if exceeding 32 bytes.