@tradetrust-tt/dnsprove 2.9.0 → 2.10.0
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/records/dnsTxt.js
CHANGED
|
@@ -38,6 +38,7 @@ exports.EthereumNetworks = EthereumNetworks;
|
|
|
38
38
|
EthereumNetworks["local"] = "1337";
|
|
39
39
|
EthereumNetworks["xdc"] = "50";
|
|
40
40
|
EthereumNetworks["xdcapothem"] = "51";
|
|
41
|
+
EthereumNetworks["stabilityTestnet"] = "20180427";
|
|
41
42
|
})(EthereumNetworks || (exports.EthereumNetworks = EthereumNetworks = {}));
|
|
42
43
|
|
|
43
44
|
let HederaNetworks;
|
|
@@ -50,7 +51,7 @@ exports.HederaNetworks = HederaNetworks;
|
|
|
50
51
|
|
|
51
52
|
const HederaNetworkIdT = (0, _runtypes.Union)((0, _runtypes.Literal)(HederaNetworks.mainnet), (0, _runtypes.Literal)(HederaNetworks.testnet));
|
|
52
53
|
exports.HederaNetworkIdT = HederaNetworkIdT;
|
|
53
|
-
const 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.xdc), (0, _runtypes.Literal)(EthereumNetworks.xdcapothem), (0, _runtypes.Literal)(EthereumNetworks.local));
|
|
54
|
+
const 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.xdc), (0, _runtypes.Literal)(EthereumNetworks.xdcapothem), (0, _runtypes.Literal)(EthereumNetworks.stabilityTestnet), (0, _runtypes.Literal)(EthereumNetworks.local));
|
|
54
55
|
exports.EthereumNetworkIdT = EthereumNetworkIdT;
|
|
55
56
|
const OpenAttestationDNSTextRecordT = (0, _runtypes.Union)((0, _runtypes.Record)({
|
|
56
57
|
type: RecordTypesT,
|
|
@@ -13,18 +13,19 @@ export declare enum EthereumNetworks {
|
|
|
13
13
|
polygonMumbai = "80001",
|
|
14
14
|
local = "1337",
|
|
15
15
|
xdc = "50",
|
|
16
|
-
xdcapothem = "51"
|
|
16
|
+
xdcapothem = "51",
|
|
17
|
+
stabilityTestnet = "20180427"
|
|
17
18
|
}
|
|
18
19
|
export declare enum HederaNetworks {
|
|
19
20
|
mainnet = "295",
|
|
20
21
|
testnet = "296"
|
|
21
22
|
}
|
|
22
23
|
export declare const HederaNetworkIdT: Union<[Literal<HederaNetworks.mainnet>, Literal<HederaNetworks.testnet>]>;
|
|
23
|
-
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.xdc>, Literal<EthereumNetworks.xdcapothem>, Literal<EthereumNetworks.local>]>;
|
|
24
|
+
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.xdc>, Literal<EthereumNetworks.xdcapothem>, Literal<EthereumNetworks.stabilityTestnet>, Literal<EthereumNetworks.local>]>;
|
|
24
25
|
export declare const OpenAttestationDNSTextRecordT: Union<[import("runtypes").Intersect<[Record<{
|
|
25
26
|
type: Literal<"openatts">;
|
|
26
27
|
net: Literal<"ethereum">;
|
|
27
|
-
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.xdc>, Literal<EthereumNetworks.xdcapothem>, Literal<EthereumNetworks.local>]>;
|
|
28
|
+
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.xdc>, Literal<EthereumNetworks.xdcapothem>, Literal<EthereumNetworks.stabilityTestnet>, Literal<EthereumNetworks.local>]>;
|
|
28
29
|
addr: import("runtypes").Constraint<String, string, unknown>;
|
|
29
30
|
}, false>, Partial<{
|
|
30
31
|
dnssec: Boolean;
|
package/package.json
CHANGED
package/src/index.test.ts
CHANGED
|
@@ -262,7 +262,7 @@ describe("getDocumentStoreRecords for Hedera", () => {
|
|
|
262
262
|
net: "hedera",
|
|
263
263
|
netId: "296",
|
|
264
264
|
dnssec: false,
|
|
265
|
-
addr: "
|
|
265
|
+
addr: "0x3DE43bfd3D771931E46CbBd4EDE0D3d95C85f81A",
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
test("it should work with trustlv.org", async () => {
|
package/src/records/dnsTxt.ts
CHANGED
|
@@ -24,6 +24,7 @@ export enum EthereumNetworks {
|
|
|
24
24
|
local = "1337",
|
|
25
25
|
xdc = "50",
|
|
26
26
|
xdcapothem = "51",
|
|
27
|
+
stabilityTestnet = "20180427",
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export enum HederaNetworks {
|
|
@@ -42,6 +43,7 @@ export const EthereumNetworkIdT = Union(
|
|
|
42
43
|
Literal(EthereumNetworks.polygonMumbai),
|
|
43
44
|
Literal(EthereumNetworks.xdc),
|
|
44
45
|
Literal(EthereumNetworks.xdcapothem),
|
|
46
|
+
Literal(EthereumNetworks.stabilityTestnet),
|
|
45
47
|
Literal(EthereumNetworks.local)
|
|
46
48
|
);
|
|
47
49
|
|