@fastxyz/cli 1.0.0 → 1.0.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/README.md +368 -8
- package/dist/{app-IJ6QEQ2I.js → app-PZWIJK2U.js} +1 -1
- package/dist/{chunk-MIRQRJSD.js → chunk-ECO24H3M.js} +4 -4
- package/dist/{chunk-FLS2KI2D.js → chunk-F4CXF26J.js} +1 -1
- package/dist/main.js +728 -420
- package/dist/{network-5PLYLKX3.js → network-QDRK4P6X.js} +2 -2
- package/drizzle/0000_colossal_blizzard.sql +37 -0
- package/drizzle/meta/0000_snapshot.json +245 -0
- package/drizzle/meta/_journal.json +13 -0
- package/package.json +15 -5
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
CREATE TABLE `accounts` (
|
|
2
|
+
`name` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`fast_address` text NOT NULL,
|
|
4
|
+
`evm_address` text NOT NULL,
|
|
5
|
+
`encrypted_key` blob NOT NULL,
|
|
6
|
+
`encrypted` integer DEFAULT true NOT NULL,
|
|
7
|
+
`is_default` integer DEFAULT false NOT NULL,
|
|
8
|
+
`created_at` text NOT NULL
|
|
9
|
+
);
|
|
10
|
+
--> statement-breakpoint
|
|
11
|
+
CREATE TABLE `custom_networks` (
|
|
12
|
+
`name` text PRIMARY KEY NOT NULL,
|
|
13
|
+
`config` text NOT NULL
|
|
14
|
+
);
|
|
15
|
+
--> statement-breakpoint
|
|
16
|
+
CREATE TABLE `history` (
|
|
17
|
+
`hash` text PRIMARY KEY NOT NULL,
|
|
18
|
+
`type` text DEFAULT 'transfer' NOT NULL,
|
|
19
|
+
`from` text NOT NULL,
|
|
20
|
+
`to` text NOT NULL,
|
|
21
|
+
`amount` text NOT NULL,
|
|
22
|
+
`formatted` text NOT NULL,
|
|
23
|
+
`token_name` text NOT NULL,
|
|
24
|
+
`token_id` text NOT NULL,
|
|
25
|
+
`network` text NOT NULL,
|
|
26
|
+
`status` text NOT NULL,
|
|
27
|
+
`timestamp` text NOT NULL,
|
|
28
|
+
`explorer_url` text,
|
|
29
|
+
`route` text DEFAULT 'fast' NOT NULL,
|
|
30
|
+
`chain_id` integer
|
|
31
|
+
);
|
|
32
|
+
--> statement-breakpoint
|
|
33
|
+
CREATE INDEX `idx_history_timestamp` ON `history` (`timestamp`);--> statement-breakpoint
|
|
34
|
+
CREATE TABLE `metadata` (
|
|
35
|
+
`key` text PRIMARY KEY NOT NULL,
|
|
36
|
+
`value` text NOT NULL
|
|
37
|
+
);
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "33abcd0d-44c7-4dbd-8432-da30cf08ca6d",
|
|
5
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
6
|
+
"tables": {
|
|
7
|
+
"accounts": {
|
|
8
|
+
"name": "accounts",
|
|
9
|
+
"columns": {
|
|
10
|
+
"name": {
|
|
11
|
+
"name": "name",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": false
|
|
16
|
+
},
|
|
17
|
+
"fast_address": {
|
|
18
|
+
"name": "fast_address",
|
|
19
|
+
"type": "text",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
},
|
|
24
|
+
"evm_address": {
|
|
25
|
+
"name": "evm_address",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true,
|
|
29
|
+
"autoincrement": false
|
|
30
|
+
},
|
|
31
|
+
"encrypted_key": {
|
|
32
|
+
"name": "encrypted_key",
|
|
33
|
+
"type": "blob",
|
|
34
|
+
"primaryKey": false,
|
|
35
|
+
"notNull": true,
|
|
36
|
+
"autoincrement": false
|
|
37
|
+
},
|
|
38
|
+
"encrypted": {
|
|
39
|
+
"name": "encrypted",
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"primaryKey": false,
|
|
42
|
+
"notNull": true,
|
|
43
|
+
"autoincrement": false,
|
|
44
|
+
"default": true
|
|
45
|
+
},
|
|
46
|
+
"is_default": {
|
|
47
|
+
"name": "is_default",
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"primaryKey": false,
|
|
50
|
+
"notNull": true,
|
|
51
|
+
"autoincrement": false,
|
|
52
|
+
"default": false
|
|
53
|
+
},
|
|
54
|
+
"created_at": {
|
|
55
|
+
"name": "created_at",
|
|
56
|
+
"type": "text",
|
|
57
|
+
"primaryKey": false,
|
|
58
|
+
"notNull": true,
|
|
59
|
+
"autoincrement": false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"indexes": {},
|
|
63
|
+
"foreignKeys": {},
|
|
64
|
+
"compositePrimaryKeys": {},
|
|
65
|
+
"uniqueConstraints": {},
|
|
66
|
+
"checkConstraints": {}
|
|
67
|
+
},
|
|
68
|
+
"custom_networks": {
|
|
69
|
+
"name": "custom_networks",
|
|
70
|
+
"columns": {
|
|
71
|
+
"name": {
|
|
72
|
+
"name": "name",
|
|
73
|
+
"type": "text",
|
|
74
|
+
"primaryKey": true,
|
|
75
|
+
"notNull": true,
|
|
76
|
+
"autoincrement": false
|
|
77
|
+
},
|
|
78
|
+
"config": {
|
|
79
|
+
"name": "config",
|
|
80
|
+
"type": "text",
|
|
81
|
+
"primaryKey": false,
|
|
82
|
+
"notNull": true,
|
|
83
|
+
"autoincrement": false
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"indexes": {},
|
|
87
|
+
"foreignKeys": {},
|
|
88
|
+
"compositePrimaryKeys": {},
|
|
89
|
+
"uniqueConstraints": {},
|
|
90
|
+
"checkConstraints": {}
|
|
91
|
+
},
|
|
92
|
+
"history": {
|
|
93
|
+
"name": "history",
|
|
94
|
+
"columns": {
|
|
95
|
+
"hash": {
|
|
96
|
+
"name": "hash",
|
|
97
|
+
"type": "text",
|
|
98
|
+
"primaryKey": true,
|
|
99
|
+
"notNull": true,
|
|
100
|
+
"autoincrement": false
|
|
101
|
+
},
|
|
102
|
+
"type": {
|
|
103
|
+
"name": "type",
|
|
104
|
+
"type": "text",
|
|
105
|
+
"primaryKey": false,
|
|
106
|
+
"notNull": true,
|
|
107
|
+
"autoincrement": false,
|
|
108
|
+
"default": "'transfer'"
|
|
109
|
+
},
|
|
110
|
+
"from": {
|
|
111
|
+
"name": "from",
|
|
112
|
+
"type": "text",
|
|
113
|
+
"primaryKey": false,
|
|
114
|
+
"notNull": true,
|
|
115
|
+
"autoincrement": false
|
|
116
|
+
},
|
|
117
|
+
"to": {
|
|
118
|
+
"name": "to",
|
|
119
|
+
"type": "text",
|
|
120
|
+
"primaryKey": false,
|
|
121
|
+
"notNull": true,
|
|
122
|
+
"autoincrement": false
|
|
123
|
+
},
|
|
124
|
+
"amount": {
|
|
125
|
+
"name": "amount",
|
|
126
|
+
"type": "text",
|
|
127
|
+
"primaryKey": false,
|
|
128
|
+
"notNull": true,
|
|
129
|
+
"autoincrement": false
|
|
130
|
+
},
|
|
131
|
+
"formatted": {
|
|
132
|
+
"name": "formatted",
|
|
133
|
+
"type": "text",
|
|
134
|
+
"primaryKey": false,
|
|
135
|
+
"notNull": true,
|
|
136
|
+
"autoincrement": false
|
|
137
|
+
},
|
|
138
|
+
"token_name": {
|
|
139
|
+
"name": "token_name",
|
|
140
|
+
"type": "text",
|
|
141
|
+
"primaryKey": false,
|
|
142
|
+
"notNull": true,
|
|
143
|
+
"autoincrement": false
|
|
144
|
+
},
|
|
145
|
+
"token_id": {
|
|
146
|
+
"name": "token_id",
|
|
147
|
+
"type": "text",
|
|
148
|
+
"primaryKey": false,
|
|
149
|
+
"notNull": true,
|
|
150
|
+
"autoincrement": false
|
|
151
|
+
},
|
|
152
|
+
"network": {
|
|
153
|
+
"name": "network",
|
|
154
|
+
"type": "text",
|
|
155
|
+
"primaryKey": false,
|
|
156
|
+
"notNull": true,
|
|
157
|
+
"autoincrement": false
|
|
158
|
+
},
|
|
159
|
+
"status": {
|
|
160
|
+
"name": "status",
|
|
161
|
+
"type": "text",
|
|
162
|
+
"primaryKey": false,
|
|
163
|
+
"notNull": true,
|
|
164
|
+
"autoincrement": false
|
|
165
|
+
},
|
|
166
|
+
"timestamp": {
|
|
167
|
+
"name": "timestamp",
|
|
168
|
+
"type": "text",
|
|
169
|
+
"primaryKey": false,
|
|
170
|
+
"notNull": true,
|
|
171
|
+
"autoincrement": false
|
|
172
|
+
},
|
|
173
|
+
"explorer_url": {
|
|
174
|
+
"name": "explorer_url",
|
|
175
|
+
"type": "text",
|
|
176
|
+
"primaryKey": false,
|
|
177
|
+
"notNull": false,
|
|
178
|
+
"autoincrement": false
|
|
179
|
+
},
|
|
180
|
+
"route": {
|
|
181
|
+
"name": "route",
|
|
182
|
+
"type": "text",
|
|
183
|
+
"primaryKey": false,
|
|
184
|
+
"notNull": true,
|
|
185
|
+
"autoincrement": false,
|
|
186
|
+
"default": "'fast'"
|
|
187
|
+
},
|
|
188
|
+
"chain_id": {
|
|
189
|
+
"name": "chain_id",
|
|
190
|
+
"type": "integer",
|
|
191
|
+
"primaryKey": false,
|
|
192
|
+
"notNull": false,
|
|
193
|
+
"autoincrement": false
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"indexes": {
|
|
197
|
+
"idx_history_timestamp": {
|
|
198
|
+
"name": "idx_history_timestamp",
|
|
199
|
+
"columns": [
|
|
200
|
+
"timestamp"
|
|
201
|
+
],
|
|
202
|
+
"isUnique": false
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"foreignKeys": {},
|
|
206
|
+
"compositePrimaryKeys": {},
|
|
207
|
+
"uniqueConstraints": {},
|
|
208
|
+
"checkConstraints": {}
|
|
209
|
+
},
|
|
210
|
+
"metadata": {
|
|
211
|
+
"name": "metadata",
|
|
212
|
+
"columns": {
|
|
213
|
+
"key": {
|
|
214
|
+
"name": "key",
|
|
215
|
+
"type": "text",
|
|
216
|
+
"primaryKey": true,
|
|
217
|
+
"notNull": true,
|
|
218
|
+
"autoincrement": false
|
|
219
|
+
},
|
|
220
|
+
"value": {
|
|
221
|
+
"name": "value",
|
|
222
|
+
"type": "text",
|
|
223
|
+
"primaryKey": false,
|
|
224
|
+
"notNull": true,
|
|
225
|
+
"autoincrement": false
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"indexes": {},
|
|
229
|
+
"foreignKeys": {},
|
|
230
|
+
"compositePrimaryKeys": {},
|
|
231
|
+
"uniqueConstraints": {},
|
|
232
|
+
"checkConstraints": {}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"views": {},
|
|
236
|
+
"enums": {},
|
|
237
|
+
"_meta": {
|
|
238
|
+
"schemas": {},
|
|
239
|
+
"tables": {},
|
|
240
|
+
"columns": {}
|
|
241
|
+
},
|
|
242
|
+
"internal": {
|
|
243
|
+
"indexes": {}
|
|
244
|
+
}
|
|
245
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastxyz/cli",
|
|
3
3
|
"description": "Fast CLI - Account, network, and transaction management",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/fastxyz/fast-sdk",
|
|
8
|
+
"directory": "app/cli"
|
|
9
|
+
},
|
|
5
10
|
"bin": {
|
|
6
11
|
"fast": "./dist/main.js"
|
|
7
12
|
},
|
|
8
13
|
"type": "module",
|
|
9
14
|
"files": [
|
|
10
15
|
"dist",
|
|
16
|
+
"drizzle",
|
|
11
17
|
"README.md"
|
|
12
18
|
],
|
|
13
19
|
"dependencies": {
|
|
@@ -33,10 +39,14 @@
|
|
|
33
39
|
"@types/node": "^25.5.0",
|
|
34
40
|
"@types/uuid": "^10.0.0",
|
|
35
41
|
"drizzle-kit": "^0.31.10",
|
|
36
|
-
"@fastxyz/allset-sdk": "1.0.
|
|
37
|
-
"@fastxyz/
|
|
38
|
-
"@fastxyz/
|
|
39
|
-
"@fastxyz/
|
|
42
|
+
"@fastxyz/allset-sdk": "1.0.2",
|
|
43
|
+
"@fastxyz/schema": "2.0.0",
|
|
44
|
+
"@fastxyz/x402-client": "1.0.3",
|
|
45
|
+
"@fastxyz/sdk": "2.0.0"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public",
|
|
49
|
+
"provenance": true
|
|
40
50
|
},
|
|
41
51
|
"scripts": {
|
|
42
52
|
"build": "tsup",
|