UNPKG

test-kohin-sdk

Version:

The Kohin JS is a comprehensive developer toolkit designed to integrate Kohin's decentralized insurance system seamlessly into your applications. It enables efficient interaction with Kohin smart contracts and backend APIs, facilitating management and ana

41 lines (40 loc) 1.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getEnvConstant = exports.CONSTANTS = void 0; const chains_1 = require("viem/chains"); const configStore_1 = require("./configStore"); exports.CONSTANTS = { test: { INSURANCE_POOL_ADDRESS: `0x34A07094A4e49A1cc745438Ba5aa033f2579DAAE`, COMBO_PREMIUM_CALCULATOR_ADDRESS: `0x9f80A70BA0BAc6D11e0337d66F3D8C4749b6E59C`, SINGLE_PREMIUM_CALCULATOR_ADDRESS: `0x2fBE3b2ebF36CEC07e52438045b33F2BcaBF4876`, TOKEN_ADDRESS: "0x683026Eb1b912795E4Eb1e73Da7e38C3F2f830c4", POLYGON_CHAIN: chains_1.polygonAmoy, BASE_URL: `https://offchain-testnet.kohin.xyz/`, POLICY_MANAGER_ADDRESS: `0xaaB9d1d8B41c295Ce252bCCDB7182133FE1c8041`, }, preProd: { INSURANCE_POOL_ADDRESS: `0x3E1D72AEF1034787F55371987488334Fe94d7bF3`, COMBO_PREMIUM_CALCULATOR_ADDRESS: `0x99c60c076BcdEA43F3154f1D5581C894b9a172a5`, SINGLE_PREMIUM_CALCULATOR_ADDRESS: `0x7cD561e020f6f558b79067F5E13C32589f0C6ef6`, TOKEN_ADDRESS: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F", POLYGON_CHAIN: chains_1.polygon, BASE_URL: `https://offchain-preprod.kohin.xyz/`, POLICY_MANAGER_ADDRESS: `0x7fb21e5126Ec2fb847d28480F654b026490d1D12`, }, prod: { INSURANCE_POOL_ADDRESS: `0xd1A9e1C2C0D0E7459fdae16a94aDB08d8c6321A5`, COMBO_PREMIUM_CALCULATOR_ADDRESS: `0xEd2051dc499F41e421B26Cd148f5BED3DB792d1B`, SINGLE_PREMIUM_CALCULATOR_ADDRESS: "", TOKEN_ADDRESS: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F", POLYGON_CHAIN: chains_1.polygon, BASE_URL: `https://offchain-prod.kohin.xyz/`, POLICY_MANAGER_ADDRESS: `0xE2fd078C28410d7D3F3daeF56795aD8507B1Ed81`, }, }; const getEnvConstant = (address) => { const envMode = configStore_1.configStore?.getEnvMode(); const result = exports.CONSTANTS[envMode][address]; return result; }; exports.getEnvConstant = getEnvConstant;