@solana/web3.js 2.0.0-experimental.7b06723 → 2.0.0-experimental.7d44763

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.
@@ -1,10 +1,16 @@
1
+ export * from '@solana/addresses';
1
2
  export * from '@solana/instructions';
2
3
  export * from '@solana/keys';
3
- import { createSolanaRpcApi } from '@solana/rpc-core';
4
- import { createJsonRpc, createHttpTransport } from '@solana/rpc-transport';
4
+ import { getSignatureFromTransaction } from '@solana/transactions';
5
+ export * from '@solana/transactions';
6
+ import { pipe } from '@solana/functional';
7
+ import { createSolanaRpcApi, createSolanaRpcSubscriptionsApi, createSolanaRpcSubscriptionsApi_UNSTABLE, commitmentComparator } from '@solana/rpc-core';
8
+ import { createJsonRpc, createJsonSubscriptionRpc, createHttpTransport, createWebSocketTransport } from '@solana/rpc-transport';
5
9
  import fastStableStringify from 'fast-stable-stringify';
10
+ import { base64, base58 } from '@metaplex-foundation/umi-serializers';
6
11
 
7
- // src/index.ts
12
+ // ../build-scripts/env-shim.ts
13
+ var __DEV__ = /* @__PURE__ */ (() => process["env"].NODE_ENV === "development")();
8
14
 
9
15
  // src/rpc-integer-overflow-error.ts
10
16
  var SolanaJsonRpcIntegerOverflowError = class extends Error {
@@ -42,6 +48,193 @@ var DEFAULT_RPC_CONFIG = {
42
48
  }
43
49
  };
44
50
 
