Skip to content

Commit 57864fb

Browse files
authored
Merge pull request #173 from spacemeshos/3315-genesis-address-format_api_signature_change
Genesis address format - change address type from byte slice to string
2 parents 63f4615 + 96bc614 commit 57864fb

24 files changed

Lines changed: 557 additions & 445 deletions

proto/spacemesh/v1/tx_types.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ message TransactionResultsRequest {
5959
// id is filter by transaction id.
6060
bytes id = 1;
6161
// address is a filter by account address, it could be principal or any affected address.
62-
bytes address = 2;
62+
string address = 2;
6363
// start streaming from this layer. if 0 - stream will start from genesis.
6464
uint32 start = 3;
6565
// end streaming at this layer. if 0 - stream till the latest available layer.
@@ -82,5 +82,5 @@ message TransactionResult {
8282
uint64 fee = 5;
8383
bytes block = 6;
8484
uint32 layer = 7;
85-
repeated bytes touched_addresses = 8;
85+
repeated string touched_addresses = 8;
8686
}

proto/spacemesh/v1/types.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ message Amount {
1616
}
1717

1818
message AccountId {
19-
bytes address = 1;
19+
string address = 1;
2020
}
2121

2222
message TransactionId {
@@ -45,8 +45,8 @@ message Activation {
4545
// do not include mutable data such as tx state or result.
4646
message Transaction {
4747
bytes id = 1;
48-
bytes principal = 2;
49-
bytes template = 3;
48+
AccountId principal = 2;
49+
AccountId template = 3;
5050
uint32 method = 4; // this is actually limited by uint8, but no type for that.
5151
Nonce nonce = 5;
5252
LayerLimits limits = 6;

release/go/spacemesh/v1/debug.pb.go

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/go/spacemesh/v1/debug.pb.gw.go

Lines changed: 16 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/go/spacemesh/v1/debug_types.pb.go

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/go/spacemesh/v1/gateway.pb.go

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/go/spacemesh/v1/gateway.pb.gw.go

Lines changed: 16 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/go/spacemesh/v1/gateway_types.pb.go

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/go/spacemesh/v1/global_state.pb.go

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)