npm.io
1.1.1 • Published 2 years ago

node-stargate

Licence
ISC
Version
1.1.1
Deps
2
Size
89 kB
Vulns
0
Weekly
0

node-stargate

install

npm install node-stargate

support chains

["arb", "op", "polygon", "bsc", "avalanche", "fantom"]

initialization

import Stargate from "stargate-js";

const stg = new Stargate(privateKey, fromChain, toChain);
// example
const stg = new Stargate('xxx', 'arb', 'op');

add liquidity

const stg = new Stargate('xxx', 'arb', 'fantom');

// add 1USDT of arb chain to liquidity, so you should at least 1USDT on arb chain
stg.addLiquidity();

cross chain important!

// cross chain from arb to bsc
const stg = new Stargate('xxx', 'arb', 'bsc');

stg.startCrossChain();

stake LP

// stake LP of six chains.
const stg = new Stargate('xxx');

// stake LP of all six chains if there is LP exist
stg.stakeLP();