ton-provider-system 0.1.0 → 0.1.1
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 +239 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +102 -84
- package/dist/index.d.ts +102 -84
- package/dist/index.js +238 -44
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/rpc.json +7 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ton-provider-system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A bullet-proof TON RPC provider management system with automatic failover, health checking, and rate limiting",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dev": "tsup --watch",
|
|
26
26
|
"lint": "eslint src --ext .ts",
|
|
27
27
|
"lint:fix": "eslint src --ext .ts --fix",
|
|
28
|
-
"test": "
|
|
29
|
-
"test:quick": "
|
|
30
|
-
"test:verbose": "
|
|
28
|
+
"test": "tsx src/test.ts",
|
|
29
|
+
"test:quick": "tsx src/test.ts --quick",
|
|
30
|
+
"test:verbose": "tsx src/test.ts --verbose",
|
|
31
31
|
"prepublishOnly": "pnpm build"
|
|
32
32
|
},
|
|
33
33
|
"keywords": [
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"eslint": "^9.39.2",
|
|
63
63
|
"ts-node": "^10.9.2",
|
|
64
64
|
"tsup": "^8.5.1",
|
|
65
|
+
"tsx": "^4.21.0",
|
|
65
66
|
"typescript": "^5.9.3",
|
|
66
67
|
"typescript-eslint": "^8.53.1"
|
|
67
68
|
}
|
package/rpc.json
CHANGED
|
@@ -16,20 +16,6 @@
|
|
|
16
16
|
"enabled": true,
|
|
17
17
|
"description": "Chainstack testnet API - 25 RPS free plan"
|
|
18
18
|
},
|
|
19
|
-
"chainstack_mainnet": {
|
|
20
|
-
"name": "Chainstack Mainnet",
|
|
21
|
-
"type": "chainstack",
|
|
22
|
-
"network": "mainnet",
|
|
23
|
-
"endpoints": {
|
|
24
|
-
"v2": "https://ton-mainnet.core.chainstack.com/{key}/api/v2",
|
|
25
|
-
"v3": "https://ton-mainnet.core.chainstack.com/{key}/api/v3"
|
|
26
|
-
},
|
|
27
|
-
"keyEnvVar": "CHAINSTACK_KEY_MAINNET",
|
|
28
|
-
"rps": 25,
|
|
29
|
-
"priority": 1,
|
|
30
|
-
"enabled": true,
|
|
31
|
-
"description": "Chainstack mainnet API - 25 RPS free plan"
|
|
32
|
-
},
|
|
33
19
|
"toncenter_testnet": {
|
|
34
20
|
"name": "TON Center Testnet",
|
|
35
21
|
"type": "toncenter",
|
|
@@ -67,7 +53,7 @@
|
|
|
67
53
|
"rps": 15,
|
|
68
54
|
"priority": 2,
|
|
69
55
|
"enabled": true,
|
|
70
|
-
"description": "QuickNode mainnet - 15 RPS free plan"
|
|
56
|
+
"description": "QuickNode mainnet - 15 RPS free plan. Endpoint automatically appends /jsonRPC for JSON-RPC requests."
|
|
71
57
|
},
|
|
72
58
|
"getblock_mainnet": {
|
|
73
59
|
"name": "GetBlock Mainnet",
|
|
@@ -80,7 +66,7 @@
|
|
|
80
66
|
"rps": 20,
|
|
81
67
|
"priority": 3,
|
|
82
68
|
"enabled": true,
|
|
83
|
-
"description": "GetBlock mainnet API - 20 RPS"
|
|
69
|
+
"description": "GetBlock mainnet API - 20 RPS. Endpoint automatically appends /jsonRPC for JSON-RPC requests."
|
|
84
70
|
},
|
|
85
71
|
"onfinality_testnet": {
|
|
86
72
|
"name": "OnFinality Testnet",
|
|
@@ -94,33 +80,33 @@
|
|
|
94
80
|
"rps": 4,
|
|
95
81
|
"priority": 5,
|
|
96
82
|
"enabled": true,
|
|
97
|
-
"description": "OnFinality testnet - 4 RPS free tier"
|
|
83
|
+
"description": "OnFinality testnet - 4 RPS free tier. Uses /rpc endpoint with API key in header (apikey header). If no API key is set, falls back to /public endpoint (rate-limited). Query params in URL are automatically removed."
|
|
98
84
|
},
|
|
99
85
|
"tatum_testnet": {
|
|
100
86
|
"name": "Tatum Testnet",
|
|
101
87
|
"type": "tatum",
|
|
102
88
|
"network": "testnet",
|
|
103
89
|
"endpoints": {
|
|
104
|
-
"v2": "https://
|
|
90
|
+
"v2": "https://ton-testnet.gateway.tatum.io"
|
|
105
91
|
},
|
|
106
92
|
"apiKeyEnvVar": "TATUM_API_KEY_TESTNET",
|
|
107
93
|
"rps": 3,
|
|
108
94
|
"priority": 8,
|
|
109
95
|
"enabled": true,
|
|
110
|
-
"description": "Tatum testnet
|
|
96
|
+
"description": "Tatum testnet gateway - 3 RPS free plan. Endpoint automatically appends /jsonRPC. Requires x-api-key header with TATUM_API_KEY_TESTNET."
|
|
111
97
|
},
|
|
112
98
|
"tatum_mainnet": {
|
|
113
99
|
"name": "Tatum Mainnet",
|
|
114
100
|
"type": "tatum",
|
|
115
101
|
"network": "mainnet",
|
|
116
102
|
"endpoints": {
|
|
117
|
-
"v2": "https://
|
|
103
|
+
"v2": "https://ton-mainnet.gateway.tatum.io"
|
|
118
104
|
},
|
|
119
105
|
"apiKeyEnvVar": "TATUM_API_KEY_MAINNET",
|
|
120
106
|
"rps": 3,
|
|
121
107
|
"priority": 8,
|
|
122
108
|
"enabled": true,
|
|
123
|
-
"description": "Tatum mainnet
|
|
109
|
+
"description": "Tatum mainnet gateway - 3 RPS free plan. Endpoint automatically appends /jsonRPC. Requires x-api-key header with TATUM_API_KEY_MAINNET."
|
|
124
110
|
},
|
|
125
111
|
"orbs_testnet": {
|
|
126
112
|
"name": "Orbs TON Access Testnet",
|
|
@@ -158,7 +144,6 @@
|
|
|
158
144
|
"orbs_testnet"
|
|
159
145
|
],
|
|
160
146
|
"mainnet": [
|
|
161
|
-
"chainstack_mainnet",
|
|
162
147
|
"quicknode_mainnet",
|
|
163
148
|
"getblock_mainnet",
|
|
164
149
|
"toncenter_mainnet",
|