@oone-lido-sdk/helpers
v1.0.2
Published
Helpers for Lido Finance projects. Part of [Lido JS SDK](https://github.com/lidofinance/lido-js-sdk/#readme)
Downloads
7
Maintainers
Readme
Helpers
Helpers for Lido Finance projects. Part of Lido JS SDK
Install
yarn add @oone-lido-sdk/helpers
Etherscan
A set of functions for generating links to etherscan
getEtherscanTxLink
import { getEtherscanTxLink } from '@oone-lido-sdk/helpers';
import { CHAINS } from '@oone-lido-sdk/constants';
const link = getEtherscanTxLink(
CHAINS.Mainnet,
'0x0000000000000000000000000000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/tx/0x0000000000000000000000000000000000000000000000000000000000000000
getEtherscanTokenLink
import { getEtherscanTokenLink } from '@oone-lido-sdk/helpers';
import { CHAINS } from '@oone-lido-sdk/constants';
const link = getEtherscanTokenLink(
CHAINS.Mainnet,
'0x0000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/address/0x0000000000000000000000000000000000000000
getEtherscanAddressLink
import { getEtherscanAddressLink } from '@oone-lido-sdk/helpers';
import { CHAINS } from '@oone-lido-sdk/constants';
const link = getEtherscanAddressLink(
CHAINS.Mainnet,
'0x0000000000000000000000000000000000000000',
);
console.log(link); // https://etherscan.io/address/0x0000000000000000000000000000000000000000
Open window
import { openWindow } from '@oone-lido-sdk/helpers';
openWindow('https://lido.fi');