@underscore-finance/sdk 0.0.1

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 (84) hide show
  1. package/LICENSE +41 -0
  2. package/README.md +131 -0
  3. package/dist/contracts/AddyRegistry.d.ts +471 -0
  4. package/dist/contracts/AddyRegistry.d.ts.map +1 -0
  5. package/dist/contracts/AddyRegistry.js +592 -0
  6. package/dist/contracts/AgentFactory.d.ts +966 -0
  7. package/dist/contracts/AgentFactory.d.ts.map +1 -0
  8. package/dist/contracts/AgentFactory.js +1227 -0
  9. package/dist/contracts/AgentTemplate.d.ts +2629 -0
  10. package/dist/contracts/AgentTemplate.d.ts.map +1 -0
  11. package/dist/contracts/AgentTemplate.js +3370 -0
  12. package/dist/contracts/ChainlinkFeeds.d.ts +567 -0
  13. package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -0
  14. package/dist/contracts/ChainlinkFeeds.js +735 -0
  15. package/dist/contracts/LegoAaveV3.d.ts +894 -0
  16. package/dist/contracts/LegoAaveV3.d.ts.map +1 -0
  17. package/dist/contracts/LegoAaveV3.js +1165 -0
  18. package/dist/contracts/LegoAeroClassic.d.ts +1065 -0
  19. package/dist/contracts/LegoAeroClassic.d.ts.map +1 -0
  20. package/dist/contracts/LegoAeroClassic.js +1381 -0
  21. package/dist/contracts/LegoAeroSlipstream.d.ts +1161 -0
  22. package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -0
  23. package/dist/contracts/LegoAeroSlipstream.js +1506 -0
  24. package/dist/contracts/LegoCompoundV3.d.ts +921 -0
  25. package/dist/contracts/LegoCompoundV3.d.ts.map +1 -0
  26. package/dist/contracts/LegoCompoundV3.js +1200 -0
  27. package/dist/contracts/LegoCurve.d.ts +1050 -0
  28. package/dist/contracts/LegoCurve.d.ts.map +1 -0
  29. package/dist/contracts/LegoCurve.js +1354 -0
  30. package/dist/contracts/LegoEuler.d.ts +935 -0
  31. package/dist/contracts/LegoEuler.d.ts.map +1 -0
  32. package/dist/contracts/LegoEuler.js +1218 -0
  33. package/dist/contracts/LegoFluid.d.ts +875 -0
  34. package/dist/contracts/LegoFluid.d.ts.map +1 -0
  35. package/dist/contracts/LegoFluid.js +1141 -0
  36. package/dist/contracts/LegoHelper.d.ts +1555 -0
  37. package/dist/contracts/LegoHelper.d.ts.map +1 -0
  38. package/dist/contracts/LegoHelper.js +1945 -0
  39. package/dist/contracts/LegoMoonwell.d.ts +903 -0
  40. package/dist/contracts/LegoMoonwell.d.ts.map +1 -0
  41. package/dist/contracts/LegoMoonwell.js +1177 -0
  42. package/dist/contracts/LegoMorpho.d.ts +935 -0
  43. package/dist/contracts/LegoMorpho.d.ts.map +1 -0
  44. package/dist/contracts/LegoMorpho.js +1218 -0
  45. package/dist/contracts/LegoRegistry.d.ts +589 -0
  46. package/dist/contracts/LegoRegistry.d.ts.map +1 -0
  47. package/dist/contracts/LegoRegistry.js +746 -0
  48. package/dist/contracts/LegoSky.d.ts +784 -0
  49. package/dist/contracts/LegoSky.d.ts.map +1 -0
  50. package/dist/contracts/LegoSky.js +1015 -0
  51. package/dist/contracts/LegoUniswapV2.d.ts +1065 -0
  52. package/dist/contracts/LegoUniswapV2.d.ts.map +1 -0
  53. package/dist/contracts/LegoUniswapV2.js +1381 -0
  54. package/dist/contracts/LegoUniswapV3.d.ts +1199 -0
  55. package/dist/contracts/LegoUniswapV3.d.ts.map +1 -0
  56. package/dist/contracts/LegoUniswapV3.js +1553 -0
  57. package/dist/contracts/OracleRegistry.d.ts +811 -0
  58. package/dist/contracts/OracleRegistry.d.ts.map +1 -0
  59. package/dist/contracts/OracleRegistry.js +1049 -0
  60. package/dist/contracts/PriceSheets.d.ts +1053 -0
  61. package/dist/contracts/PriceSheets.d.ts.map +1 -0
  62. package/dist/contracts/PriceSheets.js +1296 -0
  63. package/dist/contracts/PythFeeds.d.ts +501 -0
  64. package/dist/contracts/PythFeeds.d.ts.map +1 -0
  65. package/dist/contracts/PythFeeds.js +648 -0
  66. package/dist/contracts/StorkFeeds.d.ts +501 -0
  67. package/dist/contracts/StorkFeeds.d.ts.map +1 -0
  68. package/dist/contracts/StorkFeeds.js +648 -0
  69. package/dist/contracts/WalletConfig.d.ts +1398 -0
  70. package/dist/contracts/WalletConfig.d.ts.map +1 -0
  71. package/dist/contracts/WalletConfig.js +1674 -0
  72. package/dist/contracts/WalletFunds.d.ts +1978 -0
  73. package/dist/contracts/WalletFunds.d.ts.map +1 -0
  74. package/dist/contracts/WalletFunds.js +2579 -0
  75. package/dist/contracts/index.d.ts +25 -0
  76. package/dist/contracts/index.d.ts.map +1 -0
  77. package/dist/contracts/index.js +28 -0
  78. package/dist/contracts/sdk.d.ts +53 -0
  79. package/dist/contracts/sdk.d.ts.map +1 -0
  80. package/dist/contracts/sdk.js +56 -0
  81. package/dist/index.d.ts +15 -0
  82. package/dist/index.d.ts.map +1 -0
  83. package/dist/index.js +16 -0
  84. package/package.json +31 -0
