#mocking #http-request #lcd #cosmwasm #perform #public #testing

rhaki_cw_mock_http_querier

Cosmwasm mock querier for testing, that can perform http request to public lcd

1 unstable release

0.1.0 Apr 5, 2023

#53 in #lcd

MIT/Apache

7KB
117 lines

Usage:

On your test file, instead to init you own deps, call create_http_mock function:

let deps: OwnedDeps<_, _, HttpWasmMockQuerier<DefaultWasmMockQuerier>> = create_http_mock(None, url_lcd, None);

Type annotation is needed. If your chain doesn't have any particular custom query, you can leave specify the default as above:

let deps: OwnedDeps<_, _, HttpWasmMockQuerier<DefaultWasmMockQuerier>>

Dependencies

~7–19MB
~314K SLoC