Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions common/proto/accounts/accounts.pb.go

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

6 changes: 5 additions & 1 deletion common/proto/accounts/accounts.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ message Account {
int64 created_at = 6;
int64 updated_at = 7;

// Consensus Identity
uint64 tx_nonce = 8;
uint64 tx_count_sent = 9;

// Optional arbitrary metadata (maps from map[string]interface{} on the wire)
google.protobuf.Struct metadata = 8;
google.protobuf.Struct metadata = 10;
}


Expand Down
8 changes: 5 additions & 3 deletions common/types/Block.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@ type Account struct {
DIDAddress string `json:"did,omitempty"`

// New PublicKey based fields
Address common.Address `json:"address"` // Derived from PublicKey
Balance string `json:"balance,omitempty"`
Nonce uint64 `json:"nonce"`
Address common.Address `json:"address"` // Derived from PublicKey
Balance string `json:"balance,omitempty"`
Nonce uint64 `json:"nonce"`
TxNonce uint64 `json:"tx_nonce"`
TxCountSent uint64 `json:"tx_count_sent"`

// Account metadata
AccountType string `json:"account_type"` // "did" or "publickey"
Expand Down
Loading