51
+ // src/cached-abortable-iterable.ts
52
+ function registerIterableCleanup(iterable, cleanupFn) {
53
+ (async () => {
54
+ try {
55
+ for await (const _ of iterable)
56
+ ;
57
+ } catch {
58
+ } finally {
59
+ cleanupFn();
60
+ }
61
+ })();
62
+ }
63
+ function getCachedAbortableIterableFactory({
64
+ getAbortSignalFromInputArgs,
65
+ getCacheEntryMissingError,
66
+ getCacheKeyFromInputArgs,
67
+ onCacheHit,
68
+ onCreateIterable
69
+ }) {
70
+ const cache = /* @__PURE__ */ new Map();
71
+ function getCacheEntryOrThrow(cacheKey) {
72
+ const currentCacheEntry = cache.get(cacheKey);
73
+ if (!currentCacheEntry) {
74
+ throw getCacheEntryMissingError(cacheKey);
75
+ }
76
+ return currentCacheEntry;
77
+ }
78
+ return async (...args) => {
79
+ const cacheKey = getCacheKeyFromInputArgs(...args);
80
+ const signal = getAbortSignalFromInputArgs(...args);
81
+ if (cacheKey === void 0) {
82
+ return await onCreateIterable(signal, ...args);
83
+ }
84
+ const cleanup = () => {
85
+ cache.delete(cacheKey);
86
+ signal.removeEventListener("abort", handleAbort);
87
+ };
88
+ const handleAbort = () => {
89
+ const cacheEntry = getCacheEntryOrThrow(cacheKey);
90
+ if (cacheEntry.purgeScheduled !== true) {
91
+ cacheEntry.purgeScheduled = true;
92
+ globalThis.queueMicrotask(() => {
93
+ cacheEntry.purgeScheduled = false;
94
+ if (cacheEntry.referenceCount === 0) {
95
+ cacheEntry.abortController.abort();
96
+ cleanup();
97
+ }
98
+ });
99
+ }
100
+ cacheEntry.referenceCount--;
101
+ };
102
+ signal.addEventListener("abort", handleAbort);
103
+ try {
104
+ const cacheEntry = cache.get(cacheKey);
105
+ if (!cacheEntry) {
106
+ const singletonAbortController = new AbortController();
107
+ const newIterablePromise = onCreateIterable(singletonAbortController.signal, ...args);
108
+ const newCacheEntry = {
109
+ abortController: singletonAbortController,
110
+ iterable: newIterablePromise,
111
+ purgeScheduled: false,
112
+ referenceCount: 1
113
+ };
114
+ cache.set(cacheKey, newCacheEntry);
115
+ const newIterable = await newIterablePromise;
116
+ registerIterableCleanup(newIterable, cleanup);
117
+ newCacheEntry.iterable = newIterable;
118
+ return newIterable;
119
+ } else {
120
+ cacheEntry.referenceCount++;
121
+ const iterableOrIterablePromise = cacheEntry.iterable;
122
+ const cachedIterable = "then" in iterableOrIterablePromise ? await iterableOrIterablePromise : iterableOrIterablePromise;
123
+ await onCacheHit(cachedIterable, ...args);
124
+ return cachedIterable;
125
+ }
126
+ } catch (e) {
127
+ cleanup();
128
+ throw e;
129
+ }
130
+ };
131
+ }
132
+
133
+ // src/rpc-subscription-coalescer.ts
134
+ var EXPLICIT_ABORT_TOKEN = Symbol(
135
+ __DEV__ ? "This symbol is thrown from a subscription's iterator when the subscription is explicitly aborted by the user" : void 0
136
+ );
137
+ function registerIterableCleanup2(iterable, cleanupFn) {
138
+ (async () => {
139
+ try {
140
+ for await (const _ of iterable)
141
+ ;
142
+ } catch {
143
+ } finally {
144
+ cleanupFn();
145
+ }
146
+ })();
147
+ }
148
+ function getRpcSubscriptionsWithSubscriptionCoalescing({
149
+ getDeduplicationKey,
150
+ rpcSubscriptions
151
+ }) {
152
+ const cache = /* @__PURE__ */ new Map();
153
+ return new Proxy(rpcSubscriptions, {
154
+ defineProperty() {
155
+ return false;
156
+ },
157
+ deleteProperty() {
158
+ return false;
159
+ },
160
+ get(target, p, receiver) {
161
+ const subscriptionMethod = Reflect.get(target, p, receiver);
162
+ if (typeof subscriptionMethod !== "function") {
163
+ return subscriptionMethod;
164
+ }
165
+ return function(...rawParams) {
166
+ const deduplicationKey = getDeduplicationKey(p, rawParams);
167
+ if (deduplicationKey === void 0) {
168
+ return subscriptionMethod(...rawParams);
169
+ }
170
+ if (cache.has(deduplicationKey)) {
171
+ return cache.get(deduplicationKey);
172
+ }
173
+ const iterableFactory = getCachedAbortableIterableFactory({
174
+ getAbortSignalFromInputArgs: ({ abortSignal }) => abortSignal,
175
+ getCacheEntryMissingError(deduplicationKey2) {
176
+ return new Error(
177
+ `Found no cache entry for subscription with deduplication key \`${deduplicationKey2?.toString()}\``
178
+ );
179
+ },
180
+ getCacheKeyFromInputArgs: () => deduplicationKey,
181
+ async onCacheHit(_iterable, _config) {
182
+ },
183
+ async onCreateIterable(abortSignal, config) {
184
+ const pendingSubscription2 = subscriptionMethod(
185
+ ...rawParams
186
+ );
187
+ const iterable = await pendingSubscription2.subscribe({
188
+ ...config,
189
+ abortSignal
190
+ });
191
+ registerIterableCleanup2(iterable, () => {
192
+ cache.delete(deduplicationKey);
193
+ });
194
+ return iterable;
195
+ }
196
+ });
197
+ const pendingSubscription = {
198
+ async subscribe(...args) {
199
+ const iterable = await iterableFactory(...args);
200
+ const { abortSignal } = args[0];
201
+ let abortPromise;
202
+ return {
203
+ ...iterable,
204
+ async *[Symbol.asyncIterator]() {
205
+ abortPromise || (abortPromise = abortSignal.aborted ? Promise.reject(EXPLICIT_ABORT_TOKEN) : new Promise((_, reject) => {
206
+ abortSignal.addEventListener("abort", () => {
207
+ reject(EXPLICIT_ABORT_TOKEN);
208
+ });
209
+ }));
210
+ try {
211
+ const iterator = iterable[Symbol.asyncIterator]();
212
+ while (true) {
213
+ const iteratorResult = await Promise.race([iterator.next(), abortPromise]);
214
+ if (iteratorResult.done) {
215
+ return;
216
+ } else {
217
+ yield iteratorResult.value;
218
+ }
219
+ }
220
+ } catch (e) {
221
+ if (e === EXPLICIT_ABORT_TOKEN) {
222
+ return;
223
+ }
224
+ cache.delete(deduplicationKey);
225
+ throw e;
226
+ }
227
+ }
228
+ };
229
+ }
230
+ };
231
+ cache.set(deduplicationKey, pendingSubscription);
232
+ return pendingSubscription;
233
+ };
234
+ }
235
+ });
236
+ }
237
+
45
238
  // src/rpc.ts
