diff --git a/docs/static/openapi.yml b/docs/static/openapi.yml index 1cc567150..4407ed11d 100644 --- a/docs/static/openapi.yml +++ b/docs/static/openapi.yml @@ -8468,6 +8468,8 @@ paths: schemaVersion: type: integer format: int64 + commissionerRemoteUiFlowUrl: + type: string pagination: type: object properties: @@ -8693,6 +8695,8 @@ paths: schemaVersion: type: integer format: int64 + commissionerRemoteUiFlowUrl: + type: string default: description: An unexpected error response. schema: @@ -21186,6 +21190,8 @@ definitions: schemaVersion: type: integer format: int64 + commissionerRemoteUiFlowUrl: + type: string zigbeealliance.distributedcomplianceledger.model.ModelVersion: type: object properties: @@ -21308,6 +21314,8 @@ definitions: schemaVersion: type: integer format: int64 + commissionerRemoteUiFlowUrl: + type: string pagination: type: object properties: @@ -21385,6 +21393,8 @@ definitions: schemaVersion: type: integer format: int64 + commissionerRemoteUiFlowUrl: + type: string zigbeealliance.distributedcomplianceledger.model.QueryGetModelVersionResponse: type: object properties: diff --git a/docs/transactions.md b/docs/transactions.md index 63b914e49..f0ec26825 100644 --- a/docs/transactions.md +++ b/docs/transactions.md @@ -207,6 +207,7 @@ Not all fields can be edited (see `EDIT_MODEL`). - commissioningModeInitialStepsInstruction: `optional(string)` - commissioningModeInitialStepsInstruction SHALL contain text which relates to specific values of CommissioningModeInitialStepsHint. Certain values of CommissioningModeInitialStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeInitialStepsInstruction SHALL be set - commissioningModeSecondaryStepsHint: `optional(uint32)` - commissioningModeSecondaryStepsHint SHALL identify a hint for steps that can be used to put into commissioning mode a device that has already been commissioned. This field is a bitmap with values defined in the Pairing Hint Table. For example, a value of 4 (bit 2 is set) indicates that a device that has already been commissioned will require the user to visit a current CHIP Administrator to put the device into commissioning mode. - commissioningModeSecondaryStepInstruction: `optional(string)` - commissioningModeSecondaryStepInstruction SHALL contain text which relates to specific values of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeSecondaryStepInstruction SHALL be set + - commissionerRemoteUiFlowURL `optional(string)` - commissionerRemoteUiFlowURL SHALL identify URL to show a custom flow UI for the commissioner - userManualURL: `optional(string)` - URL that contains product specific web page that contains user manual for the device model. - supportURL: `optional(string)` - URL that contains product specific web page that contains support details for the device model. - productURL: `optional(string)` - URL that contains product specific web page that contains details for the device model. @@ -253,6 +254,7 @@ All non-edited fields remain the same. - commissioningCustomFlowURL: `optional(string)` - commissioningCustomFlowURL SHALL identify a vendor specific commissioning URL for the device model when the commissioningCustomFlow field is set to '2' - commissioningModeInitialStepsInstruction: `optional(string)` - commissioningModeInitialStepsInstruction SHALL contain text which relates to specific values of CommissioningModeInitialStepsHint. Certain values of CommissioningModeInitialStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeInitialStepsInstruction SHALL be set - commissioningModeSecondaryStepInstruction: `optional(string)` - commissioningModeSecondaryStepInstruction SHALL contain text which relates to specific values of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeSecondaryStepInstruction SHALL be set + - commissionerRemoteUiFlowURL `optional(string)` - commissionerRemoteUiFlowURL SHALL identify URL to show a custom flow UI for the commissioner - userManualURL: `optional(string)` - URL that contains product specific web page that contains user manual for the device model. - supportURL: `optional(string)` - URL that contains product specific web page that contains support details for the device model. - productURL: `optional(string)` - URL that contains product specific web page that contains details for the device model. diff --git a/integration_tests/cli/model-demo.sh b/integration_tests/cli/model-demo.sh index ec32d5597..24a4a183c 100755 --- a/integration_tests/cli/model-demo.sh +++ b/integration_tests/cli/model-demo.sh @@ -60,8 +60,9 @@ test_divider productLabel="Device #1" schema_version_0=0 schema_version_2=2 +commissionerRemoteUiFlowURL="https://commissionerRemoteUiFlowURL.dclmodel" echo "Add Model with VID: $vid PID: $pid" -result=$(echo "test1234" | dcld tx model add-model --vid=$vid --pid=$pid --deviceTypeID=1 --productName=TestProduct --productLabel="$productLabel" --partNumber=1 --commissioningCustomFlow=0 --schemaVersion=$schema_version_2 --from=$vendor_account --yes) +result=$(echo "test1234" | dcld tx model add-model --vid=$vid --pid=$pid --deviceTypeID=1 --productName=TestProduct --productLabel="$productLabel" --partNumber=1 --commissioningCustomFlow=0 --commissionerRemoteUiFlowURL="$commissionerRemoteUiFlowURL" --schemaVersion=$schema_version_2 --from=$vendor_account --yes) check_response "$result" "\"code\": 0" echo "$result" @@ -81,6 +82,7 @@ check_response "$result" "\"vid\": $vid" check_response "$result" "\"pid\": $pid" check_response "$result" "\"productLabel\": \"$productLabel\"" check_response "$result" "\"schemaVersion\": $schema_version_2" +check_response "$result" "\"commissionerRemoteUiFlowUrl\": \"$commissionerRemoteUiFlowURL\"" echo "$result" echo "Get Model with VID: $vid_with_pids PID: $pid" @@ -124,10 +126,11 @@ echo "$result" test_divider -echo "Update Model with VID: ${vid} PID: ${pid} with new description" +echo "Update Model with VID: ${vid} PID: ${pid} with new description and commissionerRemoteUiFlowURL" description="New Device Description" schema_version_3=3 -result=$(echo "test1234" | dcld tx model update-model --vid=$vid --pid=$pid --from $vendor_account --yes --productLabel "$description" --schemaVersion=$schema_version_3) +newCommissionerRemoteUiFlowURL="https://commissionerRemoteUiFlowURL.dclmodel.updated" +result=$(echo "test1234" | dcld tx model update-model --vid=$vid --pid=$pid --from $vendor_account --yes --productLabel "$description" --schemaVersion=$schema_version_3 --commissionerRemoteUiFlowURL="$newCommissionerRemoteUiFlowURL") check_response "$result" "\"code\": 0" echo "$result" @@ -146,6 +149,7 @@ check_response "$result" "\"vid\": $vid" check_response "$result" "\"pid\": $pid" check_response "$result" "\"productLabel\": \"$description\"" check_response "$result" "\"schemaVersion\": $schema_version_3" +check_response "$result" "\"commissionerRemoteUiFlowUrl\": \"$newCommissionerRemoteUiFlowURL\"" echo "$result" test_divider diff --git a/proto/model/model.proto b/proto/model/model.proto index 75bcb7547..ffa606579 100644 --- a/proto/model/model.proto +++ b/proto/model/model.proto @@ -25,5 +25,6 @@ message Model { int32 lsfRevision = 17; string creator = 18 [(cosmos_proto.scalar) = "cosmos.AddressString"]; uint32 schemaVersion = 19; + string commissionerRemoteUiFlowUrl = 20; } diff --git a/proto/model/tx.proto b/proto/model/tx.proto index a597ceafa..b9b274ae8 100644 --- a/proto/model/tx.proto +++ b/proto/model/tx.proto @@ -41,6 +41,7 @@ message MsgCreateModel { string productUrl = 16 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; string lsfUrl = 17 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; uint32 schemaVersion = 18 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""]; + string commissionerRemoteUiFlowUrl = 19 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; } message MsgCreateModelResponse {} @@ -61,6 +62,7 @@ message MsgUpdateModel { string lsfUrl = 13 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; int32 lsfRevision = 14 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""]; uint32 schemaVersion = 15 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""]; + string commissionerRemoteUiFlowUrl = 16 [(gogoproto.moretags) = "validate:\"omitempty,url,startsnotwith=http:,max=256\""]; } message MsgUpdateModelResponse {} diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/rest.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/rest.ts index db925231b..f7391dc4e 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/rest.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/rest.ts @@ -44,6 +44,7 @@ export interface ModelModel { /** @format int64 */ schemaVersion?: number; + commissionerRemoteUiFlowUrl?: string; } export interface ModelModelVersion { diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/model.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/model.ts index cbf673d3e..2fd01e09e 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/model.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/model.ts @@ -23,6 +23,7 @@ export interface Model { lsfRevision: number creator: string schemaVersion: number + commissionerRemoteUiFlowUrl: string } const baseModel: object = { @@ -44,7 +45,8 @@ const baseModel: object = { lsfUrl: '', lsfRevision: 0, creator: '', - schemaVersion: 0 + schemaVersion: 0, + commissionerRemoteUiFlowUrl: '' } export const Model = { @@ -106,6 +108,9 @@ export const Model = { if (message.schemaVersion !== 0) { writer.uint32(152).uint32(message.schemaVersion) } + if (message.commissionerRemoteUiFlowUrl !== '') { + writer.uint32(162).string(message.commissionerRemoteUiFlowUrl) + } return writer }, @@ -173,6 +178,9 @@ export const Model = { case 19: message.schemaVersion = reader.uint32() break + case 20: + message.commissionerRemoteUiFlowUrl = reader.string() + break default: reader.skipType(tag & 7) break @@ -278,6 +286,11 @@ export const Model = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = String(object.commissionerRemoteUiFlowUrl) + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message }, @@ -304,6 +317,7 @@ export const Model = { message.lsfRevision !== undefined && (obj.lsfRevision = message.lsfRevision) message.creator !== undefined && (obj.creator = message.creator) message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion) + message.commissionerRemoteUiFlowUrl !== undefined && (obj.commissionerRemoteUiFlowUrl = message.commissionerRemoteUiFlowUrl) return obj }, @@ -404,6 +418,11 @@ export const Model = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = object.commissionerRemoteUiFlowUrl + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message } } diff --git a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/tx.ts b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/tx.ts index 6aa6ee6ca..884bea9d7 100644 --- a/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/tx.ts +++ b/vue/src/store/generated/zigbee-alliance/distributed-compliance-ledger/zigbeealliance.distributedcomplianceledger.model/module/types/model/tx.ts @@ -23,6 +23,7 @@ export interface MsgCreateModel { productUrl: string lsfUrl: string schemaVersion: number + commissionerRemoteUiFlowUrl: string } export interface MsgCreateModelResponse {} @@ -43,6 +44,7 @@ export interface MsgUpdateModel { lsfUrl: string lsfRevision: number schemaVersion: number + commissionerRemoteUiFlowUrl: string } export interface MsgUpdateModelResponse {} @@ -120,7 +122,8 @@ const baseMsgCreateModel: object = { supportUrl: '', productUrl: '', lsfUrl: '', - schemaVersion: 0 + schemaVersion: 0, + commissionerRemoteUiFlowUrl: '' } export const MsgCreateModel = { @@ -179,6 +182,9 @@ export const MsgCreateModel = { if (message.schemaVersion !== 0) { writer.uint32(144).uint32(message.schemaVersion) } + if (message.commissionerRemoteUiFlowUrl !== '') { + writer.uint32(154).string(message.commissionerRemoteUiFlowUrl) + } return writer }, @@ -243,6 +249,9 @@ export const MsgCreateModel = { case 18: message.schemaVersion = reader.uint32() break + case 19: + message.commissionerRemoteUiFlowUrl = reader.string() + break default: reader.skipType(tag & 7) break @@ -343,6 +352,11 @@ export const MsgCreateModel = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = String(object.commissionerRemoteUiFlowUrl) + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message }, @@ -368,6 +382,7 @@ export const MsgCreateModel = { message.productUrl !== undefined && (obj.productUrl = message.productUrl) message.lsfUrl !== undefined && (obj.lsfUrl = message.lsfUrl) message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion) + message.commissionerRemoteUiFlowUrl !== undefined && (obj.commissionerRemoteUiFlowUrl = message.commissionerRemoteUiFlowUrl) return obj }, @@ -463,6 +478,11 @@ export const MsgCreateModel = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = object.commissionerRemoteUiFlowUrl + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message } } @@ -520,7 +540,8 @@ const baseMsgUpdateModel: object = { productUrl: '', lsfUrl: '', lsfRevision: 0, - schemaVersion: 0 + schemaVersion: 0, + commissionerRemoteUiFlowUrl: '' } export const MsgUpdateModel = { @@ -570,6 +591,9 @@ export const MsgUpdateModel = { if (message.schemaVersion !== 0) { writer.uint32(120).uint32(message.schemaVersion) } + if (message.commissionerRemoteUiFlowUrl !== '') { + writer.uint32(130).string(message.commissionerRemoteUiFlowUrl) + } return writer }, @@ -625,6 +649,9 @@ export const MsgUpdateModel = { case 15: message.schemaVersion = reader.uint32() break + case 16: + message.commissionerRemoteUiFlowUrl = reader.string() + break default: reader.skipType(tag & 7) break @@ -710,6 +737,11 @@ export const MsgUpdateModel = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = String(object.commissionerRemoteUiFlowUrl) + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message }, @@ -732,6 +764,7 @@ export const MsgUpdateModel = { message.lsfUrl !== undefined && (obj.lsfUrl = message.lsfUrl) message.lsfRevision !== undefined && (obj.lsfRevision = message.lsfRevision) message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion) + message.commissionerRemoteUiFlowUrl !== undefined && (obj.commissionerRemoteUiFlowUrl = message.commissionerRemoteUiFlowUrl) return obj }, @@ -812,6 +845,11 @@ export const MsgUpdateModel = { } else { message.schemaVersion = 0 } + if (object.commissionerRemoteUiFlowUrl !== undefined && object.commissionerRemoteUiFlowUrl !== null) { + message.commissionerRemoteUiFlowUrl = object.commissionerRemoteUiFlowUrl + } else { + message.commissionerRemoteUiFlowUrl = '' + } return message } } diff --git a/x/model/client/cli/flags.go b/x/model/client/cli/flags.go index 348672fb6..896535909 100644 --- a/x/model/client/cli/flags.go +++ b/x/model/client/cli/flags.go @@ -16,6 +16,7 @@ const ( FlagCommissioningModeInitialStepsInstruction = "commissioningModeInitialStepsInstruction" FlagCommissioningModeSecondaryStepsHint = "commissioningModeSecondaryStepsHint" FlagCommissioningModeSecondaryStepsInstruction = "commissioningModeSecondaryStepsInstruction" + FlagCommissionerRemoteUIFlowURL = "commissionerRemoteUiFlowURL" FlagUserManualURL = "userManualURL" FlagSupportURL = "supportURL" FlagProductURL = "productURL" diff --git a/x/model/client/cli/tx_model.go b/x/model/client/cli/tx_model.go index 8b2a2f395..abcec701b 100644 --- a/x/model/client/cli/tx_model.go +++ b/x/model/client/cli/tx_model.go @@ -25,6 +25,7 @@ func CmdCreateModel() *cobra.Command { commissioningModeInitialStepsInstruction string commissioningModeSecondaryStepsHint uint32 commissioningModeSecondaryStepsInstruction string + commissionerRemoteUIFlowURL string userManualURL string supportURL string productURL string @@ -61,6 +62,7 @@ func CmdCreateModel() *cobra.Command { commissioningModeInitialStepsInstruction, commissioningModeSecondaryStepsHint, commissioningModeSecondaryStepsInstruction, + commissionerRemoteUIFlowURL, userManualURL, supportURL, productURL, @@ -120,6 +122,8 @@ current CHIP Administrator to put the device into commissioning mode.`) of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeSecondaryStepInstruction SHALL be set`) + cmd.Flags().StringVar(&commissionerRemoteUIFlowURL, FlagCommissionerRemoteUIFlowURL, "", + `commissionerRemoteUIFlowURL SHALL identify URL to show a custom flow UI for the commissioner`) cmd.Flags().StringVar(&userManualURL, FlagUserManualURL, "", "URL that contains product specific web page that contains user manual for the device model.") cmd.Flags().StringVar(&supportURL, FlagSupportURL, "", @@ -149,6 +153,7 @@ func CmdUpdateModel() *cobra.Command { commissioningCustomFlowURL string commissioningModeInitialStepsInstruction string commissioningModeSecondaryStepsInstruction string + commissionerRemoteUIFlowURL string userManualURL string supportURL string productURL string @@ -182,6 +187,7 @@ func CmdUpdateModel() *cobra.Command { commissioningCustomFlowURL, commissioningModeInitialStepsInstruction, commissioningModeSecondaryStepsInstruction, + commissionerRemoteUIFlowURL, userManualURL, supportURL, productURL, @@ -223,6 +229,8 @@ values the commissioningModeInitialStepsInstruction SHALL be set`) of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint, as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these values the commissioningModeSecondaryStepInstruction SHALL be set`) + cmd.Flags().StringVar(&commissionerRemoteUIFlowURL, FlagCommissionerRemoteUIFlowURL, "", + `commissionerRemoteUIFlowURL SHALL identify URL to show a custom flow UI for the commissioner`) cmd.Flags().StringVar(&userManualURL, FlagUserManualURL, "", "URL that contains product specific web page that contains user manual for the device model.") cmd.Flags().StringVar(&supportURL, FlagSupportURL, "", diff --git a/x/model/keeper/msg_server_model.go b/x/model/keeper/msg_server_model.go index f58c3fe87..4ef385d29 100644 --- a/x/model/keeper/msg_server_model.go +++ b/x/model/keeper/msg_server_model.go @@ -44,11 +44,12 @@ func (k msgServer) CreateModel(goCtx context.Context, msg *types.MsgCreateModel) CommissioningModeInitialStepsInstruction: msg.CommissioningModeInitialStepsInstruction, CommissioningModeSecondaryStepsHint: msg.CommissioningModeSecondaryStepsHint, CommissioningModeSecondaryStepsInstruction: msg.CommissioningModeSecondaryStepsInstruction, - UserManualUrl: msg.UserManualUrl, - SupportUrl: msg.SupportUrl, - ProductUrl: msg.ProductUrl, - LsfUrl: msg.LsfUrl, - SchemaVersion: msg.SchemaVersion, + CommissionerRemoteUiFlowUrl: msg.CommissionerRemoteUiFlowUrl, + UserManualUrl: msg.UserManualUrl, + SupportUrl: msg.SupportUrl, + ProductUrl: msg.ProductUrl, + LsfUrl: msg.LsfUrl, + SchemaVersion: msg.SchemaVersion, } // if LsfUrl is not empty, we set lsfRevision to default value of 1 @@ -120,6 +121,10 @@ func (k msgServer) UpdateModel(goCtx context.Context, msg *types.MsgUpdateModel) model.CommissioningModeSecondaryStepsInstruction = msg.CommissioningModeSecondaryStepsInstruction } + if msg.CommissionerRemoteUiFlowUrl != "" { + model.CommissionerRemoteUiFlowUrl = msg.CommissionerRemoteUiFlowUrl + } + if msg.UserManualUrl != "" { model.UserManualUrl = msg.UserManualUrl } diff --git a/x/model/types/messages_model.go b/x/model/types/messages_model.go index 5be279c51..ed124170e 100644 --- a/x/model/types/messages_model.go +++ b/x/model/types/messages_model.go @@ -28,6 +28,7 @@ func NewMsgCreateModel( commissioningModeInitialStepsInstruction string, commissioningModeSecondaryStepsHint uint32, commissioningModeSecondaryStepsInstruction string, + commissionerRemoteUIFlowURL string, userManualURL string, supportURL string, productURL string, @@ -48,11 +49,12 @@ func NewMsgCreateModel( CommissioningModeInitialStepsInstruction: commissioningModeInitialStepsInstruction, CommissioningModeSecondaryStepsHint: commissioningModeSecondaryStepsHint, CommissioningModeSecondaryStepsInstruction: commissioningModeSecondaryStepsInstruction, - UserManualUrl: userManualURL, - SupportUrl: supportURL, - ProductUrl: productURL, - LsfUrl: lsfURL, - SchemaVersion: schemaVersion, + CommissionerRemoteUiFlowUrl: commissionerRemoteUIFlowURL, + UserManualUrl: userManualURL, + SupportUrl: supportURL, + ProductUrl: productURL, + LsfUrl: lsfURL, + SchemaVersion: schemaVersion, } } @@ -105,6 +107,7 @@ func NewMsgUpdateModel( commissioningCustomFlowURL string, commissioningModeInitialStepsInstruction string, commissioningModeSecondaryStepsInstruction string, + commissionerRemoteUIFlowURL string, userManualURL string, supportURL string, productURL string, @@ -122,12 +125,13 @@ func NewMsgUpdateModel( CommissioningCustomFlowUrl: commissioningCustomFlowURL, CommissioningModeInitialStepsInstruction: commissioningModeInitialStepsInstruction, CommissioningModeSecondaryStepsInstruction: commissioningModeSecondaryStepsInstruction, - UserManualUrl: userManualURL, - SupportUrl: supportURL, - ProductUrl: productURL, - LsfUrl: lsfURL, - LsfRevision: lsfRevision, - SchemaVersion: schemaVersion, + CommissionerRemoteUiFlowUrl: commissionerRemoteUIFlowURL, + UserManualUrl: userManualURL, + SupportUrl: supportURL, + ProductUrl: productURL, + LsfUrl: lsfURL, + LsfRevision: lsfRevision, + SchemaVersion: schemaVersion, } } diff --git a/x/model/types/messages_model_test.go b/x/model/types/messages_model_test.go index 89a978024..391e63d59 100644 --- a/x/model/types/messages_model_test.go +++ b/x/model/types/messages_model_test.go @@ -335,6 +335,15 @@ func TestMsgCreateModel_ValidateBasic(t *testing.T) { }(validMsgCreateModel()), err: validator.ErrFieldUpperBoundViolated, }, + { + name: "CommissionerRemoteUiFlowUrl length > 256", + msg: func(msg *MsgCreateModel) *MsgCreateModel { + msg.CommissionerRemoteUiFlowUrl = "https://sampleflowurl.dclauth/" + tmrand.Str(257-30) // length = 257 + + return msg + }(validMsgCreateModel()), + err: validator.ErrFieldMaxLengthExceeded, + }, } positiveTests := []struct { @@ -592,6 +601,22 @@ func TestMsgCreateModel_ValidateBasic(t *testing.T) { msg: func(msg *MsgCreateModel) *MsgCreateModel { msg.LsfUrl = "https://sampleflowurl.dclauth/" + tmrand.Str(256-30) // length = 256 + return msg + }(validMsgCreateModel()), + }, + { + name: "CommissionerRemoteUiFlowUrl is omitted", + msg: func(msg *MsgCreateModel) *MsgCreateModel { + msg.CommissionerRemoteUiFlowUrl = "" + + return msg + }(validMsgCreateModel()), + }, + { + name: "CommissionerRemoteUiFlowUrl length == 256", + msg: func(msg *MsgCreateModel) *MsgCreateModel { + msg.CommissionerRemoteUiFlowUrl = "https://sampleflowurl.dclauth/" + tmrand.Str(256-30) // length = 256 + return msg }(validMsgCreateModel()), }, @@ -899,6 +924,15 @@ func TestMsgUpdateModel_ValidateBasic(t *testing.T) { }(validMsgUpdateModel()), err: validator.ErrFieldUpperBoundViolated, }, + { + name: "CommissionerRemoteUiFlowUrl length > 256", + msg: func(msg *MsgUpdateModel) *MsgUpdateModel { + msg.CommissionerRemoteUiFlowUrl = "https://sampleflowurl.dclauth/" + tmrand.Str(257-30) // length = 257 + + return msg + }(validMsgUpdateModel()), + err: validator.ErrFieldMaxLengthExceeded, + }, } positiveTests := []struct { @@ -1116,6 +1150,22 @@ func TestMsgUpdateModel_ValidateBasic(t *testing.T) { msg: func(msg *MsgUpdateModel) *MsgUpdateModel { msg.LsfRevision = 65535 + return msg + }(validMsgUpdateModel()), + }, + { + name: "CommissionerRemoteUiFlowUrl is omitted", + msg: func(msg *MsgUpdateModel) *MsgUpdateModel { + msg.CommissionerRemoteUiFlowUrl = "" + + return msg + }(validMsgUpdateModel()), + }, + { + name: "CommissionerRemoteUiFlowUrl length == 256", + msg: func(msg *MsgUpdateModel) *MsgUpdateModel { + msg.CommissionerRemoteUiFlowUrl = "https://sampleflowurl.dclauth/" + tmrand.Str(256-30) // length = 256 + return msg }(validMsgUpdateModel()), }, @@ -1294,10 +1344,11 @@ func validMsgCreateModel() *MsgCreateModel { CommissioningModeInitialStepsInstruction: testconstants.CommissioningModeInitialStepsInstruction, CommissioningModeSecondaryStepsHint: testconstants.CommissioningModeSecondaryStepsHint, CommissioningModeSecondaryStepsInstruction: testconstants.CommissioningModeSecondaryStepsInstruction, - UserManualUrl: testconstants.UserManualURL, - SupportUrl: testconstants.SupportURL, - ProductUrl: testconstants.ProductURL, - LsfUrl: testconstants.LsfURL, + CommissionerRemoteUiFlowUrl: testconstants.CommissioningCustomFlowURL, + UserManualUrl: testconstants.UserManualURL, + SupportUrl: testconstants.SupportURL, + ProductUrl: testconstants.ProductURL, + LsfUrl: testconstants.LsfURL, } } @@ -1312,10 +1363,11 @@ func validMsgUpdateModel() *MsgUpdateModel { CommissioningCustomFlowUrl: testconstants.CommissioningCustomFlowURL + "/updated", CommissioningModeInitialStepsInstruction: testconstants.CommissioningModeInitialStepsInstruction + "-updated", CommissioningModeSecondaryStepsInstruction: testconstants.CommissioningModeSecondaryStepsInstruction + "-updated", - UserManualUrl: testconstants.UserManualURL + "/updated", - SupportUrl: testconstants.SupportURL + "/updated", - ProductUrl: testconstants.ProductURL + "/updated", - LsfUrl: testconstants.LsfURL + "/updated", - LsfRevision: testconstants.LsfRevision + 1, + CommissionerRemoteUiFlowUrl: testconstants.CommissioningCustomFlowURL + "-updated", + UserManualUrl: testconstants.UserManualURL + "/updated", + SupportUrl: testconstants.SupportURL + "/updated", + ProductUrl: testconstants.ProductURL + "/updated", + LsfUrl: testconstants.LsfURL + "/updated", + LsfRevision: testconstants.LsfRevision + 1, } } diff --git a/x/model/types/model.pb.go b/x/model/types/model.pb.go index de6c989b6..dd1007059 100644 --- a/x/model/types/model.pb.go +++ b/x/model/types/model.pb.go @@ -43,6 +43,7 @@ type Model struct { LsfRevision int32 `protobuf:"varint,17,opt,name=lsfRevision,proto3" json:"lsfRevision,omitempty"` Creator string `protobuf:"bytes,18,opt,name=creator,proto3" json:"creator,omitempty"` SchemaVersion uint32 `protobuf:"varint,19,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty"` + CommissionerRemoteUiFlowUrl string `protobuf:"bytes,20,opt,name=commissionerRemoteUiFlowUrl,proto3" json:"commissionerRemoteUiFlowUrl,omitempty"` } func (m *Model) Reset() { *m = Model{} } @@ -211,6 +212,13 @@ func (m *Model) GetSchemaVersion() uint32 { return 0 } +func (m *Model) GetCommissionerRemoteUiFlowUrl() string { + if m != nil { + return m.CommissionerRemoteUiFlowUrl + } + return "" +} + func init() { proto.RegisterType((*Model)(nil), "zigbeealliance.distributedcomplianceledger.model.Model") } @@ -218,41 +226,42 @@ func init() { func init() { proto.RegisterFile("model/model.proto", fileDescriptor_312ac5bcab6cbb43) } var fileDescriptor_312ac5bcab6cbb43 = []byte{ - // 530 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcd, 0x6e, 0x13, 0x31, - 0x18, 0xcc, 0x52, 0x92, 0x50, 0xb7, 0x81, 0xd6, 0x20, 0x30, 0x3d, 0xac, 0x42, 0xe1, 0x10, 0x21, - 0x25, 0x8b, 0xe0, 0xc2, 0x09, 0x89, 0x22, 0x55, 0x44, 0x6a, 0x2b, 0x94, 0x00, 0x87, 0x1e, 0x00, - 0xaf, 0xfd, 0x35, 0xb5, 0xe4, 0x5d, 0x5b, 0xb6, 0x37, 0x10, 0xee, 0xdc, 0x79, 0x18, 0x1e, 0x82, - 0x63, 0xc5, 0x89, 0x23, 0x4a, 0x5e, 0x04, 0xd9, 0x9b, 0x92, 0xac, 0x50, 0xff, 0x2e, 0x51, 0x3c, - 0x33, 0xdf, 0x97, 0x89, 0x77, 0x66, 0xd1, 0x66, 0xa6, 0x38, 0xc8, 0x24, 0x7c, 0xf6, 0xb4, 0x51, - 0x4e, 0xe1, 0x27, 0x5f, 0xc5, 0x28, 0x05, 0xa0, 0x52, 0x0a, 0x9a, 0x33, 0xe8, 0x71, 0x61, 0x9d, - 0x11, 0x69, 0xe1, 0x80, 0x33, 0x95, 0xe9, 0x12, 0x95, 0xc0, 0x47, 0x60, 0x7a, 0x61, 0x6e, 0xeb, - 0x3e, 0x53, 0x36, 0x53, 0xf6, 0x63, 0x98, 0x4f, 0xca, 0x43, 0xb9, 0x6c, 0xfb, 0x5b, 0x13, 0xd5,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, 0x60, 0xd3, - 0x46, 0x28, 0xfc, 0xb3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x85, 0x84, 0x11, 0xc4, 0x52, 0x04, - 0x00, 0x00, + // 551 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xc1, 0x6e, 0x13, 0x31, + 0x14, 0xcc, 0x52, 0x92, 0x50, 0xb7, 0x81, 0xd6, 0x54, 0x60, 0x8a, 0xb4, 0x0a, 0x85, 0x43, 0x84, + 0x94, 0x2c, 0x82, 0x0b, 0x27, 0x04, 0x45, 0xaa, 0x88, 0xd4, 0x56, 0x68, 0x43, 0x39, 0xf4, 0x00, + 0xec, 0xae, 0x5f, 0x53, 0x4b, 0xf6, 0xda, 0xb2, 0xbd, 0x81, 0xf0, 0x15, 0x7c, 0x0c, 0xff, 0x00, + 0xc7, 0x8a, 0x13, 0x47, 0x94, 0xfc, 0x08, 0xb2, 0x37, 0x21, 0x89, 0x50, 0xd3, 0xf6, 0x12, 0xc5, + 0x33, 0xf3, 0x5e, 0x26, 0xde, 0xd9, 0x41, 0x9b, 0x42, 0x52, 0xe0, 0x91, 0xff, 0xec, 0x28, 0x2d, + 0xad, 0xc4, 0x4f, 0xbe, 0xb2, 0x7e, 0x0a, 0x90, 0x70, 0xce, 0x92, 0x3c, 0x83, 0x0e, 0x65, 0xc6, + 0x6a, 0x96, 0x16, 0x16, 0x68, 0x26, 0x85, 0x2a, 0x51, 0x0e, 0xb4, 0x0f, 0xba, 0xe3, 0xe7, 0xb6, + 0xef, 0x65, 0xd2, 0x08, 0x69, 0x3e, 0xfa, 0xf9, 0xa8, 0x3c, 0x94, 0xcb, 0x76, 0x7e, 0xd4, 0x51, + 0xf5, 0xc0, 0x89, 0xf0, 0x06, 0x5a, 0x19, 0x30, 0x4a, 0x82, 0x66, 0xd0, 0xaa, 0xc6, 0xee, 0xab, + 0x43, 0x14, 0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59, 0x3c, + 0x91, 0x1d, 0x2a, 0x30, 0x69, 0xcd, 0x57, 0xc6, 0xb3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x87, + 0xf2, 0xba, 0x9d, 0x94, 0x04, 0x00, 0x00, } func (m *Model) Marshal() (dAtA []byte, err error) { @@ -275,6 +284,15 @@ func (m *Model) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.CommissionerRemoteUiFlowUrl) > 0 { + i -= len(m.CommissionerRemoteUiFlowUrl) + copy(dAtA[i:], m.CommissionerRemoteUiFlowUrl) + i = encodeVarintModel(dAtA, i, uint64(len(m.CommissionerRemoteUiFlowUrl))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } if m.SchemaVersion != 0 { i = encodeVarintModel(dAtA, i, uint64(m.SchemaVersion)) i-- @@ -488,6 +506,10 @@ func (m *Model) Size() (n int) { if m.SchemaVersion != 0 { n += 2 + sovModel(uint64(m.SchemaVersion)) } + l = len(m.CommissionerRemoteUiFlowUrl) + if l > 0 { + n += 2 + l + sovModel(uint64(l)) + } return n } @@ -1030,6 +1052,38 @@ func (m *Model) Unmarshal(dAtA []byte) error { break } } + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommissionerRemoteUiFlowUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowModel + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthModel + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthModel + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CommissionerRemoteUiFlowUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipModel(dAtA[iNdEx:]) diff --git a/x/model/types/tx.pb.go b/x/model/types/tx.pb.go index b6a01a16a..3c3fdece4 100644 --- a/x/model/types/tx.pb.go +++ b/x/model/types/tx.pb.go @@ -48,6 +48,7 @@ type MsgCreateModel struct { ProductUrl string `protobuf:"bytes,16,opt,name=productUrl,proto3" json:"productUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` LsfUrl string `protobuf:"bytes,17,opt,name=lsfUrl,proto3" json:"lsfUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` SchemaVersion uint32 `protobuf:"varint,18,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty" validate:"gte=0,lte=65535"` + CommissionerRemoteUiFlowUrl string `protobuf:"bytes,19,opt,name=commissionerRemoteUiFlowUrl,proto3" json:"commissionerRemoteUiFlowUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` } func (m *MsgCreateModel) Reset() { *m = MsgCreateModel{} } @@ -209,6 +210,13 @@ func (m *MsgCreateModel) GetSchemaVersion() uint32 { return 0 } +func (m *MsgCreateModel) GetCommissionerRemoteUiFlowUrl() string { + if m != nil { + return m.CommissionerRemoteUiFlowUrl + } + return "" +} + type MsgCreateModelResponse struct { } @@ -261,6 +269,7 @@ type MsgUpdateModel struct { LsfUrl string `protobuf:"bytes,13,opt,name=lsfUrl,proto3" json:"lsfUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` LsfRevision int32 `protobuf:"varint,14,opt,name=lsfRevision,proto3" json:"lsfRevision,omitempty" validate:"gte=0,lte=65535"` SchemaVersion uint32 `protobuf:"varint,15,opt,name=schemaVersion,proto3" json:"schemaVersion,omitempty" validate:"gte=0,lte=65535"` + CommissionerRemoteUiFlowUrl string `protobuf:"bytes,16,opt,name=commissionerRemoteUiFlowUrl,proto3" json:"commissionerRemoteUiFlowUrl,omitempty" validate:"omitempty,url,startsnotwith=http:,max=256"` } func (m *MsgUpdateModel) Reset() { *m = MsgUpdateModel{} } @@ -401,6 +410,13 @@ func (m *MsgUpdateModel) GetSchemaVersion() uint32 { return 0 } +func (m *MsgUpdateModel) GetCommissionerRemoteUiFlowUrl() string { + if m != nil { + return m.CommissionerRemoteUiFlowUrl + } + return "" +} + type MsgUpdateModelResponse struct { } @@ -1023,91 +1039,93 @@ func init() { func init() { proto.RegisterFile("model/tx.proto", fileDescriptor_8898c625fa4755dc) } var fileDescriptor_8898c625fa4755dc = []byte{ - // 1343 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x99, 0x4d, 0x6f, 0xdb, 0x36, - 0x18, 0xc7, 0xab, 0x35, 0xaf, 0x74, 0x5e, 0x5a, 0xf6, 0x4d, 0xf3, 0x3a, 0x2b, 0x53, 0x81, 0x21, - 0x28, 0x92, 0x38, 0x75, 0x9a, 0xac, 0x28, 0x66, 0xa0, 0x75, 0xba, 0x36, 0x01, 0x9a, 0xb6, 0x50, - 0xda, 0x62, 0x28, 0xb0, 0x76, 0xb2, 0x44, 0x3b, 0xc4, 0x24, 0x51, 0x23, 0xa9, 0xbc, 0xf4, 0xbc, - 0x0f, 0xb0, 0xeb, 0x2e, 0xfb, 0x08, 0x3b, 0xed, 0xbc, 0x01, 0x3b, 0x0c, 0x3b, 0x16, 0x3b, 0xed, - 0x24, 0x0c, 0xed, 0x6d, 0xd8, 0x61, 0xd0, 0x27, 0x18, 0x44, 0xcb, 0xb6, 0x64, 0xcb, 0x2f, 0xb1, - 0x9d, 0x43, 0x7a, 0x31, 0x2c, 0x91, 0xff, 0x3f, 0x1f, 0x92, 0xcf, 0xf3, 0x13, 0x65, 0x83, 0x39, - 0x9b, 0x98, 0xc8, 0xca, 0xf3, 0xc3, 0x15, 0x97, 0x12, 0x4e, 0xe0, 0xea, 0x6b, 0x5c, 0x2d, 0x23, - 0xa4, 0x5b, 0x16, 0xd6, 0x1d, 0x03, 0xad, 0x98, 0x98, 0x71, 0x8a, 0xcb, 0x1e, 0x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80, 0x53, 0x9e, 0x83, 0x0f, 0x86, 0xdd, 0xad, 0xe1, 0x02, 0xee, 0x4c, - 0x14, 0x11, 0x70, 0x0a, 0x4e, 0x1e, 0x0c, 0xbb, 0x85, 0xc3, 0x05, 0xdc, 0xb9, 0xdc, 0x4b, 0x5f, - 0xff, 0xf1, 0x36, 0x27, 0xbd, 0x79, 0x9b, 0x93, 0xfe, 0x7e, 0x9b, 0x93, 0xbe, 0x7f, 0x97, 0x3b, - 0xf3, 0xe6, 0x5d, 0xee, 0xcc, 0x5f, 0xef, 0x72, 0x67, 0x5e, 0xdc, 0xaf, 0x62, 0xbe, 0xe7, 0x95, - 0x57, 0x0c, 0x62, 0xe7, 0x6b, 0x83, 0x2e, 0xd7, 0x47, 0xcd, 0xc7, 0x46, 0x5d, 0x6e, 0x0e, 0xbb, - 0x5c, 0x1b, 0x37, 0x7f, 0x98, 0x8f, 0xfe, 0x06, 0x3a, 0x72, 0x11, 0x2b, 0x4f, 0x88, 0x7f, 0x5e, - 0xd6, 0xfe, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x19, 0x78, 0x04, 0xb8, 0x1c, 0x1a, 0x00, 0x00, + // 1370 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x59, 0x4d, 0x6f, 0xdb, 0x36, + 0x18, 0xae, 0xd6, 0x7c, 0x32, 0x5f, 0x2d, 0xfb, 0xa5, 0xb9, 0x9d, 0x95, 0xa9, 0xc0, 0x10, 0x14, + 0x49, 0x9c, 0x3a, 0x4d, 0x56, 0x14, 0x0b, 0xd0, 0x3a, 0x5d, 0x9b, 0x00, 0x4d, 0x5b, 0x28, 0x6d, + 0x31, 0x14, 0x58, 0x3b, 0x59, 0xa2, 0x1d, 0x62, 0x92, 0xa8, 0x91, 0x54, 0xbe, 0xce, 0xfb, 0x01, + 0xbb, 0xee, 0xb2, 0x9f, 0xb0, 0xd3, 0xce, 0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9f, 0xbf, 0x8e, 0x5c, 0xc4, 0xca, 0x63, 0xe2, 0x8b, 0xd3, 0xea, 0xff, 0x01, 0x00, 0x00, + 0xff, 0xff, 0xa4, 0x5c, 0x59, 0x3e, 0x14, 0x1b, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1390,6 +1408,15 @@ func (m *MsgCreateModel) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.CommissionerRemoteUiFlowUrl) > 0 { + i -= len(m.CommissionerRemoteUiFlowUrl) + copy(dAtA[i:], m.CommissionerRemoteUiFlowUrl) + i = encodeVarintTx(dAtA, i, uint64(len(m.CommissionerRemoteUiFlowUrl))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } if m.SchemaVersion != 0 { i = encodeVarintTx(dAtA, i, uint64(m.SchemaVersion)) i-- @@ -1554,6 +1581,15 @@ func (m *MsgUpdateModel) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.CommissionerRemoteUiFlowUrl) > 0 { + i -= len(m.CommissionerRemoteUiFlowUrl) + copy(dAtA[i:], m.CommissionerRemoteUiFlowUrl) + i = encodeVarintTx(dAtA, i, uint64(len(m.CommissionerRemoteUiFlowUrl))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } if m.SchemaVersion != 0 { i = encodeVarintTx(dAtA, i, uint64(m.SchemaVersion)) i-- @@ -2154,6 +2190,10 @@ func (m *MsgCreateModel) Size() (n int) { if m.SchemaVersion != 0 { n += 2 + sovTx(uint64(m.SchemaVersion)) } + l = len(m.CommissionerRemoteUiFlowUrl) + if l > 0 { + n += 2 + l + sovTx(uint64(l)) + } return n } @@ -2228,6 +2268,10 @@ func (m *MsgUpdateModel) Size() (n int) { if m.SchemaVersion != 0 { n += 1 + sovTx(uint64(m.SchemaVersion)) } + l = len(m.CommissionerRemoteUiFlowUrl) + if l > 0 { + n += 2 + l + sovTx(uint64(l)) + } return n } @@ -2949,6 +2993,38 @@ func (m *MsgCreateModel) Unmarshal(dAtA []byte) error { break } } + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommissionerRemoteUiFlowUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CommissionerRemoteUiFlowUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -3477,6 +3553,38 @@ func (m *MsgUpdateModel) Unmarshal(dAtA []byte) error { break } } + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CommissionerRemoteUiFlowUrl", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CommissionerRemoteUiFlowUrl = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])