@rabby-wallet/gnosis-sdk 1.4.6 → 1.4.7-alpha-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/api.d.ts +0 -88
- package/dist/api.js +1 -89
- package/package.json +3 -2
- package/src/api.ts +1 -89
package/dist/api.d.ts
CHANGED
|
@@ -43,98 +43,10 @@ export interface SafeTransactionItem {
|
|
|
43
43
|
}
|
|
44
44
|
export declare const GNOSIS_SUPPORT_CHAINS: string[];
|
|
45
45
|
export declare const HOST_MAP: {
|
|
46
|
-
/**
|
|
47
|
-
* eth
|
|
48
|
-
*/
|
|
49
|
-
"1": string;
|
|
50
|
-
/**
|
|
51
|
-
* polygon
|
|
52
|
-
*/
|
|
53
|
-
"137": string;
|
|
54
|
-
/**
|
|
55
|
-
* bsc
|
|
56
|
-
*/
|
|
57
|
-
"56": string;
|
|
58
|
-
/**
|
|
59
|
-
* Gnosis Chain
|
|
60
|
-
*/
|
|
61
|
-
"100": string;
|
|
62
|
-
/**
|
|
63
|
-
* avalanche
|
|
64
|
-
*/
|
|
65
|
-
"43114": string;
|
|
66
|
-
/**
|
|
67
|
-
* arbitrum
|
|
68
|
-
*/
|
|
69
|
-
"42161": string;
|
|
70
|
-
/**
|
|
71
|
-
* Optimism
|
|
72
|
-
*/
|
|
73
|
-
"10": string;
|
|
74
|
-
/**
|
|
75
|
-
* Aurora
|
|
76
|
-
*/
|
|
77
|
-
"1313161554": string;
|
|
78
|
-
/**
|
|
79
|
-
* Base
|
|
80
|
-
*/
|
|
81
|
-
"8453": string;
|
|
82
|
-
/**
|
|
83
|
-
* Celo
|
|
84
|
-
*/
|
|
85
|
-
"42220": string;
|
|
86
|
-
/**
|
|
87
|
-
* Polygon zkEVM
|
|
88
|
-
*/
|
|
89
|
-
"1101": string;
|
|
90
|
-
/**
|
|
91
|
-
* zksync era
|
|
92
|
-
*/
|
|
93
|
-
"324": string;
|
|
94
|
-
/**
|
|
95
|
-
* scroll
|
|
96
|
-
*/
|
|
97
|
-
"534352": string;
|
|
98
|
-
/**
|
|
99
|
-
* linea
|
|
100
|
-
*/
|
|
101
|
-
"59144": string;
|
|
102
|
-
/**
|
|
103
|
-
* X Layer
|
|
104
|
-
*/
|
|
105
|
-
"196": string;
|
|
106
|
-
/**
|
|
107
|
-
* mantle
|
|
108
|
-
*/
|
|
109
|
-
"5000": string;
|
|
110
|
-
/**
|
|
111
|
-
* World Chain
|
|
112
|
-
*/
|
|
113
|
-
"480": string;
|
|
114
46
|
/**
|
|
115
47
|
* blast
|
|
116
48
|
*/
|
|
117
49
|
"81457": string;
|
|
118
|
-
/**
|
|
119
|
-
* Sonic
|
|
120
|
-
*/
|
|
121
|
-
"146": string;
|
|
122
|
-
/**
|
|
123
|
-
* Berachain
|
|
124
|
-
*/
|
|
125
|
-
"80094": string;
|
|
126
|
-
/**
|
|
127
|
-
* ink
|
|
128
|
-
*/
|
|
129
|
-
"57073": string;
|
|
130
|
-
/**
|
|
131
|
-
* Hemi
|
|
132
|
-
*/
|
|
133
|
-
"43111": string;
|
|
134
|
-
/**
|
|
135
|
-
* Katana
|
|
136
|
-
*/
|
|
137
|
-
"747474": string;
|
|
138
50
|
};
|
|
139
51
|
export declare const getTxServiceUrl: (chainId: string) => any;
|
|
140
52
|
export default class RequestProvider {
|
package/dist/api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ethers } from "ethers";
|
|
2
2
|
import { isLegacyVersion } from "./utils";
|
|
3
3
|
import axios from "axios";
|
|
4
|
-
const TRANSACTION_SERVICE_URL = "https://api.
|
|
4
|
+
const TRANSACTION_SERVICE_URL = "https://api.rabby.io/v1/safe-tx-service";
|
|
5
5
|
// https://github.com/safe-global/safe-core-sdk/blob/main/packages/api-kit/src/utils/config.ts
|
|
6
6
|
const networks = [
|
|
7
7
|
{
|
|
@@ -200,98 +200,10 @@ const networkMap = networks.reduce((acc, { chainId, shortName }) => {
|
|
|
200
200
|
return acc;
|
|
201
201
|
}, {});
|
|
202
202
|
export const HOST_MAP = {
|
|
203
|
-
/**
|
|
204
|
-
* eth
|
|
205
|
-
*/
|
|
206
|
-
"1": "https://safe-transaction-mainnet.safe.global/api",
|
|
207
|
-
/**
|
|
208
|
-
* polygon
|
|
209
|
-
*/
|
|
210
|
-
"137": "https://safe-transaction-polygon.safe.global/api",
|
|
211
|
-
/**
|
|
212
|
-
* bsc
|
|
213
|
-
*/
|
|
214
|
-
"56": "https://safe-transaction-bsc.safe.global/api",
|
|
215
|
-
/**
|
|
216
|
-
* Gnosis Chain
|
|
217
|
-
*/
|
|
218
|
-
"100": "https://safe-transaction-gnosis-chain.safe.global/api",
|
|
219
|
-
/**
|
|
220
|
-
* avalanche
|
|
221
|
-
*/
|
|
222
|
-
"43114": "https://safe-transaction-avalanche.safe.global/api",
|
|
223
|
-
/**
|
|
224
|
-
* arbitrum
|
|
225
|
-
*/
|
|
226
|
-
"42161": "https://safe-transaction-arbitrum.safe.global/api",
|
|
227
|
-
/**
|
|
228
|
-
* Optimism
|
|
229
|
-
*/
|
|
230
|
-
"10": "https://safe-transaction-optimism.safe.global/api",
|
|
231
|
-
/**
|
|
232
|
-
* Aurora
|
|
233
|
-
*/
|
|
234
|
-
"1313161554": "https://safe-transaction-aurora.safe.global/api",
|
|
235
|
-
/**
|
|
236
|
-
* Base
|
|
237
|
-
*/
|
|
238
|
-
"8453": "https://safe-transaction-base.safe.global/api",
|
|
239
|
-
/**
|
|
240
|
-
* Celo
|
|
241
|
-
*/
|
|
242
|
-
"42220": "https://safe-transaction-celo.safe.global/api",
|
|
243
|
-
/**
|
|
244
|
-
* Polygon zkEVM
|
|
245
|
-
*/
|
|
246
|
-
"1101": "https://safe-transaction-zkevm.safe.global/api",
|
|
247
|
-
/**
|
|
248
|
-
* zksync era
|
|
249
|
-
*/
|
|
250
|
-
"324": "https://safe-transaction-zksync.safe.global/api",
|
|
251
|
-
/**
|
|
252
|
-
* scroll
|
|
253
|
-
*/
|
|
254
|
-
"534352": "https://safe-transaction-scroll.safe.global/api",
|
|
255
|
-
/**
|
|
256
|
-
* linea
|
|
257
|
-
*/
|
|
258
|
-
"59144": "https://safe-transaction-linea.safe.global/api",
|
|
259
|
-
/**
|
|
260
|
-
* X Layer
|
|
261
|
-
*/
|
|
262
|
-
"196": "https://safe-transaction-xlayer.safe.global/api",
|
|
263
|
-
/**
|
|
264
|
-
* mantle
|
|
265
|
-
*/
|
|
266
|
-
"5000": "https://safe-transaction-mantle.safe.global/api",
|
|
267
|
-
/**
|
|
268
|
-
* World Chain
|
|
269
|
-
*/
|
|
270
|
-
"480": "https://safe-transaction-worldchain.safe.global/api",
|
|
271
203
|
/**
|
|
272
204
|
* blast
|
|
273
205
|
*/
|
|
274
206
|
"81457": "https://safe-transaction-blast.safe.global/api",
|
|
275
|
-
/**
|
|
276
|
-
* Sonic
|
|
277
|
-
*/
|
|
278
|
-
"146": "https://safe-transaction-sonic.safe.global/api",
|
|
279
|
-
/**
|
|
280
|
-
* Berachain
|
|
281
|
-
*/
|
|
282
|
-
"80094": "https://safe-transaction-berachain.safe.global/api",
|
|
283
|
-
/**
|
|
284
|
-
* ink
|
|
285
|
-
*/
|
|
286
|
-
"57073": "https://safe-transaction-ink.safe.global/api",
|
|
287
|
-
/**
|
|
288
|
-
* Hemi
|
|
289
|
-
*/
|
|
290
|
-
"43111": "https://safe-transaction-hemi.safe.global/api",
|
|
291
|
-
/**
|
|
292
|
-
* Katana
|
|
293
|
-
*/
|
|
294
|
-
"747474": "https://safe-transaction-katana.safe.global/api",
|
|
295
207
|
};
|
|
296
208
|
export const getTxServiceUrl = (chainId) => {
|
|
297
209
|
const shortName = networkMap[chainId];
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rabby-wallet/gnosis-sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7-alpha-1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "tsc"
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"prepublishOnly": "yarn build"
|
|
8
9
|
},
|
|
9
10
|
"author": "",
|
|
10
11
|
"license": "ISC",
|
package/src/api.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface SafeTransactionItem {
|
|
|
47
47
|
signatures: string | null;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
const TRANSACTION_SERVICE_URL = "https://api.
|
|
50
|
+
const TRANSACTION_SERVICE_URL = "https://api.rabby.io/v1/safe-tx-service";
|
|
51
51
|
|
|
52
52
|
type NetworkShortName = {
|
|
53
53
|
shortName: string;
|
|
@@ -258,98 +258,10 @@ const networkMap = networks.reduce<Record<string, string>>(
|
|
|
258
258
|
);
|
|
259
259
|
|
|
260
260
|
export const HOST_MAP = {
|
|
261
|
-
/**
|
|
262
|
-
* eth
|
|
263
|
-
*/
|
|
264
|
-
"1": "https://safe-transaction-mainnet.safe.global/api",
|
|
265
|
-
/**
|
|
266
|
-
* polygon
|
|
267
|
-
*/
|
|
268
|
-
"137": "https://safe-transaction-polygon.safe.global/api",
|
|
269
|
-
/**
|
|
270
|
-
* bsc
|
|
271
|
-
*/
|
|
272
|
-
"56": "https://safe-transaction-bsc.safe.global/api",
|
|
273
|
-
/**
|
|
274
|
-
* Gnosis Chain
|
|
275
|
-
*/
|
|
276
|
-
"100": "https://safe-transaction-gnosis-chain.safe.global/api",
|
|
277
|
-
/**
|
|
278
|
-
* avalanche
|
|
279
|
-
*/
|
|
280
|
-
"43114": "https://safe-transaction-avalanche.safe.global/api",
|
|
281
|
-
/**
|
|
282
|
-
* arbitrum
|
|
283
|
-
*/
|
|
284
|
-
"42161": "https://safe-transaction-arbitrum.safe.global/api",
|
|
285
|
-
/**
|
|
286
|
-
* Optimism
|
|
287
|
-
*/
|
|
288
|
-
"10": "https://safe-transaction-optimism.safe.global/api",
|
|
289
|
-
/**
|
|
290
|
-
* Aurora
|
|
291
|
-
*/
|
|
292
|
-
"1313161554": "https://safe-transaction-aurora.safe.global/api",
|
|
293
|
-
/**
|
|
294
|
-
* Base
|
|
295
|
-
*/
|
|
296
|
-
"8453": "https://safe-transaction-base.safe.global/api",
|
|
297
|
-
/**
|
|
298
|
-
* Celo
|
|
299
|
-
*/
|
|
300
|
-
"42220": "https://safe-transaction-celo.safe.global/api",
|
|
301
|
-
/**
|
|
302
|
-
* Polygon zkEVM
|
|
303
|
-
*/
|
|
304
|
-
"1101": "https://safe-transaction-zkevm.safe.global/api",
|
|
305
|
-
/**
|
|
306
|
-
* zksync era
|
|
307
|
-
*/
|
|
308
|
-
"324": "https://safe-transaction-zksync.safe.global/api",
|
|
309
|
-
/**
|
|
310
|
-
* scroll
|
|
311
|
-
*/
|
|
312
|
-
"534352": "https://safe-transaction-scroll.safe.global/api",
|
|
313
|
-
/**
|
|
314
|
-
* linea
|
|
315
|
-
*/
|
|
316
|
-
"59144": "https://safe-transaction-linea.safe.global/api",
|
|
317
|
-
/**
|
|
318
|
-
* X Layer
|
|
319
|
-
*/
|
|
320
|
-
"196": "https://safe-transaction-xlayer.safe.global/api",
|
|
321
|
-
/**
|
|
322
|
-
* mantle
|
|
323
|
-
*/
|
|
324
|
-
"5000": "https://safe-transaction-mantle.safe.global/api",
|
|
325
|
-
/**
|
|
326
|
-
* World Chain
|
|
327
|
-
*/
|
|
328
|
-
"480": "https://safe-transaction-worldchain.safe.global/api",
|
|
329
261
|
/**
|
|
330
262
|
* blast
|
|
331
263
|
*/
|
|
332
264
|
"81457": "https://safe-transaction-blast.safe.global/api",
|
|
333
|
-
/**
|
|
334
|
-
* Sonic
|
|
335
|
-
*/
|
|
336
|
-
"146": "https://safe-transaction-sonic.safe.global/api",
|
|
337
|
-
/**
|
|
338
|
-
* Berachain
|
|
339
|
-
*/
|
|
340
|
-
"80094": "https://safe-transaction-berachain.safe.global/api",
|
|
341
|
-
/**
|
|
342
|
-
* ink
|
|
343
|
-
*/
|
|
344
|
-
"57073": "https://safe-transaction-ink.safe.global/api",
|
|
345
|
-
/**
|
|
346
|
-
* Hemi
|
|
347
|
-
*/
|
|
348
|
-
"43111": "https://safe-transaction-hemi.safe.global/api",
|
|
349
|
-
/**
|
|
350
|
-
* Katana
|
|
351
|
-
*/
|
|
352
|
-
"747474": "https://safe-transaction-katana.safe.global/api",
|
|
353
265
|
};
|
|
354
266
|
|
|
355
267
|
export const getTxServiceUrl = (chainId: string) => {
|