-
Notifications
You must be signed in to change notification settings - Fork 288
/
starcoin_types.yml
370 lines (370 loc) · 6.65 KB
/
starcoin_types.yml
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
---
AccessPath:
TUPLESTRUCT:
- TYPENAME: AccountAddress
- TYPENAME: DataPath
AccountAddress:
NEWTYPESTRUCT:
TUPLEARRAY:
CONTENT: U8
SIZE: 16
AccountResource:
STRUCT:
- authentication_key:
SEQ: U8
- withdrawal_capability:
OPTION:
TYPENAME: WithdrawCapabilityResource
- key_rotation_capability:
OPTION:
TYPENAME: KeyRotationCapabilityResource
- withdraw_events:
TYPENAME: EventHandle
- deposit_events:
TYPENAME: EventHandle
- accept_token_events:
TYPENAME: EventHandle
- sequence_number: U64
ArgumentABI:
STRUCT:
- name: STR
- type_tag:
TYPENAME: TypeTag
AuthenticationKey:
NEWTYPESTRUCT: BYTES
BlockMetadata:
STRUCT:
- parent_hash:
TYPENAME: HashValue
- timestamp: U64
- author:
TYPENAME: AccountAddress
- author_auth_key:
OPTION:
TYPENAME: AuthenticationKey
- uncles: U64
- number: U64
- chain_id:
TYPENAME: ChainId
- parent_gas_used: U64
- parents_hash:
OPTION:
SEQ:
TYPENAME: HashValue
ChainId:
STRUCT:
- id: U8
ContractEvent:
ENUM:
0:
V0:
NEWTYPE:
TYPENAME: ContractEventV0
ContractEventV0:
STRUCT:
- key:
TYPENAME: EventKey
- sequence_number: U64
- type_tag:
TYPENAME: TypeTag
- event_data: BYTES
DataPath:
ENUM:
0:
Code:
NEWTYPE:
TYPENAME: Identifier
1:
Resource:
NEWTYPE:
TYPENAME: StructTag
DataType:
ENUM:
0:
CODE: UNIT
1:
RESOURCE: UNIT
Ed25519PrivateKey:
NEWTYPESTRUCT: BYTES
Ed25519PublicKey:
NEWTYPESTRUCT: BYTES
Ed25519Signature:
NEWTYPESTRUCT: BYTES
EventHandle:
STRUCT:
- count: U64
- key:
TYPENAME: EventKey
EventKey:
NEWTYPESTRUCT: BYTES
HashValue:
NEWTYPESTRUCT: BYTES
Identifier:
NEWTYPESTRUCT: STR
KeyRotationCapabilityResource:
STRUCT:
- account_address:
TYPENAME: AccountAddress
Module:
STRUCT:
- code: BYTES
ModuleId:
STRUCT:
- address:
TYPENAME: AccountAddress
- name:
TYPENAME: Identifier
MultiEd25519PrivateKey:
NEWTYPESTRUCT: BYTES
MultiEd25519PublicKey:
NEWTYPESTRUCT: BYTES
MultiEd25519Signature:
NEWTYPESTRUCT: BYTES
Package:
STRUCT:
- package_address:
TYPENAME: AccountAddress
- modules:
SEQ:
TYPENAME: Module
- init_script:
OPTION:
TYPENAME: ScriptFunction
RawUserTransaction:
STRUCT:
- sender:
TYPENAME: AccountAddress
- sequence_number: U64
- payload:
TYPENAME: TransactionPayload
- max_gas_amount: U64
- gas_unit_price: U64
- gas_token_code: STR
- expiration_timestamp_secs: U64
- chain_id:
TYPENAME: ChainId
Script:
STRUCT:
- code: BYTES
- ty_args:
SEQ:
TYPENAME: TypeTag
- args:
SEQ: BYTES
ScriptABI:
ENUM:
0:
TransactionScript:
NEWTYPE:
TYPENAME: TransactionScriptABI
1:
ScriptFunction:
NEWTYPE:
TYPENAME: ScriptFunctionABI
ScriptFunction:
STRUCT:
- module:
TYPENAME: ModuleId
- function:
TYPENAME: Identifier
- ty_args:
SEQ:
TYPENAME: TypeTag
- args:
SEQ: BYTES
ScriptFunctionABI:
STRUCT:
- name: STR
- module_name:
TYPENAME: ModuleId
- doc: STR
- ty_args:
SEQ:
TYPENAME: TypeArgumentABI
- args:
SEQ:
TYPENAME: ArgumentABI
SignedMessage:
STRUCT:
- account:
TYPENAME: AccountAddress
- message:
TYPENAME: SigningMessage
- authenticator:
TYPENAME: TransactionAuthenticator
- chain_id:
TYPENAME: ChainId
SignedUserTransaction:
STRUCT:
- raw_txn:
TYPENAME: RawUserTransaction
- authenticator:
TYPENAME: TransactionAuthenticator
SigningMessage:
NEWTYPESTRUCT:
SEQ: U8
StateKey:
ENUM:
0:
AccessPath:
NEWTYPE:
TYPENAME: AccessPath
1:
TableItem:
NEWTYPE:
TYPENAME: TableItem
StructTag:
STRUCT:
- address:
TYPENAME: AccountAddress
- module:
TYPENAME: Identifier
- name:
TYPENAME: Identifier
- type_args:
SEQ:
TYPENAME: TypeTag
TableHandle:
NEWTYPESTRUCT:
TYPENAME: AccountAddress
TableItem:
STRUCT:
- handle:
TYPENAME: TableHandle
- key: BYTES
Transaction:
ENUM:
0:
UserTransaction:
NEWTYPE:
TYPENAME: SignedUserTransaction
1:
BlockMetadata:
NEWTYPE:
TYPENAME: BlockMetadata
TransactionArgument:
ENUM:
0:
U8:
NEWTYPE: U8
1:
U64:
NEWTYPE: U64
2:
U128:
NEWTYPE: U128
3:
Address:
NEWTYPE:
TYPENAME: AccountAddress
4:
U8Vector:
NEWTYPE: BYTES
5:
Bool:
NEWTYPE: BOOL
6:
U16:
NEWTYPE: U16
7:
U32:
NEWTYPE: U32
8:
U256:
NEWTYPE:
TUPLEARRAY:
CONTENT: U8
SIZE: 32
TransactionAuthenticator:
ENUM:
0:
Ed25519:
STRUCT:
- public_key:
TYPENAME: Ed25519PublicKey
- signature:
TYPENAME: Ed25519Signature
1:
MultiEd25519:
STRUCT:
- public_key:
TYPENAME: MultiEd25519PublicKey
- signature:
TYPENAME: MultiEd25519Signature
TransactionPayload:
ENUM:
0:
Script:
NEWTYPE:
TYPENAME: Script
1:
Package:
NEWTYPE:
TYPENAME: Package
2:
ScriptFunction:
NEWTYPE:
TYPENAME: ScriptFunction
TransactionScriptABI:
STRUCT:
- name: STR
- doc: STR
- code: BYTES
- ty_args:
SEQ:
TYPENAME: TypeArgumentABI
- args:
SEQ:
TYPENAME: ArgumentABI
TypeArgumentABI:
STRUCT:
- name: STR
TypeTag:
ENUM:
0:
bool: UNIT
1:
u8: UNIT
2:
u64: UNIT
3:
u128: UNIT
4:
address: UNIT
5:
signer: UNIT
6:
vector:
NEWTYPE:
TYPENAME: TypeTag
7:
struct:
NEWTYPE:
TYPENAME: StructTag
8:
u16: UNIT
9:
u32: UNIT
10:
u256: UNIT
WithdrawCapabilityResource:
STRUCT:
- account_address:
TYPENAME: AccountAddress
WriteOp:
ENUM:
0:
Deletion: UNIT
1:
Value:
NEWTYPE: BYTES
WriteSet:
NEWTYPESTRUCT:
TYPENAME: WriteSetMut
WriteSetMut:
STRUCT:
- write_set:
SEQ:
TUPLE:
- TYPENAME: StateKey
- TYPENAME: WriteOp