Skip to content

Commit

Permalink
docs(core-shifter): Add example response to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine authored Dec 18, 2023
1 parent 549ca1f commit 0358fad
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion contracts/core-shifter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,51 @@ nibid tx wasm exec $CONTRACT "$(cat shifter-1-exec-shift-peg.json)" --from=$KEY



Example successful response (from the `logs.events` field):
```json
[
{
"type": "execute",
"attributes": [
{
"key": "_contract_address",
"value": "nibi1suhgf5svhu4usrurvxzlgn54ksxmn8gljarjtxqnapv8kjnp4nrs0gfase"
}
]
},
{
"type": "wasm",
"attributes": [
{
"key": "_contract_address",
"value": "nibi1suhgf5svhu4usrurvxzlgn54ksxmn8gljarjtxqnapv8kjnp4nrs0gfase"
},
{
"key": "action",
"value": "shift_peg_multiplier"
}
]
},
{
"type": "nibiru.perp.v2.EventShiftPegMultiplier",
"attributes": [
{
"key": "cost_paid",
"value": "{\"denom\":\"tf/nibi14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssa9gcs/unusd\",\"amount\":\"0\"}"
},
{
"key": "new_peg_multiplier",
"value": "\"400001.000000000000000000\""
},
{
"key": "old_peg_multiplier",
"value": "\"41450.000000000000000000\""
}
]
}
]
```



<!-- ```bash -->
Expand All @@ -164,4 +209,4 @@ nibid tx wasm exec $CONTRACT "$(cat shifter-1-exec-shift-peg.json)" --from=$KEY
- ExecuteMsg::PegShift
- ExecuteMsg::AddMember adds an address to the whitelist
- ExecuteMsg::RemoveMember removes and address from the whitelist.
- ExecuteMsg::ChangeAdmin lets the current admin set a new one.
- ExecuteMsg::ChangeAdmin lets the current admin set a new one.

0 comments on commit 0358fad

Please sign in to comment.