@sentio/cli 3.8.0 → 3.9.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,265 +1,341 @@
1
1
  [
2
2
  {
3
- "fileFormatVersion": 6,
4
3
  "address": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5",
5
- "name": "oracle",
6
- "friends": [],
7
- "structs": {
8
- "Key": {
9
- "abilities": {
10
- "abilities": ["Key"]
11
- },
12
- "typeParameters": [
13
- {
14
- "constraints": {
15
- "abilities": []
16
- },
17
- "isPhantom": true
18
- }
19
- ],
20
- "fields": [
21
- {
22
- "name": "id",
23
- "type": {
24
- "Struct": {
25
- "address": "0x2",
26
- "module": "object",
27
- "name": "UID",
28
- "typeArguments": []
29
- }
4
+ "module": {
5
+ "name": "oracle",
6
+ "datatypes": [
7
+ {
8
+ "name": "Key",
9
+ "kind": 1,
10
+ "abilities": [
11
+ 4
12
+ ],
13
+ "typeParameters": [
14
+ {
15
+ "constraints": []
30
16
  }
31
- },
32
- {
33
- "name": "for",
34
- "type": {
35
- "Struct": {
36
- "address": "0x2",
37
- "module": "object",
38
- "name": "ID",
39
- "typeArguments": []
17
+ ],
18
+ "fields": [
19
+ {
20
+ "name": "id",
21
+ "position": 0,
22
+ "type": {
23
+ "type": 10,
24
+ "typeName": "0x2::object::UID",
25
+ "typeParameterInstantiation": []
26
+ }
27
+ },
28
+ {
29
+ "name": "for",
30
+ "position": 1,
31
+ "type": {
32
+ "type": 10,
33
+ "typeName": "0x2::object::ID",
34
+ "typeParameterInstantiation": []
40
35
  }
41
36
  }
42
- }
43
- ]
44
- },
45
- "Oracle": {
46
- "abilities": {
47
- "abilities": ["Key"]
37
+ ],
38
+ "variants": []
48
39
  },
49
- "typeParameters": [
50
- {
51
- "constraints": {
52
- "abilities": []
40
+ {
41
+ "name": "Oracle",
42
+ "kind": 1,
43
+ "abilities": [
44
+ 4
45
+ ],
46
+ "typeParameters": [
47
+ {
48
+ "constraints": []
49
+ }
50
+ ],
51
+ "fields": [
52
+ {
53
+ "name": "id",
54
+ "position": 0,
55
+ "type": {
56
+ "type": 10,
57
+ "typeName": "0x2::object::UID",
58
+ "typeParameterInstantiation": []
59
+ }
60
+ },
61
+ {
62
+ "name": "decimal",
63
+ "position": 1,
64
+ "type": {
65
+ "type": 6,
66
+ "typeParameterInstantiation": []
67
+ }
68
+ },
69
+ {
70
+ "name": "price",
71
+ "position": 2,
72
+ "type": {
73
+ "type": 6,
74
+ "typeParameterInstantiation": []
75
+ }
76
+ },
77
+ {
78
+ "name": "twap_price_1h",
79
+ "position": 3,
80
+ "type": {
81
+ "type": 6,
82
+ "typeParameterInstantiation": []
83
+ }
53
84
  },
54
- "isPhantom": true
55
- }
56
- ],
57
- "fields": [
58
- {
59
- "name": "id",
60
- "type": {
61
- "Struct": {
62
- "address": "0x2",
63
- "module": "object",
64
- "name": "UID",
65
- "typeArguments": []
85
+ {
86
+ "name": "ts_ms",
87
+ "position": 4,
88
+ "type": {
89
+ "type": 6,
90
+ "typeParameterInstantiation": []
91
+ }
92
+ },
93
+ {
94
+ "name": "epoch",
95
+ "position": 5,
96
+ "type": {
97
+ "type": 6,
98
+ "typeParameterInstantiation": []
66
99
  }
67
100
  }
68
- },
69
- {
70
- "name": "decimal",
71
- "type": "U64"
72
- },
73
- {
74
- "name": "price",
75
- "type": "U64"
76
- },
77
- {
78
- "name": "twap_price_1h",
79
- "type": "U64"
80
- },
81
- {
82
- "name": "ts_ms",
83
- "type": "U64"
84
- },
85
- {
86
- "name": "epoch",
87
- "type": "U64"
88
- }
89
- ]
90
- },
91
- "PriceEvent": {
92
- "abilities": {
93
- "abilities": ["Copy", "Drop"]
101
+ ],
102
+ "variants": []
94
103
  },
95
- "typeParameters": [],
96
- "fields": [
97
- {
98
- "name": "token",
99
- "type": {
100
- "Struct": {
101
- "address": "0x1",
102
- "module": "ascii",
103
- "name": "String",
104
- "typeArguments": []
104
+ {
105
+ "name": "PriceEvent",
106
+ "kind": 1,
107
+ "abilities": [
108
+ 1,
109
+ 2
110
+ ],
111
+ "typeParameters": [],
112
+ "fields": [
113
+ {
114
+ "name": "token",
115
+ "position": 0,
116
+ "type": {
117
+ "type": 10,
118
+ "typeName": "0x1::ascii::String",
119
+ "typeParameterInstantiation": []
120
+ }
121
+ },
122
+ {
123
+ "name": "price",
124
+ "position": 1,
125
+ "type": {
126
+ "type": 6,
127
+ "typeParameterInstantiation": []
105
128
  }
129
+ },
130
+ {
131
+ "name": "ts_ms",
132
+ "position": 2,
133
+ "type": {
134
+ "type": 6,
135
+ "typeParameterInstantiation": []
136
+ }
137
+ },
138
+ {
139
+ "name": "epoch",
140
+ "position": 3,
141
+ "type": {
142
+ "type": 6,
143
+ "typeParameterInstantiation": []
144
+ }
145
+ }
146
+ ],
147
+ "variants": []
148
+ }
149
+ ],
150
+ "functions": [
151
+ {
152
+ "name": "copy_key",
153
+ "visibility": 2,
154
+ "isEntry": true,
155
+ "typeParameters": [
156
+ {
157
+ "constraints": []
106
158
  }
107
- },
108
- {
109
- "name": "price",
110
- "type": "U64"
111
- },
112
- {
113
- "name": "ts_ms",
114
- "type": "U64"
115
- },
116
- {
117
- "name": "epoch",
118
- "type": "U64"
119
- }
120
- ]
121
- }
122
- },
123
- "exposedFunctions": {
124
- "copy_key": {
125
- "visibility": "Public",
126
- "isEntry": true,
127
- "typeParameters": [
128
- {
129
- "abilities": []
130
- }
131
- ],
132
- "parameters": [
133
- {
134
- "Reference": {
135
- "Struct": {
136
- "address": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5",
137
- "module": "oracle",
138
- "name": "Key",
139
- "typeArguments": [
159
+ ],
160
+ "parameters": [
161
+ {
162
+ "reference": 1,
163
+ "body": {
164
+ "type": 10,
165
+ "typeName": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Key",
166
+ "typeParameterInstantiation": [
140
167
  {
141
- "TypeParameter": 0
168
+ "type": 11,
169
+ "typeParameter": 0,
170
+ "typeParameterInstantiation": []
142
171
  }
143
172
  ]
144
173
  }
145
- }
146
- },
147
- "Address",
148
- {
149
- "MutableReference": {
150
- "Struct": {
151
- "address": "0x2",
152
- "module": "tx_context",
153
- "name": "TxContext",
154
- "typeArguments": []
174
+ },
175
+ {
176
+ "body": {
177
+ "type": 1,
178
+ "typeParameterInstantiation": []
179
+ }
180
+ },
181
+ {
182
+ "reference": 2,
183
+ "body": {
184
+ "type": 10,
185
+ "typeName": "0x2::tx_context::TxContext",
186
+ "typeParameterInstantiation": []
155
187
  }
156
188
  }
157
- }
158
- ],
159
- "return": []
160
- },
161
- "get_oracle": {
162
- "visibility": "Public",
163
- "isEntry": false,
164
- "typeParameters": [
165
- {
166
- "abilities": []
167
- }
168
- ],
169
- "parameters": [
170
- {
171
- "Reference": {
172
- "Struct": {
173
- "address": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5",
174
- "module": "oracle",
175
- "name": "Oracle",
176
- "typeArguments": [
189
+ ],
190
+ "returns": []
191
+ },
192
+ {
193
+ "name": "get_oracle",
194
+ "visibility": 2,
195
+ "isEntry": false,
196
+ "typeParameters": [
197
+ {
198
+ "constraints": []
199
+ }
200
+ ],
201
+ "parameters": [
202
+ {
203
+ "reference": 1,
204
+ "body": {
205
+ "type": 10,
206
+ "typeName": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Oracle",
207
+ "typeParameterInstantiation": [
177
208
  {
178
- "TypeParameter": 0
209
+ "type": 11,
210
+ "typeParameter": 0,
211
+ "typeParameterInstantiation": []
179
212
  }
180
213
  ]
181
214
  }
182
215
  }
183
- }
184
- ],
185
- "return": ["U64", "U64", "U64", "U64"]
186
- },
187
- "new_oracle": {
188
- "visibility": "Public",
189
- "isEntry": true,
190
- "typeParameters": [
191
- {
192
- "abilities": []
193
- }
194
- ],
195
- "parameters": [
196
- "U64",
197
- {
198
- "MutableReference": {
199
- "Struct": {
200
- "address": "0x2",
201
- "module": "tx_context",
202
- "name": "TxContext",
203
- "typeArguments": []
216
+ ],
217
+ "returns": [
218
+ {
219
+ "body": {
220
+ "type": 6,
221
+ "typeParameterInstantiation": []
222
+ }
223
+ },
224
+ {
225
+ "body": {
226
+ "type": 6,
227
+ "typeParameterInstantiation": []
228
+ }
229
+ },
230
+ {
231
+ "body": {
232
+ "type": 6,
233
+ "typeParameterInstantiation": []
234
+ }
235
+ },
236
+ {
237
+ "body": {
238
+ "type": 6,
239
+ "typeParameterInstantiation": []
240
+ }
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "name": "new_oracle",
246
+ "visibility": 2,
247
+ "isEntry": true,
248
+ "typeParameters": [
249
+ {
250
+ "constraints": []
251
+ }
252
+ ],
253
+ "parameters": [
254
+ {
255
+ "body": {
256
+ "type": 6,
257
+ "typeParameterInstantiation": []
258
+ }
259
+ },
260
+ {
261
+ "reference": 2,
262
+ "body": {
263
+ "type": 10,
264
+ "typeName": "0x2::tx_context::TxContext",
265
+ "typeParameterInstantiation": []
204
266
  }
205
267
  }
206
- }
207
- ],
208
- "return": []
209
- },
210
- "update": {
211
- "visibility": "Public",
212
- "isEntry": true,
213
- "typeParameters": [
214
- {
215
- "abilities": []
216
- }
217
- ],
218
- "parameters": [
219
- {
220
- "MutableReference": {
221
- "Struct": {
222
- "address": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5",
223
- "module": "oracle",
224
- "name": "Oracle",
225
- "typeArguments": [
268
+ ],
269
+ "returns": []
270
+ },
271
+ {
272
+ "name": "update",
273
+ "visibility": 2,
274
+ "isEntry": true,
275
+ "typeParameters": [
276
+ {
277
+ "constraints": []
278
+ }
279
+ ],
280
+ "parameters": [
281
+ {
282
+ "reference": 2,
283
+ "body": {
284
+ "type": 10,
285
+ "typeName": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Oracle",
286
+ "typeParameterInstantiation": [
226
287
  {
227
- "TypeParameter": 0
288
+ "type": 11,
289
+ "typeParameter": 0,
290
+ "typeParameterInstantiation": []
228
291
  }
229
292
  ]
230
293
  }
231
- }
232
- },
233
- {
234
- "Reference": {
235
- "Struct": {
236
- "address": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5",
237
- "module": "oracle",
238
- "name": "Key",
239
- "typeArguments": [
294
+ },
295
+ {
296
+ "reference": 1,
297
+ "body": {
298
+ "type": 10,
299
+ "typeName": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5::oracle::Key",
300
+ "typeParameterInstantiation": [
240
301
  {
241
- "TypeParameter": 0
302
+ "type": 11,
303
+ "typeParameter": 0,
304
+ "typeParameterInstantiation": []
242
305
  }
243
306
  ]
244
307
  }
245
- }
246
- },
247
- "U64",
248
- "U64",
249
- "U64",
250
- {
251
- "MutableReference": {
252
- "Struct": {
253
- "address": "0x2",
254
- "module": "tx_context",
255
- "name": "TxContext",
256
- "typeArguments": []
308
+ },
309
+ {
310
+ "body": {
311
+ "type": 6,
312
+ "typeParameterInstantiation": []
313
+ }
314
+ },
315
+ {
316
+ "body": {
317
+ "type": 6,
318
+ "typeParameterInstantiation": []
319
+ }
320
+ },
321
+ {
322
+ "body": {
323
+ "type": 6,
324
+ "typeParameterInstantiation": []
325
+ }
326
+ },
327
+ {
328
+ "reference": 2,
329
+ "body": {
330
+ "type": 10,
331
+ "typeName": "0x2::tx_context::TxContext",
332
+ "typeParameterInstantiation": []
257
333
  }
258
334
  }
259
- }
260
- ],
261
- "return": []
262
- }
335
+ ],
336
+ "returns": []
337
+ }
338
+ ]
263
339
  }
264
340
  }
265
- ]
341
+ ]