@cryptorubic/web3 0.6.1 → 0.6.2
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/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cryptorubic/web3",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.0",
|
|
6
6
|
"bignumber.js": "9.1.2",
|
|
7
|
-
"@cryptorubic/core": "0.6.
|
|
7
|
+
"@cryptorubic/core": "0.6.2",
|
|
8
8
|
"viem": "^2.19.1",
|
|
9
9
|
"web3-utils": "^4.3.1",
|
|
10
10
|
"@ton/ton": "^15.1.0",
|
|
11
11
|
"@solana/web3.js": "1.95.3",
|
|
12
12
|
"@solflare-wallet/utl-sdk": "^1.4.0",
|
|
13
13
|
"@ethersproject/bignumber": "^5.7.0",
|
|
14
|
-
"@cryptorubic/tron-types": "0.6.
|
|
14
|
+
"@cryptorubic/tron-types": "0.6.2",
|
|
15
15
|
"bitcoin-address-validation": "^2.2.3",
|
|
16
16
|
"axios": "0.27.2",
|
|
17
17
|
"crc-32": "^1.2.2",
|
|
@@ -16,7 +16,7 @@ class TonApiService {
|
|
|
16
16
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/address/${walletAddress}/parse`, {
|
|
17
17
|
headers: {
|
|
18
18
|
apiKey: this.apiKey,
|
|
19
|
-
referer: 'app.rubic.exchange'
|
|
19
|
+
referer: 'https://app.rubic.exchange'
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
if ('error' in res) {
|
|
@@ -32,7 +32,7 @@ class TonApiService {
|
|
|
32
32
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/wallet/${walletAddress}/seqno`, {
|
|
33
33
|
headers: {
|
|
34
34
|
apiKey: this.apiKey,
|
|
35
|
-
referer: 'app.rubic.exchange'
|
|
35
|
+
referer: 'https://app.rubic.exchange'
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
if ('error' in res) {
|
|
@@ -44,7 +44,7 @@ class TonApiService {
|
|
|
44
44
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/blockchain/transactions/${txHash}`, {
|
|
45
45
|
headers: {
|
|
46
46
|
apiKey: this.apiKey,
|
|
47
|
-
referer: 'app.rubic.exchange'
|
|
47
|
+
referer: 'https://app.rubic.exchange'
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
if ('error' in res) {
|
|
@@ -56,7 +56,7 @@ class TonApiService {
|
|
|
56
56
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/blockchain/messages/${txHash}/transaction`, {
|
|
57
57
|
headers: {
|
|
58
58
|
apiKey: this.apiKey,
|
|
59
|
-
referer: 'app.rubic.exchange'
|
|
59
|
+
referer: 'https://app.rubic.exchange'
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
if ('error' in res) {
|
|
@@ -69,7 +69,7 @@ class TonApiService {
|
|
|
69
69
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/events/${txHash}`, {
|
|
70
70
|
headers: {
|
|
71
71
|
apiKey: this.apiKey,
|
|
72
|
-
referer: 'app.rubic.exchange'
|
|
72
|
+
referer: 'https://app.rubic.exchange'
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
if ('error' in res) {
|
|
@@ -85,7 +85,7 @@ class TonApiService {
|
|
|
85
85
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/status`, {
|
|
86
86
|
headers: {
|
|
87
87
|
apiKey: this.apiKey,
|
|
88
|
-
referer: 'app.rubic.exchange'
|
|
88
|
+
referer: 'https://app.rubic.exchange'
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
if ('error' in res || !res.rest_online) {
|
|
@@ -118,7 +118,7 @@ class TonApiService {
|
|
|
118
118
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/blockchain/accounts/${address}/methods/${methodName}${argsParam}`, {
|
|
119
119
|
headers: {
|
|
120
120
|
apiKey: this.apiKey,
|
|
121
|
-
referer: 'app.rubic.exchange'
|
|
121
|
+
referer: 'https://app.rubic.exchange'
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
if ('error' in res) {
|
|
@@ -131,7 +131,7 @@ class TonApiService {
|
|
|
131
131
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/jettons/${tokenAddress}`, {
|
|
132
132
|
headers: {
|
|
133
133
|
apiKey: this.apiKey,
|
|
134
|
-
referer: 'app.rubic.exchange'
|
|
134
|
+
referer: 'https://app.rubic.exchange'
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
if ('error' in res) {
|
|
@@ -152,7 +152,7 @@ class TonApiService {
|
|
|
152
152
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/accounts/${walletAddress}/jettons/${tokenAddress}`, {
|
|
153
153
|
headers: {
|
|
154
154
|
apiKey: this.apiKey,
|
|
155
|
-
referer: 'app.rubic.exchange'
|
|
155
|
+
referer: 'https://app.rubic.exchange'
|
|
156
156
|
}
|
|
157
157
|
});
|
|
158
158
|
if ('error' in res) {
|
|
@@ -164,7 +164,7 @@ class TonApiService {
|
|
|
164
164
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/accounts/${walletAddress}/jettons`, {
|
|
165
165
|
headers: {
|
|
166
166
|
apiKey: this.apiKey,
|
|
167
|
-
referer: 'app.rubic.exchange'
|
|
167
|
+
referer: 'https://app.rubic.exchange'
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
if ('error' in res) {
|
|
@@ -179,7 +179,7 @@ class TonApiService {
|
|
|
179
179
|
const res = await this.httpClient.get(`${this.tonApiUrl}/v2/accounts/${walletAddress}`, {
|
|
180
180
|
headers: {
|
|
181
181
|
apiKey: this.apiKey,
|
|
182
|
-
referer: 'app.rubic.exchange'
|
|
182
|
+
referer: 'https://app.rubic.exchange'
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
if ('error' in res) {
|