@solana/rpc-subscriptions-api
Advanced tools
Comparing version 2.0.0-experimental.d3890b7 to 2.0.0-experimental.d49ac92
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137747
33
1430
+ Added@solana/addresses@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/assertions@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/codecs-data-structures@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/errors@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/functional@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/keys@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/rpc-spec@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/rpc-spec-types@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/rpc-subscriptions-spec@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/rpc-transformers@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/rpc-types@2.0.0-experimental.d49ac92(transitive)
+ Added@solana/transactions@2.0.0-experimental.d49ac92(transitive)
- Removed@solana/addresses@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/assertions@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/codecs-core@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/codecs-data-structures@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/codecs-numbers@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/codecs-strings@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/errors@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/functional@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/keys@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/rpc-spec@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/rpc-spec-types@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/rpc-subscriptions-spec@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/rpc-transformers@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/rpc-types@2.0.0-experimental.d3890b7(transitive)
- Removed@solana/transactions@2.0.0-experimental.d3890b7(transitive)
Updated@solana/rpc-subscriptions-spec@2.0.0-experimental.d49ac92