@airgap/groestlcoin 0.13.11-beta.1 → 0.13.11-beta.2

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.
Files changed (60) hide show
  1. package/index.d.ts +1 -0
  2. package/index.js +18 -0
  3. package/index.js.map +1 -0
  4. package/package.json +1 -5
  5. package/v0/index.d.ts +4 -0
  6. package/v0/index.js +21 -0
  7. package/v0/index.js.map +1 -0
  8. package/v0/protocol/GroestlcoinProtocol.d.ts +23 -0
  9. package/v0/protocol/GroestlcoinProtocol.js +89 -0
  10. package/v0/protocol/GroestlcoinProtocol.js.map +1 -0
  11. package/v0/protocol/GroestlcoinProtocolOptions.d.ts +26 -0
  12. package/v0/protocol/GroestlcoinProtocolOptions.js +149 -0
  13. package/v0/protocol/GroestlcoinProtocolOptions.js.map +1 -0
  14. package/v0/protocol/GroestlcoinTestnetProtocol.d.ts +4 -0
  15. package/v0/protocol/GroestlcoinTestnetProtocol.js +56 -0
  16. package/v0/protocol/GroestlcoinTestnetProtocol.js.map +1 -0
  17. package/v1/block-explorer/CryptoIDBlockExplorer.d.ts +11 -0
  18. package/v1/block-explorer/CryptoIDBlockExplorer.js +75 -0
  19. package/v1/block-explorer/CryptoIDBlockExplorer.js.map +1 -0
  20. package/v1/index.d.ts +10 -0
  21. package/v1/index.js +10 -0
  22. package/v1/index.js.map +1 -0
  23. package/v1/module/GroestlcoinModule.d.ts +17 -0
  24. package/v1/module/GroestlcoinModule.js +113 -0
  25. package/v1/module/GroestlcoinModule.js.map +1 -0
  26. package/v1/module.d.ts +3 -0
  27. package/v1/module.js +24 -0
  28. package/v1/module.js.map +1 -0
  29. package/v1/protocol/GroestlcoinProtocol.d.ts +63 -0
  30. package/v1/protocol/GroestlcoinProtocol.js +518 -0
  31. package/v1/protocol/GroestlcoinProtocol.js.map +1 -0
  32. package/v1/serializer/v3/schemas/converter/transaction-converter.d.ts +7 -0
  33. package/v1/serializer/v3/schemas/converter/transaction-converter.js +21 -0
  34. package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -0
  35. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-groestlcoin.d.ts +5 -0
  36. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-groestlcoin.js +3 -0
  37. package/v1/serializer/v3/schemas/definitions/transaction-sign-request-groestlcoin.js.map +1 -0
  38. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-groestlcoin.d.ts +3 -0
  39. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-groestlcoin.js +3 -0
  40. package/v1/serializer/v3/schemas/definitions/transaction-sign-response-groestlcoin.js.map +1 -0
  41. package/v1/serializer/v3/schemas/generated/transaction-sign-request-groestlcoin.json +109 -0
  42. package/v1/serializer/v3/schemas/generated/transaction-sign-response-groestlcoin.json +37 -0
  43. package/v1/serializer/v3/serializer-companion.d.ts +14 -0
  44. package/v1/serializer/v3/serializer-companion.js +173 -0
  45. package/v1/serializer/v3/serializer-companion.js.map +1 -0
  46. package/v1/serializer/v3/validators/transaction-validator.d.ts +4 -0
  47. package/v1/serializer/v3/validators/transaction-validator.js +29 -0
  48. package/v1/serializer/v3/validators/transaction-validator.js.map +1 -0
  49. package/v1/serializer/v3/validators/validators.d.ts +7 -0
  50. package/v1/serializer/v3/validators/validators.js +6 -0
  51. package/v1/serializer/v3/validators/validators.js.map +1 -0
  52. package/v1/types/crypto.d.ts +2 -0
  53. package/v1/types/crypto.js +3 -0
  54. package/v1/types/crypto.js.map +1 -0
  55. package/v1/types/protocol.d.ts +18 -0
  56. package/v1/types/protocol.js +3 -0
  57. package/v1/types/protocol.js.map +1 -0
  58. package/v1/types/transaction.d.ts +7 -0
  59. package/v1/types/transaction.js +3 -0
  60. package/v1/types/transaction.js.map +1 -0
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './v0';
package/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./v0"), exports);
18
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAoB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airgap/groestlcoin",
3
- "version": "0.13.11-beta.1",
3
+ "version": "0.13.11-beta.2",
4
4
  "description": "The @airgap/groestlcoin is a Groestlcoin implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
