@morpho-org/midnight-sdk 1.7.0 → 1.8.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 +61 -61
- package/lib/cjs/abis.d.ts +794 -0
- package/lib/cjs/abis.js +502 -1
- package/lib/cjs/api/version.generated.d.ts +1 -1
- package/lib/cjs/api/version.generated.js +2 -2
- package/lib/cjs/constants.d.ts +34 -0
- package/lib/cjs/constants.js +35 -1
- package/lib/cjs/errors.d.ts +107 -0
- package/lib/cjs/errors.js +139 -1
- package/lib/cjs/fetch/Ratifier.d.ts +4 -3
- package/lib/cjs/fetch/Ratifier.js +5 -4
- package/lib/cjs/index.d.ts +7 -0
- package/lib/cjs/index.js +16 -1
- package/lib/cjs/offers/Offer.d.ts +10 -0
- package/lib/cjs/offers/Offer.js +15 -1
- package/lib/cjs/offers/OfferUtils.d.ts +3 -0
- package/lib/cjs/offers/OfferUtils.js +3 -0
- package/lib/cjs/signatures/{EcrecoverRatifierUtils.d.ts → EcrecoverRatifier.d.ts} +118 -2
- package/lib/cjs/signatures/{EcrecoverRatifierUtils.js → EcrecoverRatifier.js} +146 -9
- package/lib/cjs/signatures/GroupUtils.d.ts +55 -2
- package/lib/cjs/signatures/GroupUtils.js +64 -5
- package/lib/cjs/signatures/Payload.d.ts +3 -3
- package/lib/cjs/signatures/PriceRatifierV1.d.ts +472 -0
- package/lib/cjs/signatures/PriceRatifierV1.js +521 -0
- package/lib/cjs/signatures/RateRatifierV1.d.ts +581 -0
- package/lib/cjs/signatures/RateRatifierV1.js +696 -0
- package/lib/{esm/signatures/RatifierUtils.d.ts → cjs/signatures/Ratifier.d.ts} +14 -12
- package/lib/cjs/signatures/{RatifierUtils.js → Ratifier.js} +29 -29
- package/lib/cjs/signatures/{SetterRatifierUtils.d.ts → SetterRatifier.d.ts} +50 -3
- package/lib/cjs/signatures/{SetterRatifierUtils.js → SetterRatifier.js} +65 -7
- package/lib/cjs/signatures/Tree.d.ts +94 -17
- package/lib/cjs/signatures/Tree.js +146 -111
- package/lib/cjs/signatures/TreeUtils.d.ts +191 -21
- package/lib/cjs/signatures/TreeUtils.js +320 -134
- package/lib/cjs/signatures/index.d.ts +7 -3
- package/lib/cjs/signatures/index.js +5 -3
- package/lib/cjs/signatures/ratifierRequests.d.ts +55 -0
- package/lib/cjs/signatures/ratifierRequests.js +2 -0
- package/lib/cjs/signatures/ratifierV1Internal.d.ts +57 -0
- package/lib/cjs/signatures/ratifierV1Internal.js +183 -0
- package/lib/cjs/signatures/standardRatifierInternal.d.ts +4 -0
- package/lib/cjs/signatures/standardRatifierInternal.js +12 -0
- package/lib/cjs/signatures/treeMathInternal.d.ts +4 -0
- package/lib/cjs/signatures/treeMathInternal.js +12 -0
- package/lib/cjs/signatures/treeTypes.d.ts +109 -0
- package/lib/cjs/signatures/treeTypes.js +2 -0
- package/lib/esm/abis.d.ts +794 -0
- package/lib/esm/abis.js +501 -0
- package/lib/esm/api/version.generated.d.ts +1 -1
- package/lib/esm/api/version.generated.js +2 -2
- package/lib/esm/constants.d.ts +34 -0
- package/lib/esm/constants.js +34 -0
- package/lib/esm/errors.d.ts +107 -0
- package/lib/esm/errors.js +132 -0
- package/lib/esm/fetch/Ratifier.d.ts +4 -3
- package/lib/esm/fetch/Ratifier.js +5 -4
- package/lib/esm/index.d.ts +7 -0
- package/lib/esm/index.js +5 -0
- package/lib/esm/offers/Offer.d.ts +10 -0
- package/lib/esm/offers/Offer.js +15 -1
- package/lib/esm/offers/OfferUtils.d.ts +3 -0
- package/lib/esm/offers/OfferUtils.js +3 -0
- package/lib/esm/signatures/{EcrecoverRatifierUtils.d.ts → EcrecoverRatifier.d.ts} +118 -2
- package/lib/esm/signatures/{EcrecoverRatifierUtils.js → EcrecoverRatifier.js} +146 -9
- package/lib/esm/signatures/GroupUtils.d.ts +55 -2
- package/lib/esm/signatures/GroupUtils.js +64 -5
- package/lib/esm/signatures/Payload.d.ts +3 -3
- package/lib/esm/signatures/PriceRatifierV1.d.ts +472 -0
- package/lib/esm/signatures/PriceRatifierV1.js +520 -0
- package/lib/esm/signatures/RateRatifierV1.d.ts +581 -0
- package/lib/esm/signatures/RateRatifierV1.js +695 -0
- package/lib/{cjs/signatures/RatifierUtils.d.ts → esm/signatures/Ratifier.d.ts} +14 -12
- package/lib/esm/signatures/{RatifierUtils.js → Ratifier.js} +31 -29
- package/lib/esm/signatures/{SetterRatifierUtils.d.ts → SetterRatifier.d.ts} +50 -3
- package/lib/esm/signatures/{SetterRatifierUtils.js → SetterRatifier.js} +65 -7
- package/lib/esm/signatures/Tree.d.ts +94 -17
- package/lib/esm/signatures/Tree.js +147 -112
- package/lib/esm/signatures/TreeUtils.d.ts +191 -21
- package/lib/esm/signatures/TreeUtils.js +318 -132
- package/lib/esm/signatures/index.d.ts +7 -3
- package/lib/esm/signatures/index.js +5 -3
- package/lib/esm/signatures/ratifierRequests.d.ts +55 -0
- package/lib/esm/signatures/ratifierRequests.js +1 -0
- package/lib/esm/signatures/ratifierV1Internal.d.ts +57 -0
- package/lib/esm/signatures/ratifierV1Internal.js +176 -0
- package/lib/esm/signatures/standardRatifierInternal.d.ts +4 -0
- package/lib/esm/signatures/standardRatifierInternal.js +9 -0
- package/lib/esm/signatures/treeMathInternal.d.ts +4 -0
- package/lib/esm/signatures/treeMathInternal.js +8 -0
- package/lib/esm/signatures/treeTypes.d.ts +109 -0
- package/lib/esm/signatures/treeTypes.js +1 -0
- package/package.json +4 -4
package/lib/cjs/abis.d.ts
CHANGED
|
@@ -3357,3 +3357,797 @@ export declare const setterRatifierAbi: readonly [{
|
|
|
3357
3357
|
readonly name: "Unauthorized";
|
|
3358
3358
|
readonly inputs: readonly [];
|
|
3359
3359
|
}];
|
|
3360
|
+
/**
|
|
3361
|
+
* Pinned ABI JSON for the PriceRatifierV1.
|
|
3362
|
+
*
|
|
3363
|
+
* Source: `morpho-org/midnight` commit `11f3d984b53286fd9137eb89e5d1385e23fe1b30`,
|
|
3364
|
+
* `src/ratifiers/interfaces/IPriceRatifierV1.sol`, Forge artifact `out/IPriceRatifierV1.sol/IPriceRatifierV1.json`.
|
|
3365
|
+
*
|
|
3366
|
+
* @example
|
|
3367
|
+
* ```ts
|
|
3368
|
+
* import { priceRatifierV1Abi } from "@morpho-org/midnight-sdk";
|
|
3369
|
+
*
|
|
3370
|
+
* console.log(priceRatifierV1Abi.length);
|
|
3371
|
+
* ```
|
|
3372
|
+
*/
|
|
3373
|
+
export declare const priceRatifierV1Abi: readonly [{
|
|
3374
|
+
readonly type: "function";
|
|
3375
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
3376
|
+
readonly inputs: readonly [];
|
|
3377
|
+
readonly outputs: readonly [{
|
|
3378
|
+
readonly name: "";
|
|
3379
|
+
readonly type: "bytes32";
|
|
3380
|
+
readonly internalType: "bytes32";
|
|
3381
|
+
}];
|
|
3382
|
+
readonly stateMutability: "view";
|
|
3383
|
+
}, {
|
|
3384
|
+
readonly type: "function";
|
|
3385
|
+
readonly name: "MIDNIGHT";
|
|
3386
|
+
readonly inputs: readonly [];
|
|
3387
|
+
readonly outputs: readonly [{
|
|
3388
|
+
readonly name: "";
|
|
3389
|
+
readonly type: "address";
|
|
3390
|
+
readonly internalType: "address";
|
|
3391
|
+
}];
|
|
3392
|
+
readonly stateMutability: "view";
|
|
3393
|
+
}, {
|
|
3394
|
+
readonly type: "function";
|
|
3395
|
+
readonly name: "isRatified";
|
|
3396
|
+
readonly inputs: readonly [{
|
|
3397
|
+
readonly name: "offer";
|
|
3398
|
+
readonly type: "tuple";
|
|
3399
|
+
readonly internalType: "struct Offer";
|
|
3400
|
+
readonly components: readonly [{
|
|
3401
|
+
readonly name: "market";
|
|
3402
|
+
readonly type: "tuple";
|
|
3403
|
+
readonly internalType: "struct Market";
|
|
3404
|
+
readonly components: readonly [{
|
|
3405
|
+
readonly name: "chainId";
|
|
3406
|
+
readonly type: "uint256";
|
|
3407
|
+
readonly internalType: "uint256";
|
|
3408
|
+
}, {
|
|
3409
|
+
readonly name: "midnight";
|
|
3410
|
+
readonly type: "address";
|
|
3411
|
+
readonly internalType: "address";
|
|
3412
|
+
}, {
|
|
3413
|
+
readonly name: "loanToken";
|
|
3414
|
+
readonly type: "address";
|
|
3415
|
+
readonly internalType: "address";
|
|
3416
|
+
}, {
|
|
3417
|
+
readonly name: "collateralParams";
|
|
3418
|
+
readonly type: "tuple[]";
|
|
3419
|
+
readonly internalType: "struct CollateralParams[]";
|
|
3420
|
+
readonly components: readonly [{
|
|
3421
|
+
readonly name: "token";
|
|
3422
|
+
readonly type: "address";
|
|
3423
|
+
readonly internalType: "address";
|
|
3424
|
+
}, {
|
|
3425
|
+
readonly name: "lltv";
|
|
3426
|
+
readonly type: "uint256";
|
|
3427
|
+
readonly internalType: "uint256";
|
|
3428
|
+
}, {
|
|
3429
|
+
readonly name: "liquidationCursor";
|
|
3430
|
+
readonly type: "uint256";
|
|
3431
|
+
readonly internalType: "uint256";
|
|
3432
|
+
}, {
|
|
3433
|
+
readonly name: "oracle";
|
|
3434
|
+
readonly type: "address";
|
|
3435
|
+
readonly internalType: "address";
|
|
3436
|
+
}];
|
|
3437
|
+
}, {
|
|
3438
|
+
readonly name: "maturity";
|
|
3439
|
+
readonly type: "uint256";
|
|
3440
|
+
readonly internalType: "uint256";
|
|
3441
|
+
}, {
|
|
3442
|
+
readonly name: "rcfThreshold";
|
|
3443
|
+
readonly type: "uint256";
|
|
3444
|
+
readonly internalType: "uint256";
|
|
3445
|
+
}, {
|
|
3446
|
+
readonly name: "enterGate";
|
|
3447
|
+
readonly type: "address";
|
|
3448
|
+
readonly internalType: "address";
|
|
3449
|
+
}, {
|
|
3450
|
+
readonly name: "liquidatorGate";
|
|
3451
|
+
readonly type: "address";
|
|
3452
|
+
readonly internalType: "address";
|
|
3453
|
+
}];
|
|
3454
|
+
}, {
|
|
3455
|
+
readonly name: "buy";
|
|
3456
|
+
readonly type: "bool";
|
|
3457
|
+
readonly internalType: "bool";
|
|
3458
|
+
}, {
|
|
3459
|
+
readonly name: "maker";
|
|
3460
|
+
readonly type: "address";
|
|
3461
|
+
readonly internalType: "address";
|
|
3462
|
+
}, {
|
|
3463
|
+
readonly name: "start";
|
|
3464
|
+
readonly type: "uint256";
|
|
3465
|
+
readonly internalType: "uint256";
|
|
3466
|
+
}, {
|
|
3467
|
+
readonly name: "expiry";
|
|
3468
|
+
readonly type: "uint256";
|
|
3469
|
+
readonly internalType: "uint256";
|
|
3470
|
+
}, {
|
|
3471
|
+
readonly name: "tick";
|
|
3472
|
+
readonly type: "uint256";
|
|
3473
|
+
readonly internalType: "uint256";
|
|
3474
|
+
}, {
|
|
3475
|
+
readonly name: "group";
|
|
3476
|
+
readonly type: "bytes32";
|
|
3477
|
+
readonly internalType: "bytes32";
|
|
3478
|
+
}, {
|
|
3479
|
+
readonly name: "callback";
|
|
3480
|
+
readonly type: "address";
|
|
3481
|
+
readonly internalType: "address";
|
|
3482
|
+
}, {
|
|
3483
|
+
readonly name: "callbackData";
|
|
3484
|
+
readonly type: "bytes";
|
|
3485
|
+
readonly internalType: "bytes";
|
|
3486
|
+
}, {
|
|
3487
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
3488
|
+
readonly type: "address";
|
|
3489
|
+
readonly internalType: "address";
|
|
3490
|
+
}, {
|
|
3491
|
+
readonly name: "ratifier";
|
|
3492
|
+
readonly type: "address";
|
|
3493
|
+
readonly internalType: "address";
|
|
3494
|
+
}, {
|
|
3495
|
+
readonly name: "reduceOnly";
|
|
3496
|
+
readonly type: "bool";
|
|
3497
|
+
readonly internalType: "bool";
|
|
3498
|
+
}, {
|
|
3499
|
+
readonly name: "maxUnits";
|
|
3500
|
+
readonly type: "uint128";
|
|
3501
|
+
readonly internalType: "uint128";
|
|
3502
|
+
}, {
|
|
3503
|
+
readonly name: "maxAssets";
|
|
3504
|
+
readonly type: "uint128";
|
|
3505
|
+
readonly internalType: "uint128";
|
|
3506
|
+
}, {
|
|
3507
|
+
readonly name: "continuousFeeCap";
|
|
3508
|
+
readonly type: "uint256";
|
|
3509
|
+
readonly internalType: "uint256";
|
|
3510
|
+
}];
|
|
3511
|
+
}, {
|
|
3512
|
+
readonly name: "ratifierData";
|
|
3513
|
+
readonly type: "bytes";
|
|
3514
|
+
readonly internalType: "bytes";
|
|
3515
|
+
}, {
|
|
3516
|
+
readonly name: "taker";
|
|
3517
|
+
readonly type: "address";
|
|
3518
|
+
readonly internalType: "address";
|
|
3519
|
+
}];
|
|
3520
|
+
readonly outputs: readonly [{
|
|
3521
|
+
readonly name: "";
|
|
3522
|
+
readonly type: "bytes32";
|
|
3523
|
+
readonly internalType: "bytes32";
|
|
3524
|
+
}];
|
|
3525
|
+
readonly stateMutability: "view";
|
|
3526
|
+
}, {
|
|
3527
|
+
readonly type: "function";
|
|
3528
|
+
readonly name: "isRootRatified";
|
|
3529
|
+
readonly inputs: readonly [{
|
|
3530
|
+
readonly name: "maker";
|
|
3531
|
+
readonly type: "address";
|
|
3532
|
+
readonly internalType: "address";
|
|
3533
|
+
}, {
|
|
3534
|
+
readonly name: "root";
|
|
3535
|
+
readonly type: "bytes32";
|
|
3536
|
+
readonly internalType: "bytes32";
|
|
3537
|
+
}];
|
|
3538
|
+
readonly outputs: readonly [{
|
|
3539
|
+
readonly name: "";
|
|
3540
|
+
readonly type: "bool";
|
|
3541
|
+
readonly internalType: "bool";
|
|
3542
|
+
}];
|
|
3543
|
+
readonly stateMutability: "view";
|
|
3544
|
+
}, {
|
|
3545
|
+
readonly type: "function";
|
|
3546
|
+
readonly name: "ratification";
|
|
3547
|
+
readonly inputs: readonly [{
|
|
3548
|
+
readonly name: "maker";
|
|
3549
|
+
readonly type: "address";
|
|
3550
|
+
readonly internalType: "address";
|
|
3551
|
+
}, {
|
|
3552
|
+
readonly name: "root";
|
|
3553
|
+
readonly type: "bytes32";
|
|
3554
|
+
readonly internalType: "bytes32";
|
|
3555
|
+
}];
|
|
3556
|
+
readonly outputs: readonly [{
|
|
3557
|
+
readonly name: "isRootRatified";
|
|
3558
|
+
readonly type: "bool";
|
|
3559
|
+
readonly internalType: "bool";
|
|
3560
|
+
}, {
|
|
3561
|
+
readonly name: "rootNonce";
|
|
3562
|
+
readonly type: "uint128";
|
|
3563
|
+
readonly internalType: "uint128";
|
|
3564
|
+
}];
|
|
3565
|
+
readonly stateMutability: "view";
|
|
3566
|
+
}, {
|
|
3567
|
+
readonly type: "function";
|
|
3568
|
+
readonly name: "rootNonce";
|
|
3569
|
+
readonly inputs: readonly [{
|
|
3570
|
+
readonly name: "maker";
|
|
3571
|
+
readonly type: "address";
|
|
3572
|
+
readonly internalType: "address";
|
|
3573
|
+
}, {
|
|
3574
|
+
readonly name: "root";
|
|
3575
|
+
readonly type: "bytes32";
|
|
3576
|
+
readonly internalType: "bytes32";
|
|
3577
|
+
}];
|
|
3578
|
+
readonly outputs: readonly [{
|
|
3579
|
+
readonly name: "";
|
|
3580
|
+
readonly type: "uint128";
|
|
3581
|
+
readonly internalType: "uint128";
|
|
3582
|
+
}];
|
|
3583
|
+
readonly stateMutability: "view";
|
|
3584
|
+
}, {
|
|
3585
|
+
readonly type: "function";
|
|
3586
|
+
readonly name: "setIsRootRatified";
|
|
3587
|
+
readonly inputs: readonly [{
|
|
3588
|
+
readonly name: "maker";
|
|
3589
|
+
readonly type: "address";
|
|
3590
|
+
readonly internalType: "address";
|
|
3591
|
+
}, {
|
|
3592
|
+
readonly name: "root";
|
|
3593
|
+
readonly type: "bytes32";
|
|
3594
|
+
readonly internalType: "bytes32";
|
|
3595
|
+
}, {
|
|
3596
|
+
readonly name: "newIsRootRatified";
|
|
3597
|
+
readonly type: "bool";
|
|
3598
|
+
readonly internalType: "bool";
|
|
3599
|
+
}];
|
|
3600
|
+
readonly outputs: readonly [{
|
|
3601
|
+
readonly name: "";
|
|
3602
|
+
readonly type: "bytes32";
|
|
3603
|
+
readonly internalType: "bytes32";
|
|
3604
|
+
}];
|
|
3605
|
+
readonly stateMutability: "nonpayable";
|
|
3606
|
+
}, {
|
|
3607
|
+
readonly type: "function";
|
|
3608
|
+
readonly name: "setIsRootRatifiedWithSig";
|
|
3609
|
+
readonly inputs: readonly [{
|
|
3610
|
+
readonly name: "maker";
|
|
3611
|
+
readonly type: "address";
|
|
3612
|
+
readonly internalType: "address";
|
|
3613
|
+
}, {
|
|
3614
|
+
readonly name: "root";
|
|
3615
|
+
readonly type: "bytes32";
|
|
3616
|
+
readonly internalType: "bytes32";
|
|
3617
|
+
}, {
|
|
3618
|
+
readonly name: "height";
|
|
3619
|
+
readonly type: "uint256";
|
|
3620
|
+
readonly internalType: "uint256";
|
|
3621
|
+
}, {
|
|
3622
|
+
readonly name: "newIsRootRatified";
|
|
3623
|
+
readonly type: "bool";
|
|
3624
|
+
readonly internalType: "bool";
|
|
3625
|
+
}, {
|
|
3626
|
+
readonly name: "nonce";
|
|
3627
|
+
readonly type: "uint128";
|
|
3628
|
+
readonly internalType: "uint128";
|
|
3629
|
+
}, {
|
|
3630
|
+
readonly name: "deadline";
|
|
3631
|
+
readonly type: "uint256";
|
|
3632
|
+
readonly internalType: "uint256";
|
|
3633
|
+
}, {
|
|
3634
|
+
readonly name: "v";
|
|
3635
|
+
readonly type: "uint8";
|
|
3636
|
+
readonly internalType: "uint8";
|
|
3637
|
+
}, {
|
|
3638
|
+
readonly name: "r";
|
|
3639
|
+
readonly type: "bytes32";
|
|
3640
|
+
readonly internalType: "bytes32";
|
|
3641
|
+
}, {
|
|
3642
|
+
readonly name: "s";
|
|
3643
|
+
readonly type: "bytes32";
|
|
3644
|
+
readonly internalType: "bytes32";
|
|
3645
|
+
}];
|
|
3646
|
+
readonly outputs: readonly [{
|
|
3647
|
+
readonly name: "";
|
|
3648
|
+
readonly type: "bytes32";
|
|
3649
|
+
readonly internalType: "bytes32";
|
|
3650
|
+
}];
|
|
3651
|
+
readonly stateMutability: "nonpayable";
|
|
3652
|
+
}, {
|
|
3653
|
+
readonly type: "event";
|
|
3654
|
+
readonly name: "SetIsRootRatified";
|
|
3655
|
+
readonly inputs: readonly [{
|
|
3656
|
+
readonly name: "caller";
|
|
3657
|
+
readonly type: "address";
|
|
3658
|
+
readonly indexed: true;
|
|
3659
|
+
readonly internalType: "address";
|
|
3660
|
+
}, {
|
|
3661
|
+
readonly name: "maker";
|
|
3662
|
+
readonly type: "address";
|
|
3663
|
+
readonly indexed: true;
|
|
3664
|
+
readonly internalType: "address";
|
|
3665
|
+
}, {
|
|
3666
|
+
readonly name: "root";
|
|
3667
|
+
readonly type: "bytes32";
|
|
3668
|
+
readonly indexed: true;
|
|
3669
|
+
readonly internalType: "bytes32";
|
|
3670
|
+
}, {
|
|
3671
|
+
readonly name: "newIsRootRatified";
|
|
3672
|
+
readonly type: "bool";
|
|
3673
|
+
readonly indexed: false;
|
|
3674
|
+
readonly internalType: "bool";
|
|
3675
|
+
}];
|
|
3676
|
+
readonly anonymous: false;
|
|
3677
|
+
}, {
|
|
3678
|
+
readonly type: "event";
|
|
3679
|
+
readonly name: "SetIsRootRatifiedWithSig";
|
|
3680
|
+
readonly inputs: readonly [{
|
|
3681
|
+
readonly name: "caller";
|
|
3682
|
+
readonly type: "address";
|
|
3683
|
+
readonly indexed: false;
|
|
3684
|
+
readonly internalType: "address";
|
|
3685
|
+
}, {
|
|
3686
|
+
readonly name: "signer";
|
|
3687
|
+
readonly type: "address";
|
|
3688
|
+
readonly indexed: true;
|
|
3689
|
+
readonly internalType: "address";
|
|
3690
|
+
}, {
|
|
3691
|
+
readonly name: "maker";
|
|
3692
|
+
readonly type: "address";
|
|
3693
|
+
readonly indexed: true;
|
|
3694
|
+
readonly internalType: "address";
|
|
3695
|
+
}, {
|
|
3696
|
+
readonly name: "root";
|
|
3697
|
+
readonly type: "bytes32";
|
|
3698
|
+
readonly indexed: true;
|
|
3699
|
+
readonly internalType: "bytes32";
|
|
3700
|
+
}, {
|
|
3701
|
+
readonly name: "height";
|
|
3702
|
+
readonly type: "uint256";
|
|
3703
|
+
readonly indexed: false;
|
|
3704
|
+
readonly internalType: "uint256";
|
|
3705
|
+
}, {
|
|
3706
|
+
readonly name: "newIsRootRatified";
|
|
3707
|
+
readonly type: "bool";
|
|
3708
|
+
readonly indexed: false;
|
|
3709
|
+
readonly internalType: "bool";
|
|
3710
|
+
}, {
|
|
3711
|
+
readonly name: "signatureNonce";
|
|
3712
|
+
readonly type: "uint128";
|
|
3713
|
+
readonly indexed: false;
|
|
3714
|
+
readonly internalType: "uint128";
|
|
3715
|
+
}, {
|
|
3716
|
+
readonly name: "previousNonce";
|
|
3717
|
+
readonly type: "uint128";
|
|
3718
|
+
readonly indexed: false;
|
|
3719
|
+
readonly internalType: "uint128";
|
|
3720
|
+
}];
|
|
3721
|
+
readonly anonymous: false;
|
|
3722
|
+
}, {
|
|
3723
|
+
readonly type: "error";
|
|
3724
|
+
readonly name: "DeadlineExpired";
|
|
3725
|
+
readonly inputs: readonly [];
|
|
3726
|
+
}, {
|
|
3727
|
+
readonly type: "error";
|
|
3728
|
+
readonly name: "InvalidNonce";
|
|
3729
|
+
readonly inputs: readonly [];
|
|
3730
|
+
}, {
|
|
3731
|
+
readonly type: "error";
|
|
3732
|
+
readonly name: "InvalidProof";
|
|
3733
|
+
readonly inputs: readonly [];
|
|
3734
|
+
}, {
|
|
3735
|
+
readonly type: "error";
|
|
3736
|
+
readonly name: "InvalidSignature";
|
|
3737
|
+
readonly inputs: readonly [];
|
|
3738
|
+
}, {
|
|
3739
|
+
readonly type: "error";
|
|
3740
|
+
readonly name: "NotRatified";
|
|
3741
|
+
readonly inputs: readonly [];
|
|
3742
|
+
}, {
|
|
3743
|
+
readonly type: "error";
|
|
3744
|
+
readonly name: "RatifiedStatusChanged";
|
|
3745
|
+
readonly inputs: readonly [];
|
|
3746
|
+
}, {
|
|
3747
|
+
readonly type: "error";
|
|
3748
|
+
readonly name: "Unauthorized";
|
|
3749
|
+
readonly inputs: readonly [];
|
|
3750
|
+
}, {
|
|
3751
|
+
readonly type: "error";
|
|
3752
|
+
readonly name: "UnauthorizedTaker";
|
|
3753
|
+
readonly inputs: readonly [];
|
|
3754
|
+
}];
|
|
3755
|
+
/**
|
|
3756
|
+
* Pinned ABI JSON for the RateRatifierV1.
|
|
3757
|
+
*
|
|
3758
|
+
* Source: `morpho-org/midnight` commit `11f3d984b53286fd9137eb89e5d1385e23fe1b30`,
|
|
3759
|
+
* `src/ratifiers/interfaces/IRateRatifierV1.sol`, Forge artifact `out/IRateRatifierV1.sol/IRateRatifierV1.json`.
|
|
3760
|
+
*
|
|
3761
|
+
* @example
|
|
3762
|
+
* ```ts
|
|
3763
|
+
* import { rateRatifierV1Abi } from "@morpho-org/midnight-sdk";
|
|
3764
|
+
*
|
|
3765
|
+
* console.log(rateRatifierV1Abi.length);
|
|
3766
|
+
* ```
|
|
3767
|
+
*/
|
|
3768
|
+
export declare const rateRatifierV1Abi: readonly [{
|
|
3769
|
+
readonly type: "function";
|
|
3770
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
3771
|
+
readonly inputs: readonly [];
|
|
3772
|
+
readonly outputs: readonly [{
|
|
3773
|
+
readonly name: "";
|
|
3774
|
+
readonly type: "bytes32";
|
|
3775
|
+
readonly internalType: "bytes32";
|
|
3776
|
+
}];
|
|
3777
|
+
readonly stateMutability: "view";
|
|
3778
|
+
}, {
|
|
3779
|
+
readonly type: "function";
|
|
3780
|
+
readonly name: "MIDNIGHT";
|
|
3781
|
+
readonly inputs: readonly [];
|
|
3782
|
+
readonly outputs: readonly [{
|
|
3783
|
+
readonly name: "";
|
|
3784
|
+
readonly type: "address";
|
|
3785
|
+
readonly internalType: "address";
|
|
3786
|
+
}];
|
|
3787
|
+
readonly stateMutability: "view";
|
|
3788
|
+
}, {
|
|
3789
|
+
readonly type: "function";
|
|
3790
|
+
readonly name: "isRatified";
|
|
3791
|
+
readonly inputs: readonly [{
|
|
3792
|
+
readonly name: "offer";
|
|
3793
|
+
readonly type: "tuple";
|
|
3794
|
+
readonly internalType: "struct Offer";
|
|
3795
|
+
readonly components: readonly [{
|
|
3796
|
+
readonly name: "market";
|
|
3797
|
+
readonly type: "tuple";
|
|
3798
|
+
readonly internalType: "struct Market";
|
|
3799
|
+
readonly components: readonly [{
|
|
3800
|
+
readonly name: "chainId";
|
|
3801
|
+
readonly type: "uint256";
|
|
3802
|
+
readonly internalType: "uint256";
|
|
3803
|
+
}, {
|
|
3804
|
+
readonly name: "midnight";
|
|
3805
|
+
readonly type: "address";
|
|
3806
|
+
readonly internalType: "address";
|
|
3807
|
+
}, {
|
|
3808
|
+
readonly name: "loanToken";
|
|
3809
|
+
readonly type: "address";
|
|
3810
|
+
readonly internalType: "address";
|
|
3811
|
+
}, {
|
|
3812
|
+
readonly name: "collateralParams";
|
|
3813
|
+
readonly type: "tuple[]";
|
|
3814
|
+
readonly internalType: "struct CollateralParams[]";
|
|
3815
|
+
readonly components: readonly [{
|
|
3816
|
+
readonly name: "token";
|
|
3817
|
+
readonly type: "address";
|
|
3818
|
+
readonly internalType: "address";
|
|
3819
|
+
}, {
|
|
3820
|
+
readonly name: "lltv";
|
|
3821
|
+
readonly type: "uint256";
|
|
3822
|
+
readonly internalType: "uint256";
|
|
3823
|
+
}, {
|
|
3824
|
+
readonly name: "liquidationCursor";
|
|
3825
|
+
readonly type: "uint256";
|
|
3826
|
+
readonly internalType: "uint256";
|
|
3827
|
+
}, {
|
|
3828
|
+
readonly name: "oracle";
|
|
3829
|
+
readonly type: "address";
|
|
3830
|
+
readonly internalType: "address";
|
|
3831
|
+
}];
|
|
3832
|
+
}, {
|
|
3833
|
+
readonly name: "maturity";
|
|
3834
|
+
readonly type: "uint256";
|
|
3835
|
+
readonly internalType: "uint256";
|
|
3836
|
+
}, {
|
|
3837
|
+
readonly name: "rcfThreshold";
|
|
3838
|
+
readonly type: "uint256";
|
|
3839
|
+
readonly internalType: "uint256";
|
|
3840
|
+
}, {
|
|
3841
|
+
readonly name: "enterGate";
|
|
3842
|
+
readonly type: "address";
|
|
3843
|
+
readonly internalType: "address";
|
|
3844
|
+
}, {
|
|
3845
|
+
readonly name: "liquidatorGate";
|
|
3846
|
+
readonly type: "address";
|
|
3847
|
+
readonly internalType: "address";
|
|
3848
|
+
}];
|
|
3849
|
+
}, {
|
|
3850
|
+
readonly name: "buy";
|
|
3851
|
+
readonly type: "bool";
|
|
3852
|
+
readonly internalType: "bool";
|
|
3853
|
+
}, {
|
|
3854
|
+
readonly name: "maker";
|
|
3855
|
+
readonly type: "address";
|
|
3856
|
+
readonly internalType: "address";
|
|
3857
|
+
}, {
|
|
3858
|
+
readonly name: "start";
|
|
3859
|
+
readonly type: "uint256";
|
|
3860
|
+
readonly internalType: "uint256";
|
|
3861
|
+
}, {
|
|
3862
|
+
readonly name: "expiry";
|
|
3863
|
+
readonly type: "uint256";
|
|
3864
|
+
readonly internalType: "uint256";
|
|
3865
|
+
}, {
|
|
3866
|
+
readonly name: "tick";
|
|
3867
|
+
readonly type: "uint256";
|
|
3868
|
+
readonly internalType: "uint256";
|
|
3869
|
+
}, {
|
|
3870
|
+
readonly name: "group";
|
|
3871
|
+
readonly type: "bytes32";
|
|
3872
|
+
readonly internalType: "bytes32";
|
|
3873
|
+
}, {
|
|
3874
|
+
readonly name: "callback";
|
|
3875
|
+
readonly type: "address";
|
|
3876
|
+
readonly internalType: "address";
|
|
3877
|
+
}, {
|
|
3878
|
+
readonly name: "callbackData";
|
|
3879
|
+
readonly type: "bytes";
|
|
3880
|
+
readonly internalType: "bytes";
|
|
3881
|
+
}, {
|
|
3882
|
+
readonly name: "receiverIfMakerIsSeller";
|
|
3883
|
+
readonly type: "address";
|
|
3884
|
+
readonly internalType: "address";
|
|
3885
|
+
}, {
|
|
3886
|
+
readonly name: "ratifier";
|
|
3887
|
+
readonly type: "address";
|
|
3888
|
+
readonly internalType: "address";
|
|
3889
|
+
}, {
|
|
3890
|
+
readonly name: "reduceOnly";
|
|
3891
|
+
readonly type: "bool";
|
|
3892
|
+
readonly internalType: "bool";
|
|
3893
|
+
}, {
|
|
3894
|
+
readonly name: "maxUnits";
|
|
3895
|
+
readonly type: "uint128";
|
|
3896
|
+
readonly internalType: "uint128";
|
|
3897
|
+
}, {
|
|
3898
|
+
readonly name: "maxAssets";
|
|
3899
|
+
readonly type: "uint128";
|
|
3900
|
+
readonly internalType: "uint128";
|
|
3901
|
+
}, {
|
|
3902
|
+
readonly name: "continuousFeeCap";
|
|
3903
|
+
readonly type: "uint256";
|
|
3904
|
+
readonly internalType: "uint256";
|
|
3905
|
+
}];
|
|
3906
|
+
}, {
|
|
3907
|
+
readonly name: "ratifierData";
|
|
3908
|
+
readonly type: "bytes";
|
|
3909
|
+
readonly internalType: "bytes";
|
|
3910
|
+
}, {
|
|
3911
|
+
readonly name: "taker";
|
|
3912
|
+
readonly type: "address";
|
|
3913
|
+
readonly internalType: "address";
|
|
3914
|
+
}];
|
|
3915
|
+
readonly outputs: readonly [{
|
|
3916
|
+
readonly name: "";
|
|
3917
|
+
readonly type: "bytes32";
|
|
3918
|
+
readonly internalType: "bytes32";
|
|
3919
|
+
}];
|
|
3920
|
+
readonly stateMutability: "view";
|
|
3921
|
+
}, {
|
|
3922
|
+
readonly type: "function";
|
|
3923
|
+
readonly name: "isRootRatified";
|
|
3924
|
+
readonly inputs: readonly [{
|
|
3925
|
+
readonly name: "maker";
|
|
3926
|
+
readonly type: "address";
|
|
3927
|
+
readonly internalType: "address";
|
|
3928
|
+
}, {
|
|
3929
|
+
readonly name: "root";
|
|
3930
|
+
readonly type: "bytes32";
|
|
3931
|
+
readonly internalType: "bytes32";
|
|
3932
|
+
}];
|
|
3933
|
+
readonly outputs: readonly [{
|
|
3934
|
+
readonly name: "";
|
|
3935
|
+
readonly type: "bool";
|
|
3936
|
+
readonly internalType: "bool";
|
|
3937
|
+
}];
|
|
3938
|
+
readonly stateMutability: "view";
|
|
3939
|
+
}, {
|
|
3940
|
+
readonly type: "function";
|
|
3941
|
+
readonly name: "ratification";
|
|
3942
|
+
readonly inputs: readonly [{
|
|
3943
|
+
readonly name: "maker";
|
|
3944
|
+
readonly type: "address";
|
|
3945
|
+
readonly internalType: "address";
|
|
3946
|
+
}, {
|
|
3947
|
+
readonly name: "root";
|
|
3948
|
+
readonly type: "bytes32";
|
|
3949
|
+
readonly internalType: "bytes32";
|
|
3950
|
+
}];
|
|
3951
|
+
readonly outputs: readonly [{
|
|
3952
|
+
readonly name: "isRootRatified";
|
|
3953
|
+
readonly type: "bool";
|
|
3954
|
+
readonly internalType: "bool";
|
|
3955
|
+
}, {
|
|
3956
|
+
readonly name: "rootNonce";
|
|
3957
|
+
readonly type: "uint128";
|
|
3958
|
+
readonly internalType: "uint128";
|
|
3959
|
+
}];
|
|
3960
|
+
readonly stateMutability: "view";
|
|
3961
|
+
}, {
|
|
3962
|
+
readonly type: "function";
|
|
3963
|
+
readonly name: "rootNonce";
|
|
3964
|
+
readonly inputs: readonly [{
|
|
3965
|
+
readonly name: "maker";
|
|
3966
|
+
readonly type: "address";
|
|
3967
|
+
readonly internalType: "address";
|
|
3968
|
+
}, {
|
|
3969
|
+
readonly name: "root";
|
|
3970
|
+
readonly type: "bytes32";
|
|
3971
|
+
readonly internalType: "bytes32";
|
|
3972
|
+
}];
|
|
3973
|
+
readonly outputs: readonly [{
|
|
3974
|
+
readonly name: "";
|
|
3975
|
+
readonly type: "uint128";
|
|
3976
|
+
readonly internalType: "uint128";
|
|
3977
|
+
}];
|
|
3978
|
+
readonly stateMutability: "view";
|
|
3979
|
+
}, {
|
|
3980
|
+
readonly type: "function";
|
|
3981
|
+
readonly name: "setIsRootRatified";
|
|
3982
|
+
readonly inputs: readonly [{
|
|
3983
|
+
readonly name: "maker";
|
|
3984
|
+
readonly type: "address";
|
|
3985
|
+
readonly internalType: "address";
|
|
3986
|
+
}, {
|
|
3987
|
+
readonly name: "root";
|
|
3988
|
+
readonly type: "bytes32";
|
|
3989
|
+
readonly internalType: "bytes32";
|
|
3990
|
+
}, {
|
|
3991
|
+
readonly name: "newIsRootRatified";
|
|
3992
|
+
readonly type: "bool";
|
|
3993
|
+
readonly internalType: "bool";
|
|
3994
|
+
}];
|
|
3995
|
+
readonly outputs: readonly [{
|
|
3996
|
+
readonly name: "";
|
|
3997
|
+
readonly type: "bytes32";
|
|
3998
|
+
readonly internalType: "bytes32";
|
|
3999
|
+
}];
|
|
4000
|
+
readonly stateMutability: "nonpayable";
|
|
4001
|
+
}, {
|
|
4002
|
+
readonly type: "function";
|
|
4003
|
+
readonly name: "setIsRootRatifiedWithSig";
|
|
4004
|
+
readonly inputs: readonly [{
|
|
4005
|
+
readonly name: "maker";
|
|
4006
|
+
readonly type: "address";
|
|
4007
|
+
readonly internalType: "address";
|
|
4008
|
+
}, {
|
|
4009
|
+
readonly name: "root";
|
|
4010
|
+
readonly type: "bytes32";
|
|
4011
|
+
readonly internalType: "bytes32";
|
|
4012
|
+
}, {
|
|
4013
|
+
readonly name: "height";
|
|
4014
|
+
readonly type: "uint256";
|
|
4015
|
+
readonly internalType: "uint256";
|
|
4016
|
+
}, {
|
|
4017
|
+
readonly name: "newIsRootRatified";
|
|
4018
|
+
readonly type: "bool";
|
|
4019
|
+
readonly internalType: "bool";
|
|
4020
|
+
}, {
|
|
4021
|
+
readonly name: "nonce";
|
|
4022
|
+
readonly type: "uint128";
|
|
4023
|
+
readonly internalType: "uint128";
|
|
4024
|
+
}, {
|
|
4025
|
+
readonly name: "deadline";
|
|
4026
|
+
readonly type: "uint256";
|
|
4027
|
+
readonly internalType: "uint256";
|
|
4028
|
+
}, {
|
|
4029
|
+
readonly name: "v";
|
|
4030
|
+
readonly type: "uint8";
|
|
4031
|
+
readonly internalType: "uint8";
|
|
4032
|
+
}, {
|
|
4033
|
+
readonly name: "r";
|
|
4034
|
+
readonly type: "bytes32";
|
|
4035
|
+
readonly internalType: "bytes32";
|
|
4036
|
+
}, {
|
|
4037
|
+
readonly name: "s";
|
|
4038
|
+
readonly type: "bytes32";
|
|
4039
|
+
readonly internalType: "bytes32";
|
|
4040
|
+
}];
|
|
4041
|
+
readonly outputs: readonly [{
|
|
4042
|
+
readonly name: "";
|
|
4043
|
+
readonly type: "bytes32";
|
|
4044
|
+
readonly internalType: "bytes32";
|
|
4045
|
+
}];
|
|
4046
|
+
readonly stateMutability: "nonpayable";
|
|
4047
|
+
}, {
|
|
4048
|
+
readonly type: "event";
|
|
4049
|
+
readonly name: "SetIsRootRatified";
|
|
4050
|
+
readonly inputs: readonly [{
|
|
4051
|
+
readonly name: "caller";
|
|
4052
|
+
readonly type: "address";
|
|
4053
|
+
readonly indexed: true;
|
|
4054
|
+
readonly internalType: "address";
|
|
4055
|
+
}, {
|
|
4056
|
+
readonly name: "maker";
|
|
4057
|
+
readonly type: "address";
|
|
4058
|
+
readonly indexed: true;
|
|
4059
|
+
readonly internalType: "address";
|
|
4060
|
+
}, {
|
|
4061
|
+
readonly name: "root";
|
|
4062
|
+
readonly type: "bytes32";
|
|
4063
|
+
readonly indexed: true;
|
|
4064
|
+
readonly internalType: "bytes32";
|
|
4065
|
+
}, {
|
|
4066
|
+
readonly name: "newIsRootRatified";
|
|
4067
|
+
readonly type: "bool";
|
|
4068
|
+
readonly indexed: false;
|
|
4069
|
+
readonly internalType: "bool";
|
|
4070
|
+
}];
|
|
4071
|
+
readonly anonymous: false;
|
|
4072
|
+
}, {
|
|
4073
|
+
readonly type: "event";
|
|
4074
|
+
readonly name: "SetIsRootRatifiedWithSig";
|
|
4075
|
+
readonly inputs: readonly [{
|
|
4076
|
+
readonly name: "caller";
|
|
4077
|
+
readonly type: "address";
|
|
4078
|
+
readonly indexed: false;
|
|
4079
|
+
readonly internalType: "address";
|
|
4080
|
+
}, {
|
|
4081
|
+
readonly name: "signer";
|
|
4082
|
+
readonly type: "address";
|
|
4083
|
+
readonly indexed: true;
|
|
4084
|
+
readonly internalType: "address";
|
|
4085
|
+
}, {
|
|
4086
|
+
readonly name: "maker";
|
|
4087
|
+
readonly type: "address";
|
|
4088
|
+
readonly indexed: true;
|
|
4089
|
+
readonly internalType: "address";
|
|
4090
|
+
}, {
|
|
4091
|
+
readonly name: "root";
|
|
4092
|
+
readonly type: "bytes32";
|
|
4093
|
+
readonly indexed: true;
|
|
4094
|
+
readonly internalType: "bytes32";
|
|
4095
|
+
}, {
|
|
4096
|
+
readonly name: "height";
|
|
4097
|
+
readonly type: "uint256";
|
|
4098
|
+
readonly indexed: false;
|
|
4099
|
+
readonly internalType: "uint256";
|
|
4100
|
+
}, {
|
|
4101
|
+
readonly name: "newIsRootRatified";
|
|
4102
|
+
readonly type: "bool";
|
|
4103
|
+
readonly indexed: false;
|
|
4104
|
+
readonly internalType: "bool";
|
|
4105
|
+
}, {
|
|
4106
|
+
readonly name: "signatureNonce";
|
|
4107
|
+
readonly type: "uint128";
|
|
4108
|
+
readonly indexed: false;
|
|
4109
|
+
readonly internalType: "uint128";
|
|
4110
|
+
}, {
|
|
4111
|
+
readonly name: "previousNonce";
|
|
4112
|
+
readonly type: "uint128";
|
|
4113
|
+
readonly indexed: false;
|
|
4114
|
+
readonly internalType: "uint128";
|
|
4115
|
+
}];
|
|
4116
|
+
readonly anonymous: false;
|
|
4117
|
+
}, {
|
|
4118
|
+
readonly type: "error";
|
|
4119
|
+
readonly name: "DeadlineExpired";
|
|
4120
|
+
readonly inputs: readonly [];
|
|
4121
|
+
}, {
|
|
4122
|
+
readonly type: "error";
|
|
4123
|
+
readonly name: "InvalidNonce";
|
|
4124
|
+
readonly inputs: readonly [];
|
|
4125
|
+
}, {
|
|
4126
|
+
readonly type: "error";
|
|
4127
|
+
readonly name: "InvalidProof";
|
|
4128
|
+
readonly inputs: readonly [];
|
|
4129
|
+
}, {
|
|
4130
|
+
readonly type: "error";
|
|
4131
|
+
readonly name: "InvalidSignature";
|
|
4132
|
+
readonly inputs: readonly [];
|
|
4133
|
+
}, {
|
|
4134
|
+
readonly type: "error";
|
|
4135
|
+
readonly name: "NotRatified";
|
|
4136
|
+
readonly inputs: readonly [];
|
|
4137
|
+
}, {
|
|
4138
|
+
readonly type: "error";
|
|
4139
|
+
readonly name: "RatifiedStatusChanged";
|
|
4140
|
+
readonly inputs: readonly [];
|
|
4141
|
+
}, {
|
|
4142
|
+
readonly type: "error";
|
|
4143
|
+
readonly name: "Unauthorized";
|
|
4144
|
+
readonly inputs: readonly [];
|
|
4145
|
+
}, {
|
|
4146
|
+
readonly type: "error";
|
|
4147
|
+
readonly name: "UnauthorizedTaker";
|
|
4148
|
+
readonly inputs: readonly [];
|
|
4149
|
+
}, {
|
|
4150
|
+
readonly type: "error";
|
|
4151
|
+
readonly name: "WorsePrice";
|
|
4152
|
+
readonly inputs: readonly [];
|
|
4153
|
+
}];
|