@near-kit-tool-box/fun 0.0.6 → 0.0.8

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.
@@ -0,0 +1,534 @@
1
+ import { Near } from "near-kit";
2
+ export declare function pumpopoly_move_player_fun(near: Near, pumpopoly_contractId: string): Promise<{
3
+ final_execution_status: "NONE";
4
+ transaction?: {
5
+ hash: string;
6
+ signer_id: string;
7
+ receiver_id: string;
8
+ nonce: number;
9
+ } | undefined;
10
+ } | {
11
+ final_execution_status: "INCLUDED";
12
+ transaction?: {
13
+ hash: string;
14
+ signer_id: string;
15
+ receiver_id: string;
16
+ nonce: number;
17
+ } | undefined;
18
+ } | {
19
+ final_execution_status: "INCLUDED_FINAL";
20
+ transaction?: {
21
+ hash: string;
22
+ signer_id: string;
23
+ receiver_id: string;
24
+ nonce: number;
25
+ } | undefined;
26
+ } | {
27
+ final_execution_status: "EXECUTED_OPTIMISTIC";
28
+ status: "Unknown" | "Pending" | {
29
+ SuccessValue: string;
30
+ } | {
31
+ SuccessReceiptId: string;
32
+ } | {
33
+ Failure: {
34
+ [x: string]: any;
35
+ error_message?: string | undefined;
36
+ error_type?: string | undefined;
37
+ };
38
+ };
39
+ transaction: {
40
+ signer_id: string;
41
+ public_key: string;
42
+ nonce: number;
43
+ receiver_id: string;
44
+ actions: ("CreateAccount" | {
45
+ CreateAccount: Record<string, never>;
46
+ } | {
47
+ Transfer: {
48
+ deposit: string;
49
+ };
50
+ } | {
51
+ FunctionCall: {
52
+ method_name: string;
53
+ args: string;
54
+ gas: number;
55
+ deposit: string;
56
+ };
57
+ } | {
58
+ DeployContract: {
59
+ code: string;
60
+ };
61
+ } | {
62
+ DeployGlobalContract: {
63
+ code: string;
64
+ };
65
+ } | {
66
+ DeployGlobalContractByAccountId: {
67
+ code: string;
68
+ };
69
+ } | {
70
+ Stake: {
71
+ stake: string;
72
+ public_key: string;
73
+ };
74
+ } | {
75
+ AddKey: {
76
+ public_key: string;
77
+ access_key: {
78
+ nonce: number;
79
+ permission: "FullAccess" | {
80
+ FunctionCall: {
81
+ receiver_id: string;
82
+ method_names: string[];
83
+ allowance?: string | null | undefined;
84
+ };
85
+ };
86
+ };
87
+ };
88
+ } | {
89
+ DeleteKey: {
90
+ public_key: string;
91
+ };
92
+ } | {
93
+ DeleteAccount: {
94
+ beneficiary_id: string;
95
+ };
96
+ } | {
97
+ UseGlobalContract: {
98
+ code_hash: string;
99
+ };
100
+ } | {
101
+ UseGlobalContractByAccountId: {
102
+ account_id: string;
103
+ };
104
+ } | {
105
+ Delegate: {
106
+ delegate_action: {
107
+ sender_id: string;
108
+ receiver_id: string;
109
+ actions: any[];
110
+ nonce: number;
111
+ max_block_height: number;
112
+ public_key: string;
113
+ };
114
+ signature: string;
115
+ };
116
+ } | {
117
+ DeterministicStateInit: {
118
+ deposit: string;
119
+ };
120
+ })[];
121
+ signature: string;
122
+ hash: string;
123
+ priority_fee?: number | undefined;
124
+ };
125
+ transaction_outcome: {
126
+ id: string;
127
+ outcome: {
128
+ logs: string[];
129
+ receipt_ids: string[];
130
+ gas_burnt: number;
131
+ tokens_burnt: string;
132
+ executor_id: string;
133
+ status: "Unknown" | "Pending" | {
134
+ SuccessValue: string;
135
+ } | {
136
+ SuccessReceiptId: string;
137
+ } | {
138
+ Failure: {
139
+ [x: string]: any;
140
+ error_message?: string | undefined;
141
+ error_type?: string | undefined;
142
+ };
143
+ };
144
+ metadata?: {
145
+ version: number;
146
+ gas_profile?: {
147
+ [x: string]: any;
148
+ cost?: string | undefined;
149
+ cost_category?: string | undefined;
150
+ gas_used?: string | undefined;
151
+ }[] | null | undefined;
152
+ } | undefined;
153
+ };
154
+ block_hash: string;
155
+ proof: {
156
+ hash: string;
157
+ direction: "Left" | "Right";
158
+ }[];
159
+ };
160
+ receipts_outcome: {
161
+ id: string;
162
+ outcome: {
163
+ logs: string[];
164
+ receipt_ids: string[];
165
+ gas_burnt: number;
166
+ tokens_burnt: string;
167
+ executor_id: string;
168
+ status: "Unknown" | "Pending" | {
169
+ SuccessValue: string;
170
+ } | {
171
+ SuccessReceiptId: string;
172
+ } | {
173
+ Failure: {
174
+ [x: string]: any;
175
+ error_message?: string | undefined;
176
+ error_type?: string | undefined;
177
+ };
178
+ };
179
+ metadata?: {
180
+ version: number;
181
+ gas_profile?: {
182
+ [x: string]: any;
183
+ cost?: string | undefined;
184
+ cost_category?: string | undefined;
185
+ gas_used?: string | undefined;
186
+ }[] | null | undefined;
187
+ } | undefined;
188
+ };
189
+ block_hash: string;
190
+ proof: {
191
+ hash: string;
192
+ direction: "Left" | "Right";
193
+ }[];
194
+ }[];
195
+ } | {
196
+ final_execution_status: "EXECUTED";
197
+ status: "Unknown" | "Pending" | {
198
+ SuccessValue: string;
199
+ } | {
200
+ SuccessReceiptId: string;
201
+ } | {
202
+ Failure: {
203
+ [x: string]: any;
204
+ error_message?: string | undefined;
205
+ error_type?: string | undefined;
206
+ };
207
+ };
208
+ transaction: {
209
+ signer_id: string;
210
+ public_key: string;
211
+ nonce: number;
212
+ receiver_id: string;
213
+ actions: ("CreateAccount" | {
214
+ CreateAccount: Record<string, never>;
215
+ } | {
216
+ Transfer: {
217
+ deposit: string;
218
+ };
219
+ } | {
220
+ FunctionCall: {
221
+ method_name: string;
222
+ args: string;
223
+ gas: number;
224
+ deposit: string;
225
+ };
226
+ } | {
227
+ DeployContract: {
228
+ code: string;
229
+ };
230
+ } | {
231
+ DeployGlobalContract: {
232
+ code: string;
233
+ };
234
+ } | {
235
+ DeployGlobalContractByAccountId: {
236
+ code: string;
237
+ };
238
+ } | {
239
+ Stake: {
240
+ stake: string;
241
+ public_key: string;
242
+ };
243
+ } | {
244
+ AddKey: {
245
+ public_key: string;
246
+ access_key: {
247
+ nonce: number;
248
+ permission: "FullAccess" | {
249
+ FunctionCall: {
250
+ receiver_id: string;
251
+ method_names: string[];
252
+ allowance?: string | null | undefined;
253
+ };
254
+ };
255
+ };
256
+ };
257
+ } | {
258
+ DeleteKey: {
259
+ public_key: string;
260
+ };
261
+ } | {
262
+ DeleteAccount: {
263
+ beneficiary_id: string;
264
+ };
265
+ } | {
266
+ UseGlobalContract: {
267
+ code_hash: string;
268
+ };
269
+ } | {
270
+ UseGlobalContractByAccountId: {
271
+ account_id: string;
272
+ };
273
+ } | {
274
+ Delegate: {
275
+ delegate_action: {
276
+ sender_id: string;
277
+ receiver_id: string;
278
+ actions: any[];
279
+ nonce: number;
280
+ max_block_height: number;
281
+ public_key: string;
282
+ };
283
+ signature: string;
284
+ };
285
+ } | {
286
+ DeterministicStateInit: {
287
+ deposit: string;
288
+ };
289
+ })[];
290
+ signature: string;
291
+ hash: string;
292
+ priority_fee?: number | undefined;
293
+ };
294
+ transaction_outcome: {
295
+ id: string;
296
+ outcome: {
297
+ logs: string[];
298
+ receipt_ids: string[];
299
+ gas_burnt: number;
300
+ tokens_burnt: string;
301
+ executor_id: string;
302
+ status: "Unknown" | "Pending" | {
303
+ SuccessValue: string;
304
+ } | {
305
+ SuccessReceiptId: string;
306
+ } | {
307
+ Failure: {
308
+ [x: string]: any;
309
+ error_message?: string | undefined;
310
+ error_type?: string | undefined;
311
+ };
312
+ };
313
+ metadata?: {
314
+ version: number;
315
+ gas_profile?: {
316
+ [x: string]: any;
317
+ cost?: string | undefined;
318
+ cost_category?: string | undefined;
319
+ gas_used?: string | undefined;
320
+ }[] | null | undefined;
321
+ } | undefined;
322
+ };
323
+ block_hash: string;
324
+ proof: {
325
+ hash: string;
326
+ direction: "Left" | "Right";
327
+ }[];
328
+ };
329
+ receipts_outcome: {
330
+ id: string;
331
+ outcome: {
332
+ logs: string[];
333
+ receipt_ids: string[];
334
+ gas_burnt: number;
335
+ tokens_burnt: string;
336
+ executor_id: string;
337
+ status: "Unknown" | "Pending" | {
338
+ SuccessValue: string;
339
+ } | {
340
+ SuccessReceiptId: string;
341
+ } | {
342
+ Failure: {
343
+ [x: string]: any;
344
+ error_message?: string | undefined;
345
+ error_type?: string | undefined;
346
+ };
347
+ };
348
+ metadata?: {
349
+ version: number;
350
+ gas_profile?: {
351
+ [x: string]: any;
352
+ cost?: string | undefined;
353
+ cost_category?: string | undefined;
354
+ gas_used?: string | undefined;
355
+ }[] | null | undefined;
356
+ } | undefined;
357
+ };
358
+ block_hash: string;
359
+ proof: {
360
+ hash: string;
361
+ direction: "Left" | "Right";
362
+ }[];
363
+ }[];
364
+ } | {
365
+ final_execution_status: "FINAL";
366
+ status: "Unknown" | "Pending" | {
367
+ SuccessValue: string;
368
+ } | {
369
+ SuccessReceiptId: string;
370
+ } | {
371
+ Failure: {
372
+ [x: string]: any;
373
+ error_message?: string | undefined;
374
+ error_type?: string | undefined;
375
+ };
376
+ };
377
+ transaction: {
378
+ signer_id: string;
379
+ public_key: string;
380
+ nonce: number;
381
+ receiver_id: string;
382
+ actions: ("CreateAccount" | {
383
+ CreateAccount: Record<string, never>;
384
+ } | {
385
+ Transfer: {
386
+ deposit: string;
387
+ };
388
+ } | {
389
+ FunctionCall: {
390
+ method_name: string;
391
+ args: string;
392
+ gas: number;
393
+ deposit: string;
394
+ };
395
+ } | {
396
+ DeployContract: {
397
+ code: string;
398
+ };
399
+ } | {
400
+ DeployGlobalContract: {
401
+ code: string;
402
+ };
403
+ } | {
404
+ DeployGlobalContractByAccountId: {
405
+ code: string;
406
+ };
407
+ } | {
408
+ Stake: {
409
+ stake: string;
410
+ public_key: string;
411
+ };
412
+ } | {
413
+ AddKey: {
414
+ public_key: string;
415
+ access_key: {
416
+ nonce: number;
417
+ permission: "FullAccess" | {
418
+ FunctionCall: {
419
+ receiver_id: string;
420
+ method_names: string[];
421
+ allowance?: string | null | undefined;
422
+ };
423
+ };
424
+ };
425
+ };
426
+ } | {
427
+ DeleteKey: {
428
+ public_key: string;
429
+ };
430
+ } | {
431
+ DeleteAccount: {
432
+ beneficiary_id: string;
433
+ };
434
+ } | {
435
+ UseGlobalContract: {
436
+ code_hash: string;
437
+ };
438
+ } | {
439
+ UseGlobalContractByAccountId: {
440
+ account_id: string;
441
+ };
442
+ } | {
443
+ Delegate: {
444
+ delegate_action: {
445
+ sender_id: string;
446
+ receiver_id: string;
447
+ actions: any[];
448
+ nonce: number;
449
+ max_block_height: number;
450
+ public_key: string;
451
+ };
452
+ signature: string;
453
+ };
454
+ } | {
455
+ DeterministicStateInit: {
456
+ deposit: string;
457
+ };
458
+ })[];
459
+ signature: string;
460
+ hash: string;
461
+ priority_fee?: number | undefined;
462
+ };
463
+ transaction_outcome: {
464
+ id: string;
465
+ outcome: {
466
+ logs: string[];
467
+ receipt_ids: string[];
468
+ gas_burnt: number;
469
+ tokens_burnt: string;
470
+ executor_id: string;
471
+ status: "Unknown" | "Pending" | {
472
+ SuccessValue: string;
473
+ } | {
474
+ SuccessReceiptId: string;
475
+ } | {
476
+ Failure: {
477
+ [x: string]: any;
478
+ error_message?: string | undefined;
479
+ error_type?: string | undefined;
480
+ };
481
+ };
482
+ metadata?: {
483
+ version: number;
484
+ gas_profile?: {
485
+ [x: string]: any;
486
+ cost?: string | undefined;
487
+ cost_category?: string | undefined;
488
+ gas_used?: string | undefined;
489
+ }[] | null | undefined;
490
+ } | undefined;
491
+ };
492
+ block_hash: string;
493
+ proof: {
494
+ hash: string;
495
+ direction: "Left" | "Right";
496
+ }[];
497
+ };
498
+ receipts_outcome: {
499
+ id: string;
500
+ outcome: {
501
+ logs: string[];
502
+ receipt_ids: string[];
503
+ gas_burnt: number;
504
+ tokens_burnt: string;
505
+ executor_id: string;
506
+ status: "Unknown" | "Pending" | {
507
+ SuccessValue: string;
508
+ } | {
509
+ SuccessReceiptId: string;
510
+ } | {
511
+ Failure: {
512
+ [x: string]: any;
513
+ error_message?: string | undefined;
514
+ error_type?: string | undefined;
515
+ };
516
+ };
517
+ metadata?: {
518
+ version: number;
519
+ gas_profile?: {
520
+ [x: string]: any;
521
+ cost?: string | undefined;
522
+ cost_category?: string | undefined;
523
+ gas_used?: string | undefined;
524
+ }[] | null | undefined;
525
+ } | undefined;
526
+ };
527
+ block_hash: string;
528
+ proof: {
529
+ hash: string;
530
+ direction: "Left" | "Right";
531
+ }[];
532
+ }[];
533
+ }>;
534
+ //# sourceMappingURL=pumpopoly_world_fun.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pumpopoly_world_fun.d.ts","sourceRoot":"","sources":["../../../src/fun/pumpopoly/pumpopoly_world_fun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAQhC,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,oBAAoB,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAS7B"}
@@ -0,0 +1,13 @@
1
+ import { Near } from "near-kit";
2
+ import { world_pumpopoly_methods_const } from "@sleet-js/pumpopoly-contract-methods-const";
3
+ // ===========================================
4
+ // call
5
+ // move_player
6
+ // ===========================================
7
+ // pumpopoly_move_player_fun
8
+ export async function pumpopoly_move_player_fun(near, pumpopoly_contractId) {
9
+ const result = await near.call(pumpopoly_contractId, world_pumpopoly_methods_const.move_player, {}, { gas: "5 Tgas" });
10
+ return result;
11
+ }
12
+ // ===========================================
13
+ //# sourceMappingURL=pumpopoly_world_fun.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pumpopoly_world_fun.js","sourceRoot":"","sources":["../../../src/fun/pumpopoly/pumpopoly_world_fun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAE3F,8CAA8C;AAC9C,OAAO;AACP,cAAc;AACd,8CAA8C;AAC9C,4BAA4B;AAC5B,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,IAAU,EACV,oBAA4B;IAE5B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAC5B,oBAAoB,EACpB,6BAA6B,CAAC,WAAW,EACzC,EAAE,EACF,EAAE,GAAG,EAAE,QAAQ,EAAE,CAClB,CAAC;IACF,OAAO,MAA+B,CAAC;AACzC,CAAC;AACD,8CAA8C"}
package/dist/index.d.ts CHANGED
@@ -2,12 +2,15 @@ export { greeting_get_greeting_fun } from "./fun/greeting/greeting_get_fun";
2
2
  export { greeting_set_greeting_fun } from "./fun/greeting/greeting_set_fun";
