@subwallet/extension-base 1.1.61-0 → 1.1.62-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/cjs/constants/staking.js +9 -1
- package/cjs/packageInfo.js +1 -1
- package/cjs/services/chain-service/constants.js +6 -3
- package/cjs/services/chain-service/handler/SubstrateApi.js +3 -5
- package/cjs/services/chain-service/index.js +8 -0
- package/cjs/services/chain-service/utils/index.js +4 -0
- package/cjs/services/chain-service/utils/patch.js +1 -1
- package/cjs/services/earning-service/constants/chains.js +5 -3
- package/cjs/services/earning-service/handlers/native-staking/amplitude.js +91 -51
- package/cjs/services/earning-service/handlers/native-staking/para-chain.js +119 -106
- package/cjs/services/earning-service/handlers/native-staking/relay-chain.js +22 -15
- package/cjs/services/earning-service/handlers/nomination-pool/index.js +11 -6
- package/cjs/services/earning-service/service.js +1 -1
- package/cjs/services/earning-service/utils/index.js +10 -2
- package/cjs/services/price-service/index.js +14 -6
- package/constants/staking.d.ts +1 -0
- package/constants/staking.js +7 -0
- package/package.json +7 -12
- package/packageInfo.js +1 -1
- package/services/chain-service/constants.js +6 -3
- package/services/chain-service/handler/SubstrateApi.js +4 -5
- package/services/chain-service/index.js +8 -0
- package/services/chain-service/utils/index.js +4 -0
- package/services/chain-service/utils/patch.js +1 -1
- package/services/earning-service/constants/chains.d.ts +1 -0
- package/services/earning-service/constants/chains.js +3 -2
- package/services/earning-service/handlers/native-staking/amplitude.d.ts +2 -0
- package/services/earning-service/handlers/native-staking/amplitude.js +91 -51
- package/services/earning-service/handlers/native-staking/para-chain.d.ts +2 -0
- package/services/earning-service/handlers/native-staking/para-chain.js +119 -106
- package/services/earning-service/handlers/native-staking/relay-chain.js +23 -16
- package/services/earning-service/handlers/nomination-pool/index.js +11 -6
- package/services/earning-service/service.js +1 -1
- package/services/earning-service/utils/index.js +10 -2
- package/services/price-service/index.js +14 -6
- package/types/yield/info/chain/info.d.ts +2 -0
- package/types/yield/info/chain/target.d.ts +1 -0
- package/types/yield/info/pallet.d.ts +6 -0
- package/utils/staticData/currencySymbol.json +9 -9
- package/cjs/services/chain-service/handler/chain-spec/goldberg.js +0 -190
- package/services/chain-service/handler/chain-spec/goldberg.d.ts +0 -184
- package/services/chain-service/handler/chain-spec/goldberg.js +0 -183
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
// Copyright 2019-2022 @subwallet/extension-base authors & contributors
|
|
8
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
-
|
|
10
|
-
const chainSpec = {
|
|
11
|
-
types: {
|
|
12
|
-
AppId: 'Compact<u32>',
|
|
13
|
-
DataLookupIndexItem: {
|
|
14
|
-
appId: 'AppId',
|
|
15
|
-
start: 'Compact<u32>'
|
|
16
|
-
},
|
|
17
|
-
DataLookup: {
|
|
18
|
-
size: 'Compact<u32>',
|
|
19
|
-
index: 'Vec<DataLookupIndexItem>'
|
|
20
|
-
},
|
|
21
|
-
KateCommitment: {
|
|
22
|
-
rows: 'Compact<u16>',
|
|
23
|
-
cols: 'Compact<u16>',
|
|
24
|
-
commitment: 'Vec<u8>',
|
|
25
|
-
dataRoot: 'H256'
|
|
26
|
-
},
|
|
27
|
-
V1HeaderExtension: {
|
|
28
|
-
appLookup: 'DataLookup',
|
|
29
|
-
commitment: 'KateCommitment'
|
|
30
|
-
},
|
|
31
|
-
V2HeaderExtension: {
|
|
32
|
-
appLookup: 'DataLookup',
|
|
33
|
-
commitment: 'KateCommitment'
|
|
34
|
-
},
|
|
35
|
-
V3HeaderExtension: {
|
|
36
|
-
appLookup: 'DataLookup',
|
|
37
|
-
commitment: 'KateCommitment'
|
|
38
|
-
},
|
|
39
|
-
VTHeaderExtension: {
|
|
40
|
-
newField: 'Vec<u8>',
|
|
41
|
-
commitment: 'KateCommitment',
|
|
42
|
-
appLookup: 'DataLookup'
|
|
43
|
-
},
|
|
44
|
-
HeaderExtension: {
|
|
45
|
-
_enum: {
|
|
46
|
-
V1: 'V1HeaderExtension',
|
|
47
|
-
V2: 'V2HeaderExtension',
|
|
48
|
-
V3: 'V3HeaderExtension',
|
|
49
|
-
VTest: 'VTHeaderExtension'
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
DaHeader: {
|
|
53
|
-
parentHash: 'Hash',
|
|
54
|
-
number: 'Compact<BlockNumber>',
|
|
55
|
-
stateRoot: 'Hash',
|
|
56
|
-
extrinsicsRoot: 'Hash',
|
|
57
|
-
digest: 'Digest',
|
|
58
|
-
extension: 'HeaderExtension'
|
|
59
|
-
},
|
|
60
|
-
Header: 'DaHeader',
|
|
61
|
-
CheckAppIdExtra: {
|
|
62
|
-
appId: 'AppId'
|
|
63
|
-
},
|
|
64
|
-
CheckAppIdTypes: {},
|
|
65
|
-
CheckAppId: {
|
|
66
|
-
extra: 'CheckAppIdExtra',
|
|
67
|
-
types: 'CheckAppIdTypes'
|
|
68
|
-
},
|
|
69
|
-
BlockLengthColumns: 'Compact<u32>',
|
|
70
|
-
BlockLengthRows: 'Compact<u32>',
|
|
71
|
-
BlockLength: {
|
|
72
|
-
max: 'PerDispatchClass',
|
|
73
|
-
cols: 'BlockLengthColumns',
|
|
74
|
-
rows: 'BlockLengthRows',
|
|
75
|
-
chunkSize: 'Compact<u32>'
|
|
76
|
-
},
|
|
77
|
-
PerDispatchClass: {
|
|
78
|
-
normal: 'u32',
|
|
79
|
-
operational: 'u32',
|
|
80
|
-
mandatory: 'u32'
|
|
81
|
-
},
|
|
82
|
-
DataProof: {
|
|
83
|
-
root: 'H256',
|
|
84
|
-
proof: 'Vec<H256>',
|
|
85
|
-
numberOfLeaves: 'Compact<u32>',
|
|
86
|
-
leafIndex: 'Compact<u32>',
|
|
87
|
-
leaf: 'H256'
|
|
88
|
-
},
|
|
89
|
-
DataProofV2: {
|
|
90
|
-
dataRoot: 'H256',
|
|
91
|
-
blobRoot: 'H256',
|
|
92
|
-
bridgeRoot: 'H256',
|
|
93
|
-
proof: 'Vec<H256>',
|
|
94
|
-
numberOfLeaves: 'Compact<u32>',
|
|
95
|
-
leafIndex: 'Compact<u32>',
|
|
96
|
-
leaf: 'H256'
|
|
97
|
-
},
|
|
98
|
-
ProofResponse: {
|
|
99
|
-
dataProof: 'DataProofV2',
|
|
100
|
-
message: 'Option<Message>'
|
|
101
|
-
},
|
|
102
|
-
Message: {
|
|
103
|
-
messageType: 'MessageType',
|
|
104
|
-
from: 'H256',
|
|
105
|
-
to: 'H256',
|
|
106
|
-
originDomain: 'u32',
|
|
107
|
-
destinationDomain: 'u32',
|
|
108
|
-
data: 'Vec<u8>',
|
|
109
|
-
id: 'u64'
|
|
110
|
-
},
|
|
111
|
-
MessageType: {
|
|
112
|
-
_enum: ['ArbitraryMessage', 'FungibleToken']
|
|
113
|
-
},
|
|
114
|
-
Cell: {
|
|
115
|
-
row: 'BlockLengthRows',
|
|
116
|
-
col: 'BlockLengthColumns'
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
rpc: {
|
|
120
|
-
kate: {
|
|
121
|
-
blockLength: {
|
|
122
|
-
description: 'Get Block Length',
|
|
123
|
-
params: [{
|
|
124
|
-
name: 'at',
|
|
125
|
-
type: 'Hash',
|
|
126
|
-
isOptional: true
|
|
127
|
-
}],
|
|
128
|
-
type: 'BlockLength'
|
|
129
|
-
},
|
|
130
|
-
queryProof: {
|
|
131
|
-
description: 'Generate the kate proof for the given `cells`',
|
|
132
|
-
params: [{
|
|
133
|
-
name: 'cells',
|
|
134
|
-
type: 'Vec<Cell>'
|
|
135
|
-
}, {
|
|
136
|
-
name: 'at',
|
|
137
|
-
type: 'Hash',
|
|
138
|
-
isOptional: true
|
|
139
|
-
}],
|
|
140
|
-
type: 'Vec<u8>'
|
|
141
|
-
},
|
|
142
|
-
queryAppData: {
|
|
143
|
-
description: 'Fetches app data rows for the given app',
|
|
144
|
-
params: [{
|
|
145
|
-
name: 'app_id',
|
|
146
|
-
type: 'AppId'
|
|
147
|
-
}, {
|
|
148
|
-
name: 'at',
|
|
149
|
-
type: 'Hash',
|
|
150
|
-
isOptional: true
|
|
151
|
-
}],
|
|
152
|
-
type: 'Vec<Option<Vec<u8>>>'
|
|
153
|
-
},
|
|
154
|
-
queryDataProof: {
|
|
155
|
-
description: 'Generate the data proof for the given `transaction_index`',
|
|
156
|
-
params: [{
|
|
157
|
-
name: 'transaction_index',
|
|
158
|
-
type: 'u32'
|
|
159
|
-
}, {
|
|
160
|
-
name: 'at',
|
|
161
|
-
type: 'Hash',
|
|
162
|
-
isOptional: true
|
|
163
|
-
}],
|
|
164
|
-
type: 'DataProof'
|
|
165
|
-
},
|
|
166
|
-
queryDataProofV2: {
|
|
167
|
-
description: 'Generate the data proof for the given `transaction_index`',
|
|
168
|
-
params: [{
|
|
169
|
-
name: 'transaction_index',
|
|
170
|
-
type: 'u32'
|
|
171
|
-
}, {
|
|
172
|
-
name: 'at',
|
|
173
|
-
type: 'Hash',
|
|
174
|
-
isOptional: true
|
|
175
|
-
}],
|
|
176
|
-
type: 'ProofResponse'
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
signedExtensions: {
|
|
181
|
-
CheckAppId: {
|
|
182
|
-
extrinsic: {
|
|
183
|
-
appId: 'AppId'
|
|
184
|
-
},
|
|
185
|
-
payload: {}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
var _default = chainSpec;
|
|
190
|
-
exports.default = _default;
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
declare const chainSpec: {
|
|
2
|
-
types: {
|
|
3
|
-
AppId: string;
|
|
4
|
-
DataLookupIndexItem: {
|
|
5
|
-
appId: string;
|
|
6
|
-
start: string;
|
|
7
|
-
};
|
|
8
|
-
DataLookup: {
|
|
9
|
-
size: string;
|
|
10
|
-
index: string;
|
|
11
|
-
};
|
|
12
|
-
KateCommitment: {
|
|
13
|
-
rows: string;
|
|
14
|
-
cols: string;
|
|
15
|
-
commitment: string;
|
|
16
|
-
dataRoot: string;
|
|
17
|
-
};
|
|
18
|
-
V1HeaderExtension: {
|
|
19
|
-
appLookup: string;
|
|
20
|
-
commitment: string;
|
|
21
|
-
};
|
|
22
|
-
V2HeaderExtension: {
|
|
23
|
-
appLookup: string;
|
|
24
|
-
commitment: string;
|
|
25
|
-
};
|
|
26
|
-
V3HeaderExtension: {
|
|
27
|
-
appLookup: string;
|
|
28
|
-
commitment: string;
|
|
29
|
-
};
|
|
30
|
-
VTHeaderExtension: {
|
|
31
|
-
newField: string;
|
|
32
|
-
commitment: string;
|
|
33
|
-
appLookup: string;
|
|
34
|
-
};
|
|
35
|
-
HeaderExtension: {
|
|
36
|
-
_enum: {
|
|
37
|
-
V1: string;
|
|
38
|
-
V2: string;
|
|
39
|
-
V3: string;
|
|
40
|
-
VTest: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
DaHeader: {
|
|
44
|
-
parentHash: string;
|
|
45
|
-
number: string;
|
|
46
|
-
stateRoot: string;
|
|
47
|
-
extrinsicsRoot: string;
|
|
48
|
-
digest: string;
|
|
49
|
-
extension: string;
|
|
50
|
-
};
|
|
51
|
-
Header: string;
|
|
52
|
-
CheckAppIdExtra: {
|
|
53
|
-
appId: string;
|
|
54
|
-
};
|
|
55
|
-
CheckAppIdTypes: {};
|
|
56
|
-
CheckAppId: {
|
|
57
|
-
extra: string;
|
|
58
|
-
types: string;
|
|
59
|
-
};
|
|
60
|
-
BlockLengthColumns: string;
|
|
61
|
-
BlockLengthRows: string;
|
|
62
|
-
BlockLength: {
|
|
63
|
-
max: string;
|
|
64
|
-
cols: string;
|
|
65
|
-
rows: string;
|
|
66
|
-
chunkSize: string;
|
|
67
|
-
};
|
|
68
|
-
PerDispatchClass: {
|
|
69
|
-
normal: string;
|
|
70
|
-
operational: string;
|
|
71
|
-
mandatory: string;
|
|
72
|
-
};
|
|
73
|
-
DataProof: {
|
|
74
|
-
root: string;
|
|
75
|
-
proof: string;
|
|
76
|
-
numberOfLeaves: string;
|
|
77
|
-
leafIndex: string;
|
|
78
|
-
leaf: string;
|
|
79
|
-
};
|
|
80
|
-
DataProofV2: {
|
|
81
|
-
dataRoot: string;
|
|
82
|
-
blobRoot: string;
|
|
83
|
-
bridgeRoot: string;
|
|
84
|
-
proof: string;
|
|
85
|
-
numberOfLeaves: string;
|
|
86
|
-
leafIndex: string;
|
|
87
|
-
leaf: string;
|
|
88
|
-
};
|
|
89
|
-
ProofResponse: {
|
|
90
|
-
dataProof: string;
|
|
91
|
-
message: string;
|
|
92
|
-
};
|
|
93
|
-
Message: {
|
|
94
|
-
messageType: string;
|
|
95
|
-
from: string;
|
|
96
|
-
to: string;
|
|
97
|
-
originDomain: string;
|
|
98
|
-
destinationDomain: string;
|
|
99
|
-
data: string;
|
|
100
|
-
id: string;
|
|
101
|
-
};
|
|
102
|
-
MessageType: {
|
|
103
|
-
_enum: string[];
|
|
104
|
-
};
|
|
105
|
-
Cell: {
|
|
106
|
-
row: string;
|
|
107
|
-
col: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
rpc: {
|
|
111
|
-
kate: {
|
|
112
|
-
blockLength: {
|
|
113
|
-
description: string;
|
|
114
|
-
params: {
|
|
115
|
-
name: string;
|
|
116
|
-
type: string;
|
|
117
|
-
isOptional: boolean;
|
|
118
|
-
}[];
|
|
119
|
-
type: string;
|
|
120
|
-
};
|
|
121
|
-
queryProof: {
|
|
122
|
-
description: string;
|
|
123
|
-
params: ({
|
|
124
|
-
name: string;
|
|
125
|
-
type: string;
|
|
126
|
-
isOptional?: undefined;
|
|
127
|
-
} | {
|
|
128
|
-
name: string;
|
|
129
|
-
type: string;
|
|
130
|
-
isOptional: boolean;
|
|
131
|
-
})[];
|
|
132
|
-
type: string;
|
|
133
|
-
};
|
|
134
|
-
queryAppData: {
|
|
135
|
-
description: string;
|
|
136
|
-
params: ({
|
|
137
|
-
name: string;
|
|
138
|
-
type: string;
|
|
139
|
-
isOptional?: undefined;
|
|
140
|
-
} | {
|
|
141
|
-
name: string;
|
|
142
|
-
type: string;
|
|
143
|
-
isOptional: boolean;
|
|
144
|
-
})[];
|
|
145
|
-
type: string;
|
|
146
|
-
};
|
|
147
|
-
queryDataProof: {
|
|
148
|
-
description: string;
|
|
149
|
-
params: ({
|
|
150
|
-
name: string;
|
|
151
|
-
type: string;
|
|
152
|
-
isOptional?: undefined;
|
|
153
|
-
} | {
|
|
154
|
-
name: string;
|
|
155
|
-
type: string;
|
|
156
|
-
isOptional: boolean;
|
|
157
|
-
})[];
|
|
158
|
-
type: string;
|
|
159
|
-
};
|
|
160
|
-
queryDataProofV2: {
|
|
161
|
-
description: string;
|
|
162
|
-
params: ({
|
|
163
|
-
name: string;
|
|
164
|
-
type: string;
|
|
165
|
-
isOptional?: undefined;
|
|
166
|
-
} | {
|
|
167
|
-
name: string;
|
|
168
|
-
type: string;
|
|
169
|
-
isOptional: boolean;
|
|
170
|
-
})[];
|
|
171
|
-
type: string;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
signedExtensions: {
|
|
176
|
-
CheckAppId: {
|
|
177
|
-
extrinsic: {
|
|
178
|
-
appId: string;
|
|
179
|
-
};
|
|
180
|
-
payload: {};
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
export default chainSpec;
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
// Copyright 2019-2022 @subwallet/extension-base authors & contributors
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
const chainSpec = {
|
|
5
|
-
types: {
|
|
6
|
-
AppId: 'Compact<u32>',
|
|
7
|
-
DataLookupIndexItem: {
|
|
8
|
-
appId: 'AppId',
|
|
9
|
-
start: 'Compact<u32>'
|
|
10
|
-
},
|
|
11
|
-
DataLookup: {
|
|
12
|
-
size: 'Compact<u32>',
|
|
13
|
-
index: 'Vec<DataLookupIndexItem>'
|
|
14
|
-
},
|
|
15
|
-
KateCommitment: {
|
|
16
|
-
rows: 'Compact<u16>',
|
|
17
|
-
cols: 'Compact<u16>',
|
|
18
|
-
commitment: 'Vec<u8>',
|
|
19
|
-
dataRoot: 'H256'
|
|
20
|
-
},
|
|
21
|
-
V1HeaderExtension: {
|
|
22
|
-
appLookup: 'DataLookup',
|
|
23
|
-
commitment: 'KateCommitment'
|
|
24
|
-
},
|
|
25
|
-
V2HeaderExtension: {
|
|
26
|
-
appLookup: 'DataLookup',
|
|
27
|
-
commitment: 'KateCommitment'
|
|
28
|
-
},
|
|
29
|
-
V3HeaderExtension: {
|
|
30
|
-
appLookup: 'DataLookup',
|
|
31
|
-
commitment: 'KateCommitment'
|
|
32
|
-
},
|
|
33
|
-
VTHeaderExtension: {
|
|
34
|
-
newField: 'Vec<u8>',
|
|
35
|
-
commitment: 'KateCommitment',
|
|
36
|
-
appLookup: 'DataLookup'
|
|
37
|
-
},
|
|
38
|
-
HeaderExtension: {
|
|
39
|
-
_enum: {
|
|
40
|
-
V1: 'V1HeaderExtension',
|
|
41
|
-
V2: 'V2HeaderExtension',
|
|
42
|
-
V3: 'V3HeaderExtension',
|
|
43
|
-
VTest: 'VTHeaderExtension'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
DaHeader: {
|
|
47
|
-
parentHash: 'Hash',
|
|
48
|
-
number: 'Compact<BlockNumber>',
|
|
49
|
-
stateRoot: 'Hash',
|
|
50
|
-
extrinsicsRoot: 'Hash',
|
|
51
|
-
digest: 'Digest',
|
|
52
|
-
extension: 'HeaderExtension'
|
|
53
|
-
},
|
|
54
|
-
Header: 'DaHeader',
|
|
55
|
-
CheckAppIdExtra: {
|
|
56
|
-
appId: 'AppId'
|
|
57
|
-
},
|
|
58
|
-
CheckAppIdTypes: {},
|
|
59
|
-
CheckAppId: {
|
|
60
|
-
extra: 'CheckAppIdExtra',
|
|
61
|
-
types: 'CheckAppIdTypes'
|
|
62
|
-
},
|
|
63
|
-
BlockLengthColumns: 'Compact<u32>',
|
|
64
|
-
BlockLengthRows: 'Compact<u32>',
|
|
65
|
-
BlockLength: {
|
|
66
|
-
max: 'PerDispatchClass',
|
|
67
|
-
cols: 'BlockLengthColumns',
|
|
68
|
-
rows: 'BlockLengthRows',
|
|
69
|
-
chunkSize: 'Compact<u32>'
|
|
70
|
-
},
|
|
71
|
-
PerDispatchClass: {
|
|
72
|
-
normal: 'u32',
|
|
73
|
-
operational: 'u32',
|
|
74
|
-
mandatory: 'u32'
|
|
75
|
-
},
|
|
76
|
-
DataProof: {
|
|
77
|
-
root: 'H256',
|
|
78
|
-
proof: 'Vec<H256>',
|
|
79
|
-
numberOfLeaves: 'Compact<u32>',
|
|
80
|
-
leafIndex: 'Compact<u32>',
|
|
81
|
-
leaf: 'H256'
|
|
82
|
-
},
|
|
83
|
-
DataProofV2: {
|
|
84
|
-
dataRoot: 'H256',
|
|
85
|
-
blobRoot: 'H256',
|
|
86
|
-
bridgeRoot: 'H256',
|
|
87
|
-
proof: 'Vec<H256>',
|
|
88
|
-
numberOfLeaves: 'Compact<u32>',
|
|
89
|
-
leafIndex: 'Compact<u32>',
|
|
90
|
-
leaf: 'H256'
|
|
91
|
-
},
|
|
92
|
-
ProofResponse: {
|
|
93
|
-
dataProof: 'DataProofV2',
|
|
94
|
-
message: 'Option<Message>'
|
|
95
|
-
},
|
|
96
|
-
Message: {
|
|
97
|
-
messageType: 'MessageType',
|
|
98
|
-
from: 'H256',
|
|
99
|
-
to: 'H256',
|
|
100
|
-
originDomain: 'u32',
|
|
101
|
-
destinationDomain: 'u32',
|
|
102
|
-
data: 'Vec<u8>',
|
|
103
|
-
id: 'u64'
|
|
104
|
-
},
|
|
105
|
-
MessageType: {
|
|
106
|
-
_enum: ['ArbitraryMessage', 'FungibleToken']
|
|
107
|
-
},
|
|
108
|
-
Cell: {
|
|
109
|
-
row: 'BlockLengthRows',
|
|
110
|
-
col: 'BlockLengthColumns'
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
rpc: {
|
|
114
|
-
kate: {
|
|
115
|
-
blockLength: {
|
|
116
|
-
description: 'Get Block Length',
|
|
117
|
-
params: [{
|
|
118
|
-
name: 'at',
|
|
119
|
-
type: 'Hash',
|
|
120
|
-
isOptional: true
|
|
121
|
-
}],
|
|
122
|
-
type: 'BlockLength'
|
|
123
|
-
},
|
|
124
|
-
queryProof: {
|
|
125
|
-
description: 'Generate the kate proof for the given `cells`',
|
|
126
|
-
params: [{
|
|
127
|
-
name: 'cells',
|
|
128
|
-
type: 'Vec<Cell>'
|
|
129
|
-
}, {
|
|
130
|
-
name: 'at',
|
|
131
|
-
type: 'Hash',
|
|
132
|
-
isOptional: true
|
|
133
|
-
}],
|
|
134
|
-
type: 'Vec<u8>'
|
|
135
|
-
},
|
|
136
|
-
queryAppData: {
|
|
137
|
-
description: 'Fetches app data rows for the given app',
|
|
138
|
-
params: [{
|
|
139
|
-
name: 'app_id',
|
|
140
|
-
type: 'AppId'
|
|
141
|
-
}, {
|
|
142
|
-
name: 'at',
|
|
143
|
-
type: 'Hash',
|
|
144
|
-
isOptional: true
|
|
145
|
-
}],
|
|
146
|
-
type: 'Vec<Option<Vec<u8>>>'
|
|
147
|
-
},
|
|
148
|
-
queryDataProof: {
|
|
149
|
-
description: 'Generate the data proof for the given `transaction_index`',
|
|
150
|
-
params: [{
|
|
151
|
-
name: 'transaction_index',
|
|
152
|
-
type: 'u32'
|
|
153
|
-
}, {
|
|
154
|
-
name: 'at',
|
|
155
|
-
type: 'Hash',
|
|
156
|
-
isOptional: true
|
|
157
|
-
}],
|
|
158
|
-
type: 'DataProof'
|
|
159
|
-
},
|
|
160
|
-
queryDataProofV2: {
|
|
161
|
-
description: 'Generate the data proof for the given `transaction_index`',
|
|
162
|
-
params: [{
|
|
163
|
-
name: 'transaction_index',
|
|
164
|
-
type: 'u32'
|
|
165
|
-
}, {
|
|
166
|
-
name: 'at',
|
|
167
|
-
type: 'Hash',
|
|
168
|
-
isOptional: true
|
|
169
|
-
}],
|
|
170
|
-
type: 'ProofResponse'
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
signedExtensions: {
|
|
175
|
-
CheckAppId: {
|
|
176
|
-
extrinsic: {
|
|
177
|
-
appId: 'AppId'
|
|
178
|
-
},
|
|
179
|
-
payload: {}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
export default chainSpec;
|