You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Implemented RPC Manager for RPC calls (#1260)
* feature: introduced RPC manager module
* feat: Implemented RPCParameters for all contract calls
* refactor: moved RPCParameters struct to RPC module
* fix: added assetId parameter to getActiveStatus retry call
* refactor: passed rpcParameters to Batch call functions instead of client
* fix: path to assets.json and client parameter index fixed
* refactor: tests/updated mocks
* refactor: revert mainnet addresses change
* fix: added ctx parameter in CheckTransactionReceipt
* fix: revert chain Id and contract addresses change
* fix: refreshed RPC list after confirm state every epoch
* fix: added disputes contract call to the blockManager struct
* refactor: fixed lint log error
* reafctor: fixed tests
* fix: calculated dynamically the path to endpoints.json file
* fix: endpoints.json file to be picked from .razor directory instaed of repo
* refactor: set up temp endpoints.json file for tests
* feat: added importEndpoints command
* refactor: removed alternateProvider functions and flag as its not required now
* fix: switch to next client only if the connection is successful
* feat: added state block check by introducing blockMonitor (#1262)
* feat: introduced block monitor to keep track of blocks
* refactor: removed global variables used in logger and added blockMonitor as a field
* refactor: used refactored logger module
* fix: fixed logger global instance
* refactor: exported logrus instance field from logger struct
* refactor: fixed tests
* refactor: removed unwanted return variables in tests
* refactor: added log for current best endpoint URL after every refresh
* fix: added endpoint validation while switching endpoints
* fix: added switched returned type while switching endpoints and removed staleBlockCallback field
* refactor: used BestRPCClient from BestEndpoint
* refactor: renamed RPC module to rpc
* refactor: removed unwanted logs
* refactor: corrected importEndpoints command info
_Before staking on Razor Network, please ensure your account has sFUEL and RAZOR. For testnet RAZOR, please contact us on Discord._
192
192
193
+
### Import Endpoints
194
+
195
+
You can import the endpoints to file `$HOME/.razor/endpoints.json` on your local by using the `importEndpoints` command.
196
+
This command imports multiple providers along with the user input provider, which are then sorted according to the best performance. The best provider is thus chosen by the RPC manager and will be used to make the RPC calls.
197
+
198
+
razor cli
199
+
200
+
```
201
+
$ ./razor importEndpoints
202
+
```
203
+
204
+
docker
205
+
206
+
```
207
+
docker exec -it razor-go razor importEndpoints
208
+
```
209
+
193
210
### Stake
194
211
195
212
If you have a minimum of 1000 razors in your account, you can stake those using the addStake command.
0 commit comments