@morpho-org/morpho-sdk 5.7.0 → 5.9.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.
- package/README.md +4 -0
- package/lib/cjs/abis.d.ts +543 -0
- package/lib/cjs/abis.js +738 -0
- package/lib/cjs/actions/blue/borrow.d.ts +5 -2
- package/lib/cjs/actions/blue/borrow.js +1 -1
- package/lib/cjs/actions/blue/refinance.d.ts +7 -2
- package/lib/cjs/actions/blue/refinance.js +3 -1
- package/lib/cjs/actions/blue/supplyCollateralBorrow.d.ts +6 -2
- package/lib/cjs/actions/blue/supplyCollateralBorrow.js +2 -1
- package/lib/cjs/actions/blue/withdraw.d.ts +2 -1
- package/lib/cjs/actions/blue/withdraw.js +1 -1
- package/lib/cjs/blue/types.d.ts +3 -1
- package/lib/cjs/blue/utils.d.ts +3 -1
- package/lib/cjs/blue/utils.js +1 -0
- package/lib/cjs/bundler/actions.d.ts +2 -0
- package/lib/cjs/bundler/actions.js +2 -0
- package/lib/cjs/bundler/types.d.ts +10 -1
- package/lib/cjs/entities/blue/blue.d.ts +30 -5
- package/lib/cjs/entities/blue/blue.js +8 -2
- package/lib/cjs/entities/vaultV1/vaultV1.js +4 -12
- package/lib/cjs/entities/vaultV1ReallocationData.d.ts +18 -3
- package/lib/cjs/entities/vaultV1ReallocationData.js +11 -1
- package/lib/cjs/entities/vaultV2/vaultV2.js +6 -18
- package/lib/cjs/helpers/computeVaultV1Reallocations.d.ts +4 -1
- package/lib/cjs/helpers/computeVaultV1Reallocations.js +4 -1
- package/lib/cjs/helpers/validate.d.ts +2 -0
- package/lib/cjs/helpers/validate.js +2 -0
- package/lib/cjs/types/error.d.ts +34 -6
- package/lib/cjs/types/error.js +34 -6
- package/lib/cjs/types/sharedLiquidity.d.ts +26 -3
- package/lib/cjs/types.d.ts +3 -1
- package/lib/cjs/utils.d.ts +3 -1
- package/lib/cjs/utils.js +1 -0
- package/lib/esm/abis.d.ts +543 -0
- package/lib/esm/abis.js +737 -0
- package/lib/esm/actions/blue/borrow.d.ts +5 -2
- package/lib/esm/actions/blue/borrow.js +1 -1
- package/lib/esm/actions/blue/refinance.d.ts +7 -2
- package/lib/esm/actions/blue/refinance.js +3 -1
- package/lib/esm/actions/blue/supplyCollateralBorrow.d.ts +6 -2
- package/lib/esm/actions/blue/supplyCollateralBorrow.js +2 -1
- package/lib/esm/actions/blue/withdraw.d.ts +2 -1
- package/lib/esm/actions/blue/withdraw.js +1 -1
- package/lib/esm/blue/types.d.ts +3 -1
- package/lib/esm/blue/utils.d.ts +3 -1
- package/lib/esm/blue/utils.js +3 -1
- package/lib/esm/bundler/actions.d.ts +2 -0
- package/lib/esm/bundler/actions.js +2 -0
- package/lib/esm/bundler/types.d.ts +10 -1
- package/lib/esm/entities/blue/blue.d.ts +30 -5
- package/lib/esm/entities/blue/blue.js +8 -2
- package/lib/esm/entities/vaultV1/vaultV1.js +4 -12
- package/lib/esm/entities/vaultV1ReallocationData.d.ts +18 -3
- package/lib/esm/entities/vaultV1ReallocationData.js +13 -2
- package/lib/esm/entities/vaultV2/vaultV2.js +7 -19
- package/lib/esm/helpers/computeVaultV1Reallocations.d.ts +4 -1
- package/lib/esm/helpers/computeVaultV1Reallocations.js +4 -1
- package/lib/esm/helpers/validate.d.ts +2 -0
- package/lib/esm/helpers/validate.js +2 -0
- package/lib/esm/types/error.d.ts +34 -6
- package/lib/esm/types/error.js +34 -6
- package/lib/esm/types/sharedLiquidity.d.ts +26 -3
- package/lib/esm/types.d.ts +3 -1
- package/lib/esm/utils.d.ts +3 -1
- package/lib/esm/utils.js +3 -1
- package/package.json +6 -6
package/lib/esm/abis.d.ts
CHANGED
|
@@ -3140,3 +3140,546 @@ export declare const compoundV3MigrationAdapterAbi: readonly [{
|
|
|
3140
3140
|
readonly outputs: readonly [];
|
|
3141
3141
|
readonly stateMutability: "nonpayable";
|
|
3142
3142
|
}];
|
|
3143
|
+
/**
|
|
3144
|
+
* Pinned ABI JSON for the five BlueBundlesV1 entrypoints used by high-level Morpho Blue writes.
|
|
3145
|
+
*
|
|
3146
|
+
* Source: `morpho-org/bundles` commit `dceb05da1c730424e6b36caf445dff808a2d5007`,
|
|
3147
|
+
* `src/blue/interfaces/IBlueBundlesV1.sol`, with `Signature` pinned by that commit's
|
|
3148
|
+
* `morpho-blue` submodule at `1478e9cfe1b4d514f80682b3b60e4e12ff3ee45a` (`v` is `uint8`).
|
|
3149
|
+
*
|
|
3150
|
+
* @see https://github.com/morpho-org/bundles/blob/dceb05da1c730424e6b36caf445dff808a2d5007/src/blue/interfaces/IBlueBundlesV1.sol
|
|
3151
|
+
* @example
|
|
3152
|
+
* ```ts
|
|
3153
|
+
* import { blueBundlesV1Abi } from "@morpho-org/morpho-sdk/abis";
|
|
3154
|
+
*
|
|
3155
|
+
* console.log(blueBundlesV1Abi.length);
|
|
3156
|
+
* ```
|
|
3157
|
+
*/
|
|
3158
|
+
export declare const blueBundlesV1Abi: readonly [{
|
|
3159
|
+
readonly type: "function";
|
|
3160
|
+
readonly name: "blueBundlesV1SupplyCollateralAndBorrow";
|
|
3161
|
+
readonly stateMutability: "payable";
|
|
3162
|
+
readonly inputs: readonly [{
|
|
3163
|
+
readonly name: "marketParams";
|
|
3164
|
+
readonly type: "tuple";
|
|
3165
|
+
readonly components: readonly [{
|
|
3166
|
+
readonly name: "loanToken";
|
|
3167
|
+
readonly type: "address";
|
|
3168
|
+
}, {
|
|
3169
|
+
readonly name: "collateralToken";
|
|
3170
|
+
readonly type: "address";
|
|
3171
|
+
}, {
|
|
3172
|
+
readonly name: "oracle";
|
|
3173
|
+
readonly type: "address";
|
|
3174
|
+
}, {
|
|
3175
|
+
readonly name: "irm";
|
|
3176
|
+
readonly type: "address";
|
|
3177
|
+
}, {
|
|
3178
|
+
readonly name: "lltv";
|
|
3179
|
+
readonly type: "uint256";
|
|
3180
|
+
}];
|
|
3181
|
+
}, {
|
|
3182
|
+
readonly name: "collateralAssets";
|
|
3183
|
+
readonly type: "uint256";
|
|
3184
|
+
}, {
|
|
3185
|
+
readonly name: "borrowAssets";
|
|
3186
|
+
readonly type: "uint256";
|
|
3187
|
+
}, {
|
|
3188
|
+
readonly name: "maxLtv";
|
|
3189
|
+
readonly type: "uint256";
|
|
3190
|
+
}, {
|
|
3191
|
+
readonly name: "collateralPermit";
|
|
3192
|
+
readonly type: "tuple";
|
|
3193
|
+
readonly components: readonly [{
|
|
3194
|
+
readonly name: "kind";
|
|
3195
|
+
readonly type: "uint8";
|
|
3196
|
+
}, {
|
|
3197
|
+
readonly name: "data";
|
|
3198
|
+
readonly type: "bytes";
|
|
3199
|
+
}];
|
|
3200
|
+
}, {
|
|
3201
|
+
readonly name: "signedAuthorization";
|
|
3202
|
+
readonly type: "tuple";
|
|
3203
|
+
readonly components: readonly [{
|
|
3204
|
+
readonly name: "signature";
|
|
3205
|
+
readonly type: "tuple";
|
|
3206
|
+
readonly components: readonly [{
|
|
3207
|
+
readonly name: "v";
|
|
3208
|
+
readonly type: "uint8";
|
|
3209
|
+
}, {
|
|
3210
|
+
readonly name: "r";
|
|
3211
|
+
readonly type: "bytes32";
|
|
3212
|
+
}, {
|
|
3213
|
+
readonly name: "s";
|
|
3214
|
+
readonly type: "bytes32";
|
|
3215
|
+
}];
|
|
3216
|
+
}, {
|
|
3217
|
+
readonly name: "nonce";
|
|
3218
|
+
readonly type: "uint256";
|
|
3219
|
+
}, {
|
|
3220
|
+
readonly name: "deadline";
|
|
3221
|
+
readonly type: "uint256";
|
|
3222
|
+
}];
|
|
3223
|
+
}, {
|
|
3224
|
+
readonly name: "reallocations";
|
|
3225
|
+
readonly type: "tuple[]";
|
|
3226
|
+
readonly components: readonly [{
|
|
3227
|
+
readonly name: "vault";
|
|
3228
|
+
readonly type: "address";
|
|
3229
|
+
}, {
|
|
3230
|
+
readonly name: "adapter";
|
|
3231
|
+
readonly type: "address";
|
|
3232
|
+
}, {
|
|
3233
|
+
readonly name: "marketParams";
|
|
3234
|
+
readonly type: "tuple";
|
|
3235
|
+
readonly components: readonly [{
|
|
3236
|
+
readonly name: "loanToken";
|
|
3237
|
+
readonly type: "address";
|
|
3238
|
+
}, {
|
|
3239
|
+
readonly name: "collateralToken";
|
|
3240
|
+
readonly type: "address";
|
|
3241
|
+
}, {
|
|
3242
|
+
readonly name: "oracle";
|
|
3243
|
+
readonly type: "address";
|
|
3244
|
+
}, {
|
|
3245
|
+
readonly name: "irm";
|
|
3246
|
+
readonly type: "address";
|
|
3247
|
+
}, {
|
|
3248
|
+
readonly name: "lltv";
|
|
3249
|
+
readonly type: "uint256";
|
|
3250
|
+
}];
|
|
3251
|
+
}, {
|
|
3252
|
+
readonly name: "fromIdle";
|
|
3253
|
+
readonly type: "bool";
|
|
3254
|
+
}, {
|
|
3255
|
+
readonly name: "sourceAdapter";
|
|
3256
|
+
readonly type: "address";
|
|
3257
|
+
}, {
|
|
3258
|
+
readonly name: "sourceMarketParams";
|
|
3259
|
+
readonly type: "tuple";
|
|
3260
|
+
readonly components: readonly [{
|
|
3261
|
+
readonly name: "loanToken";
|
|
3262
|
+
readonly type: "address";
|
|
3263
|
+
}, {
|
|
3264
|
+
readonly name: "collateralToken";
|
|
3265
|
+
readonly type: "address";
|
|
3266
|
+
}, {
|
|
3267
|
+
readonly name: "oracle";
|
|
3268
|
+
readonly type: "address";
|
|
3269
|
+
}, {
|
|
3270
|
+
readonly name: "irm";
|
|
3271
|
+
readonly type: "address";
|
|
3272
|
+
}, {
|
|
3273
|
+
readonly name: "lltv";
|
|
3274
|
+
readonly type: "uint256";
|
|
3275
|
+
}];
|
|
3276
|
+
}, {
|
|
3277
|
+
readonly name: "assets";
|
|
3278
|
+
readonly type: "uint128";
|
|
3279
|
+
}, {
|
|
3280
|
+
readonly name: "penalty";
|
|
3281
|
+
readonly type: "uint64";
|
|
3282
|
+
}];
|
|
3283
|
+
}, {
|
|
3284
|
+
readonly name: "referralFeePct";
|
|
3285
|
+
readonly type: "uint256";
|
|
3286
|
+
}, {
|
|
3287
|
+
readonly name: "referralFeeRecipient";
|
|
3288
|
+
readonly type: "address";
|
|
3289
|
+
}, {
|
|
3290
|
+
readonly name: "deadline";
|
|
3291
|
+
readonly type: "uint256";
|
|
3292
|
+
}];
|
|
3293
|
+
readonly outputs: readonly [];
|
|
3294
|
+
}, {
|
|
3295
|
+
readonly type: "function";
|
|
3296
|
+
readonly name: "blueBundlesV1RepayAndWithdrawCollateral";
|
|
3297
|
+
readonly stateMutability: "payable";
|
|
3298
|
+
readonly inputs: readonly [{
|
|
3299
|
+
readonly name: "marketParams";
|
|
3300
|
+
readonly type: "tuple";
|
|
3301
|
+
readonly components: readonly [{
|
|
3302
|
+
readonly name: "loanToken";
|
|
3303
|
+
readonly type: "address";
|
|
3304
|
+
}, {
|
|
3305
|
+
readonly name: "collateralToken";
|
|
3306
|
+
readonly type: "address";
|
|
3307
|
+
}, {
|
|
3308
|
+
readonly name: "oracle";
|
|
3309
|
+
readonly type: "address";
|
|
3310
|
+
}, {
|
|
3311
|
+
readonly name: "irm";
|
|
3312
|
+
readonly type: "address";
|
|
3313
|
+
}, {
|
|
3314
|
+
readonly name: "lltv";
|
|
3315
|
+
readonly type: "uint256";
|
|
3316
|
+
}];
|
|
3317
|
+
}, {
|
|
3318
|
+
readonly name: "repayAssets";
|
|
3319
|
+
readonly type: "uint256";
|
|
3320
|
+
}, {
|
|
3321
|
+
readonly name: "repayShares";
|
|
3322
|
+
readonly type: "uint256";
|
|
3323
|
+
}, {
|
|
3324
|
+
readonly name: "maxRepayAssets";
|
|
3325
|
+
readonly type: "uint256";
|
|
3326
|
+
}, {
|
|
3327
|
+
readonly name: "collateralAssets";
|
|
3328
|
+
readonly type: "uint256";
|
|
3329
|
+
}, {
|
|
3330
|
+
readonly name: "maxLtv";
|
|
3331
|
+
readonly type: "uint256";
|
|
3332
|
+
}, {
|
|
3333
|
+
readonly name: "loanTokenPermit";
|
|
3334
|
+
readonly type: "tuple";
|
|
3335
|
+
readonly components: readonly [{
|
|
3336
|
+
readonly name: "kind";
|
|
3337
|
+
readonly type: "uint8";
|
|
3338
|
+
}, {
|
|
3339
|
+
readonly name: "data";
|
|
3340
|
+
readonly type: "bytes";
|
|
3341
|
+
}];
|
|
3342
|
+
}, {
|
|
3343
|
+
readonly name: "signedAuthorization";
|
|
3344
|
+
readonly type: "tuple";
|
|
3345
|
+
readonly components: readonly [{
|
|
3346
|
+
readonly name: "signature";
|
|
3347
|
+
readonly type: "tuple";
|
|
3348
|
+
readonly components: readonly [{
|
|
3349
|
+
readonly name: "v";
|
|
3350
|
+
readonly type: "uint8";
|
|
3351
|
+
}, {
|
|
3352
|
+
readonly name: "r";
|
|
3353
|
+
readonly type: "bytes32";
|
|
3354
|
+
}, {
|
|
3355
|
+
readonly name: "s";
|
|
3356
|
+
readonly type: "bytes32";
|
|
3357
|
+
}];
|
|
3358
|
+
}, {
|
|
3359
|
+
readonly name: "nonce";
|
|
3360
|
+
readonly type: "uint256";
|
|
3361
|
+
}, {
|
|
3362
|
+
readonly name: "deadline";
|
|
3363
|
+
readonly type: "uint256";
|
|
3364
|
+
}];
|
|
3365
|
+
}, {
|
|
3366
|
+
readonly name: "referralFeePct";
|
|
3367
|
+
readonly type: "uint256";
|
|
3368
|
+
}, {
|
|
3369
|
+
readonly name: "referralFeeRecipient";
|
|
3370
|
+
readonly type: "address";
|
|
3371
|
+
}, {
|
|
3372
|
+
readonly name: "deadline";
|
|
3373
|
+
readonly type: "uint256";
|
|
3374
|
+
}];
|
|
3375
|
+
readonly outputs: readonly [];
|
|
3376
|
+
}, {
|
|
3377
|
+
readonly type: "function";
|
|
3378
|
+
readonly name: "blueBundlesV1Supply";
|
|
3379
|
+
readonly stateMutability: "payable";
|
|
3380
|
+
readonly inputs: readonly [{
|
|
3381
|
+
readonly name: "marketParams";
|
|
3382
|
+
readonly type: "tuple";
|
|
3383
|
+
readonly components: readonly [{
|
|
3384
|
+
readonly name: "loanToken";
|
|
3385
|
+
readonly type: "address";
|
|
3386
|
+
}, {
|
|
3387
|
+
readonly name: "collateralToken";
|
|
3388
|
+
readonly type: "address";
|
|
3389
|
+
}, {
|
|
3390
|
+
readonly name: "oracle";
|
|
3391
|
+
readonly type: "address";
|
|
3392
|
+
}, {
|
|
3393
|
+
readonly name: "irm";
|
|
3394
|
+
readonly type: "address";
|
|
3395
|
+
}, {
|
|
3396
|
+
readonly name: "lltv";
|
|
3397
|
+
readonly type: "uint256";
|
|
3398
|
+
}];
|
|
3399
|
+
}, {
|
|
3400
|
+
readonly name: "assets";
|
|
3401
|
+
readonly type: "uint256";
|
|
3402
|
+
}, {
|
|
3403
|
+
readonly name: "loanTokenPermit";
|
|
3404
|
+
readonly type: "tuple";
|
|
3405
|
+
readonly components: readonly [{
|
|
3406
|
+
readonly name: "kind";
|
|
3407
|
+
readonly type: "uint8";
|
|
3408
|
+
}, {
|
|
3409
|
+
readonly name: "data";
|
|
3410
|
+
readonly type: "bytes";
|
|
3411
|
+
}];
|
|
3412
|
+
}, {
|
|
3413
|
+
readonly name: "referralFeePct";
|
|
3414
|
+
readonly type: "uint256";
|
|
3415
|
+
}, {
|
|
3416
|
+
readonly name: "referralFeeRecipient";
|
|
3417
|
+
readonly type: "address";
|
|
3418
|
+
}, {
|
|
3419
|
+
readonly name: "deadline";
|
|
3420
|
+
readonly type: "uint256";
|
|
3421
|
+
}];
|
|
3422
|
+
readonly outputs: readonly [];
|
|
3423
|
+
}, {
|
|
3424
|
+
readonly type: "function";
|
|
3425
|
+
readonly name: "blueBundlesV1Withdraw";
|
|
3426
|
+
readonly stateMutability: "nonpayable";
|
|
3427
|
+
readonly inputs: readonly [{
|
|
3428
|
+
readonly name: "marketParams";
|
|
3429
|
+
readonly type: "tuple";
|
|
3430
|
+
readonly components: readonly [{
|
|
3431
|
+
readonly name: "loanToken";
|
|
3432
|
+
readonly type: "address";
|
|
3433
|
+
}, {
|
|
3434
|
+
readonly name: "collateralToken";
|
|
3435
|
+
readonly type: "address";
|
|
3436
|
+
}, {
|
|
3437
|
+
readonly name: "oracle";
|
|
3438
|
+
readonly type: "address";
|
|
3439
|
+
}, {
|
|
3440
|
+
readonly name: "irm";
|
|
3441
|
+
readonly type: "address";
|
|
3442
|
+
}, {
|
|
3443
|
+
readonly name: "lltv";
|
|
3444
|
+
readonly type: "uint256";
|
|
3445
|
+
}];
|
|
3446
|
+
}, {
|
|
3447
|
+
readonly name: "withdrawAssets";
|
|
3448
|
+
readonly type: "uint256";
|
|
3449
|
+
}, {
|
|
3450
|
+
readonly name: "withdrawShares";
|
|
3451
|
+
readonly type: "uint256";
|
|
3452
|
+
}, {
|
|
3453
|
+
readonly name: "signedAuthorization";
|
|
3454
|
+
readonly type: "tuple";
|
|
3455
|
+
readonly components: readonly [{
|
|
3456
|
+
readonly name: "signature";
|
|
3457
|
+
readonly type: "tuple";
|
|
3458
|
+
readonly components: readonly [{
|
|
3459
|
+
readonly name: "v";
|
|
3460
|
+
readonly type: "uint8";
|
|
3461
|
+
}, {
|
|
3462
|
+
readonly name: "r";
|
|
3463
|
+
readonly type: "bytes32";
|
|
3464
|
+
}, {
|
|
3465
|
+
readonly name: "s";
|
|
3466
|
+
readonly type: "bytes32";
|
|
3467
|
+
}];
|
|
3468
|
+
}, {
|
|
3469
|
+
readonly name: "nonce";
|
|
3470
|
+
readonly type: "uint256";
|
|
3471
|
+
}, {
|
|
3472
|
+
readonly name: "deadline";
|
|
3473
|
+
readonly type: "uint256";
|
|
3474
|
+
}];
|
|
3475
|
+
}, {
|
|
3476
|
+
readonly name: "reallocations";
|
|
3477
|
+
readonly type: "tuple[]";
|
|
3478
|
+
readonly components: readonly [{
|
|
3479
|
+
readonly name: "vault";
|
|
3480
|
+
readonly type: "address";
|
|
3481
|
+
}, {
|
|
3482
|
+
readonly name: "adapter";
|
|
3483
|
+
readonly type: "address";
|
|
3484
|
+
}, {
|
|
3485
|
+
readonly name: "marketParams";
|
|
3486
|
+
readonly type: "tuple";
|
|
3487
|
+
readonly components: readonly [{
|
|
3488
|
+
readonly name: "loanToken";
|
|
3489
|
+
readonly type: "address";
|
|
3490
|
+
}, {
|
|
3491
|
+
readonly name: "collateralToken";
|
|
3492
|
+
readonly type: "address";
|
|
3493
|
+
}, {
|
|
3494
|
+
readonly name: "oracle";
|
|
3495
|
+
readonly type: "address";
|
|
3496
|
+
}, {
|
|
3497
|
+
readonly name: "irm";
|
|
3498
|
+
readonly type: "address";
|
|
3499
|
+
}, {
|
|
3500
|
+
readonly name: "lltv";
|
|
3501
|
+
readonly type: "uint256";
|
|
3502
|
+
}];
|
|
3503
|
+
}, {
|
|
3504
|
+
readonly name: "fromIdle";
|
|
3505
|
+
readonly type: "bool";
|
|
3506
|
+
}, {
|
|
3507
|
+
readonly name: "sourceAdapter";
|
|
3508
|
+
readonly type: "address";
|
|
3509
|
+
}, {
|
|
3510
|
+
readonly name: "sourceMarketParams";
|
|
3511
|
+
readonly type: "tuple";
|
|
3512
|
+
readonly components: readonly [{
|
|
3513
|
+
readonly name: "loanToken";
|
|
3514
|
+
readonly type: "address";
|
|
3515
|
+
}, {
|
|
3516
|
+
readonly name: "collateralToken";
|
|
3517
|
+
readonly type: "address";
|
|
3518
|
+
}, {
|
|
3519
|
+
readonly name: "oracle";
|
|
3520
|
+
readonly type: "address";
|
|
3521
|
+
}, {
|
|
3522
|
+
readonly name: "irm";
|
|
3523
|
+
readonly type: "address";
|
|
3524
|
+
}, {
|
|
3525
|
+
readonly name: "lltv";
|
|
3526
|
+
readonly type: "uint256";
|
|
3527
|
+
}];
|
|
3528
|
+
}, {
|
|
3529
|
+
readonly name: "assets";
|
|
3530
|
+
readonly type: "uint128";
|
|
3531
|
+
}, {
|
|
3532
|
+
readonly name: "penalty";
|
|
3533
|
+
readonly type: "uint64";
|
|
3534
|
+
}];
|
|
3535
|
+
}, {
|
|
3536
|
+
readonly name: "referralFeePct";
|
|
3537
|
+
readonly type: "uint256";
|
|
3538
|
+
}, {
|
|
3539
|
+
readonly name: "referralFeeRecipient";
|
|
3540
|
+
readonly type: "address";
|
|
3541
|
+
}, {
|
|
3542
|
+
readonly name: "deadline";
|
|
3543
|
+
readonly type: "uint256";
|
|
3544
|
+
}];
|
|
3545
|
+
readonly outputs: readonly [];
|
|
3546
|
+
}, {
|
|
3547
|
+
readonly type: "function";
|
|
3548
|
+
readonly name: "blueBundlesV1MigrateBorrowPosition";
|
|
3549
|
+
readonly stateMutability: "nonpayable";
|
|
3550
|
+
readonly inputs: readonly [{
|
|
3551
|
+
readonly name: "sourceMarketParams";
|
|
3552
|
+
readonly type: "tuple";
|
|
3553
|
+
readonly components: readonly [{
|
|
3554
|
+
readonly name: "loanToken";
|
|
3555
|
+
readonly type: "address";
|
|
3556
|
+
}, {
|
|
3557
|
+
readonly name: "collateralToken";
|
|
3558
|
+
readonly type: "address";
|
|
3559
|
+
}, {
|
|
3560
|
+
readonly name: "oracle";
|
|
3561
|
+
readonly type: "address";
|
|
3562
|
+
}, {
|
|
3563
|
+
readonly name: "irm";
|
|
3564
|
+
readonly type: "address";
|
|
3565
|
+
}, {
|
|
3566
|
+
readonly name: "lltv";
|
|
3567
|
+
readonly type: "uint256";
|
|
3568
|
+
}];
|
|
3569
|
+
}, {
|
|
3570
|
+
readonly name: "destMarketParams";
|
|
3571
|
+
readonly type: "tuple";
|
|
3572
|
+
readonly components: readonly [{
|
|
3573
|
+
readonly name: "loanToken";
|
|
3574
|
+
readonly type: "address";
|
|
3575
|
+
}, {
|
|
3576
|
+
readonly name: "collateralToken";
|
|
3577
|
+
readonly type: "address";
|
|
3578
|
+
}, {
|
|
3579
|
+
readonly name: "oracle";
|
|
3580
|
+
readonly type: "address";
|
|
3581
|
+
}, {
|
|
3582
|
+
readonly name: "irm";
|
|
3583
|
+
readonly type: "address";
|
|
3584
|
+
}, {
|
|
3585
|
+
readonly name: "lltv";
|
|
3586
|
+
readonly type: "uint256";
|
|
3587
|
+
}];
|
|
3588
|
+
}, {
|
|
3589
|
+
readonly name: "maxLtv";
|
|
3590
|
+
readonly type: "uint256";
|
|
3591
|
+
}, {
|
|
3592
|
+
readonly name: "signedAuthorization";
|
|
3593
|
+
readonly type: "tuple";
|
|
3594
|
+
readonly components: readonly [{
|
|
3595
|
+
readonly name: "signature";
|
|
3596
|
+
readonly type: "tuple";
|
|
3597
|
+
readonly components: readonly [{
|
|
3598
|
+
readonly name: "v";
|
|
3599
|
+
readonly type: "uint8";
|
|
3600
|
+
}, {
|
|
3601
|
+
readonly name: "r";
|
|
3602
|
+
readonly type: "bytes32";
|
|
3603
|
+
}, {
|
|
3604
|
+
readonly name: "s";
|
|
3605
|
+
readonly type: "bytes32";
|
|
3606
|
+
}];
|
|
3607
|
+
}, {
|
|
3608
|
+
readonly name: "nonce";
|
|
3609
|
+
readonly type: "uint256";
|
|
3610
|
+
}, {
|
|
3611
|
+
readonly name: "deadline";
|
|
3612
|
+
readonly type: "uint256";
|
|
3613
|
+
}];
|
|
3614
|
+
}, {
|
|
3615
|
+
readonly name: "reallocations";
|
|
3616
|
+
readonly type: "tuple[]";
|
|
3617
|
+
readonly components: readonly [{
|
|
3618
|
+
readonly name: "vault";
|
|
3619
|
+
readonly type: "address";
|
|
3620
|
+
}, {
|
|
3621
|
+
readonly name: "adapter";
|
|
3622
|
+
readonly type: "address";
|
|
3623
|
+
}, {
|
|
3624
|
+
readonly name: "marketParams";
|
|
3625
|
+
readonly type: "tuple";
|
|
3626
|
+
readonly components: readonly [{
|
|
3627
|
+
readonly name: "loanToken";
|
|
3628
|
+
readonly type: "address";
|
|
3629
|
+
}, {
|
|
3630
|
+
readonly name: "collateralToken";
|
|
3631
|
+
readonly type: "address";
|
|
3632
|
+
}, {
|
|
3633
|
+
readonly name: "oracle";
|
|
3634
|
+
readonly type: "address";
|
|
3635
|
+
}, {
|
|
3636
|
+
readonly name: "irm";
|
|
3637
|
+
readonly type: "address";
|
|
3638
|
+
}, {
|
|
3639
|
+
readonly name: "lltv";
|
|
3640
|
+
readonly type: "uint256";
|
|
3641
|
+
}];
|
|
3642
|
+
}, {
|
|
3643
|
+
readonly name: "fromIdle";
|
|
3644
|
+
readonly type: "bool";
|
|
3645
|
+
}, {
|
|
3646
|
+
readonly name: "sourceAdapter";
|
|
3647
|
+
readonly type: "address";
|
|
3648
|
+
}, {
|
|
3649
|
+
readonly name: "sourceMarketParams";
|
|
3650
|
+
readonly type: "tuple";
|
|
3651
|
+
readonly components: readonly [{
|
|
3652
|
+
readonly name: "loanToken";
|
|
3653
|
+
readonly type: "address";
|
|
3654
|
+
}, {
|
|
3655
|
+
readonly name: "collateralToken";
|
|
3656
|
+
readonly type: "address";
|
|
3657
|
+
}, {
|
|
3658
|
+
readonly name: "oracle";
|
|
3659
|
+
readonly type: "address";
|
|
3660
|
+
}, {
|
|
3661
|
+
readonly name: "irm";
|
|
3662
|
+
readonly type: "address";
|
|
3663
|
+
}, {
|
|
3664
|
+
readonly name: "lltv";
|
|
3665
|
+
readonly type: "uint256";
|
|
3666
|
+
}];
|
|
3667
|
+
}, {
|
|
3668
|
+
readonly name: "assets";
|
|
3669
|
+
readonly type: "uint128";
|
|
3670
|
+
}, {
|
|
3671
|
+
readonly name: "penalty";
|
|
3672
|
+
readonly type: "uint64";
|
|
3673
|
+
}];
|
|
3674
|
+
}, {
|
|
3675
|
+
readonly name: "referralFeePct";
|
|
3676
|
+
readonly type: "uint256";
|
|
3677
|
+
}, {
|
|
3678
|
+
readonly name: "referralFeeRecipient";
|
|
3679
|
+
readonly type: "address";
|
|
3680
|
+
}, {
|
|
3681
|
+
readonly name: "deadline";
|
|
3682
|
+
readonly type: "uint256";
|
|
3683
|
+
}];
|
|
3684
|
+
readonly outputs: readonly [];
|
|
3685
|
+
}];
|