Skip to content

Commit

Permalink
Merge pull request #106 from ElrondNetwork/feat/covalent
Browse files Browse the repository at this point in the history
Feat/covalent
  • Loading branch information
mariusmihaic authored Nov 1, 2022
2 parents 17488c3 + 4cd69ba commit 7dd46b8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 2 additions & 0 deletions data/api/apiBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ type NotarizedBlock struct {
Nonce uint64 `json:"nonce"`
Round uint64 `json:"round"`
Shard uint32 `json:"shard"`
RootHash string `json:"rootHash"`
MiniBlockHashes []string `json:"miniBlockHashes,omitempty"`
AlteredAccounts []*outport.AlteredAccount `json:"alteredAccounts,omitempty"`
}

Expand Down
28 changes: 28 additions & 0 deletions data/api/apiHyperBlock.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package api

import (
"time"

"github.com/ElrondNetwork/elrond-go-core/data/transaction"
)

// Hyperblock contains all fully executed (both in source and in destination shards) transactions notarized in a given metablock
type Hyperblock struct {
Hash string `json:"hash"`
PrevBlockHash string `json:"prevBlockHash"`
StateRootHash string `json:"stateRootHash"`
Nonce uint64 `json:"nonce"`
Round uint64 `json:"round"`
Epoch uint32 `json:"epoch"`
NumTxs uint32 `json:"numTxs"`
AccumulatedFees string `json:"accumulatedFees,omitempty"`
DeveloperFees string `json:"developerFees,omitempty"`
AccumulatedFeesInEpoch string `json:"accumulatedFeesInEpoch,omitempty"`
DeveloperFeesInEpoch string `json:"developerFeesInEpoch,omitempty"`
Timestamp time.Duration `json:"timestamp,omitempty"`
EpochStartInfo *EpochStartInfo `json:"epochStartInfo,omitempty"`
EpochStartShardsData []*EpochStartShardData `json:"epochStartShardsData,omitempty"`
ShardBlocks []*NotarizedBlock `json:"shardBlocks"`
Transactions []*transaction.ApiTransactionResult `json:"transactions"`
Status string `json:"status,omitempty"`
}
2 changes: 1 addition & 1 deletion data/transaction/apiTransactionResult.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type ApiTransactionResult struct {
CallType string `json:"callType,omitempty"`
RelayerAddress string `json:"relayerAddress,omitempty"`
RelayedValue string `json:"relayedValue,omitempty"`
ChainID string `json:"chainID"`
ChainID string `json:"chainID,omitempty"`
Version uint32 `json:"version,omitempty"`
Options uint32 `json:"options"`
}
Expand Down

0 comments on commit 7dd46b8

Please sign in to comment.