Closed Unique-Divine closed 1 year ago
Follows the pattern of accessing messages through the Msg object.
Msg
Instead of assuming knowledge on the user to access each method and importing each class individually from nibiru/msg/__init__.py:
nibiru/msg/__init__.py
import nibiru.msg msgs = [ nibiru.msg.MsgOpenPosition(), nibiru.msg.MsgAddMargin(), nibiru.msg.MsgSend(), ]
We can instead access messages in a module-wise pattern similar to how they are on-chain:
from nibiru import Msg msgs = [ Msg.perp.open_position(), Msg.perp.add_margin(), Msg.bank.send(), ]
BLOCK
TxConfig
ASYNC
Description
Follows the pattern of accessing messages through the
Msg
object.Instead of assuming knowledge on the user to access each method and importing each class individually from
nibiru/msg/__init__.py
:We can instead access messages in a module-wise pattern similar to how they are on-chain:
Other changes
BLOCK
the default setting for theTxConfig
instead ofASYNC
since that causes lots of issues for new users