hashAllowListEntry

Hash an allow list entry for use in a MerkleTree

function hashAllowListEntry(
snapshotEntry: {
address: string;
currencyAddress?: string;
maxClaimable: string;
price?: string;
},
tokenDecimals: number,
version: SnapshotFormatVersion,
): string;

Parameters

the entry to hash

Type

let snapshotEntry: {
address: string;
currencyAddress?: string;
maxClaimable: string;
price?: string;
};

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: string;