getProofsForAllowListEntry

Get the proofs for a given entry of addresses

function getProofsForAllowListEntry(
merkleTree: MerkleTree,
snapshotEntry: {
address: string;
currencyAddress?: string;
maxClaimable: string;
price?: string;
},
tokenDecimals: number,
version: SnapshotFormatVersion,
): Promise<Array<string>>;

Parameters

the merkle tree to get the proof from

Type

let merkleTree: MerkleTree;

the entry to get the proof for

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