@airgap/polkadot 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 +4 -4
- package/v0/index.js +6 -6
- package/v0/index.js.map +1 -1
- package/v0/protocol/kusama/KusamaProtocol.js +41 -22
- package/v0/protocol/kusama/KusamaProtocol.js.map +1 -1
- package/v0/protocol/kusama/KusamaProtocolOptions.js +70 -33
- package/v0/protocol/kusama/KusamaProtocolOptions.js.map +1 -1
- package/v0/protocol/polkadot/PolkadotProtocol.js +42 -23
- package/v0/protocol/polkadot/PolkadotProtocol.js.map +1 -1
- package/v0/protocol/polkadot/PolkadotProtocolOptions.js +70 -33
- package/v0/protocol/polkadot/PolkadotProtocolOptions.js.map +1 -1
- package/v1/controller/PolkadotAccountController.js +648 -373
- package/v1/controller/PolkadotAccountController.js.map +1 -1
- package/v1/controller/PolkadotTransactionController.js +23 -3
- package/v1/controller/PolkadotTransactionController.js.map +1 -1
- package/v1/data/staking/PolkadotActiveEraInfo.js +11 -10
- package/v1/data/staking/PolkadotActiveEraInfo.js.map +1 -1
- package/v1/data/staking/PolkadotEraRewardPoints.js +13 -10
- package/v1/data/staking/PolkadotEraRewardPoints.js.map +1 -1
- package/v1/data/staking/PolkadotExposure.js +14 -11
- package/v1/data/staking/PolkadotExposure.js.map +1 -1
- package/v1/data/staking/PolkadotNominationStatus.js +1 -1
- package/v1/data/staking/PolkadotNominationStatus.js.map +1 -1
- package/v1/data/staking/PolkadotNominations.js +12 -11
- package/v1/data/staking/PolkadotNominations.js.map +1 -1
- package/v1/data/staking/PolkadotNominatorDetails.d.ts +1 -1
- package/v1/data/staking/PolkadotPayee.js +1 -1
- package/v1/data/staking/PolkadotPayee.js.map +1 -1
- package/v1/data/staking/PolkadotSlashingSpans.js +13 -12
- package/v1/data/staking/PolkadotSlashingSpans.js.map +1 -1
- package/v1/data/staking/PolkadotStakingActionType.js +1 -1
- package/v1/data/staking/PolkadotStakingActionType.js.map +1 -1
- package/v1/data/staking/PolkadotStakingLedger.js +16 -13
- package/v1/data/staking/PolkadotStakingLedger.js.map +1 -1
- package/v1/data/staking/PolkadotValidatorDetails.d.ts +1 -1
- package/v1/data/staking/PolkadotValidatorPrefs.js +10 -9
- package/v1/data/staking/PolkadotValidatorPrefs.js.map +1 -1
- package/v1/data/transaction/method/args.js +271 -146
- package/v1/data/transaction/method/args.js.map +1 -1
- package/v1/data/transaction/transaction.js +22 -11
- package/v1/data/transaction/transaction.js.map +1 -1
- package/v1/index.js +6 -6
- package/v1/index.js.map +1 -1
- package/v1/module/PolkadotModule.d.ts +1 -1
- package/v1/module/PolkadotModule.js +98 -40
- package/v1/module/PolkadotModule.js.map +1 -1
- package/v1/module.js +3 -2
- package/v1/module.js.map +1 -1
- package/v1/node/PolkadotNodeClient.js +284 -101
- package/v1/node/PolkadotNodeClient.js.map +1 -1
- package/v1/protocol/KusamaProtocol.js +54 -28
- package/v1/protocol/KusamaProtocol.js.map +1 -1
- package/v1/protocol/PolkadotBaseProtocol.js +701 -409
- package/v1/protocol/PolkadotBaseProtocol.js.map +1 -1
- package/v1/protocol/PolkadotProtocol.js +51 -20
- package/v1/protocol/PolkadotProtocol.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/polkadot",
|
|
3
|
-
"version": "0.13.45-beta.
|
|
3
|
+
"version": "0.13.45-beta.4",
|
|
4
4
|
"description": "The @airgap/polkadot is a Polkadot implementation of the ICoinProtocol interface from @airgap/coinlib-core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"airgap",
|
|
@@ -32,9 +32,9 @@
|
|
|
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/substrate": "^0.13.45-beta.
|
|
35
|
+
"@airgap/coinlib-core": "^0.13.45-beta.4",
|
|
36
|
+
"@airgap/module-kit": "^0.13.45-beta.4",
|
|
37
|
+
"@airgap/substrate": "^0.13.45-beta.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@polkadot/wasm-crypto": "0.20.1"
|
package/v0/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PolkadotProtocolOptions = exports.PolkadotProtocolNetwork = exports.PolkadotProtocolConfig = exports.PolkadotSubscanBlockExplorer = exports.PolkadotProtocolNetworkExtras = exports.KusamaProtocolOptions = exports.KusamaProtocolNetwork = exports.KusamaProtocolConfig = exports.KusamaPolkascanBlockExplorer = exports.KusamaProtocolNetworkExtras = exports.KusamaProtocol = exports.PolkadotProtocol = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var coinlib_core_1 = require("@airgap/coinlib-core");
|
|
5
|
+
var serializer_1 = require("@airgap/serializer");
|
|
6
|
+
var KusamaProtocol_1 = require("./protocol/kusama/KusamaProtocol");
|
|
7
7
|
Object.defineProperty(exports, "KusamaProtocol", { enumerable: true, get: function () { return KusamaProtocol_1.KusamaProtocol; } });
|
|
8
|
-
|
|
8
|
+
var KusamaProtocolOptions_1 = require("./protocol/kusama/KusamaProtocolOptions");
|
|
9
9
|
Object.defineProperty(exports, "KusamaProtocolConfig", { enumerable: true, get: function () { return KusamaProtocolOptions_1.KusamaProtocolConfig; } });
|
|
10
10
|
Object.defineProperty(exports, "KusamaProtocolNetwork", { enumerable: true, get: function () { return KusamaProtocolOptions_1.KusamaProtocolNetwork; } });
|
|
11
11
|
Object.defineProperty(exports, "KusamaProtocolNetworkExtras", { enumerable: true, get: function () { return KusamaProtocolOptions_1.KusamaProtocolNetworkExtras; } });
|
|
12
12
|
Object.defineProperty(exports, "KusamaProtocolOptions", { enumerable: true, get: function () { return KusamaProtocolOptions_1.KusamaProtocolOptions; } });
|
|
13
13
|
Object.defineProperty(exports, "KusamaPolkascanBlockExplorer", { enumerable: true, get: function () { return KusamaProtocolOptions_1.KusamaSubscanBlockExplorer; } });
|
|
14
|
-
|
|
14
|
+
var PolkadotProtocol_1 = require("./protocol/polkadot/PolkadotProtocol");
|
|
15
15
|
Object.defineProperty(exports, "PolkadotProtocol", { enumerable: true, get: function () { return PolkadotProtocol_1.PolkadotProtocol; } });
|
|
16
|
-
|
|
16
|
+
var PolkadotProtocolOptions_1 = require("./protocol/polkadot/PolkadotProtocolOptions");
|
|
17
17
|
Object.defineProperty(exports, "PolkadotProtocolConfig", { enumerable: true, get: function () { return PolkadotProtocolOptions_1.PolkadotProtocolConfig; } });
|
|
18
18
|
Object.defineProperty(exports, "PolkadotProtocolNetwork", { enumerable: true, get: function () { return PolkadotProtocolOptions_1.PolkadotProtocolNetwork; } });
|
|
19
19
|
Object.defineProperty(exports, "PolkadotProtocolNetworkExtras", { enumerable: true, get: function () { return PolkadotProtocolOptions_1.PolkadotProtocolNetworkExtras; } });
|
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,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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.KusamaProtocol = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
var ProtocolSymbols_1 = require("@airgap/coinlib-core/utils/ProtocolSymbols");
|
|
20
|
+
var SubstrateDelegateProtocol_1 = require("@airgap/substrate/v0/protocol/SubstrateDelegateProtocol");
|
|
21
|
+
var KusamaProtocolOptions_1 = require("./KusamaProtocolOptions");
|
|
22
|
+
var KusamaProtocol = /** @class */ (function (_super) {
|
|
23
|
+
__extends(KusamaProtocol, _super);
|
|
24
|
+
function KusamaProtocol(options) {
|
|
25
|
+
if (options === void 0) { options = new KusamaProtocolOptions_1.KusamaProtocolOptions(); }
|
|
26
|
+
var _this = _super.call(this, options) || this;
|
|
27
|
+
_this.options = options;
|
|
28
|
+
_this.symbol = 'KSM';
|
|
29
|
+
_this.name = 'Kusama';
|
|
30
|
+
_this.marketSymbol = 'KSM';
|
|
31
|
+
_this.feeSymbol = 'KSM';
|
|
32
|
+
_this.decimals = 12;
|
|
33
|
+
_this.feeDecimals = 12;
|
|
34
|
+
_this.identifier = ProtocolSymbols_1.MainProtocolSymbols.KUSAMA;
|
|
35
|
+
_this.feeDefaults = {
|
|
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: 'KSM',
|
|
26
43
|
factor: '1'
|
|
@@ -42,11 +59,13 @@ class KusamaProtocol extends SubstrateDelegateProtocol_1.SubstrateDelegateProtoc
|
|
|
42
59
|
factor: '0.000000000001'
|
|
43
60
|
}
|
|
44
61
|
];
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
_this.standardDerivationPath = "m/44'/434'/0'/0/0";
|
|
63
|
+
_this.addressIsCaseSensitive = true;
|
|
64
|
+
_this.addressValidationPattern = '^[C-HJ][a-km-zA-HJ-NP-Z1-9]+$';
|
|
65
|
+
_this.addressPlaceholder = "C/D/E/F/G/H/J...";
|
|
66
|
+
return _this;
|
|
49
67
|
}
|
|
50
|
-
|
|
68
|
+
return KusamaProtocol;
|
|
69
|
+
}(SubstrateDelegateProtocol_1.SubstrateDelegateProtocol));
|
|
51
70
|
exports.KusamaProtocol = KusamaProtocol;
|
|
52
71
|
//# sourceMappingURL=KusamaProtocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KusamaProtocol.js","sourceRoot":"","sources":["../../../../src/v0/protocol/kusama/KusamaProtocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KusamaProtocol.js","sourceRoot":"","sources":["../../../../src/v0/protocol/kusama/KusamaProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,8EAAiG;AACjG,qGAAmG;AAInG,iEAA+D;AAE/D;IAAoC,kCAAkD;IA6CpF,wBAAmC,OAAwF;QAAxF,wBAAA,EAAA,cAAiE,6CAAqB,EAAE;QAA3H,YACE,kBAAM,OAAO,CAAC,SACf;QAFkC,aAAO,GAAP,OAAO,CAAiF;QA5CpH,YAAM,GAAW,KAAK,CAAA;QACtB,UAAI,GAAW,QAAQ,CAAA;QACvB,kBAAY,GAAW,KAAK,CAAA;QAC5B,eAAS,GAAW,KAAK,CAAA;QAEzB,cAAQ,GAAW,EAAE,CAAA;QACrB,iBAAW,GAAW,EAAE,CAAA;QACxB,gBAAU,GAAoB,qCAAmB,CAAC,MAAM,CAAA;QAExD,iBAAW,GAAgB;YAChC,GAAG,EAAE,OAAO;YACZ,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,OAAO;SACd,CAAA;QAEM,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,OAAO;gBACnB,MAAM,EAAE,aAAa;aACtB;YACD;gBACE,UAAU,EAAE,QAAQ;gBACpB,MAAM,EAAE,gBAAgB;aACzB;SACF,CAAA;QAEM,4BAAsB,GAAW,mBAAmB,CAAA;QAEpD,4BAAsB,GAAY,IAAI,CAAA;QACtC,8BAAwB,GAAW,+BAA+B,CAAA;QAClE,wBAAkB,GAAW,kBAAkB,CAAA;;IAItD,CAAC;IACH,qBAAC;AAAD,CAAC,AAhDD,CAAoC,qDAAyB,GAgD5D;AAhDY,wCAAc"}
|
|
@@ -1,48 +1,85 @@
|
|
|
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.KusamaProtocolOptions = exports.KusamaProtocolNetwork = exports.KusamaProtocolConfig = exports.KusamaSubscanBlockExplorer = exports.KusamaProtocolNetworkExtras = void 0;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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://assethub-kusama.api.onfinality.io/public';
|
|
28
|
+
var BLOCK_EXPLORER_URL = 'https://kusama.subscan.io';
|
|
29
|
+
var BLOCK_EXPLORER_API = 'https://kusama.subscan.prod.gke.papers.tech/api/scan';
|
|
30
|
+
var KusamaProtocolNetworkExtras = /** @class */ (function (_super) {
|
|
31
|
+
__extends(KusamaProtocolNetworkExtras, _super);
|
|
32
|
+
function KusamaProtocolNetworkExtras(apiUrl) {
|
|
33
|
+
if (apiUrl === void 0) { apiUrl = BLOCK_EXPLORER_API; }
|
|
34
|
+
var _this = _super.call(this, apiUrl, SubstrateNetwork_1.SubstrateNetwork.KUSAMA) || this;
|
|
35
|
+
_this.apiUrl = apiUrl;
|
|
36
|
+
return _this;
|
|
19
37
|
}
|
|
20
|
-
|
|
38
|
+
return KusamaProtocolNetworkExtras;
|
|
39
|
+
}(SubstrateProtocolOptions_1.SubstrateProtocolNetworkExtras));
|
|
21
40
|
exports.KusamaProtocolNetworkExtras = KusamaProtocolNetworkExtras;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
41
|
+
var KusamaSubscanBlockExplorer = /** @class */ (function (_super) {
|
|
42
|
+
__extends(KusamaSubscanBlockExplorer, _super);
|
|
43
|
+
function KusamaSubscanBlockExplorer(blockExplorer) {
|
|
44
|
+
if (blockExplorer === void 0) { blockExplorer = BLOCK_EXPLORER_URL; }
|
|
45
|
+
return _super.call(this, blockExplorer) || this;
|
|
25
46
|
}
|
|
26
|
-
|
|
47
|
+
return KusamaSubscanBlockExplorer;
|
|
48
|
+
}(SubstrateProtocolOptions_1.SubscanBlockExplorer));
|
|
27
49
|
exports.KusamaSubscanBlockExplorer = KusamaSubscanBlockExplorer;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
50
|
+
var KusamaProtocolConfig = /** @class */ (function (_super) {
|
|
51
|
+
__extends(KusamaProtocolConfig, _super);
|
|
52
|
+
function KusamaProtocolConfig() {
|
|
53
|
+
return _super.call(this) || this;
|
|
31
54
|
}
|
|
32
|
-
|
|
55
|
+
return KusamaProtocolConfig;
|
|
56
|
+
}(SubstrateProtocolOptions_1.SubstrateProtocolConfig));
|
|
33
57
|
exports.KusamaProtocolConfig = KusamaProtocolConfig;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
58
|
+
var KusamaProtocolNetwork = /** @class */ (function (_super) {
|
|
59
|
+
__extends(KusamaProtocolNetwork, _super);
|
|
60
|
+
function KusamaProtocolNetwork(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 KusamaSubscanBlockExplorer(); }
|
|
65
|
+
if (extras === void 0) { extras = new KusamaProtocolNetworkExtras(); }
|
|
66
|
+
return _super.call(this, name, type, rpcUrl, blockExplorer, extras) || this;
|
|
37
67
|
}
|
|
38
|
-
|
|
68
|
+
return KusamaProtocolNetwork;
|
|
69
|
+
}(ProtocolNetwork_1.ProtocolNetwork));
|
|
39
70
|
exports.KusamaProtocolNetwork = KusamaProtocolNetwork;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
71
|
+
var KusamaProtocolOptions = /** @class */ (function (_super) {
|
|
72
|
+
__extends(KusamaProtocolOptions, _super);
|
|
73
|
+
function KusamaProtocolOptions(network, config, nodeClient) {
|
|
74
|
+
if (network === void 0) { network = new KusamaProtocolNetwork(); }
|
|
75
|
+
if (config === void 0) { config = new KusamaProtocolConfig(); }
|
|
76
|
+
if (nodeClient === void 0) { nodeClient = new SubstrateNodeClient_1.SubstrateNodeClient(network.extras.network, network.rpcUrl); }
|
|
77
|
+
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;
|
|
78
|
+
_this.network = network;
|
|
79
|
+
_this.config = config;
|
|
80
|
+
return _this;
|
|
45
81
|
}
|
|
46
|
-
|
|
82
|
+
return KusamaProtocolOptions;
|
|
83
|
+
}(SubstrateProtocolOptions_1.SubstrateProtocolOptions));
|
|
47
84
|
exports.KusamaProtocolOptions = KusamaProtocolOptions;
|
|
48
85
|
//# sourceMappingURL=KusamaProtocolOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KusamaProtocolOptions.js","sourceRoot":"","sources":["../../../../src/v0/protocol/kusama/KusamaProtocolOptions.ts"],"names":[],"mappings":";AAAA,sCAAsC
|
|
1
|
+
{"version":3,"file":"KusamaProtocolOptions.js","sourceRoot":"","sources":["../../../../src/v0/protocol/kusama/KusamaProtocolOptions.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;;;;;;;;;;;;;;;;AAGtC,8EAAyF;AACzF,qGAAmG;AACnG,8GAA4G;AAC5G,sHAAoH;AACpH,mFAAiF;AACjF,mGAK+D;AAE/D,IAAM,YAA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qB,EAAE;QAC5D,uBAAA,EAAA,aAAmC,oBAAoB,EAAE;QACzE,2BAAA,EAAA,iBAA+D,yCAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC;QAH5H,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,CAAqD;QAC5D,YAAM,GAAN,MAAM,CAAmD;;IAU3E,CAAC;IACH,4BAAC;AAAD,CAAC,AAdD,CAA2C,mDAAwB,GAclE;AAdY,sDAAqB"}
|
|
@@ -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.PolkadotProtocol = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
var ProtocolSymbols_1 = require("@airgap/coinlib-core/utils/ProtocolSymbols");
|
|
20
|
+
var SubstrateDelegateProtocol_1 = require("@airgap/substrate/v0/protocol/SubstrateDelegateProtocol");
|
|
21
|
+
var PolkadotProtocolOptions_1 = require("./PolkadotProtocolOptions");
|
|
22
|
+
var PolkadotProtocol = /** @class */ (function (_super) {
|
|
23
|
+
__extends(PolkadotProtocol, _super);
|
|
24
|
+
function PolkadotProtocol(options) {
|
|
25
|
+
if (options === void 0) { options = new PolkadotProtocolOptions_1.PolkadotProtocolOptions(); }
|
|
26
|
+
var _this = _super.call(this, options) || this;
|
|
27
|
+
_this.options = options;
|
|
28
|
+
_this.symbol = 'DOT';
|
|
29
|
+
_this.name = 'Polkadot';
|
|
30
|
+
_this.marketSymbol = 'DOT';
|
|
31
|
+
_this.feeSymbol = 'DOT';
|
|
32
|
+
_this.decimals = 10;
|
|
33
|
+
_this.feeDecimals = 10;
|
|
34
|
+
_this.identifier = ProtocolSymbols_1.MainProtocolSymbols.POLKADOT;
|
|
35
|
+
_this.feeDefaults = {
|
|
36
|
+
low: '0.01',
|
|
20
37
|
medium: '0.01',
|
|
21
38
|
high: '0.01'
|
|
22
39
|
};
|
|
23
|
-
|
|
40
|
+
_this.units = [
|
|
24
41
|
{
|
|
25
42
|
unitSymbol: 'DOT',
|
|
26
43
|
factor: '1'
|
|
@@ -42,12 +59,14 @@ class PolkadotProtocol extends SubstrateDelegateProtocol_1.SubstrateDelegateProt
|
|
|
42
59
|
factor: '0.0000000001'
|
|
43
60
|
}
|
|
44
61
|
];
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
62
|
+
_this.standardDerivationPath = "m/44'/354'/0'/0/0";
|
|
63
|
+
_this.addressIsCaseSensitive = true;
|
|
64
|
+
_this.addressValidationPattern = '^1[a-km-zA-HJ-NP-Z1-9]+$';
|
|
65
|
+
_this.addressPlaceholder = "1ABC...";
|
|
66
|
+
_this.defaultValidator = '12C9U6zSSoZ6pgwR2ksFyBLgQH6v7dkqqPCRyHceoP8MJRo2';
|
|
67
|
+
return _this;
|
|
50
68
|
}
|
|
51
|
-
|
|
69
|
+
return PolkadotProtocol;
|
|
70
|
+
}(SubstrateDelegateProtocol_1.SubstrateDelegateProtocol));
|
|
52
71
|
exports.PolkadotProtocol = PolkadotProtocol;
|
|
53
72
|
//# sourceMappingURL=PolkadotProtocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolkadotProtocol.js","sourceRoot":"","sources":["../../../../src/v0/protocol/polkadot/PolkadotProtocol.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PolkadotProtocol.js","sourceRoot":"","sources":["../../../../src/v0/protocol/polkadot/PolkadotProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,8EAAiG;AACjG,qGAAmG;AAInG,qEAAmE;AAEnE;IAAsC,oCAAoD;IA+CxF,0BAAmC,OAA4F;QAA5F,wBAAA,EAAA,cAAmE,iDAAuB,EAAE;QAA/H,YACE,kBAAM,OAAO,CAAC,SACf;QAFkC,aAAO,GAAP,OAAO,CAAqF;QA9CxH,YAAM,GAAW,KAAK,CAAA;QACtB,UAAI,GAAW,UAAU,CAAA;QACzB,kBAAY,GAAW,KAAK,CAAA;QAC5B,eAAS,GAAW,KAAK,CAAA;QAEzB,cAAQ,GAAW,EAAE,CAAA;QACrB,iBAAW,GAAW,EAAE,CAAA;QACxB,gBAAU,GAAoB,qCAAmB,CAAC,QAAQ,CAAA;QAE1D,iBAAW,GAAgB;YAChC,GAAG,EAAE,MAAM;YACX,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;SACb,CAAA;QAEM,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,OAAO;gBACnB,MAAM,EAAE,aAAa;aACtB;YACD;gBACE,UAAU,EAAE,QAAQ;gBACpB,MAAM,EAAE,cAAc;aACvB;SACF,CAAA;QAEM,4BAAsB,GAAW,mBAAmB,CAAA;QAEpD,4BAAsB,GAAY,IAAI,CAAA;QACtC,8BAAwB,GAAW,0BAA0B,CAAA;QAC7D,wBAAkB,GAAW,SAAS,CAAA;QAEtC,sBAAgB,GAAW,kDAAkD,CAAA;;IAIpF,CAAC;IACH,uBAAC;AAAD,CAAC,AAlDD,CAAsC,qDAAyB,GAkD9D;AAlDY,4CAAgB"}
|
|
@@ -1,48 +1,85 @@
|
|
|
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.PolkadotProtocolOptions = exports.PolkadotProtocolNetwork = exports.PolkadotProtocolConfig = exports.PolkadotSubscanBlockExplorer = exports.PolkadotProtocolNetworkExtras = void 0;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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://statemint.api.onfinality.io/public';
|
|
28
|
+
var BLOCK_EXPLORER_URL = 'https://polkadot.subscan.io';
|
|
29
|
+
var BLOCK_EXPLORER_API = 'https://polkadot.subscan.prod.gke.papers.tech/api/scan';
|
|
30
|
+
var PolkadotProtocolNetworkExtras = /** @class */ (function (_super) {
|
|
31
|
+
__extends(PolkadotProtocolNetworkExtras, _super);
|
|
32
|
+
function PolkadotProtocolNetworkExtras(apiUrl) {
|
|
33
|
+
if (apiUrl === void 0) { apiUrl = BLOCK_EXPLORER_API; }
|
|
34
|
+
var _this = _super.call(this, apiUrl, SubstrateNetwork_1.SubstrateNetwork.POLKADOT) || this;
|
|
35
|
+
_this.apiUrl = apiUrl;
|
|
36
|
+
return _this;
|
|
19
37
|
}
|
|
20
|
-
|
|
38
|
+
return PolkadotProtocolNetworkExtras;
|
|
39
|
+
}(SubstrateProtocolOptions_1.SubstrateProtocolNetworkExtras));
|
|
21
40
|
exports.PolkadotProtocolNetworkExtras = PolkadotProtocolNetworkExtras;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
41
|
+
var PolkadotSubscanBlockExplorer = /** @class */ (function (_super) {
|
|
42
|
+
__extends(PolkadotSubscanBlockExplorer, _super);
|
|
43
|
+
function PolkadotSubscanBlockExplorer(blockExplorer) {
|
|
44
|
+
if (blockExplorer === void 0) { blockExplorer = BLOCK_EXPLORER_URL; }
|
|
45
|
+
return _super.call(this, blockExplorer) || this;
|
|
25
46
|
}
|
|
26
|
-
|
|
47
|
+
return PolkadotSubscanBlockExplorer;
|
|
48
|
+
}(SubstrateProtocolOptions_1.SubscanBlockExplorer));
|
|
27
49
|
exports.PolkadotSubscanBlockExplorer = PolkadotSubscanBlockExplorer;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
50
|
+
var PolkadotProtocolConfig = /** @class */ (function (_super) {
|
|
51
|
+
__extends(PolkadotProtocolConfig, _super);
|
|
52
|
+
function PolkadotProtocolConfig() {
|
|
53
|
+
return _super.call(this) || this;
|
|
31
54
|
}
|
|
32
|
-
|
|
55
|
+
return PolkadotProtocolConfig;
|
|
56
|
+
}(SubstrateProtocolOptions_1.SubstrateProtocolConfig));
|
|
33
57
|
exports.PolkadotProtocolConfig = PolkadotProtocolConfig;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
58
|
+
var PolkadotProtocolNetwork = /** @class */ (function (_super) {
|
|
59
|
+
__extends(PolkadotProtocolNetwork, _super);
|
|
60
|
+
function PolkadotProtocolNetwork(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 PolkadotSubscanBlockExplorer(); }
|
|
65
|
+
if (extras === void 0) { extras = new PolkadotProtocolNetworkExtras(); }
|
|
66
|
+
return _super.call(this, name, type, rpcUrl, blockExplorer, extras) || this;
|
|
37
67
|
}
|
|
38
|
-
|
|
68
|
+
return PolkadotProtocolNetwork;
|
|
69
|
+
}(ProtocolNetwork_1.ProtocolNetwork));
|
|
39
70
|
exports.PolkadotProtocolNetwork = PolkadotProtocolNetwork;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
71
|
+
var PolkadotProtocolOptions = /** @class */ (function (_super) {
|
|
72
|
+
__extends(PolkadotProtocolOptions, _super);
|
|
73
|
+
function PolkadotProtocolOptions(network, config, nodeClient) {
|
|
74
|
+
if (network === void 0) { network = new PolkadotProtocolNetwork(); }
|
|
75
|
+
if (config === void 0) { config = new PolkadotProtocolConfig(); }
|
|
76
|
+
if (nodeClient === void 0) { nodeClient = new SubstrateNodeClient_1.SubstrateNodeClient(network.extras.network, network.rpcUrl); }
|
|
77
|
+
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;
|
|
78
|
+
_this.network = network;
|
|
79
|
+
_this.config = config;
|
|
80
|
+
return _this;
|
|
45
81
|
}
|
|
46
|
-
|
|
82
|
+
return PolkadotProtocolOptions;
|
|
83
|
+
}(SubstrateProtocolOptions_1.SubstrateProtocolOptions));
|
|
47
84
|
exports.PolkadotProtocolOptions = PolkadotProtocolOptions;
|
|
48
85
|
//# sourceMappingURL=PolkadotProtocolOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PolkadotProtocolOptions.js","sourceRoot":"","sources":["../../../../src/v0/protocol/polkadot/PolkadotProtocolOptions.ts"],"names":[],"mappings":";AAAA,sCAAsC
|
|
1
|
+
{"version":3,"file":"PolkadotProtocolOptions.js","source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