-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the README for @solana/rpc
#2993
Conversation
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @steveluscher and the rest of your teammates on Graphite |
@@ -5,7 +5,6 @@ import type { ClusterUrl, DevnetUrl, MainnetUrl, TestnetUrl } from '@solana/rpc- | |||
export type RpcTransportDevnet = RpcTransport & { '~cluster': 'devnet' }; | |||
export type RpcTransportTestnet = RpcTransport & { '~cluster': 'testnet' }; | |||
export type RpcTransportMainnet = RpcTransport & { '~cluster': 'mainnet' }; | |||
export type RpcTransportWithCluster = RpcTransportDevnet | RpcTransportMainnet | RpcTransportTestnet; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find or think of a use for this. In particular, the Rpc*
types below have no such thing.
defaultCommitment: 'confirmed', | ||
onIntegerOverflow(methodName, keyPath, value) { | ||
throw createSolanaJsonRpcIntegerOverflowError(methodName, keyPath, value); | ||
}, | ||
}; | ||
} as const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This prevents us from adding properties here that are not part of the config type.
@@ -7,7 +7,7 @@ import { getRpcTransportWithRequestCoalescing } from './rpc-request-coalescer'; | |||
import { getSolanaRpcPayloadDeduplicationKey } from './rpc-request-deduplication'; | |||
|
|||
type RpcTransportConfig = Parameters<typeof createHttpTransport>[0]; | |||
export interface DefaultRpcTransportConfig<TClusterUrl extends ClusterUrl> extends RpcTransportConfig { | |||
interface DefaultRpcTransportConfig<TClusterUrl extends ClusterUrl> extends RpcTransportConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in use nowhere, so I made it private.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that! I'll gradually make my way to your other documentation/example PRs.
21761b9
to
f71c133
Compare
f71c133
to
bfbba70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the adjustments!
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |
Addresses solana-labs/web3.js-issue-conveyer#10.