@ripe-finance/sdk 1.15.2 → 1.15.3
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/ChainlinkPrices.d.ts +3 -0
- package/dist/contracts/ChainlinkPrices.d.ts.map +1 -1
- package/dist/contracts/ChainlinkPrices.js +5 -1
- package/dist/contracts/DefaultsBase.d.ts +260 -40
- package/dist/contracts/DefaultsBase.d.ts.map +1 -1
- package/dist/contracts/DefaultsBase.js +266 -35
- package/dist/contracts/MissionControl.d.ts +45 -6
- package/dist/contracts/MissionControl.d.ts.map +1 -1
- package/dist/contracts/MissionControl.js +58 -6
- package/dist/contracts/PythPrices.js +1 -1
- package/dist/contracts/RedStone.js +1 -1
- package/dist/contracts/StorkPrices.js +1 -1
- package/dist/contracts/Switchboard.js +1 -1
- package/dist/contracts/SwitchboardAlpha.d.ts +590 -301
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +707 -277
- package/dist/contracts/SwitchboardBravo.d.ts +241 -191
- package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
- package/dist/contracts/SwitchboardBravo.js +301 -217
- package/dist/contracts/SwitchboardCharlie.d.ts +786 -28
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +1440 -470
- package/dist/contracts/SwitchboardDelta.d.ts +519 -8
- package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
- package/dist/contracts/SwitchboardDelta.js +702 -33
- package/dist/contracts/SwitchboardEcho.js +1 -1
- package/dist/contracts/UndyVaultPrices.js +1 -1
- package/dist/index.d.ts +96 -61
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -359,138 +359,6 @@ export const abi = [
|
|
|
359
359
|
anonymous: false,
|
|
360
360
|
type: 'event',
|
|
361
361
|
},
|
|
362
|
-
{
|
|
363
|
-
name: 'CanDepositAssetSet',
|
|
364
|
-
inputs: [
|
|
365
|
-
{
|
|
366
|
-
name: 'asset',
|
|
367
|
-
type: 'address',
|
|
368
|
-
indexed: true,
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
name: 'canDeposit',
|
|
372
|
-
type: 'bool',
|
|
373
|
-
indexed: false,
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
name: 'caller',
|
|
377
|
-
type: 'address',
|
|
378
|
-
indexed: true,
|
|
379
|
-
},
|
|
380
|
-
],
|
|
381
|
-
anonymous: false,
|
|
382
|
-
type: 'event',
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
name: 'CanWithdrawAssetSet',
|
|
386
|
-
inputs: [
|
|
387
|
-
{
|
|
388
|
-
name: 'asset',
|
|
389
|
-
type: 'address',
|
|
390
|
-
indexed: true,
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
name: 'canWithdraw',
|
|
394
|
-
type: 'bool',
|
|
395
|
-
indexed: false,
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
name: 'caller',
|
|
399
|
-
type: 'address',
|
|
400
|
-
indexed: true,
|
|
401
|
-
},
|
|
402
|
-
],
|
|
403
|
-
anonymous: false,
|
|
404
|
-
type: 'event',
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
name: 'CanRedeemInStabPoolAssetSet',
|
|
408
|
-
inputs: [
|
|
409
|
-
{
|
|
410
|
-
name: 'asset',
|
|
411
|
-
type: 'address',
|
|
412
|
-
indexed: true,
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
name: 'canRedeemInStabPool',
|
|
416
|
-
type: 'bool',
|
|
417
|
-
indexed: false,
|
|
418
|
-
},
|
|
419
|
-
{
|
|
420
|
-
name: 'caller',
|
|
421
|
-
type: 'address',
|
|
422
|
-
indexed: true,
|
|
423
|
-
},
|
|
424
|
-
],
|
|
425
|
-
anonymous: false,
|
|
426
|
-
type: 'event',
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
name: 'CanBuyInAuctionAssetSet',
|
|
430
|
-
inputs: [
|
|
431
|
-
{
|
|
432
|
-
name: 'asset',
|
|
433
|
-
type: 'address',
|
|
434
|
-
indexed: true,
|
|
435
|
-
},
|
|
436
|
-
{
|
|
437
|
-
name: 'canBuyInAuction',
|
|
438
|
-
type: 'bool',
|
|
439
|
-
indexed: false,
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
name: 'caller',
|
|
443
|
-
type: 'address',
|
|
444
|
-
indexed: true,
|
|
445
|
-
},
|
|
446
|
-
],
|
|
447
|
-
anonymous: false,
|
|
448
|
-
type: 'event',
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
name: 'CanClaimInStabPoolAssetSet',
|
|
452
|
-
inputs: [
|
|
453
|
-
{
|
|
454
|
-
name: 'asset',
|
|
455
|
-
type: 'address',
|
|
456
|
-
indexed: true,
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
name: 'canClaimInStabPool',
|
|
460
|
-
type: 'bool',
|
|
461
|
-
indexed: false,
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
name: 'caller',
|
|
465
|
-
type: 'address',
|
|
466
|
-
indexed: true,
|
|
467
|
-
},
|
|
468
|
-
],
|
|
469
|
-
anonymous: false,
|
|
470
|
-
type: 'event',
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
name: 'CanRedeemCollateralAssetSet',
|
|
474
|
-
inputs: [
|
|
475
|
-
{
|
|
476
|
-
name: 'asset',
|
|
477
|
-
type: 'address',
|
|
478
|
-
indexed: true,
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
name: 'canRedeemCollateral',
|
|
482
|
-
type: 'bool',
|
|
483
|
-
indexed: false,
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
name: 'caller',
|
|
487
|
-
type: 'address',
|
|
488
|
-
indexed: true,
|
|
489
|
-
},
|
|
490
|
-
],
|
|
491
|
-
anonymous: false,
|
|
492
|
-
type: 'event',
|
|
493
|
-
},
|
|
494
362
|
{
|
|
495
363
|
name: 'AssetAdded',
|
|
496
364
|
inputs: [
|
|
@@ -2924,6 +2792,200 @@ export const abi = [
|
|
|
2924
2792
|
},
|
|
2925
2793
|
],
|
|
2926
2794
|
},
|
|
2795
|
+
{
|
|
2796
|
+
stateMutability: 'nonpayable',
|
|
2797
|
+
type: 'function',
|
|
2798
|
+
name: 'addAsset',
|
|
2799
|
+
inputs: [
|
|
2800
|
+
{
|
|
2801
|
+
name: '_asset',
|
|
2802
|
+
type: 'address',
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
name: '_vaultIds',
|
|
2806
|
+
type: 'uint256[]',
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
name: '_stakersPointsAlloc',
|
|
2810
|
+
type: 'uint256',
|
|
2811
|
+
},
|
|
2812
|
+
{
|
|
2813
|
+
name: '_voterPointsAlloc',
|
|
2814
|
+
type: 'uint256',
|
|
2815
|
+
},
|
|
2816
|
+
{
|
|
2817
|
+
name: '_perUserDepositLimit',
|
|
2818
|
+
type: 'uint256',
|
|
2819
|
+
},
|
|
2820
|
+
{
|
|
2821
|
+
name: '_globalDepositLimit',
|
|
2822
|
+
type: 'uint256',
|
|
2823
|
+
},
|
|
2824
|
+
{
|
|
2825
|
+
name: '_minDepositBalance',
|
|
2826
|
+
type: 'uint256',
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
name: '_debtTerms',
|
|
2830
|
+
type: 'tuple',
|
|
2831
|
+
components: [
|
|
2832
|
+
{
|
|
2833
|
+
name: 'ltv',
|
|
2834
|
+
type: 'uint256',
|
|
2835
|
+
},
|
|
2836
|
+
{
|
|
2837
|
+
name: 'redemptionThreshold',
|
|
2838
|
+
type: 'uint256',
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
name: 'liqThreshold',
|
|
2842
|
+
type: 'uint256',
|
|
2843
|
+
},
|
|
2844
|
+
{
|
|
2845
|
+
name: 'liqFee',
|
|
2846
|
+
type: 'uint256',
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
name: 'borrowRate',
|
|
2850
|
+
type: 'uint256',
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
name: 'daowry',
|
|
2854
|
+
type: 'uint256',
|
|
2855
|
+
},
|
|
2856
|
+
],
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
name: '_shouldBurnAsPayment',
|
|
2860
|
+
type: 'bool',
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
name: '_shouldTransferToEndaoment',
|
|
2864
|
+
type: 'bool',
|
|
2865
|
+
},
|
|
2866
|
+
{
|
|
2867
|
+
name: '_shouldSwapInStabPools',
|
|
2868
|
+
type: 'bool',
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
name: '_shouldAuctionInstantly',
|
|
2872
|
+
type: 'bool',
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
name: '_canDeposit',
|
|
2876
|
+
type: 'bool',
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
name: '_canWithdraw',
|
|
2880
|
+
type: 'bool',
|
|
2881
|
+
},
|
|
2882
|
+
{
|
|
2883
|
+
name: '_canRedeemCollateral',
|
|
2884
|
+
type: 'bool',
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
name: '_canRedeemInStabPool',
|
|
2888
|
+
type: 'bool',
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
name: '_canBuyInAuction',
|
|
2892
|
+
type: 'bool',
|
|
2893
|
+
},
|
|
2894
|
+
{
|
|
2895
|
+
name: '_canClaimInStabPool',
|
|
2896
|
+
type: 'bool',
|
|
2897
|
+
},
|
|
2898
|
+
{
|
|
2899
|
+
name: '_specialStabPoolId',
|
|
2900
|
+
type: 'uint256',
|
|
2901
|
+
},
|
|
2902
|
+
{
|
|
2903
|
+
name: '_customAuctionParams',
|
|
2904
|
+
type: 'tuple',
|
|
2905
|
+
components: [
|
|
2906
|
+
{
|
|
2907
|
+
name: 'hasParams',
|
|
2908
|
+
type: 'bool',
|
|
2909
|
+
},
|
|
2910
|
+
{
|
|
2911
|
+
name: 'startDiscount',
|
|
2912
|
+
type: 'uint256',
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
name: 'maxDiscount',
|
|
2916
|
+
type: 'uint256',
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
name: 'delay',
|
|
2920
|
+
type: 'uint256',
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
name: 'duration',
|
|
2924
|
+
type: 'uint256',
|
|
2925
|
+
},
|
|
2926
|
+
],
|
|
2927
|
+
},
|
|
2928
|
+
{
|
|
2929
|
+
name: '_whitelist',
|
|
2930
|
+
type: 'address',
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
name: '_isNft',
|
|
2934
|
+
type: 'bool',
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
name: '_missionControl',
|
|
2938
|
+
type: 'address',
|
|
2939
|
+
},
|
|
2940
|
+
],
|
|
2941
|
+
outputs: [
|
|
2942
|
+
{
|
|
2943
|
+
name: '',
|
|
2944
|
+
type: 'uint256',
|
|
2945
|
+
},
|
|
2946
|
+
],
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
stateMutability: 'nonpayable',
|
|
2950
|
+
type: 'function',
|
|
2951
|
+
name: 'setAssetDepositParams',
|
|
2952
|
+
inputs: [
|
|
2953
|
+
{
|
|
2954
|
+
name: '_asset',
|
|
2955
|
+
type: 'address',
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
name: '_vaultIds',
|
|
2959
|
+
type: 'uint256[]',
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
name: '_stakersPointsAlloc',
|
|
2963
|
+
type: 'uint256',
|
|
2964
|
+
},
|
|
2965
|
+
{
|
|
2966
|
+
name: '_voterPointsAlloc',
|
|
2967
|
+
type: 'uint256',
|
|
2968
|
+
},
|
|
2969
|
+
{
|
|
2970
|
+
name: '_perUserDepositLimit',
|
|
2971
|
+
type: 'uint256',
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
name: '_globalDepositLimit',
|
|
2975
|
+
type: 'uint256',
|
|
2976
|
+
},
|
|
2977
|
+
{
|
|
2978
|
+
name: '_minDepositBalance',
|
|
2979
|
+
type: 'uint256',
|
|
2980
|
+
},
|
|
2981
|
+
],
|
|
2982
|
+
outputs: [
|
|
2983
|
+
{
|
|
2984
|
+
name: '',
|
|
2985
|
+
type: 'uint256',
|
|
2986
|
+
},
|
|
2987
|
+
],
|
|
2988
|
+
},
|
|
2927
2989
|
{
|
|
2928
2990
|
stateMutability: 'nonpayable',
|
|
2929
2991
|
type: 'function',
|
|
@@ -2957,6 +3019,10 @@ export const abi = [
|
|
|
2957
3019
|
name: '_minDepositBalance',
|
|
2958
3020
|
type: 'uint256',
|
|
2959
3021
|
},
|
|
3022
|
+
{
|
|
3023
|
+
name: '_missionControl',
|
|
3024
|
+
type: 'address',
|
|
3025
|
+
},
|
|
2960
3026
|
],
|
|
2961
3027
|
outputs: [
|
|
2962
3028
|
{
|
|
@@ -3101,35 +3167,61 @@ export const abi = [
|
|
|
3101
3167
|
{
|
|
3102
3168
|
stateMutability: 'nonpayable',
|
|
3103
3169
|
type: 'function',
|
|
3104
|
-
name: '
|
|
3170
|
+
name: 'setAssetLiqConfig',
|
|
3105
3171
|
inputs: [
|
|
3106
3172
|
{
|
|
3107
3173
|
name: '_asset',
|
|
3108
3174
|
type: 'address',
|
|
3109
3175
|
},
|
|
3110
3176
|
{
|
|
3111
|
-
name: '
|
|
3112
|
-
type: '
|
|
3177
|
+
name: '_shouldBurnAsPayment',
|
|
3178
|
+
type: 'bool',
|
|
3113
3179
|
},
|
|
3114
3180
|
{
|
|
3115
|
-
name: '
|
|
3116
|
-
type: '
|
|
3181
|
+
name: '_shouldTransferToEndaoment',
|
|
3182
|
+
type: 'bool',
|
|
3117
3183
|
},
|
|
3118
3184
|
{
|
|
3119
|
-
name: '
|
|
3120
|
-
type: '
|
|
3185
|
+
name: '_shouldSwapInStabPools',
|
|
3186
|
+
type: 'bool',
|
|
3121
3187
|
},
|
|
3122
3188
|
{
|
|
3123
|
-
name: '
|
|
3124
|
-
type: '
|
|
3189
|
+
name: '_shouldAuctionInstantly',
|
|
3190
|
+
type: 'bool',
|
|
3125
3191
|
},
|
|
3126
3192
|
{
|
|
3127
|
-
name: '
|
|
3193
|
+
name: '_specialStabPoolId',
|
|
3128
3194
|
type: 'uint256',
|
|
3129
3195
|
},
|
|
3130
3196
|
{
|
|
3131
|
-
name: '
|
|
3132
|
-
type: '
|
|
3197
|
+
name: '_customAuctionParams',
|
|
3198
|
+
type: 'tuple',
|
|
3199
|
+
components: [
|
|
3200
|
+
{
|
|
3201
|
+
name: 'hasParams',
|
|
3202
|
+
type: 'bool',
|
|
3203
|
+
},
|
|
3204
|
+
{
|
|
3205
|
+
name: 'startDiscount',
|
|
3206
|
+
type: 'uint256',
|
|
3207
|
+
},
|
|
3208
|
+
{
|
|
3209
|
+
name: 'maxDiscount',
|
|
3210
|
+
type: 'uint256',
|
|
3211
|
+
},
|
|
3212
|
+
{
|
|
3213
|
+
name: 'delay',
|
|
3214
|
+
type: 'uint256',
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
name: 'duration',
|
|
3218
|
+
type: 'uint256',
|
|
3219
|
+
},
|
|
3220
|
+
],
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
name: '_missionControl',
|
|
3224
|
+
type: 'address',
|
|
3133
3225
|
},
|
|
3134
3226
|
],
|
|
3135
3227
|
outputs: [
|
|
@@ -3142,147 +3234,132 @@ export const abi = [
|
|
|
3142
3234
|
{
|
|
3143
3235
|
stateMutability: 'nonpayable',
|
|
3144
3236
|
type: 'function',
|
|
3145
|
-
name: '
|
|
3237
|
+
name: 'setAssetDebtTerms',
|
|
3146
3238
|
inputs: [
|
|
3147
3239
|
{
|
|
3148
3240
|
name: '_asset',
|
|
3149
3241
|
type: 'address',
|
|
3150
3242
|
},
|
|
3151
3243
|
{
|
|
3152
|
-
name: '
|
|
3153
|
-
type: '
|
|
3244
|
+
name: '_ltv',
|
|
3245
|
+
type: 'uint256',
|
|
3154
3246
|
},
|
|
3155
|
-
],
|
|
3156
|
-
outputs: [
|
|
3157
3247
|
{
|
|
3158
|
-
name: '',
|
|
3248
|
+
name: '_redemptionThreshold',
|
|
3159
3249
|
type: 'uint256',
|
|
3160
3250
|
},
|
|
3161
|
-
],
|
|
3162
|
-
},
|
|
3163
|
-
{
|
|
3164
|
-
stateMutability: 'nonpayable',
|
|
3165
|
-
type: 'function',
|
|
3166
|
-
name: 'setCanDepositAsset',
|
|
3167
|
-
inputs: [
|
|
3168
3251
|
{
|
|
3169
|
-
name: '
|
|
3170
|
-
type: '
|
|
3252
|
+
name: '_liqThreshold',
|
|
3253
|
+
type: 'uint256',
|
|
3171
3254
|
},
|
|
3172
3255
|
{
|
|
3173
|
-
name: '
|
|
3174
|
-
type: '
|
|
3256
|
+
name: '_liqFee',
|
|
3257
|
+
type: 'uint256',
|
|
3258
|
+
},
|
|
3259
|
+
{
|
|
3260
|
+
name: '_borrowRate',
|
|
3261
|
+
type: 'uint256',
|
|
3262
|
+
},
|
|
3263
|
+
{
|
|
3264
|
+
name: '_daowry',
|
|
3265
|
+
type: 'uint256',
|
|
3175
3266
|
},
|
|
3176
3267
|
],
|
|
3177
3268
|
outputs: [
|
|
3178
3269
|
{
|
|
3179
3270
|
name: '',
|
|
3180
|
-
type: '
|
|
3271
|
+
type: 'uint256',
|
|
3181
3272
|
},
|
|
3182
3273
|
],
|
|
3183
3274
|
},
|
|
3184
3275
|
{
|
|
3185
3276
|
stateMutability: 'nonpayable',
|
|
3186
3277
|
type: 'function',
|
|
3187
|
-
name: '
|
|
3278
|
+
name: 'setAssetDebtTerms',
|
|
3188
3279
|
inputs: [
|
|
3189
3280
|
{
|
|
3190
3281
|
name: '_asset',
|
|
3191
3282
|
type: 'address',
|
|
3192
3283
|
},
|
|
3193
3284
|
{
|
|
3194
|
-
name: '
|
|
3195
|
-
type: '
|
|
3285
|
+
name: '_ltv',
|
|
3286
|
+
type: 'uint256',
|
|
3196
3287
|
},
|
|
3197
|
-
],
|
|
3198
|
-
outputs: [
|
|
3199
3288
|
{
|
|
3200
|
-
name: '',
|
|
3201
|
-
type: '
|
|
3289
|
+
name: '_redemptionThreshold',
|
|
3290
|
+
type: 'uint256',
|
|
3202
3291
|
},
|
|
3203
|
-
],
|
|
3204
|
-
},
|
|
3205
|
-
{
|
|
3206
|
-
stateMutability: 'nonpayable',
|
|
3207
|
-
type: 'function',
|
|
3208
|
-
name: 'setCanRedeemInStabPoolAsset',
|
|
3209
|
-
inputs: [
|
|
3210
3292
|
{
|
|
3211
|
-
name: '
|
|
3212
|
-
type: '
|
|
3293
|
+
name: '_liqThreshold',
|
|
3294
|
+
type: 'uint256',
|
|
3213
3295
|
},
|
|
3214
3296
|
{
|
|
3215
|
-
name: '
|
|
3216
|
-
type: '
|
|
3297
|
+
name: '_liqFee',
|
|
3298
|
+
type: 'uint256',
|
|
3217
3299
|
},
|
|
3218
|
-
],
|
|
3219
|
-
outputs: [
|
|
3220
3300
|
{
|
|
3221
|
-
name: '',
|
|
3222
|
-
type: '
|
|
3301
|
+
name: '_borrowRate',
|
|
3302
|
+
type: 'uint256',
|
|
3223
3303
|
},
|
|
3224
|
-
],
|
|
3225
|
-
},
|
|
3226
|
-
{
|
|
3227
|
-
stateMutability: 'nonpayable',
|
|
3228
|
-
type: 'function',
|
|
3229
|
-
name: 'setCanBuyInAuctionAsset',
|
|
3230
|
-
inputs: [
|
|
3231
3304
|
{
|
|
3232
|
-
name: '
|
|
3233
|
-
type: '
|
|
3305
|
+
name: '_daowry',
|
|
3306
|
+
type: 'uint256',
|
|
3234
3307
|
},
|
|
3235
3308
|
{
|
|
3236
|
-
name: '
|
|
3237
|
-
type: '
|
|
3309
|
+
name: '_missionControl',
|
|
3310
|
+
type: 'address',
|
|
3238
3311
|
},
|
|
3239
3312
|
],
|
|
3240
3313
|
outputs: [
|
|
3241
3314
|
{
|
|
3242
3315
|
name: '',
|
|
3243
|
-
type: '
|
|
3316
|
+
type: 'uint256',
|
|
3244
3317
|
},
|
|
3245
3318
|
],
|
|
3246
3319
|
},
|
|
3247
3320
|
{
|
|
3248
3321
|
stateMutability: 'nonpayable',
|
|
3249
3322
|
type: 'function',
|
|
3250
|
-
name: '
|
|
3323
|
+
name: 'setWhitelistForAsset',
|
|
3251
3324
|
inputs: [
|
|
3252
3325
|
{
|
|
3253
3326
|
name: '_asset',
|
|
3254
3327
|
type: 'address',
|
|
3255
3328
|
},
|
|
3256
3329
|
{
|
|
3257
|
-
name: '
|
|
3258
|
-
type: '
|
|
3330
|
+
name: '_whitelist',
|
|
3331
|
+
type: 'address',
|
|
3259
3332
|
},
|
|
3260
3333
|
],
|
|
3261
3334
|
outputs: [
|
|
3262
3335
|
{
|
|
3263
3336
|
name: '',
|
|
3264
|
-
type: '
|
|
3337
|
+
type: 'uint256',
|
|
3265
3338
|
},
|
|
3266
3339
|
],
|
|
3267
3340
|
},
|
|
3268
3341
|
{
|
|
3269
3342
|
stateMutability: 'nonpayable',
|
|
3270
3343
|
type: 'function',
|
|
3271
|
-
name: '
|
|
3344
|
+
name: 'setWhitelistForAsset',
|
|
3272
3345
|
inputs: [
|
|
3273
3346
|
{
|
|
3274
3347
|
name: '_asset',
|
|
3275
3348
|
type: 'address',
|
|
3276
3349
|
},
|
|
3277
3350
|
{
|
|
3278
|
-
name: '
|
|
3279
|
-
type: '
|
|
3351
|
+
name: '_whitelist',
|
|
3352
|
+
type: 'address',
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
name: '_missionControl',
|
|
3356
|
+
type: 'address',
|
|
3280
3357
|
},
|
|
3281
3358
|
],
|
|
3282
3359
|
outputs: [
|
|
3283
3360
|
{
|
|
3284
3361
|
name: '',
|
|
3285
|
-
type: '
|
|
3362
|
+
type: 'uint256',
|
|
3286
3363
|
},
|
|
3287
3364
|
],
|
|
3288
3365
|
},
|
|
@@ -3498,6 +3575,23 @@ export const abi = [
|
|
|
3498
3575
|
},
|
|
3499
3576
|
],
|
|
3500
3577
|
},
|
|
3578
|
+
{
|
|
3579
|
+
stateMutability: 'view',
|
|
3580
|
+
type: 'function',
|
|
3581
|
+
name: 'pendingMissionControl',
|
|
3582
|
+
inputs: [
|
|
3583
|
+
{
|
|
3584
|
+
name: 'arg0',
|
|
3585
|
+
type: 'uint256',
|
|
3586
|
+
},
|
|
3587
|
+
],
|
|
3588
|
+
outputs: [
|
|
3589
|
+
{
|
|
3590
|
+
name: '',
|
|
3591
|
+
type: 'address',
|
|
3592
|
+
},
|
|
3593
|
+
],
|
|
3594
|
+
},
|
|
3501
3595
|
{
|
|
3502
3596
|
stateMutability: 'nonpayable',
|
|
3503
3597
|
type: 'constructor',
|
|
@@ -3522,7 +3616,7 @@ export const abi = [
|
|
|
3522
3616
|
outputs: [],
|
|
3523
3617
|
},
|
|
3524
3618
|
];
|
|
3525
|
-
export const deployAddress = '
|
|
3619
|
+
export const deployAddress = '0xF3775e9A7880a74644e90A9B22556F8Cee4e0b5B';
|
|
3526
3620
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
3527
3621
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
3528
3622
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -3575,6 +3669,7 @@ export const call = {
|
|
|
3575
3669
|
expiration: (...args) => getRequest('expiration', args),
|
|
3576
3670
|
actionType: (...args) => getRequest('actionType', args),
|
|
3577
3671
|
pendingAssetConfig: (...args) => getRequest('pendingAssetConfig', args),
|
|
3672
|
+
pendingMissionControl: (...args) => getRequest('pendingMissionControl', args),
|
|
3578
3673
|
};
|
|
3579
3674
|
function getMutation(functionName) {
|
|
3580
3675
|
return {
|
|
@@ -3600,12 +3695,6 @@ export const mutation = {
|
|
|
3600
3695
|
setAssetLiqConfig: getMutation('setAssetLiqConfig'),
|
|
3601
3696
|
setAssetDebtTerms: getMutation('setAssetDebtTerms'),
|
|
3602
3697
|
setWhitelistForAsset: getMutation('setWhitelistForAsset'),
|
|
3603
|
-
setCanDepositAsset: getMutation('setCanDepositAsset'),
|
|
3604
|
-
setCanWithdrawAsset: getMutation('setCanWithdrawAsset'),
|
|
3605
|
-
setCanRedeemInStabPoolAsset: getMutation('setCanRedeemInStabPoolAsset'),
|
|
3606
|
-
setCanBuyInAuctionAsset: getMutation('setCanBuyInAuctionAsset'),
|
|
3607
|
-
setCanClaimInStabPoolAsset: getMutation('setCanClaimInStabPoolAsset'),
|
|
3608
|
-
setCanRedeemCollateralAsset: getMutation('setCanRedeemCollateralAsset'),
|
|
3609
3698
|
executePendingAction: getMutation('executePendingAction'),
|
|
3610
3699
|
cancelPendingAction: getMutation('cancelPendingAction'),
|
|
3611
3700
|
};
|
|
@@ -3638,6 +3727,7 @@ export function toSdk(publicClient, walletClient) {
|
|
|
3638
3727
|
expiration: (...args) => singleQuery(publicClient, call.expiration(...args)),
|
|
3639
3728
|
actionType: (...args) => singleQuery(publicClient, call.actionType(...args)),
|
|
3640
3729
|
pendingAssetConfig: (...args) => singleQuery(publicClient, call.pendingAssetConfig(...args)),
|
|
3730
|
+
pendingMissionControl: (...args) => singleQuery(publicClient, call.pendingMissionControl(...args)),
|
|
3641
3731
|
// Mutations
|
|
3642
3732
|
startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
|
|
3643
3733
|
confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
|
|
@@ -3653,12 +3743,6 @@ export function toSdk(publicClient, walletClient) {
|
|
|
3653
3743
|
setAssetLiqConfig: (...args) => mutate(walletClient, mutation.setAssetLiqConfig)(...args),
|
|
3654
3744
|
setAssetDebtTerms: (...args) => mutate(walletClient, mutation.setAssetDebtTerms)(...args),
|
|
3655
3745
|
setWhitelistForAsset: (...args) => mutate(walletClient, mutation.setWhitelistForAsset)(...args),
|
|
3656
|
-
setCanDepositAsset: (...args) => mutate(walletClient, mutation.setCanDepositAsset)(...args),
|
|
3657
|
-
setCanWithdrawAsset: (...args) => mutate(walletClient, mutation.setCanWithdrawAsset)(...args),
|
|
3658
|
-
setCanRedeemInStabPoolAsset: (...args) => mutate(walletClient, mutation.setCanRedeemInStabPoolAsset)(...args),
|
|
3659
|
-
setCanBuyInAuctionAsset: (...args) => mutate(walletClient, mutation.setCanBuyInAuctionAsset)(...args),
|
|
3660
|
-
setCanClaimInStabPoolAsset: (...args) => mutate(walletClient, mutation.setCanClaimInStabPoolAsset)(...args),
|
|
3661
|
-
setCanRedeemCollateralAsset: (...args) => mutate(walletClient, mutation.setCanRedeemCollateralAsset)(...args),
|
|
3662
3746
|
executePendingAction: (...args) => mutate(walletClient, mutation.executePendingAction)(...args),
|
|
3663
3747
|
cancelPendingAction: (...args) => mutate(walletClient, mutation.cancelPendingAction)(...args),
|
|
3664
3748
|
};
|