liquidity_provider

command
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

Liquidity Provider CLI tool

Allows to create and change liquidity provider in the ProximaX BC.

Usage

Common Flags
Name Description Type Default
sender private account of transaction sender (required) string -
url ProximaX Chain REST Url string http://127.0.0.1:3000
feeStrategy fee calculation strategy (low, middle, high) string middle
./lp <command> []<flag>
Create Command
Flags
Name Description Type Default
mosaic provider mosaic name (storage, streaming, sc) string -
initial amount of initial mosaics minting uint64 100000
deposit amount of currency deposit uint64 100000
slashingPeriod slashing period uint32 500
slashingAcc slashing account public key string -
ws window size unit16 5
a alpha uint32 500
b beta uint32 500
Example
./lp -url=http://127.0.0.1:3000 \
    -feeStrategy=middle \
    -sender=0000000000000000000000000000000000000000000000000000000000000000 \
    -mosaic=storage \
    -initial=100000 \
    -deposit=1000000 \
    -slashingPeriod=500 \
    -ws=5 \
    -a=500 \
    -b=500 \
    -slashingAcc=0000000000000000000000000000000000000000000000000000000000000000 \
    create
Change Command
Flags
Name Description Type Default
mosaic provider mosaic name (storage, streaming, sc) string -
currencyBalanceIncrease currency balance increase bool false
currencyBalanceChange currency balance change uint64 0
mosaicBalanceIncrease mosaic balance increase bool false
mosaicBalanceChange mosaic balance change uint64 0
Example
./lp -url=http://127.0.0.1:3000 \
    -feeStrategy=middle \
    -sender=7AA907C3D80B3815BE4B4E1470DEEE8BB83BFEB330B9A82197603D09BA947230 \
    -mosaic=storage \
    -currencyBalanceIncrease \
    -currencyBalanceChange=100 \
    -mosaicBalanceIncrease \
    -mosaicBalanceChange=200 \
    change

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL