@rabby-wallet/gnosis-sdk 1.4.6-2 → 1.4.7-alpha

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.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.safe.global/tx-service";
4
+ const TRANSACTION_SERVICE_URL = "https://safe-tx-service.rabby-api.debank.dbkops.com/";
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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/gnosis-sdk",
3
- "version": "1.4.6-2",
3
+ "version": "1.4.7-alpha",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
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.safe.global/tx-service";
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) => {