@airgap/polkadot 0.13.7-beta.13 → 0.13.7-beta.15
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/airgap-coinlib-polkadot.min.js +528 -1811
- package/index.d.ts +0 -2
- package/index.js +1 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/create-protocol.d.ts +0 -3
- package/utils/create-protocol.js +0 -19
- package/utils/create-protocol.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -2,6 +2,4 @@ import { KusamaProtocol } from './protocol/kusama/KusamaProtocol';
|
|
|
2
2
|
import { KusamaProtocolConfig, KusamaProtocolNetwork, KusamaProtocolNetworkExtras, KusamaProtocolOptions, KusamaSubscanBlockExplorer } from './protocol/kusama/KusamaProtocolOptions';
|
|
3
3
|
import { PolkadotProtocol } from './protocol/polkadot/PolkadotProtocol';
|
|
4
4
|
import { PolkadotProtocolConfig, PolkadotProtocolNetwork, PolkadotProtocolNetworkExtras, PolkadotProtocolOptions, PolkadotSubscanBlockExplorer } from './protocol/polkadot/PolkadotProtocolOptions';
|
|
5
|
-
import { createProtocolByIdentifier } from './utils/create-protocol';
|
|
6
5
|
export { PolkadotProtocol, KusamaProtocol, KusamaProtocolNetworkExtras, KusamaSubscanBlockExplorer as KusamaPolkascanBlockExplorer, KusamaProtocolConfig, KusamaProtocolNetwork, KusamaProtocolOptions, PolkadotProtocolNetworkExtras, PolkadotSubscanBlockExplorer, PolkadotProtocolConfig, PolkadotProtocolNetwork, PolkadotProtocolOptions };
|
|
7
|
-
export { createProtocolByIdentifier };
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PolkadotProtocolOptions = exports.PolkadotProtocolNetwork = exports.PolkadotProtocolConfig = exports.PolkadotSubscanBlockExplorer = exports.PolkadotProtocolNetworkExtras = exports.KusamaProtocolOptions = exports.KusamaProtocolNetwork = exports.KusamaProtocolConfig = exports.KusamaPolkascanBlockExplorer = exports.KusamaProtocolNetworkExtras = exports.KusamaProtocol = exports.PolkadotProtocol = void 0;
|
|
4
4
|
var KusamaProtocol_1 = require("./protocol/kusama/KusamaProtocol");
|
|
5
5
|
Object.defineProperty(exports, "KusamaProtocol", { enumerable: true, get: function () { return KusamaProtocol_1.KusamaProtocol; } });
|
|
6
6
|
var KusamaProtocolOptions_1 = require("./protocol/kusama/KusamaProtocolOptions");
|
|
@@ -17,6 +17,4 @@ Object.defineProperty(exports, "PolkadotProtocolNetwork", { enumerable: true, ge
|
|
|
17
17
|
Object.defineProperty(exports, "PolkadotProtocolNetworkExtras", { enumerable: true, get: function () { return PolkadotProtocolOptions_1.PolkadotProtocolNetworkExtras; } });
|
|
18
18
|
Object.defineProperty(exports, "PolkadotProtocolOptions", { enumerable: true, get: function () { return PolkadotProtocolOptions_1.PolkadotProtocolOptions; } });
|
|
19
19
|
Object.defineProperty(exports, "PolkadotSubscanBlockExplorer", { enumerable: true, get: function () { return PolkadotProtocolOptions_1.PolkadotSubscanBlockExplorer; } });
|
|
20
|
-
var create_protocol_1 = require("./utils/create-protocol");
|
|
21
|
-
Object.defineProperty(exports, "createProtocolByIdentifier", { enumerable: true, get: function () { return create_protocol_1.createProtocolByIdentifier; } });
|
|
22
20
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mEAAiE;AAmB/D,+FAnBO,+BAAc,OAmBP;AAlBhB,iFAMgD;AAe9C,qGApBA,4CAAoB,OAoBA;AACpB,sGApBA,6CAAqB,OAoBA;AAHrB,4GAhBA,mDAA2B,OAgBA;AAI3B,sGAnBA,6CAAqB,OAmBA;AAHS,6GAf9B,kDAA0B,OAegC;AAb5D,yEAAuE;AAUrE,iGAVO,mCAAgB,OAUP;AATlB,uFAMoD;AAYlD,uGAjBA,gDAAsB,OAiBA;AACtB,wGAjBA,iDAAuB,OAiBA;AAHvB,8GAbA,uDAA6B,OAaA;AAI7B,wGAhBA,iDAAuB,OAgBA;AAHvB,6GAZA,sDAA4B,OAYA"}
|
package/package.json
CHANGED
package/utils/create-protocol.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createProtocolByIdentifier = void 0;
|
|
4
|
-
var coinlib_core_1 = require("@airgap/coinlib-core");
|
|
5
|
-
var KusamaProtocol_1 = require("../protocol/kusama/KusamaProtocol");
|
|
6
|
-
var PolkadotProtocol_1 = require("../protocol/polkadot/PolkadotProtocol");
|
|
7
|
-
// tslint:disable-next-line: cyclomatic-complexity
|
|
8
|
-
function createProtocolByIdentifier(identifier, options) {
|
|
9
|
-
switch (identifier) {
|
|
10
|
-
case coinlib_core_1.MainProtocolSymbols.POLKADOT:
|
|
11
|
-
return new PolkadotProtocol_1.PolkadotProtocol(options);
|
|
12
|
-
case coinlib_core_1.MainProtocolSymbols.KUSAMA:
|
|
13
|
-
return new KusamaProtocol_1.KusamaProtocol(options);
|
|
14
|
-
default:
|
|
15
|
-
throw new Error("Unkown protocol identifier " + identifier + ".");
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.createProtocolByIdentifier = createProtocolByIdentifier;
|
|
19
|
-
//# sourceMappingURL=create-protocol.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-protocol.js","sourceRoot":"","sources":["../../src/utils/create-protocol.ts"],"names":[],"mappings":";;;AAAA,qDAAyE;AAGzE,oEAAkE;AAElE,0EAAwE;AAGxE,kDAAkD;AAClD,SAAgB,0BAA0B,CAAC,UAAkB,EAAE,OAAyB;IACtF,QAAQ,UAAU,EAAE;QAClB,KAAK,kCAAmB,CAAC,QAAQ;YAC/B,OAAO,IAAI,mCAAgB,CAAC,OAAkC,CAAC,CAAA;QACjE,KAAK,kCAAmB,CAAC,MAAM;YAC7B,OAAO,IAAI,+BAAc,CAAC,OAAgC,CAAC,CAAA;QAC7D;YACE,MAAM,IAAI,KAAK,CAAC,gCAA8B,UAAU,MAAG,CAAC,CAAA;KAC/D;AACH,CAAC;AATD,gEASC"}
|