@airgap/polkadot 0.13.45-beta.2 → 0.13.45-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +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
|
@@ -1,39 +1,23 @@
|
|
|
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
|
-
exports.factories =
|
|
3
|
+
exports.factories = factories;
|
|
19
4
|
// tslint:disable: max-classes-per-file
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
5
|
+
const coinlib_core_1 = require("@airgap/coinlib-core");
|
|
6
|
+
const errors_1 = require("@airgap/coinlib-core/errors");
|
|
7
|
+
const assert_1 = require("@airgap/coinlib-core/utils/assert");
|
|
8
|
+
const module_kit_1 = require("@airgap/module-kit");
|
|
9
|
+
const v1_1 = require("@airgap/substrate/v1");
|
|
10
|
+
const PolkadotPayee_1 = require("../../staking/PolkadotPayee");
|
|
26
11
|
function factories(type) {
|
|
27
12
|
return {
|
|
28
|
-
createArgsFactory
|
|
13
|
+
createArgsFactory(configuration, args) {
|
|
29
14
|
return createArgsFactory(configuration, type, args);
|
|
30
15
|
},
|
|
31
|
-
createArgsDecoder
|
|
16
|
+
createArgsDecoder(configuration) {
|
|
32
17
|
return createArgsDecoder(configuration, type);
|
|
33
18
|
}
|
|
34
19
|
};
|
|
35
20
|
}
|
|
36
|
-
exports.factories = factories;
|
|
37
21
|
function createArgsFactory(configuration, type, args) {
|
|
38
22
|
switch (type) {
|
|
39
23
|
case 'bond':
|
|
@@ -67,7 +51,7 @@ function createArgsFactory(configuration, type, args) {
|
|
|
67
51
|
return new SetControllerArgsFactory(configuration, args);
|
|
68
52
|
default:
|
|
69
53
|
(0, assert_1.assertNever)(type);
|
|
70
|
-
throw new errors_1.UnsupportedError(coinlib_core_1.Domain.SUBSTRATE,
|
|
54
|
+
throw new errors_1.UnsupportedError(coinlib_core_1.Domain.SUBSTRATE, `Unsupported Polkadot transaction type ${type}`);
|
|
71
55
|
}
|
|
72
56
|
}
|
|
73
57
|
function createArgsDecoder(_configuration, type) {
|
|
@@ -94,44 +78,34 @@ function createArgsDecoder(_configuration, type) {
|
|
|
94
78
|
return new SetControllerArgsDecoder();
|
|
95
79
|
default:
|
|
96
80
|
(0, assert_1.assertNever)(type);
|
|
97
|
-
throw new errors_1.UnsupportedError(coinlib_core_1.Domain.SUBSTRATE,
|
|
81
|
+
throw new errors_1.UnsupportedError(coinlib_core_1.Domain.SUBSTRATE, `Unsupported Polkadot transaction type ${type}`);
|
|
98
82
|
}
|
|
99
83
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
function BondArgsFactory() {
|
|
103
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
104
|
-
}
|
|
105
|
-
BondArgsFactory.prototype.createFields = function () {
|
|
84
|
+
class BondArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
85
|
+
createFields() {
|
|
106
86
|
return [
|
|
107
87
|
// ['controller', scaleAddressFactory(this.configuration).from(this.args.controller, this.configuration)],
|
|
108
88
|
['value', v1_1.SCALECompactInt.from(this.args.value)],
|
|
109
89
|
['payee', v1_1.SCALEEnum.from(this.args.payee)]
|
|
110
90
|
];
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return function () { return [
|
|
91
|
+
}
|
|
92
|
+
createToAirGapTransactionParts() {
|
|
93
|
+
return () => [
|
|
115
94
|
{
|
|
116
95
|
// to: [
|
|
117
96
|
// substrateAddressFactory(this.configuration)
|
|
118
97
|
// .from(this.args.controller)
|
|
119
98
|
// .asString()
|
|
120
99
|
// ],
|
|
121
|
-
amount: (0, module_kit_1.newAmount)(
|
|
100
|
+
amount: (0, module_kit_1.newAmount)(this.args.value, 'blockchain')
|
|
122
101
|
}
|
|
123
|
-
];
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
131
|
-
}
|
|
132
|
-
BondArgsDecoder.prototype._decode = function (decoder) {
|
|
133
|
-
var value = decoder.decodeNextCompactInt();
|
|
134
|
-
var payee = decoder.decodeNextEnum(function (value) { return PolkadotPayee_1.PolkadotPayee[PolkadotPayee_1.PolkadotPayee[value]]; });
|
|
102
|
+
];
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
class BondArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
106
|
+
_decode(decoder) {
|
|
107
|
+
const value = decoder.decodeNextCompactInt();
|
|
108
|
+
const payee = decoder.decodeNextEnum((value) => PolkadotPayee_1.PolkadotPayee[PolkadotPayee_1.PolkadotPayee[value]]);
|
|
135
109
|
return {
|
|
136
110
|
bytesDecoded: value.bytesDecoded + payee.bytesDecoded,
|
|
137
111
|
decoded: {
|
|
@@ -139,232 +113,155 @@ var BondArgsDecoder = /** @class */ (function (_super) {
|
|
|
139
113
|
payee: payee.decoded.value
|
|
140
114
|
}
|
|
141
115
|
};
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
__extends(UnbondArgsFactory, _super);
|
|
147
|
-
function UnbondArgsFactory() {
|
|
148
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
149
|
-
}
|
|
150
|
-
UnbondArgsFactory.prototype.createFields = function () {
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
class UnbondArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
119
|
+
createFields() {
|
|
151
120
|
return [['value', v1_1.SCALECompactInt.from(this.args.value)]];
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return function () { return [
|
|
121
|
+
}
|
|
122
|
+
createToAirGapTransactionParts() {
|
|
123
|
+
return () => [
|
|
156
124
|
{
|
|
157
|
-
amount: (0, module_kit_1.newAmount)(
|
|
125
|
+
amount: (0, module_kit_1.newAmount)(this.args.value, 'blockchain')
|
|
158
126
|
}
|
|
159
|
-
];
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
function UnbondArgsDecoder() {
|
|
166
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
167
|
-
}
|
|
168
|
-
UnbondArgsDecoder.prototype._decode = function (decoder) {
|
|
169
|
-
var value = decoder.decodeNextCompactInt();
|
|
127
|
+
];
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
class UnbondArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
131
|
+
_decode(decoder) {
|
|
132
|
+
const value = decoder.decodeNextCompactInt();
|
|
170
133
|
return {
|
|
171
134
|
bytesDecoded: value.bytesDecoded,
|
|
172
135
|
decoded: {
|
|
173
136
|
value: value.decoded.value
|
|
174
137
|
}
|
|
175
138
|
};
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
__extends(RebondArgsFactory, _super);
|
|
181
|
-
function RebondArgsFactory() {
|
|
182
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
183
|
-
}
|
|
184
|
-
RebondArgsFactory.prototype.createFields = function () {
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
class RebondArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
142
|
+
createFields() {
|
|
185
143
|
return [['value', v1_1.SCALECompactInt.from(this.args.value)]];
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return function () { return [
|
|
144
|
+
}
|
|
145
|
+
createToAirGapTransactionParts() {
|
|
146
|
+
return () => [
|
|
190
147
|
{
|
|
191
|
-
amount: (0, module_kit_1.newAmount)(
|
|
148
|
+
amount: (0, module_kit_1.newAmount)(this.args.value, 'blockchain')
|
|
192
149
|
}
|
|
193
|
-
];
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
function RebondArgsDecoder() {
|
|
200
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
201
|
-
}
|
|
202
|
-
RebondArgsDecoder.prototype._decode = function (decoder) {
|
|
203
|
-
var value = decoder.decodeNextCompactInt();
|
|
150
|
+
];
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
class RebondArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
154
|
+
_decode(decoder) {
|
|
155
|
+
const value = decoder.decodeNextCompactInt();
|
|
204
156
|
return {
|
|
205
157
|
bytesDecoded: value.bytesDecoded,
|
|
206
158
|
decoded: {
|
|
207
159
|
value: value.decoded.value
|
|
208
160
|
}
|
|
209
161
|
};
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
__extends(BondExtraArgsFactory, _super);
|
|
215
|
-
function BondExtraArgsFactory() {
|
|
216
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
217
|
-
}
|
|
218
|
-
BondExtraArgsFactory.prototype.createFields = function () {
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
class BondExtraArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
165
|
+
createFields() {
|
|
219
166
|
return [['value', v1_1.SCALECompactInt.from(this.args.value)]];
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
return function () { return [
|
|
167
|
+
}
|
|
168
|
+
createToAirGapTransactionParts() {
|
|
169
|
+
return () => [
|
|
224
170
|
{
|
|
225
|
-
amount: (0, module_kit_1.newAmount)(
|
|
171
|
+
amount: (0, module_kit_1.newAmount)(this.args.value, 'blockchain')
|
|
226
172
|
}
|
|
227
|
-
];
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
function BondExtraArgsDecoder() {
|
|
234
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
235
|
-
}
|
|
236
|
-
BondExtraArgsDecoder.prototype._decode = function (decoder) {
|
|
237
|
-
var value = decoder.decodeNextCompactInt();
|
|
173
|
+
];
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
class BondExtraArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
177
|
+
_decode(decoder) {
|
|
178
|
+
const value = decoder.decodeNextCompactInt();
|
|
238
179
|
return {
|
|
239
180
|
bytesDecoded: value.bytesDecoded,
|
|
240
181
|
decoded: {
|
|
241
182
|
value: value.decoded.value
|
|
242
183
|
}
|
|
243
184
|
};
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
__extends(WithdrawUnbondedArgsFactory, _super);
|
|
249
|
-
function WithdrawUnbondedArgsFactory() {
|
|
250
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
251
|
-
}
|
|
252
|
-
WithdrawUnbondedArgsFactory.prototype.createFields = function () {
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
class WithdrawUnbondedArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
188
|
+
createFields() {
|
|
253
189
|
return [['slashingSpansNumber', v1_1.SCALEInt.from(this.args.slashingSpansNumber, 32)]];
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
return
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
function WithdrawUnbondedArgsDecoder() {
|
|
263
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
264
|
-
}
|
|
265
|
-
WithdrawUnbondedArgsDecoder.prototype._decode = function (decoder) {
|
|
266
|
-
var slashingSpansNumber = decoder.decodeNextInt(32);
|
|
190
|
+
}
|
|
191
|
+
createToAirGapTransactionParts() {
|
|
192
|
+
return () => [];
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
class WithdrawUnbondedArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
196
|
+
_decode(decoder) {
|
|
197
|
+
const slashingSpansNumber = decoder.decodeNextInt(32);
|
|
267
198
|
return {
|
|
268
199
|
bytesDecoded: slashingSpansNumber.bytesDecoded,
|
|
269
200
|
decoded: {
|
|
270
201
|
slashingSpansNumber: slashingSpansNumber.decoded.toNumber()
|
|
271
202
|
}
|
|
272
203
|
};
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
__extends(NominateArgsFactory, _super);
|
|
278
|
-
function NominateArgsFactory() {
|
|
279
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
280
|
-
}
|
|
281
|
-
NominateArgsFactory.prototype.createFields = function () {
|
|
282
|
-
var _this = this;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
class NominateArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
207
|
+
createFields() {
|
|
283
208
|
return [
|
|
284
209
|
[
|
|
285
210
|
'targets',
|
|
286
|
-
v1_1.SCALEArray.from(this.args.targets.map(
|
|
211
|
+
v1_1.SCALEArray.from(this.args.targets.map((target) => (0, v1_1.scaleAddressFactory)(this.configuration).from(target, this.configuration)))
|
|
287
212
|
]
|
|
288
213
|
];
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
return function () { return [
|
|
214
|
+
}
|
|
215
|
+
createToAirGapTransactionParts() {
|
|
216
|
+
return () => [
|
|
293
217
|
{
|
|
294
|
-
to:
|
|
218
|
+
to: this.args.targets.map((target) => (0, v1_1.substrateAddressFactory)(this.configuration).from(target).asString())
|
|
295
219
|
}
|
|
296
|
-
];
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
function NominateArgsDecoder() {
|
|
303
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
304
|
-
}
|
|
305
|
-
NominateArgsDecoder.prototype._decode = function (decoder) {
|
|
306
|
-
var targets = decoder.decodeNextArray(function (network, runtimeVersion, hex) {
|
|
307
|
-
return (0, v1_1.scaleAddressFactory)(network).decode(network, runtimeVersion, hex);
|
|
308
|
-
});
|
|
220
|
+
];
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
class NominateArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
224
|
+
_decode(decoder) {
|
|
225
|
+
const targets = decoder.decodeNextArray((network, runtimeVersion, hex) => (0, v1_1.scaleAddressFactory)(network).decode(network, runtimeVersion, hex));
|
|
309
226
|
return {
|
|
310
227
|
bytesDecoded: targets.bytesDecoded,
|
|
311
228
|
decoded: {
|
|
312
|
-
targets: targets.decoded.elements.map(
|
|
229
|
+
targets: targets.decoded.elements.map((target) => target.toString())
|
|
313
230
|
}
|
|
314
231
|
};
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
__extends(StopNominatingArgsFactory, _super);
|
|
320
|
-
function StopNominatingArgsFactory() {
|
|
321
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
322
|
-
}
|
|
323
|
-
StopNominatingArgsFactory.prototype.createFields = function () {
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
class StopNominatingArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
235
|
+
createFields() {
|
|
324
236
|
return [];
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
return
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
__extends(StopNominatingArgsDecoder, _super);
|
|
333
|
-
function StopNominatingArgsDecoder() {
|
|
334
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
335
|
-
}
|
|
336
|
-
StopNominatingArgsDecoder.prototype._decode = function (decoder) {
|
|
237
|
+
}
|
|
238
|
+
createToAirGapTransactionParts() {
|
|
239
|
+
return () => [];
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
class StopNominatingArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
243
|
+
_decode(decoder) {
|
|
337
244
|
return {
|
|
338
245
|
bytesDecoded: 0,
|
|
339
246
|
decoded: {}
|
|
340
247
|
};
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
__extends(PayoutStakersArgsFactory, _super);
|
|
346
|
-
function PayoutStakersArgsFactory() {
|
|
347
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
348
|
-
}
|
|
349
|
-
PayoutStakersArgsFactory.prototype.createFields = function () {
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
class PayoutStakersArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
251
|
+
createFields() {
|
|
350
252
|
return [
|
|
351
253
|
['validatorStash', (0, v1_1.scaleAddressFactory)(this.configuration).from(this.args.validator, this.configuration)],
|
|
352
254
|
['era', v1_1.SCALEInt.from(this.args.era, 32)]
|
|
353
255
|
];
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
return
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
364
|
-
}
|
|
365
|
-
PayoutStakersArgsDecoder.prototype._decode = function (decoder) {
|
|
366
|
-
var validatorStash = decoder.decodeNextAccountId();
|
|
367
|
-
var era = decoder.decodeNextInt(32);
|
|
256
|
+
}
|
|
257
|
+
createToAirGapTransactionParts() {
|
|
258
|
+
return () => [];
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
class PayoutStakersArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
262
|
+
_decode(decoder) {
|
|
263
|
+
const validatorStash = decoder.decodeNextAccountId();
|
|
264
|
+
const era = decoder.decodeNextInt(32);
|
|
368
265
|
return {
|
|
369
266
|
bytesDecoded: era.bytesDecoded + validatorStash.bytesDecoded,
|
|
370
267
|
decoded: {
|
|
@@ -372,70 +269,48 @@ var PayoutStakersArgsDecoder = /** @class */ (function (_super) {
|
|
|
372
269
|
era: era.decoded.value
|
|
373
270
|
}
|
|
374
271
|
};
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
__extends(SetPayeeArgsFactory, _super);
|
|
380
|
-
function SetPayeeArgsFactory() {
|
|
381
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
382
|
-
}
|
|
383
|
-
SetPayeeArgsFactory.prototype.createFields = function () {
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
class SetPayeeArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
275
|
+
createFields() {
|
|
384
276
|
return [['payee', v1_1.SCALEEnum.from(this.args.payee)]];
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
return
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
function SetPayeeArgsDecoder() {
|
|
394
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
395
|
-
}
|
|
396
|
-
SetPayeeArgsDecoder.prototype._decode = function (decoder) {
|
|
397
|
-
var payee = decoder.decodeNextEnum(function (value) { return PolkadotPayee_1.PolkadotPayee[PolkadotPayee_1.PolkadotPayee[value]]; });
|
|
277
|
+
}
|
|
278
|
+
createToAirGapTransactionParts() {
|
|
279
|
+
return () => [];
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
class SetPayeeArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
283
|
+
_decode(decoder) {
|
|
284
|
+
const payee = decoder.decodeNextEnum((value) => PolkadotPayee_1.PolkadotPayee[PolkadotPayee_1.PolkadotPayee[value]]);
|
|
398
285
|
return {
|
|
399
286
|
bytesDecoded: payee.bytesDecoded,
|
|
400
287
|
decoded: {
|
|
401
288
|
payee: payee.decoded.value
|
|
402
289
|
}
|
|
403
290
|
};
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
__extends(SetControllerArgsFactory, _super);
|
|
409
|
-
function SetControllerArgsFactory() {
|
|
410
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
411
|
-
}
|
|
412
|
-
SetControllerArgsFactory.prototype.createFields = function () {
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
class SetControllerArgsFactory extends v1_1.SubstrateTransactionMethodArgsFactory {
|
|
294
|
+
createFields() {
|
|
413
295
|
return [['controller', (0, v1_1.scaleAddressFactory)(this.configuration).from(this.args.controller, this.configuration)]];
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
return function () { return [
|
|
296
|
+
}
|
|
297
|
+
createToAirGapTransactionParts() {
|
|
298
|
+
return () => [
|
|
418
299
|
{
|
|
419
|
-
to: [(0, v1_1.substrateAddressFactory)(
|
|
300
|
+
to: [(0, v1_1.substrateAddressFactory)(this.configuration).from(this.args.controller).asString()]
|
|
420
301
|
}
|
|
421
|
-
];
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
function SetControllerArgsDecoder() {
|
|
428
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
429
|
-
}
|
|
430
|
-
SetControllerArgsDecoder.prototype._decode = function (decoder) {
|
|
431
|
-
var controller = decoder.decodeNextAccount();
|
|
302
|
+
];
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
class SetControllerArgsDecoder extends v1_1.SubstrateTransactionMethodArgsDecoder {
|
|
306
|
+
_decode(decoder) {
|
|
307
|
+
const controller = decoder.decodeNextAccount();
|
|
432
308
|
return {
|
|
433
309
|
bytesDecoded: controller.bytesDecoded,
|
|
434
310
|
decoded: {
|
|
435
311
|
controller: controller.decoded.toString()
|
|
436
312
|
}
|
|
437
313
|
};
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
}(v1_1.SubstrateTransactionMethodArgsDecoder));
|
|
314
|
+
}
|
|
315
|
+
}
|
|
441
316
|
//# sourceMappingURL=args.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../../../../src/v1/data/transaction/method/args.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../../../../src/v1/data/transaction/method/args.ts"],"names":[],"mappings":";;AAyBA,8BAWC;AApCD,uCAAuC;AACvC,uDAA6C;AAE7C,wDAA8D;AAC9D,8DAA6E;AAC7E,mDAAiE;AACjE,6CAc6B;AAG7B,+DAA2D;AAE3D,SAAgB,SAAS,CACvB,IAAO;IAEP,OAAO;QACL,iBAAiB,CAAC,aAAa,EAAE,IAAI;YACnC,OAAO,iBAAiB,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;QACrD,CAAC;QACD,iBAAiB,CAAC,aAAa;YAC7B,OAAO,iBAAiB,CAAC,aAAa,EAAE,IAAI,CAAC,CAAA;QAC/C,CAAC;KACF,CAAA;AACH,CAAC;AAED,SAAS,iBAAiB,CACxB,aAAgB,EAChB,IAA6B,EAC7B,IAAS;IAET,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,MAAM;YACT,IAAA,qBAAY,EAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;YAE1C,OAAO,IAAI,eAAe,CAAC,aAAa,EAAE,IAAI,CAAC,CAAA;QACjD,KAAK,QAAQ;YACX,IAAA,qBAAY,EAAC,IAAI,EAA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C,OAAO,GAAG,EAAE,CAAC;YACX;gBACE,EAAE,EAAE,CAAC,IAAA,4BAAuB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE,CAAC;aACxF;SACF,CAAA;IACH,CAAC;CACF;AAED,MAAM,wBAAkE,SAAQ,0CAG/E;IACW,OAAO,CAAC,OAAwB;QACxC,MAAM,UAAU,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAA;QAE9C,OAAO;YACL,YAAY,EAAE,UAAU,CAAC,YAAY;YACrC,OAAO,EAAE;gBACP,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,EAAE;aAC1C;SACF,CAAA;IACH,CAAC;CACF"}
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.TRANSACTION_TYPES = void 0;
|
|
15
|
-
|
|
4
|
+
const args_1 = require("./method/args");
|
|
16
5
|
exports.TRANSACTION_TYPES = {
|
|
17
|
-
bond:
|
|
18
|
-
unbond:
|
|
19
|
-
rebond:
|
|
20
|
-
bond_extra:
|
|
21
|
-
withdraw_unbonded:
|
|
22
|
-
nominate:
|
|
23
|
-
cancel_nomination:
|
|
24
|
-
collect_payout:
|
|
25
|
-
set_payee:
|
|
26
|
-
set_controller:
|
|
6
|
+
bond: { ...(0, args_1.factories)('bond'), index: 1 },
|
|
7
|
+
unbond: { ...(0, args_1.factories)('unbond'), index: 2 },
|
|
8
|
+
rebond: { ...(0, args_1.factories)('rebond'), index: 3 },
|
|
9
|
+
bond_extra: { ...(0, args_1.factories)('bond_extra'), index: 4 },
|
|
10
|
+
withdraw_unbonded: { ...(0, args_1.factories)('withdraw_unbonded'), index: 5 },
|
|
11
|
+
nominate: { ...(0, args_1.factories)('nominate'), index: 6 },
|
|
12
|
+
cancel_nomination: { ...(0, args_1.factories)('cancel_nomination'), index: 7 },
|
|
13
|
+
collect_payout: { ...(0, args_1.factories)('collect_payout'), index: 8 },
|
|
14
|
+
set_payee: { ...(0, args_1.factories)('set_payee'), index: 9 },
|
|
15
|
+
set_controller: { ...(0, args_1.factories)('set_controller'), index: 10 }
|
|
27
16
|
};
|
|
28
17
|
//# sourceMappingURL=transaction.js.map
|