@thalalabs/surf 0.0.13 → 0.0.14

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 (91) hide show
  1. package/.changeset/README.md +1 -1
  2. package/.github/dependabot.yml +3 -3
  3. package/.github/workflows/publish.yml +2 -2
  4. package/CHANGELOG.md +6 -0
  5. package/README.md +18 -11
  6. package/build/cjs/abi/aggregator.js +56 -74
  7. package/build/cjs/abi/aggregator.js.map +1 -1
  8. package/build/cjs/abi/aptos_coin.js +98 -125
  9. package/build/cjs/abi/aptos_coin.js.map +1 -1
  10. package/build/cjs/abi/coin.js +456 -587
  11. package/build/cjs/abi/coin.js.map +1 -1
  12. package/build/cjs/abi/event.js +66 -106
  13. package/build/cjs/abi/event.js.map +1 -1
  14. package/build/cjs/abi/fixed_point64.js +287 -320
  15. package/build/cjs/abi/fixed_point64.js.map +1 -1
  16. package/build/cjs/abi/guid.js +84 -129
  17. package/build/cjs/abi/guid.js.map +1 -1
  18. package/build/cjs/abi/optional_aggregator.js +79 -108
  19. package/build/cjs/abi/optional_aggregator.js.map +1 -1
  20. package/build/cjs/abi/table.js +131 -222
  21. package/build/cjs/abi/table.js.map +1 -1
  22. package/build/cjs/core/Client.js +6 -2
  23. package/build/cjs/core/Client.js.map +1 -1
  24. package/build/cjs/core/createEntryPayload.js.map +1 -1
  25. package/build/cjs/ensureTypes.js +11 -10
  26. package/build/cjs/ensureTypes.js.map +1 -1
  27. package/build/cjs/index.js.map +1 -1
  28. package/build/esm/abi/aggregator.js +56 -74
  29. package/build/esm/abi/aggregator.js.map +1 -1
  30. package/build/esm/abi/aptos_coin.js +98 -125
  31. package/build/esm/abi/aptos_coin.js.map +1 -1
  32. package/build/esm/abi/coin.js +456 -587
  33. package/build/esm/abi/coin.js.map +1 -1
  34. package/build/esm/abi/event.js +66 -106
  35. package/build/esm/abi/event.js.map +1 -1
  36. package/build/esm/abi/fixed_point64.js +287 -320
  37. package/build/esm/abi/fixed_point64.js.map +1 -1
  38. package/build/esm/abi/guid.js +84 -129
  39. package/build/esm/abi/guid.js.map +1 -1
  40. package/build/esm/abi/optional_aggregator.js +79 -108
  41. package/build/esm/abi/optional_aggregator.js.map +1 -1
  42. package/build/esm/abi/table.js +131 -222
  43. package/build/esm/abi/table.js.map +1 -1
  44. package/build/esm/core/Client.js +6 -2
  45. package/build/esm/core/Client.js.map +1 -1
  46. package/build/esm/core/createEntryPayload.js.map +1 -1
  47. package/build/esm/ensureTypes.js +11 -10
  48. package/build/esm/ensureTypes.js.map +1 -1
  49. package/build/esm/index.js +1 -1
  50. package/build/esm/index.js.map +1 -1
  51. package/build/types/abi/aggregator.d.ts.map +1 -1
  52. package/build/types/abi/aptos_coin.d.ts.map +1 -1
  53. package/build/types/abi/coin.d.ts.map +1 -1
  54. package/build/types/abi/event.d.ts.map +1 -1
  55. package/build/types/abi/fixed_point64.d.ts.map +1 -1
  56. package/build/types/abi/guid.d.ts.map +1 -1
  57. package/build/types/abi/optional_aggregator.d.ts.map +1 -1
  58. package/build/types/abi/table.d.ts.map +1 -1
  59. package/build/types/core/Client.d.ts.map +1 -1
  60. package/build/types/ensureTypes.d.ts.map +1 -1
  61. package/build/types/index.d.ts +2 -2
  62. package/build/types/index.d.ts.map +1 -1
  63. package/build/types/types/client/abiClient.d.ts +2 -0
  64. package/build/types/types/client/abiClient.d.ts.map +1 -1
  65. package/build/types/types/convertor/argsConvertor.d.ts +1 -1
  66. package/build/types/types/convertor/argsConvertor.d.ts.map +1 -1
  67. package/build/types/types/convertor/structConvertor.d.ts.map +1 -1
  68. package/build/types/types/moveTypes.d.ts.map +1 -1
  69. package/package.json +2 -2
  70. package/src/abi/aggregator.ts +73 -91
  71. package/src/abi/aptos_coin.ts +117 -144
  72. package/src/abi/coin.ts +646 -777
  73. package/src/abi/event.ts +83 -123
  74. package/src/abi/fixed_point64.ts +340 -373
  75. package/src/abi/guid.ts +102 -147
  76. package/src/abi/optional_aggregator.ts +103 -132
  77. package/src/abi/table.ts +181 -272
  78. package/src/core/Client.ts +6 -1
  79. package/src/core/__tests__/accountResource.test.ts +54 -14
  80. package/src/core/__tests__/createEntryPayload.test.ts +244 -250
  81. package/src/core/__tests__/createViewPayload.test.ts +44 -58
  82. package/src/core/__tests__/option.test.ts +1 -1
  83. package/src/core/__tests__/useABI.test.ts +72 -63
  84. package/src/core/__tests__/view.test.ts +76 -60
  85. package/src/core/createEntryPayload.ts +4 -3
  86. package/src/ensureTypes.ts +31 -28
  87. package/src/index.ts +8 -8
  88. package/src/types/client/abiClient.ts +2 -0
  89. package/src/types/convertor/argsConvertor.ts +1 -1
  90. package/src/types/convertor/structConvertor.ts +16 -15
  91. package/src/types/moveTypes.ts +5 -1
