@sleet-js/neardata-types 0.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/LICENSE +9 -0
- package/README.md +42 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/block_response.d.ts +47 -0
- package/dist/interface/block_response.js +3 -0
- package/dist/interface/block_response.js.map +1 -0
- package/dist/interface/block_response_block_chunks.d.ts +22 -0
- package/dist/interface/block_response_block_chunks.js +5 -0
- package/dist/interface/block_response_block_chunks.js.map +1 -0
- package/dist/interface/block_response_shards.d.ts +62 -0
- package/dist/interface/block_response_shards.js +3 -0
- package/dist/interface/block_response_shards.js.map +1 -0
- package/dist/interface/index.d.ts +11 -0
- package/dist/interface/index.js +3 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/interface/receipts.d.ts +36 -0
- package/dist/interface/receipts.js +3 -0
- package/dist/interface/receipts.js.map +1 -0
- package/dist/interface/transactions.d.ts +29 -0
- package/dist/interface/transactions.js +3 -0
- package/dist/interface/transactions.js.map +1 -0
- package/dist/interface/transactions_actions_AddKey.d.ts +12 -0
- package/dist/interface/transactions_actions_AddKey.js +5 -0
- package/dist/interface/transactions_actions_AddKey.js.map +1 -0
- package/dist/interface/transactions_actions_CreateAccount.d.ts +2 -0
- package/dist/interface/transactions_actions_CreateAccount.js +11 -0
- package/dist/interface/transactions_actions_CreateAccount.js.map +1 -0
- package/dist/interface/transactions_actions_Delegate.d.ts +22 -0
- package/dist/interface/transactions_actions_Delegate.js +3 -0
- package/dist/interface/transactions_actions_Delegate.js.map +1 -0
- package/dist/interface/transactions_actions_DeleteAccount.d.ts +3 -0
- package/dist/interface/transactions_actions_DeleteAccount.js +5 -0
- package/dist/interface/transactions_actions_DeleteAccount.js.map +1 -0
- package/dist/interface/transactions_actions_FunctionCall.d.ts +6 -0
- package/dist/interface/transactions_actions_FunctionCall.js +5 -0
- package/dist/interface/transactions_actions_FunctionCall.js.map +1 -0
- package/dist/interface/transactions_actions_Transfer.d.ts +3 -0
- package/dist/interface/transactions_actions_Transfer.js +5 -0
- package/dist/interface/transactions_actions_Transfer.js.map +1 -0
- package/dist/interface/transactions_outcome_interface.d.ts +41 -0
- package/dist/interface/transactions_outcome_interface.js +3 -0
- package/dist/interface/transactions_outcome_interface.js.map +1 -0
- package/dist/zod/block_response.d.ts +508 -0
- package/dist/zod/block_response.js +56 -0
- package/dist/zod/block_response.js.map +1 -0
- package/dist/zod/block_response_block_chunks.d.ts +23 -0
- package/dist/zod/block_response_block_chunks.js +28 -0
- package/dist/zod/block_response_block_chunks.js.map +1 -0
- package/dist/zod/block_response_shards.d.ts +603 -0
- package/dist/zod/block_response_shards.js +73 -0
- package/dist/zod/block_response_shards.js.map +1 -0
- package/dist/zod/index.d.ts +11 -0
- package/dist/zod/index.js +21 -0
- package/dist/zod/index.js.map +1 -0
- package/dist/zod/receipts.d.ts +367 -0
- package/dist/zod/receipts.js +52 -0
- package/dist/zod/receipts.js.map +1 -0
- package/dist/zod/transactions.d.ts +240 -0
- package/dist/zod/transactions.js +42 -0
- package/dist/zod/transactions.js.map +1 -0
- package/dist/zod/transactions_actions_AddKey.d.ts +13 -0
- package/dist/zod/transactions_actions_AddKey.js +21 -0
- package/dist/zod/transactions_actions_AddKey.js.map +1 -0
- package/dist/zod/transactions_actions_CreateAccount.d.ts +2 -0
- package/dist/zod/transactions_actions_CreateAccount.js +7 -0
- package/dist/zod/transactions_actions_CreateAccount.js.map +1 -0
- package/dist/zod/transactions_actions_Delegate.d.ts +59 -0
- package/dist/zod/transactions_actions_Delegate.js +31 -0
- package/dist/zod/transactions_actions_Delegate.js.map +1 -0
- package/dist/zod/transactions_actions_DeleteAccount.d.ts +4 -0
- package/dist/zod/transactions_actions_DeleteAccount.js +9 -0
- package/dist/zod/transactions_actions_DeleteAccount.js.map +1 -0
- package/dist/zod/transactions_actions_FunctionCall.d.ts +7 -0
- package/dist/zod/transactions_actions_FunctionCall.js +12 -0
- package/dist/zod/transactions_actions_FunctionCall.js.map +1 -0
- package/dist/zod/transactions_actions_Transfer.d.ts +4 -0
- package/dist/zod/transactions_actions_Transfer.js +9 -0
- package/dist/zod/transactions_actions_Transfer.js.map +1 -0
- package/dist/zod/transactions_outcome_interface.d.ts +120 -0
- package/dist/zod/transactions_outcome_interface.js +55 -0
- package/dist/zod/transactions_outcome_interface.js.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const neardata_transactions_interface_z_const: z.ZodObject<{
|
|
3
|
+
transaction: z.ZodLazy<z.ZodObject<{
|
|
4
|
+
signer_id: z.ZodString;
|
|
5
|
+
public_key: z.ZodString;
|
|
6
|
+
nonce: z.ZodNumber;
|
|
7
|
+
receiver_id: z.ZodString;
|
|
8
|
+
actions: z.ZodArray<z.ZodLazy<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
|
|
9
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
10
|
+
DeleteAccount: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
beneficiary_id: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
public_key: z.ZodString;
|
|
15
|
+
access_key: z.ZodObject<{
|
|
16
|
+
nonce: z.ZodNumber;
|
|
17
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
18
|
+
permission_kind: z.ZodString;
|
|
19
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
20
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
21
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
}, z.core.$strip>]>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
method_name: z.ZodString;
|
|
27
|
+
args: z.ZodString;
|
|
28
|
+
gas: z.ZodNumber;
|
|
29
|
+
deposit: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
deposit: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
Delegate: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
delegate_action: z.ZodObject<{
|
|
36
|
+
sender_id: z.ZodString;
|
|
37
|
+
receiver_id: z.ZodString;
|
|
38
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
39
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
40
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
public_key: z.ZodString;
|
|
42
|
+
access_key: z.ZodObject<{
|
|
43
|
+
nonce: z.ZodNumber;
|
|
44
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
45
|
+
permission_kind: z.ZodString;
|
|
46
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
47
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
48
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>]>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
method_name: z.ZodString;
|
|
54
|
+
args: z.ZodString;
|
|
55
|
+
gas: z.ZodNumber;
|
|
56
|
+
deposit: z.ZodString;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
deposit: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
62
|
+
nonce: z.ZodNumber;
|
|
63
|
+
max_block_height: z.ZodNumber;
|
|
64
|
+
public_key: z.ZodString;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
signature: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$catchall<z.ZodAny>>]>>>;
|
|
69
|
+
priority_fee: z.ZodNumber;
|
|
70
|
+
signature: z.ZodString;
|
|
71
|
+
hash: z.ZodString;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
outcome: z.ZodObject<{
|
|
74
|
+
execution_outcome: z.ZodLazy<z.ZodObject<{
|
|
75
|
+
proof: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
76
|
+
hash: z.ZodString;
|
|
77
|
+
direction: z.ZodEnum<{
|
|
78
|
+
Left: "Left";
|
|
79
|
+
Right: "Right";
|
|
80
|
+
}>;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
block_hash: z.ZodString;
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
outcome: z.ZodLazy<z.ZodObject<{
|
|
85
|
+
logs: z.ZodArray<z.ZodString>;
|
|
86
|
+
receipt_ids: z.ZodArray<z.ZodString>;
|
|
87
|
+
gas_burnt: z.ZodNumber;
|
|
88
|
+
tokens_burnt: z.ZodString;
|
|
89
|
+
executor_id: z.ZodString;
|
|
90
|
+
status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
|
|
91
|
+
SuccessValue: z.ZodString;
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
+
SuccessReceiptId: z.ZodString;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
96
|
+
}, z.core.$strip>]>>;
|
|
97
|
+
metadata: z.ZodLazy<z.ZodObject<{
|
|
98
|
+
version: z.ZodNumber;
|
|
99
|
+
gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
100
|
+
cost: z.ZodString;
|
|
101
|
+
cost_category: z.ZodString;
|
|
102
|
+
description: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>>>>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
}, z.core.$strip>>;
|
|
107
|
+
receipt: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export declare const neardata_transactions_transaction_interface_z_const: z.ZodObject<{
|
|
111
|
+
signer_id: z.ZodString;
|
|
112
|
+
public_key: z.ZodString;
|
|
113
|
+
nonce: z.ZodNumber;
|
|
114
|
+
receiver_id: z.ZodString;
|
|
115
|
+
actions: z.ZodArray<z.ZodLazy<z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
|
|
116
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
117
|
+
DeleteAccount: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
beneficiary_id: z.ZodString;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
public_key: z.ZodString;
|
|
122
|
+
access_key: z.ZodObject<{
|
|
123
|
+
nonce: z.ZodNumber;
|
|
124
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
125
|
+
permission_kind: z.ZodString;
|
|
126
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
127
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
128
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
129
|
+
}, z.core.$strip>]>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
method_name: z.ZodString;
|
|
134
|
+
args: z.ZodString;
|
|
135
|
+
gas: z.ZodNumber;
|
|
136
|
+
deposit: z.ZodString;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
139
|
+
deposit: z.ZodString;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
Delegate: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
delegate_action: z.ZodObject<{
|
|
143
|
+
sender_id: z.ZodString;
|
|
144
|
+
receiver_id: z.ZodString;
|
|
145
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
146
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
147
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
public_key: z.ZodString;
|
|
149
|
+
access_key: z.ZodObject<{
|
|
150
|
+
nonce: z.ZodNumber;
|
|
151
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
152
|
+
permission_kind: z.ZodString;
|
|
153
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
154
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
155
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
156
|
+
}, z.core.$strip>]>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
method_name: z.ZodString;
|
|
161
|
+
args: z.ZodString;
|
|
162
|
+
gas: z.ZodNumber;
|
|
163
|
+
deposit: z.ZodString;
|
|
164
|
+
}, z.core.$strip>>;
|
|
165
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
deposit: z.ZodString;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
169
|
+
nonce: z.ZodNumber;
|
|
170
|
+
max_block_height: z.ZodNumber;
|
|
171
|
+
public_key: z.ZodString;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
signature: z.ZodString;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
}, z.core.$catchall<z.ZodAny>>]>>>;
|
|
176
|
+
priority_fee: z.ZodNumber;
|
|
177
|
+
signature: z.ZodString;
|
|
178
|
+
hash: z.ZodString;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export declare const neardata_action_interface_z_const: z.ZodUnion<readonly [z.ZodLiteral<"CreateAccount">, z.ZodLiteral<"DeleteAccount">, z.ZodObject<{
|
|
181
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
182
|
+
DeleteAccount: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
beneficiary_id: z.ZodString;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
public_key: z.ZodString;
|
|
187
|
+
access_key: z.ZodObject<{
|
|
188
|
+
nonce: z.ZodNumber;
|
|
189
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
190
|
+
permission_kind: z.ZodString;
|
|
191
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
192
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
193
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
194
|
+
}, z.core.$strip>]>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
method_name: z.ZodString;
|
|
199
|
+
args: z.ZodString;
|
|
200
|
+
gas: z.ZodNumber;
|
|
201
|
+
deposit: z.ZodString;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
deposit: z.ZodString;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
Delegate: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
delegate_action: z.ZodObject<{
|
|
208
|
+
sender_id: z.ZodString;
|
|
209
|
+
receiver_id: z.ZodString;
|
|
210
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
211
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
212
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
public_key: z.ZodString;
|
|
214
|
+
access_key: z.ZodObject<{
|
|
215
|
+
nonce: z.ZodNumber;
|
|
216
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
217
|
+
permission_kind: z.ZodString;
|
|
218
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
219
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
220
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
221
|
+
}, z.core.$strip>]>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
method_name: z.ZodString;
|
|
226
|
+
args: z.ZodString;
|
|
227
|
+
gas: z.ZodNumber;
|
|
228
|
+
deposit: z.ZodString;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
deposit: z.ZodString;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
234
|
+
nonce: z.ZodNumber;
|
|
235
|
+
max_block_height: z.ZodNumber;
|
|
236
|
+
public_key: z.ZodString;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
signature: z.ZodString;
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
|
+
}, z.core.$catchall<z.ZodAny>>]>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { neardata_transactions_outcome_interface_z_const } from "./transactions_outcome_interface";
|
|
3
|
+
import { neardata_function_call_action_interface_z_const } from "./transactions_actions_FunctionCall";
|
|
4
|
+
import { neardata_transfer_action_interface_z_const } from "./transactions_actions_Transfer";
|
|
5
|
+
import { neardata_delegate_action_interface_z_const } from "./transactions_actions_Delegate";
|
|
6
|
+
import { neardata_add_key_action_interface_z_const } from "./transactions_actions_AddKey";
|
|
7
|
+
import { neardata_delete_account_action_interface_z_const } from "./transactions_actions_DeleteAccount";
|
|
8
|
+
import { neardata_create_account_action_interface_z_const } from "./transactions_actions_CreateAccount";
|
|
9
|
+
// ==============================================
|
|
10
|
+
// ====== neardata_transaction_interface =======
|
|
11
|
+
export const neardata_transactions_interface_z_const = z.object({
|
|
12
|
+
transaction: z.lazy(() => neardata_transactions_transaction_interface_z_const),
|
|
13
|
+
outcome: neardata_transactions_outcome_interface_z_const,
|
|
14
|
+
});
|
|
15
|
+
export const neardata_transactions_transaction_interface_z_const = z.object({
|
|
16
|
+
signer_id: z.string(),
|
|
17
|
+
public_key: z.string(),
|
|
18
|
+
nonce: z.number(),
|
|
19
|
+
receiver_id: z.string(),
|
|
20
|
+
actions: z.array(z.lazy(() => neardata_action_interface_z_const)),
|
|
21
|
+
priority_fee: z.number(),
|
|
22
|
+
signature: z.string(),
|
|
23
|
+
hash: z.string(),
|
|
24
|
+
});
|
|
25
|
+
// ==============================================
|
|
26
|
+
// ========= neardata_action_interface =========
|
|
27
|
+
// Helper schema for actions that can be either an object or a string
|
|
28
|
+
export const neardata_action_interface_z_const = z.union([
|
|
29
|
+
z.literal("CreateAccount"),
|
|
30
|
+
z.literal("DeleteAccount"),
|
|
31
|
+
z.object({
|
|
32
|
+
CreateAccount: z.object({}).optional(),
|
|
33
|
+
DeleteAccount: neardata_delete_account_action_interface_z_const.optional(),
|
|
34
|
+
AddKey: neardata_add_key_action_interface_z_const.optional(),
|
|
35
|
+
FunctionCall: neardata_function_call_action_interface_z_const.optional(),
|
|
36
|
+
Transfer: neardata_transfer_action_interface_z_const.optional(),
|
|
37
|
+
Delegate: neardata_delegate_action_interface_z_const.optional(),
|
|
38
|
+
}).catchall(z.any()),
|
|
39
|
+
]);
|
|
40
|
+
// ==============================================
|
|
41
|
+
// copyright 2025 by sleet.near
|
|
42
|
+
//# sourceMappingURL=transactions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../src/zod/transactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAAE,+CAA+C,EAAE,MAAM,kCAAkC,CAAC;AACnG,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EAAE,0CAA0C,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,0CAA0C,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,yCAAyC,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,gDAAgD,EAAE,MAAM,sCAAsC,CAAC;AACxG,OAAO,EAAE,gDAAgD,EAAE,MAAM,sCAAsC,CAAC;AAExG,iDAAiD;AACjD,gDAAgD;AAEhD,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,WAAW,EAAE,CAAC,CAAC,IAAI,CACjB,GAAG,EAAE,CAAC,mDAAmD,CAC1D;IACD,OAAO,EAAE,+CAA+C;CACzD,CAAsD,CAAC;AAExD,MAAM,CAAC,MAAM,mDAAmD,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,iCAAiC,CAAC,CAAC;IACjE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAkE,CAAC;AAEpE,iDAAiD;AACjD,gDAAgD;AAEhD,qEAAqE;AACrE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC;IACvD,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IAC1B,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IAC1B,CAAC,CAAC,MAAM,CAAC;QACP,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACtC,aAAa,EAAE,gDAAgD,CAAC,QAAQ,EAAE;QAC1E,MAAM,EAAE,yCAAyC,CAAC,QAAQ,EAAE;QAC5D,YAAY,EAAE,+CAA+C,CAAC,QAAQ,EAAE;QACxE,QAAQ,EAAE,0CAA0C,CAAC,QAAQ,EAAE;QAC/D,QAAQ,EAAE,0CAA0C,CAAC,QAAQ,EAAE;KAChE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACrB,CAAgD,CAAC;AAElD,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const neardata_add_key_action_interface_z_const: z.ZodObject<{
|
|
3
|
+
public_key: z.ZodString;
|
|
4
|
+
access_key: z.ZodObject<{
|
|
5
|
+
nonce: z.ZodNumber;
|
|
6
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
7
|
+
permission_kind: z.ZodString;
|
|
8
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
9
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>]>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// ======================================================
|
|
3
|
+
// ====== neardata_add_key_action_interface =======
|
|
4
|
+
export const neardata_add_key_action_interface_z_const = z.object({
|
|
5
|
+
public_key: z.string(),
|
|
6
|
+
access_key: z.object({
|
|
7
|
+
nonce: z.number(),
|
|
8
|
+
permission: z.union([
|
|
9
|
+
z.string(),
|
|
10
|
+
z.object({
|
|
11
|
+
permission_kind: z.string(),
|
|
12
|
+
allowance: z.string().optional(),
|
|
13
|
+
receiver_id: z.string().optional(),
|
|
14
|
+
method_names: z.array(z.string()).optional(),
|
|
15
|
+
}),
|
|
16
|
+
]),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
19
|
+
// ======================================================
|
|
20
|
+
// copyright 2025 by sleet.near
|
|
21
|
+
//# sourceMappingURL=transactions_actions_AddKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_AddKey.js","sourceRoot":"","sources":["../../src/zod/transactions_actions_AddKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yDAAyD;AACzD,mDAAmD;AAEnD,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;QACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QACjB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC;YAClB,CAAC,CAAC,MAAM,EAAE;YACV,CAAC,CAAC,MAAM,CAAC;gBACP,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;gBAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAChC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAClC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;aAC7C,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAwD,CAAC;AAE1D,yDAAyD;AACzD,+BAA+B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// ======================================================
|
|
3
|
+
// ====== neardata_create_account_action_interface =======
|
|
4
|
+
export const neardata_create_account_action_interface_z_const = z.object({});
|
|
5
|
+
// ======================================================
|
|
6
|
+
// copyright 2025 by sleet.near
|
|
7
|
+
//# sourceMappingURL=transactions_actions_CreateAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_CreateAccount.js","sourceRoot":"","sources":["../../src/zod/transactions_actions_CreateAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yDAAyD;AACzD,0DAA0D;AAE1D,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC,CAAC,MAAM,CACtE,EAAE,CAC2D,CAAC;AAEhE,yDAAyD;AACzD,+BAA+B"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const neardata_delegate_action_inner_action_interface_z_const: z.ZodObject<{
|
|
3
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
4
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
public_key: z.ZodString;
|
|
6
|
+
access_key: z.ZodObject<{
|
|
7
|
+
nonce: z.ZodNumber;
|
|
8
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
9
|
+
permission_kind: z.ZodString;
|
|
10
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
11
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
12
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>]>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
method_name: z.ZodString;
|
|
18
|
+
args: z.ZodString;
|
|
19
|
+
gas: z.ZodNumber;
|
|
20
|
+
deposit: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
deposit: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
26
|
+
export declare const neardata_delegate_action_interface_z_const: z.ZodObject<{
|
|
27
|
+
delegate_action: z.ZodObject<{
|
|
28
|
+
sender_id: z.ZodString;
|
|
29
|
+
receiver_id: z.ZodString;
|
|
30
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
31
|
+
CreateAccount: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
32
|
+
AddKey: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
public_key: z.ZodString;
|
|
34
|
+
access_key: z.ZodObject<{
|
|
35
|
+
nonce: z.ZodNumber;
|
|
36
|
+
permission: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
37
|
+
permission_kind: z.ZodString;
|
|
38
|
+
allowance: z.ZodOptional<z.ZodString>;
|
|
39
|
+
receiver_id: z.ZodOptional<z.ZodString>;
|
|
40
|
+
method_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
}, z.core.$strip>]>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
FunctionCall: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
method_name: z.ZodString;
|
|
46
|
+
args: z.ZodString;
|
|
47
|
+
gas: z.ZodNumber;
|
|
48
|
+
deposit: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
Transfer: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
deposit: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
54
|
+
nonce: z.ZodNumber;
|
|
55
|
+
max_block_height: z.ZodNumber;
|
|
56
|
+
public_key: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
signature: z.ZodString;
|
|
59
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { neardata_function_call_action_interface_z_const } from "./transactions_actions_FunctionCall";
|
|
3
|
+
import { neardata_transfer_action_interface_z_const } from "./transactions_actions_Transfer";
|
|
4
|
+
import { neardata_create_account_action_interface_z_const } from "./transactions_actions_CreateAccount";
|
|
5
|
+
import { neardata_add_key_action_interface_z_const } from "./transactions_actions_AddKey";
|
|
6
|
+
// =================================================
|
|
7
|
+
// ====== neardata_delegate_action_inner_action_interface =======
|
|
8
|
+
export const neardata_delegate_action_inner_action_interface_z_const = z
|
|
9
|
+
.object({
|
|
10
|
+
CreateAccount: neardata_create_account_action_interface_z_const.optional(),
|
|
11
|
+
AddKey: neardata_add_key_action_interface_z_const.optional(),
|
|
12
|
+
FunctionCall: neardata_function_call_action_interface_z_const.optional(),
|
|
13
|
+
Transfer: neardata_transfer_action_interface_z_const.optional(),
|
|
14
|
+
})
|
|
15
|
+
.catchall(z.any());
|
|
16
|
+
// =================================================
|
|
17
|
+
// ====== neardata_delegate_action_interface =======
|
|
18
|
+
export const neardata_delegate_action_interface_z_const = z.object({
|
|
19
|
+
delegate_action: z.object({
|
|
20
|
+
sender_id: z.string(),
|
|
21
|
+
receiver_id: z.string(),
|
|
22
|
+
actions: z.array(neardata_delegate_action_inner_action_interface_z_const),
|
|
23
|
+
nonce: z.number(),
|
|
24
|
+
max_block_height: z.number(),
|
|
25
|
+
public_key: z.string(),
|
|
26
|
+
}),
|
|
27
|
+
signature: z.string(),
|
|
28
|
+
});
|
|
29
|
+
// ==============================================
|
|
30
|
+
// copyright 2025 by sleet.near
|
|
31
|
+
//# sourceMappingURL=transactions_actions_Delegate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_Delegate.js","sourceRoot":"","sources":["../../src/zod/transactions_actions_Delegate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EAAE,0CAA0C,EAAE,MAAM,iCAAiC,CAAC;AAC7F,OAAO,EAAE,gDAAgD,EAAE,MAAM,sCAAsC,CAAC;AACxG,OAAO,EAAE,yCAAyC,EAAE,MAAM,+BAA+B,CAAC;AAE1F,oDAAoD;AACpD,iEAAiE;AAEjE,MAAM,CAAC,MAAM,uDAAuD,GAAG,CAAC;KACrE,MAAM,CAAC;IACN,aAAa,EAAE,gDAAgD,CAAC,QAAQ,EAAE;IAC1E,MAAM,EAAE,yCAAyC,CAAC,QAAQ,EAAE;IAC5D,YAAY,EAAE,+CAA+C,CAAC,QAAQ,EAAE;IACxE,QAAQ,EAAE,0CAA0C,CAAC,QAAQ,EAAE;CAChE,CAAC;KACD,QAAQ,CACP,CAAC,CAAC,GAAG,EAAE,CAC6D,CAAC;AAEzE,oDAAoD;AACpD,oDAAoD;AAEpD,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,CAAC,MAAM,CAAC;IACjE,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC;QACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,uDAAuD,CAAC;QACzE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QACjB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;QAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;KACvB,CAAC;IACF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAyD,CAAC;AAE3D,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// ======================================================
|
|
3
|
+
// ====== neardata_delete_account_action_interface =======
|
|
4
|
+
export const neardata_delete_account_action_interface_z_const = z.object({
|
|
5
|
+
beneficiary_id: z.string(),
|
|
6
|
+
});
|
|
7
|
+
// ======================================================
|
|
8
|
+
// copyright 2025 by sleet.near
|
|
9
|
+
//# sourceMappingURL=transactions_actions_DeleteAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_DeleteAccount.js","sourceRoot":"","sources":["../../src/zod/transactions_actions_DeleteAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yDAAyD;AACzD,0DAA0D;AAE1D,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC,CAAC,MAAM,CAAC;IACvE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAA+D,CAAC;AAEjE,yDAAyD;AACzD,+BAA+B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// ======================================================
|
|
3
|
+
// ====== neardata_function_call_action_interface =======
|
|
4
|
+
export const neardata_function_call_action_interface_z_const = z.object({
|
|
5
|
+
method_name: z.string(),
|
|
6
|
+
args: z.string(),
|
|
7
|
+
gas: z.number(),
|
|
8
|
+
deposit: z.string(),
|
|
9
|
+
});
|
|
10
|
+
// ==============================================
|
|
11
|
+
// copyright 2025 by sleet.near
|
|
12
|
+
//# sourceMappingURL=transactions_actions_FunctionCall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_FunctionCall.js","sourceRoot":"","sources":["../../src/zod/transactions_actions_FunctionCall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yDAAyD;AACzD,yDAAyD;AAEzD,MAAM,CAAC,MAAM,+CAA+C,GAAG,CAAC,CAAC,MAAM,CAAC;IACtE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAA8D,CAAC;AAEhE,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
// ======================================================
|
|
3
|
+
// ========= neardata_transfer_action_interface =========
|
|
4
|
+
export const neardata_transfer_action_interface_z_const = z.object({
|
|
5
|
+
deposit: z.string(),
|
|
6
|
+
});
|
|
7
|
+
// ==============================================
|
|
8
|
+
// copyright 2025 by sleet.near
|
|
9
|
+
//# sourceMappingURL=transactions_actions_Transfer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactions_actions_Transfer.js","sourceRoot":"","sources":["../../src/zod/transactions_actions_Transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yDAAyD;AACzD,yDAAyD;AAEzD,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,CAAC,MAAM,CAAC;IACjE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAyD,CAAC;AAE3D,iDAAiD;AACjD,+BAA+B"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const neardata_receipt_interface_z_const: z.ZodObject<{}, z.core.$loose>;
|
|
3
|
+
export declare const neardata_transactions_outcome_interface_z_const: z.ZodObject<{
|
|
4
|
+
execution_outcome: z.ZodLazy<z.ZodObject<{
|
|
5
|
+
proof: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
6
|
+
hash: z.ZodString;
|
|
7
|
+
direction: z.ZodEnum<{
|
|
8
|
+
Left: "Left";
|
|
9
|
+
Right: "Right";
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$strip>>>;
|
|
12
|
+
block_hash: z.ZodString;
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
outcome: z.ZodLazy<z.ZodObject<{
|
|
15
|
+
logs: z.ZodArray<z.ZodString>;
|
|
16
|
+
receipt_ids: z.ZodArray<z.ZodString>;
|
|
17
|
+
gas_burnt: z.ZodNumber;
|
|
18
|
+
tokens_burnt: z.ZodString;
|
|
19
|
+
executor_id: z.ZodString;
|
|
20
|
+
status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
|
|
21
|
+
SuccessValue: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
SuccessReceiptId: z.ZodString;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
26
|
+
}, z.core.$strip>]>>;
|
|
27
|
+
metadata: z.ZodLazy<z.ZodObject<{
|
|
28
|
+
version: z.ZodNumber;
|
|
29
|
+
gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
30
|
+
cost: z.ZodString;
|
|
31
|
+
cost_category: z.ZodString;
|
|
32
|
+
description: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>>>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
receipt: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export declare const neardata_execution_outcome_interface_z_const: z.ZodObject<{
|
|
40
|
+
proof: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
41
|
+
hash: z.ZodString;
|
|
42
|
+
direction: z.ZodEnum<{
|
|
43
|
+
Left: "Left";
|
|
44
|
+
Right: "Right";
|
|
45
|
+
}>;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
block_hash: z.ZodString;
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
outcome: z.ZodLazy<z.ZodObject<{
|
|
50
|
+
logs: z.ZodArray<z.ZodString>;
|
|
51
|
+
receipt_ids: z.ZodArray<z.ZodString>;
|
|
52
|
+
gas_burnt: z.ZodNumber;
|
|
53
|
+
tokens_burnt: z.ZodString;
|
|
54
|
+
executor_id: z.ZodString;
|
|
55
|
+
status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
|
|
56
|
+
SuccessValue: z.ZodString;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
SuccessReceiptId: z.ZodString;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
61
|
+
}, z.core.$strip>]>>;
|
|
62
|
+
metadata: z.ZodLazy<z.ZodObject<{
|
|
63
|
+
version: z.ZodNumber;
|
|
64
|
+
gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
65
|
+
cost: z.ZodString;
|
|
66
|
+
cost_category: z.ZodString;
|
|
67
|
+
description: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strip>>>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export declare const neardata_merkle_proof_node_interface_z_const: z.ZodObject<{
|
|
73
|
+
hash: z.ZodString;
|
|
74
|
+
direction: z.ZodEnum<{
|
|
75
|
+
Left: "Left";
|
|
76
|
+
Right: "Right";
|
|
77
|
+
}>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export declare const neardata_outcome_interface_z_const: z.ZodObject<{
|
|
80
|
+
logs: z.ZodArray<z.ZodString>;
|
|
81
|
+
receipt_ids: z.ZodArray<z.ZodString>;
|
|
82
|
+
gas_burnt: z.ZodNumber;
|
|
83
|
+
tokens_burnt: z.ZodString;
|
|
84
|
+
executor_id: z.ZodString;
|
|
85
|
+
status: z.ZodLazy<z.ZodUnion<readonly [z.ZodObject<{
|
|
86
|
+
SuccessValue: z.ZodString;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
SuccessReceiptId: z.ZodString;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
91
|
+
}, z.core.$strip>]>>;
|
|
92
|
+
metadata: z.ZodLazy<z.ZodObject<{
|
|
93
|
+
version: z.ZodNumber;
|
|
94
|
+
gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
95
|
+
cost: z.ZodString;
|
|
96
|
+
cost_category: z.ZodString;
|
|
97
|
+
description: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>>>>;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export declare const neardata_outcome_metadata_interface_z_const: z.ZodObject<{
|
|
102
|
+
version: z.ZodNumber;
|
|
103
|
+
gas_profile: z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
104
|
+
cost: z.ZodString;
|
|
105
|
+
cost_category: z.ZodString;
|
|
106
|
+
description: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>>>>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export declare const neardata_gas_profile_entry_interface_z_const: z.ZodObject<{
|
|
110
|
+
cost: z.ZodString;
|
|
111
|
+
cost_category: z.ZodString;
|
|
112
|
+
description: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export declare const neardata_outcome_status_interface_z_const: z.ZodUnion<readonly [z.ZodObject<{
|
|
115
|
+
SuccessValue: z.ZodString;
|
|
116
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
117
|
+
SuccessReceiptId: z.ZodString;
|
|
118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
|
+
Failure: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
120
|
+
}, z.core.$strip>]>;
|