@ritbit/v4-client-js 2.1.6 → 2.1.7
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/build/cjs/src/clients/constants.js +15 -15
- package/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/build/esm/src/clients/constants.d.ts +10 -10
- package/build/esm/src/clients/constants.d.ts.map +1 -1
- package/build/esm/src/clients/constants.js +15 -15
- package/build/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/scripts/publish-if-not-exists.sh +2 -2
- package/src/clients/constants.ts +14 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ritbit/v4-client-js",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "General client library for the new RITBIT Chain",
|
|
5
5
|
"main": "build/cjs/src/index.js",
|
|
6
6
|
"module": "build/esm/src/index.js",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@types/ffi-napi": "^4.0.4",
|
|
84
84
|
"@types/jest": "^30.0.0",
|
|
85
85
|
"@types/lodash": "^4.17.21",
|
|
86
|
-
"@types/node": "^20.
|
|
86
|
+
"@types/node": "^20.19.27",
|
|
87
87
|
"@types/ws": "8.5.4",
|
|
88
88
|
"@typescript-eslint/eslint-plugin": "v5.42.0",
|
|
89
89
|
"@typescript-eslint/parser": "v5.42.0",
|
package/src/clients/constants.ts
CHANGED
|
@@ -20,28 +20,28 @@ export const MAINNET_CHAIN_ID = 'ritbit-mainnet';
|
|
|
20
20
|
|
|
21
21
|
// ------------ API URLs ------------
|
|
22
22
|
export enum IndexerApiHost {
|
|
23
|
-
TESTNET = 'https://indexer.testnet.
|
|
24
|
-
STAGING = 'https://indexer.testnet.
|
|
23
|
+
TESTNET = 'https://indexer.testnet.tyranodex.xyz/',
|
|
24
|
+
STAGING = 'https://indexer.testnet.tyranodex.xyz/',
|
|
25
25
|
LOCAL = 'http://local.ritbit.ru:3002',
|
|
26
|
-
MAINNET = 'https://indexer.
|
|
26
|
+
MAINNET = 'https://indexer.tyranodex.xyz',
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export enum IndexerWSHost {
|
|
30
|
-
TESTNET = 'wss://indexer.testnet.
|
|
31
|
-
STAGING = 'wss://indexer.testnet.
|
|
30
|
+
TESTNET = 'wss://indexer.testnet.tyranodex.xyz/v4/ws',
|
|
31
|
+
STAGING = 'wss://indexer.testnet.tyranodex.xyz/v4/ws',
|
|
32
32
|
LOCAL = 'ws://local.ritbit.ru:3003',
|
|
33
|
-
MAINNET = 'wss://indexer.
|
|
33
|
+
MAINNET = 'wss://indexer.tyranodex.xyz/v4/ws',
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export enum FaucetApiHost {
|
|
37
|
-
TESTNET = 'https://faucet.testnet.
|
|
37
|
+
TESTNET = 'https://faucet.testnet.tyranodex.xyz',
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export enum ValidatorApiHost {
|
|
41
|
-
TESTNET = 'https://
|
|
42
|
-
STAGING = 'https://
|
|
41
|
+
TESTNET = 'https://rpc.testnet.tyranodex.xyz',
|
|
42
|
+
STAGING = 'https://rpc.testnet.tyranodex.xyz',
|
|
43
43
|
LOCAL = 'http://local.ritbit.ru:26657',
|
|
44
|
-
MAINNET = 'https://
|
|
44
|
+
MAINNET = 'https://rpc.tyranodex.xyz',
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// ------------ Network IDs ------------
|
|
@@ -287,7 +287,7 @@ export class Network {
|
|
|
287
287
|
TESTNET_CHAIN_ID,
|
|
288
288
|
{
|
|
289
289
|
CHAINTOKEN_DENOM: 'urit',
|
|
290
|
-
USDC_DENOM: '
|
|
290
|
+
USDC_DENOM: 'uusdc',
|
|
291
291
|
USDC_GAS_DENOM: 'uusdc',
|
|
292
292
|
USDC_DECIMALS: 6,
|
|
293
293
|
CHAINTOKEN_DECIMALS: 18,
|
|
@@ -305,7 +305,7 @@ export class Network {
|
|
|
305
305
|
STAGING_CHAIN_ID,
|
|
306
306
|
{
|
|
307
307
|
CHAINTOKEN_DENOM: 'urit',
|
|
308
|
-
USDC_DENOM: '
|
|
308
|
+
USDC_DENOM: 'uusdc',
|
|
309
309
|
USDC_GAS_DENOM: 'uusdc',
|
|
310
310
|
USDC_DECIMALS: 6,
|
|
311
311
|
CHAINTOKEN_DECIMALS: 18,
|
|
@@ -323,7 +323,7 @@ export class Network {
|
|
|
323
323
|
LOCAL_CHAIN_ID,
|
|
324
324
|
{
|
|
325
325
|
CHAINTOKEN_DENOM: 'urit',
|
|
326
|
-
USDC_DENOM: '
|
|
326
|
+
USDC_DENOM: 'uusdc',
|
|
327
327
|
USDC_GAS_DENOM: 'uusdc',
|
|
328
328
|
USDC_DECIMALS: 6,
|
|
329
329
|
CHAINTOKEN_DECIMALS: 18,
|
|
@@ -341,7 +341,7 @@ export class Network {
|
|
|
341
341
|
MAINNET_CHAIN_ID,
|
|
342
342
|
{
|
|
343
343
|
CHAINTOKEN_DENOM: 'urit',
|
|
344
|
-
USDC_DENOM: '
|
|
344
|
+
USDC_DENOM: 'uusdc',
|
|
345
345
|
USDC_GAS_DENOM: 'uusdc',
|
|
346
346
|
USDC_DECIMALS: 6,
|
|
347
347
|
CHAINTOKEN_DECIMALS: 18,
|