-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch networking to
@polkadot/rpc-provider
and support for `author…
…_submitAndWatchExtrinsic` for trusted calls (#116) * add rpc-provider * remove unnecessary modules from rpc-provider * yarn lock * remove rpc provider again * Functional WIP of working RPC provider * simplify the websocket worker some more * Revert "remove rpc provider again" This reverts commit 1815e0c. * submitAndWatch WIP * [websocketIntegriteeWorker] close ws after tests * [websocketIntegriteeWorker] extract resultToRpcReturnValue * [websocketIntegriteeWorker] trustedCall fire&forget works * [websocketIntegriteeWorker] submitAndCallback architecture seems to work, but we don't get an update * [websocketIntegriteeWorker] improve logging * implement getters with the new api * fix tests by resolving shard vs mrenclave ambiguity * properly reject upon priority error * fix tests in old integriteeWorker * update localDocker network with shard * move rpc-provider to worker * integrate local rpc-provider * close websockets after test in old worker implementation * able to run test with local rpc-provider * [rpc-provider] add debug logs * successfully implement `author_submitAndWatchExtrinsic` * merge the websocketWorker back into the worker * fix tests by resolving shard vs mrenclave ambiguity * merge the integritee websocket worker back into the original one * remove obsolete sendTrustedCall method * remove legacy code and encointer code * delete tests in rpc-provider that don't run * allow passing the websocket implementation into the rpc-provider. * remove old IWorker interface * remove unnecessary stuff from rpc-provider * make websocket a dev-dep * remove unnecessary promised map dependency * extract generic top to worker base implementation * simplify callback code * aggregate callback result in TrustedCallResult * improve callback code * fix code peculiarities * add comment about tests and skip them again for the ci * remove unnecessary dependency * add comment about websocket in rpc-provider * better comment * better type for submitAndWatch * v0.15.3-alpha.0 * v0.16.0-alpha.0 * resolve promise if status is invalid * Revert "[rpc-provider] add debug logs" This reverts commit 6215133. * downgrade a log
- Loading branch information
Showing
40 changed files
with
1,666 additions
and
686 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-12.4 KB
.yarn/cache/promise.prototype.finally-npm-3.1.2-18b6014744-e0b6e94d32.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-13.1 KB
.yarn/cache/websocket-as-promised-npm-2.0.1-289ab937b7-68dfd25be9.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
"publishConfig": { | ||
"directory": "build" | ||
}, | ||
"version": "0.15.2" | ||
"version": "0.16.0-alpha.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export { Worker } from './worker.js'; | ||
export { EncointerWorker } from './encointerWorker.js'; | ||
export { IntegriteeWorker } from './integriteeWorker.js'; | ||
|
||
export * from './interface.js'; |
Oops, something went wrong.