@airgap/polkadot 0.13.45-beta.1 → 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 +4 -4
- package/v0/index.js +6 -6
- package/v0/index.js.map +1 -1
- package/v0/protocol/kusama/KusamaProtocol.js +22 -41
- package/v0/protocol/kusama/KusamaProtocol.js.map +1 -1
- package/v0/protocol/kusama/KusamaProtocolOptions.js +33 -70
- package/v0/protocol/kusama/KusamaProtocolOptions.js.map +1 -1
- package/v0/protocol/polkadot/PolkadotProtocol.js +23 -42
- package/v0/protocol/polkadot/PolkadotProtocol.js.map +1 -1
- package/v0/protocol/polkadot/PolkadotProtocolOptions.js +33 -70
- package/v0/protocol/polkadot/PolkadotProtocolOptions.js.map +1 -1
- package/v1/controller/PolkadotAccountController.js +373 -648
- package/v1/controller/PolkadotAccountController.js.map +1 -1
- package/v1/controller/PolkadotTransactionController.js +3 -23
- package/v1/controller/PolkadotTransactionController.js.map +1 -1
- package/v1/data/staking/PolkadotActiveEraInfo.js +10 -11
- package/v1/data/staking/PolkadotActiveEraInfo.js.map +1 -1
- package/v1/data/staking/PolkadotEraRewardPoints.js +10 -13
- package/v1/data/staking/PolkadotEraRewardPoints.js.map +1 -1
- package/v1/data/staking/PolkadotExposure.js +11 -14
- 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 +11 -12
- 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 +12 -13
- 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 +13 -16
- package/v1/data/staking/PolkadotStakingLedger.js.map +1 -1
- package/v1/data/staking/PolkadotValidatorDetails.d.ts +1 -1
- package/v1/data/staking/PolkadotValidatorPrefs.js +9 -10
- package/v1/data/staking/PolkadotValidatorPrefs.js.map +1 -1
- package/v1/data/transaction/method/args.js +146 -271
- package/v1/data/transaction/method/args.js.map +1 -1
- package/v1/data/transaction/transaction.js +11 -22
- 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 +40 -98
- package/v1/module/PolkadotModule.js.map +1 -1
- package/v1/module.js +2 -3
- package/v1/module.js.map +1 -1
- package/v1/node/PolkadotNodeClient.js +101 -284
- package/v1/node/PolkadotNodeClient.js.map +1 -1
- package/v1/protocol/KusamaProtocol.js +28 -54
- package/v1/protocol/KusamaProtocol.js.map +1 -1
- package/v1/protocol/PolkadotBaseProtocol.js +409 -701
- package/v1/protocol/PolkadotBaseProtocol.js.map +1 -1
- package/v1/protocol/PolkadotProtocol.js +20 -51
- package/v1/protocol/PolkadotProtocol.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 +75 -154
- 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/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.3",
|
|
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.3",
|
|
36
|
+
"@airgap/module-kit": "^0.13.45-beta.3",
|
|
37
|
+
"@airgap/substrate": "^0.13.45-beta.3"
|
|
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
|
+
const coinlib_core_1 = require("@airgap/coinlib-core");
|
|
5
|
+
const serializer_1 = require("@airgap/serializer");
|
|
6
|
+
const KusamaProtocol_1 = require("./protocol/kusama/KusamaProtocol");
|
|
7
7
|
Object.defineProperty(exports, "KusamaProtocol", { enumerable: true, get: function () { return KusamaProtocol_1.KusamaProtocol; } });
|
|
8
|
-
|
|
8
|
+
const 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
|
+
const PolkadotProtocol_1 = require("./protocol/polkadot/PolkadotProtocol");
|
|
15
15
|
Object.defineProperty(exports, "PolkadotProtocol", { enumerable: true, get: function () { return PolkadotProtocol_1.PolkadotProtocol; } });
|
|
16
|
-
|
|
16
|
+
const 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,43 +1,26 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.KusamaProtocol = void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
_this.feeDefaults = {
|
|
36
|
-
low: '0.001',
|
|
4
|
+
const ProtocolSymbols_1 = require("@airgap/coinlib-core/utils/ProtocolSymbols");
|
|
5
|
+
const SubstrateDelegateProtocol_1 = require("@airgap/substrate/v0/protocol/SubstrateDelegateProtocol");
|
|
6
|
+
const KusamaProtocolOptions_1 = require("./KusamaProtocolOptions");
|
|
7
|
+
class KusamaProtocol extends SubstrateDelegateProtocol_1.SubstrateDelegateProtocol {
|
|
8
|
+
constructor(options = new KusamaProtocolOptions_1.KusamaProtocolOptions()) {
|
|
9
|
+
super(options);
|
|
10
|
+
this.options = options;
|
|
11
|
+
this.symbol = 'KSM';
|
|
12
|
+
this.name = 'Kusama';
|
|
13
|
+
this.marketSymbol = 'KSM';
|
|
14
|
+
this.feeSymbol = 'KSM';
|
|
15
|
+
this.decimals = 12;
|
|
16
|
+
this.feeDecimals = 12;
|
|
17
|
+
this.identifier = ProtocolSymbols_1.MainProtocolSymbols.KUSAMA;
|
|
18
|
+
this.feeDefaults = {
|
|
19
|
+
low: '0.001', // 1 000 000 000
|
|
37
20
|
medium: '0.001',
|
|
38
21
|
high: '0.001'
|
|
39
22
|
};
|
|
40
|
-
|
|
23
|
+
this.units = [
|
|
41
24
|
{
|
|
42
25
|
unitSymbol: 'KSM',
|
|
43
26
|
factor: '1'
|
|
@@ -59,13 +42,11 @@ var KusamaProtocol = /** @class */ (function (_super) {
|
|
|
59
42
|
factor: '0.000000000001'
|
|
60
43
|
}
|
|
61
44
|
];
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return _this;
|
|
45
|
+
this.standardDerivationPath = `m/44'/434'/0'/0/0`;
|
|
46
|
+
this.addressIsCaseSensitive = true;
|
|
47
|
+
this.addressValidationPattern = '^[C-HJ][a-km-zA-HJ-NP-Z1-9]+$';
|
|
48
|
+
this.addressPlaceholder = `C/D/E/F/G/H/J...`;
|
|
67
49
|
}
|
|
68
|
-
|
|
69
|
-
}(SubstrateDelegateProtocol_1.SubstrateDelegateProtocol));
|
|
50
|
+
}
|
|
70
51
|
exports.KusamaProtocol = KusamaProtocol;
|
|
71
52
|
//# 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,gFAAiG;AACjG,uGAAmG;AAInG,mEAA+D;AAE/D,MAAa,cAAe,SAAQ,qDAAkD;IA6CpF,YAAmC,UAA6D,IAAI,6CAAqB,EAAE;QACzH,KAAK,CAAC,OAAO,CAAC,CAAA;QADmB,YAAO,GAAP,OAAO,CAAiF;QA5CpH,WAAM,GAAW,KAAK,CAAA;QACtB,SAAI,GAAW,QAAQ,CAAA;QACvB,iBAAY,GAAW,KAAK,CAAA;QAC5B,cAAS,GAAW,KAAK,CAAA;QAEzB,aAAQ,GAAW,EAAE,CAAA;QACrB,gBAAW,GAAW,EAAE,CAAA;QACxB,eAAU,GAAoB,qCAAmB,CAAC,MAAM,CAAA;QAExD,gBAAW,GAAgB;YAChC,GAAG,EAAE,OAAO,EAAE,gBAAgB;YAC9B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,OAAO;SACd,CAAA;QAEM,UAAK,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,2BAAsB,GAAW,mBAAmB,CAAA;QAEpD,2BAAsB,GAAY,IAAI,CAAA;QACtC,6BAAwB,GAAW,+BAA+B,CAAA;QAClE,uBAAkB,GAAW,kBAAkB,CAAA;IAItD,CAAC;CACF;AAhDD,wCAgDC"}
|
|
@@ -1,85 +1,48 @@
|
|
|
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
|
-
})();
|
|
18
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
4
|
exports.KusamaProtocolOptions = exports.KusamaProtocolNetwork = exports.KusamaProtocolConfig = exports.KusamaSubscanBlockExplorer = exports.KusamaProtocolNetworkExtras = void 0;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var _this = _super.call(this, apiUrl, SubstrateNetwork_1.SubstrateNetwork.KUSAMA) || this;
|
|
35
|
-
_this.apiUrl = apiUrl;
|
|
36
|
-
return _this;
|
|
5
|
+
const ProtocolNetwork_1 = require("@airgap/coinlib-core/utils/ProtocolNetwork");
|
|
6
|
+
const SubstrateNodeClient_1 = require("@airgap/substrate/v0/protocol/common/node/SubstrateNodeClient");
|
|
7
|
+
const SubstrateAccountController_1 = require("@airgap/substrate/v0/protocol/common/SubstrateAccountController");
|
|
8
|
+
const SubstrateTransactionController_1 = require("@airgap/substrate/v0/protocol/common/SubstrateTransactionController");
|
|
9
|
+
const SubstrateNetwork_1 = require("@airgap/substrate/v0/protocol/SubstrateNetwork");
|
|
10
|
+
const SubstrateProtocolOptions_1 = require("@airgap/substrate/v0/protocol/SubstrateProtocolOptions");
|
|
11
|
+
const MAINNET_NAME = 'Mainnet';
|
|
12
|
+
const NODE_URL = 'https://assethub-kusama.api.onfinality.io/public';
|
|
13
|
+
const BLOCK_EXPLORER_URL = 'https://kusama.subscan.io';
|
|
14
|
+
const BLOCK_EXPLORER_API = 'https://kusama.subscan.prod.gke.papers.tech/api/scan';
|
|
15
|
+
class KusamaProtocolNetworkExtras extends SubstrateProtocolOptions_1.SubstrateProtocolNetworkExtras {
|
|
16
|
+
constructor(apiUrl = BLOCK_EXPLORER_API) {
|
|
17
|
+
super(apiUrl, SubstrateNetwork_1.SubstrateNetwork.KUSAMA);
|
|
18
|
+
this.apiUrl = apiUrl;
|
|
37
19
|
}
|
|
38
|
-
|
|
39
|
-
}(SubstrateProtocolOptions_1.SubstrateProtocolNetworkExtras));
|
|
20
|
+
}
|
|
40
21
|
exports.KusamaProtocolNetworkExtras = KusamaProtocolNetworkExtras;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (blockExplorer === void 0) { blockExplorer = BLOCK_EXPLORER_URL; }
|
|
45
|
-
return _super.call(this, blockExplorer) || this;
|
|
22
|
+
class KusamaSubscanBlockExplorer extends SubstrateProtocolOptions_1.SubscanBlockExplorer {
|
|
23
|
+
constructor(blockExplorer = BLOCK_EXPLORER_URL) {
|
|
24
|
+
super(blockExplorer);
|
|
46
25
|
}
|
|
47
|
-
|
|
48
|
-
}(SubstrateProtocolOptions_1.SubscanBlockExplorer));
|
|
26
|
+
}
|
|
49
27
|
exports.KusamaSubscanBlockExplorer = KusamaSubscanBlockExplorer;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return _super.call(this) || this;
|
|
28
|
+
class KusamaProtocolConfig extends SubstrateProtocolOptions_1.SubstrateProtocolConfig {
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
54
31
|
}
|
|
55
|
-
|
|
56
|
-
}(SubstrateProtocolOptions_1.SubstrateProtocolConfig));
|
|
32
|
+
}
|
|
57
33
|
exports.KusamaProtocolConfig = KusamaProtocolConfig;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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;
|
|
34
|
+
class KusamaProtocolNetwork extends ProtocolNetwork_1.ProtocolNetwork {
|
|
35
|
+
constructor(name = MAINNET_NAME, type = ProtocolNetwork_1.NetworkType.MAINNET, rpcUrl = NODE_URL, blockExplorer = new KusamaSubscanBlockExplorer(), extras = new KusamaProtocolNetworkExtras()) {
|
|
36
|
+
super(name, type, rpcUrl, blockExplorer, extras);
|
|
67
37
|
}
|
|
68
|
-
|
|
69
|
-
}(ProtocolNetwork_1.ProtocolNetwork));
|
|
38
|
+
}
|
|
70
39
|
exports.KusamaProtocolNetwork = KusamaProtocolNetwork;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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;
|
|
40
|
+
class KusamaProtocolOptions extends SubstrateProtocolOptions_1.SubstrateProtocolOptions {
|
|
41
|
+
constructor(network = new KusamaProtocolNetwork(), config = new KusamaProtocolConfig(), nodeClient = new SubstrateNodeClient_1.SubstrateNodeClient(network.extras.network, network.rpcUrl)) {
|
|
42
|
+
super(network, config, nodeClient, new SubstrateAccountController_1.SubstrateAccountController(network.extras.network, nodeClient), new SubstrateTransactionController_1.SubstrateTransactionController(network.extras.network, nodeClient));
|
|
43
|
+
this.network = network;
|
|
44
|
+
this.config = config;
|
|
81
45
|
}
|
|
82
|
-
|
|
83
|
-
}(SubstrateProtocolOptions_1.SubstrateProtocolOptions));
|
|
46
|
+
}
|
|
84
47
|
exports.KusamaProtocolOptions = KusamaProtocolOptions;
|
|
85
48
|
//# 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,gFAAyF;AACzF,uGAAmG;AACnG,gHAA4G;AAC5G,wHAAoH;AACpH,qFAAiF;AACjF,qGAK+D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AAC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,CACvE,CAAA;QAVe,YAAO,GAAP,OAAO,CAAqD;QAC5D,WAAM,GAAN,MAAM,CAAmD;IAU3E,CAAC;CACF;AAdD,sDAcC"}
|
|
@@ -1,43 +1,26 @@
|
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.PolkadotProtocol = void 0;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
_this.feeDefaults = {
|
|
36
|
-
low: '0.01',
|
|
4
|
+
const ProtocolSymbols_1 = require("@airgap/coinlib-core/utils/ProtocolSymbols");
|
|
5
|
+
const SubstrateDelegateProtocol_1 = require("@airgap/substrate/v0/protocol/SubstrateDelegateProtocol");
|
|
6
|
+
const PolkadotProtocolOptions_1 = require("./PolkadotProtocolOptions");
|
|
7
|
+
class PolkadotProtocol extends SubstrateDelegateProtocol_1.SubstrateDelegateProtocol {
|
|
8
|
+
constructor(options = new PolkadotProtocolOptions_1.PolkadotProtocolOptions()) {
|
|
9
|
+
super(options);
|
|
10
|
+
this.options = options;
|
|
11
|
+
this.symbol = 'DOT';
|
|
12
|
+
this.name = 'Polkadot';
|
|
13
|
+
this.marketSymbol = 'DOT';
|
|
14
|
+
this.feeSymbol = 'DOT';
|
|
15
|
+
this.decimals = 10;
|
|
16
|
+
this.feeDecimals = 10;
|
|
17
|
+
this.identifier = ProtocolSymbols_1.MainProtocolSymbols.POLKADOT;
|
|
18
|
+
this.feeDefaults = {
|
|
19
|
+
low: '0.01', // 100 000 000
|
|
37
20
|
medium: '0.01',
|
|
38
21
|
high: '0.01'
|
|
39
22
|
};
|
|
40
|
-
|
|
23
|
+
this.units = [
|
|
41
24
|
{
|
|
42
25
|
unitSymbol: 'DOT',
|
|
43
26
|
factor: '1'
|
|
@@ -59,14 +42,12 @@ var PolkadotProtocol = /** @class */ (function (_super) {
|
|
|
59
42
|
factor: '0.0000000001'
|
|
60
43
|
}
|
|
61
44
|
];
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return _this;
|
|
45
|
+
this.standardDerivationPath = `m/44'/354'/0'/0/0`;
|
|
46
|
+
this.addressIsCaseSensitive = true;
|
|
47
|
+
this.addressValidationPattern = '^1[a-km-zA-HJ-NP-Z1-9]+$';
|
|
48
|
+
this.addressPlaceholder = `1ABC...`;
|
|
49
|
+
this.defaultValidator = '12C9U6zSSoZ6pgwR2ksFyBLgQH6v7dkqqPCRyHceoP8MJRo2';
|
|
68
50
|
}
|
|
69
|
-
|
|
70
|
-
}(SubstrateDelegateProtocol_1.SubstrateDelegateProtocol));
|
|
51
|
+
}
|
|
71
52
|
exports.PolkadotProtocol = PolkadotProtocol;
|
|
72
53
|
//# 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,gFAAiG;AACjG,uGAAmG;AAInG,uEAAmE;AAEnE,MAAa,gBAAiB,SAAQ,qDAAoD;IA+CxF,YAAmC,UAA+D,IAAI,iDAAuB,EAAE;QAC7H,KAAK,CAAC,OAAO,CAAC,CAAA;QADmB,YAAO,GAAP,OAAO,CAAqF;QA9CxH,WAAM,GAAW,KAAK,CAAA;QACtB,SAAI,GAAW,UAAU,CAAA;QACzB,iBAAY,GAAW,KAAK,CAAA;QAC5B,cAAS,GAAW,KAAK,CAAA;QAEzB,aAAQ,GAAW,EAAE,CAAA;QACrB,gBAAW,GAAW,EAAE,CAAA;QACxB,eAAU,GAAoB,qCAAmB,CAAC,QAAQ,CAAA;QAE1D,gBAAW,GAAgB;YAChC,GAAG,EAAE,MAAM,EAAE,cAAc;YAC3B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;SACb,CAAA;QAEM,UAAK,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,2BAAsB,GAAW,mBAAmB,CAAA;QAEpD,2BAAsB,GAAY,IAAI,CAAA;QACtC,6BAAwB,GAAW,0BAA0B,CAAA;QAC7D,uBAAkB,GAAW,SAAS,CAAA;QAEtC,qBAAgB,GAAW,kDAAkD,CAAA;IAIpF,CAAC;CACF;AAlDD,4CAkDC"}
|
|
@@ -1,85 +1,48 @@
|
|
|
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
|
-
})();
|
|
18
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
4
|
exports.PolkadotProtocolOptions = exports.PolkadotProtocolNetwork = exports.PolkadotProtocolConfig = exports.PolkadotSubscanBlockExplorer = exports.PolkadotProtocolNetworkExtras = void 0;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var _this = _super.call(this, apiUrl, SubstrateNetwork_1.SubstrateNetwork.POLKADOT) || this;
|
|
35
|
-
_this.apiUrl = apiUrl;
|
|
36
|
-
return _this;
|
|
5
|
+
const ProtocolNetwork_1 = require("@airgap/coinlib-core/utils/ProtocolNetwork");
|
|
6
|
+
const SubstrateNodeClient_1 = require("@airgap/substrate/v0/protocol/common/node/SubstrateNodeClient");
|
|
7
|
+
const SubstrateAccountController_1 = require("@airgap/substrate/v0/protocol/common/SubstrateAccountController");
|
|
8
|
+
const SubstrateTransactionController_1 = require("@airgap/substrate/v0/protocol/common/SubstrateTransactionController");
|
|
9
|
+
const SubstrateNetwork_1 = require("@airgap/substrate/v0/protocol/SubstrateNetwork");
|
|
10
|
+
const SubstrateProtocolOptions_1 = require("@airgap/substrate/v0/protocol/SubstrateProtocolOptions");
|
|
11
|
+
const MAINNET_NAME = 'Mainnet';
|
|
12
|
+
const NODE_URL = 'https://statemint.api.onfinality.io/public';
|
|
13
|
+
const BLOCK_EXPLORER_URL = 'https://polkadot.subscan.io';
|
|
14
|
+
const BLOCK_EXPLORER_API = 'https://polkadot.subscan.prod.gke.papers.tech/api/scan';
|
|
15
|
+
class PolkadotProtocolNetworkExtras extends SubstrateProtocolOptions_1.SubstrateProtocolNetworkExtras {
|
|
16
|
+
constructor(apiUrl = BLOCK_EXPLORER_API) {
|
|
17
|
+
super(apiUrl, SubstrateNetwork_1.SubstrateNetwork.POLKADOT);
|
|
18
|
+
this.apiUrl = apiUrl;
|
|
37
19
|
}
|
|
38
|
-
|
|
39
|
-
}(SubstrateProtocolOptions_1.SubstrateProtocolNetworkExtras));
|
|
20
|
+
}
|
|
40
21
|
exports.PolkadotProtocolNetworkExtras = PolkadotProtocolNetworkExtras;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (blockExplorer === void 0) { blockExplorer = BLOCK_EXPLORER_URL; }
|
|
45
|
-
return _super.call(this, blockExplorer) || this;
|
|
22
|
+
class PolkadotSubscanBlockExplorer extends SubstrateProtocolOptions_1.SubscanBlockExplorer {
|
|
23
|
+
constructor(blockExplorer = BLOCK_EXPLORER_URL) {
|
|
24
|
+
super(blockExplorer);
|
|
46
25
|
}
|
|
47
|
-
|
|
48
|
-
}(SubstrateProtocolOptions_1.SubscanBlockExplorer));
|
|
26
|
+
}
|
|
49
27
|
exports.PolkadotSubscanBlockExplorer = PolkadotSubscanBlockExplorer;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return _super.call(this) || this;
|
|
28
|
+
class PolkadotProtocolConfig extends SubstrateProtocolOptions_1.SubstrateProtocolConfig {
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
54
31
|
}
|
|
55
|
-
|
|
56
|
-
}(SubstrateProtocolOptions_1.SubstrateProtocolConfig));
|
|
32
|
+
}
|
|
57
33
|
exports.PolkadotProtocolConfig = PolkadotProtocolConfig;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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;
|
|
34
|
+
class PolkadotProtocolNetwork extends ProtocolNetwork_1.ProtocolNetwork {
|
|
35
|
+
constructor(name = MAINNET_NAME, type = ProtocolNetwork_1.NetworkType.MAINNET, rpcUrl = NODE_URL, blockExplorer = new PolkadotSubscanBlockExplorer(), extras = new PolkadotProtocolNetworkExtras()) {
|
|
36
|
+
super(name, type, rpcUrl, blockExplorer, extras);
|
|
67
37
|
}
|
|
68
|
-
|
|
69
|
-
}(ProtocolNetwork_1.ProtocolNetwork));
|
|
38
|
+
}
|
|
70
39
|
exports.PolkadotProtocolNetwork = PolkadotProtocolNetwork;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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;
|
|
40
|
+
class PolkadotProtocolOptions extends SubstrateProtocolOptions_1.SubstrateProtocolOptions {
|
|
41
|
+
constructor(network = new PolkadotProtocolNetwork(), config = new PolkadotProtocolConfig(), nodeClient = new SubstrateNodeClient_1.SubstrateNodeClient(network.extras.network, network.rpcUrl)) {
|
|
42
|
+
super(network, config, nodeClient, new SubstrateAccountController_1.SubstrateAccountController(network.extras.network, nodeClient), new SubstrateTransactionController_1.SubstrateTransactionController(network.extras.network, nodeClient));
|
|
43
|
+
this.network = network;
|
|
44
|
+
this.config = config;
|
|
81
45
|
}
|
|
82
|
-
|
|
83
|
-
}(SubstrateProtocolOptions_1.SubstrateProtocolOptions));
|
|
46
|
+
}
|
|
84
47
|
exports.PolkadotProtocolOptions = PolkadotProtocolOptions;
|
|
85
48
|
//# 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","sourceRoot":"","sources":["../../../../src/v0/protocol/polkadot/PolkadotProtocolOptions.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAGtC,gFAAyF;AACzF,uGAAmG;AACnG,gHAA4G;AAC5G,wHAAoH;AACpH,qFAAiF;AACjF,qGAK+D;AAE/D,MAAM,YAAY,GAAW,SAAS,CAAA;AAEtC,MAAM,QAAQ,GAAW,4CAA4C,CAAA;AAErE,MAAM,kBAAkB,GAAW,6BAA6B,CAAA;AAChE,MAAM,kBAAkB,GAAW,wDAAwD,CAAA;AAE3F,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