1.1.1 • Published 9 months ago

node-stargate v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

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();
1.1.1

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago