Skip to content

Commit dbea8f5

Browse files
authored
feat: Add ordering on new filtered methods. (#106)
1 parent aceadf4 commit dbea8f5

File tree

11 files changed

+468
-56
lines changed

11 files changed

+468
-56
lines changed

internal/mock/storage.go

+13
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,19 @@ func (m *Storage) TxIterator(
6666
panic("not implemented") // TODO: Implement
6767
}
6868

69+
func (m *Storage) BlockReverseIterator(_, _ uint64) (storage.Iterator[*types.Block], error) {
70+
panic("not implemented") // TODO: Implement
71+
}
72+
73+
func (m *Storage) TxReverseIterator(
74+
_,
75+
_ uint64,
76+
_,
77+
_ uint32,
78+
) (storage.Iterator[*types.TxResult], error) {
79+
panic("not implemented") // TODO: Implement
80+
}
81+
6982
// WriteBatch provides a batch intended to do a write action that
7083
// can be cancelled or committed all at the same time
7184
func (m *Storage) WriteBatch() storage.Batch {

serve/graph/all.resolvers.go

+44-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

serve/graph/gen/generate.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ type Query {
1818
Incomplete results due to errors return both the partial Blocks and
1919
the associated errors.
2020
"""
21-
getBlocks(where: FilterBlock!): [Block!]
21+
getBlocks(where: FilterBlock!, order: BlockOrder): [Block!]
2222
2323
"""
2424
EXPERIMENTAL: Retrieves a list of Transactions that match the given
2525
where criteria. If the result is incomplete due to errors, both partial
2626
results and errors are returned.
2727
"""
28-
getTransactions(where: FilterTransaction!): [Transaction!]
28+
getTransactions(where: FilterTransaction!, order: TransactionOrder): [Transaction!]
2929
}
3030
3131
type Subscription {

0 commit comments

Comments
 (0)