From 8eac7f56b3aaa83d170d86b685dae2386b1b76ff Mon Sep 17 00:00:00 2001 From: "artem.ivanov" Date: Tue, 19 Nov 2024 10:06:04 +0300 Subject: [PATCH] Updated ts-client --- .../module.ts | 72 +-- .../registry.ts | 8 +- .../module.ts | 48 +- .../registry.ts | 4 +- .../module.ts | 96 ++-- .../registry.ts | 12 +- .../module.ts | 420 +++++++++--------- .../registry.ts | 52 +-- .../rest.ts | 1 + .../types.ts | 2 + .../pki/genesis.ts | 23 +- .../distributedcomplianceledger/pki/query.ts | 16 +- .../module.ts | 88 ++-- .../registry.ts | 8 +- .../module.ts | 48 +- .../registry.ts | 4 +- 16 files changed, 470 insertions(+), 432 deletions(-) diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.compliance/module.ts b/ts-client/zigbeealliance.distributedcomplianceledger.compliance/module.ts index fd79838f3..c792d5d4a 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.compliance/module.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.compliance/module.ts @@ -7,10 +7,10 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgUpdateComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; -import { MsgCertifyModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; import { MsgDeleteComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; +import { MsgCertifyModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; import { MsgProvisionModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; +import { MsgUpdateComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; import { MsgRevokeModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; import { CertifiedModel as typeCertifiedModel} from "./types" @@ -20,10 +20,10 @@ import { DeviceSoftwareCompliance as typeDeviceSoftwareCompliance} from "./types import { ProvisionalModel as typeProvisionalModel} from "./types" import { RevokedModel as typeRevokedModel} from "./types" -export { MsgUpdateComplianceInfo, MsgCertifyModel, MsgDeleteComplianceInfo, MsgProvisionModel, MsgRevokeModel }; +export { MsgDeleteComplianceInfo, MsgCertifyModel, MsgProvisionModel, MsgUpdateComplianceInfo, MsgRevokeModel }; -type sendMsgUpdateComplianceInfoParams = { - value: MsgUpdateComplianceInfo, +type sendMsgDeleteComplianceInfoParams = { + value: MsgDeleteComplianceInfo, fee?: StdFee, memo?: string }; @@ -34,14 +34,14 @@ type sendMsgCertifyModelParams = { memo?: string }; -type sendMsgDeleteComplianceInfoParams = { - value: MsgDeleteComplianceInfo, +type sendMsgProvisionModelParams = { + value: MsgProvisionModel, fee?: StdFee, memo?: string }; -type sendMsgProvisionModelParams = { - value: MsgProvisionModel, +type sendMsgUpdateComplianceInfoParams = { + value: MsgUpdateComplianceInfo, fee?: StdFee, memo?: string }; @@ -53,22 +53,22 @@ type sendMsgRevokeModelParams = { }; -type msgUpdateComplianceInfoParams = { - value: MsgUpdateComplianceInfo, +type msgDeleteComplianceInfoParams = { + value: MsgDeleteComplianceInfo, }; type msgCertifyModelParams = { value: MsgCertifyModel, }; -type msgDeleteComplianceInfoParams = { - value: MsgDeleteComplianceInfo, -}; - type msgProvisionModelParams = { value: MsgProvisionModel, }; +type msgUpdateComplianceInfoParams = { + value: MsgUpdateComplianceInfo, +}; + type msgRevokeModelParams = { value: MsgRevokeModel, }; @@ -103,17 +103,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgUpdateComplianceInfo({ value, fee, memo }: sendMsgUpdateComplianceInfoParams): Promise { + async sendMsgDeleteComplianceInfo({ value, fee, memo }: sendMsgDeleteComplianceInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateComplianceInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeleteComplianceInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgUpdateComplianceInfo({ value: MsgUpdateComplianceInfo.fromPartial(value) }) + let msg = this.msgDeleteComplianceInfo({ value: MsgDeleteComplianceInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateComplianceInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeleteComplianceInfo: Could not broadcast Tx: '+ e.message) } }, @@ -131,31 +131,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgDeleteComplianceInfo({ value, fee, memo }: sendMsgDeleteComplianceInfoParams): Promise { + async sendMsgProvisionModel({ value, fee, memo }: sendMsgProvisionModelParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeleteComplianceInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgProvisionModel: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgDeleteComplianceInfo({ value: MsgDeleteComplianceInfo.fromPartial(value) }) + let msg = this.msgProvisionModel({ value: MsgProvisionModel.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeleteComplianceInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgProvisionModel: Could not broadcast Tx: '+ e.message) } }, - async sendMsgProvisionModel({ value, fee, memo }: sendMsgProvisionModelParams): Promise { + async sendMsgUpdateComplianceInfo({ value, fee, memo }: sendMsgUpdateComplianceInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgProvisionModel: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateComplianceInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgProvisionModel({ value: MsgProvisionModel.fromPartial(value) }) + let msg = this.msgUpdateComplianceInfo({ value: MsgUpdateComplianceInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgProvisionModel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateComplianceInfo: Could not broadcast Tx: '+ e.message) } }, @@ -174,11 +174,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht }, - msgUpdateComplianceInfo({ value }: msgUpdateComplianceInfoParams): EncodeObject { + msgDeleteComplianceInfo({ value }: msgDeleteComplianceInfoParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgUpdateComplianceInfo", value: MsgUpdateComplianceInfo.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgDeleteComplianceInfo", value: MsgDeleteComplianceInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateComplianceInfo: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeleteComplianceInfo: Could not create message: ' + e.message) } }, @@ -190,19 +190,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgDeleteComplianceInfo({ value }: msgDeleteComplianceInfoParams): EncodeObject { + msgProvisionModel({ value }: msgProvisionModelParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgDeleteComplianceInfo", value: MsgDeleteComplianceInfo.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel", value: MsgProvisionModel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeleteComplianceInfo: Could not create message: ' + e.message) + throw new Error('TxClient:MsgProvisionModel: Could not create message: ' + e.message) } }, - msgProvisionModel({ value }: msgProvisionModelParams): EncodeObject { + msgUpdateComplianceInfo({ value }: msgUpdateComplianceInfoParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel", value: MsgProvisionModel.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgUpdateComplianceInfo", value: MsgUpdateComplianceInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgProvisionModel: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateComplianceInfo: Could not create message: ' + e.message) } }, diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.compliance/registry.ts b/ts-client/zigbeealliance.distributedcomplianceledger.compliance/registry.ts index ae2ff0273..4ad67b5c3 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.compliance/registry.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.compliance/registry.ts @@ -1,15 +1,15 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgUpdateComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; -import { MsgCertifyModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; import { MsgDeleteComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; +import { MsgCertifyModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; import { MsgProvisionModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; +import { MsgUpdateComplianceInfo } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; import { MsgRevokeModel } from "./types/zigbeealliance/distributedcomplianceledger/compliance/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/zigbeealliance.distributedcomplianceledger.compliance.MsgUpdateComplianceInfo", MsgUpdateComplianceInfo], - ["/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", MsgCertifyModel], ["/zigbeealliance.distributedcomplianceledger.compliance.MsgDeleteComplianceInfo", MsgDeleteComplianceInfo], + ["/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", MsgCertifyModel], ["/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel", MsgProvisionModel], + ["/zigbeealliance.distributedcomplianceledger.compliance.MsgUpdateComplianceInfo", MsgUpdateComplianceInfo], ["/zigbeealliance.distributedcomplianceledger.compliance.MsgRevokeModel", MsgRevokeModel], ]; diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.dclauth/module.ts b/ts-client/zigbeealliance.distributedcomplianceledger.dclauth/module.ts index 1c12dd37c..ce05bdd4a 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.dclauth/module.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.dclauth/module.ts @@ -7,8 +7,8 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgProposeAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; import { MsgApproveRevokeAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; +import { MsgProposeAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; import { MsgProposeRevokeAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; import { MsgRejectAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; import { MsgApproveAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; @@ -21,16 +21,16 @@ import { PendingAccountRevocation as typePendingAccountRevocation} from "./types import { RejectedAccount as typeRejectedAccount} from "./types" import { RevokedAccount as typeRevokedAccount} from "./types" -export { MsgProposeAddAccount, MsgApproveRevokeAccount, MsgProposeRevokeAccount, MsgRejectAddAccount, MsgApproveAddAccount }; +export { MsgApproveRevokeAccount, MsgProposeAddAccount, MsgProposeRevokeAccount, MsgRejectAddAccount, MsgApproveAddAccount }; -type sendMsgProposeAddAccountParams = { - value: MsgProposeAddAccount, +type sendMsgApproveRevokeAccountParams = { + value: MsgApproveRevokeAccount, fee?: StdFee, memo?: string }; -type sendMsgApproveRevokeAccountParams = { - value: MsgApproveRevokeAccount, +type sendMsgProposeAddAccountParams = { + value: MsgProposeAddAccount, fee?: StdFee, memo?: string }; @@ -54,14 +54,14 @@ type sendMsgApproveAddAccountParams = { }; -type msgProposeAddAccountParams = { - value: MsgProposeAddAccount, -}; - type msgApproveRevokeAccountParams = { value: MsgApproveRevokeAccount, }; +type msgProposeAddAccountParams = { + value: MsgProposeAddAccount, +}; + type msgProposeRevokeAccountParams = { value: MsgProposeRevokeAccount, }; @@ -104,31 +104,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgProposeAddAccount({ value, fee, memo }: sendMsgProposeAddAccountParams): Promise { + async sendMsgApproveRevokeAccount({ value, fee, memo }: sendMsgApproveRevokeAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgProposeAddAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgApproveRevokeAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgProposeAddAccount({ value: MsgProposeAddAccount.fromPartial(value) }) + let msg = this.msgApproveRevokeAccount({ value: MsgApproveRevokeAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgProposeAddAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgApproveRevokeAccount: Could not broadcast Tx: '+ e.message) } }, - async sendMsgApproveRevokeAccount({ value, fee, memo }: sendMsgApproveRevokeAccountParams): Promise { + async sendMsgProposeAddAccount({ value, fee, memo }: sendMsgProposeAddAccountParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgApproveRevokeAccount: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgProposeAddAccount: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgApproveRevokeAccount({ value: MsgApproveRevokeAccount.fromPartial(value) }) + let msg = this.msgProposeAddAccount({ value: MsgProposeAddAccount.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgApproveRevokeAccount: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgProposeAddAccount: Could not broadcast Tx: '+ e.message) } }, @@ -175,19 +175,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht }, - msgProposeAddAccount({ value }: msgProposeAddAccountParams): EncodeObject { + msgApproveRevokeAccount({ value }: msgApproveRevokeAccountParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeAddAccount", value: MsgProposeAddAccount.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveRevokeAccount", value: MsgApproveRevokeAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgProposeAddAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgApproveRevokeAccount: Could not create message: ' + e.message) } }, - msgApproveRevokeAccount({ value }: msgApproveRevokeAccountParams): EncodeObject { + msgProposeAddAccount({ value }: msgProposeAddAccountParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveRevokeAccount", value: MsgApproveRevokeAccount.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeAddAccount", value: MsgProposeAddAccount.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgApproveRevokeAccount: Could not create message: ' + e.message) + throw new Error('TxClient:MsgProposeAddAccount: Could not create message: ' + e.message) } }, diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.dclauth/registry.ts b/ts-client/zigbeealliance.distributedcomplianceledger.dclauth/registry.ts index c44224ed3..8e8ad9b46 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.dclauth/registry.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.dclauth/registry.ts @@ -1,13 +1,13 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgProposeAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; import { MsgApproveRevokeAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; +import { MsgProposeAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; import { MsgProposeRevokeAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; import { MsgRejectAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; import { MsgApproveAddAccount } from "./types/zigbeealliance/distributedcomplianceledger/dclauth/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeAddAccount", MsgProposeAddAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveRevokeAccount", MsgApproveRevokeAccount], + ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeAddAccount", MsgProposeAddAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", MsgProposeRevokeAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", MsgRejectAddAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveAddAccount", MsgApproveAddAccount], diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.model/module.ts b/ts-client/zigbeealliance.distributedcomplianceledger.model/module.ts index 13ff97e47..f12d38c4f 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.model/module.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.model/module.ts @@ -8,11 +8,11 @@ import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; import { MsgUpdateModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; -import { MsgDeleteModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; +import { MsgCreateModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; import { MsgUpdateModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; -import { MsgDeleteModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; import { MsgCreateModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; -import { MsgCreateModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; +import { MsgDeleteModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; +import { MsgDeleteModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; import { Model as typeModel} from "./types" import { ModelVersion as typeModelVersion} from "./types" @@ -20,7 +20,7 @@ import { ModelVersions as typeModelVersions} from "./types" import { Product as typeProduct} from "./types" import { VendorProducts as typeVendorProducts} from "./types" -export { MsgUpdateModel, MsgDeleteModelVersion, MsgUpdateModelVersion, MsgDeleteModel, MsgCreateModel, MsgCreateModelVersion }; +export { MsgUpdateModel, MsgCreateModelVersion, MsgUpdateModelVersion, MsgCreateModel, MsgDeleteModel, MsgDeleteModelVersion }; type sendMsgUpdateModelParams = { value: MsgUpdateModel, @@ -28,8 +28,8 @@ type sendMsgUpdateModelParams = { memo?: string }; -type sendMsgDeleteModelVersionParams = { - value: MsgDeleteModelVersion, +type sendMsgCreateModelVersionParams = { + value: MsgCreateModelVersion, fee?: StdFee, memo?: string }; @@ -40,20 +40,20 @@ type sendMsgUpdateModelVersionParams = { memo?: string }; -type sendMsgDeleteModelParams = { - value: MsgDeleteModel, +type sendMsgCreateModelParams = { + value: MsgCreateModel, fee?: StdFee, memo?: string }; -type sendMsgCreateModelParams = { - value: MsgCreateModel, +type sendMsgDeleteModelParams = { + value: MsgDeleteModel, fee?: StdFee, memo?: string }; -type sendMsgCreateModelVersionParams = { - value: MsgCreateModelVersion, +type sendMsgDeleteModelVersionParams = { + value: MsgDeleteModelVersion, fee?: StdFee, memo?: string }; @@ -63,24 +63,24 @@ type msgUpdateModelParams = { value: MsgUpdateModel, }; -type msgDeleteModelVersionParams = { - value: MsgDeleteModelVersion, +type msgCreateModelVersionParams = { + value: MsgCreateModelVersion, }; type msgUpdateModelVersionParams = { value: MsgUpdateModelVersion, }; -type msgDeleteModelParams = { - value: MsgDeleteModel, -}; - type msgCreateModelParams = { value: MsgCreateModel, }; -type msgCreateModelVersionParams = { - value: MsgCreateModelVersion, +type msgDeleteModelParams = { + value: MsgDeleteModel, +}; + +type msgDeleteModelVersionParams = { + value: MsgDeleteModelVersion, }; @@ -127,17 +127,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgDeleteModelVersion({ value, fee, memo }: sendMsgDeleteModelVersionParams): Promise { + async sendMsgCreateModelVersion({ value, fee, memo }: sendMsgCreateModelVersionParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeleteModelVersion: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateModelVersion: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgDeleteModelVersion({ value: MsgDeleteModelVersion.fromPartial(value) }) + let msg = this.msgCreateModelVersion({ value: MsgCreateModelVersion.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeleteModelVersion: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateModelVersion: Could not broadcast Tx: '+ e.message) } }, @@ -155,45 +155,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgDeleteModel({ value, fee, memo }: sendMsgDeleteModelParams): Promise { + async sendMsgCreateModel({ value, fee, memo }: sendMsgCreateModelParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeleteModel: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateModel: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgDeleteModel({ value: MsgDeleteModel.fromPartial(value) }) + let msg = this.msgCreateModel({ value: MsgCreateModel.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeleteModel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateModel: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateModel({ value, fee, memo }: sendMsgCreateModelParams): Promise { + async sendMsgDeleteModel({ value, fee, memo }: sendMsgDeleteModelParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateModel: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeleteModel: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgCreateModel({ value: MsgCreateModel.fromPartial(value) }) + let msg = this.msgDeleteModel({ value: MsgDeleteModel.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateModel: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeleteModel: Could not broadcast Tx: '+ e.message) } }, - async sendMsgCreateModelVersion({ value, fee, memo }: sendMsgCreateModelVersionParams): Promise { + async sendMsgDeleteModelVersion({ value, fee, memo }: sendMsgDeleteModelVersionParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateModelVersion: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeleteModelVersion: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgCreateModelVersion({ value: MsgCreateModelVersion.fromPartial(value) }) + let msg = this.msgDeleteModelVersion({ value: MsgDeleteModelVersion.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateModelVersion: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeleteModelVersion: Could not broadcast Tx: '+ e.message) } }, @@ -206,11 +206,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgDeleteModelVersion({ value }: msgDeleteModelVersionParams): EncodeObject { + msgCreateModelVersion({ value }: msgCreateModelVersionParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModelVersion", value: MsgDeleteModelVersion.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", value: MsgCreateModelVersion.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeleteModelVersion: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateModelVersion: Could not create message: ' + e.message) } }, @@ -222,27 +222,27 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgDeleteModel({ value }: msgDeleteModelParams): EncodeObject { + msgCreateModel({ value }: msgCreateModelParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModel", value: MsgDeleteModel.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModel", value: MsgCreateModel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeleteModel: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateModel: Could not create message: ' + e.message) } }, - msgCreateModel({ value }: msgCreateModelParams): EncodeObject { + msgDeleteModel({ value }: msgDeleteModelParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModel", value: MsgCreateModel.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModel", value: MsgDeleteModel.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateModel: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeleteModel: Could not create message: ' + e.message) } }, - msgCreateModelVersion({ value }: msgCreateModelVersionParams): EncodeObject { + msgDeleteModelVersion({ value }: msgDeleteModelVersionParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", value: MsgCreateModelVersion.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModelVersion", value: MsgDeleteModelVersion.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateModelVersion: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeleteModelVersion: Could not create message: ' + e.message) } }, diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.model/registry.ts b/ts-client/zigbeealliance.distributedcomplianceledger.model/registry.ts index fb0123042..5bbdb8095 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.model/registry.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.model/registry.ts @@ -1,18 +1,18 @@ import { GeneratedType } from "@cosmjs/proto-signing"; import { MsgUpdateModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; -import { MsgDeleteModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; +import { MsgCreateModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; import { MsgUpdateModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; -import { MsgDeleteModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; import { MsgCreateModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; -import { MsgCreateModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; +import { MsgDeleteModel } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; +import { MsgDeleteModelVersion } from "./types/zigbeealliance/distributedcomplianceledger/model/tx"; const msgTypes: Array<[string, GeneratedType]> = [ ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModel", MsgUpdateModel], - ["/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModelVersion", MsgDeleteModelVersion], + ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", MsgCreateModelVersion], ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", MsgUpdateModelVersion], - ["/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModel", MsgDeleteModel], ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModel", MsgCreateModel], - ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", MsgCreateModelVersion], + ["/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModel", MsgDeleteModel], + ["/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModelVersion", MsgDeleteModelVersion], ]; diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.pki/module.ts b/ts-client/zigbeealliance.distributedcomplianceledger.pki/module.ts index b3d559e98..ec237dae5 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.pki/module.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.pki/module.ts @@ -7,27 +7,28 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgAddX509Cert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgProposeAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgAssignVid } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgProposeRevokeX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRevokeNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRevokeNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgRevokeX509Cert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgAddPkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRemoveNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgAddX509Cert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgAddNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRejectAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgDeletePkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgAddNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgUpdatePkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRemoveNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgProposeRevokeX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgProposeAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgDeletePkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgApproveRevokeX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgRemoveX509Cert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgApproveAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgApproveRevokeX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRevokeNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRevokeNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgAddNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgAssignVid } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRejectAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRemoveNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgAddPkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRemoveNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { AllCertificates as typeAllCertificates} from "./types" import { AllCertificatesBySubject as typeAllCertificatesBySubject} from "./types" +import { AllCertificatesBySubjectKeyId as typeAllCertificatesBySubjectKeyId} from "./types" import { ApprovedCertificates as typeApprovedCertificates} from "./types" import { ApprovedCertificatesBySubject as typeApprovedCertificatesBySubject} from "./types" import { ApprovedCertificatesBySubjectKeyId as typeApprovedCertificatesBySubjectKeyId} from "./types" @@ -53,70 +54,76 @@ import { RevokedNocRootCertificates as typeRevokedNocRootCertificates} from "./t import { RevokedRootCertificates as typeRevokedRootCertificates} from "./types" import { UniqueCertificate as typeUniqueCertificate} from "./types" -export { MsgAddX509Cert, MsgProposeAddX509RootCert, MsgAssignVid, MsgProposeRevokeX509RootCert, MsgRevokeNocX509IcaCert, MsgRevokeX509Cert, MsgAddPkiRevocationDistributionPoint, MsgRemoveNocX509IcaCert, MsgAddNocX509IcaCert, MsgRejectAddX509RootCert, MsgDeletePkiRevocationDistributionPoint, MsgAddNocX509RootCert, MsgUpdatePkiRevocationDistributionPoint, MsgRemoveNocX509RootCert, MsgRemoveX509Cert, MsgApproveAddX509RootCert, MsgApproveRevokeX509RootCert, MsgRevokeNocX509RootCert }; +export { MsgRevokeNocX509RootCert, MsgRevokeX509Cert, MsgAddX509Cert, MsgAddNocX509IcaCert, MsgUpdatePkiRevocationDistributionPoint, MsgProposeRevokeX509RootCert, MsgProposeAddX509RootCert, MsgDeletePkiRevocationDistributionPoint, MsgApproveRevokeX509RootCert, MsgRemoveX509Cert, MsgApproveAddX509RootCert, MsgRevokeNocX509IcaCert, MsgAddNocX509RootCert, MsgAssignVid, MsgRejectAddX509RootCert, MsgRemoveNocX509IcaCert, MsgAddPkiRevocationDistributionPoint, MsgRemoveNocX509RootCert }; -type sendMsgAddX509CertParams = { - value: MsgAddX509Cert, +type sendMsgRevokeNocX509RootCertParams = { + value: MsgRevokeNocX509RootCert, fee?: StdFee, memo?: string }; -type sendMsgProposeAddX509RootCertParams = { - value: MsgProposeAddX509RootCert, +type sendMsgRevokeX509CertParams = { + value: MsgRevokeX509Cert, fee?: StdFee, memo?: string }; -type sendMsgAssignVidParams = { - value: MsgAssignVid, +type sendMsgAddX509CertParams = { + value: MsgAddX509Cert, fee?: StdFee, memo?: string }; -type sendMsgProposeRevokeX509RootCertParams = { - value: MsgProposeRevokeX509RootCert, +type sendMsgAddNocX509IcaCertParams = { + value: MsgAddNocX509IcaCert, fee?: StdFee, memo?: string }; -type sendMsgRevokeNocX509IcaCertParams = { - value: MsgRevokeNocX509IcaCert, +type sendMsgUpdatePkiRevocationDistributionPointParams = { + value: MsgUpdatePkiRevocationDistributionPoint, fee?: StdFee, memo?: string }; -type sendMsgRevokeX509CertParams = { - value: MsgRevokeX509Cert, +type sendMsgProposeRevokeX509RootCertParams = { + value: MsgProposeRevokeX509RootCert, fee?: StdFee, memo?: string }; -type sendMsgAddPkiRevocationDistributionPointParams = { - value: MsgAddPkiRevocationDistributionPoint, +type sendMsgProposeAddX509RootCertParams = { + value: MsgProposeAddX509RootCert, fee?: StdFee, memo?: string }; -type sendMsgRemoveNocX509IcaCertParams = { - value: MsgRemoveNocX509IcaCert, +type sendMsgDeletePkiRevocationDistributionPointParams = { + value: MsgDeletePkiRevocationDistributionPoint, fee?: StdFee, memo?: string }; -type sendMsgAddNocX509IcaCertParams = { - value: MsgAddNocX509IcaCert, +type sendMsgApproveRevokeX509RootCertParams = { + value: MsgApproveRevokeX509RootCert, fee?: StdFee, memo?: string }; -type sendMsgRejectAddX509RootCertParams = { - value: MsgRejectAddX509RootCert, +type sendMsgRemoveX509CertParams = { + value: MsgRemoveX509Cert, fee?: StdFee, memo?: string }; -type sendMsgDeletePkiRevocationDistributionPointParams = { - value: MsgDeletePkiRevocationDistributionPoint, +type sendMsgApproveAddX509RootCertParams = { + value: MsgApproveAddX509RootCert, + fee?: StdFee, + memo?: string +}; + +type sendMsgRevokeNocX509IcaCertParams = { + value: MsgRevokeNocX509IcaCert, fee?: StdFee, memo?: string }; @@ -127,113 +134,107 @@ type sendMsgAddNocX509RootCertParams = { memo?: string }; -type sendMsgUpdatePkiRevocationDistributionPointParams = { - value: MsgUpdatePkiRevocationDistributionPoint, +type sendMsgAssignVidParams = { + value: MsgAssignVid, fee?: StdFee, memo?: string }; -type sendMsgRemoveNocX509RootCertParams = { - value: MsgRemoveNocX509RootCert, +type sendMsgRejectAddX509RootCertParams = { + value: MsgRejectAddX509RootCert, fee?: StdFee, memo?: string }; -type sendMsgRemoveX509CertParams = { - value: MsgRemoveX509Cert, +type sendMsgRemoveNocX509IcaCertParams = { + value: MsgRemoveNocX509IcaCert, fee?: StdFee, memo?: string }; -type sendMsgApproveAddX509RootCertParams = { - value: MsgApproveAddX509RootCert, +type sendMsgAddPkiRevocationDistributionPointParams = { + value: MsgAddPkiRevocationDistributionPoint, fee?: StdFee, memo?: string }; -type sendMsgApproveRevokeX509RootCertParams = { - value: MsgApproveRevokeX509RootCert, +type sendMsgRemoveNocX509RootCertParams = { + value: MsgRemoveNocX509RootCert, fee?: StdFee, memo?: string }; -type sendMsgRevokeNocX509RootCertParams = { + +type msgRevokeNocX509RootCertParams = { value: MsgRevokeNocX509RootCert, - fee?: StdFee, - memo?: string }; +type msgRevokeX509CertParams = { + value: MsgRevokeX509Cert, +}; type msgAddX509CertParams = { value: MsgAddX509Cert, }; -type msgProposeAddX509RootCertParams = { - value: MsgProposeAddX509RootCert, +type msgAddNocX509IcaCertParams = { + value: MsgAddNocX509IcaCert, }; -type msgAssignVidParams = { - value: MsgAssignVid, +type msgUpdatePkiRevocationDistributionPointParams = { + value: MsgUpdatePkiRevocationDistributionPoint, }; type msgProposeRevokeX509RootCertParams = { value: MsgProposeRevokeX509RootCert, }; -type msgRevokeNocX509IcaCertParams = { - value: MsgRevokeNocX509IcaCert, -}; - -type msgRevokeX509CertParams = { - value: MsgRevokeX509Cert, +type msgProposeAddX509RootCertParams = { + value: MsgProposeAddX509RootCert, }; -type msgAddPkiRevocationDistributionPointParams = { - value: MsgAddPkiRevocationDistributionPoint, +type msgDeletePkiRevocationDistributionPointParams = { + value: MsgDeletePkiRevocationDistributionPoint, }; -type msgRemoveNocX509IcaCertParams = { - value: MsgRemoveNocX509IcaCert, +type msgApproveRevokeX509RootCertParams = { + value: MsgApproveRevokeX509RootCert, }; -type msgAddNocX509IcaCertParams = { - value: MsgAddNocX509IcaCert, +type msgRemoveX509CertParams = { + value: MsgRemoveX509Cert, }; -type msgRejectAddX509RootCertParams = { - value: MsgRejectAddX509RootCert, +type msgApproveAddX509RootCertParams = { + value: MsgApproveAddX509RootCert, }; -type msgDeletePkiRevocationDistributionPointParams = { - value: MsgDeletePkiRevocationDistributionPoint, +type msgRevokeNocX509IcaCertParams = { + value: MsgRevokeNocX509IcaCert, }; type msgAddNocX509RootCertParams = { value: MsgAddNocX509RootCert, }; -type msgUpdatePkiRevocationDistributionPointParams = { - value: MsgUpdatePkiRevocationDistributionPoint, -}; - -type msgRemoveNocX509RootCertParams = { - value: MsgRemoveNocX509RootCert, +type msgAssignVidParams = { + value: MsgAssignVid, }; -type msgRemoveX509CertParams = { - value: MsgRemoveX509Cert, +type msgRejectAddX509RootCertParams = { + value: MsgRejectAddX509RootCert, }; -type msgApproveAddX509RootCertParams = { - value: MsgApproveAddX509RootCert, +type msgRemoveNocX509IcaCertParams = { + value: MsgRemoveNocX509IcaCert, }; -type msgApproveRevokeX509RootCertParams = { - value: MsgApproveRevokeX509RootCert, +type msgAddPkiRevocationDistributionPointParams = { + value: MsgAddPkiRevocationDistributionPoint, }; -type msgRevokeNocX509RootCertParams = { - value: MsgRevokeNocX509RootCert, +type msgRemoveNocX509RootCertParams = { + value: MsgRemoveNocX509RootCert, }; @@ -266,400 +267,400 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgAddX509Cert({ value, fee, memo }: sendMsgAddX509CertParams): Promise { + async sendMsgRevokeNocX509RootCert({ value, fee, memo }: sendMsgRevokeNocX509RootCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddX509Cert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRevokeNocX509RootCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgAddX509Cert({ value: MsgAddX509Cert.fromPartial(value) }) + let msg = this.msgRevokeNocX509RootCert({ value: MsgRevokeNocX509RootCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddX509Cert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevokeNocX509RootCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgProposeAddX509RootCert({ value, fee, memo }: sendMsgProposeAddX509RootCertParams): Promise { + async sendMsgRevokeX509Cert({ value, fee, memo }: sendMsgRevokeX509CertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgProposeAddX509RootCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRevokeX509Cert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgProposeAddX509RootCert({ value: MsgProposeAddX509RootCert.fromPartial(value) }) + let msg = this.msgRevokeX509Cert({ value: MsgRevokeX509Cert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgProposeAddX509RootCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevokeX509Cert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAssignVid({ value, fee, memo }: sendMsgAssignVidParams): Promise { + async sendMsgAddX509Cert({ value, fee, memo }: sendMsgAddX509CertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAssignVid: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddX509Cert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgAssignVid({ value: MsgAssignVid.fromPartial(value) }) + let msg = this.msgAddX509Cert({ value: MsgAddX509Cert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAssignVid: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddX509Cert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgProposeRevokeX509RootCert({ value, fee, memo }: sendMsgProposeRevokeX509RootCertParams): Promise { + async sendMsgAddNocX509IcaCert({ value, fee, memo }: sendMsgAddNocX509IcaCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgProposeRevokeX509RootCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddNocX509IcaCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgProposeRevokeX509RootCert({ value: MsgProposeRevokeX509RootCert.fromPartial(value) }) + let msg = this.msgAddNocX509IcaCert({ value: MsgAddNocX509IcaCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgProposeRevokeX509RootCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddNocX509IcaCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevokeNocX509IcaCert({ value, fee, memo }: sendMsgRevokeNocX509IcaCertParams): Promise { + async sendMsgUpdatePkiRevocationDistributionPoint({ value, fee, memo }: sendMsgUpdatePkiRevocationDistributionPointParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeNocX509IcaCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdatePkiRevocationDistributionPoint: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgRevokeNocX509IcaCert({ value: MsgRevokeNocX509IcaCert.fromPartial(value) }) + let msg = this.msgUpdatePkiRevocationDistributionPoint({ value: MsgUpdatePkiRevocationDistributionPoint.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRevokeNocX509IcaCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdatePkiRevocationDistributionPoint: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevokeX509Cert({ value, fee, memo }: sendMsgRevokeX509CertParams): Promise { + async sendMsgProposeRevokeX509RootCert({ value, fee, memo }: sendMsgProposeRevokeX509RootCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeX509Cert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgProposeRevokeX509RootCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgRevokeX509Cert({ value: MsgRevokeX509Cert.fromPartial(value) }) + let msg = this.msgProposeRevokeX509RootCert({ value: MsgProposeRevokeX509RootCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRevokeX509Cert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgProposeRevokeX509RootCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddPkiRevocationDistributionPoint({ value, fee, memo }: sendMsgAddPkiRevocationDistributionPointParams): Promise { + async sendMsgProposeAddX509RootCert({ value, fee, memo }: sendMsgProposeAddX509RootCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddPkiRevocationDistributionPoint: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgProposeAddX509RootCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgAddPkiRevocationDistributionPoint({ value: MsgAddPkiRevocationDistributionPoint.fromPartial(value) }) + let msg = this.msgProposeAddX509RootCert({ value: MsgProposeAddX509RootCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddPkiRevocationDistributionPoint: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgProposeAddX509RootCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRemoveNocX509IcaCert({ value, fee, memo }: sendMsgRemoveNocX509IcaCertParams): Promise { + async sendMsgDeletePkiRevocationDistributionPoint({ value, fee, memo }: sendMsgDeletePkiRevocationDistributionPointParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRemoveNocX509IcaCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDeletePkiRevocationDistributionPoint: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgRemoveNocX509IcaCert({ value: MsgRemoveNocX509IcaCert.fromPartial(value) }) + let msg = this.msgDeletePkiRevocationDistributionPoint({ value: MsgDeletePkiRevocationDistributionPoint.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRemoveNocX509IcaCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDeletePkiRevocationDistributionPoint: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddNocX509IcaCert({ value, fee, memo }: sendMsgAddNocX509IcaCertParams): Promise { + async sendMsgApproveRevokeX509RootCert({ value, fee, memo }: sendMsgApproveRevokeX509RootCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddNocX509IcaCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgApproveRevokeX509RootCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgAddNocX509IcaCert({ value: MsgAddNocX509IcaCert.fromPartial(value) }) + let msg = this.msgApproveRevokeX509RootCert({ value: MsgApproveRevokeX509RootCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddNocX509IcaCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgApproveRevokeX509RootCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRejectAddX509RootCert({ value, fee, memo }: sendMsgRejectAddX509RootCertParams): Promise { + async sendMsgRemoveX509Cert({ value, fee, memo }: sendMsgRemoveX509CertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRejectAddX509RootCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRemoveX509Cert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgRejectAddX509RootCert({ value: MsgRejectAddX509RootCert.fromPartial(value) }) + let msg = this.msgRemoveX509Cert({ value: MsgRemoveX509Cert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRejectAddX509RootCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRemoveX509Cert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDeletePkiRevocationDistributionPoint({ value, fee, memo }: sendMsgDeletePkiRevocationDistributionPointParams): Promise { + async sendMsgApproveAddX509RootCert({ value, fee, memo }: sendMsgApproveAddX509RootCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDeletePkiRevocationDistributionPoint: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgApproveAddX509RootCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgDeletePkiRevocationDistributionPoint({ value: MsgDeletePkiRevocationDistributionPoint.fromPartial(value) }) + let msg = this.msgApproveAddX509RootCert({ value: MsgApproveAddX509RootCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDeletePkiRevocationDistributionPoint: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgApproveAddX509RootCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgAddNocX509RootCert({ value, fee, memo }: sendMsgAddNocX509RootCertParams): Promise { + async sendMsgRevokeNocX509IcaCert({ value, fee, memo }: sendMsgRevokeNocX509IcaCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgAddNocX509RootCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRevokeNocX509IcaCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgAddNocX509RootCert({ value: MsgAddNocX509RootCert.fromPartial(value) }) + let msg = this.msgRevokeNocX509IcaCert({ value: MsgRevokeNocX509IcaCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgAddNocX509RootCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRevokeNocX509IcaCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdatePkiRevocationDistributionPoint({ value, fee, memo }: sendMsgUpdatePkiRevocationDistributionPointParams): Promise { + async sendMsgAddNocX509RootCert({ value, fee, memo }: sendMsgAddNocX509RootCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdatePkiRevocationDistributionPoint: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddNocX509RootCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgUpdatePkiRevocationDistributionPoint({ value: MsgUpdatePkiRevocationDistributionPoint.fromPartial(value) }) + let msg = this.msgAddNocX509RootCert({ value: MsgAddNocX509RootCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdatePkiRevocationDistributionPoint: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddNocX509RootCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRemoveNocX509RootCert({ value, fee, memo }: sendMsgRemoveNocX509RootCertParams): Promise { + async sendMsgAssignVid({ value, fee, memo }: sendMsgAssignVidParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRemoveNocX509RootCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAssignVid: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgRemoveNocX509RootCert({ value: MsgRemoveNocX509RootCert.fromPartial(value) }) + let msg = this.msgAssignVid({ value: MsgAssignVid.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRemoveNocX509RootCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAssignVid: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRemoveX509Cert({ value, fee, memo }: sendMsgRemoveX509CertParams): Promise { + async sendMsgRejectAddX509RootCert({ value, fee, memo }: sendMsgRejectAddX509RootCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRemoveX509Cert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRejectAddX509RootCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgRemoveX509Cert({ value: MsgRemoveX509Cert.fromPartial(value) }) + let msg = this.msgRejectAddX509RootCert({ value: MsgRejectAddX509RootCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRemoveX509Cert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRejectAddX509RootCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgApproveAddX509RootCert({ value, fee, memo }: sendMsgApproveAddX509RootCertParams): Promise { + async sendMsgRemoveNocX509IcaCert({ value, fee, memo }: sendMsgRemoveNocX509IcaCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgApproveAddX509RootCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRemoveNocX509IcaCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgApproveAddX509RootCert({ value: MsgApproveAddX509RootCert.fromPartial(value) }) + let msg = this.msgRemoveNocX509IcaCert({ value: MsgRemoveNocX509IcaCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgApproveAddX509RootCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRemoveNocX509IcaCert: Could not broadcast Tx: '+ e.message) } }, - async sendMsgApproveRevokeX509RootCert({ value, fee, memo }: sendMsgApproveRevokeX509RootCertParams): Promise { + async sendMsgAddPkiRevocationDistributionPoint({ value, fee, memo }: sendMsgAddPkiRevocationDistributionPointParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgApproveRevokeX509RootCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgAddPkiRevocationDistributionPoint: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgApproveRevokeX509RootCert({ value: MsgApproveRevokeX509RootCert.fromPartial(value) }) + let msg = this.msgAddPkiRevocationDistributionPoint({ value: MsgAddPkiRevocationDistributionPoint.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgApproveRevokeX509RootCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgAddPkiRevocationDistributionPoint: Could not broadcast Tx: '+ e.message) } }, - async sendMsgRevokeNocX509RootCert({ value, fee, memo }: sendMsgRevokeNocX509RootCertParams): Promise { + async sendMsgRemoveNocX509RootCert({ value, fee, memo }: sendMsgRemoveNocX509RootCertParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRevokeNocX509RootCert: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRemoveNocX509RootCert: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgRevokeNocX509RootCert({ value: MsgRevokeNocX509RootCert.fromPartial(value) }) + let msg = this.msgRemoveNocX509RootCert({ value: MsgRemoveNocX509RootCert.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRevokeNocX509RootCert: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRemoveNocX509RootCert: Could not broadcast Tx: '+ e.message) } }, - msgAddX509Cert({ value }: msgAddX509CertParams): EncodeObject { + msgRevokeNocX509RootCert({ value }: msgRevokeNocX509RootCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", value: MsgAddX509Cert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeNocX509RootCert", value: MsgRevokeNocX509RootCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddX509Cert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokeNocX509RootCert: Could not create message: ' + e.message) } }, - msgProposeAddX509RootCert({ value }: msgProposeAddX509RootCertParams): EncodeObject { + msgRevokeX509Cert({ value }: msgRevokeX509CertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", value: MsgProposeAddX509RootCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeX509Cert", value: MsgRevokeX509Cert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgProposeAddX509RootCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokeX509Cert: Could not create message: ' + e.message) } }, - msgAssignVid({ value }: msgAssignVidParams): EncodeObject { + msgAddX509Cert({ value }: msgAddX509CertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAssignVid", value: MsgAssignVid.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", value: MsgAddX509Cert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAssignVid: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddX509Cert: Could not create message: ' + e.message) } }, - msgProposeRevokeX509RootCert({ value }: msgProposeRevokeX509RootCertParams): EncodeObject { + msgAddNocX509IcaCert({ value }: msgAddNocX509IcaCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", value: MsgProposeRevokeX509RootCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddNocX509IcaCert", value: MsgAddNocX509IcaCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgProposeRevokeX509RootCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddNocX509IcaCert: Could not create message: ' + e.message) } }, - msgRevokeNocX509IcaCert({ value }: msgRevokeNocX509IcaCertParams): EncodeObject { + msgUpdatePkiRevocationDistributionPoint({ value }: msgUpdatePkiRevocationDistributionPointParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeNocX509IcaCert", value: MsgRevokeNocX509IcaCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgUpdatePkiRevocationDistributionPoint", value: MsgUpdatePkiRevocationDistributionPoint.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevokeNocX509IcaCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdatePkiRevocationDistributionPoint: Could not create message: ' + e.message) } }, - msgRevokeX509Cert({ value }: msgRevokeX509CertParams): EncodeObject { + msgProposeRevokeX509RootCert({ value }: msgProposeRevokeX509RootCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeX509Cert", value: MsgRevokeX509Cert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", value: MsgProposeRevokeX509RootCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevokeX509Cert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgProposeRevokeX509RootCert: Could not create message: ' + e.message) } }, - msgAddPkiRevocationDistributionPoint({ value }: msgAddPkiRevocationDistributionPointParams): EncodeObject { + msgProposeAddX509RootCert({ value }: msgProposeAddX509RootCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddPkiRevocationDistributionPoint", value: MsgAddPkiRevocationDistributionPoint.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", value: MsgProposeAddX509RootCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddPkiRevocationDistributionPoint: Could not create message: ' + e.message) + throw new Error('TxClient:MsgProposeAddX509RootCert: Could not create message: ' + e.message) } }, - msgRemoveNocX509IcaCert({ value }: msgRemoveNocX509IcaCertParams): EncodeObject { + msgDeletePkiRevocationDistributionPoint({ value }: msgDeletePkiRevocationDistributionPointParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveNocX509IcaCert", value: MsgRemoveNocX509IcaCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgDeletePkiRevocationDistributionPoint", value: MsgDeletePkiRevocationDistributionPoint.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRemoveNocX509IcaCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgDeletePkiRevocationDistributionPoint: Could not create message: ' + e.message) } }, - msgAddNocX509IcaCert({ value }: msgAddNocX509IcaCertParams): EncodeObject { + msgApproveRevokeX509RootCert({ value }: msgApproveRevokeX509RootCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddNocX509IcaCert", value: MsgAddNocX509IcaCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", value: MsgApproveRevokeX509RootCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddNocX509IcaCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgApproveRevokeX509RootCert: Could not create message: ' + e.message) } }, - msgRejectAddX509RootCert({ value }: msgRejectAddX509RootCertParams): EncodeObject { + msgRemoveX509Cert({ value }: msgRemoveX509CertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", value: MsgRejectAddX509RootCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveX509Cert", value: MsgRemoveX509Cert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRejectAddX509RootCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveX509Cert: Could not create message: ' + e.message) } }, - msgDeletePkiRevocationDistributionPoint({ value }: msgDeletePkiRevocationDistributionPointParams): EncodeObject { + msgApproveAddX509RootCert({ value }: msgApproveAddX509RootCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgDeletePkiRevocationDistributionPoint", value: MsgDeletePkiRevocationDistributionPoint.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveAddX509RootCert", value: MsgApproveAddX509RootCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgDeletePkiRevocationDistributionPoint: Could not create message: ' + e.message) + throw new Error('TxClient:MsgApproveAddX509RootCert: Could not create message: ' + e.message) } }, - msgAddNocX509RootCert({ value }: msgAddNocX509RootCertParams): EncodeObject { + msgRevokeNocX509IcaCert({ value }: msgRevokeNocX509IcaCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddNocX509RootCert", value: MsgAddNocX509RootCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeNocX509IcaCert", value: MsgRevokeNocX509IcaCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgAddNocX509RootCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRevokeNocX509IcaCert: Could not create message: ' + e.message) } }, - msgUpdatePkiRevocationDistributionPoint({ value }: msgUpdatePkiRevocationDistributionPointParams): EncodeObject { + msgAddNocX509RootCert({ value }: msgAddNocX509RootCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgUpdatePkiRevocationDistributionPoint", value: MsgUpdatePkiRevocationDistributionPoint.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddNocX509RootCert", value: MsgAddNocX509RootCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdatePkiRevocationDistributionPoint: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddNocX509RootCert: Could not create message: ' + e.message) } }, - msgRemoveNocX509RootCert({ value }: msgRemoveNocX509RootCertParams): EncodeObject { + msgAssignVid({ value }: msgAssignVidParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveNocX509RootCert", value: MsgRemoveNocX509RootCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAssignVid", value: MsgAssignVid.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRemoveNocX509RootCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAssignVid: Could not create message: ' + e.message) } }, - msgRemoveX509Cert({ value }: msgRemoveX509CertParams): EncodeObject { + msgRejectAddX509RootCert({ value }: msgRejectAddX509RootCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveX509Cert", value: MsgRemoveX509Cert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", value: MsgRejectAddX509RootCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRemoveX509Cert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRejectAddX509RootCert: Could not create message: ' + e.message) } }, - msgApproveAddX509RootCert({ value }: msgApproveAddX509RootCertParams): EncodeObject { + msgRemoveNocX509IcaCert({ value }: msgRemoveNocX509IcaCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveAddX509RootCert", value: MsgApproveAddX509RootCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveNocX509IcaCert", value: MsgRemoveNocX509IcaCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgApproveAddX509RootCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveNocX509IcaCert: Could not create message: ' + e.message) } }, - msgApproveRevokeX509RootCert({ value }: msgApproveRevokeX509RootCertParams): EncodeObject { + msgAddPkiRevocationDistributionPoint({ value }: msgAddPkiRevocationDistributionPointParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", value: MsgApproveRevokeX509RootCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddPkiRevocationDistributionPoint", value: MsgAddPkiRevocationDistributionPoint.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgApproveRevokeX509RootCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgAddPkiRevocationDistributionPoint: Could not create message: ' + e.message) } }, - msgRevokeNocX509RootCert({ value }: msgRevokeNocX509RootCertParams): EncodeObject { + msgRemoveNocX509RootCert({ value }: msgRemoveNocX509RootCertParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeNocX509RootCert", value: MsgRevokeNocX509RootCert.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveNocX509RootCert", value: MsgRemoveNocX509RootCert.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRevokeNocX509RootCert: Could not create message: ' + e.message) + throw new Error('TxClient:MsgRemoveNocX509RootCert: Could not create message: ' + e.message) } }, @@ -687,6 +688,7 @@ class SDKModule { this.structure = { AllCertificates: getStructure(typeAllCertificates.fromPartial({})), AllCertificatesBySubject: getStructure(typeAllCertificatesBySubject.fromPartial({})), + AllCertificatesBySubjectKeyId: getStructure(typeAllCertificatesBySubjectKeyId.fromPartial({})), ApprovedCertificates: getStructure(typeApprovedCertificates.fromPartial({})), ApprovedCertificatesBySubject: getStructure(typeApprovedCertificatesBySubject.fromPartial({})), ApprovedCertificatesBySubjectKeyId: getStructure(typeApprovedCertificatesBySubjectKeyId.fromPartial({})), diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.pki/registry.ts b/ts-client/zigbeealliance.distributedcomplianceledger.pki/registry.ts index 2ce7e64a6..00c5c5430 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.pki/registry.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.pki/registry.ts @@ -1,42 +1,42 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgAddX509Cert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgProposeAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgAssignVid } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgProposeRevokeX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRevokeNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRevokeNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgRevokeX509Cert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgAddPkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRemoveNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgAddX509Cert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgAddNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRejectAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgDeletePkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgAddNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgUpdatePkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRemoveNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgProposeRevokeX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgProposeAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgDeletePkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgApproveRevokeX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgRemoveX509Cert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; import { MsgApproveAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgApproveRevokeX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; -import { MsgRevokeNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRevokeNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgAddNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgAssignVid } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRejectAddX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRemoveNocX509IcaCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgAddPkiRevocationDistributionPoint } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; +import { MsgRemoveNocX509RootCert } from "./types/zigbeealliance/distributedcomplianceledger/pki/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", MsgAddX509Cert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", MsgProposeAddX509RootCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgAssignVid", MsgAssignVid], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", MsgProposeRevokeX509RootCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeNocX509IcaCert", MsgRevokeNocX509IcaCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeNocX509RootCert", MsgRevokeNocX509RootCert], ["/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeX509Cert", MsgRevokeX509Cert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddPkiRevocationDistributionPoint", MsgAddPkiRevocationDistributionPoint], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveNocX509IcaCert", MsgRemoveNocX509IcaCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", MsgAddX509Cert], ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddNocX509IcaCert", MsgAddNocX509IcaCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", MsgRejectAddX509RootCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgDeletePkiRevocationDistributionPoint", MsgDeletePkiRevocationDistributionPoint], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddNocX509RootCert", MsgAddNocX509RootCert], ["/zigbeealliance.distributedcomplianceledger.pki.MsgUpdatePkiRevocationDistributionPoint", MsgUpdatePkiRevocationDistributionPoint], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveNocX509RootCert", MsgRemoveNocX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", MsgProposeRevokeX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", MsgProposeAddX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgDeletePkiRevocationDistributionPoint", MsgDeletePkiRevocationDistributionPoint], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", MsgApproveRevokeX509RootCert], ["/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveX509Cert", MsgRemoveX509Cert], ["/zigbeealliance.distributedcomplianceledger.pki.MsgApproveAddX509RootCert", MsgApproveAddX509RootCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", MsgApproveRevokeX509RootCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeNocX509RootCert", MsgRevokeNocX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeNocX509IcaCert", MsgRevokeNocX509IcaCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddNocX509RootCert", MsgAddNocX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgAssignVid", MsgAssignVid], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", MsgRejectAddX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveNocX509IcaCert", MsgRemoveNocX509IcaCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddPkiRevocationDistributionPoint", MsgAddPkiRevocationDistributionPoint], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgRemoveNocX509RootCert", MsgRemoveNocX509RootCert], ]; diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.pki/rest.ts b/ts-client/zigbeealliance.distributedcomplianceledger.pki/rest.ts index 742cc3231..0950c4830 100644 --- a/ts-client/zigbeealliance.distributedcomplianceledger.pki/rest.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.pki/rest.ts @@ -787,6 +787,7 @@ export class Api extends HttpClient diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.pki/types.ts b/ts-client/zigbeealliance.distributedcomplianceledger.pki/types.ts index 97c81ee53..592848aee 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.pki/types.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.pki/types.ts @@ -1,5 +1,6 @@ import { AllCertificates } from "./types/zigbeealliance/distributedcomplianceledger/pki/all_certificates" import { AllCertificatesBySubject } from "./types/zigbeealliance/distributedcomplianceledger/pki/all_certificates_by_subject" +import { AllCertificatesBySubjectKeyId } from "./types/zigbeealliance/distributedcomplianceledger/pki/all_certificates_by_subject_key_id" import { ApprovedCertificates } from "./types/zigbeealliance/distributedcomplianceledger/pki/approved_certificates" import { ApprovedCertificatesBySubject } from "./types/zigbeealliance/distributedcomplianceledger/pki/approved_certificates_by_subject" import { ApprovedCertificatesBySubjectKeyId } from "./types/zigbeealliance/distributedcomplianceledger/pki/approved_certificates_by_subject_key_id" @@ -29,6 +30,7 @@ import { UniqueCertificate } from "./types/zigbeealliance/distributedcompliancel export { AllCertificates, AllCertificatesBySubject, + AllCertificatesBySubjectKeyId, ApprovedCertificates, ApprovedCertificatesBySubject, ApprovedCertificatesBySubjectKeyId, diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/genesis.ts b/ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/genesis.ts index 90deab7b4..35f244faa 100644 --- a/ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/genesis.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/genesis.ts @@ -2,6 +2,7 @@ import _m0 from "protobufjs/minimal"; import { AllCertificates } from "./all_certificates"; import { AllCertificatesBySubject } from "./all_certificates_by_subject"; +import { AllCertificatesBySubjectKeyId } from "./all_certificates_by_subject_key_id"; import { ApprovedCertificates } from "./approved_certificates"; import { ApprovedCertificatesBySubject } from "./approved_certificates_by_subject"; import { ApprovedCertificatesBySubjectKeyId } from "./approved_certificates_by_subject_key_id"; @@ -50,8 +51,9 @@ export interface GenesisState { nocCertificatesBySubjectList: NocCertificatesBySubject[]; certificatesList: AllCertificates[]; revokedNocIcaCertificatesList: RevokedNocIcaCertificates[]; - /** this line is used by starport scaffolding # genesis/proto/state */ allCertificatesBySubjectList: AllCertificatesBySubject[]; + /** this line is used by starport scaffolding # genesis/proto/state */ + allCertificatesBySubjectKeyIdList: AllCertificatesBySubjectKeyId[]; } function createBaseGenesisState(): GenesisState { @@ -79,6 +81,7 @@ function createBaseGenesisState(): GenesisState { certificatesList: [], revokedNocIcaCertificatesList: [], allCertificatesBySubjectList: [], + allCertificatesBySubjectKeyIdList: [], }; } @@ -153,6 +156,9 @@ export const GenesisState = { for (const v of message.allCertificatesBySubjectList) { AllCertificatesBySubject.encode(v!, writer.uint32(186).fork()).ldelim(); } + for (const v of message.allCertificatesBySubjectKeyIdList) { + AllCertificatesBySubjectKeyId.encode(v!, writer.uint32(194).fork()).ldelim(); + } return writer; }, @@ -238,6 +244,9 @@ export const GenesisState = { case 23: message.allCertificatesBySubjectList.push(AllCertificatesBySubject.decode(reader, reader.uint32())); break; + case 24: + message.allCertificatesBySubjectKeyIdList.push(AllCertificatesBySubjectKeyId.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -320,6 +329,9 @@ export const GenesisState = { allCertificatesBySubjectList: Array.isArray(object?.allCertificatesBySubjectList) ? object.allCertificatesBySubjectList.map((e: any) => AllCertificatesBySubject.fromJSON(e)) : [], + allCertificatesBySubjectKeyIdList: Array.isArray(object?.allCertificatesBySubjectKeyIdList) + ? object.allCertificatesBySubjectKeyIdList.map((e: any) => AllCertificatesBySubjectKeyId.fromJSON(e)) + : [], }; }, @@ -471,6 +483,13 @@ export const GenesisState = { } else { obj.allCertificatesBySubjectList = []; } + if (message.allCertificatesBySubjectKeyIdList) { + obj.allCertificatesBySubjectKeyIdList = message.allCertificatesBySubjectKeyIdList.map((e) => + e ? AllCertificatesBySubjectKeyId.toJSON(e) : undefined + ); + } else { + obj.allCertificatesBySubjectKeyIdList = []; + } return obj; }, @@ -524,6 +543,8 @@ export const GenesisState = { object.revokedNocIcaCertificatesList?.map((e) => RevokedNocIcaCertificates.fromPartial(e)) || []; message.allCertificatesBySubjectList = object.allCertificatesBySubjectList?.map((e) => AllCertificatesBySubject.fromPartial(e)) || []; + message.allCertificatesBySubjectKeyIdList = + object.allCertificatesBySubjectKeyIdList?.map((e) => AllCertificatesBySubjectKeyId.fromPartial(e)) || []; return message; }, }; diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/query.ts b/ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/query.ts index fde7bf85e..534b68cef 100644 --- a/ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/query.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.pki/types/zigbeealliance/distributedcomplianceledger/pki/query.ts @@ -26,6 +26,7 @@ export const protobufPackage = "zigbeealliance.distributedcomplianceledger.pki"; export interface QueryAllCertificatesRequest { pagination: PageRequest | undefined; + subjectKeyId: string; } export interface QueryAllCertificatesResponse { @@ -307,7 +308,7 @@ export interface QueryGetNocCertificatesResponse { } function createBaseQueryAllCertificatesRequest(): QueryAllCertificatesRequest { - return { pagination: undefined }; + return { pagination: undefined, subjectKeyId: "" }; } export const QueryAllCertificatesRequest = { @@ -315,6 +316,9 @@ export const QueryAllCertificatesRequest = { if (message.pagination !== undefined) { PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim(); } + if (message.subjectKeyId !== "") { + writer.uint32(18).string(message.subjectKeyId); + } return writer; }, @@ -328,6 +332,9 @@ export const QueryAllCertificatesRequest = { case 1: message.pagination = PageRequest.decode(reader, reader.uint32()); break; + case 2: + message.subjectKeyId = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -337,13 +344,17 @@ export const QueryAllCertificatesRequest = { }, fromJSON(object: any): QueryAllCertificatesRequest { - return { pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined }; + return { + pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined, + subjectKeyId: isSet(object.subjectKeyId) ? String(object.subjectKeyId) : "", + }; }, toJSON(message: QueryAllCertificatesRequest): unknown { const obj: any = {}; message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined); + message.subjectKeyId !== undefined && (obj.subjectKeyId = message.subjectKeyId); return obj; }, @@ -352,6 +363,7 @@ export const QueryAllCertificatesRequest = { message.pagination = (object.pagination !== undefined && object.pagination !== null) ? PageRequest.fromPartial(object.pagination) : undefined; + message.subjectKeyId = object.subjectKeyId ?? ""; return message; }, }; diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.validator/module.ts b/ts-client/zigbeealliance.distributedcomplianceledger.validator/module.ts index cb85ae35a..331c1a8c9 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.validator/module.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.validator/module.ts @@ -7,12 +7,12 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; +import { MsgRejectDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; import { MsgCreateValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; import { MsgDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; -import { MsgApproveDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; import { MsgEnableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; import { MsgProposeDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; -import { MsgRejectDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; +import { MsgApproveDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; import { Description as typeDescription} from "./types" import { DisabledValidator as typeDisabledValidator} from "./types" @@ -22,22 +22,22 @@ import { ProposedDisableValidator as typeProposedDisableValidator} from "./types import { RejectedDisableValidator as typeRejectedDisableValidator} from "./types" import { Validator as typeValidator} from "./types" -export { MsgCreateValidator, MsgDisableValidator, MsgApproveDisableValidator, MsgEnableValidator, MsgProposeDisableValidator, MsgRejectDisableValidator }; +export { MsgRejectDisableValidator, MsgCreateValidator, MsgDisableValidator, MsgEnableValidator, MsgProposeDisableValidator, MsgApproveDisableValidator }; -type sendMsgCreateValidatorParams = { - value: MsgCreateValidator, +type sendMsgRejectDisableValidatorParams = { + value: MsgRejectDisableValidator, fee?: StdFee, memo?: string }; -type sendMsgDisableValidatorParams = { - value: MsgDisableValidator, +type sendMsgCreateValidatorParams = { + value: MsgCreateValidator, fee?: StdFee, memo?: string }; -type sendMsgApproveDisableValidatorParams = { - value: MsgApproveDisableValidator, +type sendMsgDisableValidatorParams = { + value: MsgDisableValidator, fee?: StdFee, memo?: string }; @@ -54,13 +54,17 @@ type sendMsgProposeDisableValidatorParams = { memo?: string }; -type sendMsgRejectDisableValidatorParams = { - value: MsgRejectDisableValidator, +type sendMsgApproveDisableValidatorParams = { + value: MsgApproveDisableValidator, fee?: StdFee, memo?: string }; +type msgRejectDisableValidatorParams = { + value: MsgRejectDisableValidator, +}; + type msgCreateValidatorParams = { value: MsgCreateValidator, }; @@ -69,10 +73,6 @@ type msgDisableValidatorParams = { value: MsgDisableValidator, }; -type msgApproveDisableValidatorParams = { - value: MsgApproveDisableValidator, -}; - type msgEnableValidatorParams = { value: MsgEnableValidator, }; @@ -81,8 +81,8 @@ type msgProposeDisableValidatorParams = { value: MsgProposeDisableValidator, }; -type msgRejectDisableValidatorParams = { - value: MsgRejectDisableValidator, +type msgApproveDisableValidatorParams = { + value: MsgApproveDisableValidator, }; @@ -115,45 +115,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise { + async sendMsgRejectDisableValidator({ value, fee, memo }: sendMsgRejectDisableValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgRejectDisableValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) }) + let msg = this.msgRejectDisableValidator({ value: MsgRejectDisableValidator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgRejectDisableValidator: Could not broadcast Tx: '+ e.message) } }, - async sendMsgDisableValidator({ value, fee, memo }: sendMsgDisableValidatorParams): Promise { + async sendMsgCreateValidator({ value, fee, memo }: sendMsgCreateValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgDisableValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgDisableValidator({ value: MsgDisableValidator.fromPartial(value) }) + let msg = this.msgCreateValidator({ value: MsgCreateValidator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgDisableValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateValidator: Could not broadcast Tx: '+ e.message) } }, - async sendMsgApproveDisableValidator({ value, fee, memo }: sendMsgApproveDisableValidatorParams): Promise { + async sendMsgDisableValidator({ value, fee, memo }: sendMsgDisableValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgApproveDisableValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgDisableValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgApproveDisableValidator({ value: MsgApproveDisableValidator.fromPartial(value) }) + let msg = this.msgDisableValidator({ value: MsgDisableValidator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgApproveDisableValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgDisableValidator: Could not broadcast Tx: '+ e.message) } }, @@ -185,21 +185,29 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - async sendMsgRejectDisableValidator({ value, fee, memo }: sendMsgRejectDisableValidatorParams): Promise { + async sendMsgApproveDisableValidator({ value, fee, memo }: sendMsgApproveDisableValidatorParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgRejectDisableValidator: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgApproveDisableValidator: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgRejectDisableValidator({ value: MsgRejectDisableValidator.fromPartial(value) }) + let msg = this.msgApproveDisableValidator({ value: MsgApproveDisableValidator.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgRejectDisableValidator: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgApproveDisableValidator: Could not broadcast Tx: '+ e.message) } }, + msgRejectDisableValidator({ value }: msgRejectDisableValidatorParams): EncodeObject { + try { + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", value: MsgRejectDisableValidator.fromPartial( value ) } + } catch (e: any) { + throw new Error('TxClient:MsgRejectDisableValidator: Could not create message: ' + e.message) + } + }, + msgCreateValidator({ value }: msgCreateValidatorParams): EncodeObject { try { return { typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgCreateValidator", value: MsgCreateValidator.fromPartial( value ) } @@ -216,14 +224,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgApproveDisableValidator({ value }: msgApproveDisableValidatorParams): EncodeObject { - try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgApproveDisableValidator", value: MsgApproveDisableValidator.fromPartial( value ) } - } catch (e: any) { - throw new Error('TxClient:MsgApproveDisableValidator: Could not create message: ' + e.message) - } - }, - msgEnableValidator({ value }: msgEnableValidatorParams): EncodeObject { try { return { typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", value: MsgEnableValidator.fromPartial( value ) } @@ -240,11 +240,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht } }, - msgRejectDisableValidator({ value }: msgRejectDisableValidatorParams): EncodeObject { + msgApproveDisableValidator({ value }: msgApproveDisableValidatorParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", value: MsgRejectDisableValidator.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgApproveDisableValidator", value: MsgApproveDisableValidator.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgRejectDisableValidator: Could not create message: ' + e.message) + throw new Error('TxClient:MsgApproveDisableValidator: Could not create message: ' + e.message) } }, diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.validator/registry.ts b/ts-client/zigbeealliance.distributedcomplianceledger.validator/registry.ts index 8f3e89f23..86fffa30d 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.validator/registry.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.validator/registry.ts @@ -1,18 +1,18 @@ import { GeneratedType } from "@cosmjs/proto-signing"; +import { MsgRejectDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; import { MsgCreateValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; import { MsgDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; -import { MsgApproveDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; import { MsgEnableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; import { MsgProposeDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; -import { MsgRejectDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; +import { MsgApproveDisableValidator } from "./types/zigbeealliance/distributedcomplianceledger/validator/tx"; const msgTypes: Array<[string, GeneratedType]> = [ + ["/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", MsgRejectDisableValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgCreateValidator", MsgCreateValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgDisableValidator", MsgDisableValidator], - ["/zigbeealliance.distributedcomplianceledger.validator.MsgApproveDisableValidator", MsgApproveDisableValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", MsgEnableValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", MsgProposeDisableValidator], - ["/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", MsgRejectDisableValidator], + ["/zigbeealliance.distributedcomplianceledger.validator.MsgApproveDisableValidator", MsgApproveDisableValidator], ]; diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/module.ts b/ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/module.ts index f43f0c642..dac5b4bda 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/module.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/module.ts @@ -7,18 +7,12 @@ import { msgTypes } from './registry'; import { IgniteClient } from "../client" import { MissingWalletError } from "../helpers" import { Api } from "./rest"; -import { MsgCreateVendorInfo } from "./types/zigbeealliance/distributedcomplianceledger/vendorinfo/tx"; import { MsgUpdateVendorInfo } from "./types/zigbeealliance/distributedcomplianceledger/vendorinfo/tx"; +import { MsgCreateVendorInfo } from "./types/zigbeealliance/distributedcomplianceledger/vendorinfo/tx"; import { VendorInfo as typeVendorInfo} from "./types" -export { MsgCreateVendorInfo, MsgUpdateVendorInfo }; - -type sendMsgCreateVendorInfoParams = { - value: MsgCreateVendorInfo, - fee?: StdFee, - memo?: string -}; +export { MsgUpdateVendorInfo, MsgCreateVendorInfo }; type sendMsgUpdateVendorInfoParams = { value: MsgUpdateVendorInfo, @@ -26,15 +20,21 @@ type sendMsgUpdateVendorInfoParams = { memo?: string }; - -type msgCreateVendorInfoParams = { +type sendMsgCreateVendorInfoParams = { value: MsgCreateVendorInfo, + fee?: StdFee, + memo?: string }; + type msgUpdateVendorInfoParams = { value: MsgUpdateVendorInfo, }; +type msgCreateVendorInfoParams = { + value: MsgCreateVendorInfo, +}; + export const registry = new Registry(msgTypes); @@ -65,48 +65,48 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht return { - async sendMsgCreateVendorInfo({ value, fee, memo }: sendMsgCreateVendorInfoParams): Promise { + async sendMsgUpdateVendorInfo({ value, fee, memo }: sendMsgUpdateVendorInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgCreateVendorInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgUpdateVendorInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgCreateVendorInfo({ value: MsgCreateVendorInfo.fromPartial(value) }) + let msg = this.msgUpdateVendorInfo({ value: MsgUpdateVendorInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgCreateVendorInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgUpdateVendorInfo: Could not broadcast Tx: '+ e.message) } }, - async sendMsgUpdateVendorInfo({ value, fee, memo }: sendMsgUpdateVendorInfoParams): Promise { + async sendMsgCreateVendorInfo({ value, fee, memo }: sendMsgCreateVendorInfoParams): Promise { if (!signer) { - throw new Error('TxClient:sendMsgUpdateVendorInfo: Unable to sign Tx. Signer is not present.') + throw new Error('TxClient:sendMsgCreateVendorInfo: Unable to sign Tx. Signer is not present.') } try { const { address } = (await signer.getAccounts())[0]; const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix}); - let msg = this.msgUpdateVendorInfo({ value: MsgUpdateVendorInfo.fromPartial(value) }) + let msg = this.msgCreateVendorInfo({ value: MsgCreateVendorInfo.fromPartial(value) }) return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo) } catch (e: any) { - throw new Error('TxClient:sendMsgUpdateVendorInfo: Could not broadcast Tx: '+ e.message) + throw new Error('TxClient:sendMsgCreateVendorInfo: Could not broadcast Tx: '+ e.message) } }, - msgCreateVendorInfo({ value }: msgCreateVendorInfoParams): EncodeObject { + msgUpdateVendorInfo({ value }: msgUpdateVendorInfoParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.vendorinfo.MsgCreateVendorInfo", value: MsgCreateVendorInfo.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.vendorinfo.MsgUpdateVendorInfo", value: MsgUpdateVendorInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgCreateVendorInfo: Could not create message: ' + e.message) + throw new Error('TxClient:MsgUpdateVendorInfo: Could not create message: ' + e.message) } }, - msgUpdateVendorInfo({ value }: msgUpdateVendorInfoParams): EncodeObject { + msgCreateVendorInfo({ value }: msgCreateVendorInfoParams): EncodeObject { try { - return { typeUrl: "/zigbeealliance.distributedcomplianceledger.vendorinfo.MsgUpdateVendorInfo", value: MsgUpdateVendorInfo.fromPartial( value ) } + return { typeUrl: "/zigbeealliance.distributedcomplianceledger.vendorinfo.MsgCreateVendorInfo", value: MsgCreateVendorInfo.fromPartial( value ) } } catch (e: any) { - throw new Error('TxClient:MsgUpdateVendorInfo: Could not create message: ' + e.message) + throw new Error('TxClient:MsgCreateVendorInfo: Could not create message: ' + e.message) } }, diff --git a/ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/registry.ts b/ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/registry.ts index 523c72b23..22bef5b8b 100755 --- a/ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/registry.ts +++ b/ts-client/zigbeealliance.distributedcomplianceledger.vendorinfo/registry.ts @@ -1,10 +1,10 @@ import { GeneratedType } from "@cosmjs/proto-signing"; -import { MsgCreateVendorInfo } from "./types/zigbeealliance/distributedcomplianceledger/vendorinfo/tx"; import { MsgUpdateVendorInfo } from "./types/zigbeealliance/distributedcomplianceledger/vendorinfo/tx"; +import { MsgCreateVendorInfo } from "./types/zigbeealliance/distributedcomplianceledger/vendorinfo/tx"; const msgTypes: Array<[string, GeneratedType]> = [ - ["/zigbeealliance.distributedcomplianceledger.vendorinfo.MsgCreateVendorInfo", MsgCreateVendorInfo], ["/zigbeealliance.distributedcomplianceledger.vendorinfo.MsgUpdateVendorInfo", MsgUpdateVendorInfo], + ["/zigbeealliance.distributedcomplianceledger.vendorinfo.MsgCreateVendorInfo", MsgCreateVendorInfo], ];