@underscore-finance/sdk 1.1.2 → 1.2.2
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.
- package/dist/contracts/AaveV3.d.ts +126 -13
- package/dist/contracts/AaveV3.d.ts.map +1 -1
- package/dist/contracts/AaveV3.js +159 -13
- package/dist/contracts/AeroClassic.d.ts +85 -0
- package/dist/contracts/AeroClassic.d.ts.map +1 -1
- package/dist/contracts/AeroClassic.js +109 -1
- package/dist/contracts/AeroSlipstream.d.ts +119 -0
- package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/AeroSlipstream.js +151 -1
- package/dist/contracts/AgentSenderGeneric.d.ts +4027 -0
- package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
- package/dist/contracts/AgentSenderGeneric.js +5280 -0
- package/dist/contracts/AgentSenderSpecial.d.ts +1968 -0
- package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
- package/dist/contracts/AgentSenderSpecial.js +2509 -0
- package/dist/contracts/AgentWrapper.d.ts +170 -1462
- package/dist/contracts/AgentWrapper.d.ts.map +1 -1
- package/dist/contracts/AgentWrapper.js +262 -1869
- package/dist/contracts/AgentWrapperV1.d.ts +3760 -0
- package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
- package/dist/contracts/AgentWrapperV1.js +4922 -0
- package/dist/contracts/Appraiser.d.ts +18 -459
- package/dist/contracts/Appraiser.d.ts.map +1 -1
- package/dist/contracts/Appraiser.js +75 -649
- package/dist/contracts/Avantis.d.ts +2565 -0
- package/dist/contracts/Avantis.d.ts.map +1 -0
- package/dist/contracts/Avantis.js +3256 -0
- package/dist/contracts/Billing.d.ts +4 -68
- package/dist/contracts/Billing.d.ts.map +1 -1
- package/dist/contracts/Billing.js +5 -82
- package/dist/contracts/ChequeBook.d.ts +52 -1
- package/dist/contracts/ChequeBook.d.ts.map +1 -1
- package/dist/contracts/ChequeBook.js +53 -1
- package/dist/contracts/CompoundV3.d.ts +126 -13
- package/dist/contracts/CompoundV3.d.ts.map +1 -1
- package/dist/contracts/CompoundV3.js +159 -13
- package/dist/contracts/ConvertVaultToken.d.ts +63 -0
- package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
- package/dist/contracts/ConvertVaultToken.js +75 -0
- package/dist/contracts/Curve.d.ts +14 -0
- package/dist/contracts/Curve.d.ts.map +1 -1
- package/dist/contracts/Curve.js +19 -1
- package/dist/contracts/DefaultsBase.d.ts +45 -56
- package/dist/contracts/DefaultsBase.d.ts.map +1 -1
- package/dist/contracts/DefaultsBase.js +45 -59
- package/dist/contracts/EarnVault.d.ts +1680 -0
- package/dist/contracts/EarnVault.d.ts.map +1 -0
- package/dist/contracts/EarnVault.js +2206 -0
- package/dist/contracts/EarnVaultAgent.d.ts +1004 -0
- package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
- package/dist/contracts/EarnVaultAgent.js +1273 -0
- package/dist/contracts/EarnVaultAgentSigHelper.d.ts +904 -0
- package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
- package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
- package/dist/contracts/Euler.d.ts +131 -14
- package/dist/contracts/Euler.d.ts.map +1 -1
- package/dist/contracts/Euler.js +164 -13
- package/dist/contracts/Fluid.d.ts +159 -14
- package/dist/contracts/Fluid.d.ts.map +1 -1
- package/dist/contracts/Fluid.js +200 -13
- package/dist/contracts/FortyAcres.d.ts +145 -14
- package/dist/contracts/FortyAcres.d.ts.map +1 -1
- package/dist/contracts/FortyAcres.js +182 -13
- package/dist/contracts/Hatchery.d.ts +6 -176
- package/dist/contracts/Hatchery.d.ts.map +1 -1
- package/dist/contracts/Hatchery.js +5 -225
- package/dist/contracts/HighCommand.d.ts +237 -1
- package/dist/contracts/HighCommand.d.ts.map +1 -1
- package/dist/contracts/HighCommand.js +259 -1
- package/dist/contracts/Kernel.d.ts +8 -0
- package/dist/contracts/Kernel.d.ts.map +1 -1
- package/dist/contracts/Kernel.js +9 -1
- package/dist/contracts/LegoBook.js +1 -1
- package/dist/contracts/LegoTools.js +1 -1
- package/dist/contracts/LevgVaultHelper.d.ts +1070 -0
- package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
- package/dist/contracts/LevgVaultHelper.js +1414 -0
- package/dist/contracts/LootDistributor.d.ts +49 -131
- package/dist/contracts/LootDistributor.d.ts.map +1 -1
- package/dist/contracts/LootDistributor.js +58 -157
- package/dist/contracts/Migrator.d.ts +4 -0
- package/dist/contracts/Migrator.d.ts.map +1 -1
- package/dist/contracts/Migrator.js +5 -1
- package/dist/contracts/MissionControl.d.ts +211 -295
- package/dist/contracts/MissionControl.d.ts.map +1 -1
- package/dist/contracts/MissionControl.js +216 -305
- package/dist/contracts/Moonwell.d.ts +131 -14
- package/dist/contracts/Moonwell.d.ts.map +1 -1
- package/dist/contracts/Moonwell.js +164 -13
- package/dist/contracts/Morpho.d.ts +131 -14
- package/dist/contracts/Morpho.d.ts.map +1 -1
- package/dist/contracts/Morpho.js +164 -13
- package/dist/contracts/Paymaster.d.ts +4 -0
- package/dist/contracts/Paymaster.d.ts.map +1 -1
- package/dist/contracts/Paymaster.js +5 -1
- package/dist/contracts/RipeLego.d.ts +267 -81
- package/dist/contracts/RipeLego.d.ts.map +1 -1
- package/dist/contracts/RipeLego.js +322 -87
- package/dist/contracts/Sentinel.d.ts +275 -7
- package/dist/contracts/Sentinel.d.ts.map +1 -1
- package/dist/contracts/Sentinel.js +331 -7
- package/dist/contracts/SkyPsm.d.ts +2622 -0
- package/dist/contracts/SkyPsm.d.ts.map +1 -0
- package/dist/contracts/SkyPsm.js +3329 -0
- package/dist/contracts/Switchboard.d.ts +7 -0
- package/dist/contracts/Switchboard.d.ts.map +1 -1
- package/dist/contracts/Switchboard.js +9 -1
- package/dist/contracts/SwitchboardAlpha.d.ts +499 -264
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +566 -282
- package/dist/contracts/SwitchboardBravo.d.ts +4 -24
- package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
- package/dist/contracts/SwitchboardBravo.js +5 -32
- package/dist/contracts/SwitchboardCharlie.d.ts +1796 -343
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +2178 -368
- package/dist/contracts/UnderscoreLego.d.ts +129 -15
- package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
- package/dist/contracts/UnderscoreLego.js +161 -14
- package/dist/contracts/UndyAero.d.ts +1680 -0
- package/dist/contracts/UndyAero.d.ts.map +1 -0
- package/dist/contracts/UndyAero.js +2206 -0
- package/dist/contracts/UndyBtc.d.ts +209 -16
- package/dist/contracts/UndyBtc.d.ts.map +1 -1
- package/dist/contracts/UndyBtc.js +267 -16
- package/dist/contracts/UndyCbeth.d.ts +1680 -0
- package/dist/contracts/UndyCbeth.d.ts.map +1 -0
- package/dist/contracts/UndyCbeth.js +2206 -0
- package/dist/contracts/UndyEth.d.ts +209 -16
- package/dist/contracts/UndyEth.d.ts.map +1 -1
- package/dist/contracts/UndyEth.js +267 -16
- package/dist/contracts/UndyEurc.d.ts +1680 -0
- package/dist/contracts/UndyEurc.d.ts.map +1 -0
- package/dist/contracts/UndyEurc.js +2206 -0
- package/dist/contracts/UndyGho.d.ts +1680 -0
- package/dist/contracts/UndyGho.d.ts.map +1 -0
- package/dist/contracts/UndyGho.js +2206 -0
- package/dist/contracts/UndyUsd.d.ts +209 -16
- package/dist/contracts/UndyUsd.d.ts.map +1 -1
- package/dist/contracts/UndyUsd.js +267 -16
- package/dist/contracts/UndyUsds.d.ts +1680 -0
- package/dist/contracts/UndyUsds.d.ts.map +1 -0
- package/dist/contracts/UndyUsds.js +2206 -0
- package/dist/contracts/UniswapV2.d.ts +85 -0
- package/dist/contracts/UniswapV2.d.ts.map +1 -1
- package/dist/contracts/UniswapV2.js +109 -1
- package/dist/contracts/UniswapV3.d.ts +119 -0
- package/dist/contracts/UniswapV3.d.ts.map +1 -1
- package/dist/contracts/UniswapV3.js +151 -1
- package/dist/contracts/UserWallet.d.ts +12 -8
- package/dist/contracts/UserWallet.d.ts.map +1 -1
- package/dist/contracts/UserWallet.js +13 -9
- package/dist/contracts/UserWalletConfig.d.ts +198 -56
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfig.js +225 -72
- package/dist/contracts/UserWalletConfigV1.d.ts +3655 -0
- package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
- package/dist/contracts/UserWalletConfigV1.js +4251 -0
- package/dist/contracts/UserWalletV1.d.ts +2633 -0
- package/dist/contracts/UserWalletV1.d.ts.map +1 -0
- package/dist/contracts/UserWalletV1.js +3500 -0
- package/dist/contracts/VaultRegistry.d.ts +848 -85
- package/dist/contracts/VaultRegistry.d.ts.map +1 -1
- package/dist/contracts/VaultRegistry.js +1078 -83
- package/dist/contracts/WalletBackpack.d.ts +4 -0
- package/dist/contracts/WalletBackpack.d.ts.map +1 -1
- package/dist/contracts/WalletBackpack.js +5 -1
- package/dist/contracts/Wasabi.d.ts +2579 -0
- package/dist/contracts/Wasabi.d.ts.map +1 -0
- package/dist/contracts/Wasabi.js +3274 -0
- package/dist/contracts/index.d.ts +18 -1
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +18 -1
- package/dist/contracts/sdk.d.ts +36 -2
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +36 -2
- package/dist/getSwapInstructions.js +1 -1
- package/dist/index.d.ts +95 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -7
- package/package.json +3 -3
|
@@ -273,395 +273,12 @@ export const abi = [
|
|
|
273
273
|
{
|
|
274
274
|
stateMutability: 'view',
|
|
275
275
|
type: 'function',
|
|
276
|
-
name: '
|
|
277
|
-
inputs: [
|
|
278
|
-
{
|
|
279
|
-
name: '_asset',
|
|
280
|
-
type: 'address',
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
name: '_amount',
|
|
284
|
-
type: 'uint256',
|
|
285
|
-
},
|
|
286
|
-
],
|
|
287
|
-
outputs: [
|
|
288
|
-
{
|
|
289
|
-
name: '',
|
|
290
|
-
type: 'uint256',
|
|
291
|
-
},
|
|
292
|
-
],
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
stateMutability: 'view',
|
|
296
|
-
type: 'function',
|
|
297
|
-
name: 'getUsdValue',
|
|
298
|
-
inputs: [
|
|
299
|
-
{
|
|
300
|
-
name: '_asset',
|
|
301
|
-
type: 'address',
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
name: '_amount',
|
|
305
|
-
type: 'uint256',
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
name: '_missionControl',
|
|
309
|
-
type: 'address',
|
|
310
|
-
},
|
|
311
|
-
],
|
|
312
|
-
outputs: [
|
|
313
|
-
{
|
|
314
|
-
name: '',
|
|
315
|
-
type: 'uint256',
|
|
316
|
-
},
|
|
317
|
-
],
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
stateMutability: 'view',
|
|
321
|
-
type: 'function',
|
|
322
|
-
name: 'getUsdValue',
|
|
323
|
-
inputs: [
|
|
324
|
-
{
|
|
325
|
-
name: '_asset',
|
|
326
|
-
type: 'address',
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
name: '_amount',
|
|
330
|
-
type: 'uint256',
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
name: '_missionControl',
|
|
334
|
-
type: 'address',
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
name: '_legoBook',
|
|
338
|
-
type: 'address',
|
|
339
|
-
},
|
|
340
|
-
],
|
|
341
|
-
outputs: [
|
|
342
|
-
{
|
|
343
|
-
name: '',
|
|
344
|
-
type: 'uint256',
|
|
345
|
-
},
|
|
346
|
-
],
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
stateMutability: 'view',
|
|
350
|
-
type: 'function',
|
|
351
|
-
name: 'getUsdValue',
|
|
352
|
-
inputs: [
|
|
353
|
-
{
|
|
354
|
-
name: '_asset',
|
|
355
|
-
type: 'address',
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
name: '_amount',
|
|
359
|
-
type: 'uint256',
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
name: '_missionControl',
|
|
363
|
-
type: 'address',
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
name: '_legoBook',
|
|
367
|
-
type: 'address',
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
name: '_ledger',
|
|
371
|
-
type: 'address',
|
|
372
|
-
},
|
|
373
|
-
],
|
|
374
|
-
outputs: [
|
|
375
|
-
{
|
|
376
|
-
name: '',
|
|
377
|
-
type: 'uint256',
|
|
378
|
-
},
|
|
379
|
-
],
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
stateMutability: 'view',
|
|
383
|
-
type: 'function',
|
|
384
|
-
name: 'getPrice',
|
|
385
|
-
inputs: [
|
|
386
|
-
{
|
|
387
|
-
name: '_asset',
|
|
388
|
-
type: 'address',
|
|
389
|
-
},
|
|
390
|
-
],
|
|
391
|
-
outputs: [
|
|
392
|
-
{
|
|
393
|
-
name: '',
|
|
394
|
-
type: 'uint256',
|
|
395
|
-
},
|
|
396
|
-
],
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
stateMutability: 'view',
|
|
400
|
-
type: 'function',
|
|
401
|
-
name: 'getPrice',
|
|
402
|
-
inputs: [
|
|
403
|
-
{
|
|
404
|
-
name: '_asset',
|
|
405
|
-
type: 'address',
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
name: '_missionControl',
|
|
409
|
-
type: 'address',
|
|
410
|
-
},
|
|
411
|
-
],
|
|
412
|
-
outputs: [
|
|
413
|
-
{
|
|
414
|
-
name: '',
|
|
415
|
-
type: 'uint256',
|
|
416
|
-
},
|
|
417
|
-
],
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
stateMutability: 'view',
|
|
421
|
-
type: 'function',
|
|
422
|
-
name: 'getPrice',
|
|
423
|
-
inputs: [
|
|
424
|
-
{
|
|
425
|
-
name: '_asset',
|
|
426
|
-
type: 'address',
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
name: '_missionControl',
|
|
430
|
-
type: 'address',
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
name: '_legoBook',
|
|
434
|
-
type: 'address',
|
|
435
|
-
},
|
|
436
|
-
],
|
|
437
|
-
outputs: [
|
|
438
|
-
{
|
|
439
|
-
name: '',
|
|
440
|
-
type: 'uint256',
|
|
441
|
-
},
|
|
442
|
-
],
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
stateMutability: 'view',
|
|
446
|
-
type: 'function',
|
|
447
|
-
name: 'getPrice',
|
|
448
|
-
inputs: [
|
|
449
|
-
{
|
|
450
|
-
name: '_asset',
|
|
451
|
-
type: 'address',
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
name: '_missionControl',
|
|
455
|
-
type: 'address',
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
name: '_legoBook',
|
|
459
|
-
type: 'address',
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
name: '_ledger',
|
|
463
|
-
type: 'address',
|
|
464
|
-
},
|
|
465
|
-
],
|
|
466
|
-
outputs: [
|
|
467
|
-
{
|
|
468
|
-
name: '',
|
|
469
|
-
type: 'uint256',
|
|
470
|
-
},
|
|
471
|
-
],
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
stateMutability: 'nonpayable',
|
|
475
|
-
type: 'function',
|
|
476
|
-
name: 'updatePriceAndGetUsdValue',
|
|
477
|
-
inputs: [
|
|
478
|
-
{
|
|
479
|
-
name: '_asset',
|
|
480
|
-
type: 'address',
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
name: '_amount',
|
|
484
|
-
type: 'uint256',
|
|
485
|
-
},
|
|
486
|
-
],
|
|
487
|
-
outputs: [
|
|
488
|
-
{
|
|
489
|
-
name: '',
|
|
490
|
-
type: 'uint256',
|
|
491
|
-
},
|
|
492
|
-
],
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
stateMutability: 'nonpayable',
|
|
496
|
-
type: 'function',
|
|
497
|
-
name: 'updatePriceAndGetUsdValue',
|
|
498
|
-
inputs: [
|
|
499
|
-
{
|
|
500
|
-
name: '_asset',
|
|
501
|
-
type: 'address',
|
|
502
|
-
},
|
|
503
|
-
{
|
|
504
|
-
name: '_amount',
|
|
505
|
-
type: 'uint256',
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
name: '_missionControl',
|
|
509
|
-
type: 'address',
|
|
510
|
-
},
|
|
511
|
-
],
|
|
512
|
-
outputs: [
|
|
513
|
-
{
|
|
514
|
-
name: '',
|
|
515
|
-
type: 'uint256',
|
|
516
|
-
},
|
|
517
|
-
],
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
stateMutability: 'nonpayable',
|
|
521
|
-
type: 'function',
|
|
522
|
-
name: 'updatePriceAndGetUsdValue',
|
|
523
|
-
inputs: [
|
|
524
|
-
{
|
|
525
|
-
name: '_asset',
|
|
526
|
-
type: 'address',
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
name: '_amount',
|
|
530
|
-
type: 'uint256',
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
name: '_missionControl',
|
|
534
|
-
type: 'address',
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
name: '_legoBook',
|
|
538
|
-
type: 'address',
|
|
539
|
-
},
|
|
540
|
-
],
|
|
541
|
-
outputs: [
|
|
542
|
-
{
|
|
543
|
-
name: '',
|
|
544
|
-
type: 'uint256',
|
|
545
|
-
},
|
|
546
|
-
],
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
stateMutability: 'nonpayable',
|
|
550
|
-
type: 'function',
|
|
551
|
-
name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
|
|
552
|
-
inputs: [
|
|
553
|
-
{
|
|
554
|
-
name: '_asset',
|
|
555
|
-
type: 'address',
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
name: '_amount',
|
|
559
|
-
type: 'uint256',
|
|
560
|
-
},
|
|
561
|
-
],
|
|
562
|
-
outputs: [
|
|
563
|
-
{
|
|
564
|
-
name: '',
|
|
565
|
-
type: 'uint256',
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
name: '',
|
|
569
|
-
type: 'bool',
|
|
570
|
-
},
|
|
571
|
-
],
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
stateMutability: 'nonpayable',
|
|
575
|
-
type: 'function',
|
|
576
|
-
name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
|
|
577
|
-
inputs: [
|
|
578
|
-
{
|
|
579
|
-
name: '_asset',
|
|
580
|
-
type: 'address',
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
name: '_amount',
|
|
584
|
-
type: 'uint256',
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
name: '_missionControl',
|
|
588
|
-
type: 'address',
|
|
589
|
-
},
|
|
590
|
-
],
|
|
591
|
-
outputs: [
|
|
592
|
-
{
|
|
593
|
-
name: '',
|
|
594
|
-
type: 'uint256',
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
name: '',
|
|
598
|
-
type: 'bool',
|
|
599
|
-
},
|
|
600
|
-
],
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
stateMutability: 'nonpayable',
|
|
604
|
-
type: 'function',
|
|
605
|
-
name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
|
|
606
|
-
inputs: [
|
|
607
|
-
{
|
|
608
|
-
name: '_asset',
|
|
609
|
-
type: 'address',
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
name: '_amount',
|
|
613
|
-
type: 'uint256',
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
name: '_missionControl',
|
|
617
|
-
type: 'address',
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
name: '_legoBook',
|
|
621
|
-
type: 'address',
|
|
622
|
-
},
|
|
623
|
-
],
|
|
624
|
-
outputs: [
|
|
625
|
-
{
|
|
626
|
-
name: '',
|
|
627
|
-
type: 'uint256',
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
name: '',
|
|
631
|
-
type: 'bool',
|
|
632
|
-
},
|
|
633
|
-
],
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
stateMutability: 'view',
|
|
637
|
-
type: 'function',
|
|
638
|
-
name: 'getNormalAssetPrice',
|
|
639
|
-
inputs: [
|
|
640
|
-
{
|
|
641
|
-
name: '_asset',
|
|
642
|
-
type: 'address',
|
|
643
|
-
},
|
|
644
|
-
],
|
|
645
|
-
outputs: [
|
|
646
|
-
{
|
|
647
|
-
name: '',
|
|
648
|
-
type: 'uint256',
|
|
649
|
-
},
|
|
650
|
-
],
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
stateMutability: 'view',
|
|
654
|
-
type: 'function',
|
|
655
|
-
name: 'getNormalAssetPrice',
|
|
276
|
+
name: 'lastPricePerShare',
|
|
656
277
|
inputs: [
|
|
657
278
|
{
|
|
658
279
|
name: '_asset',
|
|
659
280
|
type: 'address',
|
|
660
281
|
},
|
|
661
|
-
{
|
|
662
|
-
name: '_missionControl',
|
|
663
|
-
type: 'address',
|
|
664
|
-
},
|
|
665
282
|
],
|
|
666
283
|
outputs: [
|
|
667
284
|
{
|
|
@@ -673,19 +290,15 @@ export const abi = [
|
|
|
673
290
|
{
|
|
674
291
|
stateMutability: 'view',
|
|
675
292
|
type: 'function',
|
|
676
|
-
name: '
|
|
293
|
+
name: 'getUsdValue',
|
|
677
294
|
inputs: [
|
|
678
295
|
{
|
|
679
296
|
name: '_asset',
|
|
680
297
|
type: 'address',
|
|
681
298
|
},
|
|
682
299
|
{
|
|
683
|
-
name: '
|
|
684
|
-
type: '
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
name: '_legoBook',
|
|
688
|
-
type: 'address',
|
|
300
|
+
name: '_amount',
|
|
301
|
+
type: 'uint256',
|
|
689
302
|
},
|
|
690
303
|
],
|
|
691
304
|
outputs: [
|
|
@@ -698,22 +311,18 @@ export const abi = [
|
|
|
698
311
|
{
|
|
699
312
|
stateMutability: 'view',
|
|
700
313
|
type: 'function',
|
|
701
|
-
name: '
|
|
314
|
+
name: 'getUsdValue',
|
|
702
315
|
inputs: [
|
|
703
316
|
{
|
|
704
317
|
name: '_asset',
|
|
705
318
|
type: 'address',
|
|
706
319
|
},
|
|
707
320
|
{
|
|
708
|
-
name: '
|
|
709
|
-
type: '
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
name: '_legoBook',
|
|
713
|
-
type: 'address',
|
|
321
|
+
name: '_amount',
|
|
322
|
+
type: 'uint256',
|
|
714
323
|
},
|
|
715
324
|
{
|
|
716
|
-
name: '
|
|
325
|
+
name: '_missionControl',
|
|
717
326
|
type: 'address',
|
|
718
327
|
},
|
|
719
328
|
],
|
|
@@ -725,33 +334,24 @@ export const abi = [
|
|
|
725
334
|
],
|
|
726
335
|
},
|
|
727
336
|
{
|
|
728
|
-
stateMutability: '
|
|
337
|
+
stateMutability: 'view',
|
|
729
338
|
type: 'function',
|
|
730
|
-
name: '
|
|
339
|
+
name: 'getUsdValue',
|
|
731
340
|
inputs: [
|
|
732
341
|
{
|
|
733
342
|
name: '_asset',
|
|
734
343
|
type: 'address',
|
|
735
344
|
},
|
|
736
|
-
],
|
|
737
|
-
outputs: [
|
|
738
345
|
{
|
|
739
|
-
name: '',
|
|
346
|
+
name: '_amount',
|
|
740
347
|
type: 'uint256',
|
|
741
348
|
},
|
|
742
|
-
],
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
stateMutability: 'nonpayable',
|
|
746
|
-
type: 'function',
|
|
747
|
-
name: 'updateAndGetNormalAssetPrice',
|
|
748
|
-
inputs: [
|
|
749
349
|
{
|
|
750
|
-
name: '
|
|
350
|
+
name: '_missionControl',
|
|
751
351
|
type: 'address',
|
|
752
352
|
},
|
|
753
353
|
{
|
|
754
|
-
name: '
|
|
354
|
+
name: '_legoBook',
|
|
755
355
|
type: 'address',
|
|
756
356
|
},
|
|
757
357
|
],
|
|
@@ -763,14 +363,18 @@ export const abi = [
|
|
|
763
363
|
],
|
|
764
364
|
},
|
|
765
365
|
{
|
|
766
|
-
stateMutability: '
|
|
366
|
+
stateMutability: 'view',
|
|
767
367
|
type: 'function',
|
|
768
|
-
name: '
|
|
368
|
+
name: 'getUsdValue',
|
|
769
369
|
inputs: [
|
|
770
370
|
{
|
|
771
371
|
name: '_asset',
|
|
772
372
|
type: 'address',
|
|
773
373
|
},
|
|
374
|
+
{
|
|
375
|
+
name: '_amount',
|
|
376
|
+
type: 'uint256',
|
|
377
|
+
},
|
|
774
378
|
{
|
|
775
379
|
name: '_missionControl',
|
|
776
380
|
type: 'address',
|
|
@@ -779,6 +383,10 @@ export const abi = [
|
|
|
779
383
|
name: '_legoBook',
|
|
780
384
|
type: 'address',
|
|
781
385
|
},
|
|
386
|
+
{
|
|
387
|
+
name: '_ledger',
|
|
388
|
+
type: 'address',
|
|
389
|
+
},
|
|
782
390
|
],
|
|
783
391
|
outputs: [
|
|
784
392
|
{
|
|
@@ -790,12 +398,16 @@ export const abi = [
|
|
|
790
398
|
{
|
|
791
399
|
stateMutability: 'view',
|
|
792
400
|
type: 'function',
|
|
793
|
-
name: '
|
|
401
|
+
name: 'getUnderlyingUsdValue',
|
|
794
402
|
inputs: [
|
|
795
403
|
{
|
|
796
404
|
name: '_asset',
|
|
797
405
|
type: 'address',
|
|
798
406
|
},
|
|
407
|
+
{
|
|
408
|
+
name: '_amount',
|
|
409
|
+
type: 'uint256',
|
|
410
|
+
},
|
|
799
411
|
],
|
|
800
412
|
outputs: [
|
|
801
413
|
{
|
|
@@ -805,17 +417,17 @@ export const abi = [
|
|
|
805
417
|
],
|
|
806
418
|
},
|
|
807
419
|
{
|
|
808
|
-
stateMutability: '
|
|
420
|
+
stateMutability: 'nonpayable',
|
|
809
421
|
type: 'function',
|
|
810
|
-
name: '
|
|
422
|
+
name: 'updatePriceAndGetUsdValue',
|
|
811
423
|
inputs: [
|
|
812
424
|
{
|
|
813
425
|
name: '_asset',
|
|
814
426
|
type: 'address',
|
|
815
427
|
},
|
|
816
428
|
{
|
|
817
|
-
name: '
|
|
818
|
-
type: '
|
|
429
|
+
name: '_amount',
|
|
430
|
+
type: 'uint256',
|
|
819
431
|
},
|
|
820
432
|
],
|
|
821
433
|
outputs: [
|
|
@@ -826,20 +438,20 @@ export const abi = [
|
|
|
826
438
|
],
|
|
827
439
|
},
|
|
828
440
|
{
|
|
829
|
-
stateMutability: '
|
|
441
|
+
stateMutability: 'nonpayable',
|
|
830
442
|
type: 'function',
|
|
831
|
-
name: '
|
|
443
|
+
name: 'updatePriceAndGetUsdValue',
|
|
832
444
|
inputs: [
|
|
833
445
|
{
|
|
834
446
|
name: '_asset',
|
|
835
447
|
type: 'address',
|
|
836
448
|
},
|
|
837
449
|
{
|
|
838
|
-
name: '
|
|
839
|
-
type: '
|
|
450
|
+
name: '_amount',
|
|
451
|
+
type: 'uint256',
|
|
840
452
|
},
|
|
841
453
|
{
|
|
842
|
-
name: '
|
|
454
|
+
name: '_missionControl',
|
|
843
455
|
type: 'address',
|
|
844
456
|
},
|
|
845
457
|
],
|
|
@@ -851,24 +463,24 @@ export const abi = [
|
|
|
851
463
|
],
|
|
852
464
|
},
|
|
853
465
|
{
|
|
854
|
-
stateMutability: '
|
|
466
|
+
stateMutability: 'nonpayable',
|
|
855
467
|
type: 'function',
|
|
856
|
-
name: '
|
|
468
|
+
name: 'updatePriceAndGetUsdValue',
|
|
857
469
|
inputs: [
|
|
858
470
|
{
|
|
859
471
|
name: '_asset',
|
|
860
472
|
type: 'address',
|
|
861
473
|
},
|
|
862
474
|
{
|
|
863
|
-
name: '
|
|
864
|
-
type: '
|
|
475
|
+
name: '_amount',
|
|
476
|
+
type: 'uint256',
|
|
865
477
|
},
|
|
866
478
|
{
|
|
867
|
-
name: '
|
|
479
|
+
name: '_missionControl',
|
|
868
480
|
type: 'address',
|
|
869
481
|
},
|
|
870
482
|
{
|
|
871
|
-
name: '
|
|
483
|
+
name: '_legoBook',
|
|
872
484
|
type: 'address',
|
|
873
485
|
},
|
|
874
486
|
],
|
|
@@ -880,24 +492,16 @@ export const abi = [
|
|
|
880
492
|
],
|
|
881
493
|
},
|
|
882
494
|
{
|
|
883
|
-
stateMutability: '
|
|
495
|
+
stateMutability: 'nonpayable',
|
|
884
496
|
type: 'function',
|
|
885
|
-
name: '
|
|
497
|
+
name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
|
|
886
498
|
inputs: [
|
|
887
499
|
{
|
|
888
500
|
name: '_asset',
|
|
889
501
|
type: 'address',
|
|
890
502
|
},
|
|
891
503
|
{
|
|
892
|
-
name: '
|
|
893
|
-
type: 'address',
|
|
894
|
-
},
|
|
895
|
-
{
|
|
896
|
-
name: '_staleBlocks',
|
|
897
|
-
type: 'uint256',
|
|
898
|
-
},
|
|
899
|
-
{
|
|
900
|
-
name: '_decimals',
|
|
504
|
+
name: '_amount',
|
|
901
505
|
type: 'uint256',
|
|
902
506
|
},
|
|
903
507
|
],
|
|
@@ -906,34 +510,25 @@ export const abi = [
|
|
|
906
510
|
name: '',
|
|
907
511
|
type: 'uint256',
|
|
908
512
|
},
|
|
909
|
-
],
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
stateMutability: 'nonpayable',
|
|
913
|
-
type: 'function',
|
|
914
|
-
name: 'updateAndGetPricePerShare',
|
|
915
|
-
inputs: [
|
|
916
|
-
{
|
|
917
|
-
name: '_asset',
|
|
918
|
-
type: 'address',
|
|
919
|
-
},
|
|
920
|
-
],
|
|
921
|
-
outputs: [
|
|
922
513
|
{
|
|
923
514
|
name: '',
|
|
924
|
-
type: '
|
|
515
|
+
type: 'bool',
|
|
925
516
|
},
|
|
926
517
|
],
|
|
927
518
|
},
|
|
928
519
|
{
|
|
929
520
|
stateMutability: 'nonpayable',
|
|
930
521
|
type: 'function',
|
|
931
|
-
name: '
|
|
522
|
+
name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
|
|
932
523
|
inputs: [
|
|
933
524
|
{
|
|
934
525
|
name: '_asset',
|
|
935
526
|
type: 'address',
|
|
936
527
|
},
|
|
528
|
+
{
|
|
529
|
+
name: '_amount',
|
|
530
|
+
type: 'uint256',
|
|
531
|
+
},
|
|
937
532
|
{
|
|
938
533
|
name: '_missionControl',
|
|
939
534
|
type: 'address',
|
|
@@ -944,17 +539,25 @@ export const abi = [
|
|
|
944
539
|
name: '',
|
|
945
540
|
type: 'uint256',
|
|
946
541
|
},
|
|
542
|
+
{
|
|
543
|
+
name: '',
|
|
544
|
+
type: 'bool',
|
|
545
|
+
},
|
|
947
546
|
],
|
|
948
547
|
},
|
|
949
548
|
{
|
|
950
549
|
stateMutability: 'nonpayable',
|
|
951
550
|
type: 'function',
|
|
952
|
-
name: '
|
|
551
|
+
name: 'updatePriceAndGetUsdValueAndIsYieldAsset',
|
|
953
552
|
inputs: [
|
|
954
553
|
{
|
|
955
554
|
name: '_asset',
|
|
956
555
|
type: 'address',
|
|
957
556
|
},
|
|
557
|
+
{
|
|
558
|
+
name: '_amount',
|
|
559
|
+
type: 'uint256',
|
|
560
|
+
},
|
|
958
561
|
{
|
|
959
562
|
name: '_missionControl',
|
|
960
563
|
type: 'address',
|
|
@@ -969,29 +572,16 @@ export const abi = [
|
|
|
969
572
|
name: '',
|
|
970
573
|
type: 'uint256',
|
|
971
574
|
},
|
|
972
|
-
],
|
|
973
|
-
},
|
|
974
|
-
{
|
|
975
|
-
stateMutability: 'view',
|
|
976
|
-
type: 'function',
|
|
977
|
-
name: 'getRipePrice',
|
|
978
|
-
inputs: [
|
|
979
|
-
{
|
|
980
|
-
name: '_asset',
|
|
981
|
-
type: 'address',
|
|
982
|
-
},
|
|
983
|
-
],
|
|
984
|
-
outputs: [
|
|
985
575
|
{
|
|
986
576
|
name: '',
|
|
987
|
-
type: '
|
|
577
|
+
type: 'bool',
|
|
988
578
|
},
|
|
989
579
|
],
|
|
990
580
|
},
|
|
991
581
|
{
|
|
992
582
|
stateMutability: 'view',
|
|
993
583
|
type: 'function',
|
|
994
|
-
name: '
|
|
584
|
+
name: 'getRipePrice',
|
|
995
585
|
inputs: [
|
|
996
586
|
{
|
|
997
587
|
name: '_asset',
|
|
@@ -1001,166 +591,28 @@ export const abi = [
|
|
|
1001
591
|
outputs: [
|
|
1002
592
|
{
|
|
1003
593
|
name: '',
|
|
1004
|
-
type: '
|
|
1005
|
-
components: [
|
|
1006
|
-
{
|
|
1007
|
-
name: 'legoId',
|
|
1008
|
-
type: 'uint256',
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
name: 'legoAddr',
|
|
1012
|
-
type: 'address',
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
name: 'decimals',
|
|
1016
|
-
type: 'uint256',
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
name: 'staleBlocks',
|
|
1020
|
-
type: 'uint256',
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
name: 'isYieldAsset',
|
|
1024
|
-
type: 'bool',
|
|
1025
|
-
},
|
|
1026
|
-
{
|
|
1027
|
-
name: 'isRebasing',
|
|
1028
|
-
type: 'bool',
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
name: 'underlyingAsset',
|
|
1032
|
-
type: 'address',
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
name: 'maxYieldIncrease',
|
|
1036
|
-
type: 'uint256',
|
|
1037
|
-
},
|
|
1038
|
-
{
|
|
1039
|
-
name: 'performanceFee',
|
|
1040
|
-
type: 'uint256',
|
|
1041
|
-
},
|
|
1042
|
-
],
|
|
594
|
+
type: 'uint256',
|
|
1043
595
|
},
|
|
1044
596
|
],
|
|
1045
597
|
},
|
|
1046
598
|
{
|
|
1047
599
|
stateMutability: 'view',
|
|
1048
600
|
type: 'function',
|
|
1049
|
-
name: '
|
|
601
|
+
name: 'getAssetAmountFromRipe',
|
|
1050
602
|
inputs: [
|
|
1051
603
|
{
|
|
1052
604
|
name: '_asset',
|
|
1053
605
|
type: 'address',
|
|
1054
606
|
},
|
|
1055
|
-
],
|
|
1056
|
-
outputs: [
|
|
1057
|
-
{
|
|
1058
|
-
name: '',
|
|
1059
|
-
type: 'tuple',
|
|
1060
|
-
components: [
|
|
1061
|
-
{
|
|
1062
|
-
name: 'legoId',
|
|
1063
|
-
type: 'uint256',
|
|
1064
|
-
},
|
|
1065
|
-
{
|
|
1066
|
-
name: 'legoAddr',
|
|
1067
|
-
type: 'address',
|
|
1068
|
-
},
|
|
1069
|
-
{
|
|
1070
|
-
name: 'decimals',
|
|
1071
|
-
type: 'uint256',
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
name: 'staleBlocks',
|
|
1075
|
-
type: 'uint256',
|
|
1076
|
-
},
|
|
1077
|
-
{
|
|
1078
|
-
name: 'isYieldAsset',
|
|
1079
|
-
type: 'bool',
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
name: 'underlyingAsset',
|
|
1083
|
-
type: 'address',
|
|
1084
|
-
},
|
|
1085
|
-
],
|
|
1086
|
-
},
|
|
1087
|
-
],
|
|
1088
|
-
},
|
|
1089
|
-
{
|
|
1090
|
-
stateMutability: 'view',
|
|
1091
|
-
type: 'function',
|
|
1092
|
-
name: 'lastPrice',
|
|
1093
|
-
inputs: [
|
|
1094
|
-
{
|
|
1095
|
-
name: 'arg0',
|
|
1096
|
-
type: 'address',
|
|
1097
|
-
},
|
|
1098
|
-
],
|
|
1099
|
-
outputs: [
|
|
1100
|
-
{
|
|
1101
|
-
name: '',
|
|
1102
|
-
type: 'tuple',
|
|
1103
|
-
components: [
|
|
1104
|
-
{
|
|
1105
|
-
name: 'price',
|
|
1106
|
-
type: 'uint256',
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
name: 'lastUpdate',
|
|
1110
|
-
type: 'uint256',
|
|
1111
|
-
},
|
|
1112
|
-
],
|
|
1113
|
-
},
|
|
1114
|
-
],
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
stateMutability: 'view',
|
|
1118
|
-
type: 'function',
|
|
1119
|
-
name: 'lastPricePerShare',
|
|
1120
|
-
inputs: [
|
|
1121
|
-
{
|
|
1122
|
-
name: 'arg0',
|
|
1123
|
-
type: 'address',
|
|
1124
|
-
},
|
|
1125
|
-
],
|
|
1126
|
-
outputs: [
|
|
1127
|
-
{
|
|
1128
|
-
name: '',
|
|
1129
|
-
type: 'tuple',
|
|
1130
|
-
components: [
|
|
1131
|
-
{
|
|
1132
|
-
name: 'pricePerShare',
|
|
1133
|
-
type: 'uint256',
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
name: 'lastUpdate',
|
|
1137
|
-
type: 'uint256',
|
|
1138
|
-
},
|
|
1139
|
-
],
|
|
1140
|
-
},
|
|
1141
|
-
],
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
stateMutability: 'view',
|
|
1145
|
-
type: 'function',
|
|
1146
|
-
name: 'WETH',
|
|
1147
|
-
inputs: [],
|
|
1148
|
-
outputs: [
|
|
1149
607
|
{
|
|
1150
|
-
name: '',
|
|
1151
|
-
type: '
|
|
608
|
+
name: '_usdValue',
|
|
609
|
+
type: 'uint256',
|
|
1152
610
|
},
|
|
1153
611
|
],
|
|
1154
|
-
},
|
|
1155
|
-
{
|
|
1156
|
-
stateMutability: 'view',
|
|
1157
|
-
type: 'function',
|
|
1158
|
-
name: 'ETH',
|
|
1159
|
-
inputs: [],
|
|
1160
612
|
outputs: [
|
|
1161
613
|
{
|
|
1162
614
|
name: '',
|
|
1163
|
-
type: '
|
|
615
|
+
type: 'uint256',
|
|
1164
616
|
},
|
|
1165
617
|
],
|
|
1166
618
|
},
|
|
@@ -1176,19 +628,11 @@ export const abi = [
|
|
|
1176
628
|
name: '_ripeHq',
|
|
1177
629
|
type: 'address',
|
|
1178
630
|
},
|
|
1179
|
-
{
|
|
1180
|
-
name: '_wethAddr',
|
|
1181
|
-
type: 'address',
|
|
1182
|
-
},
|
|
1183
|
-
{
|
|
1184
|
-
name: '_ethAddr',
|
|
1185
|
-
type: 'address',
|
|
1186
|
-
},
|
|
1187
631
|
],
|
|
1188
632
|
outputs: [],
|
|
1189
633
|
},
|
|
1190
634
|
];
|
|
1191
|
-
export const deployAddress = '
|
|
635
|
+
export const deployAddress = '0x8C6521e6f2676a7AdC8484444f161c3538e545e2';
|
|
1192
636
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
1193
637
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
1194
638
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -1222,18 +666,11 @@ export const call = {
|
|
|
1222
666
|
canMintUndy: (...args) => getRequest('canMintUndy', args),
|
|
1223
667
|
isPaused: (...args) => getRequest('isPaused', args),
|
|
1224
668
|
calculateYieldProfitsNoUpdate: (...args) => getRequest('calculateYieldProfitsNoUpdate', args),
|
|
669
|
+
lastPricePerShare: (...args) => getRequest('lastPricePerShare', args),
|
|
1225
670
|
getUsdValue: (...args) => getRequest('getUsdValue', args),
|
|
1226
|
-
|
|
1227
|
-
getNormalAssetPrice: (...args) => getRequest('getNormalAssetPrice', args),
|
|
1228
|
-
getPricePerShare: (...args) => getRequest('getPricePerShare', args),
|
|
1229
|
-
getPricePerShareWithConfig: (...args) => getRequest('getPricePerShareWithConfig', args),
|
|
671
|
+
getUnderlyingUsdValue: (...args) => getRequest('getUnderlyingUsdValue', args),
|
|
1230
672
|
getRipePrice: (...args) => getRequest('getRipePrice', args),
|
|
1231
|
-
|
|
1232
|
-
getAssetUsdValueConfig: (...args) => getRequest('getAssetUsdValueConfig', args),
|
|
1233
|
-
lastPrice: (...args) => getRequest('lastPrice', args),
|
|
1234
|
-
lastPricePerShare: (...args) => getRequest('lastPricePerShare', args),
|
|
1235
|
-
WETH: (...args) => getRequest('WETH', args),
|
|
1236
|
-
ETH: (...args) => getRequest('ETH', args),
|
|
673
|
+
getAssetAmountFromRipe: (...args) => getRequest('getAssetAmountFromRipe', args),
|
|
1237
674
|
};
|
|
1238
675
|
function getMutation(functionName) {
|
|
1239
676
|
return {
|
|
@@ -1251,8 +688,6 @@ export const mutation = {
|
|
|
1251
688
|
calculateYieldProfits: getMutation('calculateYieldProfits'),
|
|
1252
689
|
updatePriceAndGetUsdValue: getMutation('updatePriceAndGetUsdValue'),
|
|
1253
690
|
updatePriceAndGetUsdValueAndIsYieldAsset: getMutation('updatePriceAndGetUsdValueAndIsYieldAsset'),
|
|
1254
|
-
updateAndGetNormalAssetPrice: getMutation('updateAndGetNormalAssetPrice'),
|
|
1255
|
-
updateAndGetPricePerShare: getMutation('updateAndGetPricePerShare'),
|
|
1256
691
|
};
|
|
1257
692
|
export function toSdk(publicClient, walletClient) {
|
|
1258
693
|
return {
|
|
@@ -1264,18 +699,11 @@ export function toSdk(publicClient, walletClient) {
|
|
|
1264
699
|
canMintUndy: (...args) => singleQuery(publicClient, call.canMintUndy(...args)),
|
|
1265
700
|
isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
|
|
1266
701
|
calculateYieldProfitsNoUpdate: (...args) => singleQuery(publicClient, call.calculateYieldProfitsNoUpdate(...args)),
|
|
702
|
+
lastPricePerShare: (...args) => singleQuery(publicClient, call.lastPricePerShare(...args)),
|
|
1267
703
|
getUsdValue: (...args) => singleQuery(publicClient, call.getUsdValue(...args)),
|
|
1268
|
-
|
|
1269
|
-
getNormalAssetPrice: (...args) => singleQuery(publicClient, call.getNormalAssetPrice(...args)),
|
|
1270
|
-
getPricePerShare: (...args) => singleQuery(publicClient, call.getPricePerShare(...args)),
|
|
1271
|
-
getPricePerShareWithConfig: (...args) => singleQuery(publicClient, call.getPricePerShareWithConfig(...args)),
|
|
704
|
+
getUnderlyingUsdValue: (...args) => singleQuery(publicClient, call.getUnderlyingUsdValue(...args)),
|
|
1272
705
|
getRipePrice: (...args) => singleQuery(publicClient, call.getRipePrice(...args)),
|
|
1273
|
-
|
|
1274
|
-
getAssetUsdValueConfig: (...args) => singleQuery(publicClient, call.getAssetUsdValueConfig(...args)),
|
|
1275
|
-
lastPrice: (...args) => singleQuery(publicClient, call.lastPrice(...args)),
|
|
1276
|
-
lastPricePerShare: (...args) => singleQuery(publicClient, call.lastPricePerShare(...args)),
|
|
1277
|
-
WETH: (...args) => singleQuery(publicClient, call.WETH(...args)),
|
|
1278
|
-
ETH: (...args) => singleQuery(publicClient, call.ETH(...args)),
|
|
706
|
+
getAssetAmountFromRipe: (...args) => singleQuery(publicClient, call.getAssetAmountFromRipe(...args)),
|
|
1279
707
|
// Mutations
|
|
1280
708
|
pause: (...args) => mutate(walletClient, mutation.pause)(...args),
|
|
1281
709
|
recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds)(...args),
|
|
@@ -1283,7 +711,5 @@ export function toSdk(publicClient, walletClient) {
|
|
|
1283
711
|
calculateYieldProfits: (...args) => mutate(walletClient, mutation.calculateYieldProfits)(...args),
|
|
1284
712
|
updatePriceAndGetUsdValue: (...args) => mutate(walletClient, mutation.updatePriceAndGetUsdValue)(...args),
|
|
1285
713
|
updatePriceAndGetUsdValueAndIsYieldAsset: (...args) => mutate(walletClient, mutation.updatePriceAndGetUsdValueAndIsYieldAsset)(...args),
|
|
1286
|
-
updateAndGetNormalAssetPrice: (...args) => mutate(walletClient, mutation.updateAndGetNormalAssetPrice)(...args),
|
|
1287
|
-
updateAndGetPricePerShare: (...args) => mutate(walletClient, mutation.updateAndGetPricePerShare)(...args),
|
|
1288
714
|
};
|
|
1289
715
|
}
|