terra_sdk.core.wasm.msgs
Wasm module messages.
MsgStoreCode Objects
_2@attr.s_2class MsgStoreCode(Msg)
Upload a new smart contract WASM binary to the blockchain.
Arguments:
sender- address of senderwasm_byte_code- base64-encoded string containing bytecodeinstantiate_permission- access control to apply on contract creation, optional
MsgInstantiateContract Objects
_2@attr.s_2class MsgInstantiateContract(Msg)
Creates a new instance of a smart contract from existing code on the blockchain.
Arguments:
sender- address of senderadmin- address of contract admincode_idint - code ID to use for instantiationlabelstr - label for the contract.msgdict|str - InitMsg to initialize contractfundsCoins - initial amount of coins to be sent to contract
MsgExecuteContract Objects
_2@attr.s_2class MsgExecuteContract(Msg)
Execute a state-mutating function on a smart contract.
Arguments:
sender- address of sendercontract- address of contract to execute function onmsgdict|str - ExecuteMsg to passcoins- coins to be sent, if needed by contract to execute. Defaults to emptyCoins()
MsgMigrateContract Objects
_2@attr.s_2class MsgMigrateContract(Msg)
Migrate the contract to a different code ID.
Arguments:
sender- address of contract admincontract- address of contract to migratecode_idint - new code ID to migrate tomsgdict|str - MigrateMsg to execute
MsgUpdateAdmin Objects
_2@attr.s_2class MsgUpdateAdmin(Msg)
Update a smart contract's admin.
Arguments:
sender- address of current admin (sender)new_admin- address of new admincontract- address of contract to change
MsgClearAdmin Objects
_2@attr.s_2class MsgClearAdmin(Msg)
Clears the contract's admin field.
Arguments:
admin- address of current admin (sender)contract- address of contract to change