forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melodot.ts
57 lines (53 loc) · 1.24 KB
/
melodot.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
// structs need to be in order
/* eslint-disable sort-keys */
const definitions: OverrideBundleDefinition = {
rpc: {
das: {
submitBlobTx: {
description: 'Get Block Length',
params: [
{
name: 'data',
type: 'Vec<u8>'
},
{
name: 'extrinsic',
type: 'Vec<u8>'
}
],
type: 'BlockLength'
}
}
},
types: [
{
// on all versions
minmax: [0, undefined],
types: {
Header: {
parentHash: 'Hash',
number: 'Compact<BlockNumber>',
stateRoot: 'Hash',
extrinsicsRoot: 'Hash',
digest: 'Digest',
extension: 'HeaderExtension'
},
HeaderExtension: {
commitments_bytes: 'Vec<u8>'
},
KZGCommitment: 'Vec<u8>',
KZGProof: 'Vec<u8>',
Blob: 'Vec<u8>',
BlsScalar: 'Vec<u8>',
BlobTxSatus: {
tx_hash: 'Hash',
err: 'Option<Vec<u8>>'
}
}
}
]
};
export default definitions;