@airgap/aeternity 0.13.7-beta.11 → 0.13.7-beta.13
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-aeternity.min.js +2115 -814
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/create-protocol.d.ts +3 -0
- package/utils/create-protocol.js +16 -0
- package/utils/create-protocol.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -5,4 +5,6 @@ import { AeternalBlockExplorer, AeternityProtocolNetwork, AeternityProtocolOptio
|
|
|
5
5
|
import { SignedAeternityTransaction } from './types/signed-transaction-aeternity';
|
|
6
6
|
import { RawAeternityTransaction } from './types/transaction-aeternity';
|
|
7
7
|
import { UnsignedAeternityTransaction } from './types/unsigned-transaction-aeternity';
|
|
8
|
+
import { createProtocolByIdentifier } from './utils/create-protocol';
|
|
8
9
|
export { AeternityProtocol, AeternityCryptoClient, AeternityProtocolOptions, AeternalBlockExplorer, AeternityProtocolNetwork, AeternityAddress, RawAeternityTransaction, UnsignedAeternityTransaction, SignedAeternityTransaction };
|
|
10
|
+
export { createProtocolByIdentifier };
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AeternityAddress = exports.AeternityProtocolNetwork = exports.AeternalBlockExplorer = exports.AeternityProtocolOptions = exports.AeternityCryptoClient = exports.AeternityProtocol = void 0;
|
|
3
|
+
exports.createProtocolByIdentifier = exports.AeternityAddress = exports.AeternityProtocolNetwork = exports.AeternalBlockExplorer = exports.AeternityProtocolOptions = exports.AeternityCryptoClient = exports.AeternityProtocol = void 0;
|
|
4
4
|
var AeternityAddress_1 = require("./protocol/AeternityAddress");
|
|
5
5
|
Object.defineProperty(exports, "AeternityAddress", { enumerable: true, get: function () { return AeternityAddress_1.AeternityAddress; } });
|
|
6
6
|
var AeternityCryptoClient_1 = require("./protocol/AeternityCryptoClient");
|
|
@@ -11,4 +11,6 @@ var AeternityProtocolOptions_1 = require("./protocol/AeternityProtocolOptions");
|
|
|
11
11
|
Object.defineProperty(exports, "AeternalBlockExplorer", { enumerable: true, get: function () { return AeternityProtocolOptions_1.AeternalBlockExplorer; } });
|
|
12
12
|
Object.defineProperty(exports, "AeternityProtocolNetwork", { enumerable: true, get: function () { return AeternityProtocolOptions_1.AeternityProtocolNetwork; } });
|
|
13
13
|
Object.defineProperty(exports, "AeternityProtocolOptions", { enumerable: true, get: function () { return AeternityProtocolOptions_1.AeternityProtocolOptions; } });
|
|
14
|
+
var create_protocol_1 = require("./utils/create-protocol");
|
|
15
|
+
Object.defineProperty(exports, "createProtocolByIdentifier", { enumerable: true, get: function () { return create_protocol_1.createProtocolByIdentifier; } });
|
|
14
16
|
//# 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,gEAA8D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,gEAA8D;AAe5D,iGAfO,mCAAgB,OAeP;AAdlB,0EAAwE;AAUtE,sGAVO,6CAAqB,OAUP;AATvB,kEAAgE;AAQ9D,kGARO,qCAAiB,OAQP;AAPnB,gFAA+H;AAU7H,sGAVO,gDAAqB,OAUP;AACrB,yGAX8B,mDAAwB,OAW9B;AAFxB,yGATwD,mDAAwB,OASxD;AAL1B,2DAAoE;AAc3D,2GAdA,4CAA0B,OAcA"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
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 AeternityProtocol_1 = require("../protocol/AeternityProtocol");
|
|
6
|
+
// tslint:disable-next-line: cyclomatic-complexity
|
|
7
|
+
function createProtocolByIdentifier(identifier, options) {
|
|
8
|
+
switch (identifier) {
|
|
9
|
+
case coinlib_core_1.MainProtocolSymbols.AE:
|
|
10
|
+
return new AeternityProtocol_1.AeternityProtocol(options);
|
|
11
|
+
default:
|
|
12
|
+
throw new Error("Unkown protocol identifier " + identifier + ".");
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.createProtocolByIdentifier = createProtocolByIdentifier;
|
|
16
|
+
//# sourceMappingURL=create-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-protocol.js","sourceRoot":"","sources":["../../src/utils/create-protocol.ts"],"names":[],"mappings":";;;AAAA,qDAAyE;AAGzE,mEAAiE;AAGjE,kDAAkD;AAClD,SAAgB,0BAA0B,CAAC,UAAkB,EAAE,OAAyB;IACtF,QAAQ,UAAU,EAAE;QAClB,KAAK,kCAAmB,CAAC,EAAE;YACzB,OAAO,IAAI,qCAAiB,CAAC,OAAmC,CAAC,CAAA;QACnE;YACE,MAAM,IAAI,KAAK,CAAC,gCAA8B,UAAU,MAAG,CAAC,CAAA;KAC/D;AACH,CAAC;AAPD,gEAOC"}
|