@airgap/groestlcoin 0.13.45-beta.2 → 0.13.45-beta.3
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 +40 -49
- package/v0/protocol/GroestlcoinProtocol.js.map +1 -1
- package/v0/protocol/GroestlcoinProtocolOptions.js +45 -111
- package/v0/protocol/GroestlcoinProtocolOptions.js.map +1 -1
- package/v0/protocol/GroestlcoinTestnetProtocol.js +25 -32
- package/v0/protocol/GroestlcoinTestnetProtocol.js.map +1 -1
- package/v1/block-explorer/CryptoIDBlockExplorer.js +12 -61
- 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 +37 -95
- package/v1/module/GroestlcoinModule.js.map +1 -1
- package/v1/module.js +2 -3
- package/v1/module.js.map +1 -1
- package/v1/protocol/GroestlcoinProtocol.js +195 -426
- package/v1/protocol/GroestlcoinProtocol.js.map +1 -1
- package/v1/serializer/v3/schemas/converter/transaction-converter.js +5 -6
- package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -1
- package/v1/serializer/v3/serializer-companion.js +69 -148
- package/v1/serializer/v3/serializer-companion.js.map +1 -1
- package/v1/serializer/v3/validators/transaction-validator.js +3 -23
- 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.3",
|
|
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.3",
|
|
34
|
+
"@airgap/coinlib-core": "^0.13.45-beta.3",
|
|
35
|
+
"@airgap/module-kit": "^0.13.45-beta.3",
|
|
36
|
+
"@airgap/serializer": "^0.13.45-beta.3"
|
|
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
|
+
const coinlib_core_1 = require("@airgap/coinlib-core");
|
|
5
|
+
const serializer_1 = require("@airgap/serializer");
|
|
6
|
+
const GroestlcoinProtocol_1 = require("./protocol/GroestlcoinProtocol");
|
|
7
7
|
Object.defineProperty(exports, "GroestlcoinProtocol", { enumerable: true, get: function () { return GroestlcoinProtocol_1.GroestlcoinProtocol; } });
|
|
8
|
-
|
|
8
|
+
const 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
|
+
const 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,uDAA0D;AAC1D,mDAA6E;AAE7E,wEAAoE;AAWlE,oGAXO,yCAAmB,OAWP;AAVrB,sFAM8C;AAO5C,sGAZA,kDAAqB,OAYA;AAErB,0GAbA,sDAAyB,OAaA;AADzB,2GAXA,uDAA0B,OAWA;AAF1B,iHARA,6DAAgC,OAQA;AAIhC,2GAXA,uDAA0B,OAWA;AAT5B,sFAAkF;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,19 +1,4 @@
|
|
|
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
|
-
})();
|
|
17
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
3
|
if (k2 === undefined) k2 = k;
|
|
19
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -30,39 +15,47 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
15
|
}) : function(o, v) {
|
|
31
16
|
o["default"] = v;
|
|
32
17
|
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
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
|
+
})();
|
|
40
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
36
|
exports.GroestlcoinProtocol = void 0;
|
|
42
|
-
|
|
37
|
+
const v0_1 = require("@airgap/bitcoin/v0");
|
|
43
38
|
// @ts-ignore
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
_this.feeSymbol = 'grs';
|
|
57
|
-
_this.feeDefaults = {
|
|
39
|
+
const groestlcoinJSMessage = __importStar(require("@airgap/coinlib-core/dependencies/src/groestlcoinjs-message-2.1.0/index"));
|
|
40
|
+
const ProtocolSymbols_1 = require("@airgap/coinlib-core/utils/ProtocolSymbols");
|
|
41
|
+
const GroestlcoinProtocolOptions_1 = require("./GroestlcoinProtocolOptions");
|
|
42
|
+
class GroestlcoinProtocol extends v0_1.BitcoinProtocol {
|
|
43
|
+
constructor(options = new GroestlcoinProtocolOptions_1.GroestlcoinProtocolOptions()) {
|
|
44
|
+
super(options);
|
|
45
|
+
this.options = options;
|
|
46
|
+
this.symbol = 'GRS';
|
|
47
|
+
this.name = 'Groestlcoin';
|
|
48
|
+
this.marketSymbol = 'grs';
|
|
49
|
+
this.feeSymbol = 'grs';
|
|
50
|
+
this.feeDefaults = {
|
|
58
51
|
low: '0.00002',
|
|
59
52
|
medium: '0.00004',
|
|
60
53
|
high: '0.00005'
|
|
61
54
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
55
|
+
this.decimals = 8;
|
|
56
|
+
this.feeDecimals = 8;
|
|
57
|
+
this.identifier = ProtocolSymbols_1.MainProtocolSymbols.GRS;
|
|
58
|
+
this.units = [
|
|
66
59
|
{
|
|
67
60
|
unitSymbol: 'GRS',
|
|
68
61
|
factor: '1'
|
|
@@ -76,14 +69,12 @@ var GroestlcoinProtocol = /** @class */ (function (_super) {
|
|
|
76
69
|
factor: '0.00000001'
|
|
77
70
|
}
|
|
78
71
|
];
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return _this;
|
|
72
|
+
this.supportsHD = true;
|
|
73
|
+
this.standardDerivationPath = `m/44'/17'/0'`;
|
|
74
|
+
this.addressValidationPattern = '^([F3][a-km-zA-HJ-NP-Z1-9]{33}|grs1[a-zA-HJ-NP-Z0-9]{39})$';
|
|
75
|
+
this.addressPlaceholder = 'Fdb...';
|
|
76
|
+
this.cryptoClient = new v0_1.BitcoinCryptoClient(this, groestlcoinJSMessage);
|
|
85
77
|
}
|
|
86
|
-
|
|
87
|
-
}(v0_1.BitcoinProtocol));
|
|
78
|
+
}
|
|
88
79
|
exports.GroestlcoinProtocol = GroestlcoinProtocol;
|
|
89
80
|
//# 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,2CAAyE;AAEzE,aAAa;AACb,8HAA+G;AAE/G,gFAAiG;AAEjG,6EAAyE;AAEzE,MAAa,mBAAoB,SAAQ,oBAAe;IAsCtD,YAA4B,UAAsC,IAAI,uDAA0B,EAAE;QAChG,KAAK,CAAC,OAAO,CAAC,CAAA;QADY,YAAO,GAAP,OAAO,CAA+D;QArC3F,WAAM,GAAW,KAAK,CAAA;QACtB,SAAI,GAAW,aAAa,CAAA;QAC5B,iBAAY,GAAW,KAAK,CAAA;QAE5B,cAAS,GAAW,KAAK,CAAA;QAEzB,gBAAW,GAAgB;YAChC,GAAG,EAAE,SAAS;YACd,MAAM,EAAE,SAAS;YACjB,IAAI,EAAE,SAAS;SAChB,CAAA;QACM,aAAQ,GAAW,CAAC,CAAA;QACpB,gBAAW,GAAW,CAAC,CAAA;QACvB,eAAU,GAAoB,qCAAmB,CAAC,GAAG,CAAA;QACrD,UAAK,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,eAAU,GAAY,IAAI,CAAA;QAE1B,2BAAsB,GAAW,cAAc,CAAA;QAC/C,6BAAwB,GAAW,4DAA4D,CAAA;QAC/F,uBAAkB,GAAW,QAAQ,CAAA;QAM1C,IAAI,CAAC,YAAY,GAAG,IAAI,wBAAmB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAA;IACzE,CAAC;CACF;AA1CD,kDA0CC"}
|
|
@@ -1,19 +1,4 @@
|
|
|
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
|
-
})();
|
|
17
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
3
|
if (k2 === undefined) k2 = k;
|
|
19
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -30,120 +15,69 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
15
|
}) : function(o, v) {
|
|
31
16
|
o["default"] = v;
|
|
32
17
|
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
49
|
-
|
|
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
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
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
|
+
})();
|
|
76
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
36
|
exports.GroestlcoinProtocolOptions = exports.GroestlcoinProtocolConfig = exports.GroestlcoinProtocolNetwork = exports.CryptoidBlockExplorer = exports.GroestlcoinProtocolNetworkExtras = void 0;
|
|
78
37
|
// @ts-ignore
|
|
79
|
-
|
|
80
|
-
|
|
38
|
+
const bitGoUTXO = __importStar(require("@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index"));
|
|
39
|
+
const ProtocolNetwork_1 = require("@airgap/coinlib-core/utils/ProtocolNetwork");
|
|
81
40
|
// tslint:disable:max-classes-per-file
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
if (indexerApi === void 0) { indexerApi = INDEXER_API; }
|
|
89
|
-
if (network === void 0) { network = bitGoUTXO.networks.groestlcoin; }
|
|
41
|
+
const MAINNET_NAME = 'Mainnet';
|
|
42
|
+
const NODE_URL = '';
|
|
43
|
+
const BLOCK_EXPLORER_URL = 'https://chainz.cryptoid.info/grs';
|
|
44
|
+
const INDEXER_API = `https://cors-proxy.airgap.prod.gke.papers.tech/proxy?url=${'https://blockbook.groestlcoin.org'}`;
|
|
45
|
+
class GroestlcoinProtocolNetworkExtras {
|
|
46
|
+
constructor(indexerApi = INDEXER_API, network = bitGoUTXO.networks.groestlcoin) {
|
|
90
47
|
this.indexerApi = indexerApi;
|
|
91
48
|
this.network = network;
|
|
92
49
|
}
|
|
93
|
-
|
|
94
|
-
}());
|
|
50
|
+
}
|
|
95
51
|
exports.GroestlcoinProtocolNetworkExtras = GroestlcoinProtocolNetworkExtras;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if (blockExplorer === void 0) { blockExplorer = BLOCK_EXPLORER_URL; }
|
|
52
|
+
class CryptoidBlockExplorer {
|
|
53
|
+
constructor(blockExplorer = BLOCK_EXPLORER_URL) {
|
|
99
54
|
this.blockExplorer = blockExplorer;
|
|
100
55
|
}
|
|
101
|
-
|
|
102
|
-
return
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
}());
|
|
56
|
+
async getAddressLink(address) {
|
|
57
|
+
return `${this.blockExplorer}/address.dws?${address}.htm`;
|
|
58
|
+
}
|
|
59
|
+
async getTransactionLink(transactionId) {
|
|
60
|
+
return `${this.blockExplorer}/tx.dws?${transactionId}.htm`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
117
63
|
exports.CryptoidBlockExplorer = CryptoidBlockExplorer;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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;
|
|
64
|
+
class GroestlcoinProtocolNetwork extends ProtocolNetwork_1.ProtocolNetwork {
|
|
65
|
+
constructor(name = MAINNET_NAME, type = ProtocolNetwork_1.NetworkType.MAINNET, rpcUrl = NODE_URL, blockExplorer = new CryptoidBlockExplorer(), extras = new GroestlcoinProtocolNetworkExtras()) {
|
|
66
|
+
super(name, type, rpcUrl, blockExplorer, extras);
|
|
127
67
|
}
|
|
128
|
-
|
|
129
|
-
}(ProtocolNetwork_1.ProtocolNetwork));
|
|
68
|
+
}
|
|
130
69
|
exports.GroestlcoinProtocolNetwork = GroestlcoinProtocolNetwork;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if (bitcoinJSLib === void 0) { bitcoinJSLib = bitGoUTXO; }
|
|
70
|
+
class GroestlcoinProtocolConfig {
|
|
71
|
+
constructor(bitcoinJSLib = bitGoUTXO) {
|
|
134
72
|
this.bitcoinJSLib = bitcoinJSLib;
|
|
135
73
|
}
|
|
136
|
-
|
|
137
|
-
}());
|
|
74
|
+
}
|
|
138
75
|
exports.GroestlcoinProtocolConfig = GroestlcoinProtocolConfig;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
if (network === void 0) { network = new GroestlcoinProtocolNetwork(); }
|
|
142
|
-
if (config === void 0) { config = new GroestlcoinProtocolConfig(); }
|
|
76
|
+
class GroestlcoinProtocolOptions {
|
|
77
|
+
constructor(network = new GroestlcoinProtocolNetwork(), config = new GroestlcoinProtocolConfig()) {
|
|
143
78
|
this.network = network;
|
|
144
79
|
this.config = config;
|
|
145
80
|
}
|
|
146
|
-
|
|
147
|
-
}());
|
|
81
|
+
}
|
|
148
82
|
exports.GroestlcoinProtocolOptions = GroestlcoinProtocolOptions;
|
|
149
83
|
//# 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,mJAAoI;AAEpI,gFAAyF;AAGzF,sCAAsC;AAEtC,MAAM,YAAY,GAAW,SAAS,CAAA;AAEtC,MAAM,QAAQ,GAAW,EAAE,CAAA;AAE3B,MAAM,kBAAkB,GAAW,kCAAkC,CAAA;AACrE,MAAM,WAAW,GAAW,4DAA4D,mCAAmC,EAAE,CAAA;AAE7H,MAAa,gCAAgC;IAC3C,YAA4B,aAAqB,WAAW,EAAkB,UAAe,SAAS,CAAC,QAAQ,CAAC,WAAW;QAA/F,eAAU,GAAV,UAAU,CAAsB;QAAkB,YAAO,GAAP,OAAO,CAAsC;IAAG,CAAC;CAChI;AAFD,4EAEC;AAED,MAAa,qBAAqB;IAChC,YAA4B,gBAAwB,kBAAkB;QAA1C,kBAAa,GAAb,aAAa,CAA6B;IAAG,CAAC;IAEnE,KAAK,CAAC,cAAc,CAAC,OAAe;QACzC,OAAO,GAAG,IAAI,CAAC,aAAa,gBAAgB,OAAO,MAAM,CAAA;IAC3D,CAAC;IACM,KAAK,CAAC,kBAAkB,CAAC,aAAqB;QACnD,OAAO,GAAG,IAAI,CAAC,aAAa,WAAW,aAAa,MAAM,CAAA;IAC5D,CAAC;CACF;AATD,sDASC;AAED,MAAa,0BAA2B,SAAQ,iCAAiD;IAC/F,YACE,OAAe,YAAY,EAC3B,OAAoB,6BAAW,CAAC,OAAO,EACvC,SAAiB,QAAQ,EACzB,gBAAuC,IAAI,qBAAqB,EAAE,EAClE,SAA2C,IAAI,gCAAgC,EAAE;QAEjF,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC,CAAA;IAClD,CAAC;CACF;AAVD,gEAUC;AAED,MAAa,yBAAyB;IACpC,YAA4B,eAAoB,SAAS;QAA7B,iBAAY,GAAZ,YAAY,CAAiB;IAAG,CAAC;CAC9D;AAFD,8DAEC;AAED,MAAa,0BAA0B;IACrC,YACkB,UAAsC,IAAI,0BAA0B,EAAE,EACtE,SAAoC,IAAI,yBAAyB,EAAE;QADnE,YAAO,GAAP,OAAO,CAA+D;QACtE,WAAM,GAAN,MAAM,CAA6D;IAClF,CAAC;CACL;AALD,gEAKC"}
|
|
@@ -1,19 +1,4 @@
|
|
|
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
|
-
})();
|
|
17
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
3
|
if (k2 === undefined) k2 = k;
|
|
19
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -30,27 +15,35 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
30
15
|
}) : function(o, v) {
|
|
31
16
|
o["default"] = v;
|
|
32
17
|
});
|
|
33
|
-
var __importStar = (this && this.__importStar) || function (
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
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
|
+
})();
|
|
40
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
36
|
exports.GroestlcoinTestnetProtocol = void 0;
|
|
42
|
-
|
|
37
|
+
const v0_1 = require("@airgap/bitcoin/v0");
|
|
43
38
|
// @ts-ignore
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
function GroestlcoinTestnetProtocol() {
|
|
39
|
+
const bitGoUTXO = __importStar(require("@airgap/coinlib-core/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index"));
|
|
40
|
+
const ProtocolNetwork_1 = require("@airgap/coinlib-core/utils/ProtocolNetwork");
|
|
41
|
+
const GroestlcoinProtocolOptions_1 = require("./GroestlcoinProtocolOptions");
|
|
42
|
+
class GroestlcoinTestnetProtocol extends v0_1.BitcoinProtocol {
|
|
43
|
+
constructor() {
|
|
50
44
|
// super({ network: bitGoUTXO.networks.groestlcoin, baseApiUrl: 'https://blockbook-test.groestlcoin.org/' })
|
|
51
|
-
|
|
45
|
+
super(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()));
|
|
52
46
|
}
|
|
53
|
-
|
|
54
|
-
}(v0_1.BitcoinProtocol));
|
|
47
|
+
}
|
|
55
48
|
exports.GroestlcoinTestnetProtocol = GroestlcoinTestnetProtocol;
|
|
56
49
|
//# 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,2CAAoD;AACpD,aAAa;AACb,mJAAoI;AACpI,gFAAwE;AAExE,6EAMqC;AAErC,MAAa,0BAA2B,SAAQ,oBAAe;IAC7D;QACE,4GAA4G;QAC5G,KAAK,CACH,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,CAAA;IACH,CAAC;CACF;AAhBD,gEAgBC"}
|
|
@@ -1,72 +1,23 @@
|
|
|
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
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
3
|
exports.CryptoIDBlockExplorer = void 0;
|
|
40
|
-
|
|
41
|
-
|
|
4
|
+
class CryptoIDBlockExplorer {
|
|
5
|
+
constructor(url) {
|
|
42
6
|
this.url = url;
|
|
43
7
|
this.metadata = {
|
|
44
8
|
name: 'cryptoID',
|
|
45
9
|
url: this.url
|
|
46
10
|
};
|
|
47
11
|
}
|
|
48
|
-
|
|
49
|
-
return
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
-
}());
|
|
12
|
+
async getMetadata() {
|
|
13
|
+
return this.metadata;
|
|
14
|
+
}
|
|
15
|
+
async createAddressUrl(address) {
|
|
16
|
+
return `${this.url}/address.dws?${address}.htm`;
|
|
17
|
+
}
|
|
18
|
+
async createTransactionUrl(transactionId) {
|
|
19
|
+
return `${this.url}/tx.dws?${transactionId}.htm`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
71
22
|
exports.CryptoIDBlockExplorer = CryptoIDBlockExplorer;
|
|
72
23
|
//# 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,MAAa,qBAAqB;IAChC,YAAmC,GAAW;QAAX,QAAG,GAAH,GAAG,CAAQ;QAE7B,aAAQ,GAA0B;YACjD,IAAI,EAAE,UAAU;YAChB,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAA;IALgD,CAAC;IAO3C,KAAK,CAAC,WAAW;QACtB,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,OAAe;QAC3C,OAAO,GAAG,IAAI,CAAC,GAAG,gBAAgB,OAAO,MAAM,CAAA;IACjD,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,aAAqB;QACrD,OAAO,GAAG,IAAI,CAAC,GAAG,WAAW,aAAa,MAAM,CAAA;IAClD,CAAC;CACF;AAnBD,sDAmBC"}
|
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
|
+
const CryptoIDBlockExplorer_1 = require("./block-explorer/CryptoIDBlockExplorer");
|
|
5
5
|
Object.defineProperty(exports, "CryptoIDBlockExplorer", { enumerable: true, get: function () { return CryptoIDBlockExplorer_1.CryptoIDBlockExplorer; } });
|
|
6
|
-
|
|
6
|
+
const GroestlcoinModule_1 = require("./module/GroestlcoinModule");
|
|
7
7
|
Object.defineProperty(exports, "GroestlcoinModule", { enumerable: true, get: function () { return GroestlcoinModule_1.GroestlcoinModule; } });
|
|
8
|
-
|
|
8
|
+
const 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,kFAA8E;AAiBrE,sGAjBA,6CAAqB,OAiBA;AAhB9B,kEAA8D;AAQrD,kGARA,qCAAiB,OAQA;AAP1B,wEAA+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
|
-
|
|
6
|
+
type SupportedProtocols = MainProtocolSymbols.GRS;
|
|
7
7
|
export declare class GroestlcoinModule implements AirGapModule<{
|
|
8
8
|
Protocols: SupportedProtocols;
|
|
9
9
|
ProtocolNetwork: GroestlcoinProtocolNetwork;
|