@tonappchain/sdk 0.7.2-alpha-16 → 0.7.2-alpha-18

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,3 +1,3 @@
1
1
  export declare const MAINNET_DEFAULT_LITESERVERS = "https://ton.org/global.config.json";
2
2
  export declare const MAINNET_TON_PUBLIC_RPC_ENDPOINT = "https://toncenter.com/api/v2/jsonRPC";
3
- export declare const MAINNET_TON_RPC_ENDPOINT_BY_TAC = "https://rp.mainnet.tac.build";
3
+ export declare const MAINNET_TON_RPC_ENDPOINT_BY_TAC = "https://toncenter-mainnet.tac.build";
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MAINNET_TON_RPC_ENDPOINT_BY_TAC = exports.MAINNET_TON_PUBLIC_RPC_ENDPOINT = exports.MAINNET_DEFAULT_LITESERVERS = void 0;
4
4
  exports.MAINNET_DEFAULT_LITESERVERS = 'https://ton.org/global.config.json';
5
5
  exports.MAINNET_TON_PUBLIC_RPC_ENDPOINT = 'https://toncenter.com/api/v2/jsonRPC';
6
- exports.MAINNET_TON_RPC_ENDPOINT_BY_TAC = 'https://rp.mainnet.tac.build';
6
+ exports.MAINNET_TON_RPC_ENDPOINT_BY_TAC = 'https://toncenter-mainnet.tac.build';
@@ -1,3 +1,3 @@
1
1
  export declare const TESTNET_DEFAULT_LITESERVERS = "https://ton.org/testnet-global.config.json";
2
2
  export declare const TESTNET_TON_PUBLIC_RPC_ENDPOINT = "https://testnet.toncenter.com/api/v2/jsonRPC";
3
- export declare const TESTNET_TON_RPC_ENDPOINT_BY_TAC = "https://rp-testnet.turin.tac.build";
3
+ export declare const TESTNET_TON_RPC_ENDPOINT_BY_TAC = "https://toncenter-spb.tac.build";
@@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TESTNET_TON_RPC_ENDPOINT_BY_TAC = exports.TESTNET_TON_PUBLIC_RPC_ENDPOINT = exports.TESTNET_DEFAULT_LITESERVERS = void 0;
4
4
  exports.TESTNET_DEFAULT_LITESERVERS = 'https://ton.org/testnet-global.config.json';
5
5
  exports.TESTNET_TON_PUBLIC_RPC_ENDPOINT = 'https://testnet.toncenter.com/api/v2/jsonRPC';
6
- exports.TESTNET_TON_RPC_ENDPOINT_BY_TAC = 'https://rp-testnet.turin.tac.build';
6
+ exports.TESTNET_TON_RPC_ENDPOINT_BY_TAC = 'https://toncenter-spb.tac.build';
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getHttpEndpointWithRetry = getHttpEndpointWithRetry;
4
4
  exports.getHttpV4EndpointWithRetry = getHttpV4EndpointWithRetry;
5
5
  const ton_access_1 = require("@orbs-network/ton-access");
6
+ const Consts_1 = require("../sdk/Consts");
6
7
  const Utils_1 = require("../sdk/Utils");
7
8
  const Struct_1 = require("../structs/Struct");
8
- async function getHttpEndpointWithRetry(network, maxRetries = 5, delay = 1000) {
9
+ async function getHttpEndpointWithRetry(network, maxRetries = Consts_1.DEFAULT_RETRY_MAX_COUNT, delay = Consts_1.DEFAULT_RETRY_DELAY_MS) {
9
10
  let lastError;
10
11
  for (let attempt = 0; attempt < maxRetries; attempt++) {
11
12
  try {
@@ -21,7 +22,7 @@ async function getHttpEndpointWithRetry(network, maxRetries = 5, delay = 1000) {
21
22
  }
22
23
  throw lastError || new Error('Failed to get HTTP endpoint after retries');
23
24
  }
24
- async function getHttpV4EndpointWithRetry(network, maxRetries = 5, delay = 1000) {
25
+ async function getHttpV4EndpointWithRetry(network, maxRetries = Consts_1.DEFAULT_RETRY_MAX_COUNT, delay = Consts_1.DEFAULT_RETRY_DELAY_MS) {
25
26
  let lastError;
26
27
  for (let attempt = 0; attempt < maxRetries; attempt++) {
27
28
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonappchain/sdk",
3
- "version": "0.7.2-alpha-16",
3
+ "version": "0.7.2-alpha-18",
4
4
  "repository": "https://github.com/TacBuild/tac-sdk.git",
5
5
  "author": "TAC. <developers@tac>",
6
6
  "license": "MIT",
@@ -69,14 +69,16 @@
69
69
  "dependencies": {
70
70
  "@aws-crypto/sha256-js": "^5.2.0",
71
71
  "@orbs-network/ton-access": "^2.3.3",
72
- "@ton/ton": "16.1.0",
73
72
  "@tonappchain/ton-lite-client": "3.0.6",
74
- "@tonconnect/ui": "^2.0.11",
75
73
  "bn.js": "^5.2.1",
76
74
  "cli-table3": "^0.6.5",
77
- "dotenv": "^16.4.7",
78
- "ethers": "^6.13.5",
79
- "ton-crypto": "^3.2.0"
75
+ "dotenv": "^16.4.7"
76
+ },
77
+ "peerDependencies": {
78
+ "@ton/ton": ">=15",
79
+ "@tonconnect/ui": ">=2",
80
+ "ethers": ">=6",
81
+ "ton-crypto": ">=3"
80
82
  },
81
83
  "keywords": [],
82
84
  "description": "",
@@ -86,13 +88,17 @@
86
88
  "@release-it/keep-a-changelog": "^7.0.0",
87
89
  "@ton/sandbox": "^0.27.1",
88
90
  "@ton/test-utils": "^0.5.0",
91
+ "@ton/ton": "16.2.2",
92
+ "@tonconnect/ui": "^2.0.11",
89
93
  "@types/bn.js": "^5.1.6",
90
94
  "@types/jest": "^29.5.14",
91
95
  "eslint": "^9.26.0",
92
96
  "eslint-config-prettier": "^10.0.2",
93
97
  "eslint-plugin-simple-import-sort": "^12.1.1",
98
+ "ethers": "^6.13.5",
94
99
  "jest": "^29.7.0",
95
100
  "prettier": "^3.5.3",
101
+ "ton-crypto": "3.2.0",
96
102
  "ts-jest": "^29.2.6",
97
103
  "ts-node": "^10.9.2",
98
104
  "typescript": "^5.7.3",