Skip to content

Commit

Permalink
Merge pull request #259 from multiversx/extend-additional-data
Browse files Browse the repository at this point in the history
Extend `AdditionalAccountData` structure
  • Loading branch information
miiu96 authored Sep 6, 2023
2 parents 042db39 + 30b2efe commit 5bdc450
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 50 deletions.
277 changes: 227 additions & 50 deletions data/alteredAccount/alteredAccount.pb.go

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

3 changes: 3 additions & 0 deletions data/alteredAccount/alteredAccount.proto
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ message AdditionalAccountData {
string CurrentOwner = 3 [(gogoproto.jsontag) = "currentOwner,omitempty"];
string UserName = 4 [(gogoproto.jsontag) = "userName,omitempty"];
string DeveloperRewards = 5 [(gogoproto.jsontag) = "developerRewards,omitempty"];
bytes CodeHash = 6 [(gogoproto.jsontag) = "codeHash,omitempty"];
bytes RootHash = 7 [(gogoproto.jsontag) = "rootHash,omitempty"];
bytes CodeMetadata = 8 [(gogoproto.jsontag) = "codeMetadata,omitempty"];
}
7 changes: 7 additions & 0 deletions data/api/apiBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ type Block struct {
Status string `json:"status,omitempty"`
RandSeed string `json:"randSeed,omitempty"`
PrevRandSeed string `json:"prevRandSeed,omitempty"`
PubKeyBitmap string `json:"pubKeyBitmap"`
Signature string `json:"signature,omitempty"`
LeaderSignature string `json:"leaderSignature,omitempty"`
ChainID string `json:"chainID,omitempty"`
SoftwareVersion string `json:"softwareVersion,omitempty"`
ReceiptsHash string `json:"receiptsHash,omitempty"`
Reserved []byte `json:"reserved,omitempty"`
Timestamp time.Duration `json:"timestamp,omitempty"`
NotarizedBlocks []*NotarizedBlock `json:"notarizedBlocks,omitempty"`
MiniBlocks []*MiniBlock `json:"miniBlocks,omitempty"`
Expand Down

0 comments on commit 5bdc450

Please sign in to comment.