@airgap/groestlcoin 0.13.45-beta.3 → 0.13.45-beta.4
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/package.json +5 -5
- package/v0/index.js +5 -5
- package/v0/index.js.map +1 -1
- package/v0/protocol/GroestlcoinProtocol.js +49 -40
- package/v0/protocol/GroestlcoinProtocol.js.map +1 -1
- package/v0/protocol/GroestlcoinProtocolOptions.js +111 -45
- package/v0/protocol/GroestlcoinProtocolOptions.js.map +1 -1
- package/v0/protocol/GroestlcoinTestnetProtocol.js +32 -25
- package/v0/protocol/GroestlcoinTestnetProtocol.js.map +1 -1
- package/v1/block-explorer/CryptoIDBlockExplorer.js +61 -12
- package/v1/block-explorer/CryptoIDBlockExplorer.js.map +1 -1
- package/v1/index.js +3 -3
- package/v1/index.js.map +1 -1
- package/v1/module/GroestlcoinModule.d.ts +1 -1
- package/v1/module/GroestlcoinModule.js +95 -37
- package/v1/module/GroestlcoinModule.js.map +1 -1
- package/v1/module.js +3 -2
- package/v1/module.js.map +1 -1
- package/v1/protocol/GroestlcoinProtocol.js +426 -195
- package/v1/protocol/GroestlcoinProtocol.js.map +1 -1
- package/v1/serializer/v3/schemas/converter/transaction-converter.js +6 -5
- package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -1
- package/v1/serializer/v3/serializer-companion.js +148 -69
- package/v1/serializer/v3/serializer-companion.js.map +1 -1
- package/v1/serializer/v3/validators/transaction-validator.js +23 -3
- package/v1/serializer/v3/validators/transaction-validator.js.map +1 -1
- package/v1/serializer/v3/validators/validators.js +1 -1
- package/v1/serializer/v3/validators/validators.js.map +1 -1
- package/v1/types/crypto.d.ts +1 -1
- package/v1/types/protocol.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airgap/groestlcoin",
|
|
3
|
-
"version": "0.13.45-beta.
|
|
3
|
+
"version": "0.13.45-beta.4",
|
|
4
4
|
"description": "The @airgap/groestlcoin is a Groestlcoin implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
},
|
|
31
31
|
"author": "Papers AG <contact@papers.ch> (https://papers.ch)",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@airgap/bitcoin": "^0.13.45-beta.
|
|
34
|
-
"@airgap/coinlib-core": "^0.13.45-beta.
|
|
35
|
-
"@airgap/module-kit": "^0.13.45-beta.
|
|
36
|
-
"@airgap/serializer": "^0.13.45-beta.
|
|
33
|
+
"@airgap/bitcoin": "^0.13.45-beta.4",
|
|
34
|
+
"@airgap/coinlib-core": "^0.13.45-beta.4",
|
|
35
|
+
"@airgap/module-kit": "^0.13.45-beta.4",
|
|
36
|
+
"@airgap/serializer": "^0.13.45-beta.4"
|
|
37
37
|
},
|
|
38
38
|
"localDependencies": {
|
|
39
39
|
"groestlcoinjs-message": "2.1.0"
|
package/v0/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GroestlcoinProtocolOptions = exports.GroestlcoinProtocolConfig = exports.GroestlcoinProtocolNetwork = exports.CryptoidBlockExplorer = exports.GroestlcoinProtocolNetworkExtras = exports.GroestlcoinTestnetProtocol = exports.GroestlcoinProtocol = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var coinlib_core_1 = require("@airgap/coinlib-core");
|
|
5
|
+
var serializer_1 = require("@airgap/serializer");
|
|
6
|
+
var GroestlcoinProtocol_1 = require("./protocol/GroestlcoinProtocol");
|
|
7
7
|
Object.defineProperty(exports, "GroestlcoinProtocol", { enumerable: true, get: function () { return GroestlcoinProtocol_1.GroestlcoinProtocol; } });
|
|
8
|
-
|
|
8
|
+
var GroestlcoinProtocolOptions_1 = require("./protocol/GroestlcoinProtocolOptions");
|
|
9
9
|
Object.defineProperty(exports, "CryptoidBlockExplorer", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.CryptoidBlockExplorer; } });
|
|
10
10
|
Object.defineProperty(exports, "GroestlcoinProtocolConfig", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.GroestlcoinProtocolConfig; } });
|
|
11
11
|
Object.defineProperty(exports, "GroestlcoinProtocolNetwork", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.GroestlcoinProtocolNetwork; } });
|
|
12
12
|
Object.defineProperty(exports, "GroestlcoinProtocolNetworkExtras", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.GroestlcoinProtocolNetworkExtras; } });
|
|
13
13
|
Object.defineProperty(exports, "GroestlcoinProtocolOptions", { enumerable: true, get: function () { return GroestlcoinProtocolOptions_1.GroestlcoinProtocolOptions; } });
|
|
14
|
-
|
|
14
|
+
var GroestlcoinTestnetProtocol_1 = require("./protocol/GroestlcoinTestnetProtocol");
|
|
15
15
|
Object.defineProperty(exports, "GroestlcoinTestnetProtocol", { enumerable: true, get: function () { return GroestlcoinTestnetProtocol_1.GroestlcoinTestnetProtocol; } });
|
|
16
16
|
// Serializer
|
|
17
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);
|
package/v0/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v0/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
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"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
18
|
if (k2 === undefined) k2 = k;
|
|
4
19
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -15,47 +30,39 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
30
|
}) : function(o, v) {
|
|
16
31
|
o["default"] = v;
|
|
17
32
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
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
|
+
};
|
|
35
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
41
|
exports.GroestlcoinProtocol = void 0;
|
|
37
|
-
|
|
42
|
+
var v0_1 = require("@airgap/bitcoin/v0");
|
|
38
43
|
// @ts-ignore
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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 = {
|
|
51
58
|
low: '0.00002',
|
|
52
59
|
medium: '0.00004',
|
|
53
60
|
high: '0.00005'
|
|
54
61
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
62
|
+
_this.decimals = 8;
|
|
63
|
+
_this.feeDecimals = 8;
|
|
64
|
+
_this.identifier = ProtocolSymbols_1.MainProtocolSymbols.GRS;
|
|
65
|
+
_this.units = [
|
|
59
66
|
{
|
|
60
67
|
unitSymbol: 'GRS',
|
|
61
68
|
factor: '1'
|
|
@@ -69,12 +76,14 @@ class GroestlcoinProtocol extends v0_1.BitcoinProtocol {
|
|
|
69
76
|
factor: '0.00000001'
|
|
70
77
|
}
|
|
71
78
|
];
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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 v0_1.BitcoinCryptoClient(_this, groestlcoinJSMessage);
|
|
84
|
+
return _this;
|
|
77
85
|
}
|
|
78
|
-
|
|
86
|
+
return GroestlcoinProtocol;
|
|
87
|
+
}(v0_1.BitcoinProtocol));
|
|
79
88
|
exports.GroestlcoinProtocol = GroestlcoinProtocol;
|
|
80
89
|
//# sourceMappingURL=GroestlcoinProtocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroestlcoinProtocol.js","sourceRoot":"","sources":["../../../src/v0/protocol/GroestlcoinProtocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GroestlcoinProtocol.js","sourceRoot":"","sources":["../../../src/v0/protocol/GroestlcoinProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAyE;AAEzE,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,wBAAmB,CAAC,KAAI,EAAE,oBAAoB,CAAC,CAAA;;IACzE,CAAC;IACH,0BAAC;AAAD,CAAC,AA1CD,CAAyC,oBAAe,GA0CvD;AA1CY,kDAAmB"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
18
|
if (k2 === undefined) k2 = k;
|
|
4
19
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -15,69 +30,120 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
30
|
}) : function(o, v) {
|
|
16
31
|
o["default"] = v;
|
|
17
32
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
27
|
-
return function (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
+
};
|
|
35
76
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
77
|
exports.GroestlcoinProtocolOptions = exports.GroestlcoinProtocolConfig = exports.GroestlcoinProtocolNetwork = exports.CryptoidBlockExplorer = exports.GroestlcoinProtocolNetworkExtras = void 0;
|
|
37
78
|
// @ts-ignore
|
|
38
|
-
|
|
39
|
-
|
|
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");
|
|
40
81
|
// tslint:disable:max-classes-per-file
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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; }
|
|
47
90
|
this.indexerApi = indexerApi;
|
|
48
91
|
this.network = network;
|
|
49
92
|
}
|
|
50
|
-
|
|
93
|
+
return GroestlcoinProtocolNetworkExtras;
|
|
94
|
+
}());
|
|
51
95
|
exports.GroestlcoinProtocolNetworkExtras = GroestlcoinProtocolNetworkExtras;
|
|
52
|
-
|
|
53
|
-
|
|
96
|
+
var CryptoidBlockExplorer = /** @class */ (function () {
|
|
97
|
+
function CryptoidBlockExplorer(blockExplorer) {
|
|
98
|
+
if (blockExplorer === void 0) { blockExplorer = BLOCK_EXPLORER_URL; }
|
|
54
99
|
this.blockExplorer = blockExplorer;
|
|
55
100
|
}
|
|
56
|
-
|
|
57
|
-
return
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
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
|
+
}());
|
|
63
117
|
exports.CryptoidBlockExplorer = CryptoidBlockExplorer;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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;
|
|
67
127
|
}
|
|
68
|
-
|
|
128
|
+
return GroestlcoinProtocolNetwork;
|
|
129
|
+
}(ProtocolNetwork_1.ProtocolNetwork));
|
|
69
130
|
exports.GroestlcoinProtocolNetwork = GroestlcoinProtocolNetwork;
|
|
70
|
-
|
|
71
|
-
|
|
131
|
+
var GroestlcoinProtocolConfig = /** @class */ (function () {
|
|
132
|
+
function GroestlcoinProtocolConfig(bitcoinJSLib) {
|
|
133
|
+
if (bitcoinJSLib === void 0) { bitcoinJSLib = bitGoUTXO; }
|
|
72
134
|
this.bitcoinJSLib = bitcoinJSLib;
|
|
73
135
|
}
|
|
74
|
-
|
|
136
|
+
return GroestlcoinProtocolConfig;
|
|
137
|
+
}());
|
|
75
138
|
exports.GroestlcoinProtocolConfig = GroestlcoinProtocolConfig;
|
|
76
|
-
|
|
77
|
-
|
|
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(); }
|
|
78
143
|
this.network = network;
|
|
79
144
|
this.config = config;
|
|
80
145
|
}
|
|
81
|
-
|
|
146
|
+
return GroestlcoinProtocolOptions;
|
|
147
|
+
}());
|
|
82
148
|
exports.GroestlcoinProtocolOptions = GroestlcoinProtocolOptions;
|
|
83
149
|
//# sourceMappingURL=GroestlcoinProtocolOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroestlcoinProtocolOptions.js","sourceRoot":"","sources":["../../../src/v0/protocol/GroestlcoinProtocolOptions.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
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
|
+
})();
|
|
2
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
18
|
if (k2 === undefined) k2 = k;
|
|
4
19
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -15,35 +30,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
30
|
}) : function(o, v) {
|
|
16
31
|
o["default"] = v;
|
|
17
32
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
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
|
+
};
|
|
35
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
41
|
exports.GroestlcoinTestnetProtocol = void 0;
|
|
37
|
-
|
|
42
|
+
var v0_1 = require("@airgap/bitcoin/v0");
|
|
38
43
|
// @ts-ignore
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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() {
|
|
44
50
|
// super({ network: bitGoUTXO.networks.groestlcoin, baseApiUrl: 'https://blockbook-test.groestlcoin.org/' })
|
|
45
|
-
|
|
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;
|
|
46
52
|
}
|
|
47
|
-
|
|
53
|
+
return GroestlcoinTestnetProtocol;
|
|
54
|
+
}(v0_1.BitcoinProtocol));
|
|
48
55
|
exports.GroestlcoinTestnetProtocol = GroestlcoinTestnetProtocol;
|
|
49
56
|
//# sourceMappingURL=GroestlcoinTestnetProtocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GroestlcoinTestnetProtocol.js","sourceRoot":"","sources":["../../../src/v0/protocol/GroestlcoinTestnetProtocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GroestlcoinTestnetProtocol.js","sourceRoot":"","sources":["../../../src/v0/protocol/GroestlcoinTestnetProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoD;AACpD,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,oBAAe,GAgB9D;AAhBY,gEAA0B"}
|
|
@@ -1,23 +1,72 @@
|
|
|
1
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
|
+
};
|
|
2
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
39
|
exports.CryptoIDBlockExplorer = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
40
|
+
var CryptoIDBlockExplorer = /** @class */ (function () {
|
|
41
|
+
function CryptoIDBlockExplorer(url) {
|
|
6
42
|
this.url = url;
|
|
7
43
|
this.metadata = {
|
|
8
44
|
name: 'cryptoID',
|
|
9
45
|
url: this.url
|
|
10
46
|
};
|
|
11
47
|
}
|
|
12
|
-
|
|
13
|
-
return this
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
48
|
+
CryptoIDBlockExplorer.prototype.getMetadata = function () {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
50
|
+
return __generator(this, function (_a) {
|
|
51
|
+
return [2 /*return*/, this.metadata];
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
CryptoIDBlockExplorer.prototype.createAddressUrl = function (address) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
57
|
+
return __generator(this, function (_a) {
|
|
58
|
+
return [2 /*return*/, "".concat(this.url, "/address.dws?").concat(address, ".htm")];
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
CryptoIDBlockExplorer.prototype.createTransactionUrl = function (transactionId) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
64
|
+
return __generator(this, function (_a) {
|
|
65
|
+
return [2 /*return*/, "".concat(this.url, "/tx.dws?").concat(transactionId, ".htm")];
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
return CryptoIDBlockExplorer;
|
|
70
|
+
}());
|
|
22
71
|
exports.CryptoIDBlockExplorer = CryptoIDBlockExplorer;
|
|
23
72
|
//# sourceMappingURL=CryptoIDBlockExplorer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CryptoIDBlockExplorer.js","sourceRoot":"","sources":["../../../src/v1/block-explorer/CryptoIDBlockExplorer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CryptoIDBlockExplorer.js","sourceRoot":"","sources":["../../../src/v1/block-explorer/CryptoIDBlockExplorer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;IACE,+BAAmC,GAAW;QAAX,QAAG,GAAH,GAAG,CAAQ;QAE7B,aAAQ,GAA0B;YACjD,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAA;IALgD,CAAC;IAOrC,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.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CryptoIDBlockExplorer = exports.createGroestlcoinProtocol = exports.GroestlcoinModule = void 0;
|
|
4
|
-
|
|
4
|
+
var CryptoIDBlockExplorer_1 = require("./block-explorer/CryptoIDBlockExplorer");
|
|
5
5
|
Object.defineProperty(exports, "CryptoIDBlockExplorer", { enumerable: true, get: function () { return CryptoIDBlockExplorer_1.CryptoIDBlockExplorer; } });
|
|
6
|
-
|
|
6
|
+
var GroestlcoinModule_1 = require("./module/GroestlcoinModule");
|
|
7
7
|
Object.defineProperty(exports, "GroestlcoinModule", { enumerable: true, get: function () { return GroestlcoinModule_1.GroestlcoinModule; } });
|
|
8
|
-
|
|
8
|
+
var GroestlcoinProtocol_1 = require("./protocol/GroestlcoinProtocol");
|
|
9
9
|
Object.defineProperty(exports, "createGroestlcoinProtocol", { enumerable: true, get: function () { return GroestlcoinProtocol_1.createGroestlcoinProtocol; } });
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
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"}
|
|
@@ -3,7 +3,7 @@ import { AirGapModule, AirGapV3SerializerCompanion, ProtocolConfiguration } from
|
|
|
3
3
|
import { BlockExplorer } from '@airgap/module-kit/block-explorer/block-explorer';
|
|
4
4
|
import { OfflineProtocol, OnlineProtocol } from '@airgap/module-kit/protocol/protocol';
|
|
5
5
|
import { GroestlcoinProtocolNetwork } from '../types/protocol';
|
|
6
|
-
type SupportedProtocols = MainProtocolSymbols.GRS;
|
|
6
|
+
declare type SupportedProtocols = MainProtocolSymbols.GRS;
|
|
7
7
|
export declare class GroestlcoinModule implements AirGapModule<{
|
|
8
8
|
Protocols: SupportedProtocols;
|
|
9
9
|
ProtocolNetwork: GroestlcoinProtocolNetwork;
|