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 +20 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +20 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/rpc.json +3 -49
package/dist/index.cjs
CHANGED
|
@@ -329,30 +329,28 @@ var DEFAULT_PROVIDERS = {
|
|
|
329
329
|
},
|
|
330
330
|
rps: 1,
|
|
331
331
|
// Without API key
|
|
332
|
-
//
|
|
333
|
-
// getTransactions (curl-proven 200).
|
|
334
|
-
//
|
|
335
|
-
|
|
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
|
-
|
|
343
|
-
name: "
|
|
344
|
-
type: "
|
|
339
|
+
tatum_testnet: {
|
|
340
|
+
name: "Tatum Testnet",
|
|
341
|
+
type: "tatum",
|
|
345
342
|
network: "testnet",
|
|
346
343
|
endpoints: {
|
|
347
|
-
v2: "https://ton-testnet.
|
|
344
|
+
v2: "https://ton-testnet.gateway.tatum.io"
|
|
348
345
|
},
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
//
|
|
352
|
-
|
|
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
|
-
|
|
355
|
-
description: "
|
|
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:
|
|
390
|
-
// This default order
|
|
391
|
-
// path; the primary, score-based selection is driven by priority
|
|
392
|
-
// (see toncenter_testnet/
|
|
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", "
|
|
392
|
+
testnet: ["toncenter_testnet", "tatum_testnet"],
|
|
395
393
|
mainnet: ["orbs_mainnet", "toncenter_mainnet"]
|
|
396
394
|
}
|
|
397
395
|
};
|