@@ -2,782 +2,651 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.COIN_ABI = void 0;
4
4
  exports.COIN_ABI = {
5
- "address": "0x1",
6
- "name": "coin",
7
- "friends": [
8
- "0x1::aptos_coin",
9
- "0x1::genesis",
10
- "0x1::transaction_fee"
11
- ],
12
- "exposed_functions": [
13
- {
14
- "name": "allow_supply_upgrades",
15
- "visibility": "public",
16
- "is_entry": false,
17
- "is_view": false,
18
- "generic_type_params": [],
19
- "params": [
20
- "&signer",
21
- "bool"
5
+ address: '0x1',
6
+ name: 'coin',
7
+ friends: ['0x1::aptos_coin', '0x1::genesis', '0x1::transaction_fee'],
8
+ exposed_functions: [
9
+ {
10
+ name: 'allow_supply_upgrades',
11
+ visibility: 'public',
12
+ is_entry: false,
13
+ is_view: false,
14
+ generic_type_params: [],
15
+ params: ['&signer', 'bool'],
16
+ return: [],
17
+ },
18
+ {
19
+ name: 'balance',
20
+ visibility: 'public',
21
+ is_entry: false,
22
+ is_view: true,
23
+ generic_type_params: [
24
+ {
25
+ constraints: [],
26
+ },
22
27
  ],
23
- "return": []
28
+ params: ['address'],
29
+ return: ['u64'],
24
30
  },
25
31
  {
26
- "name": "balance",
27
- "visibility": "public",
28
- "is_entry": false,
29
- "is_view": true,
30
- "generic_type_params": [
32
+ name: 'burn',
33
+ visibility: 'public',
34
+ is_entry: false,
35
+ is_view: false,
36
+ generic_type_params: [
31
37
  {
32
- "constraints": []
33
- }
34
- ],
35
- "params": [
36
- "address"
38
+ constraints: [],
39
+ },
37
40
  ],
38
- "return": [
39
- "u64"
40
- ]
41
+ params: ['0x1::coin::Coin<T0>', '&0x1::coin::BurnCapability<T0>'],
42
+ return: [],
41
43
  },
42
44
  {
43
- "name": "burn",
44
- "visibility": "public",
45
- "is_entry": false,
46
- "is_view": false,
47
- "generic_type_params": [
45
+ name: 'burn_from',
46
+ visibility: 'public',
47
+ is_entry: false,
48
+ is_view: false,
49
+ generic_type_params: [
48
50
  {
49
- "constraints": []
50
- }
51
- ],
52
- "params": [
53
- "0x1::coin::Coin<T0>",
54
- "&0x1::coin::BurnCapability<T0>"
51
+ constraints: [],
52
+ },
55
53
  ],
56
- "return": []
54
+ params: ['address', 'u64', '&0x1::coin::BurnCapability<T0>'],
55
+ return: [],
57
56
  },
58
57
  {
59
- "name": "burn_from",
60
- "visibility": "public",
61
- "is_entry": false,
62
- "is_view": false,
63
- "generic_type_params": [
58
+ name: 'collect_into_aggregatable_coin',
59
+ visibility: 'friend',
60
+ is_entry: false,
61
+ is_view: false,
62
+ generic_type_params: [
64
63
  {
65
- "constraints": []
66
- }
67
- ],
68
- "params": [
69
- "address",
70
- "u64",
71
- "&0x1::coin::BurnCapability<T0>"
64
+ constraints: [],
65
+ },
72
66
  ],
73
- "return": []
67
+ params: ['address', 'u64', '&mut 0x1::coin::AggregatableCoin<T0>'],
68
+ return: [],
74
69
  },
75
70
  {
76
- "name": "collect_into_aggregatable_coin",
77
- "visibility": "friend",
78
- "is_entry": false,
79
- "is_view": false,
80
- "generic_type_params": [
71
+ name: 'decimals',
72
+ visibility: 'public',
73
+ is_entry: false,
74
+ is_view: true,
75
+ generic_type_params: [
81
76
  {
82
- "constraints": []
83
- }
84
- ],
85
- "params": [
86
- "address",
87
- "u64",
88
- "&mut 0x1::coin::AggregatableCoin<T0>"
77
+ constraints: [],
78
+ },
89
79
  ],
90
- "return": []
80
+ params: [],
81
+ return: ['u8'],
91
82
  },
92
83
  {
93
- "name": "decimals",
94
- "visibility": "public",
95
- "is_entry": false,
96
- "is_view": true,
97
- "generic_type_params": [
84
+ name: 'deposit',
85
+ visibility: 'public',
86
+ is_entry: false,
87
+ is_view: false,
88
+ generic_type_params: [
98
89
  {
99
- "constraints": []
100
- }
90
+ constraints: [],
91
+ },
101
92
  ],
102
- "params": [],
103
- "return": [
104
- "u8"
105
- ]
93
+ params: ['address', '0x1::coin::Coin<T0>'],
94
+ return: [],
106
95
  },
107
96
  {
108
- "name": "deposit",
109
- "visibility": "public",
110
- "is_entry": false,
111
- "is_view": false,
112
- "generic_type_params": [
97
+ name: 'destroy_burn_cap',
98
+ visibility: 'public',
99
+ is_entry: false,
100
+ is_view: false,
101
+ generic_type_params: [
113
102
  {
114
- "constraints": []
115
- }
116
- ],
117
- "params": [
118
- "address",
119
- "0x1::coin::Coin<T0>"
103
+ constraints: [],
104
+ },
120
105
  ],
121
- "return": []
106
+ params: ['0x1::coin::BurnCapability<T0>'],
107
+ return: [],
122
108
  },
123
109
  {
124
- "name": "destroy_burn_cap",
125
- "visibility": "public",
126
- "is_entry": false,
127
- "is_view": false,
128
- "generic_type_params": [
110
+ name: 'destroy_freeze_cap',
111
+ visibility: 'public',
112
+ is_entry: false,
113
+ is_view: false,
114
+ generic_type_params: [
129
115
  {
130
- "constraints": []
131
- }
132
- ],
133
- "params": [
134
- "0x1::coin::BurnCapability<T0>"
116
+ constraints: [],
117
+ },
135
118
  ],
136
- "return": []
119
+ params: ['0x1::coin::FreezeCapability<T0>'],
120
+ return: [],
137
121
  },
138
122
  {
139
- "name": "destroy_freeze_cap",
140
- "visibility": "public",
141
- "is_entry": false,
142
- "is_view": false,
143
- "generic_type_params": [
123
+ name: 'destroy_mint_cap',
124
+ visibility: 'public',
125
+ is_entry: false,
126
+ is_view: false,
127
+ generic_type_params: [
144
128
  {
145
- "constraints": []
146
- }
147
- ],
148
- "params": [
149
- "0x1::coin::FreezeCapability<T0>"
129
+ constraints: [],
130
+ },
150
131
  ],
151
- "return": []
132
+ params: ['0x1::coin::MintCapability<T0>'],
133
+ return: [],
152
134
  },
153
135
  {
154
- "name": "destroy_mint_cap",
155
- "visibility": "public",
156
- "is_entry": false,
157
- "is_view": false,
158
- "generic_type_params": [
136
+ name: 'destroy_zero',
137
+ visibility: 'public',
138
+ is_entry: false,
139
+ is_view: false,
140
+ generic_type_params: [
159
141
  {
160
- "constraints": []
161
- }
162
- ],
163
- "params": [
164
- "0x1::coin::MintCapability<T0>"
142
+ constraints: [],
143
+ },
165
144
  ],
166
- "return": []
145
+ params: ['0x1::coin::Coin<T0>'],
146
+ return: [],
167
147
  },
168
148
  {
169
- "name": "destroy_zero",
170
- "visibility": "public",
171
- "is_entry": false,
172
- "is_view": false,
173
- "generic_type_params": [
149
+ name: 'drain_aggregatable_coin',
150
+ visibility: 'friend',
151
+ is_entry: false,
152
+ is_view: false,
153
+ generic_type_params: [
174
154
  {
175
- "constraints": []
176
- }
177
- ],
178
- "params": [
179
- "0x1::coin::Coin<T0>"
155
+ constraints: [],
156
+ },
180
157
  ],
181
- "return": []
158
+ params: ['&mut 0x1::coin::AggregatableCoin<T0>'],
159
+ return: ['0x1::coin::Coin<T0>'],
182
160
  },
183
161
  {
184
- "name": "drain_aggregatable_coin",
185
- "visibility": "friend",
186
- "is_entry": false,
187
- "is_view": false,
188
- "generic_type_params": [
162
+ name: 'extract',
163
+ visibility: 'public',
164
+ is_entry: false,
165
+ is_view: false,
166
+ generic_type_params: [
189
167
  {
190
- "constraints": []
191
- }
192
- ],
193
- "params": [
194
- "&mut 0x1::coin::AggregatableCoin<T0>"
168
+ constraints: [],
169
+ },
195
170
  ],
196
- "return": [
197
- "0x1::coin::Coin<T0>"
198
- ]
171
+ params: ['&mut 0x1::coin::Coin<T0>', 'u64'],
172
+ return: ['0x1::coin::Coin<T0>'],
199
173
  },
200
174
  {
201
- "name": "extract",
202
- "visibility": "public",
203
- "is_entry": false,
204
- "is_view": false,
205
- "generic_type_params": [
175
+ name: 'extract_all',
176
+ visibility: 'public',
177
+ is_entry: false,
178
+ is_view: false,
179
+ generic_type_params: [
206
180
  {
207
- "constraints": []
208
- }
209
- ],
210
- "params": [
211
- "&mut 0x1::coin::Coin<T0>",
212
- "u64"
181
+ constraints: [],
182
+ },
213
183
  ],
214
- "return": [
215
- "0x1::coin::Coin<T0>"
216
- ]
184
+ params: ['&mut 0x1::coin::Coin<T0>'],
185
+ return: ['0x1::coin::Coin<T0>'],
217
186
  },
218
187
  {
219
- "name": "extract_all",
220
- "visibility": "public",
221
- "is_entry": false,
222
- "is_view": false,
223
- "generic_type_params": [
188
+ name: 'freeze_coin_store',
189
+ visibility: 'public',
190
+ is_entry: true,
191
+ is_view: false,
192
+ generic_type_params: [
224
193
  {
225
- "constraints": []
226
- }
227
- ],
228
- "params": [
229
- "&mut 0x1::coin::Coin<T0>"
194
+ constraints: [],
195
+ },
230
196
  ],
231
- "return": [
232
- "0x1::coin::Coin<T0>"
233
- ]
197
+ params: ['address', '&0x1::coin::FreezeCapability<T0>'],
198
+ return: [],
234
199
  },
235
200
  {
236
- "name": "freeze_coin_store",
237
- "visibility": "public",
238
- "is_entry": true,
239
- "is_view": false,
240
- "generic_type_params": [
201
+ name: 'initialize',
202
+ visibility: 'public',
203
+ is_entry: false,
204
+ is_view: false,
205
+ generic_type_params: [
241
206
  {
242
- "constraints": []
243
- }
207
+ constraints: [],
208
+ },
244
209
  ],
245
- "params": [
246
- "address",
247
- "&0x1::coin::FreezeCapability<T0>"
210
+ params: [
211
+ '&signer',
212
+ '0x1::string::String',
213
+ '0x1::string::String',
214
+ 'u8',
215
+ 'bool',
248
216
  ],
249
- "return": []
250
- },
251
- {
252
- "name": "initialize",
253
- "visibility": "public",
254
- "is_entry": false,
255
- "is_view": false,
256
- "generic_type_params": [
257
- {
258
- "constraints": []
259
- }
260
- ],
261
- "params": [
262
- "&signer",
263
- "0x1::string::String",
264
- "0x1::string::String",
265
- "u8",
266
- "bool"
217
+ return: [
218
+ '0x1::coin::BurnCapability<T0>',
219
+ '0x1::coin::FreezeCapability<T0>',
220
+ '0x1::coin::MintCapability<T0>',
267
221
  ],
268
- "return": [
269
- "0x1::coin::BurnCapability<T0>",
270
- "0x1::coin::FreezeCapability<T0>",
271
- "0x1::coin::MintCapability<T0>"
272
- ]
273
222
  },
274
223
  {
275
- "name": "initialize_aggregatable_coin",
276
- "visibility": "friend",
277
- "is_entry": false,
278
- "is_view": false,
279
- "generic_type_params": [
224
+ name: 'initialize_aggregatable_coin',
225
+ visibility: 'friend',
226
+ is_entry: false,
227
+ is_view: false,
228
+ generic_type_params: [
280
229
  {
281
- "constraints": []
282
- }
283
- ],
284
- "params": [
285
- "&signer"
230
+ constraints: [],
231
+ },
286
232
  ],
287
- "return": [
288
- "0x1::coin::AggregatableCoin<T0>"
289
- ]
233
+ params: ['&signer'],
234
+ return: ['0x1::coin::AggregatableCoin<T0>'],
290
235
  },
291
236
  {
292
- "name": "initialize_supply_config",
293
- "visibility": "friend",
294
- "is_entry": false,
295
- "is_view": false,
296
- "generic_type_params": [],
297
- "params": [
298
- "&signer"
299
- ],
300
- "return": []
237
+ name: 'initialize_supply_config',
238
+ visibility: 'friend',
239
+ is_entry: false,
240
+ is_view: false,
241
+ generic_type_params: [],
242
+ params: ['&signer'],
243
+ return: [],
301
244
  },
302
245
  {
303
- "name": "initialize_with_parallelizable_supply",
304
- "visibility": "friend",
305
- "is_entry": false,
306
- "is_view": false,
307
- "generic_type_params": [
246
+ name: 'initialize_with_parallelizable_supply',
247
+ visibility: 'friend',
248
+ is_entry: false,
249
+ is_view: false,
250
+ generic_type_params: [
308
251
  {
309
- "constraints": []
310
- }
252
+ constraints: [],
253
+ },
311
254
  ],
312
- "params": [
313
- "&signer",
314
- "0x1::string::String",
315
- "0x1::string::String",
316
- "u8",
317
- "bool"
255
+ params: [
256
+ '&signer',
257
+ '0x1::string::String',
258
+ '0x1::string::String',
259
+ 'u8',
260
+ 'bool',
261
+ ],
262
+ return: [
263
+ '0x1::coin::BurnCapability<T0>',
264
+ '0x1::coin::FreezeCapability<T0>',
265
+ '0x1::coin::MintCapability<T0>',
318
266
  ],
319
- "return": [
320
- "0x1::coin::BurnCapability<T0>",
321
- "0x1::coin::FreezeCapability<T0>",
322
- "0x1::coin::MintCapability<T0>"
323
- ]
324
267
  },
325
268
  {
326
- "name": "is_account_registered",
327
- "visibility": "public",
328
- "is_entry": false,
329
- "is_view": true,
330
- "generic_type_params": [
269
+ name: 'is_account_registered',
270
+ visibility: 'public',
271
+ is_entry: false,
272
+ is_view: true,
273
+ generic_type_params: [
331
274
  {
332
- "constraints": []
333
- }
334
- ],
335
- "params": [
336
- "address"
275
+ constraints: [],
276
+ },
337
277
  ],
338
- "return": [
339
- "bool"
340
- ]
278
+ params: ['address'],
279
+ return: ['bool'],
341
280
  },
342
281
  {
343
- "name": "is_aggregatable_coin_zero",
344
- "visibility": "friend",
345
- "is_entry": false,
346
- "is_view": false,
347
- "generic_type_params": [
282
+ name: 'is_aggregatable_coin_zero',
283
+ visibility: 'friend',
284
+ is_entry: false,
285
+ is_view: false,
286
+ generic_type_params: [
348
287
  {
349
- "constraints": []
350
- }
351
- ],
352
- "params": [
353
- "&0x1::coin::AggregatableCoin<T0>"
288
+ constraints: [],
289
+ },
354
290
  ],
355
- "return": [
356
- "bool"
357
- ]
291
+ params: ['&0x1::coin::AggregatableCoin<T0>'],
292
+ return: ['bool'],
358
293
  },
359
294
  {
360
- "name": "is_coin_initialized",
361
- "visibility": "public",
362
- "is_entry": false,
363
- "is_view": true,
364
- "generic_type_params": [
295
+ name: 'is_coin_initialized',
296
+ visibility: 'public',
297
+ is_entry: false,
298
+ is_view: true,
299
+ generic_type_params: [
365
300
  {
366
- "constraints": []
367
- }
301
+ constraints: [],
302
+ },
368
303
  ],
369
- "params": [],
370
- "return": [
371
- "bool"
372
- ]
304
+ params: [],
305
+ return: ['bool'],
373
306
  },
374
307
  {
375
- "name": "merge",
376
- "visibility": "public",
377
- "is_entry": false,
378
- "is_view": false,
379
- "generic_type_params": [
308
+ name: 'merge',
309
+ visibility: 'public',
310
+ is_entry: false,
311
+ is_view: false,
312
+ generic_type_params: [
380
313
  {
381
- "constraints": []
382
- }
383
- ],
384
- "params": [
385
- "&mut 0x1::coin::Coin<T0>",
386
- "0x1::coin::Coin<T0>"
314
+ constraints: [],
315
+ },
387
316
  ],
388
- "return": []
317
+ params: ['&mut 0x1::coin::Coin<T0>', '0x1::coin::Coin<T0>'],
318
+ return: [],
389
319
  },
390
320
  {
391
- "name": "merge_aggregatable_coin",
392
- "visibility": "friend",
393
- "is_entry": false,
394
- "is_view": false,
395
- "generic_type_params": [
321
+ name: 'merge_aggregatable_coin',
322
+ visibility: 'friend',
323
+ is_entry: false,
324
+ is_view: false,
325
+ generic_type_params: [
396
326
  {
397
- "constraints": []
398
- }
399
- ],
400
- "params": [
401
- "&mut 0x1::coin::AggregatableCoin<T0>",
402
- "0x1::coin::Coin<T0>"
327
+ constraints: [],
328
+ },
403
329
  ],
404
- "return": []
330
+ params: ['&mut 0x1::coin::AggregatableCoin<T0>', '0x1::coin::Coin<T0>'],
331
+ return: [],
405
332
  },
406
333
  {
407
- "name": "mint",
408
- "visibility": "public",
409
- "is_entry": false,
410
- "is_view": false,
411
- "generic_type_params": [
334
+ name: 'mint',
335
+ visibility: 'public',
336
+ is_entry: false,
337
+ is_view: false,
338
+ generic_type_params: [
412
339
  {
413
- "constraints": []
414
- }
415
- ],
416
- "params": [
417
- "u64",
418
- "&0x1::coin::MintCapability<T0>"
340
+ constraints: [],
341
+ },
419
342
  ],
420
- "return": [
421
- "0x1::coin::Coin<T0>"
422
- ]
343
+ params: ['u64', '&0x1::coin::MintCapability<T0>'],
344
+ return: ['0x1::coin::Coin<T0>'],
423
345
  },
424
346
  {
425
- "name": "name",
426
- "visibility": "public",
427
- "is_entry": false,
428
- "is_view": true,
429
- "generic_type_params": [
347
+ name: 'name',
348
+ visibility: 'public',
349
+ is_entry: false,
350
+ is_view: true,
351
+ generic_type_params: [
430
352
  {
431
- "constraints": []
432
- }
353
+ constraints: [],
354
+ },
433
355
  ],
434
- "params": [],
435
- "return": [
436
- "0x1::string::String"
437
- ]
356
+ params: [],
357
+ return: ['0x1::string::String'],
438
358
  },
439
359
  {
440
- "name": "register",
441
- "visibility": "public",
442
- "is_entry": false,
443
- "is_view": false,
444
- "generic_type_params": [
360
+ name: 'register',
361
+ visibility: 'public',
362
+ is_entry: false,
363
+ is_view: false,
364
+ generic_type_params: [
445
365
  {
446
- "constraints": []
447
- }
448
- ],
449
- "params": [
450
- "&signer"
366
+ constraints: [],
367
+ },
451
368
  ],
452
- "return": []
369
+ params: ['&signer'],
370
+ return: [],
453
371
  },
454
372
  {
455
- "name": "supply",
456
- "visibility": "public",
457
- "is_entry": false,
458
- "is_view": true,
459
- "generic_type_params": [
373
+ name: 'supply',
374
+ visibility: 'public',
375
+ is_entry: false,
376
+ is_view: true,
377
+ generic_type_params: [
460
378
  {
461
- "constraints": []
462
- }
379
+ constraints: [],
380
+ },
463
381
  ],
464
- "params": [],
465
- "return": [
466
- "0x1::option::Option<u128>"
467
- ]
382
+ params: [],
383
+ return: ['0x1::option::Option<u128>'],
468
384
  },
469
385
  {
470
- "name": "symbol",
471
- "visibility": "public",
472
- "is_entry": false,
473
- "is_view": true,
474
- "generic_type_params": [
386
+ name: 'symbol',
387
+ visibility: 'public',
388
+ is_entry: false,
389
+ is_view: true,
390
+ generic_type_params: [
475
391
  {
476
- "constraints": []
477
- }
392
+ constraints: [],
393
+ },
478
394
  ],
479
- "params": [],
480
- "return": [
481
- "0x1::string::String"
482
- ]
395
+ params: [],
396
+ return: ['0x1::string::String'],
483
397
  },
484
398
  {
485
- "name": "transfer",
486
- "visibility": "public",
487
- "is_entry": true,
488
- "is_view": false,
489
- "generic_type_params": [
399
+ name: 'transfer',
400
+ visibility: 'public',
401
+ is_entry: true,
402
+ is_view: false,
403
+ generic_type_params: [
490
404
  {
491
- "constraints": []
492
- }
493
- ],
494
- "params": [
495
- "&signer",
496
- "address",
497
- "u64"
405
+ constraints: [],
406
+ },
498
407
  ],
499
- "return": []
408
+ params: ['&signer', 'address', 'u64'],
409
+ return: [],
500
410
  },
501
411
  {
502
- "name": "unfreeze_coin_store",
503
- "visibility": "public",
504
- "is_entry": true,
505
- "is_view": false,
506
- "generic_type_params": [
412
+ name: 'unfreeze_coin_store',
413
+ visibility: 'public',
414
+ is_entry: true,
415
+ is_view: false,
416
+ generic_type_params: [
507
417
  {
508
- "constraints": []
509
- }
510
- ],
511
- "params": [
512
- "address",
513
- "&0x1::coin::FreezeCapability<T0>"
418
+ constraints: [],
419
+ },
514
420
  ],
515
- "return": []
421
+ params: ['address', '&0x1::coin::FreezeCapability<T0>'],
422
+ return: [],
516
423
  },
517
424
  {
518
- "name": "upgrade_supply",
519
- "visibility": "public",
520
- "is_entry": true,
521
- "is_view": false,
522
- "generic_type_params": [
425
+ name: 'upgrade_supply',
426
+ visibility: 'public',
427
+ is_entry: true,
428
+ is_view: false,
429
+ generic_type_params: [
523
430
  {
524
- "constraints": []
525
- }
526
- ],
527
- "params": [
528
- "&signer"
431
+ constraints: [],
432
+ },
529
433
  ],
530
- "return": []
434
+ params: ['&signer'],
435
+ return: [],
531
436
  },
532
437
  {
533
- "name": "value",
534
- "visibility": "public",
535
- "is_entry": false,
536
- "is_view": false,
537
- "generic_type_params": [
438
+ name: 'value',
439
+ visibility: 'public',
440
+ is_entry: false,
441
+ is_view: false,
442
+ generic_type_params: [
538
443
  {
539
- "constraints": []
540
- }
541
- ],
542
- "params": [
543
- "&0x1::coin::Coin<T0>"
444
+ constraints: [],
445
+ },
544
446
  ],
545
- "return": [
546
- "u64"
547
- ]
447
+ params: ['&0x1::coin::Coin<T0>'],
448
+ return: ['u64'],
548
449
  },
549
450
  {
550
- "name": "withdraw",
551
- "visibility": "public",
552
- "is_entry": false,
553
- "is_view": false,
554
- "generic_type_params": [
451
+ name: 'withdraw',
452
+ visibility: 'public',
453
+ is_entry: false,
454
+ is_view: false,
455
+ generic_type_params: [
555
456
  {
556
- "constraints": []
557
- }
558
- ],
559
- "params": [
560
- "&signer",
561
- "u64"
457
+ constraints: [],
458
+ },
562
459
  ],
563
- "return": [
564
- "0x1::coin::Coin<T0>"
565
- ]
460
+ params: ['&signer', 'u64'],
461
+ return: ['0x1::coin::Coin<T0>'],
566
462
  },
567
463
  {
568
- "name": "zero",
569
- "visibility": "public",
570
- "is_entry": false,
571
- "is_view": false,
572
- "generic_type_params": [
464
+ name: 'zero',
465
+ visibility: 'public',
466
+ is_entry: false,
467
+ is_view: false,
468
+ generic_type_params: [
573
469
  {
574
- "constraints": []
575
- }
470
+ constraints: [],
471
+ },
576
472
  ],
577
- "params": [],
578
- "return": [
579
- "0x1::coin::Coin<T0>"
580
- ]
581
- }
473
+ params: [],
474
+ return: ['0x1::coin::Coin<T0>'],
475
+ },
582
476
  ],
583
- "structs": [
477
+ structs: [
584
478
  {
585
- "name": "AggregatableCoin",
586
- "is_native": false,
587
- "abilities": [
588
- "store"
589
- ],
590
- "generic_type_params": [
479
+ name: 'AggregatableCoin',
480
+ is_native: false,
481
+ abilities: ['store'],
482
+ generic_type_params: [
591
483
  {
592
- "constraints": []
593
- }
484
+ constraints: [],
485
+ },
594
486
  ],
595
- "fields": [
487
+ fields: [
596
488
  {
597
- "name": "value",
598
- "type": "0x1::aggregator::Aggregator"
599
- }
600
- ]
489
+ name: 'value',
490
+ type: '0x1::aggregator::Aggregator',
491
+ },
492
+ ],
601
493
  },
602
494
  {
603
- "name": "BurnCapability",
604
- "is_native": false,
605
- "abilities": [
606
- "copy",
607
- "store"
608
- ],
609
- "generic_type_params": [
495
+ name: 'BurnCapability',
496
+ is_native: false,
497
+ abilities: ['copy', 'store'],
498
+ generic_type_params: [
610
499
  {
611
- "constraints": []
612
- }
500
+ constraints: [],
501
+ },
613
502
  ],
614
- "fields": [
503
+ fields: [
615
504
  {
616
- "name": "dummy_field",
617
- "type": "bool"
618
- }
619
- ]
505
+ name: 'dummy_field',
506
+ type: 'bool',
507
+ },
508
+ ],
620
509
  },
621
510
  {
622
- "name": "Coin",
623
- "is_native": false,
624
- "abilities": [
625
- "store"
626
- ],
627
- "generic_type_params": [
511
+ name: 'Coin',
512
+ is_native: false,
513
+ abilities: ['store'],
514
+ generic_type_params: [
628
515
  {
629
- "constraints": []
630
- }
516
+ constraints: [],
517
+ },
631
518
  ],
632
- "fields": [
519
+ fields: [
633
520
  {
634
- "name": "value",
635
- "type": "u64"
636
- }
637
- ]
521
+ name: 'value',
522
+ type: 'u64',
523
+ },
524
+ ],
638
525
  },
639
526
  {
640
- "name": "CoinInfo",
641
- "is_native": false,
642
- "abilities": [
643
- "key"
644
- ],
645
- "generic_type_params": [
527
+ name: 'CoinInfo',
528
+ is_native: false,
529
+ abilities: ['key'],
530
+ generic_type_params: [
646
531
  {
647
- "constraints": []
648
- }
532
+ constraints: [],
533
+ },
649
534
  ],
650
- "fields": [
535
+ fields: [
651
536
  {
652
- "name": "name",
653
- "type": "0x1::string::String"
537
+ name: 'name',
538
+ type: '0x1::string::String',
654
539
  },
655
540
  {
656
- "name": "symbol",
657
- "type": "0x1::string::String"
541
+ name: 'symbol',
542
+ type: '0x1::string::String',
658
543
  },
659
544
  {
660
- "name": "decimals",
661
- "type": "u8"
545
+ name: 'decimals',
546
+ type: 'u8',
662
547
  },
663
548
  {
664
- "name": "supply",
665
- "type": "0x1::option::Option<0x1::optional_aggregator::OptionalAggregator>"
666
- }
667
- ]
549
+ name: 'supply',
550
+ type: '0x1::option::Option<0x1::optional_aggregator::OptionalAggregator>',
551
+ },
552
+ ],
668
553
  },
669
554
  {
670
- "name": "CoinStore",
671
- "is_native": false,
672
- "abilities": [
673
- "key"
674
- ],
675
- "generic_type_params": [
555
+ name: 'CoinStore',
556
+ is_native: false,
557
+ abilities: ['key'],
558
+ generic_type_params: [
676
559
  {
677
- "constraints": []
678
- }
560
+ constraints: [],
561
+ },
679
562
  ],
680
- "fields": [
563
+ fields: [
681
564
  {
682
- "name": "coin",
683
- "type": "0x1::coin::Coin<T0>"
565
+ name: 'coin',
566
+ type: '0x1::coin::Coin<T0>',
684
567
  },
685
568
  {
686
- "name": "frozen",
687
- "type": "bool"
569
+ name: 'frozen',
570
+ type: 'bool',
688
571
  },
689
572
  {
690
- "name": "deposit_events",
691
- "type": "0x1::event::EventHandle<0x1::coin::DepositEvent>"
573
+ name: 'deposit_events',
574
+ type: '0x1::event::EventHandle<0x1::coin::DepositEvent>',
692
575
  },
693
576
  {
694
- "name": "withdraw_events",
695
- "type": "0x1::event::EventHandle<0x1::coin::WithdrawEvent>"
696
- }
697
- ]
577
+ name: 'withdraw_events',
578
+ type: '0x1::event::EventHandle<0x1::coin::WithdrawEvent>',
579
+ },
580
+ ],
698
581
  },
699
582
  {
700
- "name": "DepositEvent",
701
- "is_native": false,
702
- "abilities": [
703
- "drop",
704
- "store"
705
- ],
706
- "generic_type_params": [],
707
- "fields": [
583
+ name: 'DepositEvent',
584
+ is_native: false,
585
+ abilities: ['drop', 'store'],
586
+ generic_type_params: [],
587
+ fields: [
708
588
  {
709
- "name": "amount",
710
- "type": "u64"
711
- }
712
- ]
589
+ name: 'amount',
590
+ type: 'u64',
591
+ },
592
+ ],
713
593
  },
714
594
  {
715
- "name": "FreezeCapability",
716
- "is_native": false,
717
- "abilities": [
718
- "copy",
719
- "store"
720
- ],
721
- "generic_type_params": [
595
+ name: 'FreezeCapability',
596
+ is_native: false,
597
+ abilities: ['copy', 'store'],
598
+ generic_type_params: [
722
599
  {
723
- "constraints": []
724
- }
600
+ constraints: [],
601
+ },
725
602
  ],
726
- "fields": [
603
+ fields: [
727
604
  {
728
- "name": "dummy_field",
729
- "type": "bool"
730
- }
731
- ]
605
+ name: 'dummy_field',
606
+ type: 'bool',
607
+ },
608
+ ],
732
609
  },
733
610
  {
734
- "name": "MintCapability",
735
- "is_native": false,
736
- "abilities": [
737
- "copy",
738
- "store"
739
- ],
740
- "generic_type_params": [
611
+ name: 'MintCapability',
612
+ is_native: false,
613
+ abilities: ['copy', 'store'],
614
+ generic_type_params: [
741
615
  {
742
- "constraints": []
743
- }
616
+ constraints: [],
617
+ },
744
618
  ],
745
- "fields": [
619
+ fields: [
746
620
  {
747
- "name": "dummy_field",
748
- "type": "bool"
749
- }
750
- ]
621
+ name: 'dummy_field',
622
+ type: 'bool',
623
+ },
624
+ ],
751
625
  },
