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