Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solana/rpc-subscriptions-api

Package Overview
Dependencies
Maintainers
15
Versions
899
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/rpc-subscriptions-api - npm Package Compare versions

Comparing version 2.0.0-experimental.d3890b7 to 2.0.0-experimental.d49ac92

22

dist/types/block-notifications.d.ts

@@ -83,3 +83,3 @@ import type { RpcSubscriptionsApiMethods } from '@solana/rpc-subscriptions-spec';

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithSignatures & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithSignatures) | null;
}>>;

@@ -107,3 +107,3 @@ blockNotifications(filter: BlockNotificationsFilter, config: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForAccounts<BlockNotificationsMaxSupportedTransactionVersion>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForAccounts<BlockNotificationsMaxSupportedTransactionVersion>>) | null;
}>>;

@@ -115,3 +115,3 @@ blockNotifications(filter: BlockNotificationsFilter, config: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForAccounts<void>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForAccounts<void>>) | null;
}>>;

@@ -139,3 +139,3 @@ blockNotifications(filter: BlockNotificationsFilter, config: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullBase58<BlockNotificationsMaxSupportedTransactionVersion>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullBase58<BlockNotificationsMaxSupportedTransactionVersion>>) | null;
}>>;

@@ -147,3 +147,3 @@ blockNotifications(filter: BlockNotificationsFilter, config: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullBase58<void>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullBase58<void>>) | null;
}>>;

@@ -171,3 +171,3 @@ blockNotifications(filter: BlockNotificationsFilter, config: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullBase64<BlockNotificationsMaxSupportedTransactionVersion>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullBase64<BlockNotificationsMaxSupportedTransactionVersion>>) | null;
}>>;

@@ -179,3 +179,3 @@ blockNotifications(filter: BlockNotificationsFilter, config: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullBase64<void>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullBase64<void>>) | null;
}>>;

@@ -203,3 +203,3 @@ blockNotifications(filter: BlockNotificationsFilter, config: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullJsonParsed<BlockNotificationsMaxSupportedTransactionVersion>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullJsonParsed<BlockNotificationsMaxSupportedTransactionVersion>>) | null;
}>>;

@@ -211,3 +211,3 @@ blockNotifications(filter: BlockNotificationsFilter, config: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullJsonParsed<void>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullJsonParsed<void>>) | null;
}>>;

@@ -235,3 +235,3 @@ blockNotifications(filter: BlockNotificationsFilter, config: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullJson<BlockNotificationsMaxSupportedTransactionVersion>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullJson<BlockNotificationsMaxSupportedTransactionVersion>>) | null;
}>>;

@@ -243,3 +243,3 @@ blockNotifications(filter: BlockNotificationsFilter, config?: BlockNotificationsCommonConfig & Readonly<{

}>): SolanaRpcResponse<BlockNotificationsNotificationBase & Readonly<{
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullJson<void>> & BlockNotificationsNotificationBlockWithRewards) | null;
block: (BlockNotificationsNotificationBlock & BlockNotificationsNotificationBlockWithRewards & BlockNotificationsNotificationBlockWithTransactions<TransactionForFullJson<void>>) | null;
}>>;

@@ -246,0 +246,0 @@ }

@@ -5,10 +5,10 @@ import type { Address } from '@solana/addresses';

type ProgramNotificationsMemcmpFilterBase58 = Readonly<{
offset: U64UnsafeBeyond2Pow53Minus1;
bytes: Base58EncodedBytes;
encoding: 'base58';
offset: U64UnsafeBeyond2Pow53Minus1;
}>;
type ProgramNotificationsMemcmpFilterBase64 = Readonly<{
offset: U64UnsafeBeyond2Pow53Minus1;
bytes: Base64EncodedBytes;
encoding: 'base64';
offset: U64UnsafeBeyond2Pow53Minus1;
}>;

