-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
epic: nibiru-std::math::{ SdkDec, DecimalExt } #106
Changes from all commits
8e7345f
2223242
8626f2b
25b339b
1c4a78a
d7c4451
508dcce
d29eee2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,72 @@ is whitelisted or not. | |
|
||
- InitMsg: Initializes the contract with the admin address. | ||
|
||
Save the following `shifter-0-inst.json`: | ||
```json | ||
{ "owner": "nibi1zaavvzxez0elundtn32qnk9lkm8kmcsz44g7xl" } | ||
``` | ||
|
||
```bash | ||
# FOR anyone | ||
alias tx="jq -rcs '.[0].txhash' | { read txhash; sleep 3; nibid q tx \$txhash | jq '{txhash, height, code, logs, tx, gas_wanted, gas_used}' >> out.json}" | ||
``` | ||
|
||
```bash | ||
nibid tx wasm inst 1 "$(cat shifter-0-inst.json)" --label="Crazy tester" --no-admin --from=$KEY_NAME -y | tx | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The command for contract instantiation using |
||
``` | ||
|
||
```bash | ||
# FOR ME | ||
alias tx="jq -rcs '.[0].txhash' | { read txhash; sleep 3; nibid q tx \$txhash | jq '{txhash, height, code, logs, gas_used, gas_wanted, tx}' | vv}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The alias |
||
``` | ||
|
||
CONTRACT=nibi14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssa9gcs | ||
CONTRACT=nibi1yyca08xqdgvjz0psg56z67ejh9xms6l436u8y58m82npdqqhmmtqzvacjr | ||
Comment on lines
+43
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate CONTRACT environment variable declarations are present. This seems like an oversight and could lead to confusion. Only one of these lines should be kept, preferably the one that is intended to be used in subsequent commands. |
||
|
||
|
||
- ExecuteMsg: Enum for executing msgs | ||
- ExecuteMsg::DepthShift | ||
|
||
|
||
sudo-add.json | ||
```json | ||
{ | ||
"action": "add_contracts", | ||
"contracts": [ | ||
"nibi14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssa9gcs", | ||
"nibi1yyca08xqdgvjz0psg56z67ejh9xms6l436u8y58m82npdqqhmmtqzvacjr" | ||
], | ||
"sender": "nibi1zaavvzxez0elundtn32qnk9lkm8kmcsz44g7xl" | ||
} | ||
``` | ||
|
||
```bash | ||
nibid tx sudo edit sudo-add.json -y --from=$KEY_NAME | ||
``` | ||
|
||
|
||
|
||
32E82D3CF2BBD48EDFFFDA260E4EF78D1E2B865A6111985B86BD74CDE8BA921B | ||
|
||
Save the following `shifter-1-exec-shift-peg.json`: | ||
```json | ||
{ | ||
"shift_peg_multiplier": { | ||
"pair": "ubtc:unusd", | ||
"new_peg_mult": "400001" | ||
} | ||
} | ||
``` | ||
|
||
```bash | ||
nibid tx wasm exec $CONTRACT "$(cat shifter-1-exec-shift-peg.json)" --from=$KEY_NAME -y | tx | ||
``` | ||
|
||
```bash | ||
nibid | ||
``` | ||
Comment on lines
+86
to
+87
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An incomplete bash command is present. This should either be completed with the correct command or removed if it was added by mistake. |
||
|
||
|
||
- ExecuteMsg::PegShift | ||
- ExecuteMsg::AddMember adds an address to the whitelist | ||
- ExecuteMsg::RemoveMember removes and address from the whitelist. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alias
tx
is defined for extracting the transaction hash and querying transaction details. It's a useful addition for users to quickly retrieve transaction information. However, consider adding a comment explaining the purpose of each part of the command for users who might not be familiar withjq
or the other command-line tools used here.