ton-provider-system 0.6.0 → 0.7.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/dist/index.cjs CHANGED
@@ -329,30 +329,28 @@ var DEFAULT_PROVIDERS = {
329
329
  },
330
330
  rps: 1,
331
331
  // Without API key
332
- // Preferred on testnet: Toncenter serves the full v2 surface incl.
333
- // getTransactions (curl-proven 200). Orbs only proxies liteserver
334
- // get-methods/state and 403s on getTransactions, so it must NOT be the
335
- // primary testnet provider (it stays a fallback for get-method reads).
336
- // Selection is score-based and priority is the lever (lower = better),
337
- // so this gives Toncenter the testnet edge over Orbs (priority 90).
338
- priority: 10,
332
+ // Primary testnet provider: Toncenter serves the full v2 surface incl.
333
+ // getTransactions (curl-proven 200). Selection is score-based and priority
334
+ // is the lever (lower = better), so priority 1 keeps it ahead of Tatum.
335
+ priority: 1,
339
336
  enabled: true,
340
337
  description: "Official TON Center public endpoint"
341
338
  },
342
- orbs_testnet: {
343
- name: "Orbs TON Access Testnet",
344
- type: "orbs",
339
+ tatum_testnet: {
340
+ name: "Tatum Testnet",
341
+ type: "tatum",
345
342
  network: "testnet",
346
343
  endpoints: {
347
- v2: "https://ton-testnet.orbs.network/api/v2"
344
+ v2: "https://ton-testnet.gateway.tatum.io"
348
345
  },
349
- rps: 10,
350
- // Demoted below toncenter_testnet (priority 10): Orbs is the decentralised
351
- // fallback for non-transaction (get-method/state) testnet reads only.
352
- priority: 90,
346
+ apiKeyEnvVar: "TATUM_API_KEY_TESTNET",
347
+ rps: 3,
348
+ // Secondary testnet provider (priority 2): also serves the full workload
349
+ // (getTransactions/sendBoc 200), so it backs up Toncenter on failover.
350
+ priority: 2,
353
351
  enabled: true,
354
- isDynamic: true,
355
- description: "Decentralized gateway - no API key needed"
352
+ browserCompatible: false,
353
+ description: "Tatum testnet gateway - requires TATUM_API_KEY_TESTNET"
356
354
  },
357
355
  toncenter_mainnet: {
358
356
  name: "TON Center Mainnet",
@@ -386,12 +384,12 @@ function createDefaultConfig() {
386
384
  version: "1.0",
387
385
  providers: { ...DEFAULT_PROVIDERS },
388
386
  defaults: {
389
- // Testnet: Toncenter first (transactions-capable), Orbs as fallback.
390
- // This default order only governs the no-healthy-providers fallback
391
- // path; the primary, score-based selection is driven by priority
392
- // (see toncenter_testnet/orbs_testnet above). Mainnet order is left
387
+ // Testnet: only the transaction-capable providers Toncenter first,
388
+ // Tatum as failover. This default order governs the no-healthy-providers
389
+ // fallback path; the primary, score-based selection is driven by priority
390
+ // (see toncenter_testnet/tatum_testnet above). Mainnet order is left
393
391
  // unchanged (Orbs stays primary there — no regression).
394
- testnet: ["toncenter_testnet", "orbs_testnet"],
392
+ testnet: ["toncenter_testnet", "tatum_testnet"],
395
393
  mainnet: ["orbs_mainnet", "toncenter_mainnet"]
396
394
  }
397
395
  };