@@ -0,0 +1,746 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ "anonymous": false,
9
+ "inputs": [
10
+ {
11
+ "indexed": true,
12
+ "name": "addr",
13
+ "type": "address"
14
+ },
15
+ {
16
+ "indexed": false,
17
+ "name": "legoId",
18
+ "type": "uint256"
19
+ },
20
+ {
21
+ "indexed": false,
22
+ "name": "description",
23
+ "type": "string"
24
+ },
25
+ {
26
+ "indexed": false,
27
+ "name": "legoType",
28
+ "type": "uint256"
29
+ }
30
+ ],
31
+ "name": "NewLegoRegistered",
32
+ "type": "event"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": true,
39
+ "name": "newAddr",
40
+ "type": "address"
41
+ },
42
+ {
43
+ "indexed": true,
44
+ "name": "prevAddr",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "name": "legoId",
50
+ "type": "uint256"
51
+ },
52
+ {
53
+ "indexed": false,
54
+ "name": "version",
55
+ "type": "uint256"
56
+ },
57
+ {
58
+ "indexed": false,
59
+ "name": "description",
60
+ "type": "string"
61
+ },
62
+ {
63
+ "indexed": false,
64
+ "name": "legoType",
65
+ "type": "uint256"
66
+ }
67
+ ],
68
+ "name": "LegoAddrUpdated",
69
+ "type": "event"
70
+ },
71
+ {
72
+ "anonymous": false,
73
+ "inputs": [
74
+ {
75
+ "indexed": true,
76
+ "name": "prevAddr",
77
+ "type": "address"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "name": "legoId",
82
+ "type": "uint256"
83
+ },
84
+ {
85
+ "indexed": false,
86
+ "name": "version",
87
+ "type": "uint256"
88
+ },
89
+ {
90
+ "indexed": false,
91
+ "name": "description",
92
+ "type": "string"
93
+ },
94
+ {
95
+ "indexed": false,
96
+ "name": "legoType",
97
+ "type": "uint256"
98
+ }
99
+ ],
100
+ "name": "LegoAddrDisabled",
101
+ "type": "event"
102
+ },
103
+ {
104
+ "anonymous": false,
105
+ "inputs": [
106
+ {
107
+ "indexed": true,
108
+ "name": "helperAddr",
109
+ "type": "address"
110
+ }
111
+ ],
112
+ "name": "LegoHelperSet",
113
+ "type": "event"
114
+ },
115
+ {
116
+ "anonymous": false,
117
+ "inputs": [
118
+ {
119
+ "indexed": true,
120
+ "name": "addr",
121
+ "type": "address"
122
+ }
123
+ ],
124
+ "name": "LocalGovernorSet",
125
+ "type": "event"
126
+ },
127
+ {
128
+ "inputs": [
129
+ {
130
+ "name": "_address",
131
+ "type": "address"
132
+ }
133
+ ],
134
+ "name": "isGovernor",
135
+ "outputs": [
136
+ {
137
+ "name": "",
138
+ "type": "bool"
139
+ }
140
+ ],
141
+ "stateMutability": "view",
142
+ "type": "function"
143
+ },
144
+ {
145
+ "inputs": [
146
+ {
147
+ "name": "_newGovernor",
148
+ "type": "address"
149
+ }
150
+ ],
151
+ "name": "isValidLocalGovernor",
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "bool"
156
+ }
157
+ ],
158
+ "stateMutability": "view",
159
+ "type": "function"
160
+ },
161
+ {
162
+ "inputs": [
163
+ {
164
+ "name": "_newGovernor",
165
+ "type": "address"
166
+ }
167
+ ],
168
+ "name": "setLocalGovernor",
169
+ "outputs": [
170
+ {
171
+ "name": "",
172
+ "type": "bool"
173
+ }
174
+ ],
175
+ "stateMutability": "nonpayable",
176
+ "type": "function"
177
+ },
178
+ {
179
+ "inputs": [],
180
+ "name": "localGovernor",
181
+ "outputs": [
182
+ {
183
+ "name": "",
184
+ "type": "address"
185
+ }
186
+ ],
187
+ "stateMutability": "view",
188
+ "type": "function"
189
+ },
190
+ {
191
+ "inputs": [
192
+ {
193
+ "name": "_addr",
194
+ "type": "address"
195
+ }
196
+ ],
197
+ "name": "isValidNewLegoAddr",
198
+ "outputs": [
199
+ {
200
+ "name": "",
201
+ "type": "bool"
202
+ }
203
+ ],
204
+ "stateMutability": "view",
205
+ "type": "function"
206
+ },
207
+ {
208
+ "inputs": [
209
+ {
210
+ "name": "_addr",
211
+ "type": "address"
212
+ },
213
+ {
214
+ "name": "_description",
215
+ "type": "string"
216
+ },
217
+ {
218
+ "name": "_legoType",
219
+ "type": "uint256"
220
+ }
221
+ ],
222
+ "name": "registerNewLego",
223
+ "outputs": [
224
+ {
225
+ "name": "",
226
+ "type": "uint256"
227
+ }
228
+ ],
229
+ "stateMutability": "nonpayable",
230
+ "type": "function"
231
+ },
232
+ {
233
+ "inputs": [
234
+ {
235
+ "name": "_legoId",
236
+ "type": "uint256"
237
+ },
238
+ {
239
+ "name": "_newAddr",
240
+ "type": "address"
241
+ }
242
+ ],
243
+ "name": "isValidLegoUpdate",
244
+ "outputs": [
245
+ {
246
+ "name": "",
247
+ "type": "bool"
248
+ }
249
+ ],
250
+ "stateMutability": "view",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "inputs": [
255
+ {
256
+ "name": "_legoId",
257
+ "type": "uint256"
258
+ },
259
+ {
260
+ "name": "_newAddr",
261
+ "type": "address"
262
+ }
263
+ ],
264
+ "name": "updateLegoAddr",
265
+ "outputs": [
266
+ {
267
+ "name": "",
268
+ "type": "bool"
269
+ }
270
+ ],
271
+ "stateMutability": "nonpayable",
272
+ "type": "function"
273
+ },
274
+ {
275
+ "inputs": [
276
+ {
277
+ "name": "_legoId",
278
+ "type": "uint256"
279
+ }
280
+ ],
281
+ "name": "isValidLegoDisable",
282
+ "outputs": [
283
+ {
284
+ "name": "",
285
+ "type": "bool"
286
+ }
287
+ ],
288
+ "stateMutability": "view",
289
+ "type": "function"
290
+ },
291
+ {
292
+ "inputs": [
293
+ {
294
+ "name": "_legoId",
295
+ "type": "uint256"
296
+ }
297
+ ],
298
+ "name": "disableLegoAddr",
299
+ "outputs": [
300
+ {
301
+ "name": "",
302
+ "type": "bool"
303
+ }
304
+ ],
305
+ "stateMutability": "nonpayable",
306
+ "type": "function"
307
+ },
308
+ {
309
+ "inputs": [
310
+ {
311
+ "name": "_addr",
312
+ "type": "address"
313
+ }
314
+ ],
315
+ "name": "isValidLegoAddr",
316
+ "outputs": [
317
+ {
318
+ "name": "",
319
+ "type": "bool"
320
+ }
321
+ ],
322
+ "stateMutability": "view",
323
+ "type": "function"
324
+ },
325
+ {
326
+ "inputs": [
327
+ {
328
+ "name": "_legoId",
329
+ "type": "uint256"
330
+ }
331
+ ],
332
+ "name": "isValidLegoId",
333
+ "outputs": [
334
+ {
335
+ "name": "",
336
+ "type": "bool"
337
+ }
338
+ ],
339
+ "stateMutability": "view",
340
+ "type": "function"
341
+ },
342
+ {
343
+ "inputs": [
344
+ {
345
+ "name": "_addr",
346
+ "type": "address"
347
+ }
348
+ ],
349
+ "name": "getLegoId",
350
+ "outputs": [
351
+ {
352
+ "name": "",
353
+ "type": "uint256"
354
+ }
355
+ ],
356
+ "stateMutability": "view",
357
+ "type": "function"
358
+ },
359
+ {
360
+ "inputs": [
361
+ {
362
+ "name": "_legoId",
363
+ "type": "uint256"
364
+ }
365
+ ],
366
+ "name": "getLegoAddr",
367
+ "outputs": [
368
+ {
369
+ "name": "",
370
+ "type": "address"
371
+ }
372
+ ],
373
+ "stateMutability": "view",
374
+ "type": "function"
375
+ },
376
+ {
377
+ "inputs": [
378
+ {
379
+ "name": "_legoId",
380
+ "type": "uint256"
381
+ }
382
+ ],
383
+ "name": "getLegoInfo",
384
+ "outputs": [
385
+ {
386
+ "components": [
387
+ {
388
+ "name": "addr",
389
+ "type": "address"
390
+ },
391
+ {
392
+ "name": "version",
393
+ "type": "uint256"
394
+ },
395
+ {
396
+ "name": "lastModified",
397
+ "type": "uint256"
398
+ },
399
+ {
400
+ "name": "description",
401
+ "type": "string"
402
+ },
403
+ {
404
+ "name": "legoType",
405
+ "type": "uint256"
406
+ }
407
+ ],
408
+ "name": "",
409
+ "type": "tuple"
410
+ }
411
+ ],
412
+ "stateMutability": "view",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [
417
+ {
418
+ "name": "_legoId",
419
+ "type": "uint256"
420
+ }
421
+ ],
422
+ "name": "getLegoDescription",
423
+ "outputs": [
424
+ {
425
+ "name": "",
426
+ "type": "string"
427
+ }
428
+ ],
429
+ "stateMutability": "view",
430
+ "type": "function"
431
+ },
432
+ {
433
+ "inputs": [],
434
+ "name": "getNumLegos",
435
+ "outputs": [
436
+ {
437
+ "name": "",
438
+ "type": "uint256"
439
+ }
440
+ ],
441
+ "stateMutability": "view",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [],
446
+ "name": "getLastLegoAddr",
447
+ "outputs": [
448
+ {
449
+ "name": "",
450
+ "type": "address"
451
+ }
452
+ ],
453
+ "stateMutability": "view",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [],
458
+ "name": "getLastLegoId",
459
+ "outputs": [
460
+ {
461
+ "name": "",
462
+ "type": "uint256"
463
+ }
464
+ ],
465
+ "stateMutability": "view",
466
+ "type": "function"
467
+ },
468
+ {
469
+ "inputs": [
470
+ {
471
+ "name": "_vaultToken",
472
+ "type": "address"
473
+ }
474
+ ],
475
+ "name": "getUnderlyingAsset",
476
+ "outputs": [
477
+ {
478
+ "name": "",
479
+ "type": "address"
480
+ }
481
+ ],
482
+ "stateMutability": "view",
483
+ "type": "function"
484
+ },
485
+ {
486
+ "inputs": [
487
+ {
488
+ "name": "_user",
489
+ "type": "address"
490
+ },
491
+ {
492
+ "name": "_asset",
493
+ "type": "address"
494
+ }
495
+ ],
496
+ "name": "getUnderlyingForUser",
497
+ "outputs": [
498
+ {
499
+ "name": "",
500
+ "type": "uint256"
501
+ }
502
+ ],
503
+ "stateMutability": "view",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "inputs": [
508
+ {
509
+ "name": "_helperAddr",
510
+ "type": "address"
511
+ }
512
+ ],
513
+ "name": "isValidLegoHelper",
514
+ "outputs": [
515
+ {
516
+ "name": "",
517
+ "type": "bool"
518
+ }
519
+ ],
520
+ "stateMutability": "view",
521
+ "type": "function"
522
+ },
523
+ {
524
+ "inputs": [
525
+ {
526
+ "name": "_helperAddr",
527
+ "type": "address"
528
+ }
529
+ ],
530
+ "name": "setLegoHelper",
531
+ "outputs": [
532
+ {
533
+ "name": "",
534
+ "type": "bool"
535
+ }
536
+ ],
537
+ "stateMutability": "nonpayable",
538
+ "type": "function"
539
+ },
540
+ {
541
+ "inputs": [],
542
+ "name": "legoHelper",
543
+ "outputs": [
544
+ {
545
+ "name": "",
546
+ "type": "address"
547
+ }
548
+ ],
549
+ "stateMutability": "view",
550
+ "type": "function"
551
+ },
552
+ {
553
+ "inputs": [
554
+ {
555
+ "name": "arg0",
556
+ "type": "uint256"
557
+ }
558
+ ],
559
+ "name": "legoInfo",
560
+ "outputs": [
561
+ {
562
+ "components": [
563
+ {
564
+ "name": "addr",
565
+ "type": "address"
566
+ },
567
+ {
568
+ "name": "version",
569
+ "type": "uint256"
570
+ },
571
+ {
572
+ "name": "lastModified",
573
+ "type": "uint256"
574
+ },
575
+ {
576
+ "name": "description",
577
+ "type": "string"
578
+ },
579
+ {
580
+ "name": "legoType",
581
+ "type": "uint256"
582
+ }
583
+ ],
584
+ "name": "",
585
+ "type": "tuple"
586
+ }
587
+ ],
588
+ "stateMutability": "view",
589
+ "type": "function"
590
+ },
591
+ {
592
+ "inputs": [
593
+ {
594
+ "name": "arg0",
595
+ "type": "address"
596
+ }
597
+ ],
598
+ "name": "legoAddrToId",
599
+ "outputs": [
600
+ {
601
+ "name": "",
602
+ "type": "uint256"
603
+ }
604
+ ],
605
+ "stateMutability": "view",
606
+ "type": "function"
607
+ },
608
+ {
609
+ "inputs": [],
610
+ "name": "numLegos",
611
+ "outputs": [
612
+ {
613
+ "name": "",
614
+ "type": "uint256"
615
+ }
616
+ ],
617
+ "stateMutability": "view",
618
+ "type": "function"
619
+ },
620
+ {
621
+ "inputs": [],
622
+ "name": "ADDY_REGISTRY",
623
+ "outputs": [
624
+ {
625
+ "name": "",
626
+ "type": "address"
627
+ }
628
+ ],
629
+ "stateMutability": "view",
630
+ "type": "function"
631
+ },
632
+ {
633
+ "inputs": [
634
+ {
635
+ "name": "_addyRegistry",
636
+ "type": "address"
637
+ }
638
+ ],
639
+ "outputs": [],
640
+ "stateMutability": "nonpayable",
641
+ "type": "constructor"
642
+ }
643
+ ];
644
+ export const deployAddress = undefined;
645
+ function getRequest(method, args, contractAddressOrOptions) {
646
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
647
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
648
+ const call = {
649
+ contractName: 'LegoRegistry',
650
+ method,
651
+ args,
652
+ address,
653
+ deployAddress,
654
+ defaultValue,
655
+ getAbi: () => abi,
656
+ with: (options) => {
657
+ call.address = options.contractAddress;
658
+ call.defaultValue = options.defaultValue;
659
+ return call;
660
+ },
661
+ defaultTo: (defaultValue) => {
662
+ call.defaultValue = defaultValue;
663
+ return call;
664
+ },
665
+ at: (address) => {
666
+ call.address = address;
667
+ return call;
668
+ },
669
+ };
670
+ return call;
671
+ }
672
+ export const call = {
673
+ isGovernor: (...args) => getRequest('isGovernor', args),
674
+ isValidLocalGovernor: (...args) => getRequest('isValidLocalGovernor', args),
675
+ localGovernor: (...args) => getRequest('localGovernor', args),
676
+ isValidNewLegoAddr: (...args) => getRequest('isValidNewLegoAddr', args),
677
+ isValidLegoUpdate: (...args) => getRequest('isValidLegoUpdate', args),
678
+ isValidLegoDisable: (...args) => getRequest('isValidLegoDisable', args),
679
+ isValidLegoAddr: (...args) => getRequest('isValidLegoAddr', args),
680
+ isValidLegoId: (...args) => getRequest('isValidLegoId', args),
681
+ getLegoId: (...args) => getRequest('getLegoId', args),
682
+ getLegoAddr: (...args) => getRequest('getLegoAddr', args),
683
+ getLegoInfo: (...args) => getRequest('getLegoInfo', args),
684
+ getLegoDescription: (...args) => getRequest('getLegoDescription', args),
685
+ getNumLegos: (...args) => getRequest('getNumLegos', args),
686
+ getLastLegoAddr: (...args) => getRequest('getLastLegoAddr', args),
687
+ getLastLegoId: (...args) => getRequest('getLastLegoId', args),
688
+ getUnderlyingAsset: (...args) => getRequest('getUnderlyingAsset', args),
689
+ getUnderlyingForUser: (...args) => getRequest('getUnderlyingForUser', args),
690
+ isValidLegoHelper: (...args) => getRequest('isValidLegoHelper', args),
691
+ legoHelper: (...args) => getRequest('legoHelper', args),
692
+ legoInfo: (...args) => getRequest('legoInfo', args),
693
+ legoAddrToId: (...args) => getRequest('legoAddrToId', args),
694
+ numLegos: (...args) => getRequest('numLegos', args),
695
+ ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
696
+ };
697
+ function getMutation(functionName) {
698
+ return {
699
+ contractName: 'LegoRegistry',
700
+ functionName,
701
+ deployAddress,
702
+ argsType: undefined,
703
+ getAbi: () => abi,
704
+ };
705
+ }
706
+ export const mutation = {
707
+ setLocalGovernor: getMutation('setLocalGovernor'),
708
+ registerNewLego: getMutation('registerNewLego'),
709
+ updateLegoAddr: getMutation('updateLegoAddr'),
710
+ disableLegoAddr: getMutation('disableLegoAddr'),
711
+ setLegoHelper: getMutation('setLegoHelper'),
712
+ };
713
+ export function toSdk(publicClient, walletClient) {
714
+ return {
715
+ // Queries
716
+ isGovernor: (...args) => singleQuery(publicClient, call.isGovernor(...args)),
717
+ isValidLocalGovernor: (...args) => singleQuery(publicClient, call.isValidLocalGovernor(...args)),
718
+ localGovernor: (...args) => singleQuery(publicClient, call.localGovernor(...args)),
719
+ isValidNewLegoAddr: (...args) => singleQuery(publicClient, call.isValidNewLegoAddr(...args)),
720
+ isValidLegoUpdate: (...args) => singleQuery(publicClient, call.isValidLegoUpdate(...args)),
721
+ isValidLegoDisable: (...args) => singleQuery(publicClient, call.isValidLegoDisable(...args)),
722
+ isValidLegoAddr: (...args) => singleQuery(publicClient, call.isValidLegoAddr(...args)),
723
+ isValidLegoId: (...args) => singleQuery(publicClient, call.isValidLegoId(...args)),
724
+ getLegoId: (...args) => singleQuery(publicClient, call.getLegoId(...args)),
725
+ getLegoAddr: (...args) => singleQuery(publicClient, call.getLegoAddr(...args)),
726
+ getLegoInfo: (...args) => singleQuery(publicClient, call.getLegoInfo(...args)),
727
+ getLegoDescription: (...args) => singleQuery(publicClient, call.getLegoDescription(...args)),
728
+ getNumLegos: (...args) => singleQuery(publicClient, call.getNumLegos(...args)),
729
+ getLastLegoAddr: (...args) => singleQuery(publicClient, call.getLastLegoAddr(...args)),
730
+ getLastLegoId: (...args) => singleQuery(publicClient, call.getLastLegoId(...args)),
731
+ getUnderlyingAsset: (...args) => singleQuery(publicClient, call.getUnderlyingAsset(...args)),
732
+ getUnderlyingForUser: (...args) => singleQuery(publicClient, call.getUnderlyingForUser(...args)),
733
+ isValidLegoHelper: (...args) => singleQuery(publicClient, call.isValidLegoHelper(...args)),
734
+ legoHelper: (...args) => singleQuery(publicClient, call.legoHelper(...args)),
735
+ legoInfo: (...args) => singleQuery(publicClient, call.legoInfo(...args)),
736
+ legoAddrToId: (...args) => singleQuery(publicClient, call.legoAddrToId(...args)),
737
+ numLegos: (...args) => singleQuery(publicClient, call.numLegos(...args)),
738
+ ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args)),
739
+ // Mutations
740
+ setLocalGovernor: (...args) => mutate(walletClient, mutation.setLocalGovernor)(...args),
741
+ registerNewLego: (...args) => mutate(walletClient, mutation.registerNewLego)(...args),
742
+ updateLegoAddr: (...args) => mutate(walletClient, mutation.updateLegoAddr)(...args),
743
+ disableLegoAddr: (...args) => mutate(walletClient, mutation.disableLegoAddr)(...args),
744
+ setLegoHelper: (...args) => mutate(walletClient, mutation.setLegoHelper)(...args),
745
+ };
746
+ }