3
3
  export { ref_get_number_of_pools_function, ref_get_deposits_function, ref_get_pool_function, ref_get_pools_function, ref_get_return_function, ref_storage_balance_of_function, } from "./fun/rhea/rhea_view_fun";
4
4
  export { ref_storage_deposit_function, ref_swap_function, ref_withdraw_function, ref_add_simple_pool_function, } from "./fun/rhea/rhea_call_fun";
5
- export { ft_balance_of_fun, ft_transfer_fun, ft_transfer_call_fun, ft_storage_deposit_fun, } from "./fun/ft/ft_fun";
5
+ export { ft_balance_of_fun, ft_transfer_fun, ft_transfer_call_fun, ft_storage_deposit_fun, ft_metadata_fun, } from "./fun/ft/ft_fun";
6
6
  export { wrap_near_deposit_fun, wrap_near_withdraw_fun, } from "./fun/near/wrap_near";
7
7
  export { pool_get_number_of_accounts_fun, pool_ping_fun, } from "./fun/pool/pool_fun";
8
8
  export { near_create_account_near_fun } from "./fun/near/create_account_near";
9
9
  export { delete_account_fun } from "./fun/near/delete_account_fun";
10
+ export { add_key_fun } from "./fun/near/add_key_near";
11
+ export { delete_key_fun } from "./fun/near/delete_key_near";
10
12
  export type { AmountInput } from "./types/AmountInput";
