@tomo-inc/chains-service 0.0.27 → 0.0.29
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 +6 -2
- package/dist/index.js +6 -2
- package/package.json +2 -2
- package/src/api/network-data.ts +1 -1
- package/src/config.ts +6 -1
package/dist/index.cjs
CHANGED
|
@@ -3289,7 +3289,7 @@ var loadNetworks = (WALLET_DOMAIN) => {
|
|
|
3289
3289
|
chainIndex: 628197100,
|
|
3290
3290
|
name: "DOGEOS_TESTNET",
|
|
3291
3291
|
chainName: "DogeOS Testnet",
|
|
3292
|
-
rpcUrls: [
|
|
3292
|
+
rpcUrls: ["https://rpc.testnet.dogeos.com"],
|
|
3293
3293
|
blockExplorerUrl: "https://rpc.testnet.dogeos.com",
|
|
3294
3294
|
platformType: "EVM",
|
|
3295
3295
|
isTestnet: true,
|
|
@@ -3906,14 +3906,18 @@ function tomoPublicApiService(publicApiBase, tomoAppInfo) {
|
|
|
3906
3906
|
var TX_DOMAIN_OVERRIDES = {
|
|
3907
3907
|
"prod-dogeos": "https://wallet.tomo.inc"
|
|
3908
3908
|
};
|
|
3909
|
+
var RPC_DOMAIN_OVERRIDES = {
|
|
3910
|
+
"prod-dogeos": "https://wallet.tomo.inc"
|
|
3911
|
+
};
|
|
3909
3912
|
function getConfig(tomoStage) {
|
|
3910
3913
|
const domain = walletUtils.TomoApiDomains[tomoStage];
|
|
3911
3914
|
if (!domain) {
|
|
3912
3915
|
throw new Error("Invalid tomo stage");
|
|
3913
3916
|
}
|
|
3914
3917
|
const txDomain = TX_DOMAIN_OVERRIDES[tomoStage] ?? domain;
|
|
3918
|
+
const rpcDomain = RPC_DOMAIN_OVERRIDES[tomoStage] ?? domain;
|
|
3915
3919
|
return {
|
|
3916
|
-
rpcBaseUrl: `${
|
|
3920
|
+
rpcBaseUrl: `${rpcDomain}`,
|
|
3917
3921
|
walletBaseUrl: `${domain}/wallet`,
|
|
3918
3922
|
txBaseUrl: `${txDomain}/quote`,
|
|
3919
3923
|
tokenBaseUrl: `${domain}/token`,
|
package/dist/index.js
CHANGED
|
@@ -3281,7 +3281,7 @@ var loadNetworks = (WALLET_DOMAIN) => {
|
|
|
3281
3281
|
chainIndex: 628197100,
|
|
3282
3282
|
name: "DOGEOS_TESTNET",
|
|
3283
3283
|
chainName: "DogeOS Testnet",
|
|
3284
|
-
rpcUrls: [
|
|
3284
|
+
rpcUrls: ["https://rpc.testnet.dogeos.com"],
|
|
3285
3285
|
blockExplorerUrl: "https://rpc.testnet.dogeos.com",
|
|
3286
3286
|
platformType: "EVM",
|
|
3287
3287
|
isTestnet: true,
|
|
@@ -3898,14 +3898,18 @@ function tomoPublicApiService(publicApiBase, tomoAppInfo) {
|
|
|
3898
3898
|
var TX_DOMAIN_OVERRIDES = {
|
|
3899
3899
|
"prod-dogeos": "https://wallet.tomo.inc"
|
|
3900
3900
|
};
|
|
3901
|
+
var RPC_DOMAIN_OVERRIDES = {
|
|
3902
|
+
"prod-dogeos": "https://wallet.tomo.inc"
|
|
3903
|
+
};
|
|
3901
3904
|
function getConfig(tomoStage) {
|
|
3902
3905
|
const domain = TomoApiDomains[tomoStage];
|
|
3903
3906
|
if (!domain) {
|
|
3904
3907
|
throw new Error("Invalid tomo stage");
|
|
3905
3908
|
}
|
|
3906
3909
|
const txDomain = TX_DOMAIN_OVERRIDES[tomoStage] ?? domain;
|
|
3910
|
+
const rpcDomain = RPC_DOMAIN_OVERRIDES[tomoStage] ?? domain;
|
|
3907
3911
|
return {
|
|
3908
|
-
rpcBaseUrl: `${
|
|
3912
|
+
rpcBaseUrl: `${rpcDomain}`,
|
|
3909
3913
|
walletBaseUrl: `${domain}/wallet`,
|
|
3910
3914
|
txBaseUrl: `${txDomain}/quote`,
|
|
3911
3915
|
tokenBaseUrl: `${domain}/token`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomo-inc/chains-service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
4
4
|
"author": "tomo.inc",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"bitcoinjs-lib": "^7.0.0",
|
|
24
24
|
"crypto-js": "4.2.0",
|
|
25
25
|
"viem": "2.21.54",
|
|
26
|
-
"@tomo-inc/wallet-utils": "0.0.
|
|
26
|
+
"@tomo-inc/wallet-utils": "0.0.21"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/supertest": "^2.0.12",
|
package/src/api/network-data.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const loadNetworks = (WALLET_DOMAIN: string) => {
|
|
|
62
62
|
chainIndex: 628197100,
|
|
63
63
|
name: "DOGEOS_TESTNET",
|
|
64
64
|
chainName: "DogeOS Testnet",
|
|
65
|
-
rpcUrls: [
|
|
65
|
+
rpcUrls: ["https://rpc.testnet.dogeos.com"],
|
|
66
66
|
blockExplorerUrl: "https://rpc.testnet.dogeos.com",
|
|
67
67
|
platformType: "EVM",
|
|
68
68
|
isTestnet: true,
|
package/src/config.ts
CHANGED
|
@@ -4,14 +4,19 @@ const TX_DOMAIN_OVERRIDES: Partial<Record<TomoStage, string>> = {
|
|
|
4
4
|
"prod-dogeos": "https://wallet.tomo.inc",
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
+
const RPC_DOMAIN_OVERRIDES: Partial<Record<TomoStage, string>> = {
|
|
8
|
+
"prod-dogeos": "https://wallet.tomo.inc",
|
|
9
|
+
};
|
|
10
|
+
|
|
7
11
|
export function getConfig(tomoStage: TomoStage) {
|
|
8
12
|
const domain = TomoApiDomains[tomoStage];
|
|
9
13
|
if (!domain) {
|
|
10
14
|
throw new Error("Invalid tomo stage");
|
|
11
15
|
}
|
|
12
16
|
const txDomain = TX_DOMAIN_OVERRIDES[tomoStage] ?? domain;
|
|
17
|
+
const rpcDomain = RPC_DOMAIN_OVERRIDES[tomoStage] ?? domain;
|
|
13
18
|
return {
|
|
14
|
-
rpcBaseUrl: `${
|
|
19
|
+
rpcBaseUrl: `${rpcDomain}`,
|
|
15
20
|
walletBaseUrl: `${domain}/wallet`,
|
|
16
21
|
txBaseUrl: `${txDomain}/quote`,
|
|
17
22
|
tokenBaseUrl: `${domain}/token`,
|