marlowe-ts-sdk icon indicating copy to clipboard operation
marlowe-ts-sdk copied to clipboard

Pagination Fully Controllable For Collection Endpoints

Open nhenin opened this issue 2 years ago • 0 comments

Currently the only way of creating a TransactionRange is through the pagination links provided by the backend, but when I talked with @Jamie Bertram he mentioned it is intended to be constructed by the user.

Link to relevant code https://github.com/input-output-hk/marlowe-ts-sdk/blob/f069ff96a5f5e357838071e83b3b9cb7e04e8ab3/packages/runtime/client/rest/src/contract/transaction/endpoints/collection.ts#L32

Currently the only way of creating a ContractRange is through the pagination links provided by the backend, but when I talked with he mentioned it is intended to be constructed by the user.

Link to relevant code https://github.com/input-output-hk/marlowe-ts-sdk/blob/f069ff96a5f5e357838071e83b3b9cb7e04e8ab3/packages/runtime/client/rest/src/contract/endpoints/collection.ts#L41

nhenin avatar Nov 22 '23 12:11 nhenin