@dotdm/env 1.0.2 → 1.0.3-dev.1778618528

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.d.ts CHANGED
@@ -29,10 +29,10 @@ declare const KNOWN_CHAINS: {
29
29
  readonly registryAddress: "0xae344f7f0f91d3a2176032af2990abcc7606c7d4";
30
30
  };
31
31
  readonly paseo: {
32
- readonly assethubUrl: "wss://asset-hub-paseo-rpc.n.dwellir.com";
33
- readonly bulletinUrl: "wss://paseo-bulletin-rpc.polkadot.io";
34
- readonly ipfsGatewayUrl: "https://paseo-ipfs.polkadot.io/ipfs";
35
- readonly registryAddress: "0xae344f7f0f91d3a2176032af2990abcc7606c7d4";
32
+ readonly assethubUrl: "wss://paseo-asset-hub-next-rpc.polkadot.io";
33
+ readonly bulletinUrl: "wss://paseo-bulletin-next-rpc.polkadot.io";
34
+ readonly ipfsGatewayUrl: "https://paseo-bulletin-next-ipfs.polkadot.io/ipfs";
35
+ readonly registryAddress: "0x5c7b23d386ff622c7f7a4e7a95d5c7a67b10a00d";
36
36
  readonly productSdkEnvironment: "paseo";
37
37
  readonly faucets: readonly [{
38
38
  readonly label: "Asset Hub";
@@ -44,8 +44,8 @@ declare const KNOWN_CHAINS: {
44
44
  };
45
45
  readonly "preview-net": {
46
46
  readonly assethubUrl: "wss://previewnet.substrate.dev/asset-hub";
47
- readonly bulletinUrl: "wss://paseo-bulletin-rpc.polkadot.io";
48
- readonly ipfsGatewayUrl: "https://paseo-ipfs.polkadot.io/ipfs";
47
+ readonly bulletinUrl: "wss://paseo-bulletin-next-rpc.polkadot.io";
48
+ readonly ipfsGatewayUrl: "https://paseo-bulletin-next-ipfs.polkadot.io/ipfs";
49
49
  readonly registryAddress: "0x5c7b23d386ff622c7f7a4e7a95d5c7a67b10a00d";
50
50
  readonly productSdkEnvironment: "previewnet";
51
51
  };
@@ -83,6 +83,10 @@ type CdmChainClient = {
83
83
  assetHub: PolkadotClient;
84
84
  bulletin: PolkadotClient;
85
85
  };
86
+ descriptors: {
87
+ assetHub: CdmDeployAssetHubDescriptor;
88
+ bulletin: CdmBulletinDescriptor;
89
+ };
86
90
  destroy: () => void;
87
91
  };
88
92
  /** Asset-Hub-only variant for callers that don't need Bulletin (e.g., `install`). */
@@ -91,6 +95,9 @@ type CdmAssetHubClient = {
91
95
  raw: {
92
96
  assetHub: PolkadotClient;
93
97
  };
98
+ descriptors: {
99
+ assetHub: CdmAssetHubDescriptor;
100
+ };
94
101
  destroy: () => void;
95
102
  };
96
103
  interface AssetHubConnection {
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  // src/known_chains.ts
2
2
  import { BULLETIN_RPCS } from "@parity/product-sdk-host";
3
3
  import { REGISTRY_ADDRESS } from "@dotdm/utils";
4
+ var PASEO_V2_REGISTRY_ADDRESS = "0x5c7b23d386ff622c7f7a4e7a95d5c7a67b10a00d";
4
5
  var PREVIEW_NET_REGISTRY_ADDRESS = "0x5c7b23d386ff622c7f7a4e7a95d5c7a67b10a00d";
6
+ var PASEO_ASSET_HUB_URL = "wss://paseo-asset-hub-next-rpc.polkadot.io";
7
+ var PASEO_IPFS_GATEWAY_URL = "https://paseo-bulletin-next-ipfs.polkadot.io/ipfs";
5
8
  var KNOWN_CHAINS = {
6
9
  polkadot: {
7
10
  assethubUrl: "wss://polkadot-asset-hub-rpc.polkadot.io",
@@ -10,10 +13,10 @@ var KNOWN_CHAINS = {
10
13
  registryAddress: REGISTRY_ADDRESS
11
14
  },
12
15
  paseo: {
13
- assethubUrl: "wss://asset-hub-paseo-rpc.n.dwellir.com",
16
+ assethubUrl: PASEO_ASSET_HUB_URL,
14
17
  bulletinUrl: BULLETIN_RPCS.paseo[0],
15
- ipfsGatewayUrl: "https://paseo-ipfs.polkadot.io/ipfs",
16
- registryAddress: REGISTRY_ADDRESS,
18
+ ipfsGatewayUrl: PASEO_IPFS_GATEWAY_URL,
19
+ registryAddress: PASEO_V2_REGISTRY_ADDRESS,
17
20
  productSdkEnvironment: "paseo",
18
21
  faucets: [
19
22
  { label: "Asset Hub", url: "https://faucet.polkadot.io/" },
@@ -28,7 +31,7 @@ var KNOWN_CHAINS = {
28
31
  // TEMPORARY_PATCH! Preview-net's IPFS gateway does not currently serve Bulletin CIDs,
29
32
  // so CDM stores preview-net metadata on Paseo Bulletin for now.
30
33
  bulletinUrl: BULLETIN_RPCS.paseo[0],
31
- ipfsGatewayUrl: "https://paseo-ipfs.polkadot.io/ipfs",
34
+ ipfsGatewayUrl: PASEO_IPFS_GATEWAY_URL,
32
35
  registryAddress: PREVIEW_NET_REGISTRY_ADDRESS,
33
36
  productSdkEnvironment: "previewnet"
34
37
  },
@@ -41,6 +44,7 @@ var KNOWN_CHAINS = {
41
44
  };
42
45
  function normalizeChainName(name) {
43
46
  if (name === "previewnet") return "preview-net";
47
+ if (name === "paseo-next-v2" || name === "paseo-v2") return "paseo";
44
48
  if (name === "preview-net" || name === "paseo" || name === "polkadot" || name === "local") {
45
49
  return name;
46
50
  }
@@ -145,6 +149,7 @@ function createDirectChainClient(chains, rpcs) {
145
149
  return {
146
150
  ...apis,
147
151
  raw,
152
+ descriptors: chains,
148
153
  destroy() {
149
154
  for (const client of Object.values(raw)) {
150
155
  client.destroy();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotdm/env",
3
- "version": "1.0.2",
3
+ "version": "1.0.3-dev.1778618528",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@parity/product-sdk-descriptors": "^0.3.0",
21
- "@parity/product-sdk-host": "^0.2.1",
20
+ "@parity/product-sdk-descriptors": "^0.4.0",
21
+ "@parity/product-sdk-host": "^0.2.2",
22
22
  "@polkadot-labs/hdkd": "^0.0.26",
23
23
  "@polkadot-labs/hdkd-helpers": "^0.0.27",
24
24
  "polkadot-api": "^2.1.2",