@thalalabs/surf 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.
Files changed (70) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/cjs/abi/aptos_coin.js +158 -0
  3. package/build/cjs/abi/aptos_coin.js.map +1 -0
  4. package/build/cjs/abi/coin.js +783 -0
  5. package/build/cjs/abi/coin.js.map +1 -0
  6. package/build/cjs/abi/event.js +138 -0
  7. package/build/cjs/abi/event.js.map +1 -0
  8. package/build/cjs/abi/fixed_point64.js +380 -0
  9. package/build/cjs/abi/fixed_point64.js.map +1 -0
  10. package/build/cjs/abi/guid.js +158 -0
  11. package/build/cjs/abi/guid.js.map +1 -0
  12. package/build/cjs/abi/table.js +299 -0
  13. package/build/cjs/abi/table.js.map +1 -0
  14. package/build/cjs/core/Client.js.map +1 -1
  15. package/build/cjs/types/{globalABI.js → defaultABITable.js} +1 -1
  16. package/build/cjs/types/defaultABITable.js.map +1 -0
  17. package/build/esm/abi/aptos_coin.js +155 -0
  18. package/build/esm/abi/aptos_coin.js.map +1 -0
  19. package/build/esm/abi/coin.js +780 -0
  20. package/build/esm/abi/coin.js.map +1 -0
  21. package/build/esm/abi/event.js +135 -0
  22. package/build/esm/abi/event.js.map +1 -0
  23. package/build/esm/abi/fixed_point64.js +377 -0
  24. package/build/esm/abi/fixed_point64.js.map +1 -0
  25. package/build/esm/abi/guid.js +155 -0
  26. package/build/esm/abi/guid.js.map +1 -0
  27. package/build/esm/abi/table.js +296 -0
  28. package/build/esm/abi/table.js.map +1 -0
  29. package/build/esm/core/Client.js.map +1 -1
  30. package/build/esm/types/defaultABITable.js +2 -0
  31. package/build/esm/types/defaultABITable.js.map +1 -0
  32. package/build/types/abi/aptos_coin.d.ts +100 -0
  33. package/build/types/abi/aptos_coin.d.ts.map +1 -0
  34. package/build/types/abi/coin.d.ts +476 -0
  35. package/build/types/abi/coin.d.ts.map +1 -0
  36. package/build/types/abi/event.d.ts +72 -0
  37. package/build/types/abi/event.d.ts.map +1 -0
  38. package/build/types/abi/fixed_point64.d.ts +225 -0
  39. package/build/types/abi/fixed_point64.d.ts.map +1 -0
  40. package/build/types/abi/guid.d.ts +93 -0
  41. package/build/types/abi/guid.d.ts.map +1 -0
  42. package/build/types/abi/table.d.ts +152 -0
  43. package/build/types/abi/table.d.ts.map +1 -0
  44. package/build/types/core/Client.d.ts +6 -5
  45. package/build/types/core/Client.d.ts.map +1 -1
  46. package/build/types/types/abiClient.d.ts +3 -3
  47. package/build/types/types/abiClient.d.ts.map +1 -1
  48. package/build/types/types/{globalABI.d.ts → defaultABITable.d.ts} +2 -4
  49. package/build/types/types/defaultABITable.d.ts.map +1 -0
  50. package/build/types/types/index.d.ts +1 -0
  51. package/build/types/types/index.d.ts.map +1 -1
  52. package/build/types/types/struct.d.ts +6 -4
  53. package/build/types/types/struct.d.ts.map +1 -1
  54. package/package.json +1 -1
  55. package/src/abi/aptos_coin.ts +154 -0
  56. package/src/abi/coin.ts +779 -0
  57. package/src/abi/event.ts +134 -0
  58. package/src/abi/fixed_point64.ts +376 -0
  59. package/src/abi/guid.ts +154 -0
  60. package/src/abi/table.ts +295 -0
  61. package/src/core/Client.ts +8 -6
  62. package/src/core/__tests__/accountResource.test.ts +53 -3
  63. package/src/types/abiClient.ts +3 -3
  64. package/src/types/{globalABI.ts → defaultABITable.ts} +1 -3
  65. package/src/types/index.ts +2 -1
  66. package/src/types/struct.ts +10 -6
  67. package/build/cjs/types/globalABI.js.map +0 -1
  68. package/build/esm/types/globalABI.js +0 -2
  69. package/build/esm/types/globalABI.js.map +0 -1
  70. package/build/types/types/globalABI.d.ts.map +0 -1