46
239
  function createSolanaRpc(config) {
47
240
  return createJsonRpc({
@@ -49,6 +242,24 @@ function createSolanaRpc(config) {
49
242
  api: createSolanaRpcApi(DEFAULT_RPC_CONFIG)
50
243
  });
51
244
  }
245
+ function createSolanaRpcSubscriptions(config) {
246
+ return pipe(
247
+ createJsonSubscriptionRpc({
248
+ ...config,
249
+ api: createSolanaRpcSubscriptionsApi(DEFAULT_RPC_CONFIG)
250
+ }),
251
+ (rpcSubscriptions) => getRpcSubscriptionsWithSubscriptionCoalescing({
252
+ getDeduplicationKey: (...args) => fastStableStringify(args),
253
+ rpcSubscriptions
254
+ })
255
+ );
256
+ }
257
+ function createSolanaRpcSubscriptions_UNSTABLE(config) {
258
+ return createJsonSubscriptionRpc({
259
+ ...config,
260
+ api: createSolanaRpcSubscriptionsApi_UNSTABLE(DEFAULT_RPC_CONFIG)
261
+ });
262
+ }
52
263
 
53
264
  // src/rpc-request-coalescer.ts
54
265
  function getRpcTransportWithRequestCoalescing(transport, getDeduplicationKey) {
@@ -101,13 +312,14 @@ function getRpcTransportWithRequestCoalescing(transport, getDeduplicationKey) {
101
312
  }
102
313
  };
103
314
  }
