@rosen-bridge/cli
v0.5.0
Published
The official Rosen bridge cli, providing helpers for the tasks related to Rosen bridge
Downloads
247
Keywords
Readme
@rosen-bridge/cli
Table of contents
Introduction
@rosen-bridge/cli
is the official Rosen bridge cli, providing helpers for the
tasks related to Rosen bridge.
Installation
npm:
npm i @rosen-bridge/cli
yarn:
yarn add @rosen-bridge/cli
Usage
The cli can be used through npx
.
npx @rosen-bridge/cli --help
download-assets
Downloads Rosen bridge assets (tokens and addresses files) from
contracts
repository on GitHub for
a specific chain type (e.g. mainnet, etc.).
npx @rosen-bridge/cli download-assets --help
Examples
Download assets for mainnet into a rosen
directory.
npx @rosen-bridge/cli download-assets --chain-type mainnet --out rosen
docker solution:
docker run -it --rm -v "$PWD"/rosen:/usr/src/app/rosen -w /usr/src/app node:18.16 npx --yes @rosen-bridge/cli download-assets --chain-type mainnet --out rosen
Download assets for testnet into a rosen
directory. If some pre-releases are
available for testnet, download them. Add suffix foo
to all downloaded asset
names.
npx @rosen-bridge/cli download-assets -c testnet -o rosen --include-prereleases --suffix foo
tss-secret-generate
Generate Tss publicKey/secret
npx @rosen-bridge/cli tss-secret-generate
docker solution:
docker run -it --rm node:18.16 npx --yes @rosen-bridge/cli tss-secret-genrate
blake2b-hash
blake2b hash of specified input
npx @rosen-bridge/cli blake2b-hash [input]
Examples
Get blake2b hash from hello
npx @rosen-bridge/cli blake2b-hash hello
docker solution:
docker run -it --rm node:18.16 npx --yes @rosen-bridge/cli blake2b-hash hello