@tradetrust-tt/dnsprove 2.12.1 → 2.12.3

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.
@@ -23,7 +23,6 @@ let EthereumNetworks = exports.EthereumNetworks = void 0;
23
23
  EthereumNetworks["goerli"] = "5";
24
24
  EthereumNetworks["sepolia"] = "11155111";
25
25
  EthereumNetworks["polygon"] = "137";
26
- EthereumNetworks["polygonMumbai"] = "80001";
27
26
  EthereumNetworks["polygonAmoy"] = "80002";
28
27
  EthereumNetworks["local"] = "1337";
29
28
  EthereumNetworks["xdc"] = "50";
@@ -37,7 +36,7 @@ let HederaNetworks = exports.HederaNetworks = void 0;
37
36
  HederaNetworks["testnet"] = "296";
38
37
  })(HederaNetworks || (exports.HederaNetworks = HederaNetworks = {}));
39
38
  const HederaNetworkIdT = exports.HederaNetworkIdT = (0, _runtypes.Union)((0, _runtypes.Literal)(HederaNetworks.mainnet), (0, _runtypes.Literal)(HederaNetworks.testnet));
40
- const EthereumNetworkIdT = exports.EthereumNetworkIdT = (0, _runtypes.Union)((0, _runtypes.Literal)(EthereumNetworks.homestead), (0, _runtypes.Literal)(EthereumNetworks.ropsten), (0, _runtypes.Literal)(EthereumNetworks.rinkeby), (0, _runtypes.Literal)(EthereumNetworks.goerli), (0, _runtypes.Literal)(EthereumNetworks.sepolia), (0, _runtypes.Literal)(EthereumNetworks.polygon), (0, _runtypes.Literal)(EthereumNetworks.polygonMumbai), (0, _runtypes.Literal)(EthereumNetworks.polygonAmoy), (0, _runtypes.Literal)(EthereumNetworks.xdc), (0, _runtypes.Literal)(EthereumNetworks.xdcapothem), (0, _runtypes.Literal)(EthereumNetworks.stabilityTestnet), (0, _runtypes.Literal)(EthereumNetworks.stability), (0, _runtypes.Literal)(EthereumNetworks.local));
39
+ const EthereumNetworkIdT = exports.EthereumNetworkIdT = (0, _runtypes.Union)((0, _runtypes.Literal)(EthereumNetworks.homestead), (0, _runtypes.Literal)(EthereumNetworks.ropsten), (0, _runtypes.Literal)(EthereumNetworks.rinkeby), (0, _runtypes.Literal)(EthereumNetworks.goerli), (0, _runtypes.Literal)(EthereumNetworks.sepolia), (0, _runtypes.Literal)(EthereumNetworks.polygon), (0, _runtypes.Literal)(EthereumNetworks.polygonAmoy), (0, _runtypes.Literal)(EthereumNetworks.xdc), (0, _runtypes.Literal)(EthereumNetworks.xdcapothem), (0, _runtypes.Literal)(EthereumNetworks.stabilityTestnet), (0, _runtypes.Literal)(EthereumNetworks.stability), (0, _runtypes.Literal)(EthereumNetworks.local));
41
40
  const OpenAttestationDNSTextRecordT = exports.OpenAttestationDNSTextRecordT = (0, _runtypes.Union)((0, _runtypes.Record)({
42
41
  type: RecordTypesT,
43
42
  net: (0, _runtypes.Literal)("ethereum"),
@@ -10,7 +10,6 @@ export declare enum EthereumNetworks {
10
10
  goerli = "5",
11
11
  sepolia = "11155111",
12
12
  polygon = "137",
13
- polygonMumbai = "80001",
14
13
  polygonAmoy = "80002",
15
14
  local = "1337",
16
15
  xdc = "50",
@@ -23,11 +22,11 @@ export declare enum HederaNetworks {
23
22
  testnet = "296"
24
23
  }
25
24
  export declare const HederaNetworkIdT: Union<[Literal<HederaNetworks.mainnet>, Literal<HederaNetworks.testnet>]>;
26
- export declare const EthereumNetworkIdT: Union<[Literal<EthereumNetworks.homestead>, Literal<EthereumNetworks.ropsten>, Literal<EthereumNetworks.rinkeby>, Literal<EthereumNetworks.goerli>, Literal<EthereumNetworks.sepolia>, Literal<EthereumNetworks.polygon>, Literal<EthereumNetworks.polygonMumbai>, Literal<EthereumNetworks.polygonAmoy>, Literal<EthereumNetworks.xdc>, Literal<EthereumNetworks.xdcapothem>, Literal<EthereumNetworks.stabilityTestnet>, Literal<EthereumNetworks.stability>, Literal<EthereumNetworks.local>]>;
25
+ export declare const EthereumNetworkIdT: Union<[Literal<EthereumNetworks.homestead>, Literal<EthereumNetworks.ropsten>, Literal<EthereumNetworks.rinkeby>, Literal<EthereumNetworks.goerli>, Literal<EthereumNetworks.sepolia>, Literal<EthereumNetworks.polygon>, Literal<EthereumNetworks.polygonAmoy>, Literal<EthereumNetworks.xdc>, Literal<EthereumNetworks.xdcapothem>, Literal<EthereumNetworks.stabilityTestnet>, Literal<EthereumNetworks.stability>, Literal<EthereumNetworks.local>]>;
27
26
  export declare const OpenAttestationDNSTextRecordT: Union<[import("runtypes").Intersect<[Record<{
28
27
  type: Literal<"openatts">;
29
28
  net: Literal<"ethereum">;
30
- netId: Union<[Literal<EthereumNetworks.homestead>, Literal<EthereumNetworks.ropsten>, Literal<EthereumNetworks.rinkeby>, Literal<EthereumNetworks.goerli>, Literal<EthereumNetworks.sepolia>, Literal<EthereumNetworks.polygon>, Literal<EthereumNetworks.polygonMumbai>, Literal<EthereumNetworks.polygonAmoy>, Literal<EthereumNetworks.xdc>, Literal<EthereumNetworks.xdcapothem>, Literal<EthereumNetworks.stabilityTestnet>, Literal<EthereumNetworks.stability>, Literal<EthereumNetworks.local>]>;
29
+ netId: Union<[Literal<EthereumNetworks.homestead>, Literal<EthereumNetworks.ropsten>, Literal<EthereumNetworks.rinkeby>, Literal<EthereumNetworks.goerli>, Literal<EthereumNetworks.sepolia>, Literal<EthereumNetworks.polygon>, Literal<EthereumNetworks.polygonAmoy>, Literal<EthereumNetworks.xdc>, Literal<EthereumNetworks.xdcapothem>, Literal<EthereumNetworks.stabilityTestnet>, Literal<EthereumNetworks.stability>, Literal<EthereumNetworks.local>]>;
31
30
  addr: import("runtypes").Constraint<String, string, unknown>;
32
31
  }, false>, Partial<{
33
32
  dnssec: Boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradetrust-tt/dnsprove",
3
- "version": "2.12.1",
3
+ "version": "2.12.3",
4
4
  "description": "Helper utility for retrieving OpenAttestations document store address records from DNS",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -45,7 +45,7 @@
45
45
  "generator-nod"
46
46
  ],
47
47
  "dependencies": {
48
- "axios": "^1.6.3",
48
+ "axios": "0.21.1",
49
49
  "debug": "^4.3.1",
50
50
  "runtypes": "^6.3.0"
51
51
  },
package/src/index.test.ts CHANGED
@@ -272,6 +272,13 @@ describe("getDocumentStoreRecords for Hedera", () => {
272
272
  netId: "295",
273
273
  type: "openatts",
274
274
  },
275
+ {
276
+ addr: "0xB9cf2eFcBeCdF96E6A7E46AECd79A784B41Bcf6B",
277
+ dnssec: false,
278
+ net: "hedera",
279
+ netId: "296",
280
+ type: "openatts",
281
+ },
275
282
  {
276
283
  addr: "0x222B69788e2e9B7FB93a3a0fE258D4604Dc7df21",
277
284
  dnssec: false,
@@ -20,7 +20,6 @@ export enum EthereumNetworks {
20
20
  goerli = "5",
21
21
  sepolia = "11155111",
22
22
  polygon = "137",
23
- polygonMumbai = "80001",
24
23
  polygonAmoy = "80002",
25
24
  local = "1337",
26
25
  xdc = "50",
@@ -42,7 +41,6 @@ export const EthereumNetworkIdT = Union(
42
41
  Literal(EthereumNetworks.goerli),
43
42
  Literal(EthereumNetworks.sepolia),
44
43
  Literal(EthereumNetworks.polygon),
45
- Literal(EthereumNetworks.polygonMumbai),
46
44
  Literal(EthereumNetworks.polygonAmoy),
47
45
  Literal(EthereumNetworks.xdc),
48
46
  Literal(EthereumNetworks.xdcapothem),