Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manifoldfinance/mock-rpc
RPC Proxy that uses MSW that allows to override RPC / REST / GraphQL calls to ease testing on certain scenarios
https://github.com/manifoldfinance/mock-rpc
ethereum json-rpc msw proxy rpc
Last synced: about 1 month ago
JSON representation
RPC Proxy that uses MSW that allows to override RPC / REST / GraphQL calls to ease testing on certain scenarios
- Host: GitHub
- URL: https://github.com/manifoldfinance/mock-rpc
- Owner: manifoldfinance
- License: apache-2.0
- Created: 2022-04-05T15:05:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T05:51:46.000Z (over 2 years ago)
- Last Synced: 2024-05-19T00:36:42.792Z (8 months ago)
- Topics: ethereum, json-rpc, msw, proxy, rpc
- Language: Nix
- Homepage:
- Size: 92.8 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Mock RPC Relay
Proxy that uses [MSW](https://mswjs.io/) that allows to override RPC / REST / GraphQL calls to ease testing on certain scenarios, specifically designed for SushiSwap interface.
## Requirements
* [direnv](https://github.com/direnv/direnv)
* [nix](https://nixos.org/download.html)Alternatively, having `NodeJS 16` is enough to run the project without anything of the above.
## Running
It will open connection at port 8080
```shell
npm run server
```> Note: for ipv6, use [http://[::1]:8080](http://[::1]:8080)
## License
Copyright 2021 CommodityStream LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.