@airgap/cosmos 0.13.7-beta.13 → 0.13.7-beta.14

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/index.d.ts CHANGED
@@ -7,6 +7,4 @@ import { CosmosUnbondingDelegation, CosmosValidator } from './protocol/CosmosTyp
7
7
  import { SignedCosmosTransaction } from './types/signed-transaction-cosmos';
8
8
  import { UnsignedCosmosTransaction } from './types/transaction-cosmos';
9
9
  import { SerializableUnsignedCosmosTransaction } from './types/unsigned-transaction-cosmos';
10
- import { createProtocolByIdentifier } from './utils/create-protocol';
11
10
  export { CosmosProtocol, CosmosCryptoClient, MintscanBlockExplorer, CosmosProtocolNetwork, CosmosProtocolConfig, CosmosProtocolOptions, CosmosUnbondingDelegation, CosmosValidator, CosmosDelegationActionType, CosmosAddress, CosmosTransaction, UnsignedCosmosTransaction, SignedCosmosTransaction, SerializableUnsignedCosmosTransaction };
12
- export { createProtocolByIdentifier };
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createProtocolByIdentifier = exports.CosmosTransaction = exports.CosmosAddress = exports.CosmosDelegationActionType = exports.CosmosProtocolOptions = exports.CosmosProtocolConfig = exports.CosmosProtocolNetwork = exports.MintscanBlockExplorer = exports.CosmosCryptoClient = exports.CosmosProtocol = void 0;
3
+ exports.CosmosTransaction = exports.CosmosAddress = exports.CosmosDelegationActionType = exports.CosmosProtocolOptions = exports.CosmosProtocolConfig = exports.CosmosProtocolNetwork = exports.MintscanBlockExplorer = exports.CosmosCryptoClient = exports.CosmosProtocol = void 0;
4
4
  var CosmosAddress_1 = require("./protocol/CosmosAddress");
5
5
  Object.defineProperty(exports, "CosmosAddress", { enumerable: true, get: function () { return CosmosAddress_1.CosmosAddress; } });
6
6
  var CosmosCryptoClient_1 = require("./protocol/CosmosCryptoClient");
@@ -15,6 +15,4 @@ Object.defineProperty(exports, "CosmosProtocolOptions", { enumerable: true, get:
15
15
  Object.defineProperty(exports, "MintscanBlockExplorer", { enumerable: true, get: function () { return CosmosProtocolOptions_1.MintscanBlockExplorer; } });
16
16
  var CosmosTransaction_1 = require("./protocol/CosmosTransaction");
17
17
  Object.defineProperty(exports, "CosmosTransaction", { enumerable: true, get: function () { return CosmosTransaction_1.CosmosTransaction; } });
18
- var create_protocol_1 = require("./utils/create-protocol");
19
- Object.defineProperty(exports, "createProtocolByIdentifier", { enumerable: true, get: function () { return create_protocol_1.createProtocolByIdentifier; } });
20
18
  //# 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,0DAAwD;AAqBtD,8FArBO,6BAAa,OAqBP;AApBf,oEAAkE;AAYhE,mGAZO,uCAAkB,OAYP;AAXpB,4DAAsF;AAkBpF,2GAlBO,2CAA0B,OAkBP;AAR1B,+FAVmC,+BAAc,OAUnC;AAThB,0EAA4I;AAa1I,qGAbO,4CAAoB,OAaP;AADpB,sGAZ6B,6CAAqB,OAY7B;AAErB,sGAdoD,6CAAqB,OAcpD;AAHrB,sGAX2E,6CAAqB,OAW3E;AAVvB,kEAAgE;AAkB9D,kGAlBO,qCAAiB,OAkBP;AAbnB,2DAAoE;AAmB3D,2GAnBA,4CAA0B,OAmBA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,0DAAwD;AAoBtD,8FApBO,6BAAa,OAoBP;AAnBf,oEAAkE;AAWhE,mGAXO,uCAAkB,OAWP;AAVpB,4DAAsF;AAiBpF,2GAjBO,2CAA0B,OAiBP;AAR1B,+FATmC,+BAAc,OASnC;AARhB,0EAA4I;AAY1I,qGAZO,4CAAoB,OAYP;AADpB,sGAX6B,6CAAqB,OAW7B;AAErB,sGAboD,6CAAqB,OAapD;AAHrB,sGAV2E,6CAAqB,OAU3E;AATvB,kEAAgE;AAiB9D,kGAjBO,qCAAiB,OAiBP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airgap/cosmos",
3
- "version": "0.13.7-beta.13",
3
+ "version": "0.13.7-beta.14",
4
4
  "description": "The @airgap/cosmos is a Cosmos implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
5
5
  "keywords": [
6
6
  "airgap",
@@ -1,3 +0,0 @@
1
- import { ICoinProtocol } from '@airgap/coinlib-core';
2
- import { ProtocolOptions } from '@airgap/coinlib-core/utils/ProtocolOptions';
3
- export declare function createProtocolByIdentifier(identifier: string, options?: ProtocolOptions): ICoinProtocol;
@@ -1,16 +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 CosmosProtocol_1 = require("../protocol/CosmosProtocol");
6
- // tslint:disable-next-line: cyclomatic-complexity
7
- function createProtocolByIdentifier(identifier, options) {
8
- switch (identifier) {
9
- case coinlib_core_1.MainProtocolSymbols.COSMOS:
10
- return new CosmosProtocol_1.CosmosProtocol(options);
11
- default:
12
- throw new Error("Unkown protocol identifier " + identifier + ".");
13
- }
14
- }
15
- exports.createProtocolByIdentifier = createProtocolByIdentifier;
16
- //# 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,6DAA2D;AAG3D,kDAAkD;AAClD,SAAgB,0BAA0B,CAAC,UAAkB,EAAE,OAAyB;IACtF,QAAQ,UAAU,EAAE;QAClB,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;AAPD,gEAOC"}