@kasarlabs/erc20-mcp 0.1.1 → 0.1.3
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/build/index.js +16 -16
- package/build/index.js.map +1 -1
- package/build/lib/types/types.d.ts +0 -1
- package/build/lib/utils/contractManager.js.map +1 -1
- package/build/lib/utils/utils.d.ts +2 -30
- package/build/lib/utils/utils.js +33 -84
- package/build/lib/utils/utils.js.map +1 -1
- package/build/schemas/index.d.ts +260 -176
- package/build/schemas/index.js +27 -20
- package/build/schemas/index.js.map +1 -1
- package/build/tools/approve.d.ts +0 -2
- package/build/tools/approve.js +2 -4
- package/build/tools/approve.js.map +1 -1
- package/build/tools/getAllowance.d.ts +2 -8
- package/build/tools/getAllowance.js +55 -27
- package/build/tools/getAllowance.js.map +1 -1
- package/build/tools/getBalance.d.ts +2 -6
- package/build/tools/getBalance.js +45 -26
- package/build/tools/getBalance.js.map +1 -1
- package/build/tools/getSymbol.d.ts +1 -3
- package/build/tools/getSymbol.js +131 -12
- package/build/tools/getSymbol.js.map +1 -1
- package/build/tools/getTotalSupply.d.ts +4 -4
- package/build/tools/getTotalSupply.js +37 -8
- package/build/tools/getTotalSupply.js.map +1 -1
- package/build/tools/transfer.d.ts +2 -2
- package/build/tools/transfer.js +3 -5
- package/build/tools/transfer.js.map +1 -1
- package/build/tools/transferFrom.js +2 -3
- package/build/tools/transferFrom.js.map +1 -1
- package/package.json +3 -3
package/build/schemas/index.d.ts
CHANGED
|
@@ -1,359 +1,443 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const assetSchema: z.ZodObject<{
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const assetSchema: z.ZodEffects<z.ZodObject<{
|
|
3
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
4
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
assetAddress?: string | undefined;
|
|
7
|
+
assetSymbol?: string | undefined;
|
|
8
8
|
}, {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
assetAddress?: string | undefined;
|
|
10
|
+
assetSymbol?: string | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
assetAddress?: string | undefined;
|
|
13
|
+
assetSymbol?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
assetAddress?: string | undefined;
|
|
16
|
+
assetSymbol?: string | undefined;
|
|
11
17
|
}>;
|
|
12
18
|
export declare const getAllowanceSchema: z.ZodObject<{
|
|
13
19
|
ownerAddress: z.ZodString;
|
|
14
20
|
spenderAddress: z.ZodString;
|
|
15
|
-
asset: z.ZodObject<{
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
22
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
23
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
18
24
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
assetAddress?: string | undefined;
|
|
26
|
+
assetSymbol?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
assetAddress?: string | undefined;
|
|
29
|
+
assetSymbol?: string | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
assetAddress?: string | undefined;
|
|
32
|
+
assetSymbol?: string | undefined;
|
|
21
33
|
}, {
|
|
22
|
-
|
|
23
|
-
|
|
34
|
+
assetAddress?: string | undefined;
|
|
35
|
+
assetSymbol?: string | undefined;
|
|
24
36
|
}>;
|
|
25
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
ownerAddress: string;
|
|
39
|
+
spenderAddress: string;
|
|
26
40
|
asset: {
|
|
27
|
-
|
|
28
|
-
|
|
41
|
+
assetAddress?: string | undefined;
|
|
42
|
+
assetSymbol?: string | undefined;
|
|
29
43
|
};
|
|
30
|
-
spenderAddress: string;
|
|
31
|
-
ownerAddress: string;
|
|
32
44
|
}, {
|
|
45
|
+
ownerAddress: string;
|
|
46
|
+
spenderAddress: string;
|
|
33
47
|
asset: {
|
|
34
|
-
|
|
35
|
-
|
|
48
|
+
assetAddress?: string | undefined;
|
|
49
|
+
assetSymbol?: string | undefined;
|
|
36
50
|
};
|
|
37
|
-
spenderAddress: string;
|
|
38
|
-
ownerAddress: string;
|
|
39
51
|
}>;
|
|
40
52
|
export declare const getMyGivenAllowanceSchema: z.ZodObject<{
|
|
41
53
|
spenderAddress: z.ZodString;
|
|
42
|
-
asset: z.ZodObject<{
|
|
43
|
-
|
|
44
|
-
|
|
54
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
55
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
56
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
45
57
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
|
|
47
|
-
|
|
58
|
+
assetAddress?: string | undefined;
|
|
59
|
+
assetSymbol?: string | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
assetAddress?: string | undefined;
|
|
62
|
+
assetSymbol?: string | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
assetAddress?: string | undefined;
|
|
65
|
+
assetSymbol?: string | undefined;
|
|
48
66
|
}, {
|
|
49
|
-
|
|
50
|
-
|
|
67
|
+
assetAddress?: string | undefined;
|
|
68
|
+
assetSymbol?: string | undefined;
|
|
51
69
|
}>;
|
|
52
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
spenderAddress: string;
|
|
53
72
|
asset: {
|
|
54
|
-
|
|
55
|
-
|
|
73
|
+
assetAddress?: string | undefined;
|
|
74
|
+
assetSymbol?: string | undefined;
|
|
56
75
|
};
|
|
57
|
-
spenderAddress: string;
|
|
58
76
|
}, {
|
|
77
|
+
spenderAddress: string;
|
|
59
78
|
asset: {
|
|
60
|
-
|
|
61
|
-
|
|
79
|
+
assetAddress?: string | undefined;
|
|
80
|
+
assetSymbol?: string | undefined;
|
|
62
81
|
};
|
|
63
|
-
spenderAddress: string;
|
|
64
82
|
}>;
|
|
65
83
|
export declare const getAllowanceGivenToMeSchema: z.ZodObject<{
|
|
66
84
|
ownerAddress: z.ZodString;
|
|
67
|
-
asset: z.ZodObject<{
|
|
68
|
-
|
|
69
|
-
|
|
85
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
86
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
87
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
70
88
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
|
|
72
|
-
|
|
89
|
+
assetAddress?: string | undefined;
|
|
90
|
+
assetSymbol?: string | undefined;
|
|
73
91
|
}, {
|
|
74
|
-
|
|
75
|
-
|
|
92
|
+
assetAddress?: string | undefined;
|
|
93
|
+
assetSymbol?: string | undefined;
|
|
94
|
+
}>, {
|
|
95
|
+
assetAddress?: string | undefined;
|
|
96
|
+
assetSymbol?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
assetAddress?: string | undefined;
|
|
99
|
+
assetSymbol?: string | undefined;
|
|
76
100
|
}>;
|
|
77
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
ownerAddress: string;
|
|
78
103
|
asset: {
|
|
79
|
-
|
|
80
|
-
|
|
104
|
+
assetAddress?: string | undefined;
|
|
105
|
+
assetSymbol?: string | undefined;
|
|
81
106
|
};
|
|
82
|
-
ownerAddress: string;
|
|
83
107
|
}, {
|
|
108
|
+
ownerAddress: string;
|
|
84
109
|
asset: {
|
|
85
|
-
|
|
86
|
-
|
|
110
|
+
assetAddress?: string | undefined;
|
|
111
|
+
assetSymbol?: string | undefined;
|
|
87
112
|
};
|
|
88
|
-
ownerAddress: string;
|
|
89
113
|
}>;
|
|
90
114
|
export declare const getTotalSupplySchema: z.ZodObject<{
|
|
91
|
-
asset: z.ZodObject<{
|
|
92
|
-
|
|
93
|
-
|
|
115
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
116
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
117
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
94
118
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
|
|
96
|
-
|
|
119
|
+
assetAddress?: string | undefined;
|
|
120
|
+
assetSymbol?: string | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
assetAddress?: string | undefined;
|
|
123
|
+
assetSymbol?: string | undefined;
|
|
124
|
+
}>, {
|
|
125
|
+
assetAddress?: string | undefined;
|
|
126
|
+
assetSymbol?: string | undefined;
|
|
97
127
|
}, {
|
|
98
|
-
|
|
99
|
-
|
|
128
|
+
assetAddress?: string | undefined;
|
|
129
|
+
assetSymbol?: string | undefined;
|
|
100
130
|
}>;
|
|
101
131
|
}, "strip", z.ZodTypeAny, {
|
|
102
132
|
asset: {
|
|
103
|
-
|
|
104
|
-
|
|
133
|
+
assetAddress?: string | undefined;
|
|
134
|
+
assetSymbol?: string | undefined;
|
|
105
135
|
};
|
|
106
136
|
}, {
|
|
107
137
|
asset: {
|
|
108
|
-
|
|
109
|
-
|
|
138
|
+
assetAddress?: string | undefined;
|
|
139
|
+
assetSymbol?: string | undefined;
|
|
110
140
|
};
|
|
111
141
|
}>;
|
|
112
142
|
export declare const transferFromSchema: z.ZodObject<{
|
|
113
143
|
fromAddress: z.ZodString;
|
|
114
144
|
toAddress: z.ZodString;
|
|
115
145
|
amount: z.ZodString;
|
|
116
|
-
asset: z.ZodObject<{
|
|
117
|
-
|
|
118
|
-
|
|
146
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
147
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
148
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
119
149
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
|
|
121
|
-
|
|
150
|
+
assetAddress?: string | undefined;
|
|
151
|
+
assetSymbol?: string | undefined;
|
|
122
152
|
}, {
|
|
123
|
-
|
|
124
|
-
|
|
153
|
+
assetAddress?: string | undefined;
|
|
154
|
+
assetSymbol?: string | undefined;
|
|
155
|
+
}>, {
|
|
156
|
+
assetAddress?: string | undefined;
|
|
157
|
+
assetSymbol?: string | undefined;
|
|
158
|
+
}, {
|
|
159
|
+
assetAddress?: string | undefined;
|
|
160
|
+
assetSymbol?: string | undefined;
|
|
125
161
|
}>;
|
|
126
162
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
amount: string;
|
|
128
163
|
asset: {
|
|
129
|
-
|
|
130
|
-
|
|
164
|
+
assetAddress?: string | undefined;
|
|
165
|
+
assetSymbol?: string | undefined;
|
|
131
166
|
};
|
|
132
167
|
fromAddress: string;
|
|
133
168
|
toAddress: string;
|
|
134
|
-
}, {
|
|
135
169
|
amount: string;
|
|
170
|
+
}, {
|
|
136
171
|
asset: {
|
|
137
|
-
|
|
138
|
-
|
|
172
|
+
assetAddress?: string | undefined;
|
|
173
|
+
assetSymbol?: string | undefined;
|
|
139
174
|
};
|
|
140
175
|
fromAddress: string;
|
|
141
176
|
toAddress: string;
|
|
177
|
+
amount: string;
|
|
142
178
|
}>;
|
|
143
179
|
export declare const transferFromSignatureSchema: z.ZodObject<{
|
|
144
180
|
fromAddress: z.ZodString;
|
|
145
181
|
toAddress: z.ZodString;
|
|
146
182
|
amount: z.ZodString;
|
|
147
|
-
asset: z.ZodObject<{
|
|
148
|
-
|
|
149
|
-
|
|
183
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
184
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
185
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
150
186
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
|
|
152
|
-
|
|
187
|
+
assetAddress?: string | undefined;
|
|
188
|
+
assetSymbol?: string | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
assetAddress?: string | undefined;
|
|
191
|
+
assetSymbol?: string | undefined;
|
|
192
|
+
}>, {
|
|
193
|
+
assetAddress?: string | undefined;
|
|
194
|
+
assetSymbol?: string | undefined;
|
|
153
195
|
}, {
|
|
154
|
-
|
|
155
|
-
|
|
196
|
+
assetAddress?: string | undefined;
|
|
197
|
+
assetSymbol?: string | undefined;
|
|
156
198
|
}>;
|
|
157
199
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
amount: string;
|
|
159
200
|
asset: {
|
|
160
|
-
|
|
161
|
-
|
|
201
|
+
assetAddress?: string | undefined;
|
|
202
|
+
assetSymbol?: string | undefined;
|
|
162
203
|
};
|
|
163
204
|
fromAddress: string;
|
|
164
205
|
toAddress: string;
|
|
165
|
-
}, {
|
|
166
206
|
amount: string;
|
|
207
|
+
}, {
|
|
167
208
|
asset: {
|
|
168
|
-
|
|
169
|
-
|
|
209
|
+
assetAddress?: string | undefined;
|
|
210
|
+
assetSymbol?: string | undefined;
|
|
170
211
|
};
|
|
171
212
|
fromAddress: string;
|
|
172
213
|
toAddress: string;
|
|
214
|
+
amount: string;
|
|
173
215
|
}>;
|
|
174
216
|
export declare const getBalanceSchema: z.ZodObject<{
|
|
175
217
|
accountAddress: z.ZodString;
|
|
176
|
-
asset: z.ZodObject<{
|
|
177
|
-
|
|
178
|
-
|
|
218
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
219
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
220
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
179
221
|
}, "strip", z.ZodTypeAny, {
|
|
180
|
-
|
|
181
|
-
|
|
222
|
+
assetAddress?: string | undefined;
|
|
223
|
+
assetSymbol?: string | undefined;
|
|
182
224
|
}, {
|
|
183
|
-
|
|
184
|
-
|
|
225
|
+
assetAddress?: string | undefined;
|
|
226
|
+
assetSymbol?: string | undefined;
|
|
227
|
+
}>, {
|
|
228
|
+
assetAddress?: string | undefined;
|
|
229
|
+
assetSymbol?: string | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
assetAddress?: string | undefined;
|
|
232
|
+
assetSymbol?: string | undefined;
|
|
185
233
|
}>;
|
|
186
234
|
}, "strip", z.ZodTypeAny, {
|
|
187
235
|
asset: {
|
|
188
|
-
|
|
189
|
-
|
|
236
|
+
assetAddress?: string | undefined;
|
|
237
|
+
assetSymbol?: string | undefined;
|
|
190
238
|
};
|
|
191
239
|
accountAddress: string;
|
|
192
240
|
}, {
|
|
193
241
|
asset: {
|
|
194
|
-
|
|
195
|
-
|
|
242
|
+
assetAddress?: string | undefined;
|
|
243
|
+
assetSymbol?: string | undefined;
|
|
196
244
|
};
|
|
197
245
|
accountAddress: string;
|
|
198
246
|
}>;
|
|
199
247
|
export declare const getOwnBalanceSchema: z.ZodObject<{
|
|
200
|
-
asset: z.ZodObject<{
|
|
201
|
-
|
|
202
|
-
|
|
248
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
249
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
250
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
203
251
|
}, "strip", z.ZodTypeAny, {
|
|
204
|
-
|
|
205
|
-
|
|
252
|
+
assetAddress?: string | undefined;
|
|
253
|
+
assetSymbol?: string | undefined;
|
|
254
|
+
}, {
|
|
255
|
+
assetAddress?: string | undefined;
|
|
256
|
+
assetSymbol?: string | undefined;
|
|
257
|
+
}>, {
|
|
258
|
+
assetAddress?: string | undefined;
|
|
259
|
+
assetSymbol?: string | undefined;
|
|
206
260
|
}, {
|
|
207
|
-
|
|
208
|
-
|
|
261
|
+
assetAddress?: string | undefined;
|
|
262
|
+
assetSymbol?: string | undefined;
|
|
209
263
|
}>;
|
|
210
264
|
}, "strip", z.ZodTypeAny, {
|
|
211
265
|
asset: {
|
|
212
|
-
|
|
213
|
-
|
|
266
|
+
assetAddress?: string | undefined;
|
|
267
|
+
assetSymbol?: string | undefined;
|
|
214
268
|
};
|
|
215
269
|
}, {
|
|
216
270
|
asset: {
|
|
217
|
-
|
|
218
|
-
|
|
271
|
+
assetAddress?: string | undefined;
|
|
272
|
+
assetSymbol?: string | undefined;
|
|
219
273
|
};
|
|
220
274
|
}>;
|
|
221
275
|
export declare const getBalanceSignatureSchema: z.ZodObject<{
|
|
222
276
|
accountAddress: z.ZodString;
|
|
223
|
-
asset: z.ZodObject<{
|
|
224
|
-
|
|
225
|
-
|
|
277
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
278
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
279
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
226
280
|
}, "strip", z.ZodTypeAny, {
|
|
227
|
-
|
|
228
|
-
|
|
281
|
+
assetAddress?: string | undefined;
|
|
282
|
+
assetSymbol?: string | undefined;
|
|
229
283
|
}, {
|
|
230
|
-
|
|
231
|
-
|
|
284
|
+
assetAddress?: string | undefined;
|
|
285
|
+
assetSymbol?: string | undefined;
|
|
286
|
+
}>, {
|
|
287
|
+
assetAddress?: string | undefined;
|
|
288
|
+
assetSymbol?: string | undefined;
|
|
289
|
+
}, {
|
|
290
|
+
assetAddress?: string | undefined;
|
|
291
|
+
assetSymbol?: string | undefined;
|
|
232
292
|
}>;
|
|
233
293
|
}, "strip", z.ZodTypeAny, {
|
|
234
294
|
asset: {
|
|
235
|
-
|
|
236
|
-
|
|
295
|
+
assetAddress?: string | undefined;
|
|
296
|
+
assetSymbol?: string | undefined;
|
|
237
297
|
};
|
|
238
298
|
accountAddress: string;
|
|
239
299
|
}, {
|
|
240
300
|
asset: {
|
|
241
|
-
|
|
242
|
-
|
|
301
|
+
assetAddress?: string | undefined;
|
|
302
|
+
assetSymbol?: string | undefined;
|
|
243
303
|
};
|
|
244
304
|
accountAddress: string;
|
|
245
305
|
}>;
|
|
246
306
|
export declare const approveSchema: z.ZodObject<{
|
|
247
307
|
spenderAddress: z.ZodString;
|
|
248
308
|
amount: z.ZodString;
|
|
249
|
-
asset: z.ZodObject<{
|
|
250
|
-
|
|
251
|
-
|
|
309
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
310
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
311
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
252
312
|
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
|
|
254
|
-
|
|
313
|
+
assetAddress?: string | undefined;
|
|
314
|
+
assetSymbol?: string | undefined;
|
|
315
|
+
}, {
|
|
316
|
+
assetAddress?: string | undefined;
|
|
317
|
+
assetSymbol?: string | undefined;
|
|
318
|
+
}>, {
|
|
319
|
+
assetAddress?: string | undefined;
|
|
320
|
+
assetSymbol?: string | undefined;
|
|
255
321
|
}, {
|
|
256
|
-
|
|
257
|
-
|
|
322
|
+
assetAddress?: string | undefined;
|
|
323
|
+
assetSymbol?: string | undefined;
|
|
258
324
|
}>;
|
|
259
325
|
}, "strip", z.ZodTypeAny, {
|
|
260
|
-
|
|
326
|
+
spenderAddress: string;
|
|
261
327
|
asset: {
|
|
262
|
-
|
|
263
|
-
|
|
328
|
+
assetAddress?: string | undefined;
|
|
329
|
+
assetSymbol?: string | undefined;
|
|
264
330
|
};
|
|
265
|
-
spenderAddress: string;
|
|
266
|
-
}, {
|
|
267
331
|
amount: string;
|
|
332
|
+
}, {
|
|
333
|
+
spenderAddress: string;
|
|
268
334
|
asset: {
|
|
269
|
-
|
|
270
|
-
|
|
335
|
+
assetAddress?: string | undefined;
|
|
336
|
+
assetSymbol?: string | undefined;
|
|
271
337
|
};
|
|
272
|
-
|
|
338
|
+
amount: string;
|
|
273
339
|
}>;
|
|
274
340
|
export declare const approveSignatureSchema: z.ZodObject<{
|
|
275
341
|
spenderAddress: z.ZodString;
|
|
276
342
|
amount: z.ZodString;
|
|
277
|
-
asset: z.ZodObject<{
|
|
278
|
-
|
|
279
|
-
|
|
343
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
344
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
345
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
280
346
|
}, "strip", z.ZodTypeAny, {
|
|
281
|
-
|
|
282
|
-
|
|
347
|
+
assetAddress?: string | undefined;
|
|
348
|
+
assetSymbol?: string | undefined;
|
|
349
|
+
}, {
|
|
350
|
+
assetAddress?: string | undefined;
|
|
351
|
+
assetSymbol?: string | undefined;
|
|
352
|
+
}>, {
|
|
353
|
+
assetAddress?: string | undefined;
|
|
354
|
+
assetSymbol?: string | undefined;
|
|
283
355
|
}, {
|
|
284
|
-
|
|
285
|
-
|
|
356
|
+
assetAddress?: string | undefined;
|
|
357
|
+
assetSymbol?: string | undefined;
|
|
286
358
|
}>;
|
|
287
359
|
}, "strip", z.ZodTypeAny, {
|
|
288
|
-
|
|
360
|
+
spenderAddress: string;
|
|
289
361
|
asset: {
|
|
290
|
-
|
|
291
|
-
|
|
362
|
+
assetAddress?: string | undefined;
|
|
363
|
+
assetSymbol?: string | undefined;
|
|
292
364
|
};
|
|
293
|
-
spenderAddress: string;
|
|
294
|
-
}, {
|
|
295
365
|
amount: string;
|
|
366
|
+
}, {
|
|
367
|
+
spenderAddress: string;
|
|
296
368
|
asset: {
|
|
297
|
-
|
|
298
|
-
|
|
369
|
+
assetAddress?: string | undefined;
|
|
370
|
+
assetSymbol?: string | undefined;
|
|
299
371
|
};
|
|
300
|
-
|
|
372
|
+
amount: string;
|
|
301
373
|
}>;
|
|
302
374
|
export declare const transferSchema: z.ZodObject<{
|
|
303
375
|
recipientAddress: z.ZodString;
|
|
304
376
|
amount: z.ZodString;
|
|
305
|
-
asset: z.ZodObject<{
|
|
306
|
-
|
|
307
|
-
|
|
377
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
378
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
379
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
308
380
|
}, "strip", z.ZodTypeAny, {
|
|
309
|
-
|
|
310
|
-
|
|
381
|
+
assetAddress?: string | undefined;
|
|
382
|
+
assetSymbol?: string | undefined;
|
|
311
383
|
}, {
|
|
312
|
-
|
|
313
|
-
|
|
384
|
+
assetAddress?: string | undefined;
|
|
385
|
+
assetSymbol?: string | undefined;
|
|
386
|
+
}>, {
|
|
387
|
+
assetAddress?: string | undefined;
|
|
388
|
+
assetSymbol?: string | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
assetAddress?: string | undefined;
|
|
391
|
+
assetSymbol?: string | undefined;
|
|
314
392
|
}>;
|
|
315
393
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
amount: string;
|
|
317
|
-
recipientAddress: string;
|
|
318
394
|
asset: {
|
|
319
|
-
|
|
320
|
-
|
|
395
|
+
assetAddress?: string | undefined;
|
|
396
|
+
assetSymbol?: string | undefined;
|
|
321
397
|
};
|
|
322
|
-
}, {
|
|
323
398
|
amount: string;
|
|
324
399
|
recipientAddress: string;
|
|
400
|
+
}, {
|
|
325
401
|
asset: {
|
|
326
|
-
|
|
327
|
-
|
|
402
|
+
assetAddress?: string | undefined;
|
|
403
|
+
assetSymbol?: string | undefined;
|
|
328
404
|
};
|
|
405
|
+
amount: string;
|
|
406
|
+
recipientAddress: string;
|
|
329
407
|
}>;
|
|
330
408
|
export declare const transferSignatureSchema: z.ZodObject<{
|
|
331
409
|
recipientAddress: z.ZodString;
|
|
332
410
|
amount: z.ZodString;
|
|
333
|
-
asset: z.ZodObject<{
|
|
334
|
-
|
|
335
|
-
|
|
411
|
+
asset: z.ZodEffects<z.ZodObject<{
|
|
412
|
+
assetAddress: z.ZodOptional<z.ZodString>;
|
|
413
|
+
assetSymbol: z.ZodOptional<z.ZodString>;
|
|
336
414
|
}, "strip", z.ZodTypeAny, {
|
|
337
|
-
|
|
338
|
-
|
|
415
|
+
assetAddress?: string | undefined;
|
|
416
|
+
assetSymbol?: string | undefined;
|
|
417
|
+
}, {
|
|
418
|
+
assetAddress?: string | undefined;
|
|
419
|
+
assetSymbol?: string | undefined;
|
|
420
|
+
}>, {
|
|
421
|
+
assetAddress?: string | undefined;
|
|
422
|
+
assetSymbol?: string | undefined;
|
|
339
423
|
}, {
|
|
340
|
-
|
|
341
|
-
|
|
424
|
+
assetAddress?: string | undefined;
|
|
425
|
+
assetSymbol?: string | undefined;
|
|
342
426
|
}>;
|
|
343
427
|
}, "strip", z.ZodTypeAny, {
|
|
344
|
-
amount: string;
|
|
345
|
-
recipientAddress: string;
|
|
346
428
|
asset: {
|
|
347
|
-
|
|
348
|
-
|
|
429
|
+
assetAddress?: string | undefined;
|
|
430
|
+
assetSymbol?: string | undefined;
|
|
349
431
|
};
|
|
350
|
-
}, {
|
|
351
432
|
amount: string;
|
|
352
433
|
recipientAddress: string;
|
|
434
|
+
}, {
|
|
353
435
|
asset: {
|
|
354
|
-
|
|
355
|
-
|
|
436
|
+
assetAddress?: string | undefined;
|
|
437
|
+
assetSymbol?: string | undefined;
|
|
356
438
|
};
|
|
439
|
+
amount: string;
|
|
440
|
+
recipientAddress: string;
|
|
357
441
|
}>;
|
|
358
442
|
export declare const deployERC20Schema: z.ZodObject<{
|
|
359
443
|
name: z.ZodString;
|