UNPKG

@angleprotocol/sdk

Version:
17 lines (16 loc) 1.04 kB
import MerkleTree from 'merkletreejs'; import { ExtensiveDistributionParametersStructOutput } from '../constants/types/DistributionCreator'; import { AggregatedRewardsType, AMMType, MerklSupportedChainIdsType, UnderlyingTreeType } from '../types'; export declare const buildMerklTree: (underylingTreeData: UnderlyingTreeType) => { tree: MerkleTree; tokens: string[]; }; export declare const tokensFromTree: (json: AggregatedRewardsType['rewards']) => string[]; export declare const buildPoolList: (chainId: MerklSupportedChainIdsType, data: ExtensiveDistributionParametersStructOutput[]) => Promise<{ address: string; amm: AMMType; }[]>; export declare const getBlacklist: (wrapperList: string[], wrapperType: number[]) => string[]; export declare const isBlacklisted: (user: string, wrapperList: string[], wrapperType: number[]) => boolean; export declare const getWhitelist: (wrapperList: string[], wrapperType: number[]) => string[]; export declare const isWhitelisted: (user: string, whitelist: string[]) => boolean;