5
5
  "keywords": [
6
6
  "airgap",
@@ -17,10 +17,6 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "main": "dist/index.js",
21
- "files": [
22
- "dist"
23
- ],
24
20
  "scripts": {
25
21
  "build": "rm -rf ./dist && tsc && node scripts/copy-files-after-build.js",
26
22
  "build-scripts": "tsc scripts/*.ts",
package/v0/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { GroestlcoinProtocol } from './protocol/GroestlcoinProtocol';
2
+ import { CryptoidBlockExplorer, GroestlcoinProtocolConfig, GroestlcoinProtocolNetwork, GroestlcoinProtocolNetworkExtras, GroestlcoinProtocolOptions } from './protocol/GroestlcoinProtocolOptions';
3
+ import { GroestlcoinTestnetProtocol } from './protocol/GroestlcoinTestnetProtocol';
4
+ export { GroestlcoinProtocol, GroestlcoinTestnetProtocol, GroestlcoinProtocolNetworkExtras, CryptoidBlockExplorer, GroestlcoinProtocolNetwork, GroestlcoinProtocolConfig, GroestlcoinProtocolOptions };
package/v0/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GroestlcoinProtocolOptions = exports.GroestlcoinProtocolConfig = exports.GroestlcoinProtocolNetwork = exports.CryptoidBlockExplorer = exports.GroestlcoinProtocolNetworkExtras = exports.GroestlcoinTestnetProtocol = exports.GroestlcoinProtocol = void 0;
4
+ var coinlib_core_1 = require("@airgap/coinlib-core");
5
+ var serializer_1 = require("@airgap/serializer");
6
+ var GroestlcoinProtocol_1 = require("./protocol/GroestlcoinProtocol");
7
+ Object.defineProperty(exports, "GroestlcoinProtocol", { enumerable: true, get: function () { return GroestlcoinProtocol_1.GroestlcoinProtocol; } });
8
+ var GroestlcoinProtocolOptions_1 = require("./protocol/GroestlcoinProtocolOptions");
9
+ Object.defineProperty(exports, "CryptoidBlockExplorer", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.CryptoidBlockExplorer; } });
10
+ Object.defineProperty(exports, "GroestlcoinProtocolConfig", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.GroestlcoinProtocolConfig; } });
11
+ Object.defineProperty(exports, "GroestlcoinProtocolNetwork", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.GroestlcoinProtocolNetwork; } });
12
+ Object.defineProperty(exports, "GroestlcoinProtocolNetworkExtras", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.GroestlcoinProtocolNetworkExtras; } });
13
+ Object.defineProperty(exports, "GroestlcoinProtocolOptions", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.GroestlcoinProtocolOptions; } });
14
+ var GroestlcoinTestnetProtocol_1 = require("./protocol/GroestlcoinTestnetProtocol");
15
+ Object.defineProperty(exports, "GroestlcoinTestnetProtocol", { enumerable: true, get: function () { return GroestlcoinTestnetProtocol_1.GroestlcoinTestnetProtocol; } });
16
+ // Serializer
17
+ serializer_1.Serializer.addSchema(serializer_1.IACMessageType.TransactionSignRequest, { schema: require('@airgap/bitcoin/v0/serializer/schemas/v2/transaction-sign-request-bitcoin.json') }, coinlib_core_1.MainProtocolSymbols.GRS);
18
+ serializer_1.Serializer.addSchema(serializer_1.IACMessageType.TransactionSignResponse, { schema: require('@airgap/bitcoin/v0/serializer/schemas/v2/transaction-sign-response-bitcoin.json') }, coinlib_core_1.MainProtocolSymbols.GRS);
19
+ serializer_1.SerializerV3.addSchema(serializer_1.IACMessageType.TransactionSignRequest, { schema: require('@airgap/bitcoin/v0/serializer/schemas/v3/transaction-sign-request-bitcoin.json') }, coinlib_core_1.MainProtocolSymbols.GRS);
20
+ serializer_1.SerializerV3.addSchema(serializer_1.IACMessageType.TransactionSignResponse, { schema: require('@airgap/bitcoin/v0/serializer/schemas/v3/transaction-sign-response-bitcoin.json') }, coinlib_core_1.MainProtocolSymbols.GRS);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v0/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0D;AAC1D,iDAA6E;AAE7E,sEAAoE;AAWlE,oGAXO,yCAAmB,OAWP;AAVrB,oFAM8C;AAO5C,sGAZA,kDAAqB,OAYA;AAErB,0GAbA,sDAAyB,OAaA;AADzB,2GAXA,uDAA0B,OAWA;AAF1B,iHARA,6DAAgC,OAQA;AAIhC,2GAXA,uDAA0B,OAWA;AAT5B,oFAAkF;AAIhF,2GAJO,uDAA0B,OAIP;AAQ5B,aAAa;AAEb,uBAAU,CAAC,SAAS,CAClB,2BAAc,CAAC,sBAAsB,EACrC,EAAE,MAAM,EAAE,OAAO,CAAC,gFAAgF,CAAC,EAAE,EACrG,kCAAmB,CAAC,GAAG,CACxB,CAAA;AACD,uBAAU,CAAC,SAAS,CAClB,2BAAc,CAAC,uBAAuB,EACtC,EAAE,MAAM,EAAE,OAAO,CAAC,iFAAiF,CAAC,EAAE,EACtG,kCAAmB,CAAC,GAAG,CACxB,CAAA;AAED,yBAAY,CAAC,SAAS,CACpB,2BAAc,CAAC,sBAAsB,EACrC,EAAE,MAAM,EAAE,OAAO,CAAC,gFAAgF,CAAC,EAAE,EACrG,kCAAmB,CAAC,GAAG,CACxB,CAAA;AACD,yBAAY,CAAC,SAAS,CACpB,2BAAc,CAAC,uBAAuB,EACtC,EAAE,MAAM,EAAE,OAAO,CAAC,iFAAiF,CAAC,EAAE,EACtG,kCAAmB,CAAC,GAAG,CACxB,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { BitcoinCryptoClient, BitcoinProtocol } from '@airgap/bitcoin';
2
+ import { FeeDefaults } from '@airgap/coinlib-core';
3
+ import { CurrencyUnit } from '@airgap/coinlib-core/protocols/ICoinProtocol';
4
+ import { ProtocolSymbols } from '@airgap/coinlib-core/utils/ProtocolSymbols';
5
+ import { GroestlcoinProtocolOptions } from './GroestlcoinProtocolOptions';
6
+ export declare class GroestlcoinProtocol extends BitcoinProtocol {
7
+ readonly options: GroestlcoinProtocolOptions;
8
+ symbol: string;
9
+ name: string;
10
+ marketSymbol: string;
11
+ feeSymbol: string;
12
+ feeDefaults: FeeDefaults;
13
+ decimals: number;
14
+ feeDecimals: number;
15
+ identifier: ProtocolSymbols;
16
+ units: CurrencyUnit[];
17
+ supportsHD: boolean;
18
+ standardDerivationPath: string;
19
+ addressValidationPattern: string;
20
+ addressPlaceholder: string;
21
+ readonly cryptoClient: BitcoinCryptoClient;
22
+ constructor(options?: GroestlcoinProtocolOptions);
23
+ }
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.GroestlcoinProtocol = void 0;
42
+ var bitcoin_1 = require("@airgap/bitcoin");
43
+ // @ts-ignore
44
+ var groestlcoinJSMessage = __importStar(require("@airgap/coinlib-core/dependencies/src/groestlcoinjs-message-2.1.0/index"));
45
+ var ProtocolSymbols_1 = require("@airgap/coinlib-core/utils/ProtocolSymbols");
46
+ var GroestlcoinProtocolOptions_1 = require("./GroestlcoinProtocolOptions");
47
+ var GroestlcoinProtocol = /** @class */ (function (_super) {
48
+ __extends(GroestlcoinProtocol, _super);
49
+ function GroestlcoinProtocol(options) {
50
+ if (options === void 0) { options = new GroestlcoinProtocolOptions_1.GroestlcoinProtocolOptions(); }
51
+ var _this = _super.call(this, options) || this;
52
+ _this.options = options;
53
+ _this.symbol = 'GRS';
54
+ _this.name = 'Groestlcoin';
55
+ _this.marketSymbol = 'grs';
56
+ _this.feeSymbol = 'grs';
57
+ _this.feeDefaults = {
58
+ low: '0.00002',
59
+ medium: '0.00004',
60
+ high: '0.00005'
61
+ };
62
+ _this.decimals = 8;
63
+ _this.feeDecimals = 8;
64
+ _this.identifier = ProtocolSymbols_1.MainProtocolSymbols.GRS;
65
+ _this.units = [
66
+ {
67
+ unitSymbol: 'GRS',
68
+ factor: '1'
69
+ },
70
+ {
71
+ unitSymbol: 'mGRS',
72
+ factor: '0.0001'
73
+ },
74
+ {
75
+ unitSymbol: 'Satoshi',
76
+ factor: '0.00000001'
77
+ }
78
+ ];
79
+ _this.supportsHD = true;
80
+ _this.standardDerivationPath = "m/44'/17'/0'";
81
+ _this.addressValidationPattern = '^([F3][a-km-zA-HJ-NP-Z1-9]{33}|grs1[a-zA-HJ-NP-Z0-9]{39})$';
82
+ _this.addressPlaceholder = 'Fdb...';
83
+ _this.cryptoClient = new bitcoin_1.BitcoinCryptoClient(_this, groestlcoinJSMessage);
84
+ return _this;
85
+ }
86
+ return GroestlcoinProtocol;
87
+ }(bitcoin_1.BitcoinProtocol));
88
+ exports.GroestlcoinProtocol = GroestlcoinProtocol;
89
+ //# sourceMappingURL=GroestlcoinProtocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroestlcoinProtocol.js","sourceRoot":"","sources":["../../../src/v0/protocol/GroestlcoinProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAsE;AAEtE,aAAa;AACb,4HAA+G;AAE/G,8EAAiG;AAEjG,2EAAyE;AAEzE;IAAyC,uCAAe;IAsCtD,6BAA4B,OAAsE;QAAtE,wBAAA,EAAA,cAA0C,uDAA0B,EAAE;QAAlG,YACE,kBAAM,OAAO,CAAC,SAEf;QAH2B,aAAO,GAAP,OAAO,CAA+D;QArC3F,YAAM,GAAW,KAAK,CAAA;QACtB,UAAI,GAAW,aAAa,CAAA;QAC5B,kBAAY,GAAW,KAAK,CAAA;QAE5B,eAAS,GAAW,KAAK,CAAA;QAEzB,iBAAW,GAAgB;YAChC,GAAG,EAAE,SAAS;YACd,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,SAAS;SAChB,CAAA;QACM,cAAQ,GAAW,CAAC,CAAA;QACpB,iBAAW,GAAW,CAAC,CAAA;QACvB,gBAAU,GAAoB,qCAAmB,CAAC,GAAG,CAAA;QACrD,WAAK,GAAmB;YAC7B;gBACE,UAAU,EAAE,KAAK;gBACjB,MAAM,EAAE,GAAG;aACZ;YACD;gBACE,UAAU,EAAE,MAAM;gBAClB,MAAM,EAAE,QAAQ;aACjB;YACD;gBACE,UAAU,EAAE,SAAS;gBACrB,MAAM,EAAE,YAAY;aACrB;SACF,CAAA;QAEM,gBAAU,GAAY,IAAI,CAAA;QAE1B,4BAAsB,GAAW,cAAc,CAAA;QAC/C,8BAAwB,GAAW,4DAA4D,CAAA;QAC/F,wBAAkB,GAAW,QAAQ,CAAA;QAM1C,KAAI,CAAC,YAAY,GAAG,IAAI,6BAAmB,CAAC,KAAI,EAAE,oBAAoB,CAAC,CAAA;;IACzE,CAAC;IACH,0BAAC;AAAD,CAAC,AA1CD,CAAyC,yBAAe,GA0CvD;AA1CY,kDAAmB"}
@@ -0,0 +1,26 @@
1
+ import { ProtocolBlockExplorer } from '@airgap/coinlib-core/utils/ProtocolBlockExplorer';
2
+ import { NetworkType, ProtocolNetwork } from '@airgap/coinlib-core/utils/ProtocolNetwork';
3
+ import { ProtocolOptions } from '@airgap/coinlib-core/utils/ProtocolOptions';
4
+ export declare class GroestlcoinProtocolNetworkExtras {
5
+ readonly indexerApi: string;
6
+ readonly network: any;
7
+ constructor(indexerApi?: string, network?: any);
8
+ }
9
+ export declare class CryptoidBlockExplorer implements ProtocolBlockExplorer {
10
+ readonly blockExplorer: string;
11
+ constructor(blockExplorer?: string);
12
+ getAddressLink(address: string): Promise<string>;
13
+ getTransactionLink(transactionId: string): Promise<string>;
14
+ }
15
+ export declare class GroestlcoinProtocolNetwork extends ProtocolNetwork<GroestlcoinProtocolNetworkExtras> {
16
+ constructor(name?: string, type?: NetworkType, rpcUrl?: string, blockExplorer?: ProtocolBlockExplorer, extras?: GroestlcoinProtocolNetworkExtras);
17
+ }
18
+ export declare class GroestlcoinProtocolConfig {
19
+ readonly bitcoinJSLib: any;
20
+ constructor(bitcoinJSLib?: any);
21
+ }
22
+ export declare class GroestlcoinProtocolOptions implements ProtocolOptions<GroestlcoinProtocolConfig> {
23
+ readonly network: GroestlcoinProtocolNetwork;
24
+ readonly config: GroestlcoinProtocolConfig;
25
+ constructor(network?: GroestlcoinProtocolNetwork, config?: GroestlcoinProtocolConfig);
26
+ }
@@ -0,0 +1,149 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
41
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
42
+ return new (P || (P = Promise))(function (resolve, reject) {
43
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
44
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
45
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
46
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
47
+ });
48
+ };
49
+ var __generator = (this && this.__generator) || function (thisArg, body) {
50
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
51
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
52
+ function verb(n) { return function (v) { return step([n, v]); }; }
53
+ function step(op) {
54
+ if (f) throw new TypeError("Generator is already executing.");
55
+ while (_) try {
56
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
57
+ if (y = 0, t) op = [op[0] & 2, t.value];
58
+ switch (op[0]) {
59
+ case 0: case 1: t = op; break;
60
+ case 4: _.label++; return { value: op[1], done: false };
61
+ case 5: _.label++; y = op[1]; op = [0]; continue;
62
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
63
+ default:
64
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
65
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
66
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
67
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
68
+ if (t[2]) _.ops.pop();
69
+ _.trys.pop(); continue;
70
+ }
71
+ op = body.call(thisArg, _);
72
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
73
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
74
+ }
75
+ };
76
+ Object.defineProperty(exports, "__esModule", { value: true });
77
+ exports.GroestlcoinProtocolOptions = exports.GroestlcoinProtocolConfig = exports.GroestlcoinProtocolNetwork = exports.CryptoidBlockExplorer = exports.GroestlcoinProtocolNetworkExtras = void 0;
78
+ // @ts-ignore
79
+ var bitGoUTXO = __importStar(require("@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index"));
80
+ var ProtocolNetwork_1 = require("@airgap/coinlib-core/utils/ProtocolNetwork");
81
+ // tslint:disable:max-classes-per-file
82
+ var MAINNET_NAME = 'Mainnet';
83
+ var NODE_URL = '';
84
+ var BLOCK_EXPLORER_URL = 'https://chainz.cryptoid.info/grs';
85
+ var INDEXER_API = "https://cors-proxy.airgap.prod.gke.papers.tech/proxy?url=".concat('https://blockbook.groestlcoin.org');
86
+ var GroestlcoinProtocolNetworkExtras = /** @class */ (function () {
87
+ function GroestlcoinProtocolNetworkExtras(indexerApi, network) {
88
+ if (indexerApi === void 0) { indexerApi = INDEXER_API; }
89
+ if (network === void 0) { network = bitGoUTXO.networks.groestlcoin; }
90
+ this.indexerApi = indexerApi;
91
+ this.network = network;
92
+ }
93
+ return GroestlcoinProtocolNetworkExtras;
94
+ }());
95
+ exports.GroestlcoinProtocolNetworkExtras = GroestlcoinProtocolNetworkExtras;
96
+ var CryptoidBlockExplorer = /** @class */ (function () {
97
+ function CryptoidBlockExplorer(blockExplorer) {
98
+ if (blockExplorer === void 0) { blockExplorer = BLOCK_EXPLORER_URL; }
99
+ this.blockExplorer = blockExplorer;
100
+ }
101
+ CryptoidBlockExplorer.prototype.getAddressLink = function (address) {
102
+ return __awaiter(this, void 0, void 0, function () {
103
+ return __generator(this, function (_a) {
104
+ return [2 /*return*/, "".concat(this.blockExplorer, "/address.dws?").concat(address, ".htm")];
105
+ });
106
+ });
107
+ };
108
+ CryptoidBlockExplorer.prototype.getTransactionLink = function (transactionId) {
109
+ return __awaiter(this, void 0, void 0, function () {
110
+ return __generator(this, function (_a) {
111
+ return [2 /*return*/, "".concat(this.blockExplorer, "/tx.dws?").concat(transactionId, ".htm")];
112
+ });
113
+ });
114
+ };
115
+ return CryptoidBlockExplorer;
116
+ }());
117
+ exports.CryptoidBlockExplorer = CryptoidBlockExplorer;
118
+ var GroestlcoinProtocolNetwork = /** @class */ (function (_super) {
119
+ __extends(GroestlcoinProtocolNetwork, _super);
120
+ function GroestlcoinProtocolNetwork(name, type, rpcUrl, blockExplorer, extras) {
121
+ if (name === void 0) { name = MAINNET_NAME; }
122
+ if (type === void 0) { type = ProtocolNetwork_1.NetworkType.MAINNET; }
123
+ if (rpcUrl === void 0) { rpcUrl = NODE_URL; }
124
+ if (blockExplorer === void 0) { blockExplorer = new CryptoidBlockExplorer(); }
125
+ if (extras === void 0) { extras = new GroestlcoinProtocolNetworkExtras(); }
126
+ return _super.call(this, name, type, rpcUrl, blockExplorer, extras) || this;
127
+ }
128
+ return GroestlcoinProtocolNetwork;
129
+ }(ProtocolNetwork_1.ProtocolNetwork));
130
+ exports.GroestlcoinProtocolNetwork = GroestlcoinProtocolNetwork;
131
+ var GroestlcoinProtocolConfig = /** @class */ (function () {
132
+ function GroestlcoinProtocolConfig(bitcoinJSLib) {
133
+ if (bitcoinJSLib === void 0) { bitcoinJSLib = bitGoUTXO; }
134
+ this.bitcoinJSLib = bitcoinJSLib;
135
+ }
136
+ return GroestlcoinProtocolConfig;
137
+ }());
138
+ exports.GroestlcoinProtocolConfig = GroestlcoinProtocolConfig;
139
+ var GroestlcoinProtocolOptions = /** @class */ (function () {
140
+ function GroestlcoinProtocolOptions(network, config) {
141
+ if (network === void 0) { network = new GroestlcoinProtocolNetwork(); }
142
+ if (config === void 0) { config = new GroestlcoinProtocolConfig(); }
143
+ this.network = network;
144
+ this.config = config;
145
+ }
146
+ return GroestlcoinProtocolOptions;
147
+ }());
148
+ exports.GroestlcoinProtocolOptions = GroestlcoinProtocolOptions;
149
+ //# sourceMappingURL=GroestlcoinProtocolOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroestlcoinProtocolOptions.js","sourceRoot":"","sources":["../../../src/v0/protocol/GroestlcoinProtocolOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,aAAa;AACb,iJAAoI;AAEpI,8EAAyF;AAGzF,sCAAsC;AAEtC,IAAM,YAAY,GAAW,SAAS,CAAA;AAEtC,IAAM,QAAQ,GAAW,EAAE,CAAA;AAE3B,IAAM,kBAAkB,GAAW,kCAAkC,CAAA;AACrE,IAAM,WAAW,GAAW,mEAA4D,mCAAmC,CAAE,CAAA;AAE7H;IACE,0CAA4B,UAAgC,EAAkB,OAA6C;QAA/F,2BAAA,EAAA,wBAAgC;QAAkB,wBAAA,EAAA,UAAe,SAAS,CAAC,QAAQ,CAAC,WAAW;QAA/F,eAAU,GAAV,UAAU,CAAsB;QAAkB,YAAO,GAAP,OAAO,CAAsC;IAAG,CAAC;IACjI,uCAAC;AAAD,CAAC,AAFD,IAEC;AAFY,4EAAgC;AAI7C;IACE,+BAA4B,aAA0C;QAA1C,8BAAA,EAAA,kCAA0C;QAA1C,kBAAa,GAAb,aAAa,CAA6B;IAAG,CAAC;IAE7D,8CAAc,GAA3B,UAA4B,OAAe;;;gBACzC,sBAAO,UAAG,IAAI,CAAC,aAAa,0BAAgB,OAAO,SAAM,EAAA;;;KAC1D;IACY,kDAAkB,GAA/B,UAAgC,aAAqB;;;gBACnD,sBAAO,UAAG,IAAI,CAAC,aAAa,qBAAW,aAAa,SAAM,EAAA;;;KAC3D;IACH,4BAAC;AAAD,CAAC,AATD,IASC;AATY,sDAAqB;AAWlC;IAAgD,8CAAiD;IAC/F,oCACE,IAA2B,EAC3B,IAAuC,EACvC,MAAyB,EACzB,aAAkE,EAClE,MAAiF;QAJjF,qBAAA,EAAA,mBAA2B;QAC3B,qBAAA,EAAA,OAAoB,6BAAW,CAAC,OAAO;QACvC,uBAAA,EAAA,iBAAyB;QACzB,8BAAA,EAAA,oBAA2C,qBAAqB,EAAE;QAClE,uBAAA,EAAA,aAA+C,gCAAgC,EAAE;eAEjF,kBAAM,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC;IAClD,CAAC;IACH,iCAAC;AAAD,CAAC,AAVD,CAAgD,iCAAe,GAU9D;AAVY,gEAA0B;AAYvC;IACE,mCAA4B,YAA6B;QAA7B,6BAAA,EAAA,wBAA6B;QAA7B,iBAAY,GAAZ,YAAY,CAAiB;IAAG,CAAC;IAC/D,gCAAC;AAAD,CAAC,AAFD,IAEC;AAFY,8DAAyB;AAItC;IACE,oCACkB,OAAsE,EACtE,MAAmE;QADnE,wBAAA,EAAA,cAA0C,0BAA0B,EAAE;QACtE,uBAAA,EAAA,aAAwC,yBAAyB,EAAE;QADnE,YAAO,GAAP,OAAO,CAA+D;QACtE,WAAM,GAAN,MAAM,CAA6D;IAClF,CAAC;IACN,iCAAC;AAAD,CAAC,AALD,IAKC;AALY,gEAA0B"}
@@ -0,0 +1,4 @@
1
+ import { BitcoinProtocol } from '@airgap/bitcoin';
2
+ export declare class GroestlcoinTestnetProtocol extends BitcoinProtocol {
3
+ constructor();
4
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ var desc = Object.getOwnPropertyDescriptor(m, k);
20
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
+ desc = { enumerable: true, get: function() { return m[k]; } };
22
+ }
23
+ Object.defineProperty(o, k2, desc);
24
+ }) : (function(o, m, k, k2) {
25
+ if (k2 === undefined) k2 = k;
26
+ o[k2] = m[k];
27
+ }));
28
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
30
+ }) : function(o, v) {
31
+ o["default"] = v;
32
+ });
33
+ var __importStar = (this && this.__importStar) || function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.GroestlcoinTestnetProtocol = void 0;
42
+ var bitcoin_1 = require("@airgap/bitcoin");
43
+ // @ts-ignore
44
+ var bitGoUTXO = __importStar(require("@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index"));
45
+ var ProtocolNetwork_1 = require("@airgap/coinlib-core/utils/ProtocolNetwork");
46
+ var GroestlcoinProtocolOptions_1 = require("./GroestlcoinProtocolOptions");
47
+ var GroestlcoinTestnetProtocol = /** @class */ (function (_super) {
48
+ __extends(GroestlcoinTestnetProtocol, _super);
49
+ function GroestlcoinTestnetProtocol() {
50
+ // super({ network: bitGoUTXO.networks.groestlcoin, baseApiUrl: 'https://blockbook-test.groestlcoin.org/' })
51
+ return _super.call(this, new GroestlcoinProtocolOptions_1.GroestlcoinProtocolOptions(new GroestlcoinProtocolOptions_1.GroestlcoinProtocolNetwork('Testnet', ProtocolNetwork_1.NetworkType.TESTNET, '', new GroestlcoinProtocolOptions_1.CryptoidBlockExplorer('https://chainz.cryptoid.info/grs-test'), new GroestlcoinProtocolOptions_1.GroestlcoinProtocolNetworkExtras('https://blockbook-test.groestlcoin.org/', bitGoUTXO.networks.groestlcoin)), new GroestlcoinProtocolOptions_1.GroestlcoinProtocolConfig())) || this;
52
+ }
53
+ return GroestlcoinTestnetProtocol;
54
+ }(bitcoin_1.BitcoinProtocol));
55
+ exports.GroestlcoinTestnetProtocol = GroestlcoinTestnetProtocol;
56
+ //# sourceMappingURL=GroestlcoinTestnetProtocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroestlcoinTestnetProtocol.js","sourceRoot":"","sources":["../../../src/v0/protocol/GroestlcoinTestnetProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAiD;AACjD,aAAa;AACb,iJAAoI;AACpI,8EAAwE;AAExE,2EAMqC;AAErC;IAAgD,8CAAe;IAC7D;QACE,4GAA4G;eAC5G,kBACE,IAAI,uDAA0B,CAC5B,IAAI,uDAA0B,CAC5B,SAAS,EACT,6BAAW,CAAC,OAAO,EACnB,EAAE,EACF,IAAI,kDAAqB,CAAC,uCAAuC,CAAC,EAClE,IAAI,6DAAgC,CAAC,yCAAyC,EAAE,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAChH,EACD,IAAI,sDAAyB,EAAE,CAChC,CACF;IACH,CAAC;IACH,iCAAC;AAAD,CAAC,AAhBD,CAAgD,yBAAe,GAgB9D;AAhBY,gEAA0B"}
@@ -0,0 +1,11 @@
1
+ import { AirGapBlockExplorer, BlockExplorerMetadata } from '@airgap/module-kit';
2
+ export declare const CRYPTOID_MAINNET_URL = "https://chainz.cryptoid.info/grs";
3
+ export declare const CRYPTOID_TESTNET_URL = "https://chainz.cryptoid.info/grs-test";
4
+ export declare class CryptoIDBlockExplorer implements AirGapBlockExplorer {
5
+ readonly url: string;
6
+ constructor(url?: string);
7
+ private readonly metadata;
8
+ getMetadata(): Promise<BlockExplorerMetadata>;
9
+ createAddressUrl(address: string): Promise<string>;
10
+ createTransactionUrl(transactionId: string): Promise<string>;
11
+ }
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CryptoIDBlockExplorer = exports.CRYPTOID_TESTNET_URL = exports.CRYPTOID_MAINNET_URL = void 0;
40
+ exports.CRYPTOID_MAINNET_URL = 'https://chainz.cryptoid.info/grs';
41
+ exports.CRYPTOID_TESTNET_URL = 'https://chainz.cryptoid.info/grs-test';
42
+ var CryptoIDBlockExplorer = /** @class */ (function () {
43
+ function CryptoIDBlockExplorer(url) {
44
+ if (url === void 0) { url = exports.CRYPTOID_MAINNET_URL; }
45
+ this.url = url;
46
+ this.metadata = {
47
+ name: 'cryptoID',
48
+ url: this.url
49
+ };
50
+ }
51
+ CryptoIDBlockExplorer.prototype.getMetadata = function () {
52
+ return __awaiter(this, void 0, void 0, function () {
53
+ return __generator(this, function (_a) {
54
+ return [2 /*return*/, this.metadata];
55
+ });
56
+ });
57
+ };
58
+ CryptoIDBlockExplorer.prototype.createAddressUrl = function (address) {
59
+ return __awaiter(this, void 0, void 0, function () {
60
+ return __generator(this, function (_a) {
61
+ return [2 /*return*/, "".concat(this.url, "/address.dws?").concat(address, ".htm")];
62
+ });
63
+ });
64
+ };
65
+ CryptoIDBlockExplorer.prototype.createTransactionUrl = function (transactionId) {
66
+ return __awaiter(this, void 0, void 0, function () {
67
+ return __generator(this, function (_a) {
68
+ return [2 /*return*/, "".concat(this.url, "/tx.dws?").concat(transactionId, ".htm")];
69
+ });
70
+ });
71
+ };
72
+ return CryptoIDBlockExplorer;
73
+ }());
74
+ exports.CryptoIDBlockExplorer = CryptoIDBlockExplorer;
75
+ //# sourceMappingURL=CryptoIDBlockExplorer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CryptoIDBlockExplorer.js","sourceRoot":"","sources":["../../../src/v1/block-explorer/CryptoIDBlockExplorer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEa,QAAA,oBAAoB,GAAG,kCAAkC,CAAA;AACzD,QAAA,oBAAoB,GAAG,uCAAuC,CAAA;AAE3E;IACE,+BAAmC,GAAkC;QAAlC,oBAAA,EAAA,MAAc,4BAAoB;QAAlC,QAAG,GAAH,GAAG,CAA+B;QAEpD,aAAQ,GAA0B;YACjD,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAA;IALuE,CAAC;IAO5D,2CAAW,GAAxB;;;gBACE,sBAAO,IAAI,CAAC,QAAQ,EAAA;;;KACrB;IAEY,gDAAgB,GAA7B,UAA8B,OAAe;;;gBAC3C,sBAAO,UAAG,IAAI,CAAC,GAAG,0BAAgB,OAAO,SAAM,EAAA;;;KAChD;IAEY,oDAAoB,GAAjC,UAAkC,aAAqB;;;gBACrD,sBAAO,UAAG,IAAI,CAAC,GAAG,qBAAW,aAAa,SAAM,EAAA;;;KACjD;IACH,4BAAC;AAAD,CAAC,AAnBD,IAmBC;AAnBY,sDAAqB"}
package/v1/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { CryptoIDBlockExplorer } from './block-explorer/CryptoIDBlockExplorer';
2
+ import { GroestlcoinModule } from './module/GroestlcoinModule';
3
+ import { createGroestlcoinProtocol, GroestlcoinProtocol } from './protocol/GroestlcoinProtocol';
4
+ import { GroestlcoinCryptoConfiguration } from './types/crypto';
5
+ import { GroestlcoinProtocolNetwork, GroestlcoinProtocolOptions, GroestlcoinUnits } from './types/protocol';
6
+ import { GroestlcoinSignedTransaction, GroestlcoinTransactionCursor, GroestlcoinUnsignedTransaction } from './types/transaction';
7
+ export { GroestlcoinModule };
8
+ export { GroestlcoinProtocol, createGroestlcoinProtocol };
9
+ export { CryptoIDBlockExplorer };
10
+ export { GroestlcoinCryptoConfiguration, GroestlcoinUnits, GroestlcoinProtocolNetwork, GroestlcoinProtocolOptions, GroestlcoinSignedTransaction, GroestlcoinUnsignedTransaction, GroestlcoinTransactionCursor };
package/v1/index.js ADDED
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CryptoIDBlockExplorer = exports.createGroestlcoinProtocol = exports.GroestlcoinModule = void 0;
4
+ var CryptoIDBlockExplorer_1 = require("./block-explorer/CryptoIDBlockExplorer");
5
+ Object.defineProperty(exports, "CryptoIDBlockExplorer", { enumerable: true, get: function () { return CryptoIDBlockExplorer_1.CryptoIDBlockExplorer; } });
6
+ var GroestlcoinModule_1 = require("./module/GroestlcoinModule");
7
+ Object.defineProperty(exports, "GroestlcoinModule", { enumerable: true, get: function () { return GroestlcoinModule_1.GroestlcoinModule; } });
8
+ var GroestlcoinProtocol_1 = require("./protocol/GroestlcoinProtocol");
9
+ Object.defineProperty(exports, "createGroestlcoinProtocol", { enumerable: true, get: function () { return GroestlcoinProtocol_1.createGroestlcoinProtocol; } });
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":";;;AAAA,gFAA8E;AAiBrE,sGAjBA,6CAAqB,OAiBA;AAhB9B,gEAA8D;AAQrD,kGARA,qCAAiB,OAQA;AAP1B,sEAA+F;AAWjE,0GAXrB,+CAAyB,OAWqB"}
@@ -0,0 +1,17 @@
1
+ import { MainProtocolSymbols } from '@airgap/coinlib-core';
2
+ import { AirGapModule, AirGapV3SerializerCompanion, ProtocolConfiguration } from '@airgap/module-kit';
3
+ import { BlockExplorer } from '@airgap/module-kit/block-explorer/block-explorer';
4
+ import { OfflineProtocol, OnlineProtocol } from '@airgap/module-kit/protocol/protocol';
5
+ declare type SupportedProtocols = MainProtocolSymbols.GRS;
6
+ export declare class GroestlcoinModule implements AirGapModule<{
7
+ Protocols: SupportedProtocols;
8
+ }> {
9
+ private readonly networkRegistries;
10
+ readonly supportedProtocols: Record<SupportedProtocols, ProtocolConfiguration>;
11
+ createOfflineProtocol(identifier: SupportedProtocols): Promise<OfflineProtocol | undefined>;
12
+ createOnlineProtocol(identifier: SupportedProtocols, networkId?: string): Promise<OnlineProtocol | undefined>;
13
+ createBlockExplorer(identifier: SupportedProtocols, networkId?: string): Promise<BlockExplorer | undefined>;
14
+ createV3SerializerCompanion(): Promise<AirGapV3SerializerCompanion>;
15
+ private createProtocol;
16
+ }
17
+ export {};