@lightprotocol/stateless.js 0.17.1 → 0.17.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/cjs/browser/actions/compress.d.ts +1 -1
- package/dist/cjs/browser/actions/create-account.d.ts +1 -1
- package/dist/cjs/browser/actions/decompress.d.ts +1 -1
- package/dist/cjs/browser/actions/transfer.d.ts +1 -1
- package/dist/cjs/browser/connection-interface.d.ts +125 -0
- package/dist/cjs/browser/constants.d.ts +1 -1
- package/dist/cjs/browser/index.cjs +1 -12991
- package/dist/cjs/browser/index.cjs.map +1 -1
- package/dist/cjs/browser/index.d.ts +0 -2
- package/dist/cjs/browser/programs/index.d.ts +1 -0
- package/dist/cjs/browser/programs/layout.d.ts +25 -0
- package/dist/cjs/browser/programs/system.d.ts +1 -8
- package/dist/cjs/browser/rpc-interface.d.ts +164 -157
- package/dist/cjs/browser/rpc.d.ts +61 -4
- package/dist/cjs/browser/state/BN254.d.ts +1 -1
- package/dist/cjs/browser/state/compressed-account.d.ts +1 -1
- package/dist/cjs/browser/state/types.d.ts +1 -25
- package/dist/cjs/browser/test-helpers/merkle-tree/indexed-array.d.ts +1 -1
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +1 -1
- package/dist/cjs/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +3 -1
- package/dist/cjs/browser/test-helpers/test-rpc/test-rpc.d.ts +5 -3
- package/dist/cjs/browser/utils/conversion.d.ts +1 -1
- package/dist/cjs/browser/utils/validation.d.ts +1 -1
- package/dist/cjs/node/actions/compress.d.ts +1 -1
- package/dist/cjs/node/actions/create-account.d.ts +1 -1
- package/dist/cjs/node/actions/decompress.d.ts +1 -1
- package/dist/cjs/node/actions/transfer.d.ts +1 -1
- package/dist/cjs/node/connection-interface.d.ts +125 -0
- package/dist/cjs/node/constants.d.ts +1 -1
- package/dist/cjs/node/index.cjs +1 -10036
- package/dist/cjs/node/index.cjs.map +1 -1
- package/dist/cjs/node/index.d.ts +0 -2
- package/dist/cjs/node/programs/index.d.ts +1 -0
- package/dist/cjs/node/programs/layout.d.ts +25 -0
- package/dist/cjs/node/programs/system.d.ts +1 -8
- package/dist/cjs/node/rpc-interface.d.ts +164 -157
- package/dist/cjs/node/rpc.d.ts +61 -4
- package/dist/cjs/node/state/BN254.d.ts +1 -1
- package/dist/cjs/node/state/compressed-account.d.ts +1 -1
- package/dist/cjs/node/state/types.d.ts +1 -25
- package/dist/cjs/node/test-helpers/merkle-tree/indexed-array.d.ts +1 -1
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-accounts.d.ts +1 -1
- package/dist/cjs/node/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +3 -1
- package/dist/cjs/node/test-helpers/test-rpc/test-rpc.d.ts +5 -3
- package/dist/cjs/node/utils/conversion.d.ts +1 -1
- package/dist/cjs/node/utils/validation.d.ts +1 -1
- package/dist/es/browser/actions/compress.d.ts +1 -1
- package/dist/es/browser/actions/create-account.d.ts +1 -1
- package/dist/es/browser/actions/decompress.d.ts +1 -1
- package/dist/es/browser/actions/transfer.d.ts +1 -1
- package/dist/es/browser/connection-interface.d.ts +125 -0
- package/dist/es/browser/constants.d.ts +1 -1
- package/dist/es/browser/index.d.ts +0 -2
- package/dist/es/browser/index.js +1 -12911
- package/dist/es/browser/index.js.map +1 -1
- package/dist/es/browser/programs/index.d.ts +1 -0
- package/dist/es/browser/programs/layout.d.ts +25 -0
- package/dist/es/browser/programs/system.d.ts +1 -8
- package/dist/es/browser/rpc-interface.d.ts +164 -157
- package/dist/es/browser/rpc.d.ts +61 -4
- package/dist/es/browser/state/BN254.d.ts +1 -1
- package/dist/es/browser/state/compressed-account.d.ts +1 -1
- package/dist/es/browser/state/types.d.ts +1 -25
- package/dist/es/browser/test-helpers/merkle-tree/indexed-array.d.ts +1 -1
- package/dist/es/browser/test-helpers/test-rpc/get-compressed-accounts.d.ts +1 -1
- package/dist/es/browser/test-helpers/test-rpc/get-compressed-token-accounts.d.ts +3 -1
- package/dist/es/browser/test-helpers/test-rpc/test-rpc.d.ts +5 -3
- package/dist/es/browser/utils/conversion.d.ts +1 -1
- package/dist/es/browser/utils/validation.d.ts +1 -1
- package/dist/types/index.d.ts +1248 -6396
- package/package.json +16 -9
- package/dist/cjs/browser/idls/account_compression.d.ts +0 -1170
- package/dist/cjs/browser/idls/index.d.ts +0 -5
- package/dist/cjs/browser/idls/light_compressed_token.d.ts +0 -1792
- package/dist/cjs/browser/idls/light_registry.d.ts +0 -1293
- package/dist/cjs/browser/idls/light_system_program.d.ts +0 -1065
- package/dist/cjs/browser/wallet/index.d.ts +0 -1
- package/dist/cjs/browser/wallet/interface.d.ts +0 -25
- package/dist/cjs/browser/wallet/use-wallet.d.ts +0 -9
- package/dist/cjs/node/idls/account_compression.d.ts +0 -1170
- package/dist/cjs/node/idls/index.d.ts +0 -5
- package/dist/cjs/node/idls/light_compressed_token.d.ts +0 -1792
- package/dist/cjs/node/idls/light_registry.d.ts +0 -1293
- package/dist/cjs/node/idls/light_system_program.d.ts +0 -1065
- package/dist/cjs/node/wallet/index.d.ts +0 -1
- package/dist/cjs/node/wallet/interface.d.ts +0 -25
- package/dist/cjs/node/wallet/use-wallet.d.ts +0 -9
- package/dist/es/browser/idls/account_compression.d.ts +0 -1170
- package/dist/es/browser/idls/index.d.ts +0 -5
- package/dist/es/browser/idls/light_compressed_token.d.ts +0 -1792
- package/dist/es/browser/idls/light_registry.d.ts +0 -1293
- package/dist/es/browser/idls/light_system_program.d.ts +0 -1065
- package/dist/es/browser/wallet/index.d.ts +0 -1
- package/dist/es/browser/wallet/interface.d.ts +0 -25
- package/dist/es/browser/wallet/use-wallet.d.ts +0 -9
package/README.md
CHANGED
|
@@ -45,6 +45,14 @@ Feel free to ask in the [Light](https://discord.gg/CYvjBgzRFP) and [Helius](http
|
|
|
45
45
|
- A code example that we can use to test and debug (if possible). Use [CodeSandbox](https://codesandbox.io/p/sandbox/vanilla-ts) or any other live environment provider.
|
|
46
46
|
- A description or context of any errors you are encountering with stacktraces if available.
|
|
47
47
|
|
|
48
|
+
### Source Maps
|
|
49
|
+
|
|
50
|
+
We provide `index.js.map` for debugging. Exclude in production:
|
|
51
|
+
|
|
52
|
+
**Webpack:** Set `devtool` to `false`.
|
|
53
|
+
**Rollup:** Set `sourcemap` to `false`.
|
|
54
|
+
**TypeScript:** Set `sourceMap` to `false`.
|
|
55
|
+
|
|
48
56
|
## Contributing
|
|
49
57
|
|
|
50
58
|
Light and ZK Compression are open source protocols and very much welcome contributions. If you have a contribution, do not hesitate to send a PR to the respective repository or discuss in the linked developer Discord servers.
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { PublicKey, Commitment, GetBalanceConfig, RpcResponseAndContext, Supply, TokenAmount, GetSupplyConfig, TokenAccountsFilter, GetProgramAccountsResponse, GetTokenAccountsByOwnerConfig, AccountInfo, ParsedAccountData, GetLargestAccountsConfig, AccountBalancePair, TokenAccountBalancePair, GetAccountInfoConfig, GetMultipleAccountsConfig, StakeActivationData, GetBlockHeightConfig, GetBlockProductionConfig, BlockProduction, GetLatestBlockhashConfig, BlockhashWithExpiryBlockHeight, SimulatedTransactionResponse, SimulateTransactionConfig, SendOptions, TransactionSignature, AddressLookupTableAccount, GetParsedProgramAccountsConfig, Finality, GetVersionedBlockConfig, VersionedBlockResponse, VersionedAccountsModeBlockResponse, VersionedNoneModeBlockResponse, ParsedAccountsModeBlockResponse, ParsedNoneModeBlockResponse, ParsedTransactionWithMeta, VersionedTransaction, VersionedTransactionResponse, ConfirmedBlock, ConfirmedSignatureInfo, ConfirmedSignaturesForAddress2Options, SignatureStatusConfig, SignatureStatus, Version, VoteAccountStatus, GetSlotConfig, GetSlotLeaderConfig, GetProgramAccountsConfig, SignatureResult, TransactionConfirmationStrategy, AccountChangeCallback, ProgramAccountChangeCallback, LogsCallback, SlotChangeCallback, SlotUpdateCallback, SignatureResultCallback, SignatureSubscriptionCallback, SignatureSubscriptionOptions, RootChangeCallback, GetStakeActivationConfig, InflationGovernor, GetTransactionCountConfig, GetInflationRewardConfig, InflationReward, InflationRate, GetEpochInfoConfig, EpochInfo, EpochSchedule, LeaderSchedule, Blockhash, FeeCalculator, PerfSample, VersionedMessage, GetRecentPrioritizationFeesConfig, RecentPrioritizationFees, IsBlockhashValidConfig, GetVersionedTransactionConfig, ParsedConfirmedTransaction, ConfirmedTransaction, BlockSignatures, SignaturesForAddressOptions, GetNonceAndContextConfig, NonceAccount, GetNonceConfig, GetStakeMinimumDelegationConfig, AccountSubscriptionConfig, ProgramAccountSubscriptionConfig, LogsFilter, ContactInfo } from '@solana/web3.js';
|
|
2
|
+
export type ClientSubscriptionId = number;
|
|
3
|
+
export interface ConnectionInterface {
|
|
4
|
+
readonly commitment?: Commitment;
|
|
5
|
+
readonly rpcEndpoint: string;
|
|
6
|
+
getBalanceAndContext(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetBalanceConfig): Promise<RpcResponseAndContext<number>>;
|
|
7
|
+
getBalance(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetBalanceConfig): Promise<number>;
|
|
8
|
+
getBlockTime(slot: number): Promise<number | null>;
|
|
9
|
+
getMinimumLedgerSlot(): Promise<number>;
|
|
10
|
+
getFirstAvailableBlock(): Promise<number>;
|
|
11
|
+
getSupply(config?: GetSupplyConfig | Commitment): Promise<RpcResponseAndContext<Supply>>;
|
|
12
|
+
getTokenSupply(tokenMintAddress: PublicKey, commitment?: Commitment): Promise<RpcResponseAndContext<TokenAmount>>;
|
|
13
|
+
getTokenAccountBalance(tokenAddress: PublicKey, commitment?: Commitment): Promise<RpcResponseAndContext<TokenAmount>>;
|
|
14
|
+
getTokenAccountsByOwner(ownerAddress: PublicKey, filter: TokenAccountsFilter, commitmentOrConfig?: Commitment | GetTokenAccountsByOwnerConfig): Promise<RpcResponseAndContext<GetProgramAccountsResponse>>;
|
|
15
|
+
getParsedTokenAccountsByOwner(ownerAddress: PublicKey, filter: TokenAccountsFilter, commitment?: Commitment): Promise<RpcResponseAndContext<Array<{
|
|
16
|
+
pubkey: PublicKey;
|
|
17
|
+
account: AccountInfo<ParsedAccountData>;
|
|
18
|
+
}>>>;
|
|
19
|
+
getLargestAccounts(config?: GetLargestAccountsConfig): Promise<RpcResponseAndContext<Array<AccountBalancePair>>>;
|
|
20
|
+
getTokenLargestAccounts(mintAddress: PublicKey, commitment?: Commitment): Promise<RpcResponseAndContext<Array<TokenAccountBalancePair>>>;
|
|
21
|
+
getAccountInfoAndContext(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<RpcResponseAndContext<AccountInfo<Buffer> | null>>;
|
|
22
|
+
getParsedAccountInfo(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<RpcResponseAndContext<AccountInfo<Buffer | ParsedAccountData> | null>>;
|
|
23
|
+
getAccountInfo(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetAccountInfoConfig): Promise<AccountInfo<Buffer> | null>;
|
|
24
|
+
getMultipleParsedAccounts(publicKeys: PublicKey[], rawConfig?: GetMultipleAccountsConfig): Promise<RpcResponseAndContext<(AccountInfo<Buffer | ParsedAccountData> | null)[]>>;
|
|
25
|
+
getMultipleAccountsInfoAndContext(publicKeys: PublicKey[], commitmentOrConfig?: Commitment | GetMultipleAccountsConfig): Promise<RpcResponseAndContext<(AccountInfo<Buffer> | null)[]>>;
|
|
26
|
+
getMultipleAccountsInfo(publicKeys: PublicKey[], commitmentOrConfig?: Commitment | GetMultipleAccountsConfig): Promise<(AccountInfo<Buffer> | null)[]>;
|
|
27
|
+
getStakeActivation(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetStakeActivationConfig, epoch?: number): Promise<StakeActivationData>;
|
|
28
|
+
getProgramAccounts(programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment): Promise<GetProgramAccountsResponse>;
|
|
29
|
+
getProgramAccounts(programId: PublicKey, configOrCommitment: GetProgramAccountsConfig & {
|
|
30
|
+
withContext: true;
|
|
31
|
+
}): Promise<RpcResponseAndContext<GetProgramAccountsResponse>>;
|
|
32
|
+
getParsedProgramAccounts(programId: PublicKey, configOrCommitment?: GetParsedProgramAccountsConfig | Commitment): Promise<Array<{
|
|
33
|
+
pubkey: PublicKey;
|
|
34
|
+
account: AccountInfo<Buffer | ParsedAccountData>;
|
|
35
|
+
}>>;
|
|
36
|
+
confirmTransaction(strategy: TransactionConfirmationStrategy, commitment?: Commitment): Promise<RpcResponseAndContext<SignatureResult>>;
|
|
37
|
+
confirmTransaction(strategy: TransactionSignature, commitment?: Commitment): Promise<RpcResponseAndContext<SignatureResult>>;
|
|
38
|
+
getClusterNodes(): Promise<Array<ContactInfo>>;
|
|
39
|
+
getVoteAccounts(commitment?: Commitment): Promise<VoteAccountStatus>;
|
|
40
|
+
getSlot(commitmentOrConfig?: Commitment | GetSlotConfig): Promise<number>;
|
|
41
|
+
getSlotLeader(commitmentOrConfig?: Commitment | GetSlotLeaderConfig): Promise<string>;
|
|
42
|
+
getSlotLeaders(startSlot: number, limit: number): Promise<Array<PublicKey>>;
|
|
43
|
+
getSignatureStatus(signature: TransactionSignature, config?: SignatureStatusConfig): Promise<RpcResponseAndContext<SignatureStatus | null>>;
|
|
44
|
+
getSignatureStatuses(signatures: Array<TransactionSignature>, config?: SignatureStatusConfig): Promise<RpcResponseAndContext<Array<SignatureStatus | null>>>;
|
|
45
|
+
getTransactionCount(commitmentOrConfig?: Commitment | GetTransactionCountConfig): Promise<number>;
|
|
46
|
+
getTotalSupply(commitment?: Commitment): Promise<number>;
|
|
47
|
+
getInflationGovernor(commitment?: Commitment): Promise<InflationGovernor>;
|
|
48
|
+
getInflationReward(addresses: PublicKey[], epoch?: number, commitmentOrConfig?: Commitment | GetInflationRewardConfig): Promise<(InflationReward | null)[]>;
|
|
49
|
+
getInflationRate(): Promise<InflationRate>;
|
|
50
|
+
getEpochInfo(commitmentOrConfig?: Commitment | GetEpochInfoConfig): Promise<EpochInfo>;
|
|
51
|
+
getEpochSchedule(): Promise<EpochSchedule>;
|
|
52
|
+
getLeaderSchedule(): Promise<LeaderSchedule>;
|
|
53
|
+
getMinimumBalanceForRentExemption(dataLength: number, commitment?: Commitment): Promise<number>;
|
|
54
|
+
getRecentBlockhashAndContext(commitment?: Commitment): Promise<RpcResponseAndContext<{
|
|
55
|
+
blockhash: Blockhash;
|
|
56
|
+
feeCalculator: FeeCalculator;
|
|
57
|
+
}>>;
|
|
58
|
+
getRecentPerformanceSamples(limit?: number): Promise<Array<PerfSample>>;
|
|
59
|
+
getFeeCalculatorForBlockhash(blockhash: Blockhash, commitment?: Commitment): Promise<RpcResponseAndContext<FeeCalculator | null>>;
|
|
60
|
+
getFeeForMessage(message: VersionedMessage, commitment?: Commitment): Promise<RpcResponseAndContext<number | null>>;
|
|
61
|
+
getRecentPrioritizationFees(config?: GetRecentPrioritizationFeesConfig): Promise<RecentPrioritizationFees[]>;
|
|
62
|
+
getRecentBlockhash(commitment?: Commitment): Promise<{
|
|
63
|
+
blockhash: Blockhash;
|
|
64
|
+
feeCalculator: FeeCalculator;
|
|
65
|
+
}>;
|
|
66
|
+
getLatestBlockhash(commitmentOrConfig?: Commitment | GetLatestBlockhashConfig): Promise<BlockhashWithExpiryBlockHeight>;
|
|
67
|
+
getLatestBlockhashAndContext(commitmentOrConfig?: Commitment | GetLatestBlockhashConfig): Promise<RpcResponseAndContext<BlockhashWithExpiryBlockHeight>>;
|
|
68
|
+
isBlockhashValid(blockhash: Blockhash, rawConfig?: IsBlockhashValidConfig): Promise<RpcResponseAndContext<boolean>>;
|
|
69
|
+
getVersion(): Promise<Version>;
|
|
70
|
+
getGenesisHash(): Promise<string>;
|
|
71
|
+
getBlock(slot: number, rawConfig?: GetVersionedBlockConfig): Promise<VersionedBlockResponse | null>;
|
|
72
|
+
getBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
73
|
+
transactionDetails: 'accounts';
|
|
74
|
+
}): Promise<VersionedAccountsModeBlockResponse | null>;
|
|
75
|
+
getBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
76
|
+
transactionDetails: 'none';
|
|
77
|
+
}): Promise<VersionedNoneModeBlockResponse | null>;
|
|
78
|
+
getParsedBlock(slot: number, rawConfig?: GetVersionedBlockConfig): Promise<ParsedAccountsModeBlockResponse>;
|
|
79
|
+
getParsedBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
80
|
+
transactionDetails: 'accounts';
|
|
81
|
+
}): Promise<ParsedAccountsModeBlockResponse>;
|
|
82
|
+
getParsedBlock(slot: number, rawConfig: GetVersionedBlockConfig & {
|
|
83
|
+
transactionDetails: 'none';
|
|
84
|
+
}): Promise<ParsedNoneModeBlockResponse>;
|
|
85
|
+
getBlockHeight(commitmentOrConfig?: Commitment | GetBlockHeightConfig): Promise<number>;
|
|
86
|
+
getBlockProduction(configOrCommitment?: GetBlockProductionConfig | Commitment): Promise<RpcResponseAndContext<BlockProduction>>;
|
|
87
|
+
getTransaction(signature: string, rawConfig?: GetVersionedTransactionConfig): Promise<VersionedTransactionResponse | null>;
|
|
88
|
+
getParsedTransaction(signature: TransactionSignature, commitmentOrConfig?: GetVersionedTransactionConfig | Finality): Promise<ParsedTransactionWithMeta | null>;
|
|
89
|
+
getParsedTransactions(signatures: TransactionSignature[], commitmentOrConfig?: GetVersionedTransactionConfig | Finality): Promise<(ParsedTransactionWithMeta | null)[]>;
|
|
90
|
+
getTransactions(signatures: TransactionSignature[], commitmentOrConfig: GetVersionedTransactionConfig | Finality): Promise<(VersionedTransactionResponse | null)[]>;
|
|
91
|
+
getConfirmedBlock(slot: number, commitment?: Finality): Promise<ConfirmedBlock>;
|
|
92
|
+
getBlocks(startSlot: number, endSlot?: number, commitment?: Finality): Promise<Array<number>>;
|
|
93
|
+
getBlockSignatures(slot: number, commitment?: Finality): Promise<BlockSignatures>;
|
|
94
|
+
getConfirmedBlockSignatures(slot: number, commitment?: Finality): Promise<BlockSignatures>;
|
|
95
|
+
getConfirmedTransaction(signature: TransactionSignature, commitment?: Finality): Promise<ConfirmedTransaction | null>;
|
|
96
|
+
getParsedConfirmedTransaction(signature: TransactionSignature, commitment?: Finality): Promise<ParsedConfirmedTransaction | null>;
|
|
97
|
+
getParsedConfirmedTransactions(signatures: TransactionSignature[], commitment?: Finality): Promise<(ParsedConfirmedTransaction | null)[]>;
|
|
98
|
+
getConfirmedSignaturesForAddress(address: PublicKey, startSlot: number, endSlot: number): Promise<Array<TransactionSignature>>;
|
|
99
|
+
getConfirmedSignaturesForAddress2(address: PublicKey, options?: ConfirmedSignaturesForAddress2Options, commitment?: Finality): Promise<Array<ConfirmedSignatureInfo>>;
|
|
100
|
+
getSignaturesForAddress(address: PublicKey, options?: SignaturesForAddressOptions, commitment?: Finality): Promise<Array<ConfirmedSignatureInfo>>;
|
|
101
|
+
getAddressLookupTable(accountKey: PublicKey, config?: GetAccountInfoConfig): Promise<RpcResponseAndContext<AddressLookupTableAccount | null>>;
|
|
102
|
+
getNonceAndContext(nonceAccount: PublicKey, commitmentOrConfig?: Commitment | GetNonceAndContextConfig): Promise<RpcResponseAndContext<NonceAccount | null>>;
|
|
103
|
+
getNonce(nonceAccount: PublicKey, commitmentOrConfig?: Commitment | GetNonceConfig): Promise<NonceAccount | null>;
|
|
104
|
+
requestAirdrop(to: PublicKey, lamports: number): Promise<TransactionSignature>;
|
|
105
|
+
getStakeMinimumDelegation(config?: GetStakeMinimumDelegationConfig): Promise<RpcResponseAndContext<number>>;
|
|
106
|
+
simulateTransaction(transaction: VersionedTransaction, config?: SimulateTransactionConfig): Promise<RpcResponseAndContext<SimulatedTransactionResponse>>;
|
|
107
|
+
sendTransaction(transaction: VersionedTransaction, options?: SendOptions): Promise<TransactionSignature>;
|
|
108
|
+
sendRawTransaction(rawTransaction: Buffer | Uint8Array | Array<number>, options?: SendOptions): Promise<TransactionSignature>;
|
|
109
|
+
sendEncodedTransaction(encodedTransaction: string, options?: SendOptions): Promise<TransactionSignature>;
|
|
110
|
+
onAccountChange(publicKey: PublicKey, callback: AccountChangeCallback, config?: AccountSubscriptionConfig): ClientSubscriptionId;
|
|
111
|
+
onProgramAccountChange(programId: PublicKey, callback: ProgramAccountChangeCallback, config?: ProgramAccountSubscriptionConfig): ClientSubscriptionId;
|
|
112
|
+
onLogs(filter: LogsFilter, callback: LogsCallback, commitment?: Commitment): ClientSubscriptionId;
|
|
113
|
+
onSlotChange(callback: SlotChangeCallback): ClientSubscriptionId;
|
|
114
|
+
onSlotUpdate(callback: SlotUpdateCallback): ClientSubscriptionId;
|
|
115
|
+
onSignature(signature: TransactionSignature, callback: SignatureResultCallback, commitment?: Commitment): ClientSubscriptionId;
|
|
116
|
+
onSignatureWithOptions(signature: TransactionSignature, callback: SignatureSubscriptionCallback, options?: SignatureSubscriptionOptions): ClientSubscriptionId;
|
|
117
|
+
onRootChange(callback: RootChangeCallback): ClientSubscriptionId;
|
|
118
|
+
removeAccountChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
119
|
+
removeProgramAccountChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
120
|
+
removeOnLogsListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
121
|
+
removeSlotChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
122
|
+
removeSlotUpdateListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
123
|
+
removeSignatureListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
124
|
+
removeRootChangeListener(clientSubscriptionId: ClientSubscriptionId): Promise<void>;
|
|
125
|
+
}
|