forked from argotorg/fe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmsg.snap
More file actions
272 lines (272 loc) · 9.36 KB
/
Copy pathmsg.snap
File metadata and controls
272 lines (272 loc) · 9.36 KB
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
---
source: crates/parser/tests/syntax_node.rs
expression: node
input_file: test_files/syntax_node/items/msg.fe
---
Root@0..843
ItemList@0..842
Item@0..842
Msg@0..842
MsgKw@0..3 "msg"
WhiteSpace@3..4 " "
Ident@4..12 "Erc20Msg"
WhiteSpace@12..13 " "
MsgVariantList@13..842
LBrace@13..14 "{"
Newline@14..15 "\n"
WhiteSpace@15..17 " "
Comment@17..70 "// Transfers `amount` ..."
Newline@70..71 "\n"
WhiteSpace@71..73 " "
MsgVariant@73..119
Ident@73..81 "Transfer"
WhiteSpace@81..82 " "
MsgVariantParams@82..111
LBrace@82..83 "{"
WhiteSpace@83..84 " "
RecordFieldDef@84..95
Ident@84..86 "to"
Colon@86..87 ":"
WhiteSpace@87..88 " "
PathType@88..95
Path@88..95
PathSegment@88..95
Ident@88..95 "Address"
Comma@95..96 ","
WhiteSpace@96..97 " "
RecordFieldDef@97..109
Ident@97..103 "amount"
Colon@103..104 ":"
WhiteSpace@104..105 " "
PathType@105..109
Path@105..109
PathSegment@105..109
Ident@105..109 "u256"
WhiteSpace@109..110 " "
RBrace@110..111 "}"
WhiteSpace@111..112 " "
Arrow@112..114 "->"
WhiteSpace@114..115 " "
PathType@115..119
Path@115..119
PathSegment@115..119
Ident@115..119 "bool"
Comma@119..120 ","
Newline@120..121 "\n"
WhiteSpace@121..123 " "
Comment@123..155 "// Returns the balanc ..."
Newline@155..156 "\n"
WhiteSpace@156..158 " "
MsgVariant@158..191
Ident@158..165 "Balance"
WhiteSpace@165..166 " "
MsgVariantParams@166..183
LBrace@166..167 "{"
WhiteSpace@167..168 " "
RecordFieldDef@168..181
Ident@168..172 "addr"
Colon@172..173 ":"
WhiteSpace@173..174 " "
PathType@174..181
Path@174..181
PathSegment@174..181
Ident@174..181 "Address"
WhiteSpace@181..182 " "
RBrace@182..183 "}"
WhiteSpace@183..184 " "
Arrow@184..186 "->"
WhiteSpace@186..187 " "
PathType@187..191
Path@187..191
PathSegment@187..191
Ident@187..191 "u256"
Comma@191..192 ","
Newline@192..193 "\n"
WhiteSpace@193..195 " "
Comment@195..228 "// Returns the total ..."
Newline@228..229 "\n"
WhiteSpace@229..231 " "
MsgVariant@231..250
Ident@231..242 "TotalSupply"
WhiteSpace@242..243 " "
Arrow@243..245 "->"
WhiteSpace@245..246 " "
PathType@246..250
Path@246..250
PathSegment@246..250
Ident@246..250 "u256"
Comma@250..251 ","
Newline@251..252 "\n"
WhiteSpace@252..254 " "
Comment@254..326 "// Returns the remain ..."
Newline@326..327 "\n"
WhiteSpace@327..329 " "
MsgVariant@329..383
Ident@329..338 "Allowance"
WhiteSpace@338..339 " "
MsgVariantParams@339..375
LBrace@339..340 "{"
WhiteSpace@340..341 " "
RecordFieldDef@341..355
Ident@341..346 "owner"
Colon@346..347 ":"
WhiteSpace@347..348 " "
PathType@348..355
Path@348..355
PathSegment@348..355
Ident@348..355 "Address"
Comma@355..356 ","
WhiteSpace@356..357 " "
RecordFieldDef@357..373
Ident@357..364 "spender"
Colon@364..365 ":"
WhiteSpace@365..366 " "
PathType@366..373
Path@366..373
PathSegment@366..373
Ident@366..373 "Address"
WhiteSpace@373..374 " "
RBrace@374..375 "}"
WhiteSpace@375..376 " "
Arrow@376..378 "->"
WhiteSpace@378..379 " "
PathType@379..383
Path@379..383
PathSegment@379..383
Ident@379..383 "u256"
Comma@383..384 ","
Newline@384..385 "\n"
WhiteSpace@385..387 " "
Comment@387..450 "// Approves `spender` ..."
Newline@450..451 "\n"
WhiteSpace@451..453 " "
MsgVariant@453..503
Ident@453..460 "Approve"
WhiteSpace@460..461 " "
MsgVariantParams@461..495
LBrace@461..462 "{"
WhiteSpace@462..463 " "
RecordFieldDef@463..479
Ident@463..470 "spender"
Colon@470..471 ":"
WhiteSpace@471..472 " "
PathType@472..479
Path@472..479
PathSegment@472..479
Ident@472..479 "Address"
Comma@479..480 ","
WhiteSpace@480..481 " "
RecordFieldDef@481..493
Ident@481..487 "amount"
Colon@487..488 ":"
WhiteSpace@488..489 " "
PathType@489..493
Path@489..493
PathSegment@489..493
Ident@489..493 "u256"
WhiteSpace@493..494 " "
RBrace@494..495 "}"
WhiteSpace@495..496 " "
Arrow@496..498 "->"
WhiteSpace@498..499 " "
PathType@499..503
Path@499..503
PathSegment@499..503
Ident@499..503 "bool"
Comma@503..504 ","
Newline@504..505 "\n"
WhiteSpace@505..507 " "
Comment@507..588 "// Transfers `amount` ..."
Newline@588..589 "\n"
WhiteSpace@589..591 " "
MsgVariant@591..656
Ident@591..603 "TransferFrom"
WhiteSpace@603..604 " "
MsgVariantParams@604..648
LBrace@604..605 "{"
WhiteSpace@605..606 " "
RecordFieldDef@606..619
Ident@606..610 "from"
Colon@610..611 ":"
WhiteSpace@611..612 " "
PathType@612..619
Path@612..619
PathSegment@612..619
Ident@612..619 "Address"
Comma@619..620 ","
WhiteSpace@620..621 " "
RecordFieldDef@621..632
Ident@621..623 "to"
Colon@623..624 ":"
WhiteSpace@624..625 " "
PathType@625..632
Path@625..632
PathSegment@625..632
Ident@625..632 "Address"
Comma@632..633 ","
WhiteSpace@633..634 " "
RecordFieldDef@634..646
Ident@634..640 "amount"
Colon@640..641 ":"
WhiteSpace@641..642 " "
PathType@642..646
Path@642..646
PathSegment@642..646
Ident@642..646 "u256"
WhiteSpace@646..647 " "
RBrace@647..648 "}"
WhiteSpace@648..649 " "
Arrow@649..651 "->"
WhiteSpace@651..652 " "
PathType@652..656
Path@652..656
PathSegment@652..656
Ident@652..656 "bool"
Comma@656..657 ","
Newline@657..658 "\n"
WhiteSpace@658..660 " "
Comment@660..697 "// Optional: Returns ..."
Newline@697..698 "\n"
WhiteSpace@698..700 " "
MsgVariant@700..714
Ident@700..704 "Name"
WhiteSpace@704..705 " "
Arrow@705..707 "->"
WhiteSpace@707..708 " "
PathType@708..714
Path@708..714
PathSegment@708..714
Ident@708..714 "string"
Comma@714..715 ","
Newline@715..716 "\n"
WhiteSpace@716..718 " "
Comment@718..757 "// Optional: Returns ..."
Newline@757..758 "\n"
WhiteSpace@758..760 " "
MsgVariant@760..776
Ident@760..766 "Symbol"
WhiteSpace@766..767 " "
Arrow@767..769 "->"
WhiteSpace@769..770 " "
PathType@770..776
Path@770..776
PathSegment@770..776
Ident@770..776 "string"
Comma@776..777 ","
Newline@777..778 "\n"
WhiteSpace@778..780 " "
Comment@780..823 "// Optional: Returns ..."
Newline@823..824 "\n"
WhiteSpace@824..826 " "
MsgVariant@826..840
Ident@826..834 "Decimals"
WhiteSpace@834..835 " "
Arrow@835..837 "->"
WhiteSpace@837..838 " "
PathType@838..840
Path@838..840
PathSegment@838..840
Ident@838..840 "u8"
Newline@840..841 "\n"
RBrace@841..842 "}"
Newline@842..843 "\n"