
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@knine-sdk/constants
Advanced tools
Constants for K9 Finance projects.
yarn add @knine-sdk/constants
import { CHAINS } from '@knine-sdk/constants';
console.log(CHAINS.Mainnet, CHAINS.Sepolia); // 1, 17000
import { CHAINS_IDS } from '@knine-sdk/constants';
console.log(CHAINS_IDS); // [1, 3, 4, 5, 42]
Color getter by chain id
import { CHAINS, getChainColor } from '@knine-sdk/constants';
const goerliChainColor = getChainColor(CHAINS.Goerli);
console.log(goerliChainColor); // #3099f2
import { TOKENS } from '@knine-sdk/constants';
console.log(TOKENS.BONE); // STETH
console.log(TOKENS.KNBONE); // LDO
Getter for Knine token addresses. Returns a contract address or throws an error if the contract is not deployed in the chain.
import { CHAINS, TOKENS, getTokenAddress } from '@knine-sdk/constants';
const stethAddress = getTokenAddress(CHAINS.Mainnet, TOKENS.STETH);
console.log(stethAddress); // 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
EACAggregatorProxy https://etherscan.io/address/0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
It’s used to get the ETH price
import { CHAINS, getAggregatorAddress } from '@knine-sdk/constants';
const aggregatorAddress = getAggregatorAddress(CHAINS.Mainnet);
console.log(aggregatorAddress); // 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
WithdrawalQueue contract for KNINE protocol
import { CHAINS, getWithdrawalQueueAddress } from '@knine-sdk/constants';
const withdrawalQueueAddress = getWithdrawalQueueAddress(CHAINS.Mainnet);
console.log(withdrawalQueueAddress); // 0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1
FAQs
Constants for K9 Finance projects.
We found that @knine-sdk/constants demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.