@sentio/cli 2.18.7 → 2.18.8-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/cli",
3
- "version": "2.18.7",
3
+ "version": "2.18.8-rc.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -15,6 +15,7 @@
15
15
  ],
16
16
  "types": "module",
17
17
  "dependencies": {
18
+ "@sentio/graph-cli": "^0.75.0",
18
19
  "tsup": "npm:@sentio/tsup@^6.7.2",
19
20
  "tsx": "^4.15.2"
20
21
  },
@@ -32,7 +33,7 @@
32
33
  "scripts": {
33
34
  "build": "pnpm bundle",
34
35
  "postbuild": "pnpm install",
35
- "bundle": "esbuild --platform=node --format=esm --bundle src/index.ts --outfile=lib/index.js --sourcemap --inject:src/cjs-shim.ts --external:@sentio/sdk --external:tsup",
36
+ "bundle": "esbuild --platform=node --format=esm --bundle src/index.ts --outfile=lib/index.js --sourcemap --inject:src/cjs-shim.ts --external:@sentio/sdk",
36
37
  "cli": "tsx src/index.ts",
37
38
  "compile": "tsc",
38
39
  "test": "glob -c 'tsx --test' '**/*.test.ts'"
@@ -46,7 +46,7 @@ export async function runCreate(argv: string[]) {
46
46
  name: 'chain-type',
47
47
  alias: 'c',
48
48
  description:
49
- 'The type of project you want to create, can be eth, aptos, solana, raw (if you want to start from scratch and support multiple types of chains)',
49
+ 'The type of project you want to create, can be eth, aptos, fuel, solana, sui, raw (if you want to start from scratch and support multiple types of chains)',
50
50
  type: String,
51
51
  defaultValue: 'eth'
52
52
  }
@@ -77,6 +77,8 @@ export async function runCreate(argv: string[]) {
77
77
  break
78
78
  case 'solana':
79
79
  break
80
+ case 'sui':
81
+ break
80
82
  case 'fuel':
81
83
  break
82
84
  default:
@@ -0,0 +1,265 @@
1
+ [
2
+ {
3
+ "fileFormatVersion": 6,
4
+ "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
+ }
30
+ }
31
+ },
32
+ {
33
+ "name": "for",
34
+ "type": {
35
+ "Struct": {
36
+ "address": "0x2",
37
+ "module": "object",
38
+ "name": "ID",
39
+ "typeArguments": []
40
+ }
41
+ }
42
+ }
43
+ ]
44
+ },
45
+ "Oracle": {
46
+ "abilities": {
47
+ "abilities": ["Key"]
48
+ },
49
+ "typeParameters": [
50
+ {
51
+ "constraints": {
52
+ "abilities": []
53
+ },
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": []
66
+ }
67
+ }
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"]
94
+ },
95
+ "typeParameters": [],
96
+ "fields": [
97
+ {
98
+ "name": "token",
99
+ "type": {
100
+ "Struct": {
101
+ "address": "0x1",
102
+ "module": "ascii",
103
+ "name": "String",
104
+ "typeArguments": []
105
+ }
106
+ }
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": [
140
+ {
141
+ "TypeParameter": 0
142
+ }
143
+ ]
144
+ }
145
+ }
146
+ },
147
+ "Address",
148
+ {
149
+ "MutableReference": {
150
+ "Struct": {
151
+ "address": "0x2",
152
+ "module": "tx_context",
153
+ "name": "TxContext",
154
+ "typeArguments": []
155
+ }
156
+ }
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": [
177
+ {
178
+ "TypeParameter": 0
179
+ }
180
+ ]
181
+ }
182
+ }
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": []
204
+ }
205
+ }
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": [
226
+ {
227
+ "TypeParameter": 0
228
+ }
229
+ ]
230
+ }
231
+ }
232
+ },
233
+ {
234
+ "Reference": {
235
+ "Struct": {
236
+ "address": "0x1e2b124f746a339b3cf99b9f969393a96594519aafb1d06517aacfeeae20e7a5",
237
+ "module": "oracle",
238
+ "name": "Key",
239
+ "typeArguments": [
240
+ {
241
+ "TypeParameter": 0
242
+ }
243
+ ]
244
+ }
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": []
257
+ }
258
+ }
259
+ }
260
+ ],
261
+ "return": []
262
+ }
263
+ }
264
+ }
265
+ ]