mock-chronik-client v3.0.0
mock-chronik-client
Testing utility to mock the Chronik indexer client and support unit tests that need to mock chronik related API calls.
Usage
Mock chronik API calls including tx broadcasting and paginated tx history. Also includes an Agora mock. See unit tests for latest usage.
Questions?
If you have any implementation questions regarding this mock tool please check the test suite in /test/index.test.js or feel free to reach out to the development team via the eCash Development Telegram.
Change Log
1.1.0
- Add support to in-node subscribeToBlocks method and check flag, isSubscribedBlocks
1.1.1
- Patch error tests
1.2.0
- Add support to calls by
address(address)returning same asscript(type, hash)
1.3.0
- Add support for
subscribeToAddressandunsubscribeFromAddresswebsocket methods
1.4.0
- Add support for
ws.unsubscribemethod and fix errors inwstests
1.4.1
- Patch repo path in package.json
1.5.0
- Add support for ws subscribe methods and shape found in in-node chronik-client
1.6.0
- Match shape of
subsobject inChronikClientNodeforChronikClientNodews methods and support unsubscribe from blocks
1.7.0
- Allow getting and setting utxos() and history() by tokenId
1.8.0
- Allow getting history without specifying pageNumber or pageSize
1.9.0
- Support
blockTxsendpoint - Update websocket subs shape to match ChronikClientNode
1.9.1
- Upgrading npm dependencies D16380
1.10.0
- Allow getting and setting
history()bylokadIdD16382
1.10.1
- Return missing
numTxskey fromhistory()calls D16617
1.11.0
- Add support for
MockAgora, a simple set-and-return mock for someecash-agoraclass methods D16737
1.12.0
- Extend
MockAgorasupport to coverofferedFungibleTokenIds()andactiveOffersByTokenId()methods D16929
1.12.1
- Build published version with dependencies from
npmD17227
1.12.2
- Add
MockAgorato stub ts declarations D17274
1.12.3
- Add dummy
pluginmethod to allow construction ofnew Agora()fromecash-agorawith aMockChronikClientD17279
2.0.0
- Full implementation of typescript
- Set history and utxos by script, address, or tokenId in one step (prev 2)
- Set history by lokadId in one step (prev 2)
- Better type checking
- Improved mock websocket (now it more closely follows the API of chronik-client)
- Add
broadcastTxsmethod - Add
chronikInfomethod
2.0.1
- Build before deployment so it also works for non-ts users D17338
2.1.0
- Support for Agora plugin websocket subscriptions D17369
2.1.1
- Upgrade to dependency-free
ecashaddrjsD17269
2.1.2
- Update README D17506
2.1.3
- Update
package.jsonpaths for correct typescriptdistD17542
3.0.0
- Update types to match latest breaking changes in
chronik-clientD17727
11 months ago
11 months ago
12 months ago
10 months ago
10 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago