Closed lexnv closed 1 year ago
This PR adds configurable pagination for the storage query types: DescendantHashes and DescendantValues with the possibility to cancel the operation after the WaitingForContinue event is generated.
DescendantHashes
DescendantValues
WaitingForContinue
Operations
continue
stop
RegisteredOperation
BlockGuard
OperationState
chainHead_unstable_continue
chainHead_unstable_stopOperation
check_continue_operation
stop_storage_operation
Builds on top of: https://github.com/paritytech/substrate/pull/14699 Closes: https://github.com/paritytech/substrate/issues/14549 Closes: https://github.com/paritytech/substrate/issues/14639
// @paritytech/subxt-team
This PR adds configurable pagination for the storage query types:
DescendantHashes
andDescendantValues
with the possibility to cancel the operation after theWaitingForContinue
event is generated.WaitingForContinue
event is generatedOperations
object for better ergonomicscontinue
orstop
RegisteredOperation
object is returned to the backend (chainHead event generation) via theBlockGuard
OperationState
object is returned to the frontend and has direct user access viachainHead_unstable_continue
andchainHead_unstable_stopOperation
RegisteredOperation
in RAII manner (on drop) releases the capacity permit for the operation and unregisters the operation from the subscription statecheck_continue_operation
andstop_storage_operation
)Builds on top of: https://github.com/paritytech/substrate/pull/14699 Closes: https://github.com/paritytech/substrate/issues/14549 Closes: https://github.com/paritytech/substrate/issues/14639
// @paritytech/subxt-team