@qubic.org/contracts 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +285 -0
  2. package/dist/__generated__/computorcontrolledfund.d.ts +185 -0
  3. package/dist/__generated__/computorcontrolledfund.d.ts.map +1 -0
  4. package/dist/__generated__/computorcontrolledfund.js +805 -0
  5. package/dist/__generated__/computorcontrolledfund.js.map +1 -0
  6. package/dist/__generated__/escrow.d.ts +103 -0
  7. package/dist/__generated__/escrow.d.ts.map +1 -0
  8. package/dist/__generated__/escrow.js +383 -0
  9. package/dist/__generated__/escrow.js.map +1 -0
  10. package/dist/__generated__/generalquorumproposal.d.ts +130 -0
  11. package/dist/__generated__/generalquorumproposal.d.ts.map +1 -0
  12. package/dist/__generated__/generalquorumproposal.js +499 -0
  13. package/dist/__generated__/generalquorumproposal.js.map +1 -0
  14. package/dist/__generated__/index.d.ts +28 -0
  15. package/dist/__generated__/index.d.ts.map +1 -0
  16. package/dist/__generated__/index.js +28 -0
  17. package/dist/__generated__/index.js.map +1 -0
  18. package/dist/__generated__/msvault.d.ts +336 -0
  19. package/dist/__generated__/msvault.d.ts.map +1 -0
  20. package/dist/__generated__/msvault.js +1187 -0
  21. package/dist/__generated__/msvault.js.map +1 -0
  22. package/dist/__generated__/multisignvault.d.ts +348 -0
  23. package/dist/__generated__/multisignvault.d.ts.map +1 -0
  24. package/dist/__generated__/multisignvault.js +913 -0
  25. package/dist/__generated__/multisignvault.js.map +1 -0
  26. package/dist/__generated__/mylastmatch.d.ts +5 -0
  27. package/dist/__generated__/mylastmatch.d.ts.map +1 -0
  28. package/dist/__generated__/mylastmatch.js +7 -0
  29. package/dist/__generated__/mylastmatch.js.map +1 -0
  30. package/dist/__generated__/nostromo.d.ts +295 -0
  31. package/dist/__generated__/nostromo.d.ts.map +1 -0
  32. package/dist/__generated__/nostromo.js +1113 -0
  33. package/dist/__generated__/nostromo.js.map +1 -0
  34. package/dist/__generated__/pulse.d.ts +320 -0
  35. package/dist/__generated__/pulse.d.ts.map +1 -0
  36. package/dist/__generated__/pulse.js +1024 -0
  37. package/dist/__generated__/pulse.js.map +1 -0
  38. package/dist/__generated__/qbay.d.ts +415 -0
  39. package/dist/__generated__/qbay.d.ts.map +1 -0
  40. package/dist/__generated__/qbay.js +1486 -0
  41. package/dist/__generated__/qbay.js.map +1 -0
  42. package/dist/__generated__/qbond.d.ts +210 -0
  43. package/dist/__generated__/qbond.d.ts.map +1 -0
  44. package/dist/__generated__/qbond.js +694 -0
  45. package/dist/__generated__/qbond.js.map +1 -0
  46. package/dist/__generated__/qdraw.d.ts +39 -0
  47. package/dist/__generated__/qdraw.d.ts.map +1 -0
  48. package/dist/__generated__/qdraw.js +135 -0
  49. package/dist/__generated__/qdraw.js.map +1 -0
  50. package/dist/__generated__/qduel.d.ts +171 -0
  51. package/dist/__generated__/qduel.d.ts.map +1 -0
  52. package/dist/__generated__/qduel.js +573 -0
  53. package/dist/__generated__/qduel.js.map +1 -0
  54. package/dist/__generated__/qearn.d.ts +139 -0
  55. package/dist/__generated__/qearn.d.ts.map +1 -0
  56. package/dist/__generated__/qearn.js +471 -0
  57. package/dist/__generated__/qearn.js.map +1 -0
  58. package/dist/__generated__/qip.d.ts +84 -0
  59. package/dist/__generated__/qip.d.ts.map +1 -0
  60. package/dist/__generated__/qip.js +303 -0
  61. package/dist/__generated__/qip.js.map +1 -0
  62. package/dist/__generated__/qraffle.d.ts +235 -0
  63. package/dist/__generated__/qraffle.d.ts.map +1 -0
  64. package/dist/__generated__/qraffle.js +798 -0
  65. package/dist/__generated__/qraffle.js.map +1 -0
  66. package/dist/__generated__/qreservepool.d.ts +70 -0
  67. package/dist/__generated__/qreservepool.d.ts.map +1 -0
  68. package/dist/__generated__/qreservepool.js +177 -0
  69. package/dist/__generated__/qreservepool.js.map +1 -0
  70. package/dist/__generated__/qrwa.d.ts +285 -0
  71. package/dist/__generated__/qrwa.d.ts.map +1 -0
  72. package/dist/__generated__/qrwa.js +1063 -0
  73. package/dist/__generated__/qrwa.js.map +1 -0
  74. package/dist/__generated__/qswap.d.ts +273 -0
  75. package/dist/__generated__/qswap.d.ts.map +1 -0
  76. package/dist/__generated__/qswap.js +897 -0
  77. package/dist/__generated__/qswap.js.map +1 -0
  78. package/dist/__generated__/qthirtyfour.d.ts +231 -0
  79. package/dist/__generated__/qthirtyfour.d.ts.map +1 -0
  80. package/dist/__generated__/qthirtyfour.js +790 -0
  81. package/dist/__generated__/qthirtyfour.js.map +1 -0
  82. package/dist/__generated__/qubicicoportal.d.ts +81 -0
  83. package/dist/__generated__/qubicicoportal.d.ts.map +1 -0
  84. package/dist/__generated__/qubicicoportal.js +260 -0
  85. package/dist/__generated__/qubicicoportal.js.map +1 -0
  86. package/dist/__generated__/quottery.d.ts +308 -0
  87. package/dist/__generated__/quottery.d.ts.map +1 -0
  88. package/dist/__generated__/quottery.js +1062 -0
  89. package/dist/__generated__/quottery.js.map +1 -0
  90. package/dist/__generated__/qusino.d.ts +172 -0
  91. package/dist/__generated__/qusino.d.ts.map +1 -0
  92. package/dist/__generated__/qusino.js +533 -0
  93. package/dist/__generated__/qusino.js.map +1 -0
  94. package/dist/__generated__/qutil.d.ts +310 -0
  95. package/dist/__generated__/qutil.d.ts.map +1 -0
  96. package/dist/__generated__/qutil.js +1033 -0
  97. package/dist/__generated__/qutil.js.map +1 -0
  98. package/dist/__generated__/qvault.d.ts +535 -0
  99. package/dist/__generated__/qvault.d.ts.map +1 -0
  100. package/dist/__generated__/qvault.js +2047 -0
  101. package/dist/__generated__/qvault.js.map +1 -0
  102. package/dist/__generated__/qx.d.ts +178 -0
  103. package/dist/__generated__/qx.d.ts.map +1 -0
  104. package/dist/__generated__/qx.js +586 -0
  105. package/dist/__generated__/qx.js.map +1 -0
  106. package/dist/__generated__/random.d.ts +12 -0
  107. package/dist/__generated__/random.d.ts.map +1 -0
  108. package/dist/__generated__/random.js +26 -0
  109. package/dist/__generated__/random.js.map +1 -0
  110. package/dist/__generated__/randomlottery.d.ts +135 -0
  111. package/dist/__generated__/randomlottery.d.ts.map +1 -0
  112. package/dist/__generated__/randomlottery.js +451 -0
  113. package/dist/__generated__/randomlottery.js.map +1 -0
  114. package/dist/__generated__/supplywatcher.d.ts +5 -0
  115. package/dist/__generated__/supplywatcher.d.ts.map +1 -0
  116. package/dist/__generated__/supplywatcher.js +7 -0
  117. package/dist/__generated__/supplywatcher.js.map +1 -0
  118. package/dist/__generated__/vottunbridge.d.ts +226 -0
  119. package/dist/__generated__/vottunbridge.d.ts.map +1 -0
  120. package/dist/__generated__/vottunbridge.js +835 -0
  121. package/dist/__generated__/vottunbridge.js.map +1 -0
  122. package/dist/call-contract.d.ts +25 -0
  123. package/dist/call-contract.d.ts.map +1 -0
  124. package/dist/call-contract.js +41 -0
  125. package/dist/call-contract.js.map +1 -0
  126. package/dist/index.d.ts +6 -0
  127. package/dist/index.d.ts.map +1 -0
  128. package/dist/index.js +4 -0
  129. package/dist/index.js.map +1 -0
  130. package/dist/result.d.ts +12 -0
  131. package/dist/result.d.ts.map +1 -0
  132. package/dist/result.js +7 -0
  133. package/dist/result.js.map +1 -0
  134. package/package.json +32 -0
