duality-labs / duality

Apache License 2.0
10 stars 5 forks source link

Update create-gauge command to accept pairIDs as separate tokens #420

Closed teddyknox closed 1 year ago

teddyknox commented 1 year ago

…to avoid CLI parsing issues.

dib542 commented 1 year ago

for documentation:

My original issue that being address here is that when I attempted to call create-gauge as indicated by the example

dualityd tx incentives create-gauge tokenD<>tokenF 1 20000 1000tokenD,1000tokenF 10000 1000 --from fred --keyring-backend test --broadcast-mode block

I got an error: Error: tokenD: PairID does not conform to pattern TokenA<>TokenB

this was because my shell/environment was actually passing "tokenD" as the argument to pairID, the <> characters were not interpreted as part of the string. And so to get the command to work I needed to add quotation marks:

dualityd tx incentives create-gauge "tokenD<>tokenF" 1 20000 1000tokenD,1000tokenF 10000 1000 --from fred --keyring-backend test --broadcast-mode block

which worked as intended