@@ -0,0 +1,476 @@
1
+ export declare const COIN_ABI: {
2
+ readonly address: "0x1";
3
+ readonly name: "coin";
4
+ readonly friends: readonly ["0x1::aptos_coin", "0x1::genesis", "0x1::transaction_fee"];
5
+ readonly exposed_functions: readonly [{
6
+ readonly name: "allow_supply_upgrades";
7
+ readonly visibility: "public";
8
+ readonly is_entry: false;
9
+ readonly is_view: false;
10
+ readonly generic_type_params: readonly [];
11
+ readonly params: readonly ["&signer", "bool"];
12
+ readonly return: readonly [];
13
+ }, {
14
+ readonly name: "balance";
15
+ readonly visibility: "public";
16
+ readonly is_entry: false;
17
+ readonly is_view: true;
18
+ readonly generic_type_params: readonly [{
19
+ readonly constraints: readonly [];
20
+ }];
21
+ readonly params: readonly ["address"];
22
+ readonly return: readonly ["u64"];
23
+ }, {
24
+ readonly name: "burn";
25
+ readonly visibility: "public";
26
+ readonly is_entry: false;
27
+ readonly is_view: false;
28
+ readonly generic_type_params: readonly [{
29
+ readonly constraints: readonly [];
30
+ }];
31
+ readonly params: readonly ["0x1::coin::Coin<T0>", "&0x1::coin::BurnCapability<T0>"];
32
+ readonly return: readonly [];
33
+ }, {
34
+ readonly name: "burn_from";
35
+ readonly visibility: "public";
36
+ readonly is_entry: false;
37
+ readonly is_view: false;
38
+ readonly generic_type_params: readonly [{
39
+ readonly constraints: readonly [];
40
+ }];
41
+ readonly params: readonly ["address", "u64", "&0x1::coin::BurnCapability<T0>"];
42
+ readonly return: readonly [];
43
+ }, {
44
+ readonly name: "collect_into_aggregatable_coin";
45
+ readonly visibility: "friend";
46
+ readonly is_entry: false;
47
+ readonly is_view: false;
48
+ readonly generic_type_params: readonly [{
49
+ readonly constraints: readonly [];
50
+ }];
51
+ readonly params: readonly ["address", "u64", "&mut 0x1::coin::AggregatableCoin<T0>"];
52
+ readonly return: readonly [];
53
+ }, {
54
+ readonly name: "decimals";
55
+ readonly visibility: "public";
56
+ readonly is_entry: false;
57
+ readonly is_view: true;
58
+ readonly generic_type_params: readonly [{
59
+ readonly constraints: readonly [];
60
+ }];
61
+ readonly params: readonly [];
62
+ readonly return: readonly ["u8"];
63
+ }, {
64
+ readonly name: "deposit";
65
+ readonly visibility: "public";
66
+ readonly is_entry: false;
67
+ readonly is_view: false;
68
+ readonly generic_type_params: readonly [{
69
+ readonly constraints: readonly [];
70
+ }];
71
+ readonly params: readonly ["address", "0x1::coin::Coin<T0>"];
72
+ readonly return: readonly [];
73
+ }, {
74
+ readonly name: "destroy_burn_cap";
75
+ readonly visibility: "public";
76
+ readonly is_entry: false;
77
+ readonly is_view: false;
78
+ readonly generic_type_params: readonly [{
79
+ readonly constraints: readonly [];
80
+ }];
81
+ readonly params: readonly ["0x1::coin::BurnCapability<T0>"];
82
+ readonly return: readonly [];
83
+ }, {
84
+ readonly name: "destroy_freeze_cap";
85
+ readonly visibility: "public";
86
+ readonly is_entry: false;
87
+ readonly is_view: false;
88
+ readonly generic_type_params: readonly [{
89
+ readonly constraints: readonly [];
90
+ }];
91
+ readonly params: readonly ["0x1::coin::FreezeCapability<T0>"];
92
+ readonly return: readonly [];
93
+ }, {
94
+ readonly name: "destroy_mint_cap";
95
+ readonly visibility: "public";
96
+ readonly is_entry: false;
97
+ readonly is_view: false;
98
+ readonly generic_type_params: readonly [{
99
+ readonly constraints: readonly [];
100
+ }];
101
+ readonly params: readonly ["0x1::coin::MintCapability<T0>"];
102
+ readonly return: readonly [];
103
+ }, {
104
+ readonly name: "destroy_zero";
105
+ readonly visibility: "public";
106
+ readonly is_entry: false;
107
+ readonly is_view: false;
108
+ readonly generic_type_params: readonly [{
109
+ readonly constraints: readonly [];
110
+ }];
111
+ readonly params: readonly ["0x1::coin::Coin<T0>"];
112
+ readonly return: readonly [];
113
+ }, {
114
+ readonly name: "drain_aggregatable_coin";
115
+ readonly visibility: "friend";
116
+ readonly is_entry: false;
117
+ readonly is_view: false;
118
+ readonly generic_type_params: readonly [{
119
+ readonly constraints: readonly [];
120
+ }];
121
+ readonly params: readonly ["&mut 0x1::coin::AggregatableCoin<T0>"];
122
+ readonly return: readonly ["0x1::coin::Coin<T0>"];
123
+ }, {
124
+ readonly name: "extract";
125
+ readonly visibility: "public";
126
+ readonly is_entry: false;
127
+ readonly is_view: false;
128
+ readonly generic_type_params: readonly [{
129
+ readonly constraints: readonly [];
130
+ }];
131
+ readonly params: readonly ["&mut 0x1::coin::Coin<T0>", "u64"];
132
+ readonly return: readonly ["0x1::coin::Coin<T0>"];
133
+ }, {
134
+ readonly name: "extract_all";
135
+ readonly visibility: "public";
136
+ readonly is_entry: false;
137
+ readonly is_view: false;
138
+ readonly generic_type_params: readonly [{
139
+ readonly constraints: readonly [];
140
+ }];
141
+ readonly params: readonly ["&mut 0x1::coin::Coin<T0>"];
142
+ readonly return: readonly ["0x1::coin::Coin<T0>"];
143
+ }, {
144
+ readonly name: "freeze_coin_store";
145
+ readonly visibility: "public";
146
+ readonly is_entry: true;
147
+ readonly is_view: false;
148
+ readonly generic_type_params: readonly [{
149
+ readonly constraints: readonly [];
150
+ }];
151
+ readonly params: readonly ["address", "&0x1::coin::FreezeCapability<T0>"];
152
+ readonly return: readonly [];
153
+ }, {
154
+ readonly name: "initialize";
155
+ readonly visibility: "public";
156
+ readonly is_entry: false;
157
+ readonly is_view: false;
158
+ readonly generic_type_params: readonly [{
159
+ readonly constraints: readonly [];
160
+ }];
161
+ readonly params: readonly ["&signer", "0x1::string::String", "0x1::string::String", "u8", "bool"];
162
+ readonly return: readonly ["0x1::coin::BurnCapability<T0>", "0x1::coin::FreezeCapability<T0>", "0x1::coin::MintCapability<T0>"];
163
+ }, {
164
+ readonly name: "initialize_aggregatable_coin";
165
+ readonly visibility: "friend";
166
+ readonly is_entry: false;
167
+ readonly is_view: false;
168
+ readonly generic_type_params: readonly [{
169
+ readonly constraints: readonly [];
170
+ }];
171
+ readonly params: readonly ["&signer"];
172
+ readonly return: readonly ["0x1::coin::AggregatableCoin<T0>"];
173
+ }, {
174
+ readonly name: "initialize_supply_config";
175
+ readonly visibility: "friend";
176
+ readonly is_entry: false;
177
+ readonly is_view: false;
178
+ readonly generic_type_params: readonly [];
179
+ readonly params: readonly ["&signer"];
180
+ readonly return: readonly [];
181
+ }, {
182
+ readonly name: "initialize_with_parallelizable_supply";
183
+ readonly visibility: "friend";
184
+ readonly is_entry: false;
185
+ readonly is_view: false;
186
+ readonly generic_type_params: readonly [{
187
+ readonly constraints: readonly [];
188
+ }];
189
+ readonly params: readonly ["&signer", "0x1::string::String", "0x1::string::String", "u8", "bool"];
190
+ readonly return: readonly ["0x1::coin::BurnCapability<T0>", "0x1::coin::FreezeCapability<T0>", "0x1::coin::MintCapability<T0>"];
191
+ }, {
192
+ readonly name: "is_account_registered";
193
+ readonly visibility: "public";
194
+ readonly is_entry: false;
195
+ readonly is_view: true;
196
+ readonly generic_type_params: readonly [{
197
+ readonly constraints: readonly [];
198
+ }];
199
+ readonly params: readonly ["address"];
200
+ readonly return: readonly ["bool"];
201
+ }, {
202
+ readonly name: "is_aggregatable_coin_zero";
203
+ readonly visibility: "friend";
204
+ readonly is_entry: false;
205
+ readonly is_view: false;
206
+ readonly generic_type_params: readonly [{
207
+ readonly constraints: readonly [];
208
+ }];
209
+ readonly params: readonly ["&0x1::coin::AggregatableCoin<T0>"];
210
+ readonly return: readonly ["bool"];
211
+ }, {
212
+ readonly name: "is_coin_initialized";
213
+ readonly visibility: "public";
214
+ readonly is_entry: false;
215
+ readonly is_view: true;
216
+ readonly generic_type_params: readonly [{
217
+ readonly constraints: readonly [];
218
+ }];
219
+ readonly params: readonly [];
220
+ readonly return: readonly ["bool"];
221
+ }, {
222
+ readonly name: "merge";
223
+ readonly visibility: "public";
224
+ readonly is_entry: false;
225
+ readonly is_view: false;
226
+ readonly generic_type_params: readonly [{
227
+ readonly constraints: readonly [];
228
+ }];
229
+ readonly params: readonly ["&mut 0x1::coin::Coin<T0>", "0x1::coin::Coin<T0>"];
230
+ readonly return: readonly [];
231
+ }, {
232
+ readonly name: "merge_aggregatable_coin";
233
+ readonly visibility: "friend";
234
+ readonly is_entry: false;
235
+ readonly is_view: false;
236
+ readonly generic_type_params: readonly [{
237
+ readonly constraints: readonly [];
238
+ }];
239
+ readonly params: readonly ["&mut 0x1::coin::AggregatableCoin<T0>", "0x1::coin::Coin<T0>"];
240
+ readonly return: readonly [];
241
+ }, {
242
+ readonly name: "mint";
243
+ readonly visibility: "public";
244
+ readonly is_entry: false;
245
+ readonly is_view: false;
246
+ readonly generic_type_params: readonly [{
247
+ readonly constraints: readonly [];
248
+ }];
249
+ readonly params: readonly ["u64", "&0x1::coin::MintCapability<T0>"];
250
+ readonly return: readonly ["0x1::coin::Coin<T0>"];
251
+ }, {
252
+ readonly name: "name";
253
+ readonly visibility: "public";
254
+ readonly is_entry: false;
255
+ readonly is_view: true;
256
+ readonly generic_type_params: readonly [{
257
+ readonly constraints: readonly [];
258
+ }];
259
+ readonly params: readonly [];
260
+ readonly return: readonly ["0x1::string::String"];
261
+ }, {
262
+ readonly name: "register";
263
+ readonly visibility: "public";
264
+ readonly is_entry: false;
265
+ readonly is_view: false;
266
+ readonly generic_type_params: readonly [{
267
+ readonly constraints: readonly [];
268
+ }];
269
+ readonly params: readonly ["&signer"];
270
+ readonly return: readonly [];
271
+ }, {
272
+ readonly name: "supply";
273
+ readonly visibility: "public";
274
+ readonly is_entry: false;
275
+ readonly is_view: true;
276
+ readonly generic_type_params: readonly [{
277
+ readonly constraints: readonly [];
278
+ }];
279
+ readonly params: readonly [];
280
+ readonly return: readonly ["0x1::option::Option<u128>"];
281
+ }, {
282
+ readonly name: "symbol";
283
+ readonly visibility: "public";
284
+ readonly is_entry: false;
285
+ readonly is_view: true;
286
+ readonly generic_type_params: readonly [{
287
+ readonly constraints: readonly [];
288
+ }];
289
+ readonly params: readonly [];
290
+ readonly return: readonly ["0x1::string::String"];
291
+ }, {
292
+ readonly name: "transfer";
293
+ readonly visibility: "public";
294
+ readonly is_entry: true;
295
+ readonly is_view: false;
296
+ readonly generic_type_params: readonly [{
297
+ readonly constraints: readonly [];
298
+ }];
299
+ readonly params: readonly ["&signer", "address", "u64"];
300
+ readonly return: readonly [];
301
+ }, {
302
+ readonly name: "unfreeze_coin_store";
303
+ readonly visibility: "public";
304
+ readonly is_entry: true;
305
+ readonly is_view: false;
306
+ readonly generic_type_params: readonly [{
307
+ readonly constraints: readonly [];
308
+ }];
309
+ readonly params: readonly ["address", "&0x1::coin::FreezeCapability<T0>"];
310
+ readonly return: readonly [];
311
+ }, {
312
+ readonly name: "upgrade_supply";
313
+ readonly visibility: "public";
314
+ readonly is_entry: true;
315
+ readonly is_view: false;
316
+ readonly generic_type_params: readonly [{
317
+ readonly constraints: readonly [];
318
+ }];
319
+ readonly params: readonly ["&signer"];
320
+ readonly return: readonly [];
321
+ }, {
322
+ readonly name: "value";
323
+ readonly visibility: "public";
324
+ readonly is_entry: false;
325
+ readonly is_view: false;
326
+ readonly generic_type_params: readonly [{
327
+ readonly constraints: readonly [];
328
+ }];
329
+ readonly params: readonly ["&0x1::coin::Coin<T0>"];
330
+ readonly return: readonly ["u64"];
331
+ }, {
332
+ readonly name: "withdraw";
333
+ readonly visibility: "public";
334
+ readonly is_entry: false;
335
+ readonly is_view: false;
336
+ readonly generic_type_params: readonly [{
337
+ readonly constraints: readonly [];
338
+ }];
339
+ readonly params: readonly ["&signer", "u64"];
340
+ readonly return: readonly ["0x1::coin::Coin<T0>"];
341
+ }, {
342
+ readonly name: "zero";
343
+ readonly visibility: "public";
344
+ readonly is_entry: false;
345
+ readonly is_view: false;
346
+ readonly generic_type_params: readonly [{
347
+ readonly constraints: readonly [];
348
+ }];
349
+ readonly params: readonly [];
350
+ readonly return: readonly ["0x1::coin::Coin<T0>"];
351
+ }];
352
+ readonly structs: readonly [{
353
+ readonly name: "AggregatableCoin";
354
+ readonly is_native: false;
355
+ readonly abilities: readonly ["store"];
356
+ readonly generic_type_params: readonly [{
357
+ readonly constraints: readonly [];
358
+ }];
359
+ readonly fields: readonly [{
360
+ readonly name: "value";
361
+ readonly type: "0x1::aggregator::Aggregator";
362
+ }];
363
+ }, {
364
+ readonly name: "BurnCapability";
365
+ readonly is_native: false;
366
+ readonly abilities: readonly ["copy", "store"];
367
+ readonly generic_type_params: readonly [{
368
+ readonly constraints: readonly [];
369
+ }];
370
+ readonly fields: readonly [{
371
+ readonly name: "dummy_field";
372
+ readonly type: "bool";
373
+ }];
374
+ }, {
375
+ readonly name: "Coin";
376
+ readonly is_native: false;
377
+ readonly abilities: readonly ["store"];
378
+ readonly generic_type_params: readonly [{
379
+ readonly constraints: readonly [];
380
+ }];
381
+ readonly fields: readonly [{
382
+ readonly name: "value";
383
+ readonly type: "u64";
384
+ }];
385
+ }, {
386
+ readonly name: "CoinInfo";
387
+ readonly is_native: false;
388
+ readonly abilities: readonly ["key"];
389
+ readonly generic_type_params: readonly [{
390
+ readonly constraints: readonly [];
391
+ }];
392
+ readonly fields: readonly [{
393
+ readonly name: "name";
394
+ readonly type: "0x1::string::String";
395
+ }, {
396
+ readonly name: "symbol";
397
+ readonly type: "0x1::string::String";
398
+ }, {
399
+ readonly name: "decimals";
400
+ readonly type: "u8";
401
+ }, {
402
+ readonly name: "supply";
403
+ readonly type: "0x1::option::Option<0x1::optional_aggregator::OptionalAggregator>";
404
+ }];
405
+ }, {
406
+ readonly name: "CoinStore";
407
+ readonly is_native: false;
408
+ readonly abilities: readonly ["key"];
409
+ readonly generic_type_params: readonly [{
410
+ readonly constraints: readonly [];
411
+ }];
412
+ readonly fields: readonly [{
413
+ readonly name: "coin";
414
+ readonly type: "0x1::coin::Coin<T0>";
415
+ }, {
416
+ readonly name: "frozen";
417
+ readonly type: "bool";
418
+ }, {
419
+ readonly name: "deposit_events";
420
+ readonly type: "0x1::event::EventHandle<0x1::coin::DepositEvent>";
421
+ }, {
422
+ readonly name: "withdraw_events";
423
+ readonly type: "0x1::event::EventHandle<0x1::coin::WithdrawEvent>";
424
+ }];
425
+ }, {
426
+ readonly name: "DepositEvent";
427
+ readonly is_native: false;
428
+ readonly abilities: readonly ["drop", "store"];
429
+ readonly generic_type_params: readonly [];
430
+ readonly fields: readonly [{
431
+ readonly name: "amount";
432
+ readonly type: "u64";
433
+ }];
434
+ }, {
435
+ readonly name: "FreezeCapability";
436
+ readonly is_native: false;
437
+ readonly abilities: readonly ["copy", "store"];
438
+ readonly generic_type_params: readonly [{
439
+ readonly constraints: readonly [];
440
+ }];
441
+ readonly fields: readonly [{
442
+ readonly name: "dummy_field";
443
+ readonly type: "bool";
444
+ }];
445
+ }, {
446
+ readonly name: "MintCapability";
447
+ readonly is_native: false;
448
+ readonly abilities: readonly ["copy", "store"];
449
+ readonly generic_type_params: readonly [{
450
+ readonly constraints: readonly [];
451
+ }];
452
+ readonly fields: readonly [{
453
+ readonly name: "dummy_field";
454
+ readonly type: "bool";
455
+ }];
456
+ }, {
457
+ readonly name: "SupplyConfig";
458
+ readonly is_native: false;
459
+ readonly abilities: readonly ["key"];
460
+ readonly generic_type_params: readonly [];
461
+ readonly fields: readonly [{
462
+ readonly name: "allow_upgrades";
463
+ readonly type: "bool";
464
+ }];
465
+ }, {
466
+ readonly name: "WithdrawEvent";
467
+ readonly is_native: false;
468
+ readonly abilities: readonly ["drop", "store"];
469
+ readonly generic_type_params: readonly [];
470
+ readonly fields: readonly [{
471
+ readonly name: "amount";
472
+ readonly type: "u64";
473
+ }];
474
+ }];
475
+ };
476
+ //# sourceMappingURL=coin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coin.d.ts","sourceRoot":"","sources":["../../../src/abi/coin.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0wBX,CAAC"}
@@ -0,0 +1,72 @@
1
+ export declare const EVENT_ABI: {
2
+ readonly address: "0x1";
3
+ readonly name: "event";
4
+ readonly friends: readonly ["0x1::account", "0x1::object"];
5
+ readonly exposed_functions: readonly [{
6
+ readonly name: "counter";
7
+ readonly visibility: "public";
8
+ readonly is_entry: false;
9
+ readonly is_view: false;
10
+ readonly generic_type_params: readonly [{
11
+ readonly constraints: readonly ["drop", "store"];
12
+ }];
13
+ readonly params: readonly ["&0x1::event::EventHandle<T0>"];
14
+ readonly return: readonly ["u64"];
15
+ }, {
16
+ readonly name: "destroy_handle";
17
+ readonly visibility: "public";
18
+ readonly is_entry: false;
19
+ readonly is_view: false;
20
+ readonly generic_type_params: readonly [{
21
+ readonly constraints: readonly ["drop", "store"];
22
+ }];
23
+ readonly params: readonly ["0x1::event::EventHandle<T0>"];
24
+ readonly return: readonly [];
25
+ }, {
26
+ readonly name: "emit_event";
27
+ readonly visibility: "public";
28
+ readonly is_entry: false;
29
+ readonly is_view: false;
30
+ readonly generic_type_params: readonly [{
31
+ readonly constraints: readonly ["drop", "store"];
32
+ }];
33
+ readonly params: readonly ["&mut 0x1::event::EventHandle<T0>", "T0"];
34
+ readonly return: readonly [];
35
+ }, {
36
+ readonly name: "guid";
37
+ readonly visibility: "public";
38
+ readonly is_entry: false;
39
+ readonly is_view: false;
40
+ readonly generic_type_params: readonly [{
41
+ readonly constraints: readonly ["drop", "store"];
42
+ }];
43
+ readonly params: readonly ["&0x1::event::EventHandle<T0>"];
44
+ readonly return: readonly ["&0x1::guid::GUID"];
45
+ }, {
46
+ readonly name: "new_event_handle";
47
+ readonly visibility: "friend";
48
+ readonly is_entry: false;
49
+ readonly is_view: false;
50
+ readonly generic_type_params: readonly [{
51
+ readonly constraints: readonly ["drop", "store"];
52
+ }];
53
+ readonly params: readonly ["0x1::guid::GUID"];
54
+ readonly return: readonly ["0x1::event::EventHandle<T0>"];
55
+ }];
56
+ readonly structs: readonly [{
57
+ readonly name: "EventHandle";
58
+ readonly is_native: false;
59
+ readonly abilities: readonly ["store"];
60
+ readonly generic_type_params: readonly [{
61
+ readonly constraints: readonly ["drop", "store"];
62
+ }];
63
+ readonly fields: readonly [{
64
+ readonly name: "counter";
65
+ readonly type: "u64";
66
+ }, {
67
+ readonly name: "guid";
68
+ readonly type: "0x1::guid::GUID";
69
+ }];
70
+ }];
71
+ };
72
+ //# sourceMappingURL=event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/abi/event.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqIZ,CAAC"}