From 8df43e607ca90ef0dc7a58812f64fdd7f38383ee Mon Sep 17 00:00:00 2001 From: lazizcodesatdsr Date: Mon, 20 Feb 2023 18:49:08 +0500 Subject: [PATCH 01/13] make partNumber and productLabel optionaal --- docs/transactions.md | 4 ++-- proto/model/tx.proto | 6 +++--- x/model/client/cli/tx_model.go | 2 -- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/transactions.md b/docs/transactions.md index b84b8ca07..d04f27c19 100644 --- a/docs/transactions.md +++ b/docs/transactions.md @@ -181,8 +181,8 @@ Not all fields can be edited (see `EDIT_MODEL`). - pid: `uint16` - model product ID (positive non-zero) - deviceTypeID: `uint16` - DeviceTypeID is the device type identifier. For example, DeviceTypeID 10 (0x000a), is the device type identifier for a Door Lock. - productName: `string` - model name - - productLabel: `string` - model description (string or path to file containing data) - - partNumber: `string` - stock keeping unit + - productLabel: `optional(string)` - model description (string or path to file containing data) + - partNumber: `optional(string)` - stock keeping unit - commissioningCustomFlow: `optional(uint8)` - A value of 1 indicates that user interaction with the device (pressing a button, for example) is required before commissioning can take place. When CommissioningCustomflow is set to a value of 2, the commissioner SHOULD attempt to obtain a URL which MAY be used to provide an end user with the necessary details for how to configure the product for initial commissioning - commissioningCustomFlowURL: `optional(string)` - commissioningCustomFlowURL SHALL identify a vendor specific commissioning URL for the device model when the commissioningCustomFlow field is set to '2' - commissioningModeInitialStepsHint: `optional(uint32)` - commissioningModeInitialStepsHint SHALL identify a hint for the steps that can be used to put into commissioning mode a device that has not yet been commissioned. This field is a bitmap with values defined in the Pairing Hint Table. For example, a value of 1 (bit 0 is set) indicates that a device that has not yet been commissioned will enter Commissioning Mode upon a power cycle. diff --git a/proto/model/tx.proto b/proto/model/tx.proto index 9efe7f283..39c88aff0 100644 --- a/proto/model/tx.proto +++ b/proto/model/tx.proto @@ -12,7 +12,7 @@ option go_package = "github.com/zigbee-alliance/distributed-compliance-ledger/x/ // Msg defines the Msg service. service Msg { - rpc CreateModel(MsgCreateModel) returns (MsgCreateModelResponse); + rpc CreateModel(MsgCreateModel) returns (MsgCreateModelResponse); rpc UpdateModel(MsgUpdateModel) returns (MsgUpdateModelResponse); rpc DeleteModel(MsgDeleteModel) returns (MsgDeleteModelResponse); rpc CreateModelVersion(MsgCreateModelVersion) returns (MsgCreateModelVersionResponse); @@ -27,8 +27,8 @@ message MsgCreateModel { int32 deviceTypeId = 4 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""]; string productName = 5 [(gogoproto.moretags) = "validate:\"required,max=128\""]; - string productLabel = 6 [(gogoproto.moretags) = "validate:\"required,max=256\""]; - string partNumber = 7 [(gogoproto.moretags) = "validate:\"required,max=32\""]; + string productLabel = 6 [(gogoproto.moretags) = "validate:\"max=256\""]; + string partNumber = 7 [(gogoproto.moretags) = "validate:\"max=32\""]; int32 commissioningCustomFlow = 8 [(gogoproto.moretags) = "validate:\"gte=0,lte=2\""]; string commissioningCustomFlowUrl = 9 [(gogoproto.moretags) = "validate:\"required_if=CommissioningCustomFlow 2,omitempty,url,startsnotwith=http:,max=256\""]; uint32 commissioningModeInitialStepsHint = 10; diff --git a/x/model/client/cli/tx_model.go b/x/model/client/cli/tx_model.go index 4dd531f76..fc1d89ecd 100644 --- a/x/model/client/cli/tx_model.go +++ b/x/model/client/cli/tx_model.go @@ -130,8 +130,6 @@ and for these values the commissioningModeSecondaryStepInstruction SHALL be set` _ = cmd.MarkFlagRequired(FlagPid) _ = cmd.MarkFlagRequired(FlagDeviceTypeID) _ = cmd.MarkFlagRequired(FlagProductName) - _ = cmd.MarkFlagRequired(FlagProductLabel) - _ = cmd.MarkFlagRequired(FlagPartNumber) _ = cmd.MarkFlagRequired(flags.FlagFrom) return cmd From acd6c6881973bacda619ead177f6062c4a358918 Mon Sep 17 00:00:00 2001 From: lazizcodesatdsr Date: Mon, 20 Feb 2023 18:50:52 +0500 Subject: [PATCH 02/13] adjust unit tests not to check for productLabel and partNumber fields --- x/model/types/messages_model_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/x/model/types/messages_model_test.go b/x/model/types/messages_model_test.go index ed69d4426..8c7f8029f 100644 --- a/x/model/types/messages_model_test.go +++ b/x/model/types/messages_model_test.go @@ -126,15 +126,6 @@ func TestMsgCreateModel_ValidateBasic(t *testing.T) { }(validMsgCreateModel()), err: validator.ErrFieldMaxLengthExceeded, }, - { - name: "ProductLabel is omitted", - msg: func(msg *MsgCreateModel) *MsgCreateModel { - msg.ProductLabel = "" - - return msg - }(validMsgCreateModel()), - err: validator.ErrRequiredFieldMissing, - }, { name: "ProductLabel length > 256", msg: func(msg *MsgCreateModel) *MsgCreateModel { @@ -144,15 +135,6 @@ func TestMsgCreateModel_ValidateBasic(t *testing.T) { }(validMsgCreateModel()), err: validator.ErrFieldMaxLengthExceeded, }, - { - name: "PartNumber is omitted", - msg: func(msg *MsgCreateModel) *MsgCreateModel { - msg.PartNumber = "" - - return msg - }(validMsgCreateModel()), - err: validator.ErrRequiredFieldMissing, - }, { name: "PartNumber length > 32", msg: func(msg *MsgCreateModel) *MsgCreateModel { From 6d375707bd680f252d8370d0e9833a9d191b6e0a Mon Sep 17 00:00:00 2001 From: lazizcodesatdsr Date: Mon, 20 Feb 2023 18:52:32 +0500 Subject: [PATCH 03/13] regenerate after model change --- .../index.js | 32 ++-- .../index.ts | 32 ++-- .../module/index.d.ts | 4 +- .../module/index.js | 6 +- .../module/index.ts | 6 +- .../index.js | 48 ++--- .../index.ts | 48 ++--- .../module/index.d.ts | 8 +- .../module/index.js | 12 +- .../module/index.ts | 12 +- .../index.js | 40 ++--- .../index.ts | 40 ++--- .../module/index.d.ts | 4 +- .../module/index.js | 6 +- .../module/index.ts | 6 +- .../index.js | 48 ++--- .../index.ts | 48 ++--- .../module/index.d.ts | 8 +- .../module/index.js | 12 +- .../module/index.ts | 12 +- .../index.js | 104 +++++------ .../index.ts | 104 +++++------ .../module/index.d.ts | 20 +-- .../module/index.js | 30 ++-- .../module/index.ts | 30 ++-- .../index.js | 96 +++++----- .../index.ts | 96 +++++----- .../module/index.d.ts | 12 +- .../module/index.js | 18 +- .../module/index.ts | 18 +- x/model/types/tx.pb.go | 166 +++++++++--------- 31 files changed, 563 insertions(+), 563 deletions(-) diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.js index 08aae11ce..e501cb4e0 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.js @@ -353,37 +353,37 @@ export default { } } }, - async sendMsgCertifyModel({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProvisionModel({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgCertifyModel(value); + const msg = await txClient.msgProvisionModel(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCertifyModel:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgProvisionModel:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgCertifyModel:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgProvisionModel:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgProvisionModel({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgCertifyModel({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgProvisionModel(value); + const msg = await txClient.msgCertifyModel(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProvisionModel:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgCertifyModel:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProvisionModel:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgCertifyModel:Send', 'Could not broadcast Tx: ' + e.message); } } }, @@ -402,33 +402,33 @@ export default { } } }, - async MsgCertifyModel({ rootGetters }, { value }) { + async MsgProvisionModel({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgCertifyModel(value); + const msg = await txClient.msgProvisionModel(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCertifyModel:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgProvisionModel:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgCertifyModel:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgProvisionModel:Create', 'Could not create message: ' + e.message); } } }, - async MsgProvisionModel({ rootGetters }, { value }) { + async MsgCertifyModel({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgProvisionModel(value); + const msg = await txClient.msgCertifyModel(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProvisionModel:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgCertifyModel:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProvisionModel:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgCertifyModel:Create', 'Could not create message: ' + e.message); } } }, diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.ts index fe899051f..80bd0e0bc 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/index.ts @@ -443,33 +443,33 @@ export default { } } }, - async sendMsgCertifyModel({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProvisionModel({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCertifyModel(value) + const msg = await txClient.msgProvisionModel(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCertifyModel:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgProvisionModel:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgCertifyModel:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgProvisionModel:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgProvisionModel({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgCertifyModel({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgProvisionModel(value) + const msg = await txClient.msgCertifyModel(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProvisionModel:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgCertifyModel:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProvisionModel:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgCertifyModel:Send', 'Could not broadcast Tx: '+ e.message) } } }, @@ -488,30 +488,30 @@ export default { } } }, - async MsgCertifyModel({ rootGetters }, { value }) { + async MsgProvisionModel({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCertifyModel(value) + const msg = await txClient.msgProvisionModel(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCertifyModel:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgProvisionModel:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgCertifyModel:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgProvisionModel:Create', 'Could not create message: ' + e.message) } } }, - async MsgProvisionModel({ rootGetters }, { value }) { + async MsgCertifyModel({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgProvisionModel(value) + const msg = await txClient.msgCertifyModel(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProvisionModel:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgCertifyModel:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProvisionModel:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgCertifyModel:Create', 'Could not create message: ' + e.message) } } diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.d.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.d.ts index 9d6c5ff37..b9c5e58a1 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.d.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.d.ts @@ -2,8 +2,8 @@ import { StdFee } from "@cosmjs/launchpad"; import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; import { MsgRevokeModel } from "./types/compliance/tx"; -import { MsgCertifyModel } from "./types/compliance/tx"; import { MsgProvisionModel } from "./types/compliance/tx"; +import { MsgCertifyModel } from "./types/compliance/tx"; export declare const MissingWalletError: Error; export declare const registry: Registry; interface TxClientOptions { @@ -16,8 +16,8 @@ interface SignAndBroadcastOptions { declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; msgRevokeModel: (data: MsgRevokeModel) => EncodeObject; - msgCertifyModel: (data: MsgCertifyModel) => EncodeObject; msgProvisionModel: (data: MsgProvisionModel) => EncodeObject; + msgCertifyModel: (data: MsgCertifyModel) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.js index fbfafff0e..5731b49f7 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.js @@ -3,12 +3,12 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; import { MsgRevokeModel } from "./types/compliance/tx"; -import { MsgCertifyModel } from "./types/compliance/tx"; import { MsgProvisionModel } from "./types/compliance/tx"; +import { MsgCertifyModel } from "./types/compliance/tx"; const types = [ ["/zigbeealliance.distributedcomplianceledger.compliance.MsgRevokeModel", MsgRevokeModel], - ["/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", MsgCertifyModel], ["/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel", MsgProvisionModel], + ["/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", MsgCertifyModel], ]; export const MissingWalletError = new Error("wallet is required"); export const registry = new Registry(types); @@ -30,8 +30,8 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 return { signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: "" }) => client.signAndBroadcast(address, msgs, fee, memo), msgRevokeModel: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgRevokeModel", value: MsgRevokeModel.fromPartial(data) }), - msgCertifyModel: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", value: MsgCertifyModel.fromPartial(data) }), msgProvisionModel: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel", value: MsgProvisionModel.fromPartial(data) }), + msgCertifyModel: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", value: MsgCertifyModel.fromPartial(data) }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.ts index b7844a2aa..0ce8ec143 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.compliance/module/index.ts @@ -5,14 +5,14 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; import { MsgRevokeModel } from "./types/compliance/tx"; -import { MsgCertifyModel } from "./types/compliance/tx"; import { MsgProvisionModel } from "./types/compliance/tx"; +import { MsgCertifyModel } from "./types/compliance/tx"; const types = [ ["/zigbeealliance.distributedcomplianceledger.compliance.MsgRevokeModel", MsgRevokeModel], - ["/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", MsgCertifyModel], ["/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel", MsgProvisionModel], + ["/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", MsgCertifyModel], ]; export const MissingWalletError = new Error("wallet is required"); @@ -46,8 +46,8 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), msgRevokeModel: (data: MsgRevokeModel): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgRevokeModel", value: MsgRevokeModel.fromPartial( data ) }), - msgCertifyModel: (data: MsgCertifyModel): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", value: MsgCertifyModel.fromPartial( data ) }), msgProvisionModel: (data: MsgProvisionModel): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgProvisionModel", value: MsgProvisionModel.fromPartial( data ) }), + msgCertifyModel: (data: MsgCertifyModel): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.compliance.MsgCertifyModel", value: MsgCertifyModel.fromPartial( data ) }), }; }; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.js index f73fbc746..756c60179 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.js @@ -359,20 +359,20 @@ export default { throw new SpVuexError('QueryClient:QueryRejectedAccountAll', 'API Node Unavailable. Could not perform query: ' + e.message); } }, - async sendMsgRejectAddAccount({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProposeRevokeAccount({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgRejectAddAccount(value); + const msg = await txClient.msgProposeRevokeAccount(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectAddAccount:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgRejectAddAccount:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Send', 'Could not broadcast Tx: ' + e.message); } } }, @@ -410,52 +410,52 @@ export default { } } }, - async sendMsgProposeAddAccount({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRejectAddAccount({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgProposeAddAccount(value); + const msg = await txClient.msgRejectAddAccount(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeAddAccount:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRejectAddAccount:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProposeAddAccount:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgRejectAddAccount:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgProposeRevokeAccount({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProposeAddAccount({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgProposeRevokeAccount(value); + const msg = await txClient.msgProposeAddAccount(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgProposeAddAccount:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgProposeAddAccount:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async MsgRejectAddAccount({ rootGetters }, { value }) { + async MsgProposeRevokeAccount({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgRejectAddAccount(value); + const msg = await txClient.msgProposeRevokeAccount(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectAddAccount:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgRejectAddAccount:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Create', 'Could not create message: ' + e.message); } } }, @@ -489,33 +489,33 @@ export default { } } }, - async MsgProposeAddAccount({ rootGetters }, { value }) { + async MsgRejectAddAccount({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgProposeAddAccount(value); + const msg = await txClient.msgRejectAddAccount(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeAddAccount:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRejectAddAccount:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProposeAddAccount:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgRejectAddAccount:Create', 'Could not create message: ' + e.message); } } }, - async MsgProposeRevokeAccount({ rootGetters }, { value }) { + async MsgProposeAddAccount({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgProposeRevokeAccount(value); + const msg = await txClient.msgProposeAddAccount(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgProposeAddAccount:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgProposeAddAccount:Create', 'Could not create message: ' + e.message); } } }, diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.ts index 17bdbfe89..1a6d5b89e 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/index.ts @@ -459,18 +459,18 @@ export default { }, - async sendMsgRejectAddAccount({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProposeRevokeAccount({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRejectAddAccount(value) + const msg = await txClient.msgProposeRevokeAccount(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectAddAccount:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgRejectAddAccount:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Send', 'Could not broadcast Tx: '+ e.message) } } }, @@ -504,47 +504,47 @@ export default { } } }, - async sendMsgProposeAddAccount({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRejectAddAccount({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgProposeAddAccount(value) + const msg = await txClient.msgRejectAddAccount(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeAddAccount:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRejectAddAccount:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProposeAddAccount:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgRejectAddAccount:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgProposeRevokeAccount({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProposeAddAccount({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgProposeRevokeAccount(value) + const msg = await txClient.msgProposeAddAccount(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgProposeAddAccount:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgProposeAddAccount:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async MsgRejectAddAccount({ rootGetters }, { value }) { + async MsgProposeRevokeAccount({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRejectAddAccount(value) + const msg = await txClient.msgProposeRevokeAccount(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectAddAccount:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgRejectAddAccount:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Create', 'Could not create message: ' + e.message) } } @@ -577,30 +577,30 @@ export default { } } }, - async MsgProposeAddAccount({ rootGetters }, { value }) { + async MsgRejectAddAccount({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgProposeAddAccount(value) + const msg = await txClient.msgRejectAddAccount(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeAddAccount:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRejectAddAccount:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProposeAddAccount:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgRejectAddAccount:Create', 'Could not create message: ' + e.message) } } }, - async MsgProposeRevokeAccount({ rootGetters }, { value }) { + async MsgProposeAddAccount({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgProposeRevokeAccount(value) + const msg = await txClient.msgProposeAddAccount(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgProposeAddAccount:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProposeRevokeAccount:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgProposeAddAccount:Create', 'Could not create message: ' + e.message) } } diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.d.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.d.ts index ef82d8ede..15eb5d5ed 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.d.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.d.ts @@ -1,11 +1,11 @@ import { StdFee } from "@cosmjs/launchpad"; import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgRejectAddAccount } from "./types/dclauth/tx"; +import { MsgProposeRevokeAccount } from "./types/dclauth/tx"; import { MsgApproveAddAccount } from "./types/dclauth/tx"; import { MsgApproveRevokeAccount } from "./types/dclauth/tx"; +import { MsgRejectAddAccount } from "./types/dclauth/tx"; import { MsgProposeAddAccount } from "./types/dclauth/tx"; -import { MsgProposeRevokeAccount } from "./types/dclauth/tx"; export declare const MissingWalletError: Error; export declare const registry: Registry; interface TxClientOptions { @@ -17,11 +17,11 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; - msgRejectAddAccount: (data: MsgRejectAddAccount) => EncodeObject; + msgProposeRevokeAccount: (data: MsgProposeRevokeAccount) => EncodeObject; msgApproveAddAccount: (data: MsgApproveAddAccount) => EncodeObject; msgApproveRevokeAccount: (data: MsgApproveRevokeAccount) => EncodeObject; + msgRejectAddAccount: (data: MsgRejectAddAccount) => EncodeObject; msgProposeAddAccount: (data: MsgProposeAddAccount) => EncodeObject; - msgProposeRevokeAccount: (data: MsgProposeRevokeAccount) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.js index 1b02ad063..7849b5b2f 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.js @@ -2,17 +2,17 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgRejectAddAccount } from "./types/dclauth/tx"; +import { MsgProposeRevokeAccount } from "./types/dclauth/tx"; import { MsgApproveAddAccount } from "./types/dclauth/tx"; import { MsgApproveRevokeAccount } from "./types/dclauth/tx"; +import { MsgRejectAddAccount } from "./types/dclauth/tx"; import { MsgProposeAddAccount } from "./types/dclauth/tx"; -import { MsgProposeRevokeAccount } from "./types/dclauth/tx"; const types = [ - ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", MsgRejectAddAccount], + ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", MsgProposeRevokeAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveAddAccount", MsgApproveAddAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveRevokeAccount", MsgApproveRevokeAccount], + ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", MsgRejectAddAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeAddAccount", MsgProposeAddAccount], - ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", MsgProposeRevokeAccount], ]; export const MissingWalletError = new Error("wallet is required"); export const registry = new Registry(types); @@ -33,11 +33,11 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: "" }) => client.signAndBroadcast(address, msgs, fee, memo), - msgRejectAddAccount: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", value: MsgRejectAddAccount.fromPartial(data) }), + msgProposeRevokeAccount: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", value: MsgProposeRevokeAccount.fromPartial(data) }), msgApproveAddAccount: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveAddAccount", value: MsgApproveAddAccount.fromPartial(data) }), msgApproveRevokeAccount: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveRevokeAccount", value: MsgApproveRevokeAccount.fromPartial(data) }), + msgRejectAddAccount: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", value: MsgRejectAddAccount.fromPartial(data) }), msgProposeAddAccount: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeAddAccount", value: MsgProposeAddAccount.fromPartial(data) }), - msgProposeRevokeAccount: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", value: MsgProposeRevokeAccount.fromPartial(data) }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.ts index 12b8f65eb..a93b7f22e 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclauth/module/index.ts @@ -4,19 +4,19 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgRejectAddAccount } from "./types/dclauth/tx"; +import { MsgProposeRevokeAccount } from "./types/dclauth/tx"; import { MsgApproveAddAccount } from "./types/dclauth/tx"; import { MsgApproveRevokeAccount } from "./types/dclauth/tx"; +import { MsgRejectAddAccount } from "./types/dclauth/tx"; import { MsgProposeAddAccount } from "./types/dclauth/tx"; -import { MsgProposeRevokeAccount } from "./types/dclauth/tx"; const types = [ - ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", MsgRejectAddAccount], + ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", MsgProposeRevokeAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveAddAccount", MsgApproveAddAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveRevokeAccount", MsgApproveRevokeAccount], + ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", MsgRejectAddAccount], ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeAddAccount", MsgProposeAddAccount], - ["/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", MsgProposeRevokeAccount], ]; export const MissingWalletError = new Error("wallet is required"); @@ -49,11 +49,11 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), - msgRejectAddAccount: (data: MsgRejectAddAccount): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", value: MsgRejectAddAccount.fromPartial( data ) }), + msgProposeRevokeAccount: (data: MsgProposeRevokeAccount): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", value: MsgProposeRevokeAccount.fromPartial( data ) }), msgApproveAddAccount: (data: MsgApproveAddAccount): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveAddAccount", value: MsgApproveAddAccount.fromPartial( data ) }), msgApproveRevokeAccount: (data: MsgApproveRevokeAccount): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgApproveRevokeAccount", value: MsgApproveRevokeAccount.fromPartial( data ) }), + msgRejectAddAccount: (data: MsgRejectAddAccount): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgRejectAddAccount", value: MsgRejectAddAccount.fromPartial( data ) }), msgProposeAddAccount: (data: MsgProposeAddAccount): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeAddAccount", value: MsgProposeAddAccount.fromPartial( data ) }), - msgProposeRevokeAccount: (data: MsgProposeRevokeAccount): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclauth.MsgProposeRevokeAccount", value: MsgProposeRevokeAccount.fromPartial( data ) }), }; }; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.js index e3366bfd3..a23de167e 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.js @@ -240,6 +240,23 @@ export default { throw new SpVuexError('QueryClient:QueryRejectedUpgradeAll', 'API Node Unavailable. Could not perform query: ' + e.message); } }, + async sendMsgApproveUpgrade({ rootGetters }, { value, fee = [], memo = '' }) { + try { + const txClient = await initTxClient(rootGetters); + const msg = await txClient.msgApproveUpgrade(value); + const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, + gas: "200000" }, memo }); + return result; + } + catch (e) { + if (e == MissingWalletError) { + throw new SpVuexError('TxClient:MsgApproveUpgrade:Init', 'Could not initialize signing client. Wallet is required.'); + } + else { + throw new SpVuexError('TxClient:MsgApproveUpgrade:Send', 'Could not broadcast Tx: ' + e.message); + } + } + }, async sendMsgRejectUpgrade({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); @@ -274,20 +291,18 @@ export default { } } }, - async sendMsgApproveUpgrade({ rootGetters }, { value, fee = [], memo = '' }) { + async MsgApproveUpgrade({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); const msg = await txClient.msgApproveUpgrade(value); - const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, - gas: "200000" }, memo }); - return result; + return msg; } catch (e) { if (e == MissingWalletError) { throw new SpVuexError('TxClient:MsgApproveUpgrade:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgApproveUpgrade:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgApproveUpgrade:Create', 'Could not create message: ' + e.message); } } }, @@ -321,20 +336,5 @@ export default { } } }, - async MsgApproveUpgrade({ rootGetters }, { value }) { - try { - const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgApproveUpgrade(value); - return msg; - } - catch (e) { - if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveUpgrade:Init', 'Could not initialize signing client. Wallet is required.'); - } - else { - throw new SpVuexError('TxClient:MsgApproveUpgrade:Create', 'Could not create message: ' + e.message); - } - } - }, } }; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.ts index 21c8c6260..1639c88d2 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/index.ts @@ -300,6 +300,21 @@ export default { }, + async sendMsgApproveUpgrade({ rootGetters }, { value, fee = [], memo = '' }) { + try { + const txClient=await initTxClient(rootGetters) + const msg = await txClient.msgApproveUpgrade(value) + const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, + gas: "200000" }, memo}) + return result + } catch (e) { + if (e == MissingWalletError) { + throw new SpVuexError('TxClient:MsgApproveUpgrade:Init', 'Could not initialize signing client. Wallet is required.') + }else{ + throw new SpVuexError('TxClient:MsgApproveUpgrade:Send', 'Could not broadcast Tx: '+ e.message) + } + } + }, async sendMsgRejectUpgrade({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) @@ -330,22 +345,21 @@ export default { } } }, - async sendMsgApproveUpgrade({ rootGetters }, { value, fee = [], memo = '' }) { + + async MsgApproveUpgrade({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) const msg = await txClient.msgApproveUpgrade(value) - const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, - gas: "200000" }, memo}) - return result + return msg } catch (e) { if (e == MissingWalletError) { throw new SpVuexError('TxClient:MsgApproveUpgrade:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgApproveUpgrade:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgApproveUpgrade:Create', 'Could not create message: ' + e.message) + } } }, - async MsgRejectUpgrade({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) @@ -374,20 +388,6 @@ export default { } } }, - async MsgApproveUpgrade({ rootGetters }, { value }) { - try { - const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgApproveUpgrade(value) - return msg - } catch (e) { - if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveUpgrade:Init', 'Could not initialize signing client. Wallet is required.') - }else{ - throw new SpVuexError('TxClient:MsgApproveUpgrade:Create', 'Could not create message: ' + e.message) - - } - } - }, } } diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.d.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.d.ts index 1f914c56a..8dcc640c7 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.d.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.d.ts @@ -1,9 +1,9 @@ import { StdFee } from "@cosmjs/launchpad"; import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgApproveUpgrade } from "./types/dclupgrade/tx"; import { MsgRejectUpgrade } from "./types/dclupgrade/tx"; import { MsgProposeUpgrade } from "./types/dclupgrade/tx"; -import { MsgApproveUpgrade } from "./types/dclupgrade/tx"; export declare const MissingWalletError: Error; export declare const registry: Registry; interface TxClientOptions { @@ -15,9 +15,9 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; + msgApproveUpgrade: (data: MsgApproveUpgrade) => EncodeObject; msgRejectUpgrade: (data: MsgRejectUpgrade) => EncodeObject; msgProposeUpgrade: (data: MsgProposeUpgrade) => EncodeObject; - msgApproveUpgrade: (data: MsgApproveUpgrade) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.js index fae33baa2..6b9fa0ee5 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.js @@ -2,13 +2,13 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgApproveUpgrade } from "./types/dclupgrade/tx"; import { MsgRejectUpgrade } from "./types/dclupgrade/tx"; import { MsgProposeUpgrade } from "./types/dclupgrade/tx"; -import { MsgApproveUpgrade } from "./types/dclupgrade/tx"; const types = [ + ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgApproveUpgrade", MsgApproveUpgrade], ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgRejectUpgrade", MsgRejectUpgrade], ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgProposeUpgrade", MsgProposeUpgrade], - ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgApproveUpgrade", MsgApproveUpgrade], ]; export const MissingWalletError = new Error("wallet is required"); export const registry = new Registry(types); @@ -29,9 +29,9 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: "" }) => client.signAndBroadcast(address, msgs, fee, memo), + msgApproveUpgrade: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgApproveUpgrade", value: MsgApproveUpgrade.fromPartial(data) }), msgRejectUpgrade: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgRejectUpgrade", value: MsgRejectUpgrade.fromPartial(data) }), msgProposeUpgrade: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgProposeUpgrade", value: MsgProposeUpgrade.fromPartial(data) }), - msgApproveUpgrade: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgApproveUpgrade", value: MsgApproveUpgrade.fromPartial(data) }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.ts index 18dbe49e9..b48acc5dd 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.dclupgrade/module/index.ts @@ -4,15 +4,15 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgApproveUpgrade } from "./types/dclupgrade/tx"; import { MsgRejectUpgrade } from "./types/dclupgrade/tx"; import { MsgProposeUpgrade } from "./types/dclupgrade/tx"; -import { MsgApproveUpgrade } from "./types/dclupgrade/tx"; const types = [ + ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgApproveUpgrade", MsgApproveUpgrade], ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgRejectUpgrade", MsgRejectUpgrade], ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgProposeUpgrade", MsgProposeUpgrade], - ["/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgApproveUpgrade", MsgApproveUpgrade], ]; export const MissingWalletError = new Error("wallet is required"); @@ -45,9 +45,9 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), + msgApproveUpgrade: (data: MsgApproveUpgrade): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgApproveUpgrade", value: MsgApproveUpgrade.fromPartial( data ) }), msgRejectUpgrade: (data: MsgRejectUpgrade): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgRejectUpgrade", value: MsgRejectUpgrade.fromPartial( data ) }), msgProposeUpgrade: (data: MsgProposeUpgrade): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgProposeUpgrade", value: MsgProposeUpgrade.fromPartial( data ) }), - msgApproveUpgrade: (data: MsgApproveUpgrade): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.dclupgrade.MsgApproveUpgrade", value: MsgApproveUpgrade.fromPartial( data ) }), }; }; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.js index 0eef3dad4..3a270bfd9 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.js @@ -213,37 +213,37 @@ export default { throw new SpVuexError('QueryClient:QueryModelVersions', 'API Node Unavailable. Could not perform query: ' + e.message); } }, - async sendMsgUpdateModelVersion({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgUpdateModel({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgUpdateModelVersion(value); + const msg = await txClient.msgUpdateModel(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgUpdateModelVersion:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgUpdateModel:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgUpdateModelVersion:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgUpdateModel:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgUpdateModel({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgCreateModelVersion({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgUpdateModel(value); + const msg = await txClient.msgCreateModelVersion(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgUpdateModel:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgCreateModelVersion:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgUpdateModel:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgCreateModelVersion:Send', 'Could not broadcast Tx: ' + e.message); } } }, @@ -281,50 +281,50 @@ export default { } } }, - async sendMsgCreateModelVersion({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgUpdateModelVersion({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgCreateModelVersion(value); + const msg = await txClient.msgUpdateModelVersion(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCreateModelVersion:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgUpdateModelVersion:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgCreateModelVersion:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgUpdateModelVersion:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async MsgUpdateModelVersion({ rootGetters }, { value }) { + async MsgUpdateModel({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgUpdateModelVersion(value); + const msg = await txClient.msgUpdateModel(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgUpdateModelVersion:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgUpdateModel:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgUpdateModelVersion:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgUpdateModel:Create', 'Could not create message: ' + e.message); } } }, - async MsgUpdateModel({ rootGetters }, { value }) { + async MsgCreateModelVersion({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgUpdateModel(value); + const msg = await txClient.msgCreateModelVersion(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgUpdateModel:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgCreateModelVersion:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgUpdateModel:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgCreateModelVersion:Create', 'Could not create message: ' + e.message); } } }, @@ -358,18 +358,18 @@ export default { } } }, - async MsgCreateModelVersion({ rootGetters }, { value }) { + async MsgUpdateModelVersion({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgCreateModelVersion(value); + const msg = await txClient.msgUpdateModelVersion(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCreateModelVersion:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgUpdateModelVersion:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgCreateModelVersion:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgUpdateModelVersion:Create', 'Could not create message: ' + e.message); } } }, diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.ts index 9cd588b5a..27ffa0374 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/index.ts @@ -265,33 +265,33 @@ export default { }, - async sendMsgUpdateModelVersion({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgUpdateModel({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgUpdateModelVersion(value) + const msg = await txClient.msgUpdateModel(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgUpdateModelVersion:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgUpdateModel:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgUpdateModelVersion:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgUpdateModel:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgUpdateModel({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgCreateModelVersion({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgUpdateModel(value) + const msg = await txClient.msgCreateModelVersion(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgUpdateModel:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgCreateModelVersion:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgUpdateModel:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgCreateModelVersion:Send', 'Could not broadcast Tx: '+ e.message) } } }, @@ -325,46 +325,46 @@ export default { } } }, - async sendMsgCreateModelVersion({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgUpdateModelVersion({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCreateModelVersion(value) + const msg = await txClient.msgUpdateModelVersion(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCreateModelVersion:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgUpdateModelVersion:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgCreateModelVersion:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgUpdateModelVersion:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async MsgUpdateModelVersion({ rootGetters }, { value }) { + async MsgUpdateModel({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgUpdateModelVersion(value) + const msg = await txClient.msgUpdateModel(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgUpdateModelVersion:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgUpdateModel:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgUpdateModelVersion:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgUpdateModel:Create', 'Could not create message: ' + e.message) } } }, - async MsgUpdateModel({ rootGetters }, { value }) { + async MsgCreateModelVersion({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgUpdateModel(value) + const msg = await txClient.msgCreateModelVersion(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgUpdateModel:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgCreateModelVersion:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgUpdateModel:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgCreateModelVersion:Create', 'Could not create message: ' + e.message) } } @@ -397,16 +397,16 @@ export default { } } }, - async MsgCreateModelVersion({ rootGetters }, { value }) { + async MsgUpdateModelVersion({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCreateModelVersion(value) + const msg = await txClient.msgUpdateModelVersion(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCreateModelVersion:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgUpdateModelVersion:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgCreateModelVersion:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgUpdateModelVersion:Create', 'Could not create message: ' + e.message) } } diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.d.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.d.ts index e2142badd..3c1ca6e2d 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.d.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.d.ts @@ -1,11 +1,11 @@ import { StdFee } from "@cosmjs/launchpad"; import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgUpdateModelVersion } from "./types/model/tx"; import { MsgUpdateModel } from "./types/model/tx"; +import { MsgCreateModelVersion } from "./types/model/tx"; import { MsgCreateModel } from "./types/model/tx"; import { MsgDeleteModel } from "./types/model/tx"; -import { MsgCreateModelVersion } from "./types/model/tx"; +import { MsgUpdateModelVersion } from "./types/model/tx"; export declare const MissingWalletError: Error; export declare const registry: Registry; interface TxClientOptions { @@ -17,11 +17,11 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; - msgUpdateModelVersion: (data: MsgUpdateModelVersion) => EncodeObject; msgUpdateModel: (data: MsgUpdateModel) => EncodeObject; + msgCreateModelVersion: (data: MsgCreateModelVersion) => EncodeObject; msgCreateModel: (data: MsgCreateModel) => EncodeObject; msgDeleteModel: (data: MsgDeleteModel) => EncodeObject; - msgCreateModelVersion: (data: MsgCreateModelVersion) => EncodeObject; + msgUpdateModelVersion: (data: MsgUpdateModelVersion) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.js index cbf1e5015..49b8f79e0 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.js @@ -2,17 +2,17 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgUpdateModelVersion } from "./types/model/tx"; import { MsgUpdateModel } from "./types/model/tx"; +import { MsgCreateModelVersion } from "./types/model/tx"; import { MsgCreateModel } from "./types/model/tx"; import { MsgDeleteModel } from "./types/model/tx"; -import { MsgCreateModelVersion } from "./types/model/tx"; +import { MsgUpdateModelVersion } from "./types/model/tx"; const types = [ - ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", MsgUpdateModelVersion], ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModel", MsgUpdateModel], + ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", MsgCreateModelVersion], ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModel", MsgCreateModel], ["/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModel", MsgDeleteModel], - ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", MsgCreateModelVersion], + ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", MsgUpdateModelVersion], ]; export const MissingWalletError = new Error("wallet is required"); export const registry = new Registry(types); @@ -33,11 +33,11 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: "" }) => client.signAndBroadcast(address, msgs, fee, memo), - msgUpdateModelVersion: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", value: MsgUpdateModelVersion.fromPartial(data) }), msgUpdateModel: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModel", value: MsgUpdateModel.fromPartial(data) }), + msgCreateModelVersion: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", value: MsgCreateModelVersion.fromPartial(data) }), msgCreateModel: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModel", value: MsgCreateModel.fromPartial(data) }), msgDeleteModel: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModel", value: MsgDeleteModel.fromPartial(data) }), - msgCreateModelVersion: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", value: MsgCreateModelVersion.fromPartial(data) }), + msgUpdateModelVersion: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", value: MsgUpdateModelVersion.fromPartial(data) }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.ts index 1c23056cf..51544873e 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/index.ts @@ -4,19 +4,19 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgUpdateModelVersion } from "./types/model/tx"; import { MsgUpdateModel } from "./types/model/tx"; +import { MsgCreateModelVersion } from "./types/model/tx"; import { MsgCreateModel } from "./types/model/tx"; import { MsgDeleteModel } from "./types/model/tx"; -import { MsgCreateModelVersion } from "./types/model/tx"; +import { MsgUpdateModelVersion } from "./types/model/tx"; const types = [ - ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", MsgUpdateModelVersion], ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModel", MsgUpdateModel], + ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", MsgCreateModelVersion], ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModel", MsgCreateModel], ["/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModel", MsgDeleteModel], - ["/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", MsgCreateModelVersion], + ["/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", MsgUpdateModelVersion], ]; export const MissingWalletError = new Error("wallet is required"); @@ -49,11 +49,11 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), - msgUpdateModelVersion: (data: MsgUpdateModelVersion): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", value: MsgUpdateModelVersion.fromPartial( data ) }), msgUpdateModel: (data: MsgUpdateModel): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModel", value: MsgUpdateModel.fromPartial( data ) }), + msgCreateModelVersion: (data: MsgCreateModelVersion): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", value: MsgCreateModelVersion.fromPartial( data ) }), msgCreateModel: (data: MsgCreateModel): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModel", value: MsgCreateModel.fromPartial( data ) }), msgDeleteModel: (data: MsgDeleteModel): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgDeleteModel", value: MsgDeleteModel.fromPartial( data ) }), - msgCreateModelVersion: (data: MsgCreateModelVersion): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgCreateModelVersion", value: MsgCreateModelVersion.fromPartial( data ) }), + msgUpdateModelVersion: (data: MsgUpdateModelVersion): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.model.MsgUpdateModelVersion", value: MsgUpdateModelVersion.fromPartial( data ) }), }; }; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.js index 911e0b8f1..85fc450b8 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.js @@ -434,20 +434,37 @@ export default { throw new SpVuexError('QueryClient:QueryRejectedCertificateAll', 'API Node Unavailable. Could not perform query: ' + e.message); } }, - async sendMsgApproveRevokeX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProposeAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgApproveRevokeX509RootCert(value); + const msg = await txClient.msgProposeAddX509RootCert(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Send', 'Could not broadcast Tx: ' + e.message); + } + } + }, + async sendMsgApproveAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + try { + const txClient = await initTxClient(rootGetters); + const msg = await txClient.msgApproveAddX509RootCert(value); + const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, + gas: "200000" }, memo }); + return result; + } + catch (e) { + if (e == MissingWalletError) { + throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); + } + else { + throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Send', 'Could not broadcast Tx: ' + e.message); } } }, @@ -468,37 +485,37 @@ export default { } } }, - async sendMsgRejectAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgApproveRevokeX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgRejectAddX509RootCert(value); + const msg = await txClient.msgApproveRevokeX509RootCert(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgApproveAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRevokeX509Cert({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgApproveAddX509RootCert(value); + const msg = await txClient.msgRevokeX509Cert(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRevokeX509Cert:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgRevokeX509Cert:Send', 'Could not broadcast Tx: ' + e.message); } } }, @@ -519,52 +536,50 @@ export default { } } }, - async sendMsgRevokeX509Cert({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRejectAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgRevokeX509Cert(value); + const msg = await txClient.msgRejectAddX509RootCert(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRevokeX509Cert:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgRevokeX509Cert:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgProposeAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + async MsgProposeAddX509RootCert({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); const msg = await txClient.msgProposeAddX509RootCert(value); - const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, - gas: "200000" }, memo }); - return result; + return msg; } catch (e) { if (e == MissingWalletError) { throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Create', 'Could not create message: ' + e.message); } } }, - async MsgApproveRevokeX509RootCert({ rootGetters }, { value }) { + async MsgApproveAddX509RootCert({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgApproveRevokeX509RootCert(value); + const msg = await txClient.msgApproveAddX509RootCert(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Create', 'Could not create message: ' + e.message); } } }, @@ -583,33 +598,33 @@ export default { } } }, - async MsgRejectAddX509RootCert({ rootGetters }, { value }) { + async MsgApproveRevokeX509RootCert({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgRejectAddX509RootCert(value); + const msg = await txClient.msgApproveRevokeX509RootCert(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Create', 'Could not create message: ' + e.message); } } }, - async MsgApproveAddX509RootCert({ rootGetters }, { value }) { + async MsgRevokeX509Cert({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgApproveAddX509RootCert(value); + const msg = await txClient.msgRevokeX509Cert(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRevokeX509Cert:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgRevokeX509Cert:Create', 'Could not create message: ' + e.message); } } }, @@ -628,33 +643,18 @@ export default { } } }, - async MsgRevokeX509Cert({ rootGetters }, { value }) { - try { - const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgRevokeX509Cert(value); - return msg; - } - catch (e) { - if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRevokeX509Cert:Init', 'Could not initialize signing client. Wallet is required.'); - } - else { - throw new SpVuexError('TxClient:MsgRevokeX509Cert:Create', 'Could not create message: ' + e.message); - } - } - }, - async MsgProposeAddX509RootCert({ rootGetters }, { value }) { + async MsgRejectAddX509RootCert({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgProposeAddX509RootCert(value); + const msg = await txClient.msgRejectAddX509RootCert(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Create', 'Could not create message: ' + e.message); } } }, diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.ts index 6ba2387d2..30e80fbd7 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/index.ts @@ -558,18 +558,33 @@ export default { }, - async sendMsgApproveRevokeX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProposeAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgApproveRevokeX509RootCert(value) + const msg = await txClient.msgProposeAddX509RootCert(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Send', 'Could not broadcast Tx: '+ e.message) + } + } + }, + async sendMsgApproveAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + try { + const txClient=await initTxClient(rootGetters) + const msg = await txClient.msgApproveAddX509RootCert(value) + const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, + gas: "200000" }, memo}) + return result + } catch (e) { + if (e == MissingWalletError) { + throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') + }else{ + throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Send', 'Could not broadcast Tx: '+ e.message) } } }, @@ -588,33 +603,33 @@ export default { } } }, - async sendMsgRejectAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgApproveRevokeX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRejectAddX509RootCert(value) + const msg = await txClient.msgApproveRevokeX509RootCert(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgApproveAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRevokeX509Cert({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgApproveAddX509RootCert(value) + const msg = await txClient.msgRevokeX509Cert(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRevokeX509Cert:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgRevokeX509Cert:Send', 'Could not broadcast Tx: '+ e.message) } } }, @@ -633,47 +648,46 @@ export default { } } }, - async sendMsgRevokeX509Cert({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRejectAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRevokeX509Cert(value) + const msg = await txClient.msgRejectAddX509RootCert(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRevokeX509Cert:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgRevokeX509Cert:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgProposeAddX509RootCert({ rootGetters }, { value, fee = [], memo = '' }) { + + async MsgProposeAddX509RootCert({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) const msg = await txClient.msgProposeAddX509RootCert(value) - const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, - gas: "200000" }, memo}) - return result + return msg } catch (e) { if (e == MissingWalletError) { throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Create', 'Could not create message: ' + e.message) + } } }, - - async MsgApproveRevokeX509RootCert({ rootGetters }, { value }) { + async MsgApproveAddX509RootCert({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgApproveRevokeX509RootCert(value) + const msg = await txClient.msgApproveAddX509RootCert(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Create', 'Could not create message: ' + e.message) } } @@ -692,30 +706,30 @@ export default { } } }, - async MsgRejectAddX509RootCert({ rootGetters }, { value }) { + async MsgApproveRevokeX509RootCert({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRejectAddX509RootCert(value) + const msg = await txClient.msgApproveRevokeX509RootCert(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgApproveRevokeX509RootCert:Create', 'Could not create message: ' + e.message) } } }, - async MsgApproveAddX509RootCert({ rootGetters }, { value }) { + async MsgRevokeX509Cert({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgApproveAddX509RootCert(value) + const msg = await txClient.msgRevokeX509Cert(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRevokeX509Cert:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgApproveAddX509RootCert:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgRevokeX509Cert:Create', 'Could not create message: ' + e.message) } } @@ -734,30 +748,16 @@ export default { } } }, - async MsgRevokeX509Cert({ rootGetters }, { value }) { - try { - const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRevokeX509Cert(value) - return msg - } catch (e) { - if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRevokeX509Cert:Init', 'Could not initialize signing client. Wallet is required.') - }else{ - throw new SpVuexError('TxClient:MsgRevokeX509Cert:Create', 'Could not create message: ' + e.message) - - } - } - }, - async MsgProposeAddX509RootCert({ rootGetters }, { value }) { + async MsgRejectAddX509RootCert({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgProposeAddX509RootCert(value) + const msg = await txClient.msgRejectAddX509RootCert(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProposeAddX509RootCert:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgRejectAddX509RootCert:Create', 'Could not create message: ' + e.message) } } diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.d.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.d.ts index 40e6d5f0a..b9bcad8c9 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.d.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.d.ts @@ -1,13 +1,13 @@ import { StdFee } from "@cosmjs/launchpad"; import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgApproveRevokeX509RootCert } from "./types/pki/tx"; -import { MsgAddX509Cert } from "./types/pki/tx"; -import { MsgRejectAddX509RootCert } from "./types/pki/tx"; +import { MsgProposeAddX509RootCert } from "./types/pki/tx"; import { MsgApproveAddX509RootCert } from "./types/pki/tx"; -import { MsgProposeRevokeX509RootCert } from "./types/pki/tx"; +import { MsgAddX509Cert } from "./types/pki/tx"; +import { MsgApproveRevokeX509RootCert } from "./types/pki/tx"; import { MsgRevokeX509Cert } from "./types/pki/tx"; -import { MsgProposeAddX509RootCert } from "./types/pki/tx"; +import { MsgProposeRevokeX509RootCert } from "./types/pki/tx"; +import { MsgRejectAddX509RootCert } from "./types/pki/tx"; export declare const MissingWalletError: Error; export declare const registry: Registry; interface TxClientOptions { @@ -19,13 +19,13 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; - msgApproveRevokeX509RootCert: (data: MsgApproveRevokeX509RootCert) => EncodeObject; - msgAddX509Cert: (data: MsgAddX509Cert) => EncodeObject; - msgRejectAddX509RootCert: (data: MsgRejectAddX509RootCert) => EncodeObject; + msgProposeAddX509RootCert: (data: MsgProposeAddX509RootCert) => EncodeObject; msgApproveAddX509RootCert: (data: MsgApproveAddX509RootCert) => EncodeObject; - msgProposeRevokeX509RootCert: (data: MsgProposeRevokeX509RootCert) => EncodeObject; + msgAddX509Cert: (data: MsgAddX509Cert) => EncodeObject; + msgApproveRevokeX509RootCert: (data: MsgApproveRevokeX509RootCert) => EncodeObject; msgRevokeX509Cert: (data: MsgRevokeX509Cert) => EncodeObject; - msgProposeAddX509RootCert: (data: MsgProposeAddX509RootCert) => EncodeObject; + msgProposeRevokeX509RootCert: (data: MsgProposeRevokeX509RootCert) => EncodeObject; + msgRejectAddX509RootCert: (data: MsgRejectAddX509RootCert) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.js index f184fe315..a56986ca2 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.js @@ -2,21 +2,21 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgApproveRevokeX509RootCert } from "./types/pki/tx"; -import { MsgAddX509Cert } from "./types/pki/tx"; -import { MsgRejectAddX509RootCert } from "./types/pki/tx"; +import { MsgProposeAddX509RootCert } from "./types/pki/tx"; import { MsgApproveAddX509RootCert } from "./types/pki/tx"; -import { MsgProposeRevokeX509RootCert } from "./types/pki/tx"; +import { MsgAddX509Cert } from "./types/pki/tx"; +import { MsgApproveRevokeX509RootCert } from "./types/pki/tx"; import { MsgRevokeX509Cert } from "./types/pki/tx"; -import { MsgProposeAddX509RootCert } from "./types/pki/tx"; +import { MsgProposeRevokeX509RootCert } from "./types/pki/tx"; +import { MsgRejectAddX509RootCert } from "./types/pki/tx"; const types = [ - ["/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", MsgApproveRevokeX509RootCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", MsgAddX509Cert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", MsgRejectAddX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", MsgProposeAddX509RootCert], ["/zigbeealliance.distributedcomplianceledger.pki.MsgApproveAddX509RootCert", MsgApproveAddX509RootCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", MsgProposeRevokeX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", MsgAddX509Cert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", MsgApproveRevokeX509RootCert], ["/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeX509Cert", MsgRevokeX509Cert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", MsgProposeAddX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", MsgProposeRevokeX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", MsgRejectAddX509RootCert], ]; export const MissingWalletError = new Error("wallet is required"); export const registry = new Registry(types); @@ -37,13 +37,13 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: "" }) => client.signAndBroadcast(address, msgs, fee, memo), - msgApproveRevokeX509RootCert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", value: MsgApproveRevokeX509RootCert.fromPartial(data) }), - msgAddX509Cert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", value: MsgAddX509Cert.fromPartial(data) }), - msgRejectAddX509RootCert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", value: MsgRejectAddX509RootCert.fromPartial(data) }), + msgProposeAddX509RootCert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", value: MsgProposeAddX509RootCert.fromPartial(data) }), msgApproveAddX509RootCert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveAddX509RootCert", value: MsgApproveAddX509RootCert.fromPartial(data) }), - msgProposeRevokeX509RootCert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", value: MsgProposeRevokeX509RootCert.fromPartial(data) }), + msgAddX509Cert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", value: MsgAddX509Cert.fromPartial(data) }), + msgApproveRevokeX509RootCert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", value: MsgApproveRevokeX509RootCert.fromPartial(data) }), msgRevokeX509Cert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeX509Cert", value: MsgRevokeX509Cert.fromPartial(data) }), - msgProposeAddX509RootCert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", value: MsgProposeAddX509RootCert.fromPartial(data) }), + msgProposeRevokeX509RootCert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", value: MsgProposeRevokeX509RootCert.fromPartial(data) }), + msgRejectAddX509RootCert: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", value: MsgRejectAddX509RootCert.fromPartial(data) }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.ts index 945cc50e7..46b2d06cb 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.pki/module/index.ts @@ -4,23 +4,23 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; -import { MsgApproveRevokeX509RootCert } from "./types/pki/tx"; -import { MsgAddX509Cert } from "./types/pki/tx"; -import { MsgRejectAddX509RootCert } from "./types/pki/tx"; +import { MsgProposeAddX509RootCert } from "./types/pki/tx"; import { MsgApproveAddX509RootCert } from "./types/pki/tx"; -import { MsgProposeRevokeX509RootCert } from "./types/pki/tx"; +import { MsgAddX509Cert } from "./types/pki/tx"; +import { MsgApproveRevokeX509RootCert } from "./types/pki/tx"; import { MsgRevokeX509Cert } from "./types/pki/tx"; -import { MsgProposeAddX509RootCert } from "./types/pki/tx"; +import { MsgProposeRevokeX509RootCert } from "./types/pki/tx"; +import { MsgRejectAddX509RootCert } from "./types/pki/tx"; const types = [ - ["/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", MsgApproveRevokeX509RootCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", MsgAddX509Cert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", MsgRejectAddX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", MsgProposeAddX509RootCert], ["/zigbeealliance.distributedcomplianceledger.pki.MsgApproveAddX509RootCert", MsgApproveAddX509RootCert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", MsgProposeRevokeX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", MsgAddX509Cert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", MsgApproveRevokeX509RootCert], ["/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeX509Cert", MsgRevokeX509Cert], - ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", MsgProposeAddX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", MsgProposeRevokeX509RootCert], + ["/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", MsgRejectAddX509RootCert], ]; export const MissingWalletError = new Error("wallet is required"); @@ -53,13 +53,13 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), - msgApproveRevokeX509RootCert: (data: MsgApproveRevokeX509RootCert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", value: MsgApproveRevokeX509RootCert.fromPartial( data ) }), - msgAddX509Cert: (data: MsgAddX509Cert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", value: MsgAddX509Cert.fromPartial( data ) }), - msgRejectAddX509RootCert: (data: MsgRejectAddX509RootCert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", value: MsgRejectAddX509RootCert.fromPartial( data ) }), + msgProposeAddX509RootCert: (data: MsgProposeAddX509RootCert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", value: MsgProposeAddX509RootCert.fromPartial( data ) }), msgApproveAddX509RootCert: (data: MsgApproveAddX509RootCert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveAddX509RootCert", value: MsgApproveAddX509RootCert.fromPartial( data ) }), - msgProposeRevokeX509RootCert: (data: MsgProposeRevokeX509RootCert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", value: MsgProposeRevokeX509RootCert.fromPartial( data ) }), + msgAddX509Cert: (data: MsgAddX509Cert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgAddX509Cert", value: MsgAddX509Cert.fromPartial( data ) }), + msgApproveRevokeX509RootCert: (data: MsgApproveRevokeX509RootCert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgApproveRevokeX509RootCert", value: MsgApproveRevokeX509RootCert.fromPartial( data ) }), msgRevokeX509Cert: (data: MsgRevokeX509Cert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRevokeX509Cert", value: MsgRevokeX509Cert.fromPartial( data ) }), - msgProposeAddX509RootCert: (data: MsgProposeAddX509RootCert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeAddX509RootCert", value: MsgProposeAddX509RootCert.fromPartial( data ) }), + msgProposeRevokeX509RootCert: (data: MsgProposeRevokeX509RootCert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgProposeRevokeX509RootCert", value: MsgProposeRevokeX509RootCert.fromPartial( data ) }), + msgRejectAddX509RootCert: (data: MsgRejectAddX509RootCert): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.pki.MsgRejectAddX509RootCert", value: MsgRejectAddX509RootCert.fromPartial( data ) }), }; }; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.js index 71e2de635..2d4907ef9 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.js @@ -338,195 +338,195 @@ export default { throw new SpVuexError('QueryClient:QueryRejectedDisableValidatorAll', 'API Node Unavailable. Could not perform query: ' + e.message); } }, - async sendMsgCreateValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRejectDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgCreateValidator(value); + const msg = await txClient.msgRejectDisableValidator(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRejectDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgCreateValidator:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgRejectDisableValidator:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProposeDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgDisableValidator(value); + const msg = await txClient.msgProposeDisableValidator(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgProposeDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgDisableValidator:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgProposeDisableValidator:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgEnableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgCreateValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgEnableValidator(value); + const msg = await txClient.msgCreateValidator(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgEnableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgEnableValidator:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgCreateValidator:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgApproveDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgApproveDisableValidator(value); + const msg = await txClient.msgDisableValidator(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgApproveDisableValidator:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgDisableValidator:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgProposeDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgApproveDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgProposeDisableValidator(value); + const msg = await txClient.msgApproveDisableValidator(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgApproveDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProposeDisableValidator:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgApproveDisableValidator:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async sendMsgRejectDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgEnableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgRejectDisableValidator(value); + const msg = await txClient.msgEnableValidator(value); const result = await txClient.signAndBroadcast([msg], { fee: { amount: fee, gas: "200000" }, memo }); return result; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgEnableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgRejectDisableValidator:Send', 'Could not broadcast Tx: ' + e.message); + throw new SpVuexError('TxClient:MsgEnableValidator:Send', 'Could not broadcast Tx: ' + e.message); } } }, - async MsgCreateValidator({ rootGetters }, { value }) { + async MsgRejectDisableValidator({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgCreateValidator(value); + const msg = await txClient.msgRejectDisableValidator(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgRejectDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgCreateValidator:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgRejectDisableValidator:Create', 'Could not create message: ' + e.message); } } }, - async MsgDisableValidator({ rootGetters }, { value }) { + async MsgProposeDisableValidator({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgDisableValidator(value); + const msg = await txClient.msgProposeDisableValidator(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgProposeDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgDisableValidator:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgProposeDisableValidator:Create', 'Could not create message: ' + e.message); } } }, - async MsgEnableValidator({ rootGetters }, { value }) { + async MsgCreateValidator({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgEnableValidator(value); + const msg = await txClient.msgCreateValidator(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgEnableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgEnableValidator:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgCreateValidator:Create', 'Could not create message: ' + e.message); } } }, - async MsgApproveDisableValidator({ rootGetters }, { value }) { + async MsgDisableValidator({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgApproveDisableValidator(value); + const msg = await txClient.msgDisableValidator(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgApproveDisableValidator:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgDisableValidator:Create', 'Could not create message: ' + e.message); } } }, - async MsgProposeDisableValidator({ rootGetters }, { value }) { + async MsgApproveDisableValidator({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgProposeDisableValidator(value); + const msg = await txClient.msgApproveDisableValidator(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgApproveDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgProposeDisableValidator:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgApproveDisableValidator:Create', 'Could not create message: ' + e.message); } } }, - async MsgRejectDisableValidator({ rootGetters }, { value }) { + async MsgEnableValidator({ rootGetters }, { value }) { try { const txClient = await initTxClient(rootGetters); - const msg = await txClient.msgRejectDisableValidator(value); + const msg = await txClient.msgEnableValidator(value); return msg; } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectDisableValidator:Init', 'Could not initialize signing client. Wallet is required.'); + throw new SpVuexError('TxClient:MsgEnableValidator:Init', 'Could not initialize signing client. Wallet is required.'); } else { - throw new SpVuexError('TxClient:MsgRejectDisableValidator:Create', 'Could not create message: ' + e.message); + throw new SpVuexError('TxClient:MsgEnableValidator:Create', 'Could not create message: ' + e.message); } } }, diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.ts index 9370fc927..e77c86554 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/index.ts @@ -430,177 +430,177 @@ export default { }, - async sendMsgCreateValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgRejectDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCreateValidator(value) + const msg = await txClient.msgRejectDisableValidator(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRejectDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgCreateValidator:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgRejectDisableValidator:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgProposeDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgDisableValidator(value) + const msg = await txClient.msgProposeDisableValidator(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgProposeDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgDisableValidator:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgProposeDisableValidator:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgEnableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgCreateValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgEnableValidator(value) + const msg = await txClient.msgCreateValidator(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgEnableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgEnableValidator:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgCreateValidator:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgApproveDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgApproveDisableValidator(value) + const msg = await txClient.msgDisableValidator(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgApproveDisableValidator:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgDisableValidator:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgProposeDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgApproveDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgProposeDisableValidator(value) + const msg = await txClient.msgApproveDisableValidator(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgApproveDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProposeDisableValidator:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgApproveDisableValidator:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async sendMsgRejectDisableValidator({ rootGetters }, { value, fee = [], memo = '' }) { + async sendMsgEnableValidator({ rootGetters }, { value, fee = [], memo = '' }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRejectDisableValidator(value) + const msg = await txClient.msgEnableValidator(value) const result = await txClient.signAndBroadcast([msg], {fee: { amount: fee, gas: "200000" }, memo}) return result } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgEnableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgRejectDisableValidator:Send', 'Could not broadcast Tx: '+ e.message) + throw new SpVuexError('TxClient:MsgEnableValidator:Send', 'Could not broadcast Tx: '+ e.message) } } }, - async MsgCreateValidator({ rootGetters }, { value }) { + async MsgRejectDisableValidator({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgCreateValidator(value) + const msg = await txClient.msgRejectDisableValidator(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgRejectDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgCreateValidator:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgRejectDisableValidator:Create', 'Could not create message: ' + e.message) } } }, - async MsgDisableValidator({ rootGetters }, { value }) { + async MsgProposeDisableValidator({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgDisableValidator(value) + const msg = await txClient.msgProposeDisableValidator(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgProposeDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgDisableValidator:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgProposeDisableValidator:Create', 'Could not create message: ' + e.message) } } }, - async MsgEnableValidator({ rootGetters }, { value }) { + async MsgCreateValidator({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgEnableValidator(value) + const msg = await txClient.msgCreateValidator(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgEnableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgCreateValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgEnableValidator:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgCreateValidator:Create', 'Could not create message: ' + e.message) } } }, - async MsgApproveDisableValidator({ rootGetters }, { value }) { + async MsgDisableValidator({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgApproveDisableValidator(value) + const msg = await txClient.msgDisableValidator(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgApproveDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgApproveDisableValidator:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgDisableValidator:Create', 'Could not create message: ' + e.message) } } }, - async MsgProposeDisableValidator({ rootGetters }, { value }) { + async MsgApproveDisableValidator({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgProposeDisableValidator(value) + const msg = await txClient.msgApproveDisableValidator(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgProposeDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgApproveDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgProposeDisableValidator:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgApproveDisableValidator:Create', 'Could not create message: ' + e.message) } } }, - async MsgRejectDisableValidator({ rootGetters }, { value }) { + async MsgEnableValidator({ rootGetters }, { value }) { try { const txClient=await initTxClient(rootGetters) - const msg = await txClient.msgRejectDisableValidator(value) + const msg = await txClient.msgEnableValidator(value) return msg } catch (e) { if (e == MissingWalletError) { - throw new SpVuexError('TxClient:MsgRejectDisableValidator:Init', 'Could not initialize signing client. Wallet is required.') + throw new SpVuexError('TxClient:MsgEnableValidator:Init', 'Could not initialize signing client. Wallet is required.') }else{ - throw new SpVuexError('TxClient:MsgRejectDisableValidator:Create', 'Could not create message: ' + e.message) + throw new SpVuexError('TxClient:MsgEnableValidator:Create', 'Could not create message: ' + e.message) } } diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.d.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.d.ts index d3bcf2d70..1eb1e2051 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.d.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.d.ts @@ -1,12 +1,12 @@ import { StdFee } from "@cosmjs/launchpad"; import { Registry, OfflineSigner, EncodeObject } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgRejectDisableValidator } from "./types/validator/tx"; +import { MsgProposeDisableValidator } from "./types/validator/tx"; import { MsgCreateValidator } from "./types/validator/tx"; import { MsgDisableValidator } from "./types/validator/tx"; -import { MsgEnableValidator } from "./types/validator/tx"; import { MsgApproveDisableValidator } from "./types/validator/tx"; -import { MsgProposeDisableValidator } from "./types/validator/tx"; -import { MsgRejectDisableValidator } from "./types/validator/tx"; +import { MsgEnableValidator } from "./types/validator/tx"; export declare const MissingWalletError: Error; export declare const registry: Registry; interface TxClientOptions { @@ -18,12 +18,12 @@ interface SignAndBroadcastOptions { } declare const txClient: (wallet: OfflineSigner, { addr: addr }?: TxClientOptions) => Promise<{ signAndBroadcast: (msgs: EncodeObject[], { fee, memo }?: SignAndBroadcastOptions) => any; + msgRejectDisableValidator: (data: MsgRejectDisableValidator) => EncodeObject; + msgProposeDisableValidator: (data: MsgProposeDisableValidator) => EncodeObject; msgCreateValidator: (data: MsgCreateValidator) => EncodeObject; msgDisableValidator: (data: MsgDisableValidator) => EncodeObject; - msgEnableValidator: (data: MsgEnableValidator) => EncodeObject; msgApproveDisableValidator: (data: MsgApproveDisableValidator) => EncodeObject; - msgProposeDisableValidator: (data: MsgProposeDisableValidator) => EncodeObject; - msgRejectDisableValidator: (data: MsgRejectDisableValidator) => EncodeObject; + msgEnableValidator: (data: MsgEnableValidator) => EncodeObject; }>; interface QueryClientOptions { addr: string; diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.js b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.js index ff7d6aacc..203734f79 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.js +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.js @@ -2,19 +2,19 @@ import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgRejectDisableValidator } from "./types/validator/tx"; +import { MsgProposeDisableValidator } from "./types/validator/tx"; import { MsgCreateValidator } from "./types/validator/tx"; import { MsgDisableValidator } from "./types/validator/tx"; -import { MsgEnableValidator } from "./types/validator/tx"; import { MsgApproveDisableValidator } from "./types/validator/tx"; -import { MsgProposeDisableValidator } from "./types/validator/tx"; -import { MsgRejectDisableValidator } from "./types/validator/tx"; +import { MsgEnableValidator } from "./types/validator/tx"; const types = [ + ["/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", MsgRejectDisableValidator], + ["/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", MsgProposeDisableValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgCreateValidator", MsgCreateValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgDisableValidator", MsgDisableValidator], - ["/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", MsgEnableValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgApproveDisableValidator", MsgApproveDisableValidator], - ["/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", MsgProposeDisableValidator], - ["/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", MsgRejectDisableValidator], + ["/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", MsgEnableValidator], ]; export const MissingWalletError = new Error("wallet is required"); export const registry = new Registry(types); @@ -35,12 +35,12 @@ const txClient = async (wallet, { addr: addr } = { addr: "http://localhost:26657 const { address } = (await wallet.getAccounts())[0]; return { signAndBroadcast: (msgs, { fee, memo } = { fee: defaultFee, memo: "" }) => client.signAndBroadcast(address, msgs, fee, memo), + msgRejectDisableValidator: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", value: MsgRejectDisableValidator.fromPartial(data) }), + msgProposeDisableValidator: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", value: MsgProposeDisableValidator.fromPartial(data) }), msgCreateValidator: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgCreateValidator", value: MsgCreateValidator.fromPartial(data) }), msgDisableValidator: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgDisableValidator", value: MsgDisableValidator.fromPartial(data) }), - msgEnableValidator: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", value: MsgEnableValidator.fromPartial(data) }), msgApproveDisableValidator: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgApproveDisableValidator", value: MsgApproveDisableValidator.fromPartial(data) }), - msgProposeDisableValidator: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", value: MsgProposeDisableValidator.fromPartial(data) }), - msgRejectDisableValidator: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", value: MsgRejectDisableValidator.fromPartial(data) }), + msgEnableValidator: (data) => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", value: MsgEnableValidator.fromPartial(data) }), }; }; const queryClient = async ({ addr: addr } = { addr: "http://localhost:1317" }) => { diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.ts index 7de62c120..db9255c78 100755 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.validator/module/index.ts @@ -4,21 +4,21 @@ import { StdFee } from "@cosmjs/launchpad"; import { SigningStargateClient } from "@cosmjs/stargate"; import { Registry, OfflineSigner, EncodeObject, DirectSecp256k1HdWallet } from "@cosmjs/proto-signing"; import { Api } from "./rest"; +import { MsgRejectDisableValidator } from "./types/validator/tx"; +import { MsgProposeDisableValidator } from "./types/validator/tx"; import { MsgCreateValidator } from "./types/validator/tx"; import { MsgDisableValidator } from "./types/validator/tx"; -import { MsgEnableValidator } from "./types/validator/tx"; import { MsgApproveDisableValidator } from "./types/validator/tx"; -import { MsgProposeDisableValidator } from "./types/validator/tx"; -import { MsgRejectDisableValidator } from "./types/validator/tx"; +import { MsgEnableValidator } from "./types/validator/tx"; const types = [ + ["/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", MsgRejectDisableValidator], + ["/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", MsgProposeDisableValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgCreateValidator", MsgCreateValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgDisableValidator", MsgDisableValidator], - ["/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", MsgEnableValidator], ["/zigbeealliance.distributedcomplianceledger.validator.MsgApproveDisableValidator", MsgApproveDisableValidator], - ["/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", MsgProposeDisableValidator], - ["/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", MsgRejectDisableValidator], + ["/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", MsgEnableValidator], ]; export const MissingWalletError = new Error("wallet is required"); @@ -51,12 +51,12 @@ const txClient = async (wallet: OfflineSigner, { addr: addr }: TxClientOptions = return { signAndBroadcast: (msgs: EncodeObject[], { fee, memo }: SignAndBroadcastOptions = {fee: defaultFee, memo: ""}) => client.signAndBroadcast(address, msgs, fee,memo), + msgRejectDisableValidator: (data: MsgRejectDisableValidator): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", value: MsgRejectDisableValidator.fromPartial( data ) }), + msgProposeDisableValidator: (data: MsgProposeDisableValidator): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", value: MsgProposeDisableValidator.fromPartial( data ) }), msgCreateValidator: (data: MsgCreateValidator): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgCreateValidator", value: MsgCreateValidator.fromPartial( data ) }), msgDisableValidator: (data: MsgDisableValidator): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgDisableValidator", value: MsgDisableValidator.fromPartial( data ) }), - msgEnableValidator: (data: MsgEnableValidator): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", value: MsgEnableValidator.fromPartial( data ) }), msgApproveDisableValidator: (data: MsgApproveDisableValidator): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgApproveDisableValidator", value: MsgApproveDisableValidator.fromPartial( data ) }), - msgProposeDisableValidator: (data: MsgProposeDisableValidator): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgProposeDisableValidator", value: MsgProposeDisableValidator.fromPartial( data ) }), - msgRejectDisableValidator: (data: MsgRejectDisableValidator): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgRejectDisableValidator", value: MsgRejectDisableValidator.fromPartial( data ) }), + msgEnableValidator: (data: MsgEnableValidator): EncodeObject => ({ typeUrl: "/zigbeealliance.distributedcomplianceledger.validator.MsgEnableValidator", value: MsgEnableValidator.fromPartial( data ) }), }; }; diff --git a/x/model/types/tx.pb.go b/x/model/types/tx.pb.go index df9f5c23f..ff53a6190 100644 --- a/x/model/types/tx.pb.go +++ b/x/model/types/tx.pb.go @@ -35,8 +35,8 @@ type MsgCreateModel struct { Pid int32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty" validate:"gte=1,lte=65535"` DeviceTypeId int32 `protobuf:"varint,4,opt,name=deviceTypeId,proto3" json:"deviceTypeId,omitempty" validate:"gte=0,lte=65535"` ProductName string `protobuf:"bytes,5,opt,name=productName,proto3" json:"productName,omitempty" validate:"required,max=128"` - ProductLabel string `protobuf:"bytes,6,opt,name=productLabel,proto3" json:"productLabel,omitempty" validate:"required,max=256"` - PartNumber string `protobuf:"bytes,7,opt,name=partNumber,proto3" json:"partNumber,omitempty" validate:"required,max=32"` + ProductLabel string `protobuf:"bytes,6,opt,name=productLabel,proto3" json:"productLabel,omitempty" validate:"max=256"` + PartNumber string `protobuf:"bytes,7,opt,name=partNumber,proto3" json:"partNumber,omitempty" validate:"max=32"` CommissioningCustomFlow int32 `protobuf:"varint,8,opt,name=commissioningCustomFlow,proto3" json:"commissioningCustomFlow,omitempty" validate:"gte=0,lte=2"` CommissioningCustomFlowUrl string `protobuf:"bytes,9,opt,name=commissioningCustomFlowUrl,proto3" json:"commissioningCustomFlowUrl,omitempty" validate:"required_if=CommissioningCustomFlow 2,omitempty,url,startsnotwith=http:,max=256"` CommissioningModeInitialStepsHint uint32 `protobuf:"varint,10,opt,name=commissioningModeInitialStepsHint,proto3" json:"commissioningModeInitialStepsHint,omitempty"` @@ -869,87 +869,87 @@ func init() { func init() { proto.RegisterFile("model/tx.proto", fileDescriptor_8898c625fa4755dc) } var fileDescriptor_8898c625fa4755dc = []byte{ - // 1274 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x98, 0xbf, 0x6f, 0xdb, 0x46, - 0x14, 0xc7, 0xc3, 0x26, 0xb6, 0xe5, 0x93, 0x15, 0x37, 0x97, 0x5f, 0xac, 0x9a, 0x8a, 0x2e, 0x03, - 0x14, 0x46, 0x60, 0x4b, 0x8e, 0x1c, 0x19, 0x41, 0x50, 0x15, 0x89, 0xdc, 0x26, 0x36, 0x10, 0x27, - 0x01, 0x9d, 0x04, 0x45, 0x80, 0x26, 0xa5, 0xc8, 0x93, 0x7c, 0x28, 0xc9, 0x63, 0xef, 0x8e, 0xfe, - 0x91, 0xb9, 0x7f, 0x40, 0xd7, 0x2e, 0xdd, 0xba, 0x76, 0x2a, 0xba, 0x74, 0xe8, 0xda, 0x31, 0xe8, - 0xd4, 0x89, 0x28, 0x92, 0xff, 0x80, 0x53, 0x87, 0x0e, 0x05, 0x8f, 0xb4, 0x45, 0x4a, 0x94, 0x64, - 0x5b, 0xd6, 0xe0, 0x2e, 0x86, 0x78, 0x77, 0xdf, 0xef, 0xbd, 0xa7, 0x7b, 0xf7, 0xf1, 0x13, 0xc1, - 0x79, 0x9b, 0x98, 0xc8, 0xaa, 0xf0, 0xdd, 0xb2, 0x4b, 0x09, 0x27, 0x70, 0xe9, 0x35, 0x6e, 0x37, - 0x11, 0xd2, 0x2d, 0x0b, 0xeb, 0x8e, 0x81, 0xca, 0x26, 0x66, 0x9c, 0xe2, 0xa6, 0xc7, 0x91, 0x69, - 0x10, 0xdb, 0x8d, 0x46, 0x2d, 0x64, 0xb6, 0x11, 0x2d, 0x0b, 0x69, 0xf1, 0x42, 0xe4, 0x20,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8, 0xf7, 0x5c, 0xc4, 0x9a, 0x93, 0xe2, 0x9d, 0xf2, 0xf2, 0x7f, 0x01, 0x00, 0x00, - 0xff, 0xff, 0xf2, 0xf1, 0xb1, 0x1d, 0xf6, 0x16, 0x00, 0x00, + // 1266 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x98, 0xbd, 0x6f, 0xdb, 0xc6, + 0x1b, 0xc7, 0xc3, 0x5f, 0x22, 0x59, 0x3e, 0x59, 0xf1, 0x2f, 0x97, 0x37, 0x56, 0x4d, 0x45, 0x97, + 0x01, 0x0a, 0x23, 0x90, 0x25, 0x47, 0x8e, 0x8c, 0x20, 0xa8, 0x80, 0x44, 0x6e, 0x13, 0x1b, 0x88, + 0x93, 0x80, 0x4e, 0x82, 0x22, 0x40, 0x93, 0x52, 0xe4, 0x49, 0x3e, 0x94, 0xe4, 0xb1, 0x77, 0x47, + 0xbf, 0x64, 0xee, 0x1f, 0xd0, 0xb5, 0x4b, 0xa7, 0x76, 0xed, 0xd4, 0xad, 0x43, 0xd7, 0x8e, 0x41, + 0xa7, 0x4e, 0x44, 0x91, 0xfc, 0x07, 0x9c, 0x3a, 0x74, 0x28, 0x78, 0xa2, 0x2d, 0x52, 0xa6, 0x5e, + 0x6c, 0x59, 0x43, 0xba, 0x18, 0x22, 0xef, 0xbe, 0xdf, 0x7b, 0x1e, 0xde, 0x73, 0x1f, 0x3f, 0x24, + 0x38, 0x6f, 0x13, 0x13, 0x59, 0x55, 0xbe, 0x57, 0x71, 0x29, 0xe1, 0x04, 0x2e, 0xbf, 0xc6, 0x9d, + 0x16, 0x42, 0xba, 0x65, 0x61, 0xdd, 0x31, 0x50, 0xc5, 0xc4, 0x8c, 0x53, 0xdc, 0xf2, 0x38, 0x32, + 0x0d, 0x62, 0xbb, 0xdd, 0xbb, 0x16, 0x32, 0x3b, 0x88, 0x56, 0x84, 0xb4, 0x78, 0x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2, + 0xe2, 0x0b, 0xf2, 0xca, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xdf, 0xab, 0x72, 0x82, 0xe4, 0x16, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. From 572f26014c12b3b1fa7e5f45cea7c50bef0f1efe Mon Sep 17 00:00:00 2001 From: lazizcodesatdsr Date: Mon, 20 Feb 2023 19:21:29 +0500 Subject: [PATCH 04/13] adjust integration tests not to check for productLabel and partNumber --- integration_tests/cli/model-negative-cases.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/integration_tests/cli/model-negative-cases.sh b/integration_tests/cli/model-negative-cases.sh index a04f124b4..f71276819 100755 --- a/integration_tests/cli/model-negative-cases.sh +++ b/integration_tests/cli/model-negative-cases.sh @@ -100,18 +100,6 @@ check_response_and_report "$result" "ProductName is a required field" raw test_divider -echo "Add model with empty description" -result=$(echo "test1234" | dcld tx model add-model --vid=$vid --pid=$pid --deviceTypeID=1 --productName=TestProduct --productLabel="" --partNumber=1 --commissioningCustomFlow=0 --from $vendor_account --yes 2>&1) || true -check_response_and_report "$result" "ProductLabel is a required field" raw - -test_divider - -echo "Add model with empty partNumber" -result=$(echo "test1234" | dcld tx model add-model --vid=$vid --pid=$pid --deviceTypeID=1 --productName=TestProduct --productLabel="Test Label" --partNumber="" --commissioningCustomFlow=0 --from $vendor_account --yes 2>&1) || true -check_response_and_report "$result" "PartNumber is a required field" raw - -test_divider - echo "Add model with empty --from flag" result=$(dcld tx model add-model --vid=$vid --pid=$pid --deviceTypeID=1 --productName=TestProduct --productLabel=TestingProductLabel --partNumber=1 --commissioningCustomFlow=0 --from "" --yes 2>&1) || true check_response_and_report "$result" "invalid creator address (empty address string is not allowed)" raw From 6ed1380fce8ebd32ff7653ad52200920566a4cdb Mon Sep 17 00:00:00 2001 From: lazizcodesatdsr Date: Mon, 20 Feb 2023 20:29:27 +0500 Subject: [PATCH 05/13] adjust integration tests not to check for productLabel and partNumber --- integration_tests/cli/model-negative-cases.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/integration_tests/cli/model-negative-cases.sh b/integration_tests/cli/model-negative-cases.sh index f71276819..bc3188f9d 100755 --- a/integration_tests/cli/model-negative-cases.sh +++ b/integration_tests/cli/model-negative-cases.sh @@ -112,12 +112,6 @@ check_response_and_report "$result" "required flag(s) \"from\" not set" raw test_divider -echo "Add model without enough parameters" -result=$(echo "test1234" | dcld tx model add-model --vid=$vid --pid=$pid --deviceTypeID=1 --productName=TestProduct --partNumber="1" --commissioningCustomFlow=0 --from $vendor_account --yes 2>&1) || true -check_response_and_report "$result" "required flag(s) \"productLabel\" not set" raw - -test_divider - echo "Update model with Non Mutable fields" pid=$RANDOM sv=$RANDOM From 49e571502b5733cf244f9a1fc1bcdd463976f297 Mon Sep 17 00:00:00 2001 From: lazizcodesatdsr Date: Wed, 22 Feb 2023 11:00:02 +0500 Subject: [PATCH 06/13] remove partNumber and productLabel from minimal add-model command --- docs/how-to.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/how-to.md b/docs/how-to.md index cace1e5d6..d9b854dbd 100644 --- a/docs/how-to.md +++ b/docs/how-to.md @@ -244,8 +244,7 @@ dcld tx vendorinfo add-vendor --vid= --vendorName= --companyLega Minimal command: ```bash - dcld tx model add-model --vid= --pid= --deviceTypeID= --productName= --productLabel= --partNumber= - --from= + dcld tx model add-model --vid= --pid= --deviceTypeID= --productName= --from= ``` Full command: From 84c0140bdb69c2d77c4a3b915ccdc4b3f1813dab Mon Sep 17 00:00:00 2001 From: Laziz Abdullaev <125482303+lazizcodesatdsr@users.noreply.github.com> Date: Wed, 1 Mar 2023 16:09:25 +0500 Subject: [PATCH 07/13] Update docker-compose.yml Finally, "Container ID is not running" is gone after changing ``` volumes: - /sys/fs/cgroup:/sys/fs/cgroup:ro ``` as ``` volumes: - /sys/fs/cgroup:/sys/fs/cgroup:rw ``` where `:ro` and `:rw` stand for `read-only` and `read-write`, respectively. A shortened summary from my research is: - We run the command `"lib/systemd/systemd"` to run (inside) the containers which you can check with `docker ps -a` command: ``` CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES c079f8997e67 dcledger_deploy "/lib/systemd/systemd" 3 seconds ago Up Less than a second 1317/tcp, 26656-26657/tcp, 26660/tcp test_deploy_gvn 196a6004b165 dcledger_deploy "/lib/systemd/systemd" 3 seconds ago Up Less than a second 1317/tcp, 26656-26657/tcp, 26660/tcp test_deploy_vn ``` - The host kernel/systemd now seems to default cgroup v2. Before, it was cgroup. - So the ROOT cause seems to be: When systemd sees a unified cgroupfs at /sys/fs/cgroup it assumes it should be able to **write** to it which normally should be possible but is not the case here. - Main context can be seen extensively here: 1. https://serverfault.com/questions/1053187/systemd-fails-to-run-in-a-docker-container-when-using-cgroupv2-cgroupns-priva 2. https://github.com/systemd/systemd/issues/6477 3. https://github.com/lxc/lxc/issues/1669 --- integration_tests/deploy/docker-compose.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/integration_tests/deploy/docker-compose.yml b/integration_tests/deploy/docker-compose.yml index e4e47d277..dfc243396 100644 --- a/integration_tests/deploy/docker-compose.yml +++ b/integration_tests/deploy/docker-compose.yml @@ -17,22 +17,24 @@ version: '3.2' services: test_deploy_gvn: + privileged: true image: dcledger_deploy build: . container_name: test_deploy_gvn volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw tmpfs: - /run - /run/lock - /tmp test_deploy_vn: + privileged: true image: dcledger_deploy build: . container_name: test_deploy_vn volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:ro + - /sys/fs/cgroup:/sys/fs/cgroup:rw tmpfs: - /run - /run/lock From c8452592f24d96066a305ad02243fb98b6b757b8 Mon Sep 17 00:00:00 2001 From: Laziz Abdullaev <125482303+lazizcodesatdsr@users.noreply.github.com> Date: Wed, 1 Mar 2023 17:35:28 +0500 Subject: [PATCH 08/13] Update verify.yml --- .github/workflows/verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index c5dc25ea3..c083768ce 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -107,7 +107,7 @@ jobs: integration-tests: if: needs.changes.outputs.src == 'true' name: Integration tests - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 needs: - changes steps: From a0e85ba823c3c20498877a5c47c50c05e8bacf8e Mon Sep 17 00:00:00 2001 From: Laziz Abdullaev <125482303+lazizcodesatdsr@users.noreply.github.com> Date: Wed, 1 Mar 2023 23:44:04 +0500 Subject: [PATCH 09/13] Update .golangci.yml --- .golangci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 6697aef10..3a0190fd6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -49,3 +49,5 @@ linters: - execinquery - nonamedreturns - exhaustruct + - nosnakecase + - dupword From eaf3e731c6f8719e1e911dab30acd0be541f9d2d Mon Sep 17 00:00:00 2001 From: Laziz Abdullaev <125482303+lazizcodesatdsr@users.noreply.github.com> Date: Wed, 1 Mar 2023 23:50:00 +0500 Subject: [PATCH 10/13] Update .golangci.yml --- .golangci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 3a0190fd6..2229ce665 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -51,3 +51,5 @@ linters: - exhaustruct - nosnakecase - dupword + - nolintlint + - gofmt From 127a4021b8f70c46567f707d7894622777932bdf Mon Sep 17 00:00:00 2001 From: Laziz Abdullaev <125482303+lazizcodesatdsr@users.noreply.github.com> Date: Wed, 1 Mar 2023 23:52:20 +0500 Subject: [PATCH 11/13] Update .golangci.yml --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 2229ce665..300bc5110 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -53,3 +53,4 @@ linters: - dupword - nolintlint - gofmt + - gofumt From 564064f4a20b5ce9ac02c8fbe4afa662fe7ea428 Mon Sep 17 00:00:00 2001 From: Laziz Abdullaev <125482303+lazizcodesatdsr@users.noreply.github.com> Date: Wed, 1 Mar 2023 23:55:38 +0500 Subject: [PATCH 12/13] Update .golangci.yml --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 300bc5110..7da3938a3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -53,4 +53,4 @@ linters: - dupword - nolintlint - gofmt - - gofumt + - gofumpt From 80ffc7f0949ed0694ef18d9d9c9b88280661ba60 Mon Sep 17 00:00:00 2001 From: Laziz Abdullaev <125482303+lazizcodesatdsr@users.noreply.github.com> Date: Thu, 2 Mar 2023 10:42:56 +0500 Subject: [PATCH 13/13] Update .golangci.yml --- .golangci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 7da3938a3..1eec62f45 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -14,7 +14,14 @@ # limitations under the License. linters: - enable-all: true + enable: + - errcheck + - gosimple + - govet + - ineffassign + - staticcheck + - typecheck + - unused disable: - golint # The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive. - gochecknoinits