-
Notifications
You must be signed in to change notification settings - Fork 853
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In this PR, we continue cleaning up the type namespace by renaming `RpcRequest` to `RpcApiRequestPlan`. This is because: - `RpcRequest` will be used to define a proper request interface that will unify the RPC layers. - `RpcApiRequestPlan` better describes what the type actually does. If you call `myRpcApi.myMethod({ foo: 42 })`, then you will be given an object that contains everything you need to send it to a transport without actually sending it to a transport. This is the role of the `Rpc` type which wraps the `RpcApi` proxy and transforms this `RpcApiRequestPlan` into a `PendingRpcRequest` which contains the desired `send` function.
- Loading branch information
1 parent
1c25dd4
commit 628177f
Showing
6 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@solana/rpc-spec': patch | ||
--- | ||
|
||
Rename `RpcRequest` type to `RpcApiRequestPlan` to make room for new `RpcRequest` type |
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 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