createMerkleTreeFromAllowList

Create a MerkleTree based on an allow list of addresses and maxClaimable

function createMerkleTreeFromAllowList(
snapshotInput:
| Array<string>
| Array<{
address: string;
currencyAddress?: string;
maxClaimable?: string | number;
price?: string | number;
}>,
tokenDecimals: number,
version: SnapshotFormatVersion,
): Promise<MerkleTree>;

Parameters

the list of addresses and maxClaimable

Type

let snapshotInput:
| Array<string>
| Array<{
address: string;
currencyAddress?: string;
maxClaimable?: string | number;
price?: string | number;
}>;

optional decimals for the token to claim (default 18)

Type

let tokenDecimals: number;

optional version of the snapshot format (default V1)

Type

let version: SnapshotFormatVersion;

Returns

let returnType: Promise<MerkleTree>;

The generated MerkleTree