Updates registered contract execution params (gas price, limit). Can also define a new admin account. Can be called only by admin (if defined) or contract itself.
type MsgUpdateContract struct {
Sender string `json:"sender,omitempty"`
// Unique Identifier for contract instance to be registered.
ContractAddress string `json:"contract_address,omitempty"`
// Maximum gas to be used for the smart contract execution.
GasLimit uint64 `json:"gas_limit,omitempty"`
// gas price to be used for the smart contract execution.
GasPrice uint64 `json:"gas_price,omitempty"`
// optional - admin account that will be allowed to perform any changes
AdminAddress string `json:"admin_address,omitempty"`
}
MsgDeactivateContract
Deactivates a registered contract (it will no longer be executed in begin blocker)
type MsgDeactivateContract struct {
Sender string `json:"sender,omitempty"`
// Unique Identifier for contract instance to be activated.
ContractAddress string `json:"contract_address,omitempty"`
}
MsgActivateContract
Reactivates a registered contract (it will be executed in begin blocker from now on again)
type MsgActivateContract struct {
Sender string `json:"sender,omitempty"`
// Unique Identifier for contract instance to be activated.
ContractAddress string `json:"contract_address,omitempty"`
}
MsgExecuteContract
Invokes a function defined within the smart contract. Function and parameters are encoded in ExecuteMsg, which is a JSON message encoded in Base64.