-
Notifications
You must be signed in to change notification settings - Fork 4
/
ipldsch_types.go
407 lines (361 loc) · 12.2 KB
/
ipldsch_types.go
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
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
package dageth
// Code generated by go-ipld-prime gengo. DO NOT EDIT.
import (
ipld "github.com/ipld/go-ipld-prime"
)
var _ ipld.Node = nil // suppress errors when this dependency is not referenced
// Type is a struct embeding a NodePrototype/Type for every Node implementation in this package.
// One of its major uses is to start the construction of a value.
// You can use it like this:
//
// dageth.Type.YourTypeName.NewBuilder().BeginMap() //...
//
// and:
//
// dageth.Type.OtherTypeName.NewBuilder().AssignString("x") // ...
var Type typeSlab
type typeSlab struct {
AccessElement _AccessElement__Prototype
AccessElement__Repr _AccessElement__ReprPrototype
AccessList _AccessList__Prototype
AccessList__Repr _AccessList__ReprPrototype
Account _Account__Prototype
Account__Repr _Account__ReprPrototype
Address _Address__Prototype
Address__Repr _Address__ReprPrototype
Balance _Balance__Prototype
Balance__Repr _Balance__ReprPrototype
BigInt _BigInt__Prototype
BigInt__Repr _BigInt__ReprPrototype
Block _Block__Prototype
Block__Repr _Block__ReprPrototype
Bloom _Bloom__Prototype
Bloom__Repr _Bloom__ReprPrototype
Bool _Bool__Prototype
Bool__Repr _Bool__ReprPrototype
ByteCode _ByteCode__Prototype
ByteCode__Repr _ByteCode__ReprPrototype
Bytes _Bytes__Prototype
Bytes__Repr _Bytes__ReprPrototype
Child _Child__Prototype
Child__Repr _Child__ReprPrototype
Frame _Frame__Prototype
Frame__Repr _Frame__ReprPrototype
FrameList _FrameList__Prototype
FrameList__Repr _FrameList__ReprPrototype
Hash _Hash__Prototype
Hash__Repr _Hash__ReprPrototype
Header _Header__Prototype
Header__Repr _Header__ReprPrototype
Link _Link__Prototype
Link__Repr _Link__ReprPrototype
Log _Log__Prototype
Log__Repr _Log__ReprPrototype
Logs _Logs__Prototype
Logs__Repr _Logs__ReprPrototype
OpCode _OpCode__Prototype
OpCode__Repr _OpCode__ReprPrototype
Receipt _Receipt__Prototype
Receipt__Repr _Receipt__ReprPrototype
Receipts _Receipts__Prototype
Receipts__Repr _Receipts__ReprPrototype
StorageKeys _StorageKeys__Prototype
StorageKeys__Repr _StorageKeys__ReprPrototype
String _String__Prototype
String__Repr _String__ReprPrototype
Time _Time__Prototype
Time__Repr _Time__ReprPrototype
Topics _Topics__Prototype
Topics__Repr _Topics__ReprPrototype
Transaction _Transaction__Prototype
Transaction__Repr _Transaction__ReprPrototype
Transactions _Transactions__Prototype
Transactions__Repr _Transactions__ReprPrototype
TrieBranchNode _TrieBranchNode__Prototype
TrieBranchNode__Repr _TrieBranchNode__ReprPrototype
TrieExtensionNode _TrieExtensionNode__Prototype
TrieExtensionNode__Repr _TrieExtensionNode__ReprPrototype
TrieLeafNode _TrieLeafNode__Prototype
TrieLeafNode__Repr _TrieLeafNode__ReprPrototype
TrieNode _TrieNode__Prototype
TrieNode__Repr _TrieNode__ReprPrototype
TxCIDList _TxCIDList__Prototype
TxCIDList__Repr _TxCIDList__ReprPrototype
TxTrace _TxTrace__Prototype
TxTrace__Repr _TxTrace__ReprPrototype
TxType _TxType__Prototype
TxType__Repr _TxType__ReprPrototype
Uint _Uint__Prototype
Uint__Repr _Uint__ReprPrototype
Uncles _Uncles__Prototype
Uncles__Repr _Uncles__ReprPrototype
Value _Value__Prototype
Value__Repr _Value__ReprPrototype
}
// --- type definitions follow ---
// AccessElement matches the IPLD Schema type "AccessElement". It has Struct type-kind, and may be interrogated like map kind.
type AccessElement = *_AccessElement
type _AccessElement struct {
Address _Address
StorageKeys _StorageKeys
}
// AccessList matches the IPLD Schema type "AccessList". It has list kind.
type AccessList = *_AccessList
type _AccessList struct {
x []_AccessElement
}
// Account matches the IPLD Schema type "Account". It has Struct type-kind, and may be interrogated like map kind.
type Account = *_Account
type _Account struct {
Nonce _Uint
Balance _Balance
StorageRootCID _Link
CodeCID _Link
}
// Address matches the IPLD Schema type "Address". It has bytes kind.
type Address = *_Address
type _Address struct{ x []byte }
// Balance matches the IPLD Schema type "Balance". It has bytes kind.
type Balance = *_Balance
type _Balance struct{ x []byte }
// BigInt matches the IPLD Schema type "BigInt". It has bytes kind.
type BigInt = *_BigInt
type _BigInt struct{ x []byte }
// Block matches the IPLD Schema type "Block". It has Struct type-kind, and may be interrogated like map kind.
type Block = *_Block
type _Block struct {
Header _Link
Transactions _Link
Receipts _Link
}
// Bloom matches the IPLD Schema type "Bloom". It has bytes kind.
type Bloom = *_Bloom
type _Bloom struct{ x []byte }
// Bool matches the IPLD Schema type "Bool". It has bool kind.
type Bool = *_Bool
type _Bool struct{ x bool }
// ByteCode matches the IPLD Schema type "ByteCode". It has bytes kind.
type ByteCode = *_ByteCode
type _ByteCode struct{ x []byte }
// Bytes matches the IPLD Schema type "Bytes". It has bytes kind.
type Bytes = *_Bytes
type _Bytes struct{ x []byte }
// Child matches the IPLD Schema type "Child".
// Child has Union typekind, which means its data model behaviors are that of a map kind.
type Child = *_Child
type _Child struct {
tag uint
x1 _Link
x2 _TrieNode
}
type _Child__iface interface {
_Child__member()
}
func (_Link) _Child__member() {}
func (_TrieNode) _Child__member() {}
// Frame matches the IPLD Schema type "Frame". It has Struct type-kind, and may be interrogated like map kind.
type Frame = *_Frame
type _Frame struct {
Op _OpCode
From _Address
To _Address
Input _Bytes
Output _Bytes
Gas _Uint
Cost _Uint
Value _BigInt
}
// FrameList matches the IPLD Schema type "FrameList". It has list kind.
type FrameList = *_FrameList
type _FrameList struct {
x []_Frame
}
// Hash matches the IPLD Schema type "Hash". It has bytes kind.
type Hash = *_Hash
type _Hash struct{ x []byte }
// Header matches the IPLD Schema type "Header". It has Struct type-kind, and may be interrogated like map kind.
type Header = *_Header
type _Header struct {
ParentCID _Link
UnclesCID _Link
Coinbase _Address
StateRootCID _Link
TxRootCID _Link
RctRootCID _Link
Bloom _Bloom
Difficulty _BigInt
Number _BigInt
GasLimit _Uint
GasUsed _Uint
Time _Time
Extra _Bytes
MixDigest _Hash
Nonce _Uint
BaseFee _BigInt__Maybe
}
// Link matches the IPLD Schema type "Link". It has link kind.
type Link = *_Link
type _Link struct{ x ipld.Link }
// Log matches the IPLD Schema type "Log". It has Struct type-kind, and may be interrogated like map kind.
type Log = *_Log
type _Log struct {
Address _Address
Topics _Topics
Data _Bytes
}
// Logs matches the IPLD Schema type "Logs". It has list kind.
type Logs = *_Logs
type _Logs struct {
x []_Log
}
// OpCode matches the IPLD Schema type "OpCode". It has bytes kind.
type OpCode = *_OpCode
type _OpCode struct{ x []byte }
// Receipt matches the IPLD Schema type "Receipt". It has Struct type-kind, and may be interrogated like map kind.
type Receipt = *_Receipt
type _Receipt struct {
TxType _TxType
PostState _Bytes__Maybe
Status _Uint__Maybe
CumulativeGasUsed _Uint
Bloom _Bloom
Logs _Logs
LogRootCID _Link
}
// Receipts matches the IPLD Schema type "Receipts". It has list kind.
type Receipts = *_Receipts
type _Receipts struct {
x []_Receipt
}
// StorageKeys matches the IPLD Schema type "StorageKeys". It has list kind.
type StorageKeys = *_StorageKeys
type _StorageKeys struct {
x []_Hash
}
// String matches the IPLD Schema type "String". It has string kind.
type String = *_String
type _String struct{ x string }
// Time matches the IPLD Schema type "Time". It has bytes kind.
type Time = *_Time
type _Time struct{ x []byte }
// Topics matches the IPLD Schema type "Topics". It has list kind.
type Topics = *_Topics
type _Topics struct {
x []_Hash
}
// Transaction matches the IPLD Schema type "Transaction". It has Struct type-kind, and may be interrogated like map kind.
type Transaction = *_Transaction
type _Transaction struct {
TxType _TxType
ChainID _BigInt__Maybe
AccountNonce _Uint
GasPrice _BigInt__Maybe
GasTipCap _BigInt__Maybe
GasFeeCap _BigInt__Maybe
GasLimit _Uint
Recipient _Address__Maybe
Amount _BigInt
Data _Bytes
AccessList _AccessList__Maybe
V _BigInt
R _BigInt
S _BigInt
}
// Transactions matches the IPLD Schema type "Transactions". It has list kind.
type Transactions = *_Transactions
type _Transactions struct {
x []_Transaction
}
// TrieBranchNode matches the IPLD Schema type "TrieBranchNode". It has Struct type-kind, and may be interrogated like map kind.
type TrieBranchNode = *_TrieBranchNode
type _TrieBranchNode struct {
Child0 _Child__Maybe
Child1 _Child__Maybe
Child2 _Child__Maybe
Child3 _Child__Maybe
Child4 _Child__Maybe
Child5 _Child__Maybe
Child6 _Child__Maybe
Child7 _Child__Maybe
Child8 _Child__Maybe
Child9 _Child__Maybe
ChildA _Child__Maybe
ChildB _Child__Maybe
ChildC _Child__Maybe
ChildD _Child__Maybe
ChildE _Child__Maybe
ChildF _Child__Maybe
Value _Value__Maybe
}
// TrieExtensionNode matches the IPLD Schema type "TrieExtensionNode". It has Struct type-kind, and may be interrogated like map kind.
type TrieExtensionNode = *_TrieExtensionNode
type _TrieExtensionNode struct {
PartialPath _Bytes
Child _Link
}
// TrieLeafNode matches the IPLD Schema type "TrieLeafNode". It has Struct type-kind, and may be interrogated like map kind.
type TrieLeafNode = *_TrieLeafNode
type _TrieLeafNode struct {
PartialPath _Bytes
Value _Value
}
// TrieNode matches the IPLD Schema type "TrieNode".
// TrieNode has Union typekind, which means its data model behaviors are that of a map kind.
type TrieNode = *_TrieNode
type _TrieNode struct {
tag uint
x1 _TrieBranchNode
x2 _TrieExtensionNode
x3 _TrieLeafNode
}
type _TrieNode__iface interface {
_TrieNode__member()
}
func (_TrieBranchNode) _TrieNode__member() {}
func (_TrieExtensionNode) _TrieNode__member() {}
func (_TrieLeafNode) _TrieNode__member() {}
// TxCIDList matches the IPLD Schema type "TxCIDList". It has list kind.
type TxCIDList = *_TxCIDList
type _TxCIDList struct {
x []_Link
}
// TxTrace matches the IPLD Schema type "TxTrace". It has Struct type-kind, and may be interrogated like map kind.
type TxTrace = *_TxTrace
type _TxTrace struct {
TxCIDs _TxCIDList
StateRootCID _Link
Result _Bytes
Frames _FrameList
Gas _Uint
Failed _Bool
}
// TxType matches the IPLD Schema type "TxType". It has bytes kind.
type TxType = *_TxType
type _TxType struct{ x []byte }
// Uint matches the IPLD Schema type "Uint". It has bytes kind.
type Uint = *_Uint
type _Uint struct{ x []byte }
// Uncles matches the IPLD Schema type "Uncles". It has list kind.
type Uncles = *_Uncles
type _Uncles struct {
x []_Header
}
// Value matches the IPLD Schema type "Value".
// Value has Union typekind, which means its data model behaviors are that of a map kind.
type Value = *_Value
type _Value struct {
tag uint
x1 _Transaction
x2 _Receipt
x3 _Account
x4 _Bytes
x5 _Log
}
type _Value__iface interface {
_Value__member()
}
func (_Transaction) _Value__member() {}
func (_Receipt) _Value__member() {}
func (_Account) _Value__member() {}
func (_Bytes) _Value__member() {}
func (_Log) _Value__member() {}