@@ -19,8 +19,8 @@ type ProgramNotificationsDatasizeFilter = Readonly<{

type ProgramNotificationsApiNotificationBase<TData> = SolanaRpcResponse<Readonly<{
account: AccountInfoBase & TData;
pubkey: Address;
account: AccountInfoBase & TData;
}>>;
type ProgramNotificationsApiCommonConfig = Readonly<{
commitment?: Commitment;
filters?: readonly (ProgramNotificationsMemcmpFilterBase58 | ProgramNotificationsMemcmpFilterBase64 | ProgramNotificationsDatasizeFilter)[];
filters?: readonly (ProgramNotificationsDatasizeFilter | ProgramNotificationsMemcmpFilterBase58 | ProgramNotificationsMemcmpFilterBase64)[];
}>;

@@ -27,0 +27,0 @@ export interface ProgramNotificationsApi extends RpcSubscriptionsApiMethods {

@@ -17,10 +17,10 @@ import type { Signature } from '@solana/keys';

*/
signatureNotifications(signature: Signature, config: SignatureNotificationsApiConfigBase & Readonly<{
signatureNotifications(signature: Signature, config: Readonly<{
enableReceivedNotification: true;
}>): SignatureNotificationsApiNotificationReceived | SignatureNotificationsApiNotificationProcessed;
signatureNotifications(signature: Signature, config?: SignatureNotificationsApiConfigBase & Readonly<{
}> & SignatureNotificationsApiConfigBase): SignatureNotificationsApiNotificationProcessed | SignatureNotificationsApiNotificationReceived;
signatureNotifications(signature: Signature, config?: Readonly<{
enableReceivedNotification?: false;
}>): SignatureNotificationsApiNotificationProcessed;
}> & SignatureNotificationsApiConfigBase): SignatureNotificationsApiNotificationProcessed;
}
export {};
//# sourceMappingURL=signature-notifications.d.ts.map

@@ -8,11 +8,11 @@ import type { RpcSubscriptionsApiMethods } from '@solana/rpc-subscriptions-spec';

}>;
type SlotsUpdatesNotificationsApiNotificationCreatedBank = SlotsUpdatesNotificationsApiNotificationBase & Readonly<{
type SlotsUpdatesNotificationsApiNotificationCreatedBank = Readonly<{
parent: Slot;
type: 'createdBank';
}>;
type SlotsUpdatesNotificationsApiNotificationDead = SlotsUpdatesNotificationsApiNotificationBase & Readonly<{
}> & SlotsUpdatesNotificationsApiNotificationBase;
type SlotsUpdatesNotificationsApiNotificationDead = Readonly<{
err: string;
type: 'dead';
}>;
type SlotsUpdatesNotificationsApiNotificationFrozen = SlotsUpdatesNotificationsApiNotificationBase & Readonly<{
}> & SlotsUpdatesNotificationsApiNotificationBase;
type SlotsUpdatesNotificationsApiNotificationFrozen = Readonly<{
stats: Readonly<{

@@ -25,3 +25,3 @@ maxTransactionsPerEntry: U64UnsafeBeyond2Pow53Minus1;

type: 'frozen';
}>;
}> & SlotsUpdatesNotificationsApiNotificationBase;
type SlotsUpdatesNotificationsApiNotification = SlotsUpdatesNotificationsApiNotificationBase | SlotsUpdatesNotificationsApiNotificationCreatedBank | SlotsUpdatesNotificationsApiNotificationDead | SlotsUpdatesNotificationsApiNotificationFrozen;

@@ -28,0 +28,0 @@ export interface SlotsUpdatesNotificationsApi extends RpcSubscriptionsApiMethods {

{
"name": "@solana/rpc-subscriptions-api",
"version": "2.0.0-experimental.d3890b7",
"version": "2.0.0-experimental.d49ac92",
"description": "Defines all default Solana RPC subscriptions as types",

@@ -49,8 +49,8 @@ "exports": {

"dependencies": {
"@solana/addresses": "2.0.0-experimental.d3890b7",
"@solana/keys": "2.0.0-experimental.d3890b7",
"@solana/rpc-subscriptions-spec": "2.0.0-experimental.d3890b7",
"@solana/rpc-transformers": "2.0.0-experimental.d3890b7",
"@solana/rpc-types": "2.0.0-experimental.d3890b7",
"@solana/transactions": "2.0.0-experimental.d3890b7"
"@solana/addresses": "2.0.0-experimental.d49ac92",
"@solana/keys": "2.0.0-experimental.d49ac92",
"@solana/rpc-subscriptions-spec": "2.0.0-experimental.d49ac92",
"@solana/rpc-transformers": "2.0.0-experimental.d49ac92",
"@solana/rpc-types": "2.0.0-experimental.d49ac92",
"@solana/transactions": "2.0.0-experimental.d49ac92"
},

@@ -67,9 +67,9 @@ "bundlewatch": {

"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/@solana/build-scripts/add-js-extension-to-types.mjs",
"dev": "jest -c node_modules/@solana/test-config/jest-dev.config.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --watch",
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node ../../node_modules/@solana/build-scripts/add-js-extension-to-types.mjs",
"dev": "jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --watch",
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag experimental --access public --no-git-checks",
"publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
"test:lint": "jest -c node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
"test:prettier": "jest -c node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
"test:lint": "jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
"test:prettier": "jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
"test:treeshakability:browser": "agadoo dist/index.browser.js",

@@ -79,5 +79,5 @@ "test:treeshakability:native": "agadoo dist/index.native.js",

"test:typecheck": "tsc --noEmit",
"test:unit:browser": "jest -c node_modules/@solana/test-config/jest-unit.config.browser.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent",
"test:unit:node": "jest -c node_modules/@solana/test-config/jest-unit.config.node.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent"
"test:unit:browser": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent",
"test:unit:node": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc