@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.
- package/lib/index.js +68167 -43227
- package/package.json +12 -5
- package/src/abi.ts +135 -2
- package/templates/aptos/package.json +1 -1
- package/templates/aptos/tsconfig.json +2 -1
- package/templates/eth/package.json +1 -1
- package/templates/fuel/package.json +1 -1
- package/templates/iota/package.json +1 -1
- package/templates/iota/tsconfig.json +2 -1
- package/templates/raw/package.json +1 -1
- package/templates/solana/package.json +1 -1
- package/templates/sui/abis/sui/testnet/0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5.json +303 -227
- package/templates/sui/abis/sui/testnet/0xebaa2ad3eacc230f309cd933958cc52684df0a41ae7ac214d186b80f830867d2.json +12844 -10000
- package/templates/sui/package.json +1 -1
- package/templates/sui/src/processor.ts +1 -1
- package/templates/sui/tsconfig.json +2 -1
- package/templates/aptos/src/processor.test.ts +0 -16
- package/templates/eth/src/processor.test.ts +0 -30
- package/templates/fuel/src/processor.test.ts +0 -16
- package/templates/iota/src/processor.test.ts +0 -16
- package/templates/raw/src/processor.test.ts +0 -16
- package/templates/solana/src/processor.test.ts +0 -16
- package/templates/sui/src/processor.test.ts +0 -16
|
@@ -1,265 +1,341 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"fileFormatVersion": 6,
|
|
4
3
|
"address": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
"
|
|
168
|
+
"type": 11,
|
|
169
|
+
"typeParameter": 0,
|
|
170
|
+
"typeParameterInstantiation": []
|
|
142
171
|
}
|
|
143
172
|
]
|
|
144
173
|
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
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
|
-
"
|
|
209
|
+
"type": 11,
|
|
210
|
+
"typeParameter": 0,
|
|
211
|
+
"typeParameterInstantiation": []
|
|
179
212
|
}
|
|
180
213
|
]
|
|
181
214
|
}
|
|
182
215
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
"
|
|
222
|
-
"
|
|
223
|
-
"
|
|
224
|
-
"
|
|
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
|
-
"
|
|
288
|
+
"type": 11,
|
|
289
|
+
"typeParameter": 0,
|
|
290
|
+
"typeParameterInstantiation": []
|
|
228
291
|
}
|
|
229
292
|
]
|
|
230
293
|
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
"
|
|
237
|
-
"
|
|
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
|
-
"
|
|
302
|
+
"type": 11,
|
|
303
|
+
"typeParameter": 0,
|
|
304
|
+
"typeParameterInstantiation": []
|
|
242
305
|
}
|
|
243
306
|
]
|
|
244
307
|
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
-
|
|
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
|
-
|
|
262
|
-
|
|
335
|
+
],
|
|
336
|
+
"returns": []
|
|
337
|
+
}
|
|
338
|
+
]
|
|
263
339
|
}
|
|
264
340
|
}
|
|
265
|
-
]
|
|
341
|
+
]
|