@wallfree-dev/polkadot 0.13.42
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/LICENSE.md +7 -0
- package/index.d.ts +1 -0
- package/index.js +18 -0
- package/index.js.map +1 -0
- package/package.json +65 -0
- package/readme.md +121 -0
- package/v0/index.d.ts +5 -0
- package/v0/index.js +31 -0
- package/v0/index.js.map +1 -0
- package/v0/protocol/kusama/KusamaProtocol.d.ts +22 -0
- package/v0/protocol/kusama/KusamaProtocol.js +71 -0
- package/v0/protocol/kusama/KusamaProtocol.js.map +1 -0
- package/v0/protocol/kusama/KusamaProtocolOptions.d.ts +23 -0
- package/v0/protocol/kusama/KusamaProtocolOptions.js +85 -0
- package/v0/protocol/kusama/KusamaProtocolOptions.js.map +1 -0
- package/v0/protocol/polkadot/PolkadotProtocol.d.ts +23 -0
- package/v0/protocol/polkadot/PolkadotProtocol.js +72 -0
- package/v0/protocol/polkadot/PolkadotProtocol.js.map +1 -0
- package/v0/protocol/polkadot/PolkadotProtocolOptions.d.ts +23 -0
- package/v0/protocol/polkadot/PolkadotProtocolOptions.js +85 -0
- package/v0/protocol/polkadot/PolkadotProtocolOptions.js.map +1 -0
- package/v1/controller/PolkadotAccountController.d.ts +30 -0
- package/v1/controller/PolkadotAccountController.js +675 -0
- package/v1/controller/PolkadotAccountController.js.map +1 -0
- package/v1/controller/PolkadotTransactionController.d.ts +5 -0
- package/v1/controller/PolkadotTransactionController.js +28 -0
- package/v1/controller/PolkadotTransactionController.js.map +1 -0
- package/v1/data/staking/PolkadotActiveEraInfo.d.ts +8 -0
- package/v1/data/staking/PolkadotActiveEraInfo.js +19 -0
- package/v1/data/staking/PolkadotActiveEraInfo.js.map +1 -0
- package/v1/data/staking/PolkadotEraRewardPoints.d.ts +8 -0
- package/v1/data/staking/PolkadotEraRewardPoints.js +21 -0
- package/v1/data/staking/PolkadotEraRewardPoints.js.map +1 -0
- package/v1/data/staking/PolkadotExposure.d.ts +9 -0
- package/v1/data/staking/PolkadotExposure.js +23 -0
- package/v1/data/staking/PolkadotExposure.js.map +1 -0
- package/v1/data/staking/PolkadotNominationStatus.d.ts +5 -0
- package/v1/data/staking/PolkadotNominationStatus.js +10 -0
- package/v1/data/staking/PolkadotNominationStatus.js.map +1 -0
- package/v1/data/staking/PolkadotNominations.d.ts +9 -0
- package/v1/data/staking/PolkadotNominations.js +21 -0
- package/v1/data/staking/PolkadotNominations.js.map +1 -0
- package/v1/data/staking/PolkadotNominatorDetails.d.ts +24 -0
- package/v1/data/staking/PolkadotNominatorDetails.js +3 -0
- package/v1/data/staking/PolkadotNominatorDetails.js.map +1 -0
- package/v1/data/staking/PolkadotPayee.d.ts +5 -0
- package/v1/data/staking/PolkadotPayee.js +10 -0
- package/v1/data/staking/PolkadotPayee.js.map +1 -0
- package/v1/data/staking/PolkadotSlashingSpans.d.ts +10 -0
- package/v1/data/staking/PolkadotSlashingSpans.js +23 -0
- package/v1/data/staking/PolkadotSlashingSpans.js.map +1 -0
- package/v1/data/staking/PolkadotStakingActionType.d.ts +14 -0
- package/v1/data/staking/PolkadotStakingActionType.js +19 -0
- package/v1/data/staking/PolkadotStakingActionType.js.map +1 -0
- package/v1/data/staking/PolkadotStakingBalance.d.ts +5 -0
- package/v1/data/staking/PolkadotStakingBalance.js +3 -0
- package/v1/data/staking/PolkadotStakingBalance.js.map +1 -0
- package/v1/data/staking/PolkadotStakingLedger.d.ts +11 -0
- package/v1/data/staking/PolkadotStakingLedger.js +27 -0
- package/v1/data/staking/PolkadotStakingLedger.js.map +1 -0
- package/v1/data/staking/PolkadotValidatorDetails.d.ts +16 -0
- package/v1/data/staking/PolkadotValidatorDetails.js +3 -0
- package/v1/data/staking/PolkadotValidatorDetails.js.map +1 -0
- package/v1/data/staking/PolkadotValidatorPrefs.d.ts +7 -0
- package/v1/data/staking/PolkadotValidatorPrefs.js +17 -0
- package/v1/data/staking/PolkadotValidatorPrefs.js.map +1 -0
- package/v1/data/transaction/method/args.d.ts +2 -0
- package/v1/data/transaction/method/args.js +441 -0
- package/v1/data/transaction/method/args.js.map +1 -0
- package/v1/data/transaction/transaction.d.ts +2 -0
- package/v1/data/transaction/transaction.js +28 -0
- package/v1/data/transaction/transaction.js.map +1 -0
- package/v1/index.d.ts +15 -0
- package/v1/index.js +16 -0
- package/v1/index.js.map +1 -0
- package/v1/module/PolkadotModule.d.ts +19 -0
- package/v1/module/PolkadotModule.js +113 -0
- package/v1/module/PolkadotModule.js.map +1 -0
- package/v1/module.d.ts +3 -0
- package/v1/module.js +24 -0
- package/v1/module.js.map +1 -0
- package/v1/node/PolkadotNodeClient.d.ts +45 -0
- package/v1/node/PolkadotNodeClient.js +319 -0
- package/v1/node/PolkadotNodeClient.js.map +1 -0
- package/v1/protocol/KusamaProtocol.d.ts +14 -0
- package/v1/protocol/KusamaProtocol.js +106 -0
- package/v1/protocol/KusamaProtocol.js.map +1 -0
- package/v1/protocol/PolkadotBaseProtocol.d.ts +57 -0
- package/v1/protocol/PolkadotBaseProtocol.js +737 -0
- package/v1/protocol/PolkadotBaseProtocol.js.map +1 -0
- package/v1/protocol/PolkadotProtocol.d.ts +14 -0
- package/v1/protocol/PolkadotProtocol.js +119 -0
- package/v1/protocol/PolkadotProtocol.js.map +1 -0
- package/v1/serializer/v3/schemas/converter/transaction-converter.d.ts +7 -0
- package/v1/serializer/v3/schemas/converter/transaction-converter.js +21 -0
- package/v1/serializer/v3/schemas/converter/transaction-converter.js.map +1 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-polkadot.d.ts +3 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-polkadot.js +3 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-request-polkadot.js.map +1 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-polkadot.d.ts +3 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-polkadot.js +3 -0
- package/v1/serializer/v3/schemas/definitions/transaction-sign-response-polkadot.js.map +1 -0
- package/v1/serializer/v3/schemas/generated/transaction-sign-request-polkadot.json +36 -0
- package/v1/serializer/v3/schemas/generated/transaction-sign-response-polkadot.json +19 -0
- package/v1/serializer/v3/serializer-companion.d.ts +14 -0
- package/v1/serializer/v3/serializer-companion.js +189 -0
- package/v1/serializer/v3/serializer-companion.js.map +1 -0
- package/v1/serializer/v3/validators/transaction-validator.d.ts +4 -0
- package/v1/serializer/v3/validators/transaction-validator.js +28 -0
- package/v1/serializer/v3/validators/transaction-validator.js.map +1 -0
- package/v1/serializer/v3/validators/validators.d.ts +4 -0
- package/v1/serializer/v3/validators/validators.js +6 -0
- package/v1/serializer/v3/validators/validators.js.map +1 -0
- package/v1/types/configuration.d.ts +11 -0
- package/v1/types/configuration.js +3 -0
- package/v1/types/configuration.js.map +1 -0
- package/v1/types/crypto.d.ts +2 -0
- package/v1/types/crypto.js +3 -0
- package/v1/types/crypto.js.map +1 -0
- package/v1/types/protocol.d.ts +13 -0
- package/v1/types/protocol.js +3 -0
- package/v1/types/protocol.js.map +1 -0
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.createKusamaProtocolOptions = exports.KUSAMA_MAINNET_PROTOCOL_NETWORK = exports.createKusamaProtocol = exports.KusamaProtocolImpl = exports.KUSAMA_CONFIGURATION = exports.KUSAMA_METADATA = void 0;
|
|
30
|
+
var coinlib_core_1 = require("@wallfree-dev/coinlib-core");
|
|
31
|
+
var PolkadotBaseProtocol_1 = require("./PolkadotBaseProtocol");
|
|
32
|
+
var PolkadotProtocol_1 = require("./PolkadotProtocol");
|
|
33
|
+
// Implementation
|
|
34
|
+
exports.KUSAMA_METADATA = {
|
|
35
|
+
identifier: coinlib_core_1.MainProtocolSymbols.KUSAMA,
|
|
36
|
+
name: 'Kusama',
|
|
37
|
+
units: {
|
|
38
|
+
KSM: {
|
|
39
|
+
symbol: { value: 'KSM' },
|
|
40
|
+
decimals: 12
|
|
41
|
+
},
|
|
42
|
+
mKSM: {
|
|
43
|
+
symbol: { value: 'mKSM' },
|
|
44
|
+
decimals: 9
|
|
45
|
+
},
|
|
46
|
+
uKSM: {
|
|
47
|
+
symbol: { value: 'uKSM' },
|
|
48
|
+
decimals: 6
|
|
49
|
+
},
|
|
50
|
+
Point: {
|
|
51
|
+
symbol: { value: 'Point' },
|
|
52
|
+
decimals: 3
|
|
53
|
+
},
|
|
54
|
+
Planck: {
|
|
55
|
+
symbol: { value: 'Planck' },
|
|
56
|
+
decimals: 0
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
mainUnit: 'KSM',
|
|
60
|
+
account: {
|
|
61
|
+
standardDerivationPath: "m/44'/434'/0'/0/0",
|
|
62
|
+
address: {
|
|
63
|
+
isCaseSensitive: true,
|
|
64
|
+
placeholder: "C/D/E/F/G/H/J...",
|
|
65
|
+
regex: '^[C-HJ][a-km-zA-HJ-NP-Z1-9]+$'
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
exports.KUSAMA_CONFIGURATION = __assign(__assign({}, PolkadotProtocol_1.POLKADOT_CONFIGURATION), { account: {
|
|
70
|
+
type: 'ss58',
|
|
71
|
+
format: 2
|
|
72
|
+
} });
|
|
73
|
+
var KusamaProtocolImpl = /** @class */ (function (_super) {
|
|
74
|
+
__extends(KusamaProtocolImpl, _super);
|
|
75
|
+
function KusamaProtocolImpl(options) {
|
|
76
|
+
if (options === void 0) { options = {}; }
|
|
77
|
+
var completeOptions = createKusamaProtocolOptions(options.network);
|
|
78
|
+
var metadata = exports.KUSAMA_METADATA;
|
|
79
|
+
var configuration = exports.KUSAMA_CONFIGURATION;
|
|
80
|
+
return _super.call(this, { metadata: metadata, configuration: configuration, network: completeOptions.network }) || this;
|
|
81
|
+
}
|
|
82
|
+
return KusamaProtocolImpl;
|
|
83
|
+
}(PolkadotBaseProtocol_1.PolkadotBaseProtocolImpl));
|
|
84
|
+
exports.KusamaProtocolImpl = KusamaProtocolImpl;
|
|
85
|
+
// Factory
|
|
86
|
+
function createKusamaProtocol(options) {
|
|
87
|
+
if (options === void 0) { options = {}; }
|
|
88
|
+
return new KusamaProtocolImpl(options);
|
|
89
|
+
}
|
|
90
|
+
exports.createKusamaProtocol = createKusamaProtocol;
|
|
91
|
+
exports.KUSAMA_MAINNET_PROTOCOL_NETWORK = {
|
|
92
|
+
name: 'Mainnet',
|
|
93
|
+
type: 'mainnet',
|
|
94
|
+
rpcUrl: 'https://polkadot-kusama-node.prod.gke.papers.tech',
|
|
95
|
+
blockExplorerUrl: 'https://kusama.subscan.io',
|
|
96
|
+
blockExplorerApi: 'https://kusama.subscan.prod.gke.papers.tech/api/v2/scan'
|
|
97
|
+
};
|
|
98
|
+
var DEFAULT_KUSAMA_PROTOCOL_NETWORK = exports.KUSAMA_MAINNET_PROTOCOL_NETWORK;
|
|
99
|
+
function createKusamaProtocolOptions(network) {
|
|
100
|
+
if (network === void 0) { network = {}; }
|
|
101
|
+
return {
|
|
102
|
+
network: __assign(__assign({}, DEFAULT_KUSAMA_PROTOCOL_NETWORK), network)
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
exports.createKusamaProtocolOptions = createKusamaProtocolOptions;
|
|
106
|
+
//# sourceMappingURL=KusamaProtocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KusamaProtocol.js","sourceRoot":"","sources":["../../../src/v1/protocol/KusamaProtocol.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAAgE;AAMhE,+DAAuF;AACvF,uDAA2D;AAM3D,iBAAiB;AAEJ,QAAA,eAAe,GAAkC;IAC5D,UAAU,EAAE,kCAAmB,CAAC,MAAM;IACtC,IAAI,EAAE,QAAQ;IAEd,KAAK,EAAE;QACL,GAAG,EAAE;YACH,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;YACxB,QAAQ,EAAE,EAAE;SACb;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;YACzB,QAAQ,EAAE,CAAC;SACZ;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;YACzB,QAAQ,EAAE,CAAC;SACZ;QACD,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;YAC1B,QAAQ,EAAE,CAAC;SACZ;QACD,MAAM,EAAE;YACN,MAAM,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE;YAC3B,QAAQ,EAAE,CAAC;SACZ;KACF;IACD,QAAQ,EAAE,KAAK;IAEf,OAAO,EAAE;QACP,sBAAsB,EAAE,mBAAmB;QAC3C,OAAO,EAAE;YACP,eAAe,EAAE,IAAI;YACrB,WAAW,EAAE,kBAAkB;YAC/B,KAAK,EAAE,+BAA+B;SACvC;KACF;CACF,CAAA;AAEY,QAAA,oBAAoB,yBAC5B,yCAAsB,KACzB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,CAAC;KACV,IACF;AAED;IAAwC,sCAAqC;IAC3E,4BAAmB,OAAuD;QAAvD,wBAAA,EAAA,YAAuD;QACxE,IAAM,eAAe,GAA4B,2BAA2B,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QAE7F,IAAM,QAAQ,GAAkC,uBAAe,CAAA;QAC/D,IAAM,aAAa,GAAkC,4BAAoB,CAAA;eAEzE,kBAAM,EAAE,QAAQ,UAAA,EAAE,aAAa,eAAA,EAAE,OAAO,EAAE,eAAe,CAAC,OAAO,EAAE,CAAC;IACtE,CAAC;IACH,yBAAC;AAAD,CAAC,AATD,CAAwC,+CAAwB,GAS/D;AATY,gDAAkB;AAW/B,UAAU;AAEV,SAAgB,oBAAoB,CAAC,OAAuD;IAAvD,wBAAA,EAAA,YAAuD;IAC1F,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAA;AACxC,CAAC;AAFD,oDAEC;AAEY,QAAA,+BAA+B,GAA4B;IACtE,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,mDAAmD;IAC3D,gBAAgB,EAAE,2BAA2B;IAC7C,gBAAgB,EAAE,yDAAyD;CAC5E,CAAA;AAED,IAAM,+BAA+B,GAA4B,uCAA+B,CAAA;AAEhG,SAAgB,2BAA2B,CAAC,OAA8C;IAA9C,wBAAA,EAAA,YAA8C;IACxF,OAAO;QACL,OAAO,wBAAO,+BAA+B,GAAK,OAAO,CAAE;KAC5D,CAAA;AACH,CAAC;AAJD,kEAIC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DelegateeDetails, DelegationDetails, DelegatorDetails } from '@wallfree-dev/coinlib-core';
|
|
2
|
+
import BigNumber from '@wallfree-dev/coinlib-core/dependencies/src/bignumber.js-9.0.0/bignumber';
|
|
3
|
+
import { Amount, PublicKey } from '@wallfree-dev/module-kit';
|
|
4
|
+
import { AirGapDelegateProtocol } from '@wallfree-dev/module-kit/internal';
|
|
5
|
+
import { SubstrateAccountId, SubstrateSS58Address, SubstrateStakingProtocol, SubstrateStakingProtocolImpl, SubstrateTransactionType, SubstrateUnsignedTransaction } from '@wallfree-dev/substrate/v1';
|
|
6
|
+
import { PolkadotAccountController } from '../controller/PolkadotAccountController';
|
|
7
|
+
import { PolkadotTransactionController } from '../controller/PolkadotTransactionController';
|
|
8
|
+
import { PolkadotNominationStatus } from '../data/staking/PolkadotNominationStatus';
|
|
9
|
+
import { PolkadotNominatorDetails } from '../data/staking/PolkadotNominatorDetails';
|
|
10
|
+
import { PolkadotPayee } from '../data/staking/PolkadotPayee';
|
|
11
|
+
import { PolkadotStakingBalance } from '../data/staking/PolkadotStakingBalance';
|
|
12
|
+
import { PolkadotValidatorDetails } from '../data/staking/PolkadotValidatorDetails';
|
|
13
|
+
import { PolkadotNodeClient } from '../node/PolkadotNodeClient';
|
|
14
|
+
import { PolkadotProtocolConfiguration } from '../types/configuration';
|
|
15
|
+
import { PolkadotCryptoConfiguration } from '../types/crypto';
|
|
16
|
+
import { PolkadotBaseProtocolOptions, PolkadotProtocolNetwork } from '../types/protocol';
|
|
17
|
+
export interface PolkadotBaseProtocol<_Units extends string = string> extends SubstrateStakingProtocol<PolkadotProtocolConfiguration, _Units, PolkadotProtocolNetwork, PolkadotCryptoConfiguration>, AirGapDelegateProtocol {
|
|
18
|
+
getNominatorDetails(address: string, validators?: string[]): Promise<PolkadotNominatorDetails>;
|
|
19
|
+
getValidatorDetails(address: string): Promise<PolkadotValidatorDetails>;
|
|
20
|
+
getNominationStatus(address: string, validator: string, era?: number): Promise<PolkadotNominationStatus | undefined>;
|
|
21
|
+
getStakingBalance(address: string): Promise<PolkadotStakingBalance<Amount<_Units>> | undefined>;
|
|
22
|
+
getMinNominatorBond(): Promise<Amount<_Units>>;
|
|
23
|
+
getExistentialDeposit(): Promise<Amount<_Units>>;
|
|
24
|
+
getFutureStakingTransactionsFee(address: string): Promise<Amount<_Units>>;
|
|
25
|
+
}
|
|
26
|
+
export declare abstract class PolkadotBaseProtocolImpl<_Units extends string> extends SubstrateStakingProtocolImpl<_Units, PolkadotProtocolConfiguration, PolkadotProtocolNetwork, PolkadotNodeClient, PolkadotAccountController, PolkadotTransactionController> implements PolkadotBaseProtocol<_Units> {
|
|
27
|
+
protected readonly defaultValidator?: string;
|
|
28
|
+
constructor(options: PolkadotBaseProtocolOptions<_Units>);
|
|
29
|
+
getDefaultDelegatee(): Promise<string>;
|
|
30
|
+
getCurrentDelegateesForPublicKey(publicKey: PublicKey): Promise<string[]>;
|
|
31
|
+
getCurrentDelegateesForAddress(address: string): Promise<string[]>;
|
|
32
|
+
getDelegateeDetails(address: string): Promise<DelegateeDetails>;
|
|
33
|
+
isPublicKeyDelegating(publicKey: PublicKey): Promise<boolean>;
|
|
34
|
+
isAddressDelegating(address: string): Promise<boolean>;
|
|
35
|
+
getDelegatorDetailsFromPublicKey(publicKey: PublicKey): Promise<DelegatorDetails>;
|
|
36
|
+
getDelegatorDetailsFromAddress(address: string): Promise<DelegatorDetails>;
|
|
37
|
+
getDelegationDetailsFromPublicKey(publicKey: PublicKey, delegatees: string[]): Promise<DelegationDetails>;
|
|
38
|
+
getDelegationDetailsFromAddress(address: string, delegatees: string[]): Promise<DelegationDetails>;
|
|
39
|
+
prepareDelegatorActionFromPublicKey(publicKey: PublicKey, type: any, data?: any): Promise<any[]>;
|
|
40
|
+
prepareNomination(publicKey: PublicKey, tip: string | number | BigNumber, targets: string[] | string, controller?: string, value?: string | number | BigNumber, payee?: string | PolkadotPayee): Promise<SubstrateUnsignedTransaction[]>;
|
|
41
|
+
prepareRebondNominate(publicKey: PublicKey, tip: string | number | BigNumber, targets: string[] | string, value: string | number | BigNumber): Promise<SubstrateUnsignedTransaction[]>;
|
|
42
|
+
prepareScheduleUndelegate(publicKey: PublicKey, tip: string | number | BigNumber, value?: string | number | BigNumber): Promise<SubstrateUnsignedTransaction[]>;
|
|
43
|
+
prepareChangeValidator(publicKey: PublicKey, tip: string | number | BigNumber, targets: string[] | string): Promise<SubstrateUnsignedTransaction[]>;
|
|
44
|
+
prepareUnbond(publicKey: PublicKey, tip: string | number | BigNumber, value: string | number | BigNumber): Promise<SubstrateUnsignedTransaction[]>;
|
|
45
|
+
prepareRebond(publicKey: PublicKey, tip: string | number | BigNumber, value: string | number | BigNumber): Promise<SubstrateUnsignedTransaction[]>;
|
|
46
|
+
prepareBondExtra(publicKey: PublicKey, tip: string | number | BigNumber, value: string | number | BigNumber): Promise<SubstrateUnsignedTransaction[]>;
|
|
47
|
+
prepareRebondExtra(publicKey: PublicKey, tip: string | number | BigNumber, value: string | number | BigNumber): Promise<SubstrateUnsignedTransaction[]>;
|
|
48
|
+
prepareWithdrawUnbonded(publicKey: PublicKey, tip: string | number | BigNumber): Promise<SubstrateUnsignedTransaction[]>;
|
|
49
|
+
getNominatorDetails(address: string, validators?: string[]): Promise<PolkadotNominatorDetails>;
|
|
50
|
+
getValidatorDetails(address: string): Promise<PolkadotValidatorDetails>;
|
|
51
|
+
getNominationStatus(address: string, validator: string, era?: number): Promise<PolkadotNominationStatus | undefined>;
|
|
52
|
+
getStakingBalance(address: string): Promise<PolkadotStakingBalance<Amount<_Units>> | undefined>;
|
|
53
|
+
getMinNominatorBond(): Promise<Amount<_Units>>;
|
|
54
|
+
getExistentialDeposit(): Promise<Amount<_Units>>;
|
|
55
|
+
getFutureStakingTransactionsFee(address: string): Promise<Amount<_Units>>;
|
|
56
|
+
protected getFutureRequiredTransactions(accountId: SubstrateAccountId<SubstrateSS58Address>, intention: 'transfer' | 'check' | 'delegate'): Promise<[SubstrateTransactionType<PolkadotProtocolConfiguration>, any][]>;
|
|
57
|
+
}
|