Liquid Staked NIBI (stNIBI) Eris Protocol Smart Contract Calls #2164
Unique-Divine
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Liquid Staked NIBI (stNIBI)
This is an outline of specific Web3 calls for liquid staking using the Eris hub contract on the Nibiru mainnet.
To liquid stake and liquid unstake are called "bond" and "unbond" on the Eris Rust enums.
Liquid Staking: Web3 calls
1 - Liquid stake - IBC wallet
[1 - Liquid stake - IBC wallet]
Here's an example tx body (part of it) for a liquid staking call:
This value for
msg
, "eyJib25kIjp7fX0=", is the base 64 encoded version of the execute message:The contract at address
"nibi1udqqx30cw8nwjxtl4l28ym9hhrp933zlq8dqxfjzcdhvl8y24zcqpzmh8m" is called a "hub" in the Eris lingo. The available tx types correspond to these Rust enums
from the smart
contract.
2 - Liquid stake - EVM Wallet
This is the same as (1), except the message is routed through the Wasm.sol
precompiled contract on the EVM.
3 - Redeem / Unstake - IBC wallet
[Un(liquid) stake - IBC wallet]
4 - Redeem / Unstake - EVM Wallet
This is the same as (3), except the message is routed through the Wasm.sol
precompiled contract on the EVM.
Queries
This is the QueryMsg::State from the Eris hub contract.
Returns this object
Beta Was this translation helpful? Give feedback.
All reactions