Interface: WasmTxExtensionMethods
@shareledgerjs/client.wasm.WasmTxExtensionMethods
Methods
clearAdmin
▸ clearAdmin(sender
, contract
): MsgClearAdminEncodeObject
Parameters
Name | Type |
---|---|
sender | string |
contract | string |
Returns
executeContract
▸ executeContract<U
>(sender
, contract
, msg
, funds
): MsgExecuteContractEncodeObject
Type parameters
Name | Type |
---|---|
U | extends unknown |
Parameters
Name | Type |
---|---|
sender | string |
contract | string |
msg | U |
funds | Coin [] |
Returns
MsgExecuteContractEncodeObject
instantiateContract
▸ instantiateContract<U
>(sender
, admin
, codeId
, label
, msg
, funds
): MsgInstantiateContractEncodeObject
Type parameters
Name | Type |
---|---|
U | extends unknown |
Parameters
Name | Type |
---|---|
sender | string |
admin | string |
codeId | Long |
label | string |
msg | U |
funds | Coin [] |
Returns
MsgInstantiateContractEncodeObject
migrateContract
▸ migrateContract<U
>(sender
, contract
, codeId
, msg
): MsgMigrateContractEncodeObject
Type parameters
Name | Type |
---|---|
U | extends unknown |
Parameters
Name | Type |
---|---|
sender | string |
contract | string |
codeId | Long |
msg | U |
Returns
MsgMigrateContractEncodeObject
storeCode
▸ storeCode(sender
, wasmByteCode
, instantiatePermission?
): MsgStoreCodeEncodeObject
Parameters
Name | Type |
---|---|
sender | string |
wasmByteCode | Uint8Array |
instantiatePermission? | AccessConfig |
Returns
updateAdmin
▸ updateAdmin(sender
, newAdmin
, contract
): MsgUpdateAdminEncodeObject
Parameters
Name | Type |
---|---|
sender | string |
newAdmin | string |
contract | string |