752
626
  {
753
- "name": "SupplyConfig",
754
- "is_native": false,
755
- "abilities": [
756
- "key"
757
- ],
758
- "generic_type_params": [],
759
- "fields": [
627
+ name: 'SupplyConfig',
628
+ is_native: false,
629
+ abilities: ['key'],
630
+ generic_type_params: [],
631
+ fields: [
760
632
  {
761
- "name": "allow_upgrades",
762
- "type": "bool"
763
- }
764
- ]
633
+ name: 'allow_upgrades',
634
+ type: 'bool',
635
+ },
636
+ ],
765
637
  },
766
638
  {
767
- "name": "WithdrawEvent",
768
- "is_native": false,
769
- "abilities": [
770
- "drop",
771
- "store"
772
- ],
773
- "generic_type_params": [],
774
- "fields": [
639
+ name: 'WithdrawEvent',
640
+ is_native: false,
641
+ abilities: ['drop', 'store'],
642
+ generic_type_params: [],
643
+ fields: [
775
644
  {
776
- "name": "amount",
777
- "type": "u64"
778
- }
779
- ]
780
- }
781
- ]
645
+ name: 'amount',
646
+ type: 'u64',
647
+ },
648
+ ],
649
+ },
650
+ ],
782
651
  };
783
652
  //# sourceMappingURL=coin.js.map