@1shotapi/client-sdk 1.0.0
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 +162 -0
- package/dist/categories/chains.d.ts +21 -0
- package/dist/categories/chains.js +44 -0
- package/dist/categories/chains.js.map +1 -0
- package/dist/categories/contractEvents.d.ts +103 -0
- package/dist/categories/contractEvents.js +115 -0
- package/dist/categories/contractEvents.js.map +1 -0
- package/dist/categories/contractMethods.d.ts +377 -0
- package/dist/categories/contractMethods.js +317 -0
- package/dist/categories/contractMethods.js.map +1 -0
- package/dist/categories/structs.d.ts +40 -0
- package/dist/categories/structs.js +68 -0
- package/dist/categories/structs.js.map +1 -0
- package/dist/categories/transactions.d.ts +31 -0
- package/dist/categories/transactions.js +51 -0
- package/dist/categories/transactions.js.map +1 -0
- package/dist/categories/wallets.d.ts +167 -0
- package/dist/categories/wallets.js +238 -0
- package/dist/categories/wallets.js.map +1 -0
- package/dist/client.d.ts +22 -0
- package/dist/client.js +61 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/types/abi.d.ts +32 -0
- package/dist/types/abi.js +2 -0
- package/dist/types/abi.js.map +1 -0
- package/dist/types/chain.d.ts +26 -0
- package/dist/types/chain.js +2 -0
- package/dist/types/chain.js.map +1 -0
- package/dist/types/client.d.ts +13 -0
- package/dist/types/client.js +2 -0
- package/dist/types/client.js.map +1 -0
- package/dist/types/common.d.ts +8 -0
- package/dist/types/common.js +2 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/contract.d.ts +5 -0
- package/dist/types/contract.js +2 -0
- package/dist/types/contract.js.map +1 -0
- package/dist/types/contractEvent.d.ts +46 -0
- package/dist/types/contractEvent.js +2 -0
- package/dist/types/contractEvent.js.map +1 -0
- package/dist/types/contractMethod.d.ts +31 -0
- package/dist/types/contractMethod.js +2 -0
- package/dist/types/contractMethod.js.map +1 -0
- package/dist/types/struct.d.ts +8 -0
- package/dist/types/struct.js +2 -0
- package/dist/types/struct.js.map +1 -0
- package/dist/types/transaction.d.ts +12 -0
- package/dist/types/transaction.js +2 -0
- package/dist/types/transaction.js.map +1 -0
- package/dist/types/wallet.d.ts +30 -0
- package/dist/types/wallet.js +2 -0
- package/dist/types/wallet.js.map +1 -0
- package/dist/types.d.ts +11 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/webhook.d.ts +19 -0
- package/dist/utils/webhook.js +66 -0
- package/dist/utils/webhook.js.map +1 -0
- package/dist/validation/abi.d.ts +470 -0
- package/dist/validation/abi.js +99 -0
- package/dist/validation/abi.js.map +1 -0
- package/dist/validation/chain.d.ts +157 -0
- package/dist/validation/chain.js +71 -0
- package/dist/validation/chain.js.map +1 -0
- package/dist/validation/common.d.ts +17 -0
- package/dist/validation/common.js +16 -0
- package/dist/validation/common.js.map +1 -0
- package/dist/validation/contractEvent.d.ts +323 -0
- package/dist/validation/contractEvent.js +148 -0
- package/dist/validation/contractEvent.js.map +1 -0
- package/dist/validation/contractMethod.d.ts +2746 -0
- package/dist/validation/contractMethod.js +787 -0
- package/dist/validation/contractMethod.js.map +1 -0
- package/dist/validation/struct.d.ts +495 -0
- package/dist/validation/struct.js +291 -0
- package/dist/validation/struct.js.map +1 -0
- package/dist/validation/transaction.d.ts +359 -0
- package/dist/validation/transaction.js +206 -0
- package/dist/validation/transaction.js.map +1 -0
- package/dist/validation/wallet.d.ts +537 -0
- package/dist/validation/wallet.js +287 -0
- package/dist/validation/wallet.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// Validation for Solidity types
|
|
3
|
+
export const solidityTypeSchema = z
|
|
4
|
+
.enum(["address", "bool", "bytes", "int", "string", "uint", "struct"])
|
|
5
|
+
.describe("The type of a Solidity parameter");
|
|
6
|
+
// Base schema for Solidity struct parameters
|
|
7
|
+
const baseSolidityStructParamSchema = z.object({
|
|
8
|
+
name: z.string().describe("The name of the parameter"),
|
|
9
|
+
description: z.string().optional().nullable().describe("Description of the parameter"),
|
|
10
|
+
type: solidityTypeSchema,
|
|
11
|
+
index: z
|
|
12
|
+
.number()
|
|
13
|
+
.int()
|
|
14
|
+
.min(0)
|
|
15
|
+
.describe("This is the relative index in the contract function. It should start at 0, and must not skip any numbers."),
|
|
16
|
+
value: z
|
|
17
|
+
.string()
|
|
18
|
+
.optional()
|
|
19
|
+
.nullable()
|
|
20
|
+
.describe("This is an optional, static value for the parameter. If you set this, you will never be required or able to pass a value for this parameter when you execute the transaction, it will use the set value."),
|
|
21
|
+
typeSize: z
|
|
22
|
+
.number()
|
|
23
|
+
.int()
|
|
24
|
+
.positive()
|
|
25
|
+
.optional()
|
|
26
|
+
.nullable()
|
|
27
|
+
.describe("This is an optional field that specifies the main size of the Solidity type. For example, if your type is uint, by default it is a uint256. If you want a uint8 instead, set this value to 8. It works for int, uint, fixed, ufixed, and bytes types. Valid values for bytes are 1 to 32, for others it is 256 % 8"),
|
|
28
|
+
typeSize2: z
|
|
29
|
+
.number()
|
|
30
|
+
.int()
|
|
31
|
+
.positive()
|
|
32
|
+
.optional()
|
|
33
|
+
.nullable()
|
|
34
|
+
.describe("This is identical to typeSize but only used for fixed and ufixed sizes. This is the second size of the fixed field, for example, fixed(typeSize)x(typeSize2)."),
|
|
35
|
+
isArray: z
|
|
36
|
+
.boolean()
|
|
37
|
+
.default(false)
|
|
38
|
+
.optional()
|
|
39
|
+
.nullable()
|
|
40
|
+
.describe("If this parameter is an array type set this to true. By default, arrays can be of any size so you don't need to set arraySize."),
|
|
41
|
+
arraySize: z
|
|
42
|
+
.number()
|
|
43
|
+
.int()
|
|
44
|
+
.positive()
|
|
45
|
+
.optional()
|
|
46
|
+
.nullable()
|
|
47
|
+
.describe("If the parameter is a fixed size array, set this value."),
|
|
48
|
+
typeStructId: z
|
|
49
|
+
.string()
|
|
50
|
+
.uuid()
|
|
51
|
+
.optional()
|
|
52
|
+
.nullable()
|
|
53
|
+
.describe('The ID of the sub-struct if the type is "struct". When creating a param, you must set only one of either typeStructId (to re-use an existing Solidity Struct) or typeStruct (creates a new struct for the param)'),
|
|
54
|
+
});
|
|
55
|
+
// Schema for new Solidity structs (requires name)
|
|
56
|
+
export const newSolidityStructSchema = z.object({
|
|
57
|
+
name: z.string().min(1).describe("The name of the struct"),
|
|
58
|
+
params: z
|
|
59
|
+
.array(z.lazy(() => newSolidityStructParamSchema))
|
|
60
|
+
.describe("The parameters that make up the struct"),
|
|
61
|
+
});
|
|
62
|
+
// Schema for existing Solidity structs (name is optional)
|
|
63
|
+
export const solidityStructSchema = z.object({
|
|
64
|
+
id: z.string().uuid().describe("Internal ID of the struct"),
|
|
65
|
+
businessId: z.string().uuid().describe("Internal ID of the business that owns this struct"),
|
|
66
|
+
params: z
|
|
67
|
+
.array(z.lazy(() => solidityStructParamSchema))
|
|
68
|
+
.describe("The parameters that make up the struct"),
|
|
69
|
+
updated: z.number().describe("Unix timestamp of when the struct was last updated"),
|
|
70
|
+
created: z.number().describe("Unix timestamp of when the struct was created"),
|
|
71
|
+
});
|
|
72
|
+
// Validation for creating a new Solidity struct parameter
|
|
73
|
+
export const newSolidityStructParamSchema = baseSolidityStructParamSchema
|
|
74
|
+
.extend({
|
|
75
|
+
typeStruct: newSolidityStructSchema
|
|
76
|
+
.optional()
|
|
77
|
+
.nullable()
|
|
78
|
+
.describe('The sub-struct if the type is "struct", which will be created for use by this parameter. When creating a param, you must set only one of either typeStructId (to re-use an existing Solidity Struct) or typeStruct (creates a new struct for the param)'),
|
|
79
|
+
})
|
|
80
|
+
.refine((data) => {
|
|
81
|
+
// Validate that typeSize is only set for numeric types
|
|
82
|
+
if (data.typeSize !== undefined) {
|
|
83
|
+
return ["int", "uint", "bytes"].includes(data.type);
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
}, {
|
|
87
|
+
message: "typeSize can only be set for int, uint, or bytes types",
|
|
88
|
+
})
|
|
89
|
+
.refine((data) => {
|
|
90
|
+
// Validate that typeSize2 is only set for fixed types
|
|
91
|
+
if (data.typeSize2 != undefined) {
|
|
92
|
+
return ["fixed", "ufixed"].includes(data.type);
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
}, {
|
|
96
|
+
message: "typeSize2 can only be set for fixed or ufixed types",
|
|
97
|
+
})
|
|
98
|
+
.refine((data) => {
|
|
99
|
+
// Validate that arraySize is only set when isArray is true
|
|
100
|
+
if (data.arraySize != undefined) {
|
|
101
|
+
return data.isArray === true;
|
|
102
|
+
}
|
|
103
|
+
return true;
|
|
104
|
+
}, {
|
|
105
|
+
message: "arraySize can only be set when isArray is true",
|
|
106
|
+
})
|
|
107
|
+
.refine((data) => {
|
|
108
|
+
// Validate that either typeStructId or typeStruct is set for struct type
|
|
109
|
+
if (data.type === "struct") {
|
|
110
|
+
return !!(data.typeStructId || data.typeStruct);
|
|
111
|
+
}
|
|
112
|
+
return true;
|
|
113
|
+
}, {
|
|
114
|
+
message: "Either typeStructId or typeStruct must be set for struct type",
|
|
115
|
+
})
|
|
116
|
+
.describe("A new Solidity struct parameter that can be created");
|
|
117
|
+
// Validation for Solidity struct parameter
|
|
118
|
+
export const solidityStructParamSchema = baseSolidityStructParamSchema
|
|
119
|
+
.extend({
|
|
120
|
+
id: z.string().uuid().describe("Internal ID of the parameter"),
|
|
121
|
+
structId: z.string().uuid().describe("Internal ID struct that owns this parameter"),
|
|
122
|
+
typeStruct: solidityStructSchema
|
|
123
|
+
.optional()
|
|
124
|
+
.nullable()
|
|
125
|
+
.describe('The sub-struct if the type is "struct", which will be created for use by this parameter. When creating a param, you must set only one of either typeStructId (to re-use an existing Solidity Struct) or typeStruct (creates a new struct for the param)'),
|
|
126
|
+
})
|
|
127
|
+
.refine((data) => {
|
|
128
|
+
// Validate that typeSize is only set for numeric types
|
|
129
|
+
if (data.typeSize != undefined) {
|
|
130
|
+
return ["int", "uint", "bytes"].includes(data.type);
|
|
131
|
+
}
|
|
132
|
+
return true;
|
|
133
|
+
}, {
|
|
134
|
+
message: "typeSize can only be set for int, uint, or bytes types",
|
|
135
|
+
})
|
|
136
|
+
.refine((data) => {
|
|
137
|
+
// Validate that typeSize2 is only set for fixed types
|
|
138
|
+
if (data.typeSize2 != undefined) {
|
|
139
|
+
return ["fixed", "ufixed"].includes(data.type);
|
|
140
|
+
}
|
|
141
|
+
return true;
|
|
142
|
+
}, {
|
|
143
|
+
message: "typeSize2 can only be set for fixed or ufixed types",
|
|
144
|
+
})
|
|
145
|
+
.refine((data) => {
|
|
146
|
+
// Validate that arraySize is only set when isArray is true
|
|
147
|
+
if (data.arraySize != undefined) {
|
|
148
|
+
return data.isArray === true;
|
|
149
|
+
}
|
|
150
|
+
return true;
|
|
151
|
+
}, {
|
|
152
|
+
message: "arraySize can only be set when isArray is true",
|
|
153
|
+
})
|
|
154
|
+
.refine((data) => {
|
|
155
|
+
// Validate that either typeStructId or typeStruct is set for struct type
|
|
156
|
+
if (data.type === "struct") {
|
|
157
|
+
return !!(data.typeStructId || data.typeStruct);
|
|
158
|
+
}
|
|
159
|
+
return true;
|
|
160
|
+
}, {
|
|
161
|
+
message: "Either typeStructId or typeStruct must be set for struct type",
|
|
162
|
+
})
|
|
163
|
+
.describe("A Solidity struct parameter");
|
|
164
|
+
// Validation for updating a struct
|
|
165
|
+
export const structUpdateSchema = z
|
|
166
|
+
.object({
|
|
167
|
+
name: z.string().describe("The new name for the struct"),
|
|
168
|
+
})
|
|
169
|
+
.describe("Parameters for updating a struct");
|
|
170
|
+
// Validation for updating a struct parameter
|
|
171
|
+
export const solidityStructParamUpdateSchema = z
|
|
172
|
+
.object({
|
|
173
|
+
name: z.string().optional().nullable().describe("The name of the parameter"),
|
|
174
|
+
description: z.string().optional().nullable().describe("Optional description of the parameter"),
|
|
175
|
+
type: z
|
|
176
|
+
.enum(["address", "bool", "bytes", "int", "string", "uint", "struct"])
|
|
177
|
+
.optional()
|
|
178
|
+
.nullable()
|
|
179
|
+
.describe("The Solidity type of the parameter"),
|
|
180
|
+
index: z
|
|
181
|
+
.number()
|
|
182
|
+
.int()
|
|
183
|
+
.min(0)
|
|
184
|
+
.optional()
|
|
185
|
+
.nullable()
|
|
186
|
+
.describe("This is the relative index in the contract function. It should start at 0, and must not skip any numbers."),
|
|
187
|
+
value: z
|
|
188
|
+
.string()
|
|
189
|
+
.optional()
|
|
190
|
+
.nullable()
|
|
191
|
+
.describe("This is an optional, static value for the parameter. If you set this, you will never be required or able to pass a value for this parameter when you execute the transaction, it will use the set value."),
|
|
192
|
+
typeSize: z
|
|
193
|
+
.number()
|
|
194
|
+
.int()
|
|
195
|
+
.positive()
|
|
196
|
+
.optional()
|
|
197
|
+
.nullable()
|
|
198
|
+
.describe("Optional size for the Solidity type (e.g., uint8, bytes32). Valid values: 1-32 for bytes, 8-256 for others"),
|
|
199
|
+
typeSize2: z
|
|
200
|
+
.number()
|
|
201
|
+
.int()
|
|
202
|
+
.positive()
|
|
203
|
+
.optional()
|
|
204
|
+
.nullable()
|
|
205
|
+
.describe("Optional second size for fixed/ufixed types (e.g., fixed8x18)"),
|
|
206
|
+
isArray: z.boolean().optional().nullable().describe("Whether this parameter is an array type"),
|
|
207
|
+
arraySize: z
|
|
208
|
+
.number()
|
|
209
|
+
.int()
|
|
210
|
+
.positive()
|
|
211
|
+
.optional()
|
|
212
|
+
.nullable()
|
|
213
|
+
.describe("Fixed size of the array, if applicable"),
|
|
214
|
+
typeStructId: z
|
|
215
|
+
.string()
|
|
216
|
+
.uuid()
|
|
217
|
+
.optional()
|
|
218
|
+
.nullable()
|
|
219
|
+
.describe('ID of an existing struct to use as the type, if type is "struct"'),
|
|
220
|
+
typeStruct: z
|
|
221
|
+
.object({
|
|
222
|
+
name: z.string().describe("Name of the new struct to create"),
|
|
223
|
+
params: z
|
|
224
|
+
.array(z.lazy(() => solidityStructParamUpdateSchema))
|
|
225
|
+
.describe("Parameters for the new struct"),
|
|
226
|
+
})
|
|
227
|
+
.optional()
|
|
228
|
+
.nullable()
|
|
229
|
+
.describe('The sub-struct if the type is "struct", which will be created for use by this parameter. When creating a param, you must set only one of either typeStructId (to re-use an existing Solidity Struct) or typeStruct (creates a new struct for the param)'),
|
|
230
|
+
})
|
|
231
|
+
.refine((data) => {
|
|
232
|
+
// Validate that typeSize is only set for numeric types
|
|
233
|
+
if (data.typeSize != undefined) {
|
|
234
|
+
return ["int", "uint", "bytes"].includes(data.type || "");
|
|
235
|
+
}
|
|
236
|
+
return true;
|
|
237
|
+
}, {
|
|
238
|
+
message: "typeSize can only be set for int, uint, or bytes types",
|
|
239
|
+
})
|
|
240
|
+
.refine((data) => {
|
|
241
|
+
// Validate that typeSize2 is only set for fixed types
|
|
242
|
+
if (data.typeSize2 != undefined) {
|
|
243
|
+
return ["fixed", "ufixed"].includes(data.type || "");
|
|
244
|
+
}
|
|
245
|
+
return true;
|
|
246
|
+
}, {
|
|
247
|
+
message: "typeSize2 can only be set for fixed or ufixed types",
|
|
248
|
+
})
|
|
249
|
+
.refine((data) => {
|
|
250
|
+
// Validate that arraySize is only set when isArray is true
|
|
251
|
+
if (data.arraySize != undefined) {
|
|
252
|
+
return data.isArray === true;
|
|
253
|
+
}
|
|
254
|
+
return true;
|
|
255
|
+
}, {
|
|
256
|
+
message: "arraySize can only be set when isArray is true",
|
|
257
|
+
})
|
|
258
|
+
.refine((data) => {
|
|
259
|
+
// Validate that either typeStructId or typeStruct is set for struct type
|
|
260
|
+
if (data.type === "struct") {
|
|
261
|
+
return !!(data.typeStructId || data.typeStruct);
|
|
262
|
+
}
|
|
263
|
+
return true;
|
|
264
|
+
}, {
|
|
265
|
+
message: "Either typeStructId or typeStruct must be set for struct type",
|
|
266
|
+
})
|
|
267
|
+
.describe("Properties that may be updated on a Solidity Struct Param");
|
|
268
|
+
// Validation for adding a parameter to a struct
|
|
269
|
+
export const addStructParamSchema = z
|
|
270
|
+
.object({
|
|
271
|
+
businessId: z.string().uuid().describe("ID of the business that owns the struct"),
|
|
272
|
+
structId: z.string().uuid().describe("ID of the struct to add the parameter to"),
|
|
273
|
+
param: newSolidityStructParamSchema,
|
|
274
|
+
})
|
|
275
|
+
.describe("Parameters for adding a parameter to a struct");
|
|
276
|
+
// Validation for updating multiple struct parameters
|
|
277
|
+
export const updateStructParamsSchema = z
|
|
278
|
+
.object({
|
|
279
|
+
businessId: z.string().uuid().describe("ID of the business that owns the struct"),
|
|
280
|
+
structId: z.string().uuid().describe("ID of the struct to update"),
|
|
281
|
+
updates: z.array(solidityStructParamUpdateSchema).describe("Array of parameter updates"),
|
|
282
|
+
})
|
|
283
|
+
.describe("Parameters for updating multiple struct parameters");
|
|
284
|
+
// Validation for removing a struct parameter
|
|
285
|
+
export const removeStructParamSchema = z
|
|
286
|
+
.object({
|
|
287
|
+
structId: z.string().uuid().describe("ID of the struct"),
|
|
288
|
+
structParamId: z.string().uuid().describe("ID of the parameter to remove"),
|
|
289
|
+
})
|
|
290
|
+
.describe("Parameters for removing a parameter from a struct");
|
|
291
|
+
//# sourceMappingURL=struct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"struct.js","sourceRoot":"","sources":["../../src/validation/struct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gCAAgC;AAChC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;KACrE,QAAQ,CAAC,kCAAkC,CAAC,CAAC;AAEhD,6CAA6C;AAC7C,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACtD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE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K,CAAC,+BAA+B,CAAC,CAAC,QAAQ,CAAC,4BAA4B,CAAC;CACzF,CAAC;KACD,QAAQ,CAAC,oDAAoD,CAAC,CAAC;AAElE,6CAA6C;AAC7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACxD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CAC3E,CAAC;KACD,QAAQ,CAAC,mDAAmD,CAAC,CAAC"}
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const logDescriptionSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
signature: z.ZodString;
|
|
5
|
+
topic: z.ZodString;
|
|
6
|
+
args: z.ZodLazy<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<string | any[], z.ZodTypeDef, string | any[]>]>, "many">>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
signature: string;
|
|
10
|
+
topic: string;
|
|
11
|
+
args: (string | any[])[];
|
|
12
|
+
}, {
|
|
13
|
+
name: string;
|
|
14
|
+
signature: string;
|
|
15
|
+
topic: string;
|
|
16
|
+
args: (string | any[])[];
|
|
17
|
+
}>;
|
|
18
|
+
export declare const logDescriptionArgsSchema: z.ZodType<string | Array<string | any>>;
|
|
19
|
+
export declare const transactionStatusSchema: z.ZodEnum<["Submitted", "Completed", "Retrying", "Failed", "Pending"]>;
|
|
20
|
+
export declare const transactionSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
contractMethodIds: z.ZodArray<z.ZodString, "many">;
|
|
23
|
+
apiCredentialId: z.ZodNullable<z.ZodString>;
|
|
24
|
+
apiKey: z.ZodNullable<z.ZodString>;
|
|
25
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
26
|
+
status: z.ZodEnum<["Submitted", "Completed", "Retrying", "Failed", "Pending"]>;
|
|
27
|
+
transactionHash: z.ZodNullable<z.ZodString>;
|
|
28
|
+
contractAddress: z.ZodString;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
functionName: z.ZodString;
|
|
31
|
+
chainId: z.ZodNumber;
|
|
32
|
+
memo: z.ZodNullable<z.ZodString>;
|
|
33
|
+
completed: z.ZodNullable<z.ZodNumber>;
|
|
34
|
+
walletId: z.ZodString;
|
|
35
|
+
failureReason: z.ZodNullable<z.ZodString>;
|
|
36
|
+
from: z.ZodString;
|
|
37
|
+
to: z.ZodNullable<z.ZodString>;
|
|
38
|
+
gasPrice: z.ZodNullable<z.ZodString>;
|
|
39
|
+
gasLimit: z.ZodNullable<z.ZodString>;
|
|
40
|
+
maxFeePerGas: z.ZodNullable<z.ZodString>;
|
|
41
|
+
maxPriorityFeePerGas: z.ZodNullable<z.ZodString>;
|
|
42
|
+
gasUsed: z.ZodNullable<z.ZodString>;
|
|
43
|
+
logs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
signature: z.ZodString;
|
|
46
|
+
topic: z.ZodString;
|
|
47
|
+
args: z.ZodLazy<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<string | any[], z.ZodTypeDef, string | any[]>]>, "many">>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
name: string;
|
|
50
|
+
signature: string;
|
|
51
|
+
topic: string;
|
|
52
|
+
args: (string | any[])[];
|
|
53
|
+
}, {
|
|
54
|
+
name: string;
|
|
55
|
+
signature: string;
|
|
56
|
+
topic: string;
|
|
57
|
+
args: (string | any[])[];
|
|
58
|
+
}>, "many">>;
|
|
59
|
+
updated: z.ZodNumber;
|
|
60
|
+
created: z.ZodNumber;
|
|
61
|
+
deleted: z.ZodBoolean;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
gasPrice: string | null;
|
|
64
|
+
maxFeePerGas: string | null;
|
|
65
|
+
maxPriorityFeePerGas: string | null;
|
|
66
|
+
status: "Submitted" | "Completed" | "Retrying" | "Failed" | "Pending";
|
|
67
|
+
name: string;
|
|
68
|
+
chainId: number;
|
|
69
|
+
transactionHash: string | null;
|
|
70
|
+
id: string;
|
|
71
|
+
contractAddress: string;
|
|
72
|
+
updated: number;
|
|
73
|
+
created: number;
|
|
74
|
+
deleted: boolean;
|
|
75
|
+
logs: {
|
|
76
|
+
name: string;
|
|
77
|
+
signature: string;
|
|
78
|
+
topic: string;
|
|
79
|
+
args: (string | any[])[];
|
|
80
|
+
}[] | null;
|
|
81
|
+
functionName: string;
|
|
82
|
+
walletId: string;
|
|
83
|
+
memo: string | null;
|
|
84
|
+
gasLimit: string | null;
|
|
85
|
+
userId: string | null;
|
|
86
|
+
contractMethodIds: string[];
|
|
87
|
+
apiCredentialId: string | null;
|
|
88
|
+
apiKey: string | null;
|
|
89
|
+
completed: number | null;
|
|
90
|
+
failureReason: string | null;
|
|
91
|
+
from: string;
|
|
92
|
+
to: string | null;
|
|
93
|
+
gasUsed: string | null;
|
|
94
|
+
}, {
|
|
95
|
+
gasPrice: string | null;
|
|
96
|
+
maxFeePerGas: string | null;
|
|
97
|
+
maxPriorityFeePerGas: string | null;
|
|
98
|
+
status: "Submitted" | "Completed" | "Retrying" | "Failed" | "Pending";
|
|
99
|
+
name: string;
|
|
100
|
+
chainId: number;
|
|
101
|
+
transactionHash: string | null;
|
|
102
|
+
id: string;
|
|
103
|
+
contractAddress: string;
|
|
104
|
+
updated: number;
|
|
105
|
+
created: number;
|
|
106
|
+
deleted: boolean;
|
|
107
|
+
logs: {
|
|
108
|
+
name: string;
|
|
109
|
+
signature: string;
|
|
110
|
+
topic: string;
|
|
111
|
+
args: (string | any[])[];
|
|
112
|
+
}[] | null;
|
|
113
|
+
functionName: string;
|
|
114
|
+
walletId: string;
|
|
115
|
+
memo: string | null;
|
|
116
|
+
gasLimit: string | null;
|
|
117
|
+
userId: string | null;
|
|
118
|
+
contractMethodIds: string[];
|
|
119
|
+
apiCredentialId: string | null;
|
|
120
|
+
apiKey: string | null;
|
|
121
|
+
completed: number | null;
|
|
122
|
+
failureReason: string | null;
|
|
123
|
+
from: string;
|
|
124
|
+
to: string | null;
|
|
125
|
+
gasUsed: string | null;
|
|
126
|
+
}>;
|
|
127
|
+
export declare const transactionListSchema: z.ZodObject<{
|
|
128
|
+
response: z.ZodArray<z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
contractMethodIds: z.ZodArray<z.ZodString, "many">;
|
|
131
|
+
apiCredentialId: z.ZodNullable<z.ZodString>;
|
|
132
|
+
apiKey: z.ZodNullable<z.ZodString>;
|
|
133
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
134
|
+
status: z.ZodEnum<["Submitted", "Completed", "Retrying", "Failed", "Pending"]>;
|
|
135
|
+
transactionHash: z.ZodNullable<z.ZodString>;
|
|
136
|
+
contractAddress: z.ZodString;
|
|
137
|
+
name: z.ZodString;
|
|
138
|
+
functionName: z.ZodString;
|
|
139
|
+
chainId: z.ZodNumber;
|
|
140
|
+
memo: z.ZodNullable<z.ZodString>;
|
|
141
|
+
completed: z.ZodNullable<z.ZodNumber>;
|
|
142
|
+
walletId: z.ZodString;
|
|
143
|
+
failureReason: z.ZodNullable<z.ZodString>;
|
|
144
|
+
from: z.ZodString;
|
|
145
|
+
to: z.ZodNullable<z.ZodString>;
|
|
146
|
+
gasPrice: z.ZodNullable<z.ZodString>;
|
|
147
|
+
gasLimit: z.ZodNullable<z.ZodString>;
|
|
148
|
+
maxFeePerGas: z.ZodNullable<z.ZodString>;
|
|
149
|
+
maxPriorityFeePerGas: z.ZodNullable<z.ZodString>;
|
|
150
|
+
gasUsed: z.ZodNullable<z.ZodString>;
|
|
151
|
+
logs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
signature: z.ZodString;
|
|
154
|
+
topic: z.ZodString;
|
|
155
|
+
args: z.ZodLazy<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodType<string | any[], z.ZodTypeDef, string | any[]>]>, "many">>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
name: string;
|
|
158
|
+
signature: string;
|
|
159
|
+
topic: string;
|
|
160
|
+
args: (string | any[])[];
|
|
161
|
+
}, {
|
|
162
|
+
name: string;
|
|
163
|
+
signature: string;
|
|
164
|
+
topic: string;
|
|
165
|
+
args: (string | any[])[];
|
|
166
|
+
}>, "many">>;
|
|
167
|
+
updated: z.ZodNumber;
|
|
168
|
+
created: z.ZodNumber;
|
|
169
|
+
deleted: z.ZodBoolean;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
gasPrice: string | null;
|
|
172
|
+
maxFeePerGas: string | null;
|
|
173
|
+
maxPriorityFeePerGas: string | null;
|
|
174
|
+
status: "Submitted" | "Completed" | "Retrying" | "Failed" | "Pending";
|
|
175
|
+
name: string;
|
|
176
|
+
chainId: number;
|
|
177
|
+
transactionHash: string | null;
|
|
178
|
+
id: string;
|
|
179
|
+
contractAddress: string;
|
|
180
|
+
updated: number;
|
|
181
|
+
created: number;
|
|
182
|
+
deleted: boolean;
|
|
183
|
+
logs: {
|
|
184
|
+
name: string;
|
|
185
|
+
signature: string;
|
|
186
|
+
topic: string;
|
|
187
|
+
args: (string | any[])[];
|
|
188
|
+
}[] | null;
|
|
189
|
+
functionName: string;
|
|
190
|
+
walletId: string;
|
|
191
|
+
memo: string | null;
|
|
192
|
+
gasLimit: string | null;
|
|
193
|
+
userId: string | null;
|
|
194
|
+
contractMethodIds: string[];
|
|
195
|
+
apiCredentialId: string | null;
|
|
196
|
+
apiKey: string | null;
|
|
197
|
+
completed: number | null;
|
|
198
|
+
failureReason: string | null;
|
|
199
|
+
from: string;
|
|
200
|
+
to: string | null;
|
|
201
|
+
gasUsed: string | null;
|
|
202
|
+
}, {
|
|
203
|
+
gasPrice: string | null;
|
|
204
|
+
maxFeePerGas: string | null;
|
|
205
|
+
maxPriorityFeePerGas: string | null;
|
|
206
|
+
status: "Submitted" | "Completed" | "Retrying" | "Failed" | "Pending";
|
|
207
|
+
name: string;
|
|
208
|
+
chainId: number;
|
|
209
|
+
transactionHash: string | null;
|
|
210
|
+
id: string;
|
|
211
|
+
contractAddress: string;
|
|
212
|
+
updated: number;
|
|
213
|
+
created: number;
|
|
214
|
+
deleted: boolean;
|
|
215
|
+
logs: {
|
|
216
|
+
name: string;
|
|
217
|
+
signature: string;
|
|
218
|
+
topic: string;
|
|
219
|
+
args: (string | any[])[];
|
|
220
|
+
}[] | null;
|
|
221
|
+
functionName: string;
|
|
222
|
+
walletId: string;
|
|
223
|
+
memo: string | null;
|
|
224
|
+
gasLimit: string | null;
|
|
225
|
+
userId: string | null;
|
|
226
|
+
contractMethodIds: string[];
|
|
227
|
+
apiCredentialId: string | null;
|
|
228
|
+
apiKey: string | null;
|
|
229
|
+
completed: number | null;
|
|
230
|
+
failureReason: string | null;
|
|
231
|
+
from: string;
|
|
232
|
+
to: string | null;
|
|
233
|
+
gasUsed: string | null;
|
|
234
|
+
}>, "many">;
|
|
235
|
+
page: z.ZodNumber;
|
|
236
|
+
pageSize: z.ZodNumber;
|
|
237
|
+
totalResults: z.ZodNumber;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
response: {
|
|
240
|
+
gasPrice: string | null;
|
|
241
|
+
maxFeePerGas: string | null;
|
|
242
|
+
maxPriorityFeePerGas: string | null;
|
|
243
|
+
status: "Submitted" | "Completed" | "Retrying" | "Failed" | "Pending";
|
|
244
|
+
name: string;
|
|
245
|
+
chainId: number;
|
|
246
|
+
transactionHash: string | null;
|
|
247
|
+
id: string;
|
|
248
|
+
contractAddress: string;
|
|
249
|
+
updated: number;
|
|
250
|
+
created: number;
|
|
251
|
+
deleted: boolean;
|
|
252
|
+
logs: {
|
|
253
|
+
name: string;
|
|
254
|
+
signature: string;
|
|
255
|
+
topic: string;
|
|
256
|
+
args: (string | any[])[];
|
|
257
|
+
}[] | null;
|
|
258
|
+
functionName: string;
|
|
259
|
+
walletId: string;
|
|
260
|
+
memo: string | null;
|
|
261
|
+
gasLimit: string | null;
|
|
262
|
+
userId: string | null;
|
|
263
|
+
contractMethodIds: string[];
|
|
264
|
+
apiCredentialId: string | null;
|
|
265
|
+
apiKey: string | null;
|
|
266
|
+
completed: number | null;
|
|
267
|
+
failureReason: string | null;
|
|
268
|
+
from: string;
|
|
269
|
+
to: string | null;
|
|
270
|
+
gasUsed: string | null;
|
|
271
|
+
}[];
|
|
272
|
+
page: number;
|
|
273
|
+
pageSize: number;
|
|
274
|
+
totalResults: number;
|
|
275
|
+
}, {
|
|
276
|
+
response: {
|
|
277
|
+
gasPrice: string | null;
|
|
278
|
+
maxFeePerGas: string | null;
|
|
279
|
+
maxPriorityFeePerGas: string | null;
|
|
280
|
+
status: "Submitted" | "Completed" | "Retrying" | "Failed" | "Pending";
|
|
281
|
+
name: string;
|
|
282
|
+
chainId: number;
|
|
283
|
+
transactionHash: string | null;
|
|
284
|
+
id: string;
|
|
285
|
+
contractAddress: string;
|
|
286
|
+
updated: number;
|
|
287
|
+
created: number;
|
|
288
|
+
deleted: boolean;
|
|
289
|
+
logs: {
|
|
290
|
+
name: string;
|
|
291
|
+
signature: string;
|
|
292
|
+
topic: string;
|
|
293
|
+
args: (string | any[])[];
|
|
294
|
+
}[] | null;
|
|
295
|
+
functionName: string;
|
|
296
|
+
walletId: string;
|
|
297
|
+
memo: string | null;
|
|
298
|
+
gasLimit: string | null;
|
|
299
|
+
userId: string | null;
|
|
300
|
+
contractMethodIds: string[];
|
|
301
|
+
apiCredentialId: string | null;
|
|
302
|
+
apiKey: string | null;
|
|
303
|
+
completed: number | null;
|
|
304
|
+
failureReason: string | null;
|
|
305
|
+
from: string;
|
|
306
|
+
to: string | null;
|
|
307
|
+
gasUsed: string | null;
|
|
308
|
+
}[];
|
|
309
|
+
page: number;
|
|
310
|
+
pageSize: number;
|
|
311
|
+
totalResults: number;
|
|
312
|
+
}>;
|
|
313
|
+
export declare const getTransactionSchema: z.ZodObject<{
|
|
314
|
+
transactionId: z.ZodString;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
transactionId: string;
|
|
317
|
+
}, {
|
|
318
|
+
transactionId: string;
|
|
319
|
+
}>;
|
|
320
|
+
export declare const listTransactionsSchema: z.ZodObject<{
|
|
321
|
+
businessId: z.ZodString;
|
|
322
|
+
pageSize: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
323
|
+
page: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
324
|
+
chainId: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
325
|
+
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Pending", "Submitted", "Completed", "Retrying", "Failed"]>>>;
|
|
326
|
+
walletId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
327
|
+
contractMethodId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
328
|
+
apiCredentialId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
329
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
330
|
+
memo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
331
|
+
createdAfter: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
332
|
+
createdBefore: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
333
|
+
}, "strip", z.ZodTypeAny, {
|
|
334
|
+
businessId: string;
|
|
335
|
+
status?: "Submitted" | "Completed" | "Retrying" | "Failed" | "Pending" | null | undefined;
|
|
336
|
+
chainId?: number | null | undefined;
|
|
337
|
+
page?: number | null | undefined;
|
|
338
|
+
pageSize?: number | null | undefined;
|
|
339
|
+
walletId?: string | null | undefined;
|
|
340
|
+
contractMethodId?: string | null | undefined;
|
|
341
|
+
memo?: string | null | undefined;
|
|
342
|
+
userId?: string | null | undefined;
|
|
343
|
+
apiCredentialId?: string | null | undefined;
|
|
344
|
+
createdAfter?: number | null | undefined;
|
|
345
|
+
createdBefore?: number | null | undefined;
|
|
346
|
+
}, {
|
|
347
|
+
businessId: string;
|
|
348
|
+
status?: "Submitted" | "Completed" | "Retrying" | "Failed" | "Pending" | null | undefined;
|
|
349
|
+
chainId?: number | null | undefined;
|
|
350
|
+
page?: number | null | undefined;
|
|
351
|
+
pageSize?: number | null | undefined;
|
|
352
|
+
walletId?: string | null | undefined;
|
|
353
|
+
contractMethodId?: string | null | undefined;
|
|
354
|
+
memo?: string | null | undefined;
|
|
355
|
+
userId?: string | null | undefined;
|
|
356
|
+
apiCredentialId?: string | null | undefined;
|
|
357
|
+
createdAfter?: number | null | undefined;
|
|
358
|
+
createdBefore?: number | null | undefined;
|
|
359
|
+
}>;
|