104
- function getSolanaRpcPayloadDeduplicationKey(payload) {
315
+ function isJsonRpcPayload(payload) {
105
316
  if (payload == null || typeof payload !== "object" || Array.isArray(payload)) {
106
- return;
107
- }
108
- if ("jsonrpc" in payload && payload.jsonrpc === "2.0" && "method" in payload && "params" in payload) {
109
- return fastStableStringify([payload.method, payload.params]);
317
+ return false;
110
318
  }
319
+ return "jsonrpc" in payload && payload.jsonrpc === "2.0" && "method" in payload && typeof payload.method === "string" && "params" in payload;
320
+ }
321
+ function getSolanaRpcPayloadDeduplicationKey(payload) {
322
+ return isJsonRpcPayload(payload) ? fastStableStringify([payload.method, payload.params]) : void 0;
111
323
  }
112
324
 
113
325
  // src/rpc-transport.ts
@@ -119,7 +331,7 @@ function normalizeHeaders(headers) {
119
331
  return out;
120
332
  }
121
333
  function createDefaultRpcTransport(config) {
122
- return getRpcTransportWithRequestCoalescing(
334
+ return pipe(
123
335
  createHttpTransport({
124
336
  ...config,
125
337
  headers: {
@@ -130,10 +342,315 @@ function createDefaultRpcTransport(config) {
130
342
  }
131
343
  }
132
344
  }),
133
- getSolanaRpcPayloadDeduplicationKey
345
+ (transport) => getRpcTransportWithRequestCoalescing(transport, getSolanaRpcPayloadDeduplicationKey)
346
+ );
347
+ }
348
+
349
+ // src/rpc-websocket-autopinger.ts
350
+ var PING_PAYLOAD = {
351
+ jsonrpc: "2.0",
352
+ method: "ping"
353
+ };
354
+ function getWebSocketTransportWithAutoping({ intervalMs, transport }) {
355
+ const pingableConnections = /* @__PURE__ */ new Map();
356
+ return async (...args) => {
357
+ const connection = await transport(...args);
358
+ let intervalId;
359
+ function sendPing() {
360
+ connection.send_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(PING_PAYLOAD);
361
+ }
362
+ function restartPingTimer() {
363
+ clearInterval(intervalId);
364
+ intervalId = setInterval(sendPing, intervalMs);
365
+ }
366
+ if (pingableConnections.has(connection) === false) {
367
+ pingableConnections.set(connection, {
368
+ [Symbol.asyncIterator]: connection[Symbol.asyncIterator].bind(connection),
369
+ send_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: (...args2) => {
370
+ restartPingTimer();
371
+ return connection.send_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(...args2);
372
+ }
373
+ });
374
+ (async () => {
375
+ try {
376
+ for await (const _ of connection) {
377
+ restartPingTimer();
378
+ }
379
+ } catch {
380
+ } finally {
381
+ pingableConnections.delete(connection);
382
+ clearInterval(intervalId);
383
+ if (handleOffline) {
384
+ globalThis.window.removeEventListener("offline", handleOffline);
385
+ }
386
+ if (handleOnline) {
387
+ globalThis.window.removeEventListener("online", handleOnline);
388
+ }
389
+ }
390
+ })();
391
+ {
392
+ restartPingTimer();
393
+ }
394
+ let handleOffline;
395
+ let handleOnline;
396
+ }
397
+ return pingableConnections.get(connection);
398
+ };
399
+ }
400
+
401
+ // src/rpc-websocket-connection-sharding.ts
402
+ var NULL_SHARD_CACHE_KEY = Symbol(
403
+ __DEV__ ? "Cache key to use when there is no connection sharding strategy" : void 0
404
+ );
405
+ function getWebSocketTransportWithConnectionSharding({ getShard, transport }) {
406
+ return getCachedAbortableIterableFactory({
407
+ getAbortSignalFromInputArgs: ({ signal }) => signal,
408
+ getCacheEntryMissingError(shardKey) {
409
+ return new Error(`Found no cache entry for connection with shard key \`${shardKey?.toString()}\``);
410
+ },
411
+ getCacheKeyFromInputArgs: ({ payload }) => getShard ? getShard(payload) : NULL_SHARD_CACHE_KEY,
412
+ onCacheHit: (connection, { payload }) => connection.send_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(payload),
413
+ onCreateIterable: (abortSignal, config) => transport({
414
+ ...config,
415
+ signal: abortSignal
416
+ })
417
+ });
418
+ }
419
+
420
+ // src/rpc-websocket-transport.ts
421
+ function createDefaultRpcSubscriptionsTransport(config) {
422
+ const { getShard, intervalMs, ...rest } = config;
423
+ return pipe(
424
+ createWebSocketTransport({
425
+ ...rest,
426
+ sendBufferHighWatermark: config.sendBufferHighWatermark ?? // Let 128KB of data into the WebSocket buffer before buffering it in the app.
427
+ 131072
428
+ }),
429
+ (transport) => getWebSocketTransportWithAutoping({
430
+ intervalMs: intervalMs ?? 5e3,
431
+ transport
432
+ }),
433
+ (transport) => getWebSocketTransportWithConnectionSharding({
434
+ getShard,
435
+ transport
436
+ })
437
+ );
438
+ }
439
+
440
+ // src/transaction-confirmation-strategy-blockheight.ts
441
+ function createBlockHeightExceedencePromiseFactory(rpcSubscriptions) {
442
+ return async function getBlockHeightExceedencePromise({ abortSignal: callerAbortSignal, lastValidBlockHeight }) {
443
+ const abortController = new AbortController();
444
+ function handleAbort() {
445
+ abortController.abort();
446
+ }
447
+ callerAbortSignal.addEventListener("abort", handleAbort, { signal: abortController.signal });
448
+ const slotNotifications = await rpcSubscriptions.slotNotifications().subscribe({ abortSignal: abortController.signal });
449
+ try {
450
+ for await (const slotNotification of slotNotifications) {
451
+ if (slotNotification.slot > lastValidBlockHeight) {
452
+ throw new Error(
453
+ "The network has progressed past the last block for which this transaction could have committed."
454
+ );
455
+ }
456
+ }
457
+ } finally {
458
+ abortController.abort();
459
+ }
460
+ };
461
+ }
462
+ var NONCE_VALUE_OFFSET = 4 + // version(u32)
463
+ 4 + // state(u32)
464
+ 32;
465
+ function createNonceInvalidationPromiseFactory(rpc, rpcSubscriptions) {
466
+ return async function getNonceInvalidationPromise({
467
+ abortSignal: callerAbortSignal,
468
+ commitment,
469
+ currentNonceValue,
470
+ nonceAccountAddress
471
+ }) {
472
+ const abortController = new AbortController();
473
+ function handleAbort() {
474
+ abortController.abort();
475
+ }
476
+ callerAbortSignal.addEventListener("abort", handleAbort, { signal: abortController.signal });
477
+ const accountNotifications = await rpcSubscriptions.accountNotifications(nonceAccountAddress, { commitment, encoding: "base64" }).subscribe({ abortSignal: abortController.signal });
478
+ function getNonceFromAccountData([base64EncodedBytes]) {
479
+ const data = base64.serialize(base64EncodedBytes);
480
+ const nonceValueBytes = data.slice(NONCE_VALUE_OFFSET, NONCE_VALUE_OFFSET + 32);
481
+ return base58.deserialize(nonceValueBytes)[0];
482
+ }
483
+ const nonceAccountDidAdvancePromise = (async () => {
484
+ for await (const accountNotification of accountNotifications) {
485
+ const nonceValue = getNonceFromAccountData(accountNotification.value.data);
486
+ if (nonceValue !== currentNonceValue) {
487
+ throw new Error(
488
+ `The nonce \`${currentNonceValue}\` is no longer valid. It has advanced to \`${nonceValue}\`.`
489
+ );
490
+ }
491
+ }
492
+ })();
493
+ const nonceIsAlreadyInvalidPromise = (async () => {
494
+ const { value: nonceAccount } = await rpc.getAccountInfo(nonceAccountAddress, {
495
+ commitment,
496
+ dataSlice: { length: 32, offset: NONCE_VALUE_OFFSET },
497
+ encoding: "base58"
498
+ }).send({ abortSignal: abortController.signal });
499
+ if (!nonceAccount) {
500
+ throw new Error(`No nonce account could be found at address \`${nonceAccountAddress}\`.`);
501
+ }
502
+ const nonceValue = (
503
+ // This works because we asked for the exact slice of data representing the nonce
504
+ // value, and furthermore asked for it in `base58` encoding.
505
+ nonceAccount.data[0]
506
+ );
507
+ if (nonceValue !== currentNonceValue) {
508
+ throw new Error(
509
+ `The nonce \`${currentNonceValue}\` is no longer valid. It has advanced to \`${nonceValue}\`.`
510
+ );
511
+ } else {
512
+ await new Promise(() => {
513
+ });
514
+ }
515
+ })();
516
+ try {
517
+ return await Promise.race([nonceAccountDidAdvancePromise, nonceIsAlreadyInvalidPromise]);
518
+ } finally {
519
+ abortController.abort();
520
+ }
521
+ };
522
+ }
523
+ function createRecentSignatureConfirmationPromiseFactory(rpc, rpcSubscriptions) {
524
+ return async function getRecentSignatureConfirmationPromise({
525
+ abortSignal: callerAbortSignal,
526
+ commitment,
527
+ signature
528
+ }) {
529
+ const abortController = new AbortController();
530
+ function handleAbort() {
531
+ abortController.abort();
532
+ }
533
+ callerAbortSignal.addEventListener("abort", handleAbort, { signal: abortController.signal });
534
+ const signatureStatusNotifications = await rpcSubscriptions.signatureNotifications(signature, { commitment }).subscribe({ abortSignal: abortController.signal });
535
+ const signatureDidCommitPromise = (async () => {
536
+ for await (const signatureStatusNotification of signatureStatusNotifications) {
537
+ if (signatureStatusNotification.value.err) {
538
+ throw new Error(`The transaction with signature \`${signature}\` failed.`, {
539
+ cause: signatureStatusNotification.value.err
540
+ });
541
+ } else {
542
+ return;
543
+ }
544
+ }
545
+ })();
546
+ const signatureStatusLookupPromise = (async () => {
547
+ const { value: signatureStatusResults } = await rpc.getSignatureStatuses([signature]).send({ abortSignal: abortController.signal });
548
+ const signatureStatus = signatureStatusResults[0];
549
+ if (signatureStatus && signatureStatus.confirmationStatus && commitmentComparator(signatureStatus.confirmationStatus, commitment) >= 0) {
550
+ return;
551
+ } else {
552
+ await new Promise(() => {
553
+ });
554
+ }
555
+ })();
556
+ try {
557
+ return await Promise.race([signatureDidCommitPromise, signatureStatusLookupPromise]);
558
+ } finally {
559
+ abortController.abort();
560
+ }
561
+ };
562
+ }
563
+
564
+ // src/transaction-confirmation.ts
565
+ async function raceStrategies(config, getSpecificStrategiesForRace) {
566
+ const { abortSignal: callerAbortSignal, commitment, getRecentSignatureConfirmationPromise, transaction } = config;
567
+ callerAbortSignal.throwIfAborted();
568
+ const signature = getSignatureFromTransaction(transaction);
569
+ const abortController = new AbortController();
570
+ function handleAbort() {
571
+ abortController.abort();
572
+ }
573
+ callerAbortSignal.addEventListener("abort", handleAbort, { signal: abortController.signal });
574
+ try {
575
+ const specificStrategies = getSpecificStrategiesForRace({
576
+ ...config,
577
+ abortSignal: abortController.signal
578
+ });
579
+ return await Promise.race([
580
+ getRecentSignatureConfirmationPromise({
581
+ abortSignal: abortController.signal,
582
+ commitment,
583
+ signature
584
+ }),
585
+ ...specificStrategies
586
+ ]);
587
+ } finally {
588
+ abortController.abort();
589
+ }
590
+ }
591
+ function createDefaultDurableNonceTransactionConfirmer({
592
+ rpc,
593
+ rpcSubscriptions
594
+ }) {
595
+ const getNonceInvalidationPromise = createNonceInvalidationPromiseFactory(rpc, rpcSubscriptions);
596
+ const getRecentSignatureConfirmationPromise = createRecentSignatureConfirmationPromiseFactory(
597
+ rpc,
598
+ rpcSubscriptions
599
+ );
600
+ return async function confirmDurableNonceTransaction(config) {
601
+ await waitForDurableNonceTransactionConfirmation({
602
+ ...config,
603
+ getNonceInvalidationPromise,
604
+ getRecentSignatureConfirmationPromise
605
+ });
606
+ };
607
+ }
608
+ function createDefaultRecentTransactionConfirmer({
609
+ rpc,
610
+ rpcSubscriptions
611
+ }) {
612
+ const getBlockHeightExceedencePromise = createBlockHeightExceedencePromiseFactory(rpcSubscriptions);
613
+ const getRecentSignatureConfirmationPromise = createRecentSignatureConfirmationPromiseFactory(
614
+ rpc,
615
+ rpcSubscriptions
616
+ );
617
+ return async function confirmRecentTransaction(config) {
618
+ await waitForRecentTransactionConfirmation({
619
+ ...config,
620
+ getBlockHeightExceedencePromise,
621
+ getRecentSignatureConfirmationPromise
622
+ });
623
+ };
624
+ }
625
+ async function waitForDurableNonceTransactionConfirmation(config) {
626
+ await raceStrategies(
627
+ config,
628
+ function getSpecificStrategiesForRace({ abortSignal, commitment, getNonceInvalidationPromise, transaction }) {
629
+ return [
630
+ getNonceInvalidationPromise({
631
+ abortSignal,
632
+ commitment,
633
+ currentNonceValue: transaction.lifetimeConstraint.nonce,
634
+ nonceAccountAddress: transaction.instructions[0].accounts[0].address
635
+ })
636
+ ];
637
+ }
638
+ );
639
+ }
640
+ async function waitForRecentTransactionConfirmation(config) {
641
+ await raceStrategies(
642
+ config,
643
+ function getSpecificStrategiesForRace({ abortSignal, getBlockHeightExceedencePromise, transaction }) {
644
+ return [
645
+ getBlockHeightExceedencePromise({
646
+ abortSignal,
647
+ lastValidBlockHeight: transaction.lifetimeConstraint.lastValidBlockHeight
648
+ })
649
+ ];
650
+ }
134
651
  );
135
652
  }
136
653
 
137
- export { createDefaultRpcTransport, createSolanaRpc };
654
+ export { createBlockHeightExceedencePromiseFactory, createDefaultDurableNonceTransactionConfirmer, createDefaultRecentTransactionConfirmer, createDefaultRpcSubscriptionsTransport, createDefaultRpcTransport, createNonceInvalidationPromiseFactory, createRecentSignatureConfirmationPromiseFactory, createSolanaRpc, createSolanaRpcSubscriptions, createSolanaRpcSubscriptions_UNSTABLE, waitForDurableNonceTransactionConfirmation, waitForRecentTransactionConfirmation };
138
655
  //# sourceMappingURL=out.js.map
139
656
  //# sourceMappingURL=index.native.js.map