66
77import * as CosmosBaseV1beta1Coin from "../../../cosmos/base/v1beta1/coin.pb"
88import * as fm from "../../../fetch.pb"
9+ import * as SecretComputeV1beta1Params from "./params.pb"
910export type MsgStoreCode = {
1011 sender ?: Uint8Array
1112 wasm_byte_code ?: Uint8Array
@@ -78,6 +79,45 @@ export type MsgClearAdmin = {
7879export type MsgClearAdminResponse = {
7980}
8081
82+ export type MsgUpdateParams = {
83+ authority ?: string
84+ params ?: SecretComputeV1beta1Params . Params
85+ }
86+
87+ export type MsgUpdateParamsResponse = {
88+ }
89+
90+ export type MsgUpgradeProposalPassed = {
91+ sender_address ?: string
92+ mr_enclave_hash ?: Uint8Array
93+ }
94+
95+ export type MsgUpgradeProposalPassedResponse = {
96+ }
97+
98+ export type MigrateContractInfo = {
99+ address ?: string
100+ new_code_id ?: string
101+ }
102+
103+ export type MsgMigrateContractProposal = {
104+ authority ?: string
105+ title ?: string
106+ description ?: string
107+ contracts ?: MigrateContractInfo [ ]
108+ }
109+
110+ export type MsgMigrateContractProposalResponse = {
111+ }
112+
113+ export type MsgSetContractGovernance = {
114+ sender ?: string
115+ contract_address ?: string
116+ }
117+
118+ export type MsgSetContractGovernanceResponse = {
119+ }
120+
81121export class Msg {
82122 static StoreCode ( req : MsgStoreCode , initReq ?: fm . InitReq ) : Promise < MsgStoreCodeResponse > {
83123 return fm . fetchReq < MsgStoreCode , MsgStoreCodeResponse > ( `/secret.compute.v1beta1.Msg/StoreCode` , { ...initReq , method : "POST" , body : JSON . stringify ( req , fm . replacer ) } )
@@ -97,4 +137,16 @@ export class Msg {
97137 static ClearAdmin ( req : MsgClearAdmin , initReq ?: fm . InitReq ) : Promise < MsgClearAdminResponse > {
98138 return fm . fetchReq < MsgClearAdmin , MsgClearAdminResponse > ( `/secret.compute.v1beta1.Msg/ClearAdmin` , { ...initReq , method : "POST" , body : JSON . stringify ( req , fm . replacer ) } )
99139 }
140+ static UpdateParams ( req : MsgUpdateParams , initReq ?: fm . InitReq ) : Promise < MsgUpdateParamsResponse > {
141+ return fm . fetchReq < MsgUpdateParams , MsgUpdateParamsResponse > ( `/secret.compute.v1beta1.Msg/UpdateParams` , { ...initReq , method : "POST" , body : JSON . stringify ( req , fm . replacer ) } )
142+ }
143+ static UpgradeProposalPassed ( req : MsgUpgradeProposalPassed , initReq ?: fm . InitReq ) : Promise < MsgUpgradeProposalPassedResponse > {
144+ return fm . fetchReq < MsgUpgradeProposalPassed , MsgUpgradeProposalPassedResponse > ( `/secret.compute.v1beta1.Msg/UpgradeProposalPassed` , { ...initReq , method : "POST" , body : JSON . stringify ( req , fm . replacer ) } )
145+ }
146+ static MigrateContractProposal ( req : MsgMigrateContractProposal , initReq ?: fm . InitReq ) : Promise < MsgMigrateContractProposalResponse > {
147+ return fm . fetchReq < MsgMigrateContractProposal , MsgMigrateContractProposalResponse > ( `/secret.compute.v1beta1.Msg/MigrateContractProposal` , { ...initReq , method : "POST" , body : JSON . stringify ( req , fm . replacer ) } )
148+ }
149+ static SetContractGovernance ( req : MsgSetContractGovernance , initReq ?: fm . InitReq ) : Promise < MsgSetContractGovernanceResponse > {
150+ return fm . fetchReq < MsgSetContractGovernance , MsgSetContractGovernanceResponse > ( `/secret.compute.v1beta1.Msg/SetContractGovernance` , { ...initReq , method : "POST" , body : JSON . stringify ( req , fm . replacer ) } )
151+ }
100152}
0 commit comments