Skip to content

Commit

Permalink
accounts/usbwallet/trezor: upgrade to generate with protoc 27.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed Jun 24, 2024
1 parent f8c45bf commit 333a978
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions accounts/usbwallet/trezor/messages-common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
syntax = "proto2";
package hw.trezor.messages.common;

option go_package = "github.com/ethereum/go-ethereum/accounts/usbwallet";

/**
* Response: Success of the previous request
* @end
Expand Down
2 changes: 2 additions & 0 deletions accounts/usbwallet/trezor/messages-ethereum.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
syntax = "proto2";
package hw.trezor.messages.ethereum;

option go_package = "github.com/ethereum/go-ethereum/accounts/usbwallet";

// Sugar for easier handling in Java
option java_package = "com.satoshilabs.trezor.lib.protobuf";
option java_outer_classname = "TrezorMessageEthereum";
Expand Down
2 changes: 2 additions & 0 deletions accounts/usbwallet/trezor/messages-management.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
syntax = "proto2";
package hw.trezor.messages.management;

option go_package = "github.com/ethereum/go-ethereum/accounts/usbwallet";

// Sugar for easier handling in Java
option java_package = "com.satoshilabs.trezor.lib.protobuf";
option java_outer_classname = "TrezorMessageManagement";
Expand Down
3 changes: 3 additions & 0 deletions accounts/usbwallet/trezor/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ package hw.trezor.messages;
* Messages for TREZOR communication
*/

option go_package = "github.com/ethereum/go-ethereum/accounts/usbwallet";

// Sugar for easier handling in Java
option java_package = "com.satoshilabs.trezor.lib.protobuf";
option java_outer_classname = "TrezorMessage";


import "google/protobuf/descriptor.proto";

/**
Expand Down
2 changes: 1 addition & 1 deletion accounts/usbwallet/trezor/trezor.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
// - Grab the latest Go plugin `go get -u github.com/golang/protobuf/protoc-gen-go`
// - Vendor in the latest Go plugin `govendor fetch github.com/golang/protobuf/...`

//go:generate protoc -I/usr/local/include:. --go_out=import_path=trezor:. messages.proto messages-common.proto messages-management.proto messages-ethereum.proto
//go:generate protoc --go_out=paths=source_relative:. messages.proto messages-common.proto messages-management.proto messages-ethereum.proto

// Package trezor contains the wire protocol.
package trezor
Expand Down

0 comments on commit 333a978

Please sign in to comment.