-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathibc.prove.types.ts
248 lines (213 loc) · 7.73 KB
/
ibc.prove.types.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
// generated by @greymass/abi2core
import {
BlockTimestamp,
Bytes,
Checksum256,
Name,
PublicKey,
Signature,
Struct,
TimePoint,
TypeAlias,
UInt16,
UInt32,
UInt64,
Variant,
VarUInt,
} from '@greymass/eosio'
@Struct.type('key_weight')
export class KeyWeight extends Struct {
@Struct.field(PublicKey) key!: PublicKey
@Struct.field(UInt16) weight!: UInt16
}
@Struct.type('block_signing_authority_v0')
export class BlockSigningAuthorityV0 extends Struct {
@Struct.field(UInt32) threshold!: UInt32
@Struct.field(KeyWeight, {array: true}) keys!: KeyWeight[]
}
@Variant.type('variant_block_signing_authority_v0', [BlockSigningAuthorityV0])
class VariantBlockSigningAuthorityV0 extends Variant {}
@TypeAlias('block_signing_authority')
class BlockSigningAuthority extends VariantBlockSigningAuthorityV0 {}
@Struct.type('permission_level')
export class PermissionLevel extends Struct {
@Struct.field(Name) actor!: Name
@Struct.field(Name) permission!: Name
}
@Struct.type('action')
export class Action extends Struct {
@Struct.field(Name) account!: Name
@Struct.field(Name) name!: Name
@Struct.field(PermissionLevel, {array: true}) authorization!: PermissionLevel[]
@Struct.field(Bytes) data!: Bytes
}
@Struct.type('authseq')
export class Authseq extends Struct {
@Struct.field(Name) account!: Name
@Struct.field(UInt64) sequence!: UInt64
}
@Struct.type('actreceipt')
export class Actreceipt extends Struct {
@Struct.field(Name) receiver!: Name
@Struct.field(Checksum256) act_digest!: Checksum256
@Struct.field(UInt64) global_sequence!: UInt64
@Struct.field(UInt64) recv_sequence!: UInt64
@Struct.field(Authseq, {array: true}) auth_sequence!: Authseq[]
@Struct.field(VarUInt) code_sequence!: VarUInt
@Struct.field(VarUInt) abi_sequence!: VarUInt
}
@Struct.type('actionproof')
export class Actionproof extends Struct {
@Struct.field(Action) action!: Action
@Struct.field(Actreceipt) receipt!: Actreceipt
@Struct.field(Bytes) returnvalue!: Bytes
@Struct.field(Checksum256, {array: true}) amproofpath!: Checksum256[]
}
@Struct.type('producer_key')
export class ProducerKey extends Struct {
@Struct.field(Name) producer_name!: Name
@Struct.field(PublicKey) block_signing_key!: PublicKey
}
@Struct.type('producer_schedule')
export class ProducerSchedule extends Struct {
@Struct.field(UInt32) version!: UInt32
@Struct.field(ProducerKey, {array: true}) producers!: ProducerKey[]
}
@Struct.type('pair_uint16_bytes')
export class PairUint16Bytes extends Struct {
@Struct.field(UInt16) first!: UInt16
@Struct.field(Bytes) second!: Bytes
}
@Struct.type('blockheader')
export class Blockheader extends Struct {
@Struct.field(BlockTimestamp) timestamp!: BlockTimestamp
@Struct.field(Name) producer!: Name
@Struct.field(UInt16) confirmed!: UInt16
@Struct.field(Checksum256) previous!: Checksum256
@Struct.field(Checksum256) transaction_mroot!: Checksum256
@Struct.field(Checksum256) action_mroot!: Checksum256
@Struct.field(UInt32) schedule_version!: UInt32
@Struct.field(ProducerSchedule, {optional: true}) new_producers?: ProducerSchedule
@Struct.field(PairUint16Bytes, {array: true}) header_extensions!: PairUint16Bytes[]
}
@Struct.type('sblockheader')
export class Sblockheader extends Struct {
@Struct.field(Blockheader) header!: Blockheader
@Struct.field(Signature, {array: true}) producer_signatures!: Signature[]
@Struct.field(Checksum256) previous_bmroot!: Checksum256
@Struct.field(UInt16, {array: true}) bmproofpath!: UInt16[]
}
@Struct.type('anchorblock')
export class Anchorblock extends Struct {
@Struct.field(Sblockheader) block!: Sblockheader
@Struct.field(UInt16, {array: true}) active_nodes!: UInt16[]
@Struct.field(UInt64) node_count!: UInt64
}
@Struct.type('chain')
export class Chain extends Struct {
@Struct.field(Name) name!: Name
@Struct.field(Checksum256) chain_id!: Checksum256
@Struct.field(UInt32) return_value_activated!: UInt32
@Struct.field('bool') enabled!: boolean
}
@Struct.type('producer_authority')
export class ProducerAuthority extends Struct {
@Struct.field(Name) producer_name!: Name
@Struct.field(BlockSigningAuthority) authority!: BlockSigningAuthority
}
@Struct.type('schedulev2')
export class Schedulev2 extends Struct {
@Struct.field(UInt32) version!: UInt32
@Struct.field(ProducerAuthority, {array: true}) producers!: ProducerAuthority[]
}
@Struct.type('chainschedule')
export class Chainschedule extends Struct {
@Struct.field(UInt64) version!: UInt64
@Struct.field(ProducerSchedule) producer_schedule_v1!: ProducerSchedule
@Struct.field(Schedulev2) producer_schedule_v2!: Schedulev2
@Struct.field(Checksum256) hash!: Checksum256
@Struct.field(UInt32) first_block!: UInt32
@Struct.field(UInt32) last_block!: UInt32
@Struct.field(TimePoint) expiry!: TimePoint
}
@Struct.type('checkproofa')
export class Checkproofa extends Struct {
@Struct.field(Name) contract!: Name
}
@Struct.type('checkproofb')
export class Checkproofb extends Struct {
@Struct.field(Name) contract!: Name
@Struct.field(Actionproof) actionproof!: Actionproof
}
@Struct.type('checkproofc')
export class Checkproofc extends Struct {
@Struct.field(Name) contract!: Name
@Struct.field(Actionproof) actionproof!: Actionproof
}
@Struct.type('heavyproof')
export class Heavyproof extends Struct {
@Struct.field(Checksum256) chain_id!: Checksum256
@Struct.field(Checksum256, {array: true}) hashes!: Checksum256[]
@Struct.field(Anchorblock) blocktoprove!: Anchorblock
@Struct.field(Sblockheader, {array: true}) bftproof!: Sblockheader[]
}
@Struct.type('checkproofd')
export class Checkproofd extends Struct {
@Struct.field(Heavyproof) blockproof!: Heavyproof
}
@Struct.type('checkproofe')
export class Checkproofe extends Struct {
@Struct.field(Heavyproof) blockproof!: Heavyproof
@Struct.field(Actionproof) actionproof!: Actionproof
}
@Struct.type('lightproof')
export class Lightproof extends Struct {
@Struct.field(Checksum256) chain_id!: Checksum256
@Struct.field(Blockheader) header!: Blockheader
@Struct.field(Checksum256) root!: Checksum256
@Struct.field(Checksum256, {array: true}) bmproofpath!: Checksum256[]
}
@Struct.type('checkprooff')
export class Checkprooff extends Struct {
@Struct.field(Lightproof) blockproof!: Lightproof
@Struct.field(Actionproof) actionproof!: Actionproof
}
@Struct.type('disable')
export class Disable extends Struct {
@Struct.field(Name) chain_name!: Name
}
@Struct.type('enable')
export class Enable extends Struct {
@Struct.field(Name) chain_name!: Name
}
@Struct.type('hpstruct')
export class Hpstruct extends Struct {
@Struct.field(UInt64) id!: UInt64
@Struct.field(Heavyproof) hp!: Heavyproof
}
@Struct.type('inita')
export class Inita extends Struct {
@Struct.field(Name) chain_name!: Name
@Struct.field(Checksum256) chain_id!: Checksum256
@Struct.field(UInt32) return_value_activated!: UInt32
@Struct.field(ProducerSchedule) initial_schedule!: ProducerSchedule
}
@Struct.type('initb')
export class Initb extends Struct {
@Struct.field(Name) chain_name!: Name
@Struct.field(Checksum256) chain_id!: Checksum256
@Struct.field(UInt32) return_value_activated!: UInt32
@Struct.field(Schedulev2) initial_schedule!: Schedulev2
}
@Struct.type('lastproof')
export class Lastproof extends Struct {
@Struct.field(UInt64) id!: UInt64
@Struct.field(UInt32) block_height!: UInt32
@Struct.field(Checksum256) block_merkle_root!: Checksum256
@Struct.field(TimePoint) expiry!: TimePoint
}
@Struct.type('lpstruct')
export class Lpstruct extends Struct {
@Struct.field(UInt64) id!: UInt64
@Struct.field(Lightproof) lp!: Lightproof
}