Skip to content

Commit

Permalink
Merge pull request #86 from ElrondNetwork/historical-balances
Browse files Browse the repository at this point in the history
Add support for historical balances
  • Loading branch information
andreibancioiu authored Aug 21, 2022
2 parents de33fed + a7d8c4a commit 093839d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
13 changes: 13 additions & 0 deletions core/optionals.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package core

// OptionalUint32 holds an optional uint32 value
type OptionalUint32 struct {
Value uint32
HasValue bool
}

// OptionalUint64 holds an optional uint64 value
type OptionalUint64 struct {
Value uint64
HasValue bool
}
7 changes: 6 additions & 1 deletion data/api/options.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
package api

import "github.com/ElrondNetwork/elrond-go-core/core"

// AccountQueryOptions holds options for account queries
type AccountQueryOptions struct {
OnFinalBlock bool
OnStartOfEpoch uint32
OnStartOfEpoch core.OptionalUint32
BlockNonce core.OptionalUint64
BlockHash []byte
BlockRootHash []byte
}

// BlockQueryOptions holds options for block queries
Expand Down

0 comments on commit 093839d

Please sign in to comment.