@@ -0,0 +1,897 @@
1
+ import { buildPayload, decodePayload } from '@qubic.org/registry';
2
+ import { callContractFunction } from '../call-contract.js';
3
+ export const QSWAP_CONTRACT_INDEX = 13;
4
+ const STRUCTS = {
5
+ 'Asset': {
6
+ name: 'Asset',
7
+ byteLength: 40,
8
+ fields: [
9
+ {
10
+ name: 'issuer',
11
+ type: 'id',
12
+ offset: 0,
13
+ byteLength: 32,
14
+ },
15
+ {
16
+ name: 'assetName',
17
+ type: 'uint64',
18
+ offset: 32,
19
+ byteLength: 8,
20
+ },
21
+ ],
22
+ },
23
+ };
24
+ export const QSWAP_SET_INVEST_REWARDS_INFO_INPUT_TYPE = 3;
25
+ const QSWAP_SET_INVEST_REWARDS_INFO_INPUT_FIELDS = [
26
+ {
27
+ name: 'newInvestRewardsId',
28
+ type: 'id',
29
+ offset: 0,
30
+ byteLength: 32,
31
+ },
32
+ ];
33
+ export function buildQswapSetInvestRewardsInfoInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
34
+ return buildPayload(QSWAP_SET_INVEST_REWARDS_INFO_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
35
+ }
36
+ const QSWAP_SET_INVEST_REWARDS_INFO_OUTPUT_FIELDS = [
37
+ {
38
+ name: 'success',
39
+ type: 'uint8',
40
+ offset: 0,
41
+ byteLength: 1,
42
+ },
43
+ ];
44
+ export function decodeQswapSetInvestRewardsInfoOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
45
+ return decodePayload(data, QSWAP_SET_INVEST_REWARDS_INFO_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
46
+ }
47
+ export const QSWAP_ISSUE_ASSET_INPUT_TYPE = 10;
48
+ const QSWAP_ISSUE_ASSET_INPUT_FIELDS = [
49
+ {
50
+ name: 'assetName',
51
+ type: 'uint64',
52
+ offset: 0,
53
+ byteLength: 8,
54
+ },
55
+ {
56
+ name: 'numberOfShares',
57
+ type: 'sint64',
58
+ offset: 8,
59
+ byteLength: 8,
60
+ },
61
+ {
62
+ name: 'unitOfMeasurement',
63
+ type: 'uint64',
64
+ offset: 16,
65
+ byteLength: 8,
66
+ },
67
+ {
68
+ name: 'numberOfDecimalPlaces',
69
+ type: 'sint8',
70
+ offset: 24,
71
+ byteLength: 1,
72
+ },
73
+ ];
74
+ export function buildQswapIssueAssetInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
75
+ return buildPayload(QSWAP_ISSUE_ASSET_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
76
+ }
77
+ const QSWAP_ISSUE_ASSET_OUTPUT_FIELDS = [
78
+ {
79
+ name: 'issuedNumberOfShares',
80
+ type: 'sint64',
81
+ offset: 0,
82
+ byteLength: 8,
83
+ },
84
+ ];
85
+ export function decodeQswapIssueAssetOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
86
+ return decodePayload(data, QSWAP_ISSUE_ASSET_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
87
+ }
88
+ export const QSWAP_CREATE_POOL_INPUT_TYPE = 11;
89
+ const QSWAP_CREATE_POOL_INPUT_FIELDS = [
90
+ {
91
+ name: 'assetIssuer',
92
+ type: 'id',
93
+ offset: 0,
94
+ byteLength: 32,
95
+ },
96
+ {
97
+ name: 'assetName',
98
+ type: 'uint64',
99
+ offset: 32,
100
+ byteLength: 8,
101
+ },
102
+ ];
103
+ export function buildQswapCreatePoolInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
104
+ return buildPayload(QSWAP_CREATE_POOL_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
105
+ }
106
+ const QSWAP_CREATE_POOL_OUTPUT_FIELDS = [
107
+ {
108
+ name: 'success',
109
+ type: 'uint8',
110
+ offset: 0,
111
+ byteLength: 1,
112
+ },
113
+ ];
114
+ export function decodeQswapCreatePoolOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
115
+ return decodePayload(data, QSWAP_CREATE_POOL_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
116
+ }
117
+ export const QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_INPUT_TYPE = 12;
118
+ const QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_INPUT_FIELDS = [
119
+ {
120
+ name: 'assetIssuer',
121
+ type: 'id',
122
+ offset: 0,
123
+ byteLength: 32,
124
+ },
125
+ {
126
+ name: 'assetName',
127
+ type: 'uint64',
128
+ offset: 32,
129
+ byteLength: 8,
130
+ },
131
+ {
132
+ name: 'newOwnerAndPossessor',
133
+ type: 'id',
134
+ offset: 40,
135
+ byteLength: 32,
136
+ },
137
+ {
138
+ name: 'amount',
139
+ type: 'sint64',
140
+ offset: 72,
141
+ byteLength: 8,
142
+ },
143
+ ];
144
+ export function buildQswapTransferShareOwnershipAndPossessionInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
145
+ return buildPayload(QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
146
+ }
147
+ const QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_OUTPUT_FIELDS = [
148
+ {
149
+ name: 'transferredAmount',
150
+ type: 'sint64',
151
+ offset: 0,
152
+ byteLength: 8,
153
+ },
154
+ ];
155
+ export function decodeQswapTransferShareOwnershipAndPossessionOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
156
+ return decodePayload(data, QSWAP_TRANSFER_SHARE_OWNERSHIP_AND_POSSESSION_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
157
+ }
158
+ export const QSWAP_ADD_LIQUIDITY_INPUT_TYPE = 13;
159
+ const QSWAP_ADD_LIQUIDITY_INPUT_FIELDS = [
160
+ {
161
+ name: 'assetIssuer',
162
+ type: 'id',
163
+ offset: 0,
164
+ byteLength: 32,
165
+ },
166
+ {
167
+ name: 'assetName',
168
+ type: 'uint64',
169
+ offset: 32,
170
+ byteLength: 8,
171
+ },
172
+ {
173
+ name: 'assetAmountDesired',
174
+ type: 'sint64',
175
+ offset: 40,
176
+ byteLength: 8,
177
+ },
178
+ {
179
+ name: 'quAmountMin',
180
+ type: 'sint64',
181
+ offset: 48,
182
+ byteLength: 8,
183
+ },
184
+ {
185
+ name: 'assetAmountMin',
186
+ type: 'sint64',
187
+ offset: 56,
188
+ byteLength: 8,
189
+ },
190
+ ];
191
+ export function buildQswapAddLiquidityInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
192
+ return buildPayload(QSWAP_ADD_LIQUIDITY_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
193
+ }
194
+ const QSWAP_ADD_LIQUIDITY_OUTPUT_FIELDS = [
195
+ {
196
+ name: 'userIncreaseLiquidity',
197
+ type: 'sint64',
198
+ offset: 0,
199
+ byteLength: 8,
200
+ },
201
+ {
202
+ name: 'quAmount',
203
+ type: 'sint64',
204
+ offset: 8,
205
+ byteLength: 8,
206
+ },
207
+ {
208
+ name: 'assetAmount',
209
+ type: 'sint64',
210
+ offset: 16,
211
+ byteLength: 8,
212
+ },
213
+ ];
214
+ export function decodeQswapAddLiquidityOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
215
+ return decodePayload(data, QSWAP_ADD_LIQUIDITY_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
216
+ }
217
+ export const QSWAP_REMOVE_LIQUIDITY_INPUT_TYPE = 14;
218
+ const QSWAP_REMOVE_LIQUIDITY_INPUT_FIELDS = [
219
+ {
220
+ name: 'assetIssuer',
221
+ type: 'id',
222
+ offset: 0,
223
+ byteLength: 32,
224
+ },
225
+ {
226
+ name: 'assetName',
227
+ type: 'uint64',
228
+ offset: 32,
229
+ byteLength: 8,
230
+ },
231
+ {
232
+ name: 'burnLiquidity',
233
+ type: 'sint64',
234
+ offset: 40,
235
+ byteLength: 8,
236
+ },
237
+ {
238
+ name: 'quAmountMin',
239
+ type: 'sint64',
240
+ offset: 48,
241
+ byteLength: 8,
242
+ },
243
+ {
244
+ name: 'assetAmountMin',
245
+ type: 'sint64',
246
+ offset: 56,
247
+ byteLength: 8,
248
+ },
249
+ ];
250
+ export function buildQswapRemoveLiquidityInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
251
+ return buildPayload(QSWAP_REMOVE_LIQUIDITY_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
252
+ }
253
+ const QSWAP_REMOVE_LIQUIDITY_OUTPUT_FIELDS = [
254
+ {
255
+ name: 'quAmount',
256
+ type: 'sint64',
257
+ offset: 0,
258
+ byteLength: 8,
259
+ },
260
+ {
261
+ name: 'assetAmount',
262
+ type: 'sint64',
263
+ offset: 8,
264
+ byteLength: 8,
265
+ },
266
+ ];
267
+ export function decodeQswapRemoveLiquidityOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
268
+ return decodePayload(data, QSWAP_REMOVE_LIQUIDITY_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
269
+ }
270
+ export const QSWAP_SWAP_EXACT_QU_FOR_ASSET_INPUT_TYPE = 15;
271
+ const QSWAP_SWAP_EXACT_QU_FOR_ASSET_INPUT_FIELDS = [
272
+ {
273
+ name: 'assetIssuer',
274
+ type: 'id',
275
+ offset: 0,
276
+ byteLength: 32,
277
+ },
278
+ {
279
+ name: 'assetName',
280
+ type: 'uint64',
281
+ offset: 32,
282
+ byteLength: 8,
283
+ },
284
+ {
285
+ name: 'assetAmountOutMin',
286
+ type: 'sint64',
287
+ offset: 40,
288
+ byteLength: 8,
289
+ },
290
+ ];
291
+ export function buildQswapSwapExactQuForAssetInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
292
+ return buildPayload(QSWAP_SWAP_EXACT_QU_FOR_ASSET_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
293
+ }
294
+ const QSWAP_SWAP_EXACT_QU_FOR_ASSET_OUTPUT_FIELDS = [
295
+ {
296
+ name: 'assetAmountOut',
297
+ type: 'sint64',
298
+ offset: 0,
299
+ byteLength: 8,
300
+ },
301
+ ];
302
+ export function decodeQswapSwapExactQuForAssetOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
303
+ return decodePayload(data, QSWAP_SWAP_EXACT_QU_FOR_ASSET_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
304
+ }
305
+ export const QSWAP_SWAP_QU_FOR_EXACT_ASSET_INPUT_TYPE = 16;
306
+ const QSWAP_SWAP_QU_FOR_EXACT_ASSET_INPUT_FIELDS = [
307
+ {
308
+ name: 'assetIssuer',
309
+ type: 'id',
310
+ offset: 0,
311
+ byteLength: 32,
312
+ },
313
+ {
314
+ name: 'assetName',
315
+ type: 'uint64',
316
+ offset: 32,
317
+ byteLength: 8,
318
+ },
319
+ {
320
+ name: 'assetAmountOut',
321
+ type: 'sint64',
322
+ offset: 40,
323
+ byteLength: 8,
324
+ },
325
+ ];
326
+ export function buildQswapSwapQuForExactAssetInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
327
+ return buildPayload(QSWAP_SWAP_QU_FOR_EXACT_ASSET_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
328
+ }
329
+ const QSWAP_SWAP_QU_FOR_EXACT_ASSET_OUTPUT_FIELDS = [
330
+ {
331
+ name: 'quAmountIn',
332
+ type: 'sint64',
333
+ offset: 0,
334
+ byteLength: 8,
335
+ },
336
+ ];
337
+ export function decodeQswapSwapQuForExactAssetOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
338
+ return decodePayload(data, QSWAP_SWAP_QU_FOR_EXACT_ASSET_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
339
+ }
340
+ export const QSWAP_SWAP_EXACT_ASSET_FOR_QU_INPUT_TYPE = 17;
341
+ const QSWAP_SWAP_EXACT_ASSET_FOR_QU_INPUT_FIELDS = [
342
+ {
343
+ name: 'assetIssuer',
344
+ type: 'id',
345
+ offset: 0,
346
+ byteLength: 32,
347
+ },
348
+ {
349
+ name: 'assetName',
350
+ type: 'uint64',
351
+ offset: 32,
352
+ byteLength: 8,
353
+ },
354
+ {
355
+ name: 'assetAmountIn',
356
+ type: 'sint64',
357
+ offset: 40,
358
+ byteLength: 8,
359
+ },
360
+ {
361
+ name: 'quAmountOutMin',
362
+ type: 'sint64',
363
+ offset: 48,
364
+ byteLength: 8,
365
+ },
366
+ ];
367
+ export function buildQswapSwapExactAssetForQuInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
368
+ return buildPayload(QSWAP_SWAP_EXACT_ASSET_FOR_QU_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
369
+ }
370
+ const QSWAP_SWAP_EXACT_ASSET_FOR_QU_OUTPUT_FIELDS = [
371
+ {
372
+ name: 'quAmountOut',
373
+ type: 'sint64',
374
+ offset: 0,
375
+ byteLength: 8,
376
+ },
377
+ ];
378
+ export function decodeQswapSwapExactAssetForQuOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
379
+ return decodePayload(data, QSWAP_SWAP_EXACT_ASSET_FOR_QU_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
380
+ }
381
+ export const QSWAP_SWAP_ASSET_FOR_EXACT_QU_INPUT_TYPE = 18;
382
+ const QSWAP_SWAP_ASSET_FOR_EXACT_QU_INPUT_FIELDS = [
383
+ {
384
+ name: 'assetIssuer',
385
+ type: 'id',
386
+ offset: 0,
387
+ byteLength: 32,
388
+ },
389
+ {
390
+ name: 'assetName',
391
+ type: 'uint64',
392
+ offset: 32,
393
+ byteLength: 8,
394
+ },
395
+ {
396
+ name: 'assetAmountInMax',
397
+ type: 'sint64',
398
+ offset: 40,
399
+ byteLength: 8,
400
+ },
401
+ {
402
+ name: 'quAmountOut',
403
+ type: 'sint64',
404
+ offset: 48,
405
+ byteLength: 8,
406
+ },
407
+ ];
408
+ export function buildQswapSwapAssetForExactQuInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
409
+ return buildPayload(QSWAP_SWAP_ASSET_FOR_EXACT_QU_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
410
+ }
411
+ const QSWAP_SWAP_ASSET_FOR_EXACT_QU_OUTPUT_FIELDS = [
412
+ {
413
+ name: 'assetAmountIn',
414
+ type: 'sint64',
415
+ offset: 0,
416
+ byteLength: 8,
417
+ },
418
+ ];
419
+ export function decodeQswapSwapAssetForExactQuOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
420
+ return decodePayload(data, QSWAP_SWAP_ASSET_FOR_EXACT_QU_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
421
+ }
422
+ export const QSWAP_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_TYPE = 19;
423
+ const QSWAP_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_FIELDS = [
424
+ {
425
+ name: 'asset',
426
+ type: 'struct',
427
+ offset: 0,
428
+ byteLength: 40,
429
+ structRef: 'Asset',
430
+ },
431
+ {
432
+ name: 'numberOfShares',
433
+ type: 'sint64',
434
+ offset: 40,
435
+ byteLength: 8,
436
+ },
437
+ {
438
+ name: 'newManagingContractIndex',
439
+ type: 'uint32',
440
+ offset: 48,
441
+ byteLength: 4,
442
+ },
443
+ ];
444
+ export function buildQswapTransferShareManagementRightsInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
445
+ return buildPayload(QSWAP_TRANSFER_SHARE_MANAGEMENT_RIGHTS_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
446
+ }
447
+ const QSWAP_TRANSFER_SHARE_MANAGEMENT_RIGHTS_OUTPUT_FIELDS = [
448
+ {
449
+ name: 'transferredNumberOfShares',
450
+ type: 'sint64',
451
+ offset: 0,
452
+ byteLength: 8,
453
+ },
454
+ ];
455
+ export function decodeQswapTransferShareManagementRightsOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
456
+ return decodePayload(data, QSWAP_TRANSFER_SHARE_MANAGEMENT_RIGHTS_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
457
+ }
458
+ export const QSWAP_FEES_INPUT_TYPE = 1;
459
+ export const QSWAP_FEES_INPUT_SIZE = 0;
460
+ const QSWAP_FEES_OUTPUT_FIELDS = [
461
+ {
462
+ name: 'assetIssuanceFee',
463
+ type: 'uint32',
464
+ offset: 0,
465
+ byteLength: 4,
466
+ },
467
+ {
468
+ name: 'poolCreationFee',
469
+ type: 'uint32',
470
+ offset: 4,
471
+ byteLength: 4,
472
+ },
473
+ {
474
+ name: 'transferFee',
475
+ type: 'uint32',
476
+ offset: 8,
477
+ byteLength: 4,
478
+ },
479
+ {
480
+ name: 'swapFee',
481
+ type: 'uint32',
482
+ offset: 12,
483
+ byteLength: 4,
484
+ },
485
+ {
486
+ name: 'shareholderFee',
487
+ type: 'uint32',
488
+ offset: 16,
489
+ byteLength: 4,
490
+ },
491
+ {
492
+ name: 'investRewardsFee',
493
+ type: 'uint32',
494
+ offset: 20,
495
+ byteLength: 4,
496
+ },
497
+ {
498
+ name: 'qxFee',
499
+ type: 'uint32',
500
+ offset: 24,
501
+ byteLength: 4,
502
+ },
503
+ {
504
+ name: 'burnFee',
505
+ type: 'uint32',
506
+ offset: 28,
507
+ byteLength: 4,
508
+ },
509
+ ];
510
+ export function decodeQswapFeesOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
511
+ return decodePayload(data, QSWAP_FEES_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
512
+ }
513
+ export async function qswapFees(live, options) {
514
+ return callContractFunction({
515
+ live,
516
+ contractIndex: QSWAP_CONTRACT_INDEX,
517
+ inputType: QSWAP_FEES_INPUT_TYPE,
518
+ inputSize: QSWAP_FEES_INPUT_SIZE,
519
+ inputFields: [],
520
+ outputFields: QSWAP_FEES_OUTPUT_FIELDS,
521
+ structs: STRUCTS,
522
+ input: {},
523
+ ...options,
524
+ });
525
+ }
526
+ export const QSWAP_INVEST_REWARDS_INFO_INPUT_TYPE = 2;
527
+ export const QSWAP_INVEST_REWARDS_INFO_INPUT_SIZE = 0;
528
+ const QSWAP_INVEST_REWARDS_INFO_OUTPUT_FIELDS = [
529
+ {
530
+ name: 'investRewardsFee',
531
+ type: 'uint32',
532
+ offset: 0,
533
+ byteLength: 4,
534
+ },
535
+ {
536
+ name: 'investRewardsId',
537
+ type: 'id',
538
+ offset: 4,
539
+ byteLength: 32,
540
+ },
541
+ ];
542
+ export function decodeQswapInvestRewardsInfoOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
543
+ return decodePayload(data, QSWAP_INVEST_REWARDS_INFO_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
544
+ }
545
+ export async function qswapInvestRewardsInfo(live, options) {
546
+ return callContractFunction({
547
+ live,
548
+ contractIndex: QSWAP_CONTRACT_INDEX,
549
+ inputType: QSWAP_INVEST_REWARDS_INFO_INPUT_TYPE,
550
+ inputSize: QSWAP_INVEST_REWARDS_INFO_INPUT_SIZE,
551
+ inputFields: [],
552
+ outputFields: QSWAP_INVEST_REWARDS_INFO_OUTPUT_FIELDS,
553
+ structs: STRUCTS,
554
+ input: {},
555
+ ...options,
556
+ });
557
+ }
558
+ export const QSWAP_GET_POOL_BASIC_STATE_INPUT_TYPE = 4;
559
+ export const QSWAP_GET_POOL_BASIC_STATE_INPUT_SIZE = 40;
560
+ const QSWAP_GET_POOL_BASIC_STATE_INPUT_FIELDS = [
561
+ {
562
+ name: 'assetIssuer',
563
+ type: 'id',
564
+ offset: 0,
565
+ byteLength: 32,
566
+ },
567
+ {
568
+ name: 'assetName',
569
+ type: 'uint64',
570
+ offset: 32,
571
+ byteLength: 8,
572
+ },
573
+ ];
574
+ export function buildQswapGetPoolBasicStateInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
575
+ return buildPayload(QSWAP_GET_POOL_BASIC_STATE_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
576
+ }
577
+ const QSWAP_GET_POOL_BASIC_STATE_OUTPUT_FIELDS = [
578
+ {
579
+ name: 'poolExists',
580
+ type: 'sint64',
581
+ offset: 0,
582
+ byteLength: 8,
583
+ },
584
+ {
585
+ name: 'reservedQuAmount',
586
+ type: 'sint64',
587
+ offset: 8,
588
+ byteLength: 8,
589
+ },
590
+ {
591
+ name: 'reservedAssetAmount',
592
+ type: 'sint64',
593
+ offset: 16,
594
+ byteLength: 8,
595
+ },
596
+ {
597
+ name: 'totalLiquidity',
598
+ type: 'sint64',
599
+ offset: 24,
600
+ byteLength: 8,
601
+ },
602
+ ];
603
+ export function decodeQswapGetPoolBasicStateOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
604
+ return decodePayload(data, QSWAP_GET_POOL_BASIC_STATE_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
605
+ }
606
+ export async function qswapGetPoolBasicState(live, input, options) {
607
+ return callContractFunction({
608
+ live,
609
+ contractIndex: QSWAP_CONTRACT_INDEX,
610
+ inputType: QSWAP_GET_POOL_BASIC_STATE_INPUT_TYPE,
611
+ inputSize: QSWAP_GET_POOL_BASIC_STATE_INPUT_SIZE,
612
+ inputFields: QSWAP_GET_POOL_BASIC_STATE_INPUT_FIELDS,
613
+ outputFields: QSWAP_GET_POOL_BASIC_STATE_OUTPUT_FIELDS,
614
+ structs: STRUCTS,
615
+ input: input,
616
+ ...options,
617
+ });
618
+ }
619
+ export const QSWAP_GET_LIQUIDITY_OF_INPUT_TYPE = 5;
620
+ export const QSWAP_GET_LIQUIDITY_OF_INPUT_SIZE = 72;
621
+ const QSWAP_GET_LIQUIDITY_OF_INPUT_FIELDS = [
622
+ {
623
+ name: 'assetIssuer',
624
+ type: 'id',
625
+ offset: 0,
626
+ byteLength: 32,
627
+ },
628
+ {
629
+ name: 'assetName',
630
+ type: 'uint64',
631
+ offset: 32,
632
+ byteLength: 8,
633
+ },
634
+ {
635
+ name: 'account',
636
+ type: 'id',
637
+ offset: 40,
638
+ byteLength: 32,
639
+ },
640
+ ];
641
+ export function buildQswapGetLiquidityOfInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
642
+ return buildPayload(QSWAP_GET_LIQUIDITY_OF_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
643
+ }
644
+ const QSWAP_GET_LIQUIDITY_OF_OUTPUT_FIELDS = [
645
+ {
646
+ name: 'liquidity',
647
+ type: 'sint64',
648
+ offset: 0,
649
+ byteLength: 8,
650
+ },
651
+ ];
652
+ export function decodeQswapGetLiquidityOfOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
653
+ return decodePayload(data, QSWAP_GET_LIQUIDITY_OF_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
654
+ }
655
+ export async function qswapGetLiquidityOf(live, input, options) {
656
+ return callContractFunction({
657
+ live,
658
+ contractIndex: QSWAP_CONTRACT_INDEX,
659
+ inputType: QSWAP_GET_LIQUIDITY_OF_INPUT_TYPE,
660
+ inputSize: QSWAP_GET_LIQUIDITY_OF_INPUT_SIZE,
661
+ inputFields: QSWAP_GET_LIQUIDITY_OF_INPUT_FIELDS,
662
+ outputFields: QSWAP_GET_LIQUIDITY_OF_OUTPUT_FIELDS,
663
+ structs: STRUCTS,
664
+ input: input,
665
+ ...options,
666
+ });
667
+ }
668
+ export const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_TYPE = 6;
669
+ export const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_SIZE = 48;
670
+ const QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_FIELDS = [
671
+ {
672
+ name: 'assetIssuer',
673
+ type: 'id',
674
+ offset: 0,
675
+ byteLength: 32,
676
+ },
677
+ {
678
+ name: 'assetName',
679
+ type: 'uint64',
680
+ offset: 32,
681
+ byteLength: 8,
682
+ },
683
+ {
684
+ name: 'quAmountIn',
685
+ type: 'sint64',
686
+ offset: 40,
687
+ byteLength: 8,
688
+ },
689
+ ];
690
+ export function buildQswapQuoteExactQuInputInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
691
+ return buildPayload(QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
692
+ }
693
+ const QSWAP_QUOTE_EXACT_QU_INPUT_OUTPUT_FIELDS = [
694
+ {
695
+ name: 'assetAmountOut',
696
+ type: 'sint64',
697
+ offset: 0,
698
+ byteLength: 8,
699
+ },
700
+ ];
701
+ export function decodeQswapQuoteExactQuInputOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
702
+ return decodePayload(data, QSWAP_QUOTE_EXACT_QU_INPUT_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
703
+ }
704
+ export async function qswapQuoteExactQuInput(live, input, options) {
705
+ return callContractFunction({
706
+ live,
707
+ contractIndex: QSWAP_CONTRACT_INDEX,
708
+ inputType: QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_TYPE,
709
+ inputSize: QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_SIZE,
710
+ inputFields: QSWAP_QUOTE_EXACT_QU_INPUT_INPUT_FIELDS,
711
+ outputFields: QSWAP_QUOTE_EXACT_QU_INPUT_OUTPUT_FIELDS,
712
+ structs: STRUCTS,
713
+ input: input,
714
+ ...options,
715
+ });
716
+ }
717
+ export const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_TYPE = 7;
718
+ export const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_SIZE = 48;
719
+ const QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_FIELDS = [
720
+ {
721
+ name: 'assetIssuer',
722
+ type: 'id',
723
+ offset: 0,
724
+ byteLength: 32,
725
+ },
726
+ {
727
+ name: 'assetName',
728
+ type: 'uint64',
729
+ offset: 32,
730
+ byteLength: 8,
731
+ },
732
+ {
733
+ name: 'quAmountOut',
734
+ type: 'sint64',
735
+ offset: 40,
736
+ byteLength: 8,
737
+ },
738
+ ];
739
+ export function buildQswapQuoteExactQuOutputInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
740
+ return buildPayload(QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
741
+ }
742
+ const QSWAP_QUOTE_EXACT_QU_OUTPUT_OUTPUT_FIELDS = [
743
+ {
744
+ name: 'assetAmountIn',
745
+ type: 'sint64',
746
+ offset: 0,
747
+ byteLength: 8,
748
+ },
749
+ ];
750
+ export function decodeQswapQuoteExactQuOutputOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
751
+ return decodePayload(data, QSWAP_QUOTE_EXACT_QU_OUTPUT_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
752
+ }
753
+ export async function qswapQuoteExactQuOutput(live, input, options) {
754
+ return callContractFunction({
755
+ live,
756
+ contractIndex: QSWAP_CONTRACT_INDEX,
757
+ inputType: QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_TYPE,
758
+ inputSize: QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_SIZE,
759
+ inputFields: QSWAP_QUOTE_EXACT_QU_OUTPUT_INPUT_FIELDS,
760
+ outputFields: QSWAP_QUOTE_EXACT_QU_OUTPUT_OUTPUT_FIELDS,
761
+ structs: STRUCTS,
762
+ input: input,
763
+ ...options,
764
+ });
765
+ }
766
+ export const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_TYPE = 8;
767
+ export const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_SIZE = 48;
768
+ const QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_FIELDS = [
769
+ {
770
+ name: 'assetIssuer',
771
+ type: 'id',
772
+ offset: 0,
773
+ byteLength: 32,
774
+ },
775
+ {
776
+ name: 'assetName',
777
+ type: 'uint64',
778
+ offset: 32,
779
+ byteLength: 8,
780
+ },
781
+ {
782
+ name: 'assetAmountIn',
783
+ type: 'sint64',
784
+ offset: 40,
785
+ byteLength: 8,
786
+ },
787
+ ];
788
+ export function buildQswapQuoteExactAssetInputInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
789
+ return buildPayload(QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
790
+ }
791
+ const QSWAP_QUOTE_EXACT_ASSET_INPUT_OUTPUT_FIELDS = [
792
+ {
793
+ name: 'quAmountOut',
794
+ type: 'sint64',
795
+ offset: 0,
796
+ byteLength: 8,
797
+ },
798
+ ];
799
+ export function decodeQswapQuoteExactAssetInputOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
800
+ return decodePayload(data, QSWAP_QUOTE_EXACT_ASSET_INPUT_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
801
+ }
802
+ export async function qswapQuoteExactAssetInput(live, input, options) {
803
+ return callContractFunction({
804
+ live,
805
+ contractIndex: QSWAP_CONTRACT_INDEX,
806
+ inputType: QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_TYPE,
807
+ inputSize: QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_SIZE,
808
+ inputFields: QSWAP_QUOTE_EXACT_ASSET_INPUT_INPUT_FIELDS,
809
+ outputFields: QSWAP_QUOTE_EXACT_ASSET_INPUT_OUTPUT_FIELDS,
810
+ structs: STRUCTS,
811
+ input: input,
812
+ ...options,
813
+ });
814
+ }
815
+ export const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_TYPE = 9;
816
+ export const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_SIZE = 48;
817
+ const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_FIELDS = [
818
+ {
819
+ name: 'assetIssuer',
820
+ type: 'id',
821
+ offset: 0,
822
+ byteLength: 32,
823
+ },
824
+ {
825
+ name: 'assetName',
826
+ type: 'uint64',
827
+ offset: 32,
828
+ byteLength: 8,
829
+ },
830
+ {
831
+ name: 'assetAmountOut',
832
+ type: 'sint64',
833
+ offset: 40,
834
+ byteLength: 8,
835
+ },
836
+ ];
837
+ export function buildQswapQuoteExactAssetOutputInput(input, identityToPublicKey = (_identity) => new Uint8Array(32)) {
838
+ return buildPayload(QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_FIELDS, STRUCTS, input, identityToPublicKey);
839
+ }
840
+ const QSWAP_QUOTE_EXACT_ASSET_OUTPUT_OUTPUT_FIELDS = [
841
+ {
842
+ name: 'quAmountIn',
843
+ type: 'sint64',
844
+ offset: 0,
845
+ byteLength: 8,
846
+ },
847
+ ];
848
+ export function decodeQswapQuoteExactAssetOutputOutput(data, publicKeyToIdentity = (_pk) => 'A'.repeat(60)) {
849
+ return decodePayload(data, QSWAP_QUOTE_EXACT_ASSET_OUTPUT_OUTPUT_FIELDS, STRUCTS, publicKeyToIdentity);
850
+ }
851
+ export async function qswapQuoteExactAssetOutput(live, input, options) {
852
+ return callContractFunction({
853
+ live,
854
+ contractIndex: QSWAP_CONTRACT_INDEX,
855
+ inputType: QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_TYPE,
856
+ inputSize: QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_SIZE,
857
+ inputFields: QSWAP_QUOTE_EXACT_ASSET_OUTPUT_INPUT_FIELDS,
858
+ outputFields: QSWAP_QUOTE_EXACT_ASSET_OUTPUT_OUTPUT_FIELDS,
859
+ structs: STRUCTS,
860
+ input: input,
861
+ ...options,
862
+ });
863
+ }
864
+ export const qswap = {
865
+ contractIndex: QSWAP_CONTRACT_INDEX,
866
+ Fees: qswapFees,
867
+ InvestRewardsInfo: qswapInvestRewardsInfo,
868
+ GetPoolBasicState: qswapGetPoolBasicState,
869
+ GetLiquidityOf: qswapGetLiquidityOf,
870
+ QuoteExactQuInput: qswapQuoteExactQuInput,
871
+ QuoteExactQuOutput: qswapQuoteExactQuOutput,
872
+ QuoteExactAssetInput: qswapQuoteExactAssetInput,
873
+ QuoteExactAssetOutput: qswapQuoteExactAssetOutput,
874
+ buildSetInvestRewardsInfoInput: buildQswapSetInvestRewardsInfoInput,
875
+ decodeSetInvestRewardsInfoOutput: decodeQswapSetInvestRewardsInfoOutput,
876
+ buildIssueAssetInput: buildQswapIssueAssetInput,
877
+ decodeIssueAssetOutput: decodeQswapIssueAssetOutput,
878
+ buildCreatePoolInput: buildQswapCreatePoolInput,
879
+ decodeCreatePoolOutput: decodeQswapCreatePoolOutput,
880
+ buildTransferShareOwnershipAndPossessionInput: buildQswapTransferShareOwnershipAndPossessionInput,
881
+ decodeTransferShareOwnershipAndPossessionOutput: decodeQswapTransferShareOwnershipAndPossessionOutput,
882
+ buildAddLiquidityInput: buildQswapAddLiquidityInput,
883
+ decodeAddLiquidityOutput: decodeQswapAddLiquidityOutput,
884
+ buildRemoveLiquidityInput: buildQswapRemoveLiquidityInput,
885
+ decodeRemoveLiquidityOutput: decodeQswapRemoveLiquidityOutput,
886
+ buildSwapExactQuForAssetInput: buildQswapSwapExactQuForAssetInput,
887
+ decodeSwapExactQuForAssetOutput: decodeQswapSwapExactQuForAssetOutput,
888
+ buildSwapQuForExactAssetInput: buildQswapSwapQuForExactAssetInput,
889
+ decodeSwapQuForExactAssetOutput: decodeQswapSwapQuForExactAssetOutput,
890
+ buildSwapExactAssetForQuInput: buildQswapSwapExactAssetForQuInput,
891
+ decodeSwapExactAssetForQuOutput: decodeQswapSwapExactAssetForQuOutput,
892
+ buildSwapAssetForExactQuInput: buildQswapSwapAssetForExactQuInput,
893
+ decodeSwapAssetForExactQuOutput: decodeQswapSwapAssetForExactQuOutput,
894
+ buildTransferShareManagementRightsInput: buildQswapTransferShareManagementRightsInput,
895
+ decodeTransferShareManagementRightsOutput: decodeQswapTransferShareManagementRightsOutput,
896
+ };
897
+ //# sourceMappingURL=qswap.js.map