@pangolindex/sdk
Version:
🛠An SDK for building applications on top of Pangolin.
232 lines (231 loc) • 7.28 kB
TypeScript
export declare enum ChainId {
FUJI = 43113,
AVALANCHE = 43114,
WAGMI = 11111,
COSTON = 16,
SONGBIRD = 19,
FLARE_MAINNET = 14,
MONAD_MAINNET = 143,
NEAR_MAINNET = 329847900,
NEAR_TESTNET = 329847901,
HEDERA_TESTNET = 296,
HEDERA_MAINNET = 295,
POLYGON = 137,
ETHEREUM = 1,
OKXCHAIN = 66,
VELAS = 106,
BSC = 56,
CELO = 42220,
ARBITRUM = 42161,
AURORA = 1313161554,
CRONOS = 25,
FANTOM = 250,
FUSE = 122,
MOONRIVER = 1285,
MOONBEAM = 1284,
OP = 10,
XDAI = 100,
COSTON2 = 114,
EVMOS_TESTNET = 9000,
EVMOS_MAINNET = 9001,
SKALE_BELLATRIX_TESTNET = 1351057110
}
export declare enum StakingType {
LEGACY = "LEGACY",
SAR_POSITIONS = "SAR_POSITIONS",
NEAR_STAKING = "NEAR_STAKING"
}
interface StakingContract {
address: string;
active: boolean;
reward_token: string;
type: StakingType;
}
export declare enum AirdropType {
LEGACY = "LEGACY",
MERKLE = "MERKLE",
MERKLE_TO_STAKING = "MERKLE_TO_STAKING",
MERKLE_TO_STAKING_COMPLIANT = "MERKLE_TO_STAKING_COMPLIANT",
NEAR_AIRDROP = "NEAR_AIRDROP"
}
interface AirdropContract {
address: string;
active: boolean;
type: AirdropType;
}
interface AirdropContractTitled extends AirdropContract {
title: string;
}
export declare enum ChefType {
MINI_CHEF = "MINI_CHEF",
MINI_CHEF_V2 = "MINI_CHEF_V2",
PANGO_CHEF = "PANGO_CHEF",
NEAR_CHEF = "NEAR_CHEF"
}
export declare enum GovernanceType {
STANDARD = "STANDARD",
SAR_NFT = "SAR_NFT"
}
interface ChefContract {
address: string;
active: boolean;
type: ChefType;
compoundPoolIdForNonPngFarm?: number;
}
interface GovernanceContract {
address: string;
type: GovernanceType;
}
export declare enum NetworkType {
EVM = "EVM",
COSMOS = "COSMOS",
HEDERA = "HEDERA",
NEAR = "NEAR",
SUBNET = "SUBNET"
}
export interface Chain {
id: string;
name: string;
chain_id?: number;
mainnet: boolean;
pangolin_is_live: boolean;
tracked_by_debank: boolean;
supported_by_gelato: boolean;
supported_by_twap: boolean;
supported_by_bridge: boolean;
rpc_uri: string;
subgraph?: {
exchange?: string;
blocks?: string;
minichef?: string;
pangochef?: string;
singleStaking?: string;
elixir?: string;
governance?: string;
};
symbol: string;
nativeCurrency: {
name: string;
symbol: string;
decimals: number;
};
blockExplorerUrls?: string[];
png_symbol?: string;
logo?: string;
coingecko_id?: string;
debank_pangolin_id?: string;
contracts?: {
png: string;
factory: string;
router: string;
router_daas?: string;
wrapped_native_token: string;
local_multisig?: string;
community_treasury?: string;
treasury_vester?: string;
mini_chef?: ChefContract;
timelock?: string;
migrator?: string;
airdrop?: AirdropContract;
specialAirdrops?: AirdropContractTitled[];
foundation_multisig?: string;
joint_multisig?: string;
revenue_distributor?: string;
governor?: GovernanceContract;
governor_assistant?: string;
fee_collector?: string;
multicall: string;
staking?: StakingContract[];
elixir?: {
factory?: string;
nftDescriptorLibrary?: string;
nftDescriptor?: string;
nftManager?: string;
swapRouter?: string;
migrator?: string;
pangolinInterfaceMulticall?: string;
quoterV2?: string;
tickLens?: string;
};
};
network_type: NetworkType;
sub_network_types?: NetworkType[];
}
export interface BridgeChain extends Omit<Chain, 'chain_id'> {
chain_id?: number | string;
meta_data?: {
[key: string]: any;
};
}
export declare const ETHEREUM_MAINNET: Chain;
export declare const OKXCHAIN_MAINNET: Chain;
export declare const VELAS_MAINNET: Chain;
export declare const ARBITRUM_MAINNET: Chain;
export declare const ARBITRUM_RINKEBY: Chain;
export declare const AURORA_MAINNET: Chain;
export declare const AURORA_TESTNET: Chain;
export declare const AVALANCHE_MAINNET: Chain;
export declare const AVALANCHE_FUJI: Chain;
export declare const BOBA_MAINNET: Chain;
export declare const BITTORRENT_MAINNET: Chain;
export declare const BITTORRENT_TESTNET: Chain;
export declare const BSC_MAINNET: Chain;
export declare const BSC_TESTNET: Chain;
export declare const CELO_MAINNET: Chain;
export declare const CELO_ALFAJORES_TESTNET: Chain;
export declare const CELO_BAKLAVA_TESTNET: Chain;
export declare const CRONOS_MAINNET: Chain;
export declare const CRONOS_TESTNET: Chain;
export declare const COSTON_TESTNET: Chain;
export declare const EVMOS_TESTNET: Chain;
export declare const EVMOS_MAINNET: Chain;
export declare const FANTOM_MAINNET: Chain;
export declare const FANTOM_TESTNET: Chain;
export declare const FUSE_MAINNET: Chain;
export declare const FUSE_TESTNET: Chain;
export declare const HARMONY_MAINNET: Chain;
export declare const HARMONY_TESTNET: Chain;
export declare const HECO_MAINNET: Chain;
export declare const HECO_TESTNET: Chain;
export declare const KLAYTN_MAINNET: Chain;
export declare const KLAYTN_BAOBAB: Chain;
export declare const METIS_MAINNET: Chain;
export declare const METIS_RINKEBY: Chain;
export declare const MOONRIVER_MAINNET: Chain;
export declare const MOONBEAM_MAINNET: Chain;
export declare const MOONBEAM_MOONBASE: Chain;
export declare const NEAR_MAINNET: Chain;
export declare const NEAR_TESTNET: Chain;
export declare const HEDERA_TESTNET: Chain;
export declare const HEDERA_MAINNET: Chain;
export declare const OEC_MAINNET: Chain;
export declare const OEC_TESTNET: Chain;
export declare const OP_MAINNET: Chain;
export declare const OP_KOVAN: Chain;
export declare const POLYGON_MAINNET: Chain;
export declare const POLYGON_MUMBAI: Chain;
export declare const SONGBIRD_CANARY: Chain;
export declare const FLARE_MAINNET: Chain;
export declare const MONAD_MAINNET: Chain;
export declare const WAGMI_FUJI_SUBNET: Chain;
export declare const XDAI_MAINNET: Chain;
export declare const EWC_MAINNET: Chain;
export declare const EWC_TESTNET: Chain;
export declare const IOTEX_MAINNET: Chain;
export declare const IOTEX_TESTNET: Chain;
export declare const ASTAR_MAINNET: Chain;
export declare const SHIDEN_MAINNET: Chain;
export declare const SHIBUYA_TESTNET: Chain;
export declare const TELOS_MAINNET: Chain;
export declare const TELOS_TESTNET: Chain;
export declare const OASIS_MAINNET: Chain;
export declare const OASIS_TESTNET: Chain;
export declare const GODWOKEN_MAINNET: Chain;
export declare const GODWOKEN_TESTNET: Chain;
export declare const COSTON2_TESTNET: Chain;
export declare const SKALE_BELLATRIX_TESTNET: Chain;
export declare const CHAINS: {
[chainId in ChainId]: Chain;
};
export declare const ALL_CHAINS: Chain[];
export {};