@airgap/astar 0.13.45-beta.3 → 0.13.45-beta.5
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 +6 -6
- package/v0/index.js.map +1 -1
- package/v0/protocol/astar/AstarProtocol.js +40 -21
- package/v0/protocol/astar/AstarProtocol.js.map +1 -1
- package/v0/protocol/astar/AstarProtocolOptions.js +79 -39
- package/v0/protocol/astar/AstarProtocolOptions.js.map +1 -1
- package/v0/protocol/shiden/ShidenProtocol.js +37 -18
- package/v0/protocol/shiden/ShidenProtocol.js.map +1 -1
- package/v0/protocol/shiden/ShidenProtocolOptions.js +66 -30
- package/v0/protocol/shiden/ShidenProtocolOptions.js.map +1 -1
- package/v1/controller/AstarAccountController.js +23 -3
- package/v1/controller/AstarAccountController.js.map +1 -1
- package/v1/controller/AstarTransactionController.js +23 -3
- package/v1/controller/AstarTransactionController.js.map +1 -1
- package/v1/index.js +3 -3
- package/v1/index.js.map +1 -1
- package/v1/module/AstarModule.d.ts +1 -1
- package/v1/module/AstarModule.js +98 -40
- package/v1/module/AstarModule.js.map +1 -1
- package/v1/module.js +3 -2
- package/v1/module.js.map +1 -1
- package/v1/node/AstarNodeClient.js +23 -3
- package/v1/node/AstarNodeClient.js.map +1 -1
- package/v1/protocol/AstarBaseProtocol.js +88 -26
- package/v1/protocol/AstarBaseProtocol.js.map +1 -1
- package/v1/protocol/AstarProtocol.js +49 -18
- package/v1/protocol/AstarProtocol.js.map +1 -1
- package/v1/protocol/ShidenProtocol.js +50 -19
- package/v1/protocol/ShidenProtocol.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 +154 -75
- 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/configuration.d.ts +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/astar",
|
|
3
|
-
"version": "0.13.45-beta.
|
|
3
|
+
"version": "0.13.45-beta.5",
|
|
4
4
|
"description": "The @airgap/astar is an Astar implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"author": "Papers AG <contact@papers.ch> (https://papers.ch)",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@airgap/coinlib-core": "^0.13.45-beta.
|
|
36
|
-
"@airgap/module-kit": "^0.13.45-beta.
|
|
37
|
-
"@airgap/serializer": "^0.13.45-beta.
|
|
38
|
-
"@airgap/substrate": "^0.13.45-beta.
|
|
35
|
+
"@airgap/coinlib-core": "^0.13.45-beta.5",
|
|
36
|
+
"@airgap/module-kit": "^0.13.45-beta.5",
|
|
37
|
+
"@airgap/serializer": "^0.13.45-beta.5",
|
|
38
|
+
"@airgap/substrate": "^0.13.45-beta.5",
|
|
39
39
|
"@polkadot/util": "2.0.1",
|
|
40
40
|
"@polkadot/wasm-crypto": "0.20.1"
|
|
41
41
|
},
|
package/v0/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ShidenProtocolOptions = exports.ShidenProtocolNetwork = exports.ShidenProtocolConfig = exports.ShidenSubscanBlockExplorer = exports.ShidenProtocolNetworkExtras = exports.ShidenProtocol = exports.AstarProtocolOptions = exports.AstarProtocolNetwork = exports.AstarProtocolConfig = exports.AstarSubscanBlockExplorer = exports.AstarProtocolNetworkExtras = exports.AstarProtocol = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var coinlib_core_1 = require("@airgap/coinlib-core");
|
|
5
|
+
var serializer_1 = require("@airgap/serializer");
|
|
6
|
+
var AstarProtocol_1 = require("./protocol/astar/AstarProtocol");
|
|
7
7
|
Object.defineProperty(exports, "AstarProtocol", { enumerable: true, get: function () { return AstarProtocol_1.AstarProtocol; } });
|
|
8
|
-
|
|
8
|
+
var AstarProtocolOptions_1 = require("./protocol/astar/AstarProtocolOptions");
|
|
9
9
|
Object.defineProperty(exports, "AstarProtocolConfig", { enumerable: true, get: function () { return AstarProtocolOptions_1.AstarProtocolConfig; } });
|
|
10
10
|
Object.defineProperty(exports, "AstarProtocolNetwork", { enumerable: true, get: function () { return AstarProtocolOptions_1.AstarProtocolNetwork; } });
|
|
11
11
|
Object.defineProperty(exports, "AstarProtocolNetworkExtras", { enumerable: true, get: function () { return AstarProtocolOptions_1.AstarProtocolNetworkExtras; } });
|
|
12
12
|
Object.defineProperty(exports, "AstarProtocolOptions", { enumerable: true, get: function () { return AstarProtocolOptions_1.AstarProtocolOptions; } });
|
|
13
13
|
Object.defineProperty(exports, "AstarSubscanBlockExplorer", { enumerable: true, get: function () { return AstarProtocolOptions_1.AstarSubscanBlockExplorer; } });
|
|
14
|
-
|
|
14
|
+
var ShidenProtocol_1 = require("./protocol/shiden/ShidenProtocol");
|
|
15
15
|
Object.defineProperty(exports, "ShidenProtocol", { enumerable: true, get: function () { return ShidenProtocol_1.ShidenProtocol; } });
|
|
16
|
-
|
|
16
|
+
var ShidenProtocolOptions_1 = require("./protocol/shiden/ShidenProtocolOptions");
|
|
17
17
|
Object.defineProperty(exports, "ShidenProtocolConfig", { enumerable: true, get: function () { return ShidenProtocolOptions_1.ShidenProtocolConfig; } });
|
|
18
18
|
Object.defineProperty(exports, "ShidenProtocolNetwork", { enumerable: true, get: function () { return ShidenProtocolOptions_1.ShidenProtocolNetwork; } });
|
|
19
19
|
Object.defineProperty(exports, "ShidenProtocolNetworkExtras", { enumerable: true, get: function () { return ShidenProtocolOptions_1.ShidenProtocolNetworkExtras; } });
|
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,gEAA8D;AAkB5D,8FAlBO,6BAAa,OAkBP;AAjBf,8EAM8C;AAc5C,oGAnBA,0CAAmB,OAmBA;AACnB,qGAnBA,2CAAoB,OAmBA;AAHpB,2GAfA,iDAA0B,OAeA;AAI1B,qGAlBA,2CAAoB,OAkBA;AAHpB,0GAdA,gDAAyB,OAcA;AAZ3B,mEAAiE;AAgB/D,+FAhBO,+BAAc,OAgBP;AAfhB,iFAMgD;AAY9C,qGAjBA,4CAAoB,OAiBA;AACpB,sGAjBA,6CAAqB,OAiBA;AAHrB,4GAbA,mDAA2B,OAaA;AAI3B,sGAhBA,6CAAqB,OAgBA;AAHrB,2GAZA,kDAA0B,OAYA;AAM5B,aAAa;AAEb,uBAAU,CAAC,SAAS,CAClB,2BAAc,CAAC,sBAAsB,EACrC,EAAE,MAAM,EAAE,OAAO,CAAC,oFAAoF,CAAC,EAAE,EACzG,kCAAmB,CAAC,KAAK,CAC1B,CAAA;AACD,uBAAU,CAAC,SAAS,CAClB,2BAAc,CAAC,uBAAuB,EACtC,EAAE,MAAM,EAAE,OAAO,CAAC,qFAAqF,CAAC,EAAE,EAC1G,kCAAmB,CAAC,KAAK,CAC1B,CAAA;AAED,yBAAY,CAAC,SAAS,CACpB,2BAAc,CAAC,sBAAsB,EACrC,EAAE,MAAM,EAAE,OAAO,CAAC,oFAAoF,CAAC,EAAE,EACzG,kCAAmB,CAAC,KAAK,CAC1B,CAAA;AACD,yBAAY,CAAC,SAAS,CACpB,2BAAc,CAAC,uBAAuB,EACtC,EAAE,MAAM,EAAE,OAAO,CAAC,qFAAqF,CAAC,EAAE,EAC1G,kCAAmB,CAAC,KAAK,CAC1B,CAAA;AAED,uBAAU,CAAC,SAAS,CAClB,2BAAc,CAAC,sBAAsB,EACrC,EAAE,MAAM,EAAE,OAAO,CAAC,oFAAoF,CAAC,EAAE,EACzG,kCAAmB,CAAC,MAAM,CAC3B,CAAA;AACD,uBAAU,CAAC,SAAS,CAClB,2BAAc,CAAC,uBAAuB,EACtC,EAAE,MAAM,EAAE,OAAO,CAAC,qFAAqF,CAAC,EAAE,EAC1G,kCAAmB,CAAC,MAAM,CAC3B,CAAA;AAED,yBAAY,CAAC,SAAS,CACpB,2BAAc,CAAC,sBAAsB,EACrC,EAAE,MAAM,EAAE,OAAO,CAAC,oFAAoF,CAAC,EAAE,EACzG,kCAAmB,CAAC,MAAM,CAC3B,CAAA;AACD,yBAAY,CAAC,SAAS,CACpB,2BAAc,CAAC,uBAAuB,EACtC,EAAE,MAAM,EAAE,OAAO,CAAC,qFAAqF,CAAC,EAAE,EAC1G,kCAAmB,CAAC,MAAM,CAC3B,CAAA"}
|
|
@@ -1,26 +1,43 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.AstarProtocol = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
var ProtocolSymbols_1 = require("@airgap/coinlib-core/utils/ProtocolSymbols");
|
|
20
|
+
var SubstrateDelegateProtocol_1 = require("@airgap/substrate/v0/protocol/SubstrateDelegateProtocol");
|
|
21
|
+
var AstarProtocolOptions_1 = require("./AstarProtocolOptions");
|
|
22
|
+
var AstarProtocol = /** @class */ (function (_super) {
|
|
23
|
+
__extends(AstarProtocol, _super);
|
|
24
|
+
function AstarProtocol(options) {
|
|
25
|
+
if (options === void 0) { options = new AstarProtocolOptions_1.AstarProtocolOptions(); }
|
|
26
|
+
var _this = _super.call(this, options) || this;
|
|
27
|
+
_this.options = options;
|
|
28
|
+
_this.symbol = 'ASTR';
|
|
29
|
+
_this.name = 'Astar';
|
|
30
|
+
_this.marketSymbol = 'ASTR';
|
|
31
|
+
_this.feeSymbol = 'ASTR';
|
|
32
|
+
_this.decimals = 18;
|
|
33
|
+
_this.feeDecimals = 18;
|
|
34
|
+
_this.identifier = ProtocolSymbols_1.MainProtocolSymbols.ASTAR;
|
|
35
|
+
_this.feeDefaults = {
|
|
19
36
|
low: '0.001',
|
|
20
37
|
medium: '0.001',
|
|
21
38
|
high: '0.001'
|
|
22
39
|
};
|
|
23
|
-
|
|
40
|
+
_this.units = [
|
|
24
41
|
{
|
|
25
42
|
unitSymbol: 'ASTR',
|
|
26
43
|
factor: '1'
|
|
@@ -50,11 +67,13 @@ class AstarProtocol extends SubstrateDelegateProtocol_1.SubstrateDelegateProtoco
|
|
|
50
67
|
factor: '0.000000000000000001'
|
|
51
68
|
}
|
|
52
69
|
];
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
70
|
+
_this.standardDerivationPath = "m/44'/810'/0'/0/0";
|
|
71
|
+
_this.addressIsCaseSensitive = true;
|
|
72
|
+
_this.addressValidationPattern = '^[a-km-zA-HJ-NP-Z1-9]+$';
|
|
73
|
+
_this.addressPlaceholder = "ABC...";
|
|
74
|
+
return _this;
|
|
57
75
|
}
|
|
58
|
-
|
|
76
|
+
return AstarProtocol;
|
|
77
|
+
}(SubstrateDelegateProtocol_1.SubstrateDelegateProtocol));
|
|
59
78
|
exports.AstarProtocol = AstarProtocol;
|
|
60
79
|
//# sourceMappingURL=AstarProtocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AstarProtocol.js","sourceRoot":"","sources":["../../../../src/v0/protocol/astar/AstarProtocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AstarProtocol.js","sourceRoot":"","sources":["../../../../src/v0/protocol/astar/AstarProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,8EAAiG;AACjG,qGAAmG;AAInG,+DAA6D;AAE7D;IAAmC,iCAAiD;IAqDlF,uBAAmC,OAAsF;QAAtF,wBAAA,EAAA,cAAgE,2CAAoB,EAAE;QAAzH,YACE,kBAAM,OAAO,CAAC,SACf;QAFkC,aAAO,GAAP,OAAO,CAA+E;QApDlH,YAAM,GAAW,MAAM,CAAA;QACvB,UAAI,GAAW,OAAO,CAAA;QACtB,kBAAY,GAAW,MAAM,CAAA;QAC7B,eAAS,GAAW,MAAM,CAAA;QAE1B,cAAQ,GAAW,EAAE,CAAA;QACrB,iBAAW,GAAW,EAAE,CAAA;QACxB,gBAAU,GAAoB,qCAAmB,CAAC,KAAK,CAAA;QAEvD,iBAAW,GAAgB;YAChC,GAAG,EAAE,OAAO;YACZ,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,OAAO;SACd,CAAA;QAEM,WAAK,GAAmB;YAC7B;gBACE,UAAU,EAAE,MAAM;gBAClB,MAAM,EAAE,GAAG;aACZ;YACD;gBACE,UAAU,EAAE,OAAO;gBACnB,MAAM,EAAE,OAAO;aAChB;YACD;gBACE,UAAU,EAAE,OAAO;gBACnB,MAAM,EAAE,UAAU;aACnB;YACD;gBACE,UAAU,EAAE,OAAO;gBACnB,MAAM,EAAE,aAAa;aACtB;YACD;gBACE,UAAU,EAAE,OAAO;gBACnB,MAAM,EAAE,gBAAgB;aACzB;YACD;gBACE,UAAU,EAAE,OAAO;gBACnB,MAAM,EAAE,mBAAmB;aAC5B;YACD;gBACE,UAAU,EAAE,OAAO;gBACnB,MAAM,EAAE,sBAAsB;aAC/B;SACF,CAAA;QAEM,4BAAsB,GAAW,mBAAmB,CAAA;QAEpD,4BAAsB,GAAY,IAAI,CAAA;QACtC,8BAAwB,GAAW,yBAAyB,CAAA;QAC5D,wBAAkB,GAAW,QAAQ,CAAA;;IAI5C,CAAC;IACH,oBAAC;AAAD,CAAC,AAxDD,CAAmC,qDAAyB,GAwD3D;AAxDY,sCAAa"}
|
|
@@ -1,56 +1,96 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// tslint:disable:max-classes-per-file
|
|
3
|
+
var __extends = (this && this.__extends) || (function () {
|
|
4
|
+
var extendStatics = function (d, b) {
|
|
5
|
+
extendStatics = Object.setPrototypeOf ||
|
|
6
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
+
return extendStatics(d, b);
|
|
9
|
+
};
|
|
10
|
+
return function (d, b) {
|
|
11
|
+
if (typeof b !== "function" && b !== null)
|
|
12
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
+
extendStatics(d, b);
|
|
14
|
+
function __() { this.constructor = d; }
|
|
15
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
+
};
|
|
17
|
+
})();
|
|
3
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
19
|
exports.AstarProtocolOptions = exports.BaseAstarProtocolOptions = exports.AstarProtocolNetwork = exports.AstarProtocolNetworkExtras = exports.AstarSubscanBlockExplorer = exports.AstarProtocolConfig = void 0;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
var ProtocolNetwork_1 = require("@airgap/coinlib-core/utils/ProtocolNetwork");
|
|
21
|
+
var SubstrateNodeClient_1 = require("@airgap/substrate/v0/protocol/common/node/SubstrateNodeClient");
|
|
22
|
+
var SubstrateAccountController_1 = require("@airgap/substrate/v0/protocol/common/SubstrateAccountController");
|
|
23
|
+
var SubstrateTransactionController_1 = require("@airgap/substrate/v0/protocol/common/SubstrateTransactionController");
|
|
24
|
+
var SubstrateNetwork_1 = require("@airgap/substrate/v0/protocol/SubstrateNetwork");
|
|
25
|
+
var SubstrateProtocolOptions_1 = require("@airgap/substrate/v0/protocol/SubstrateProtocolOptions");
|
|
26
|
+
var MAINNET_NAME = 'Mainnet';
|
|
27
|
+
var NODE_URL = 'https://astar-node.prod.gke.papers.tech';
|
|
28
|
+
var BLOCK_EXPLORER_URL = 'https://astar.subscan.io';
|
|
29
|
+
var BLOCK_EXPLORER_API = 'https://astar.subscan.prod.gke.papers.tech/api/scan';
|
|
30
|
+
var AstarProtocolConfig = /** @class */ (function (_super) {
|
|
31
|
+
__extends(AstarProtocolConfig, _super);
|
|
32
|
+
function AstarProtocolConfig() {
|
|
33
|
+
return _super.call(this) || this;
|
|
18
34
|
}
|
|
19
|
-
|
|
35
|
+
return AstarProtocolConfig;
|
|
36
|
+
}(SubstrateProtocolOptions_1.SubstrateProtocolConfig));
|
|
20
37
|
exports.AstarProtocolConfig = AstarProtocolConfig;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
38
|
+
var AstarSubscanBlockExplorer = /** @class */ (function (_super) {
|
|
39
|
+
__extends(AstarSubscanBlockExplorer, _super);
|
|
40
|
+
function AstarSubscanBlockExplorer(blockExplorer) {
|
|
41
|
+
if (blockExplorer === void 0) { blockExplorer = BLOCK_EXPLORER_URL; }
|
|
42
|
+
return _super.call(this, blockExplorer) || this;
|
|
24
43
|
}
|
|
25
|
-
|
|
44
|
+
return AstarSubscanBlockExplorer;
|
|
45
|
+
}(SubstrateProtocolOptions_1.SubscanBlockExplorer));
|
|
26
46
|
exports.AstarSubscanBlockExplorer = AstarSubscanBlockExplorer;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
47
|
+
var AstarProtocolNetworkExtras = /** @class */ (function (_super) {
|
|
48
|
+
__extends(AstarProtocolNetworkExtras, _super);
|
|
49
|
+
function AstarProtocolNetworkExtras(apiUrl) {
|
|
50
|
+
if (apiUrl === void 0) { apiUrl = BLOCK_EXPLORER_API; }
|
|
51
|
+
var _this = _super.call(this, apiUrl, SubstrateNetwork_1.SubstrateNetwork.ASTAR) || this;
|
|
52
|
+
_this.apiUrl = apiUrl;
|
|
53
|
+
return _this;
|
|
31
54
|
}
|
|
32
|
-
|
|
55
|
+
return AstarProtocolNetworkExtras;
|
|
56
|
+
}(SubstrateProtocolOptions_1.SubstrateProtocolNetworkExtras));
|
|
33
57
|
exports.AstarProtocolNetworkExtras = AstarProtocolNetworkExtras;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
58
|
+
var AstarProtocolNetwork = /** @class */ (function (_super) {
|
|
59
|
+
__extends(AstarProtocolNetwork, _super);
|
|
60
|
+
function AstarProtocolNetwork(name, type, rpcUrl, blockExplorer, extras) {
|
|
61
|
+
if (name === void 0) { name = MAINNET_NAME; }
|
|
62
|
+
if (type === void 0) { type = ProtocolNetwork_1.NetworkType.MAINNET; }
|
|
63
|
+
if (rpcUrl === void 0) { rpcUrl = NODE_URL; }
|
|
64
|
+
if (blockExplorer === void 0) { blockExplorer = new AstarSubscanBlockExplorer(); }
|
|
65
|
+
if (extras === void 0) { extras = new AstarProtocolNetworkExtras(); }
|
|
66
|
+
return _super.call(this, name, type, rpcUrl, blockExplorer, extras) || this;
|
|
37
67
|
}
|
|
38
|
-
|
|
68
|
+
return AstarProtocolNetwork;
|
|
69
|
+
}(ProtocolNetwork_1.ProtocolNetwork));
|
|
39
70
|
exports.AstarProtocolNetwork = AstarProtocolNetwork;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
this
|
|
71
|
+
var BaseAstarProtocolOptions = /** @class */ (function (_super) {
|
|
72
|
+
__extends(BaseAstarProtocolOptions, _super);
|
|
73
|
+
function BaseAstarProtocolOptions(network, config, nodeClient) {
|
|
74
|
+
if (nodeClient === void 0) { nodeClient = new SubstrateNodeClient_1.SubstrateNodeClient(network.extras.network, network.rpcUrl); }
|
|
75
|
+
var _this = _super.call(this, network, config, nodeClient, new SubstrateAccountController_1.SubstrateAccountController(network.extras.network, nodeClient), new SubstrateTransactionController_1.SubstrateTransactionController(network.extras.network, nodeClient)) || this;
|
|
76
|
+
_this.network = network;
|
|
77
|
+
_this.config = config;
|
|
78
|
+
return _this;
|
|
45
79
|
}
|
|
46
|
-
|
|
80
|
+
return BaseAstarProtocolOptions;
|
|
81
|
+
}(SubstrateProtocolOptions_1.SubstrateProtocolOptions));
|
|
47
82
|
exports.BaseAstarProtocolOptions = BaseAstarProtocolOptions;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
83
|
+
var AstarProtocolOptions = /** @class */ (function (_super) {
|
|
84
|
+
__extends(AstarProtocolOptions, _super);
|
|
85
|
+
function AstarProtocolOptions(network, config) {
|
|
86
|
+
if (network === void 0) { network = new AstarProtocolNetwork(); }
|
|
87
|
+
if (config === void 0) { config = new AstarProtocolConfig(); }
|
|
88
|
+
var _this = _super.call(this, network, config) || this;
|
|
89
|
+
_this.network = network;
|
|
90
|
+
_this.config = config;
|
|
91
|
+
return _this;
|
|
53
92
|
}
|
|
54
|
-
|
|
93
|
+
return AstarProtocolOptions;
|
|
94
|
+
}(BaseAstarProtocolOptions));
|
|
55
95
|
exports.AstarProtocolOptions = AstarProtocolOptions;
|
|
56
96
|
//# sourceMappingURL=AstarProtocolOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AstarProtocolOptions.js","sourceRoot":"","sources":["../../../../src/v0/protocol/astar/AstarProtocolOptions.ts"],"names":[],"mappings":";AAAA,sCAAsC
|
|
1
|
+
{"version":3,"file":"AstarProtocolOptions.js","sourceRoot":"","sources":["../../../../src/v0/protocol/astar/AstarProtocolOptions.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;;;;;;;;;;;;;;;;AAGtC,8EAAyF;AACzF,qGAAmG;AACnG,8GAA4G;AAC5G,sHAAoH;AACpH,mFAAiF;AACjF,mGAK+D;AAE/D,IAAM,YAAY,GAAW,SAAS,CAAA;AAEtC,IAAM,QAAQ,GAAW,yCAAyC,CAAA;AAElE,IAAM,kBAAkB,GAAW,0BAA0B,CAAA;AAC7D,IAAM,kBAAkB,GAAW,qDAAqD,CAAA;AAExF;IAAyC,uCAAuB;IAC9D;eACE,iBAAO;IACT,CAAC;IACH,0BAAC;AAAD,CAAC,AAJD,CAAyC,kDAAuB,GAI/D;AAJY,kDAAmB;AAMhC;IAA+C,6CAAoB;IACjE,mCAAY,aAA0C;QAA1C,8BAAA,EAAA,kCAA0C;eACpD,kBAAM,aAAa,CAAC;IACtB,CAAC;IACH,gCAAC;AAAD,CAAC,AAJD,CAA+C,+CAAoB,GAIlE;AAJY,8DAAyB;AAMtC;IAAgD,8CAAsD;IACpG,oCAA4B,MAAmC;QAAnC,uBAAA,EAAA,2BAAmC;QAA/D,YACE,kBAAM,MAAM,EAAE,mCAAgB,CAAC,KAAK,CAAC,SACtC;QAF2B,YAAM,GAAN,MAAM,CAA6B;;IAE/D,CAAC;IACH,iCAAC;AAAD,CAAC,AAJD,CAAgD,yDAA8B,GAI7E;AAJY,gEAA0B;AAMvC;IAA0C,wCAA2C;IACnF,8BACE,IAA2B,EAC3B,IAAuC,EACvC,MAAyB,EACzB,aAAsE,EACtE,MAAqE;QAJrE,qBAAA,EAAA,mBAA2B;QAC3B,qBAAA,EAAA,OAAoB,6BAAW,CAAC,OAAO;QACvC,uBAAA,EAAA,iBAAyB;QACzB,8BAAA,EAAA,oBAA2C,yBAAyB,EAAE;QACtE,uBAAA,EAAA,aAAyC,0BAA0B,EAAE;eAErE,kBAAM,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC;IAClD,CAAC;IACH,2BAAC;AAAD,CAAC,AAVD,CAA0C,iCAAe,GAUxD;AAVY,oDAAoB;AAYjC;IAAwG,4CAGvG;IACC,kCACkB,OAA6B,EAC7B,MAAc,EAC9B,UAAyH;QAAzH,2BAAA,EAAA,iBAA8D,yCAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC;QAH3H,YAKE,kBACE,OAAO,EACP,MAAM,EACN,UAAU,EACV,IAAI,uDAA0B,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,EAClE,IAAI,+DAA8B,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,CACvE,SACF;QAXiB,aAAO,GAAP,OAAO,CAAsB;QAC7B,YAAM,GAAN,MAAM,CAAQ;;IAUhC,CAAC;IACH,+BAAC;AAAD,CAAC,AAjBD,CAAwG,mDAAwB,GAiB/H;AAjBY,4DAAwB;AAmBrC;IAA0C,wCAAwB;IAChE,8BACkB,OAA0D,EAC1D,MAAuD;QADvD,wBAAA,EAAA,cAAoC,oBAAoB,EAAE;QAC1D,uBAAA,EAAA,aAAkC,mBAAmB,EAAE;QAFzE,YAIE,kBAAM,OAAO,EAAE,MAAM,CAAC,SACvB;QAJiB,aAAO,GAAP,OAAO,CAAmD;QAC1D,YAAM,GAAN,MAAM,CAAiD;;IAGzE,CAAC;IACH,2BAAC;AAAD,CAAC,AAPD,CAA0C,wBAAwB,GAOjE;AAPY,oDAAoB"}
|
|
@@ -1,19 +1,36 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.ShidenProtocol = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
var ProtocolSymbols_1 = require("@airgap/coinlib-core/utils/ProtocolSymbols");
|
|
20
|
+
var AstarProtocol_1 = require("../astar/AstarProtocol");
|
|
21
|
+
var ShidenProtocolOptions_1 = require("./ShidenProtocolOptions");
|
|
22
|
+
var ShidenProtocol = /** @class */ (function (_super) {
|
|
23
|
+
__extends(ShidenProtocol, _super);
|
|
24
|
+
function ShidenProtocol(options) {
|
|
25
|
+
if (options === void 0) { options = new ShidenProtocolOptions_1.ShidenProtocolOptions(); }
|
|
26
|
+
var _this = _super.call(this, options) || this;
|
|
27
|
+
_this.options = options;
|
|
28
|
+
_this.symbol = 'SDN';
|
|
29
|
+
_this.name = 'Shiden';
|
|
30
|
+
_this.marketSymbol = 'SDN';
|
|
31
|
+
_this.feeSymbol = 'SDN';
|
|
32
|
+
_this.identifier = ProtocolSymbols_1.MainProtocolSymbols.SHIDEN;
|
|
33
|
+
_this.units = [
|
|
17
34
|
{
|
|
18
35
|
unitSymbol: 'SDN',
|
|
19
36
|
factor: '1'
|
|
@@ -43,11 +60,13 @@ class ShidenProtocol extends AstarProtocol_1.AstarProtocol {
|
|
|
43
60
|
factor: '0.000000000000000001'
|
|
44
61
|
}
|
|
45
62
|
];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
63
|
+
_this.standardDerivationPath = "m/44'/810'/0'/0/0";
|
|
64
|
+
_this.addressIsCaseSensitive = true;
|
|
65
|
+
_this.addressValidationPattern = '^[a-km-zA-HJ-NP-Z1-9]+$';
|
|
66
|
+
_this.addressPlaceholder = "ABC...";
|
|
67
|
+
return _this;
|
|
50
68
|
}
|
|
51
|
-
|
|
69
|
+
return ShidenProtocol;
|
|
70
|
+
}(AstarProtocol_1.AstarProtocol));
|
|
52
71
|
exports.ShidenProtocol = ShidenProtocol;
|
|
53
72
|
//# sourceMappingURL=ShidenProtocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShidenProtocol.js","sourceRoot":"","sources":["../../../../src/v0/protocol/shiden/ShidenProtocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShidenProtocol.js","sourceRoot":"","sources":["../../../../src/v0/protocol/shiden/ShidenProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,8EAAiG;AAIjG,wDAAsD;AAEtD,iEAA+D;AAE/D;IAAoC,kCAAa;IA6C/C,wBAAmC,OAAuF;QAAvF,wBAAA,EAAA,cAAgE,6CAAqB,EAAE;QAA1H,YACE,kBAAM,OAAO,CAAC,SACf;QAFkC,aAAO,GAAP,OAAO,CAAgF;QA5CnH,YAAM,GAAW,KAAK,CAAA;QACtB,UAAI,GAAW,QAAQ,CAAA;QACvB,kBAAY,GAAW,KAAK,CAAA;QAC5B,eAAS,GAAW,KAAK,CAAA;QAEzB,gBAAU,GAAoB,qCAAmB,CAAC,MAAM,CAAA;QAExD,WAAK,GAAmB;YAC7B;gBACE,UAAU,EAAE,KAAK;gBACjB,MAAM,EAAE,GAAG;aACZ;YACD;gBACE,UAAU,EAAE,MAAM;gBAClB,MAAM,EAAE,OAAO;aAChB;YACD;gBACE,UAAU,EAAE,MAAM;gBAClB,MAAM,EAAE,UAAU;aACnB;YACD;gBACE,UAAU,EAAE,MAAM;gBAClB,MAAM,EAAE,aAAa;aACtB;YACD;gBACE,UAAU,EAAE,MAAM;gBAClB,MAAM,EAAE,gBAAgB;aACzB;YACD;gBACE,UAAU,EAAE,MAAM;gBAClB,MAAM,EAAE,mBAAmB;aAC5B;YACD;gBACE,UAAU,EAAE,MAAM;gBAClB,MAAM,EAAE,sBAAsB;aAC/B;SACF,CAAA;QAEM,4BAAsB,GAAW,mBAAmB,CAAA;QAEpD,4BAAsB,GAAY,IAAI,CAAA;QACtC,8BAAwB,GAAW,yBAAyB,CAAA;QAC5D,wBAAkB,GAAW,QAAQ,CAAA;;IAI5C,CAAC;IACH,qBAAC;AAAD,CAAC,AAhDD,CAAoC,6BAAa,GAgDhD;AAhDY,wCAAc"}
|
|
@@ -1,44 +1,80 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.ShidenProtocolOptions = exports.ShidenProtocolNetwork = exports.ShidenProtocolNetworkExtras = exports.ShidenSubscanBlockExplorer = exports.ShidenProtocolConfig = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
var ProtocolNetwork_1 = require("@airgap/coinlib-core/utils/ProtocolNetwork");
|
|
20
|
+
var SubstrateProtocolOptions_1 = require("@airgap/substrate/v0/protocol/SubstrateProtocolOptions");
|
|
21
|
+
var AstarProtocolOptions_1 = require("../astar/AstarProtocolOptions");
|
|
22
|
+
var MAINNET_NAME = 'Mainnet';
|
|
23
|
+
var NODE_URL = 'https://shiden-node.prod.gke.papers.tech';
|
|
24
|
+
var BLOCK_EXPLORER_URL = 'https://shiden.subscan.io';
|
|
25
|
+
var BLOCK_EXPLORER_API = 'https://shiden.subscan.prod.gke.papers.tech/api/scan';
|
|
26
|
+
var ShidenProtocolConfig = /** @class */ (function (_super) {
|
|
27
|
+
__extends(ShidenProtocolConfig, _super);
|
|
28
|
+
function ShidenProtocolConfig() {
|
|
29
|
+
return _super.call(this) || this;
|
|
14
30
|
}
|
|
15
|
-
|
|
31
|
+
return ShidenProtocolConfig;
|
|
32
|
+
}(AstarProtocolOptions_1.AstarProtocolConfig));
|
|
16
33
|
exports.ShidenProtocolConfig = ShidenProtocolConfig;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
34
|
+
var ShidenSubscanBlockExplorer = /** @class */ (function (_super) {
|
|
35
|
+
__extends(ShidenSubscanBlockExplorer, _super);
|
|
36
|
+
function ShidenSubscanBlockExplorer(blockExplorer) {
|
|
37
|
+
if (blockExplorer === void 0) { blockExplorer = BLOCK_EXPLORER_URL; }
|
|
38
|
+
return _super.call(this, blockExplorer) || this;
|
|
20
39
|
}
|
|
21
|
-
|
|
40
|
+
return ShidenSubscanBlockExplorer;
|
|
41
|
+
}(SubstrateProtocolOptions_1.SubscanBlockExplorer));
|
|
22
42
|
exports.ShidenSubscanBlockExplorer = ShidenSubscanBlockExplorer;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
43
|
+
var ShidenProtocolNetworkExtras = /** @class */ (function (_super) {
|
|
44
|
+
__extends(ShidenProtocolNetworkExtras, _super);
|
|
45
|
+
function ShidenProtocolNetworkExtras(apiUrl) {
|
|
46
|
+
if (apiUrl === void 0) { apiUrl = BLOCK_EXPLORER_API; }
|
|
47
|
+
var _this = _super.call(this, apiUrl) || this;
|
|
48
|
+
_this.apiUrl = apiUrl;
|
|
49
|
+
return _this;
|
|
27
50
|
}
|
|
28
|
-
|
|
51
|
+
return ShidenProtocolNetworkExtras;
|
|
52
|
+
}(AstarProtocolOptions_1.AstarProtocolNetworkExtras));
|
|
29
53
|
exports.ShidenProtocolNetworkExtras = ShidenProtocolNetworkExtras;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
54
|
+
var ShidenProtocolNetwork = /** @class */ (function (_super) {
|
|
55
|
+
__extends(ShidenProtocolNetwork, _super);
|
|
56
|
+
function ShidenProtocolNetwork(name, type, rpcUrl, blockExplorer, extras) {
|
|
57
|
+
if (name === void 0) { name = MAINNET_NAME; }
|
|
58
|
+
if (type === void 0) { type = ProtocolNetwork_1.NetworkType.MAINNET; }
|
|
59
|
+
if (rpcUrl === void 0) { rpcUrl = NODE_URL; }
|
|
60
|
+
if (blockExplorer === void 0) { blockExplorer = new ShidenSubscanBlockExplorer(); }
|
|
61
|
+
if (extras === void 0) { extras = new ShidenProtocolNetworkExtras(); }
|
|
62
|
+
return _super.call(this, name, type, rpcUrl, blockExplorer, extras) || this;
|
|
33
63
|
}
|
|
34
|
-
|
|
64
|
+
return ShidenProtocolNetwork;
|
|
65
|
+
}(AstarProtocolOptions_1.AstarProtocolNetwork));
|
|
35
66
|
exports.ShidenProtocolNetwork = ShidenProtocolNetwork;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
67
|
+
var ShidenProtocolOptions = /** @class */ (function (_super) {
|
|
68
|
+
__extends(ShidenProtocolOptions, _super);
|
|
69
|
+
function ShidenProtocolOptions(network, config) {
|
|
70
|
+
if (network === void 0) { network = new ShidenProtocolNetwork(); }
|
|
71
|
+
if (config === void 0) { config = new ShidenProtocolConfig(); }
|
|
72
|
+
var _this = _super.call(this, network, config) || this;
|
|
73
|
+
_this.network = network;
|
|
74
|
+
_this.config = config;
|
|
75
|
+
return _this;
|
|
41
76
|
}
|
|
42
|
-
|
|
77
|
+
return ShidenProtocolOptions;
|
|
78
|
+
}(AstarProtocolOptions_1.BaseAstarProtocolOptions));
|
|
43
79
|
exports.ShidenProtocolOptions = ShidenProtocolOptions;
|
|
44
80
|
//# sourceMappingURL=ShidenProtocolOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShidenProtocolOptions.js","sourceRoot":"","sources":["../../../../src/v0/protocol/shiden/ShidenProtocolOptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShidenProtocolOptions.js","sourceRoot":"","sources":["../../../../src/v0/protocol/shiden/ShidenProtocolOptions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,8EAAwE;AACxE,mGAA6F;AAE7F,sEAKsC;AAEtC,IAAM,YAAY,GAAW,SAAS,CAAA;AAEtC,IAAM,QAAQ,GAAW,0CAA0C,CAAA;AAEnE,IAAM,kBAAkB,GAAW,2BAA2B,CAAA;AAC9D,IAAM,kBAAkB,GAAW,sDAAsD,CAAA;AAEzF;IAA0C,wCAAmB;IAC3D;eACE,iBAAO;IACT,CAAC;IACH,2BAAC;AAAD,CAAC,AAJD,CAA0C,0CAAmB,GAI5D;AAJY,oDAAoB;AAMjC;IAAgD,8CAAoB;IAClE,oCAAY,aAA0C;QAA1C,8BAAA,EAAA,kCAA0C;eACpD,kBAAM,aAAa,CAAC;IACtB,CAAC;IACH,iCAAC;AAAD,CAAC,AAJD,CAAgD,+CAAoB,GAInE;AAJY,gEAA0B;AAMvC;IAAiD,+CAA0B;IACzE,qCAA4B,MAAmC;QAAnC,uBAAA,EAAA,2BAAmC;QAA/D,YACE,kBAAM,MAAM,CAAC,SACd;QAF2B,YAAM,GAAN,MAAM,CAA6B;;IAE/D,CAAC;IACH,kCAAC;AAAD,CAAC,AAJD,CAAiD,iDAA0B,GAI1E;AAJY,kEAA2B;AAMxC;IAA2C,yCAAoB;IAC7D,+BACE,IAA2B,EAC3B,IAAuC,EACvC,MAAyB,EACzB,aAAuE,EACvE,MAAuE;QAJvE,qBAAA,EAAA,mBAA2B;QAC3B,qBAAA,EAAA,OAAoB,6BAAW,CAAC,OAAO;QACvC,uBAAA,EAAA,iBAAyB;QACzB,8BAAA,EAAA,oBAA2C,0BAA0B,EAAE;QACvE,uBAAA,EAAA,aAA0C,2BAA2B,EAAE;eAEvE,kBAAM,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC;IAClD,CAAC;IACH,4BAAC;AAAD,CAAC,AAVD,CAA2C,2CAAoB,GAU9D;AAVY,sDAAqB;AAYlC;IAA2C,yCAA8C;IACvF,+BACkB,OAA4D,EAC5D,MAAyD;QADzD,wBAAA,EAAA,cAAqC,qBAAqB,EAAE;QAC5D,uBAAA,EAAA,aAAmC,oBAAoB,EAAE;QAF3E,YAIE,kBAAM,OAAO,EAAE,MAAM,CAAC,SACvB;QAJiB,aAAO,GAAP,OAAO,CAAqD;QAC5D,YAAM,GAAN,MAAM,CAAmD;;IAG3E,CAAC;IACH,4BAAC;AAAD,CAAC,AAPD,CAA2C,+CAAwB,GAOlE;AAPY,sDAAqB"}
|
|
@@ -1,8 +1,28 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.AstarAccountController = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
19
|
+
var v1_1 = require("@airgap/substrate/v1");
|
|
20
|
+
var AstarAccountController = /** @class */ (function (_super) {
|
|
21
|
+
__extends(AstarAccountController, _super);
|
|
22
|
+
function AstarAccountController() {
|
|
23
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
}
|
|
25
|
+
return AstarAccountController;
|
|
26
|
+
}(v1_1.SubstrateCommonAccountController));
|
|
7
27
|
exports.AstarAccountController = AstarAccountController;
|
|
8
28
|
//# sourceMappingURL=AstarAccountController.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AstarAccountController.js","sourceRoot":"","sources":["../../../src/v1/controller/AstarAccountController.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AstarAccountController.js","sourceRoot":"","sources":["../../../src/v1/controller/AstarAccountController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAAuE;AAKvE;IAA4C,0CAA6E;IAAzH;;IAA2H,CAAC;IAAD,6BAAC;AAAD,CAAC,AAA5H,CAA4C,qCAAgC,GAAgD;AAA/G,wDAAsB"}
|
|
@@ -1,8 +1,28 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.AstarTransactionController = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
19
|
+
var v1_1 = require("@airgap/substrate/v1");
|
|
20
|
+
var AstarTransactionController = /** @class */ (function (_super) {
|
|
21
|
+
__extends(AstarTransactionController, _super);
|
|
22
|
+
function AstarTransactionController() {
|
|
23
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
}
|
|
25
|
+
return AstarTransactionController;
|
|
26
|
+
}(v1_1.SubstrateCommonTransactionController));
|
|
7
27
|
exports.AstarTransactionController = AstarTransactionController;
|
|
8
28
|
//# sourceMappingURL=AstarTransactionController.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AstarTransactionController.js","sourceRoot":"","sources":["../../../src/v1/controller/AstarTransactionController.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AstarTransactionController.js","sourceRoot":"","sources":["../../../src/v1/controller/AstarTransactionController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA2E;AAK3E;IAAgD,8CAAiF;IAAjI;;IAAmI,CAAC;IAAD,iCAAC;AAAD,CAAC,AAApI,CAAgD,yCAAoC,GAAgD;AAAvH,gEAA0B"}
|
package/v1/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createShidenProtocol = exports.createAstarProtocol = exports.AstarModule = void 0;
|
|
4
|
-
|
|
4
|
+
var AstarModule_1 = require("./module/AstarModule");
|
|
5
5
|
Object.defineProperty(exports, "AstarModule", { enumerable: true, get: function () { return AstarModule_1.AstarModule; } });
|
|
6
|
-
|
|
6
|
+
var AstarProtocol_1 = require("./protocol/AstarProtocol");
|
|
7
7
|
Object.defineProperty(exports, "createAstarProtocol", { enumerable: true, get: function () { return AstarProtocol_1.createAstarProtocol; } });
|
|
8
|
-
|
|
8
|
+
var ShidenProtocol_1 = require("./protocol/ShidenProtocol");
|
|
9
9
|
Object.defineProperty(exports, "createShidenProtocol", { enumerable: true, get: function () { return ShidenProtocol_1.createShidenProtocol; } });
|
|
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,oDAAkD;AASzC,4FATA,yBAAW,OASA;AARpB,0DAA6E;AAYrD,oGAZA,mCAAmB,OAYA;AAX3C,4DAAgF;AAWnB,qGAXpD,qCAAoB,OAWoD"}
|