@substrate/api-sidecar 17.3.5 → 17.5.0
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/build/package.json +2 -2
- package/build/src/chains-config/assetHubKusamaControllers.js +2 -1
- package/build/src/chains-config/assetHubKusamaControllers.js.map +1 -1
- package/build/src/chains-config/assetHubPolkadotControllers.js +1 -0
- package/build/src/chains-config/assetHubPolkadotControllers.js.map +1 -1
- package/build/src/chains-config/assetHubWestendControllers.js +1 -0
- package/build/src/chains-config/assetHubWestendControllers.js.map +1 -1
- package/build/src/chains-config/defaultControllers.js +1 -0
- package/build/src/chains-config/defaultControllers.js.map +1 -1
- package/build/src/chains-config/kusamaControllers.js +1 -0
- package/build/src/chains-config/kusamaControllers.js.map +1 -1
- package/build/src/chains-config/polkadotControllers.js +1 -0
- package/build/src/chains-config/polkadotControllers.js.map +1 -1
- package/build/src/chains-config/westendControllers.js +1 -0
- package/build/src/chains-config/westendControllers.js.map +1 -1
- package/build/src/controllers/accounts/AccountsProxyInfoController.d.ts +14 -0
- package/build/src/controllers/accounts/AccountsProxyInfoController.js +45 -0
- package/build/src/controllers/accounts/AccountsProxyInfoController.js.map +1 -0
- package/build/src/controllers/accounts/AccountsStakingPayoutsController.d.ts +1 -1
- package/build/src/controllers/accounts/AccountsStakingPayoutsController.js +9 -9
- package/build/src/controllers/accounts/AccountsStakingPayoutsController.js.map +1 -1
- package/build/src/controllers/accounts/index.d.ts +1 -0
- package/build/src/controllers/accounts/index.js +3 -1
- package/build/src/controllers/accounts/index.js.map +1 -1
- package/build/src/controllers/blocks/BlocksController.d.ts +9 -1
- package/build/src/controllers/blocks/BlocksController.js +21 -3
- package/build/src/controllers/blocks/BlocksController.js.map +1 -1
- package/build/src/controllers/blocks/BlocksExtrinsicsController.d.ts +2 -2
- package/build/src/controllers/blocks/BlocksExtrinsicsController.js +3 -1
- package/build/src/controllers/blocks/BlocksExtrinsicsController.js.map +1 -1
- package/build/src/controllers/index.d.ts +2 -1
- package/build/src/controllers/index.js +1 -0
- package/build/src/controllers/index.js.map +1 -1
- package/build/src/controllers/transaction/TransactionMaterialController.d.ts +2 -3
- package/build/src/controllers/transaction/TransactionMaterialController.js +3 -6
- package/build/src/controllers/transaction/TransactionMaterialController.js.map +1 -1
- package/build/src/services/accounts/AccountsProxyInfoService.d.ts +6 -0
- package/build/src/services/accounts/AccountsProxyInfoService.js +40 -0
- package/build/src/services/accounts/AccountsProxyInfoService.js.map +1 -0
- package/build/src/services/accounts/AccountsProxyInfoService.spec.d.ts +1 -0
- package/build/src/services/accounts/AccountsProxyInfoService.spec.js +77 -0
- package/build/src/services/accounts/AccountsProxyInfoService.spec.js.map +1 -0
- package/build/src/services/accounts/AccountsStakingPayoutsService.d.ts +16 -4
- package/build/src/services/accounts/AccountsStakingPayoutsService.js +35 -6
- package/build/src/services/accounts/AccountsStakingPayoutsService.js.map +1 -1
- package/build/src/services/accounts/AccountsStakingPayoutsService.spec.js +116 -115
- package/build/src/services/accounts/AccountsStakingPayoutsService.spec.js.map +1 -1
- package/build/src/services/accounts/index.d.ts +1 -0
- package/build/src/services/accounts/index.js +1 -0
- package/build/src/services/accounts/index.js.map +1 -1
- package/build/src/services/blocks/BlocksService.d.ts +7 -5
- package/build/src/services/blocks/BlocksService.js +16 -4
- package/build/src/services/blocks/BlocksService.js.map +1 -1
- package/build/src/services/blocks/BlocksService.spec.js +232 -1
- package/build/src/services/blocks/BlocksService.spec.js.map +1 -1
- package/build/src/services/blocks/XCMDecoder.d.ts +18 -0
- package/build/src/services/blocks/XCMDecoder.js +145 -0
- package/build/src/services/blocks/XCMDecoder.js.map +1 -0
- package/build/src/types/responses/AccountProxyInfo.d.ts +8 -0
- package/build/src/types/responses/AccountProxyInfo.js +18 -0
- package/build/src/types/responses/AccountProxyInfo.js.map +1 -0
- package/build/src/types/responses/Block.d.ts +2 -0
- package/build/src/types/responses/BlockXCMMessages.d.ts +19 -0
- package/build/src/types/responses/BlockXCMMessages.js +18 -0
- package/build/src/types/responses/BlockXCMMessages.js.map +1 -0
- package/build/src/types/responses/SanitizedArgs.d.ts +3 -1
- package/build/src/types/responses/SanitizedArgs.js +1 -1
- package/build/src/types/responses/SanitizedBackedCandidate.d.ts +7 -0
- package/build/src/types/responses/SanitizedBackedCandidate.js +18 -0
- package/build/src/types/responses/SanitizedBackedCandidate.js.map +1 -0
- package/build/src/types/responses/SanitizedBackedCandidateDescriptor.d.ts +11 -0
- package/build/src/types/responses/SanitizedBackedCandidateDescriptor.js +18 -0
- package/build/src/types/responses/SanitizedBackedCandidateDescriptor.js.map +1 -0
- package/build/src/types/responses/SanitizedBackedCandidateValidityVotes.d.ts +6 -0
- package/build/src/types/responses/SanitizedBackedCandidateValidityVotes.js +18 -0
- package/build/src/types/responses/SanitizedBackedCandidateValidityVotes.js.map +1 -0
- package/build/src/types/responses/SanitizedBackedCandidatesCommitments.d.ts +8 -0
- package/build/src/types/responses/SanitizedBackedCandidatesCommitments.js +18 -0
- package/build/src/types/responses/SanitizedBackedCandidatesCommitments.js.map +1 -0
- package/build/src/types/responses/SanitizedBitfield.d.ts +5 -0
- package/build/src/types/responses/SanitizedBitfield.js +18 -0
- package/build/src/types/responses/SanitizedBitfield.js.map +1 -0
- package/build/src/types/responses/SanitizedCandidate.d.ts +6 -0
- package/build/src/types/responses/SanitizedCandidate.js +18 -0
- package/build/src/types/responses/SanitizedCandidate.js.map +1 -0
- package/build/src/types/responses/SanitizedParachainInherentData.d.ts +8 -0
- package/build/src/types/responses/SanitizedParachainInherentData.js +18 -0
- package/build/src/types/responses/SanitizedParachainInherentData.js.map +1 -0
- package/build/src/types/responses/SanitizedParachainValidationData.d.ts +6 -0
- package/build/src/types/responses/SanitizedParachainValidationData.js +18 -0
- package/build/src/types/responses/SanitizedParachainValidationData.js.map +1 -0
- package/build/src/types/responses/SanitizedParentInherentData.d.ts +10 -0
- package/build/src/types/responses/SanitizedParentInherentData.js +18 -0
- package/build/src/types/responses/SanitizedParentInherentData.js.map +1 -0
- package/build/src/types/responses/SanitizediDisputeStatementSet.d.ts +5 -0
- package/build/src/types/responses/SanitizediDisputeStatementSet.js +18 -0
- package/build/src/types/responses/SanitizediDisputeStatementSet.js.map +1 -0
- package/build/src/types/responses/index.d.ts +2 -0
- package/build/src/types/responses/index.js +2 -0
- package/build/src/types/responses/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2024 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.XcmDecoder = void 0;
|
|
19
|
+
var ChainType;
|
|
20
|
+
(function (ChainType) {
|
|
21
|
+
ChainType["Relay"] = "Relay";
|
|
22
|
+
ChainType["Parachain"] = "Parachain";
|
|
23
|
+
})(ChainType || (ChainType = {}));
|
|
24
|
+
class XcmDecoder {
|
|
25
|
+
constructor(api, specName, extrinsics, paraId) {
|
|
26
|
+
this.api = api;
|
|
27
|
+
this.specName = specName;
|
|
28
|
+
this.curChainType = this.getCurChainType(specName);
|
|
29
|
+
this.messages = this.getMessages(api, extrinsics, paraId);
|
|
30
|
+
}
|
|
31
|
+
getCurChainType(specName) {
|
|
32
|
+
const relay = ['polkadot', 'kusama', 'westend', 'rococo'];
|
|
33
|
+
if (relay.includes(specName.toLowerCase())) {
|
|
34
|
+
return ChainType.Relay;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return ChainType.Parachain;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
getMessages(api, extrinsics, paraId) {
|
|
41
|
+
const xcmMessages = { horizontalMessages: [], downwardMessages: [], upwardMessages: [] };
|
|
42
|
+
if (this.curChainType === ChainType.Relay) {
|
|
43
|
+
extrinsics.forEach((extrinsic) => {
|
|
44
|
+
const frame = extrinsic.method;
|
|
45
|
+
if (frame.pallet === 'paraInherent' && frame.method === 'enter') {
|
|
46
|
+
const data = extrinsic.args.data;
|
|
47
|
+
if (paraId !== undefined) {
|
|
48
|
+
data.backedCandidates.forEach((candidate) => {
|
|
49
|
+
var _a;
|
|
50
|
+
if (candidate.candidate.descriptor.paraId.toString() === paraId.toString()) {
|
|
51
|
+
const msg_decoded = this.checkUpwardMsg(api, candidate);
|
|
52
|
+
if (msg_decoded != undefined && Object.keys(msg_decoded).length > 0) {
|
|
53
|
+
(_a = xcmMessages.upwardMessages) === null || _a === void 0 ? void 0 : _a.push(msg_decoded);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
data.backedCandidates.forEach((candidate) => {
|
|
60
|
+
var _a;
|
|
61
|
+
const msg_decoded = this.checkUpwardMsg(api, candidate);
|
|
62
|
+
if (msg_decoded != undefined && Object.keys(msg_decoded).length > 0) {
|
|
63
|
+
(_a = xcmMessages.upwardMessages) === null || _a === void 0 ? void 0 : _a.push(msg_decoded);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
else if (this.curChainType === ChainType.Parachain) {
|
|
71
|
+
extrinsics.forEach((extrinsic) => {
|
|
72
|
+
const frame = extrinsic.method;
|
|
73
|
+
if (frame.pallet === 'parachainSystem' && frame.method === 'setValidationData') {
|
|
74
|
+
const data = extrinsic.args.data;
|
|
75
|
+
data.downwardMessages.forEach((msg) => {
|
|
76
|
+
var _a;
|
|
77
|
+
const message = msg.msg;
|
|
78
|
+
if (message && message.toString().length > 0) {
|
|
79
|
+
const xcmMessageDecoded = this.decodeMsg(api, message);
|
|
80
|
+
const downwardMessage = {
|
|
81
|
+
sentAt: msg.sentAt,
|
|
82
|
+
msg: message.toString(),
|
|
83
|
+
data: xcmMessageDecoded,
|
|
84
|
+
};
|
|
85
|
+
(_a = xcmMessages.downwardMessages) === null || _a === void 0 ? void 0 : _a.push(downwardMessage);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
data.horizontalMessages.forEach((msgs, index) => {
|
|
89
|
+
msgs.forEach((msg) => {
|
|
90
|
+
var _a, _b;
|
|
91
|
+
const xcmMessageDecoded = this.decodeMsg(api, msg.data.slice(1));
|
|
92
|
+
let horizontalMessage;
|
|
93
|
+
if (paraId !== undefined && index.toString() === paraId.toString()) {
|
|
94
|
+
horizontalMessage = {
|
|
95
|
+
sentAt: msg.sentAt,
|
|
96
|
+
paraId: index,
|
|
97
|
+
data: xcmMessageDecoded,
|
|
98
|
+
};
|
|
99
|
+
(_a = xcmMessages.horizontalMessages) === null || _a === void 0 ? void 0 : _a.push(horizontalMessage);
|
|
100
|
+
}
|
|
101
|
+
else if (paraId === undefined) {
|
|
102
|
+
horizontalMessage = {
|
|
103
|
+
sentAt: msg.sentAt,
|
|
104
|
+
paraId: index,
|
|
105
|
+
data: xcmMessageDecoded,
|
|
106
|
+
};
|
|
107
|
+
(_b = xcmMessages.horizontalMessages) === null || _b === void 0 ? void 0 : _b.push(horizontalMessage);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
return xcmMessages;
|
|
115
|
+
}
|
|
116
|
+
checkUpwardMsg(api, candidate) {
|
|
117
|
+
if (candidate.candidate.commitments.upwardMessages.length > 0) {
|
|
118
|
+
const xcmMessage = candidate.candidate.commitments.upwardMessages;
|
|
119
|
+
const paraId = candidate.candidate.descriptor.paraId;
|
|
120
|
+
const xcmMessageDecoded = this.decodeMsg(api, xcmMessage[0]);
|
|
121
|
+
const upwardMessage = {
|
|
122
|
+
paraId: paraId,
|
|
123
|
+
data: xcmMessageDecoded[0],
|
|
124
|
+
};
|
|
125
|
+
return upwardMessage;
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
decodeMsg(api, message) {
|
|
132
|
+
const instructions = [];
|
|
133
|
+
let xcmMessage = message;
|
|
134
|
+
let instructionLength = 0;
|
|
135
|
+
while (xcmMessage.length != 0) {
|
|
136
|
+
const xcmInstructions = api.createType('XcmVersionedXcm', xcmMessage);
|
|
137
|
+
instructions.push(xcmInstructions);
|
|
138
|
+
instructionLength = xcmInstructions.toU8a().length;
|
|
139
|
+
xcmMessage = xcmMessage.slice(instructionLength);
|
|
140
|
+
}
|
|
141
|
+
return instructions;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
exports.XcmDecoder = XcmDecoder;
|
|
145
|
+
//# sourceMappingURL=XCMDecoder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XCMDecoder.js","sourceRoot":"","sources":["../../../../src/services/blocks/XCMDecoder.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE;;;AAiBxE,IAAK,SAGJ;AAHD,WAAK,SAAS;IACb,4BAAe,CAAA;IACf,oCAAu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1C,CAAC;CACD;AAvHD,gCAuHC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { u128, Vec } from '@polkadot/types';
|
|
2
|
+
import type { PalletProxyProxyDefinition } from '@polkadot/types/lookup';
|
|
3
|
+
import type { IAt } from './';
|
|
4
|
+
export interface AccountsProxyInfo {
|
|
5
|
+
at: IAt;
|
|
6
|
+
delegatedAccounts: Vec<PalletProxyProxyDefinition>;
|
|
7
|
+
depositHeld: u128;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2024 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=AccountProxyInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountProxyInfo.js","sourceRoot":"","sources":["../../../../src/types/responses/AccountProxyInfo.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -3,6 +3,7 @@ import { BlockHash, BlockNumber, Hash } from '@polkadot/types/interfaces';
|
|
|
3
3
|
import { AccountId } from '@polkadot/types/interfaces/runtime';
|
|
4
4
|
import { Codec } from '@polkadot/types/types';
|
|
5
5
|
import { IExtrinsic, ISanitizedEvent } from '.';
|
|
6
|
+
import { IMessages } from './BlockXCMMessages';
|
|
6
7
|
export interface IBlock {
|
|
7
8
|
number: Compact<BlockNumber>;
|
|
8
9
|
hash: BlockHash;
|
|
@@ -15,6 +16,7 @@ export interface IBlock {
|
|
|
15
16
|
extrinsics: IExtrinsic[];
|
|
16
17
|
onFinalize: IOnInitializeOrFinalize;
|
|
17
18
|
finalized: boolean | undefined;
|
|
19
|
+
decodedXcmMsgs?: IMessages | undefined;
|
|
18
20
|
}
|
|
19
21
|
interface IOnInitializeOrFinalize {
|
|
20
22
|
events: ISanitizedEvent[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface IUpwardMessage {
|
|
2
|
+
paraId: string;
|
|
3
|
+
data: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IDownwardMessage {
|
|
6
|
+
sentAt: string;
|
|
7
|
+
msg: string;
|
|
8
|
+
data: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IHorizontalMessage {
|
|
11
|
+
sentAt: string;
|
|
12
|
+
paraId: string;
|
|
13
|
+
data: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IMessages {
|
|
16
|
+
horizontalMessages?: IHorizontalMessage[];
|
|
17
|
+
downwardMessages?: IDownwardMessage[];
|
|
18
|
+
upwardMessages?: IUpwardMessage[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=BlockXCMMessages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockXCMMessages.js","sourceRoot":"","sources":["../../../../src/types/responses/BlockXCMMessages.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ISanitizedCall } from '.';
|
|
2
|
+
import { ISanitizedParachainInherentData } from './SanitizedParachainInherentData';
|
|
3
|
+
import { ISanitizedParentInherentData } from './SanitizedParentInherentData';
|
|
2
4
|
export interface ISanitizedArgs {
|
|
3
5
|
call?: ISanitizedCall;
|
|
4
6
|
calls?: ISanitizedCall[];
|
|
5
|
-
|
|
7
|
+
data?: ISanitizedParentInherentData | ISanitizedParachainInherentData;
|
|
6
8
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ISanitizedBackedCandidateExplicitValidityVote, ISanitizedBackedCandidateImplicitValidityVote } from './SanitizedBackedCandidateValidityVotes';
|
|
2
|
+
import { ISanitizedCandidate } from './SanitizedCandidate';
|
|
3
|
+
export interface ISanitizedBackedCandidate {
|
|
4
|
+
candidate: ISanitizedCandidate;
|
|
5
|
+
validityVotes: (ISanitizedBackedCandidateExplicitValidityVote | ISanitizedBackedCandidateImplicitValidityVote)[];
|
|
6
|
+
validatorIndices: `0x${string}`;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizedBackedCandidate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizedBackedCandidate.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizedBackedCandidate.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ISanitizedBackedCandidateDescriptor {
|
|
2
|
+
paraId: string;
|
|
3
|
+
relayParent: `0x${string}`;
|
|
4
|
+
collator: `0x${string}`;
|
|
5
|
+
persistedValidationDataHash: `0x${string}`;
|
|
6
|
+
povHash: `0x${string}`;
|
|
7
|
+
erasureRoot: `0x${string}`;
|
|
8
|
+
signature: `0x${string}`;
|
|
9
|
+
paraHead: `0x${string}`;
|
|
10
|
+
validationCodeHash: `0x${string}`;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizedBackedCandidateDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizedBackedCandidateDescriptor.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizedBackedCandidateDescriptor.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizedBackedCandidateValidityVotes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizedBackedCandidateValidityVotes.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizedBackedCandidateValidityVotes.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizedBackedCandidatesCommitments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizedBackedCandidatesCommitments.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizedBackedCandidatesCommitments.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizedBitfield.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizedBitfield.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizedBitfield.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ISanitizedBackedCandidateDescriptor } from './SanitizedBackedCandidateDescriptor';
|
|
2
|
+
import { ISanitizedBackedCandidateCommitments } from './SanitizedBackedCandidatesCommitments';
|
|
3
|
+
export interface ISanitizedCandidate {
|
|
4
|
+
descriptor: ISanitizedBackedCandidateDescriptor;
|
|
5
|
+
commitments: ISanitizedBackedCandidateCommitments;
|
|
6
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizedCandidate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizedCandidate.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizedCandidate.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IDownwardMessage, IHorizontalMessage } from './BlockXCMMessages';
|
|
2
|
+
import { ISanitizedParachainValidationData } from './SanitizedParachainValidationData';
|
|
3
|
+
export interface ISanitizedParachainInherentData {
|
|
4
|
+
validationData: ISanitizedParachainValidationData;
|
|
5
|
+
relayChainState: `0x${string}`[];
|
|
6
|
+
downwardMessages: IDownwardMessage[];
|
|
7
|
+
horizontalMessages: Map<string, IHorizontalMessage[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizedParachainInherentData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizedParachainInherentData.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizedParachainInherentData.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizedParachainValidationData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizedParachainValidationData.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizedParachainValidationData.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IBlockRaw } from './BlockRaw';
|
|
2
|
+
import { ISanitizedBackedCandidate } from './SanitizedBackedCandidate';
|
|
3
|
+
import { ISanitizedBitfield } from './SanitizedBitfield';
|
|
4
|
+
import { ISanitizedDisputeStatementSet } from './SanitizediDisputeStatementSet';
|
|
5
|
+
export interface ISanitizedParentInherentData {
|
|
6
|
+
bitfields: ISanitizedBitfield[];
|
|
7
|
+
backedCandidates: ISanitizedBackedCandidate[];
|
|
8
|
+
disputes: ISanitizedDisputeStatementSet[];
|
|
9
|
+
parentHeader: IBlockRaw;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizedParentInherentData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizedParentInherentData.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizedParentInherentData.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
|
|
3
|
+
// This file is part of Substrate API Sidecar.
|
|
4
|
+
//
|
|
5
|
+
// Substrate API Sidecar is free software: you can redistribute it and/or modify
|
|
6
|
+
// it under the terms of the GNU General Public License as published by
|
|
7
|
+
// the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
// (at your option) any later version.
|
|
9
|
+
//
|
|
10
|
+
// This program is distributed in the hope that it will be useful,
|
|
11
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
// GNU General Public License for more details.
|
|
14
|
+
//
|
|
15
|
+
// You should have received a copy of the GNU General Public License
|
|
16
|
+
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=SanitizediDisputeStatementSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SanitizediDisputeStatementSet.js","sourceRoot":"","sources":["../../../../src/types/responses/SanitizediDisputeStatementSet.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,8CAA8C;AAC9C,EAAE;AACF,gFAAgF;AAChF,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,kEAAkE;AAClE,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,wEAAwE"}
|
|
@@ -2,6 +2,7 @@ export * from './AccountAssets';
|
|
|
2
2
|
export * from './AccountBalanceInfo';
|
|
3
3
|
export * from './AccountConvert';
|
|
4
4
|
export * from './AccountPoolAssets';
|
|
5
|
+
export * from './AccountProxyInfo';
|
|
5
6
|
export * from './AccountStakingInfo';
|
|
6
7
|
export * from './AccountStakingPayouts';
|
|
7
8
|
export * from './AccountVestingInfo';
|
|
@@ -9,6 +10,7 @@ export * from './Assets';
|
|
|
9
10
|
export * from './At';
|
|
10
11
|
export * from './Block';
|
|
11
12
|
export * from './BlockRaw';
|
|
13
|
+
export * from './BlockXCMMessages';
|
|
12
14
|
export * from './EraPayouts';
|
|
13
15
|
export * from './Extrinsic';
|
|
14
16
|
export * from './ForeignAssets';
|