Skip to content

Commit

Permalink
Merge pull request #173 from spacemeshos/3315-genesis-address-format_…
Browse files Browse the repository at this point in the history
…api_signature_change

Genesis address format - change address type from byte slice to string
  • Loading branch information
abergasov authored Aug 8, 2022
2 parents 63f4615 + 96bc614 commit 57864fb
Show file tree
Hide file tree
Showing 24 changed files with 557 additions and 445 deletions.
4 changes: 2 additions & 2 deletions proto/spacemesh/v1/tx_types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ message TransactionResultsRequest {
// id is filter by transaction id.
bytes id = 1;
// address is a filter by account address, it could be principal or any affected address.
bytes address = 2;
string address = 2;
// start streaming from this layer. if 0 - stream will start from genesis.
uint32 start = 3;
// end streaming at this layer. if 0 - stream till the latest available layer.
Expand All @@ -82,5 +82,5 @@ message TransactionResult {
uint64 fee = 5;
bytes block = 6;
uint32 layer = 7;
repeated bytes touched_addresses = 8;
repeated string touched_addresses = 8;
}
6 changes: 3 additions & 3 deletions proto/spacemesh/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ message Amount {
}

message AccountId {
bytes address = 1;
string address = 1;
}

message TransactionId {
Expand Down Expand Up @@ -45,8 +45,8 @@ message Activation {
// do not include mutable data such as tx state or result.
message Transaction {
bytes id = 1;
bytes principal = 2;
bytes template = 3;
AccountId principal = 2;
AccountId template = 3;
uint32 method = 4; // this is actually limited by uint8, but no type for that.
Nonce nonce = 5;
LayerLimits limits = 6;
Expand Down
7 changes: 1 addition & 6 deletions release/go/spacemesh/v1/debug.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 16 additions & 10 deletions release/go/spacemesh/v1/debug.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions release/go/spacemesh/v1/debug_types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions release/go/spacemesh/v1/gateway.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 16 additions & 10 deletions release/go/spacemesh/v1/gateway.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions release/go/spacemesh/v1/gateway_types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions release/go/spacemesh/v1/global_state.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 57864fb

Please sign in to comment.