@autonomys/auto-drive 1.2.1 → 1.2.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.
@@ -0,0 +1,5 @@
1
+ export declare const networks: {
2
+ taurus: string;
3
+ };
4
+ export declare const getNetworkUrl: (networkId: keyof typeof networks) => string;
5
+ //# sourceMappingURL=networks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../src/api/networks.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ;;CAEyB,CAAA;AAE9C,eAAO,MAAM,aAAa,cAAe,MAAM,OAAO,QAAQ,WAM7D,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getNetworkUrl = exports.networks = void 0;
4
+ const auto_utils_1 = require("@autonomys/auto-utils");
5
+ exports.networks = {
6
+ [auto_utils_1.NetworkId.TAURUS]: 'https://demo.auto-drive.autonomys.xyz/api',
7
+ };
8
+ const getNetworkUrl = (networkId) => {
9
+ if (!exports.networks[networkId]) {
10
+ throw new Error(`Network ${networkId} not found`);
11
+ }
12
+ return exports.networks[networkId];
13
+ };
14
+ exports.getNetworkUrl = getNetworkUrl;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@autonomys/auto-drive",
3
3
  "packageManager": "yarn@4.2.2",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -42,12 +42,12 @@
42
42
  "typescript": "^5.6.3"
43
43
  },
44
44
  "dependencies": {
45
- "@autonomys/auto-dag-data": "^1.2.1",
45
+ "@autonomys/auto-dag-data": "^1.2.2",
46
46
  "jszip": "^3.10.1",
47
47
  "mime-types": "^2.1.35",
48
48
  "process": "^0.11.10",
49
49
  "stream": "^0.0.3",
50
50
  "zod": "^3.23.8"
51
51
  },
52
- "gitHead": "72285a024adcc7681ec59fabd1f061a6e40aeb09"
52
+ "gitHead": "6e9151e187b7e7186700c3b663df33b7064fe9a4"
53
53
  }