13
+ export type { FT_METADATA_TYPE } from "./types/ft_metadata_types";
11
14
  export type { greeting_args_params_interface } from "./lib/contract_greeting_args";
12
15
  export type { ref_args_params_interface, ref_swap_action_type, ref_swap_function_args, } from "./lib/contract_rhea_args";
13
16
  export type { ft_args_params_interface } from "./lib/contract_ft_args";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAG5E,OAAO,EACL,gCAAgC,EAChC,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,+BAA+B,GAChC,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,4BAA4B,EAC5B,iBAAiB,EACjB,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,+BAA+B,EAC/B,aAAa,GACd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGnE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,E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B,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ export { ref_get_number_of_pools_function, ref_get_deposits_function, ref_get_po
11
11
  export { ref_storage_deposit_function, ref_swap_function, ref_withdraw_function, ref_add_simple_pool_function, } from "./fun/rhea/rhea_call_fun";
12
12
  // ===========================================
13
13
  // FT (Fungible Token) functions
14
- export { ft_balance_of_fun, ft_transfer_fun, ft_transfer_call_fun, ft_storage_deposit_fun, } from "./fun/ft/ft_fun";
14
+ export { ft_balance_of_fun, ft_transfer_fun, ft_transfer_call_fun, ft_storage_deposit_fun, ft_metadata_fun, } from "./fun/ft/ft_fun";
15
15
  // ===========================================
16
16
  // wrapNEAR functions
17
17
  export { wrap_near_deposit_fun, wrap_near_withdraw_fun, } from "./fun/near/wrap_near";
@@ -22,6 +22,8 @@ export { pool_get_number_of_accounts_fun, pool_ping_fun, } from "./fun/pool/pool
22
22
  // NEAR account functions
23
23
  export { near_create_account_near_fun } from "./fun/near/create_account_near";
24
24
  export { delete_account_fun } from "./fun/near/delete_account_fun";
25
+ export { add_key_fun } from "./fun/near/add_key_near";
26
+ export { delete_key_fun } from "./fun/near/delete_key_near";
25
27
  // ===========================================
26
28
  // copyright 2026 by sleet.near
27
29
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,oCAAoC;AACpC,8CAA8C;AAC9C,8BAA8B;AAC9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,8CAA8C;AAC9C,qCAAqC;AACrC,OAAO,EACL,gCAAgC,EAChC,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,+BA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B,MAAM,iBAAiB,CAAC;AACzB,8CAA8C;AAC9C,qBAAqB;AACrB,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,8CAA8C;AAC9C,WAAW;AACX,OAAO,EACL,+BAA+B,EAC/B,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,8CAA8C;AAC9C,yBAAyB;AACzB,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAY5D,8CAA8C;AAC9C,+BAA+B"}
@@ -0,0 +1,20 @@
1
+ import * as z from "zod";
2
+ export interface FT_METADATA_TYPE {
3
+ spec: string;
4
+ name: string;
5
+ symbol: string;
6
+ icon: string | null;
7
+ reference: string | null;
8
+ reference_hash: string | null;
9
+ decimals: number;
10
+ }
11
+ export declare const FT_METADATA_TYPE_Z_CONST: z.ZodObject<{
12
+ spec: z.ZodString;
13
+ name: z.ZodString;
14
+ symbol: z.ZodString;
15
+ icon: z.ZodNullable<z.ZodString>;
16
+ reference: z.ZodNullable<z.ZodString>;
17
+ reference_hash: z.ZodNullable<z.ZodString>;
18
+ decimals: z.ZodNumber;
19
+ }, z.core.$strip>;
20
+ //# sourceMappingURL=ft_metadata_types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ft_metadata_types.d.ts","sourceRoot":"","sources":["../../src/types/ft_metadata_types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,wBAAwB;;;;;;;;iBAQG,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as z from "zod";
2
+ // ================================================
3
+ export const FT_METADATA_TYPE_Z_CONST = z.object({
4
+ spec: z.string(),
5
+ name: z.string(),
6
+ symbol: z.string(),
7
+ icon: z.string().nullable(),
8
+ reference: z.string().nullable(),
9
+ reference_hash: z.string().nullable(),
10
+ decimals: z.number(),
11
+ });
12
+ // ================================================
13
+ // copyright 2026 by sleet.near
14
+ //# sourceMappingURL=ft_metadata_types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ft_metadata_types.js","sourceRoot":"","sources":["../../src/types/ft_metadata_types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAWzB,mDAAmD;AACnD,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAuC,CAAC;AACzC,mDAAmD;AACnD,+BAA+B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@near-kit-tool-box/fun",
3
3
  "description": "Reusable contract functions for common NEAR contracts",
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "homepage": "https://sleet-js.near.page",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -34,8 +34,9 @@
34
34
  "typescript": "^6.0.3"
35
35
  },
36
36
  "dependencies": {
37
- "@hot-labs/near-connect": "0.11.2",
37
+ "@hot-labs/near-connect": "0.11.4",
38
38
  "@sleet-js/ft-methods-const": "^0.0.7",
39
+ "@sleet-js/pumpopoly-contract-methods-const": "^0.0.3",
39
40
  "@sleet-js/ref-exchange-methods-const": "^0.0.7",
40
41
  "@sleet-js/staking-pool-contract-methods-const": "^0.0.7",
41
42
  "@sleet-js/wrap-near-contract-methods-const": "^0.0.7",
@@ -44,6 +45,6 @@
44
45
  "zod": "^4.4.3"
45
46
  },
46
47
  "devDependencies": {
47
- "@types/bun": "^1.3.13"
48
+ "@types/bun": "^1.3.14"
48
49
  }
49
50
  }