@morpho-org/midnight-sdk 2.2.1 → 2.3.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 +1 -0
- package/lib/cjs/abis.d.ts +822 -0
- package/lib/cjs/abis.js +1021 -1
- package/lib/cjs/api/MidnightApi.d.ts +6 -2
- package/lib/cjs/api/MidnightApi.js +8 -2
- package/lib/cjs/api/helpers.d.ts +2 -0
- package/lib/cjs/api/helpers.js +9 -4
- package/lib/cjs/api/types.d.ts +5 -0
- package/lib/cjs/api/version.generated.d.ts +1 -1
- package/lib/cjs/api/version.generated.js +1 -1
- package/lib/cjs/offers/Offer.d.ts +17 -21
- package/lib/cjs/offers/Offer.js +17 -24
- package/lib/esm/abis.d.ts +822 -0
- package/lib/esm/abis.js +1020 -0
- package/lib/esm/api/MidnightApi.d.ts +6 -2
- package/lib/esm/api/MidnightApi.js +8 -2
- package/lib/esm/api/helpers.d.ts +2 -0
- package/lib/esm/api/helpers.js +9 -4
- package/lib/esm/api/types.d.ts +5 -0
- package/lib/esm/api/version.generated.d.ts +1 -1
- package/lib/esm/api/version.generated.js +1 -1
- package/lib/esm/offers/Offer.d.ts +17 -21
- package/lib/esm/offers/Offer.js +17 -24
- package/package.json +2 -2
package/lib/esm/abis.js
CHANGED
|
@@ -2501,6 +2501,178 @@ export const midnightAbi = [
|
|
|
2501
2501
|
inputs: [],
|
|
2502
2502
|
},
|
|
2503
2503
|
];
|
|
2504
|
+
/**
|
|
2505
|
+
* Pinned ABI JSON for the EcrecoverAuthorizer.
|
|
2506
|
+
*
|
|
2507
|
+
* Source: `morpho-org/midnight` commit `336b924a2bb378d810ef6d35b6dd3486759af8bd`,
|
|
2508
|
+
* `src/periphery/interfaces/IEcrecoverAuthorizer.sol`, Forge artifact `out/IEcrecoverAuthorizer.sol/IEcrecoverAuthorizer.json`.
|
|
2509
|
+
*
|
|
2510
|
+
* @example
|
|
2511
|
+
* ```ts
|
|
2512
|
+
* import { ecrecoverAuthorizerAbi } from "@morpho-org/midnight-sdk";
|
|
2513
|
+
*
|
|
2514
|
+
* console.log(ecrecoverAuthorizerAbi.length);
|
|
2515
|
+
* ```
|
|
2516
|
+
*/
|
|
2517
|
+
export const ecrecoverAuthorizerAbi = [
|
|
2518
|
+
{
|
|
2519
|
+
type: "function",
|
|
2520
|
+
name: "MIDNIGHT",
|
|
2521
|
+
inputs: [],
|
|
2522
|
+
outputs: [
|
|
2523
|
+
{
|
|
2524
|
+
name: "",
|
|
2525
|
+
type: "address",
|
|
2526
|
+
internalType: "address",
|
|
2527
|
+
},
|
|
2528
|
+
],
|
|
2529
|
+
stateMutability: "view",
|
|
2530
|
+
},
|
|
2531
|
+
{
|
|
2532
|
+
type: "function",
|
|
2533
|
+
name: "nonce",
|
|
2534
|
+
inputs: [
|
|
2535
|
+
{
|
|
2536
|
+
name: "authorizer",
|
|
2537
|
+
type: "address",
|
|
2538
|
+
internalType: "address",
|
|
2539
|
+
},
|
|
2540
|
+
],
|
|
2541
|
+
outputs: [
|
|
2542
|
+
{
|
|
2543
|
+
name: "",
|
|
2544
|
+
type: "uint256",
|
|
2545
|
+
internalType: "uint256",
|
|
2546
|
+
},
|
|
2547
|
+
],
|
|
2548
|
+
stateMutability: "view",
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
type: "function",
|
|
2552
|
+
name: "setIsAuthorized",
|
|
2553
|
+
inputs: [
|
|
2554
|
+
{
|
|
2555
|
+
name: "authorization",
|
|
2556
|
+
type: "tuple",
|
|
2557
|
+
internalType: "struct Authorization",
|
|
2558
|
+
components: [
|
|
2559
|
+
{
|
|
2560
|
+
name: "authorizer",
|
|
2561
|
+
type: "address",
|
|
2562
|
+
internalType: "address",
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
name: "authorized",
|
|
2566
|
+
type: "address",
|
|
2567
|
+
internalType: "address",
|
|
2568
|
+
},
|
|
2569
|
+
{
|
|
2570
|
+
name: "isAuthorized",
|
|
2571
|
+
type: "bool",
|
|
2572
|
+
internalType: "bool",
|
|
2573
|
+
},
|
|
2574
|
+
{
|
|
2575
|
+
name: "nonce",
|
|
2576
|
+
type: "uint256",
|
|
2577
|
+
internalType: "uint256",
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
name: "deadline",
|
|
2581
|
+
type: "uint256",
|
|
2582
|
+
internalType: "uint256",
|
|
2583
|
+
},
|
|
2584
|
+
],
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
name: "signature",
|
|
2588
|
+
type: "tuple",
|
|
2589
|
+
internalType: "struct Signature",
|
|
2590
|
+
components: [
|
|
2591
|
+
{
|
|
2592
|
+
name: "v",
|
|
2593
|
+
type: "uint8",
|
|
2594
|
+
internalType: "uint8",
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
name: "r",
|
|
2598
|
+
type: "bytes32",
|
|
2599
|
+
internalType: "bytes32",
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
name: "s",
|
|
2603
|
+
type: "bytes32",
|
|
2604
|
+
internalType: "bytes32",
|
|
2605
|
+
},
|
|
2606
|
+
],
|
|
2607
|
+
},
|
|
2608
|
+
],
|
|
2609
|
+
outputs: [],
|
|
2610
|
+
stateMutability: "nonpayable",
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
type: "event",
|
|
2614
|
+
name: "SetIsAuthorized",
|
|
2615
|
+
inputs: [
|
|
2616
|
+
{
|
|
2617
|
+
name: "caller",
|
|
2618
|
+
type: "address",
|
|
2619
|
+
indexed: true,
|
|
2620
|
+
internalType: "address",
|
|
2621
|
+
},
|
|
2622
|
+
{
|
|
2623
|
+
name: "authorizer",
|
|
2624
|
+
type: "address",
|
|
2625
|
+
indexed: true,
|
|
2626
|
+
internalType: "address",
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
name: "authorized",
|
|
2630
|
+
type: "address",
|
|
2631
|
+
indexed: true,
|
|
2632
|
+
internalType: "address",
|
|
2633
|
+
},
|
|
2634
|
+
{
|
|
2635
|
+
name: "isAuthorized",
|
|
2636
|
+
type: "bool",
|
|
2637
|
+
indexed: false,
|
|
2638
|
+
internalType: "bool",
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
name: "nonce",
|
|
2642
|
+
type: "uint256",
|
|
2643
|
+
indexed: false,
|
|
2644
|
+
internalType: "uint256",
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
name: "signer",
|
|
2648
|
+
type: "address",
|
|
2649
|
+
indexed: false,
|
|
2650
|
+
internalType: "address",
|
|
2651
|
+
},
|
|
2652
|
+
],
|
|
2653
|
+
anonymous: false,
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
type: "error",
|
|
2657
|
+
name: "Expired",
|
|
2658
|
+
inputs: [],
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
type: "error",
|
|
2662
|
+
name: "InvalidNonce",
|
|
2663
|
+
inputs: [],
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
type: "error",
|
|
2667
|
+
name: "InvalidSignature",
|
|
2668
|
+
inputs: [],
|
|
2669
|
+
},
|
|
2670
|
+
{
|
|
2671
|
+
type: "error",
|
|
2672
|
+
name: "Unauthorized",
|
|
2673
|
+
inputs: [],
|
|
2674
|
+
},
|
|
2675
|
+
];
|
|
2504
2676
|
/**
|
|
2505
2677
|
* Pinned ABI JSON for the EcrecoverRatifier.
|
|
2506
2678
|
*
|
|
@@ -5328,3 +5500,851 @@ export const blueBuyCallbackFactoryAbi = [
|
|
|
5328
5500
|
anonymous: false,
|
|
5329
5501
|
},
|
|
5330
5502
|
];
|
|
5503
|
+
/**
|
|
5504
|
+
* Pinned ABI JSON for the events emitted by the core Midnight contract.
|
|
5505
|
+
*
|
|
5506
|
+
* Source: `morpho-org/midnight` commit `336b924a2bb378d810ef6d35b6dd3486759af8bd`,
|
|
5507
|
+
* `src/libraries/EventsLib.sol`, `forge inspect src/libraries/EventsLib.sol:EventsLib abi`.
|
|
5508
|
+
*
|
|
5509
|
+
* @example
|
|
5510
|
+
* ```ts
|
|
5511
|
+
* import { decodeEventLog, type Log } from "viem";
|
|
5512
|
+
* import { midnightEventsAbi } from "@morpho-org/midnight-sdk";
|
|
5513
|
+
*
|
|
5514
|
+
* declare const log: Log; // e.g. from a transaction receipt
|
|
5515
|
+
* const { eventName, args } = decodeEventLog({
|
|
5516
|
+
* abi: midnightEventsAbi,
|
|
5517
|
+
* data: log.data,
|
|
5518
|
+
* topics: log.topics,
|
|
5519
|
+
* });
|
|
5520
|
+
* ```
|
|
5521
|
+
*/
|
|
5522
|
+
export const midnightEventsAbi = [
|
|
5523
|
+
{
|
|
5524
|
+
type: "event",
|
|
5525
|
+
name: "ClaimContinuousFee",
|
|
5526
|
+
inputs: [
|
|
5527
|
+
{
|
|
5528
|
+
name: "caller",
|
|
5529
|
+
type: "address",
|
|
5530
|
+
indexed: true,
|
|
5531
|
+
internalType: "address",
|
|
5532
|
+
},
|
|
5533
|
+
{
|
|
5534
|
+
name: "id_",
|
|
5535
|
+
type: "bytes32",
|
|
5536
|
+
indexed: true,
|
|
5537
|
+
internalType: "bytes32",
|
|
5538
|
+
},
|
|
5539
|
+
{
|
|
5540
|
+
name: "amount",
|
|
5541
|
+
type: "uint256",
|
|
5542
|
+
indexed: false,
|
|
5543
|
+
internalType: "uint256",
|
|
5544
|
+
},
|
|
5545
|
+
{
|
|
5546
|
+
name: "receiver",
|
|
5547
|
+
type: "address",
|
|
5548
|
+
indexed: true,
|
|
5549
|
+
internalType: "address",
|
|
5550
|
+
},
|
|
5551
|
+
],
|
|
5552
|
+
anonymous: false,
|
|
5553
|
+
},
|
|
5554
|
+
{
|
|
5555
|
+
type: "event",
|
|
5556
|
+
name: "ClaimSettlementFee",
|
|
5557
|
+
inputs: [
|
|
5558
|
+
{
|
|
5559
|
+
name: "caller",
|
|
5560
|
+
type: "address",
|
|
5561
|
+
indexed: true,
|
|
5562
|
+
internalType: "address",
|
|
5563
|
+
},
|
|
5564
|
+
{
|
|
5565
|
+
name: "token",
|
|
5566
|
+
type: "address",
|
|
5567
|
+
indexed: true,
|
|
5568
|
+
internalType: "address",
|
|
5569
|
+
},
|
|
5570
|
+
{
|
|
5571
|
+
name: "amount",
|
|
5572
|
+
type: "uint256",
|
|
5573
|
+
indexed: false,
|
|
5574
|
+
internalType: "uint256",
|
|
5575
|
+
},
|
|
5576
|
+
{
|
|
5577
|
+
name: "receiver",
|
|
5578
|
+
type: "address",
|
|
5579
|
+
indexed: true,
|
|
5580
|
+
internalType: "address",
|
|
5581
|
+
},
|
|
5582
|
+
],
|
|
5583
|
+
anonymous: false,
|
|
5584
|
+
},
|
|
5585
|
+
{
|
|
5586
|
+
type: "event",
|
|
5587
|
+
name: "Constructor",
|
|
5588
|
+
inputs: [
|
|
5589
|
+
{
|
|
5590
|
+
name: "configurator",
|
|
5591
|
+
type: "address",
|
|
5592
|
+
indexed: true,
|
|
5593
|
+
internalType: "address",
|
|
5594
|
+
},
|
|
5595
|
+
],
|
|
5596
|
+
anonymous: false,
|
|
5597
|
+
},
|
|
5598
|
+
{
|
|
5599
|
+
type: "event",
|
|
5600
|
+
name: "EnableLiquidationCursor",
|
|
5601
|
+
inputs: [
|
|
5602
|
+
{
|
|
5603
|
+
name: "liquidationCursor",
|
|
5604
|
+
type: "uint256",
|
|
5605
|
+
indexed: false,
|
|
5606
|
+
internalType: "uint256",
|
|
5607
|
+
},
|
|
5608
|
+
],
|
|
5609
|
+
anonymous: false,
|
|
5610
|
+
},
|
|
5611
|
+
{
|
|
5612
|
+
type: "event",
|
|
5613
|
+
name: "EnableLltv",
|
|
5614
|
+
inputs: [
|
|
5615
|
+
{
|
|
5616
|
+
name: "lltv",
|
|
5617
|
+
type: "uint256",
|
|
5618
|
+
indexed: false,
|
|
5619
|
+
internalType: "uint256",
|
|
5620
|
+
},
|
|
5621
|
+
],
|
|
5622
|
+
anonymous: false,
|
|
5623
|
+
},
|
|
5624
|
+
{
|
|
5625
|
+
type: "event",
|
|
5626
|
+
name: "FlashLoan",
|
|
5627
|
+
inputs: [
|
|
5628
|
+
{
|
|
5629
|
+
name: "caller",
|
|
5630
|
+
type: "address",
|
|
5631
|
+
indexed: true,
|
|
5632
|
+
internalType: "address",
|
|
5633
|
+
},
|
|
5634
|
+
{
|
|
5635
|
+
name: "tokens",
|
|
5636
|
+
type: "address[]",
|
|
5637
|
+
indexed: false,
|
|
5638
|
+
internalType: "address[]",
|
|
5639
|
+
},
|
|
5640
|
+
{
|
|
5641
|
+
name: "assets",
|
|
5642
|
+
type: "uint256[]",
|
|
5643
|
+
indexed: false,
|
|
5644
|
+
internalType: "uint256[]",
|
|
5645
|
+
},
|
|
5646
|
+
{
|
|
5647
|
+
name: "callback",
|
|
5648
|
+
type: "address",
|
|
5649
|
+
indexed: true,
|
|
5650
|
+
internalType: "address",
|
|
5651
|
+
},
|
|
5652
|
+
],
|
|
5653
|
+
anonymous: false,
|
|
5654
|
+
},
|
|
5655
|
+
{
|
|
5656
|
+
type: "event",
|
|
5657
|
+
name: "Liquidate",
|
|
5658
|
+
inputs: [
|
|
5659
|
+
{
|
|
5660
|
+
name: "caller",
|
|
5661
|
+
type: "address",
|
|
5662
|
+
indexed: false,
|
|
5663
|
+
internalType: "address",
|
|
5664
|
+
},
|
|
5665
|
+
{
|
|
5666
|
+
name: "id_",
|
|
5667
|
+
type: "bytes32",
|
|
5668
|
+
indexed: true,
|
|
5669
|
+
internalType: "bytes32",
|
|
5670
|
+
},
|
|
5671
|
+
{
|
|
5672
|
+
name: "collateral",
|
|
5673
|
+
type: "address",
|
|
5674
|
+
indexed: true,
|
|
5675
|
+
internalType: "address",
|
|
5676
|
+
},
|
|
5677
|
+
{
|
|
5678
|
+
name: "seizedAssets",
|
|
5679
|
+
type: "uint256",
|
|
5680
|
+
indexed: false,
|
|
5681
|
+
internalType: "uint256",
|
|
5682
|
+
},
|
|
5683
|
+
{
|
|
5684
|
+
name: "repaidUnits",
|
|
5685
|
+
type: "uint256",
|
|
5686
|
+
indexed: false,
|
|
5687
|
+
internalType: "uint256",
|
|
5688
|
+
},
|
|
5689
|
+
{
|
|
5690
|
+
name: "borrower",
|
|
5691
|
+
type: "address",
|
|
5692
|
+
indexed: true,
|
|
5693
|
+
internalType: "address",
|
|
5694
|
+
},
|
|
5695
|
+
{
|
|
5696
|
+
name: "postMaturityMode",
|
|
5697
|
+
type: "bool",
|
|
5698
|
+
indexed: false,
|
|
5699
|
+
internalType: "bool",
|
|
5700
|
+
},
|
|
5701
|
+
{
|
|
5702
|
+
name: "receiver",
|
|
5703
|
+
type: "address",
|
|
5704
|
+
indexed: false,
|
|
5705
|
+
internalType: "address",
|
|
5706
|
+
},
|
|
5707
|
+
{
|
|
5708
|
+
name: "payer",
|
|
5709
|
+
type: "address",
|
|
5710
|
+
indexed: false,
|
|
5711
|
+
internalType: "address",
|
|
5712
|
+
},
|
|
5713
|
+
{
|
|
5714
|
+
name: "badDebt",
|
|
5715
|
+
type: "uint256",
|
|
5716
|
+
indexed: false,
|
|
5717
|
+
internalType: "uint256",
|
|
5718
|
+
},
|
|
5719
|
+
{
|
|
5720
|
+
name: "latestLossFactor",
|
|
5721
|
+
type: "uint256",
|
|
5722
|
+
indexed: false,
|
|
5723
|
+
internalType: "uint256",
|
|
5724
|
+
},
|
|
5725
|
+
{
|
|
5726
|
+
name: "latestContinuousFeeCredit",
|
|
5727
|
+
type: "uint256",
|
|
5728
|
+
indexed: false,
|
|
5729
|
+
internalType: "uint256",
|
|
5730
|
+
},
|
|
5731
|
+
],
|
|
5732
|
+
anonymous: false,
|
|
5733
|
+
},
|
|
5734
|
+
{
|
|
5735
|
+
type: "event",
|
|
5736
|
+
name: "MarketCreated",
|
|
5737
|
+
inputs: [
|
|
5738
|
+
{
|
|
5739
|
+
name: "market",
|
|
5740
|
+
type: "tuple",
|
|
5741
|
+
indexed: false,
|
|
5742
|
+
internalType: "struct Market",
|
|
5743
|
+
components: [
|
|
5744
|
+
{
|
|
5745
|
+
name: "chainId",
|
|
5746
|
+
type: "uint256",
|
|
5747
|
+
internalType: "uint256",
|
|
5748
|
+
},
|
|
5749
|
+
{
|
|
5750
|
+
name: "midnight",
|
|
5751
|
+
type: "address",
|
|
5752
|
+
internalType: "address",
|
|
5753
|
+
},
|
|
5754
|
+
{
|
|
5755
|
+
name: "loanToken",
|
|
5756
|
+
type: "address",
|
|
5757
|
+
internalType: "address",
|
|
5758
|
+
},
|
|
5759
|
+
{
|
|
5760
|
+
name: "collateralParams",
|
|
5761
|
+
type: "tuple[]",
|
|
5762
|
+
internalType: "struct CollateralParams[]",
|
|
5763
|
+
components: [
|
|
5764
|
+
{
|
|
5765
|
+
name: "token",
|
|
5766
|
+
type: "address",
|
|
5767
|
+
internalType: "address",
|
|
5768
|
+
},
|
|
5769
|
+
{
|
|
5770
|
+
name: "lltv",
|
|
5771
|
+
type: "uint256",
|
|
5772
|
+
internalType: "uint256",
|
|
5773
|
+
},
|
|
5774
|
+
{
|
|
5775
|
+
name: "liquidationCursor",
|
|
5776
|
+
type: "uint256",
|
|
5777
|
+
internalType: "uint256",
|
|
5778
|
+
},
|
|
5779
|
+
{
|
|
5780
|
+
name: "oracle",
|
|
5781
|
+
type: "address",
|
|
5782
|
+
internalType: "address",
|
|
5783
|
+
},
|
|
5784
|
+
],
|
|
5785
|
+
},
|
|
5786
|
+
{
|
|
5787
|
+
name: "maturity",
|
|
5788
|
+
type: "uint256",
|
|
5789
|
+
internalType: "uint256",
|
|
5790
|
+
},
|
|
5791
|
+
{
|
|
5792
|
+
name: "rcfThreshold",
|
|
5793
|
+
type: "uint256",
|
|
5794
|
+
internalType: "uint256",
|
|
5795
|
+
},
|
|
5796
|
+
{
|
|
5797
|
+
name: "enterGate",
|
|
5798
|
+
type: "address",
|
|
5799
|
+
internalType: "address",
|
|
5800
|
+
},
|
|
5801
|
+
{
|
|
5802
|
+
name: "liquidatorGate",
|
|
5803
|
+
type: "address",
|
|
5804
|
+
internalType: "address",
|
|
5805
|
+
},
|
|
5806
|
+
],
|
|
5807
|
+
},
|
|
5808
|
+
{
|
|
5809
|
+
name: "id_",
|
|
5810
|
+
type: "bytes32",
|
|
5811
|
+
indexed: true,
|
|
5812
|
+
internalType: "bytes32",
|
|
5813
|
+
},
|
|
5814
|
+
],
|
|
5815
|
+
anonymous: false,
|
|
5816
|
+
},
|
|
5817
|
+
{
|
|
5818
|
+
type: "event",
|
|
5819
|
+
name: "Repay",
|
|
5820
|
+
inputs: [
|
|
5821
|
+
{
|
|
5822
|
+
name: "caller",
|
|
5823
|
+
type: "address",
|
|
5824
|
+
indexed: true,
|
|
5825
|
+
internalType: "address",
|
|
5826
|
+
},
|
|
5827
|
+
{
|
|
5828
|
+
name: "id_",
|
|
5829
|
+
type: "bytes32",
|
|
5830
|
+
indexed: true,
|
|
5831
|
+
internalType: "bytes32",
|
|
5832
|
+
},
|
|
5833
|
+
{
|
|
5834
|
+
name: "units",
|
|
5835
|
+
type: "uint256",
|
|
5836
|
+
indexed: false,
|
|
5837
|
+
internalType: "uint256",
|
|
5838
|
+
},
|
|
5839
|
+
{
|
|
5840
|
+
name: "onBehalf",
|
|
5841
|
+
type: "address",
|
|
5842
|
+
indexed: true,
|
|
5843
|
+
internalType: "address",
|
|
5844
|
+
},
|
|
5845
|
+
{
|
|
5846
|
+
name: "payer",
|
|
5847
|
+
type: "address",
|
|
5848
|
+
indexed: false,
|
|
5849
|
+
internalType: "address",
|
|
5850
|
+
},
|
|
5851
|
+
],
|
|
5852
|
+
anonymous: false,
|
|
5853
|
+
},
|
|
5854
|
+
{
|
|
5855
|
+
type: "event",
|
|
5856
|
+
name: "SetConfigurator",
|
|
5857
|
+
inputs: [
|
|
5858
|
+
{
|
|
5859
|
+
name: "configurator",
|
|
5860
|
+
type: "address",
|
|
5861
|
+
indexed: true,
|
|
5862
|
+
internalType: "address",
|
|
5863
|
+
},
|
|
5864
|
+
],
|
|
5865
|
+
anonymous: false,
|
|
5866
|
+
},
|
|
5867
|
+
{
|
|
5868
|
+
type: "event",
|
|
5869
|
+
name: "SetConsumed",
|
|
5870
|
+
inputs: [
|
|
5871
|
+
{
|
|
5872
|
+
name: "caller",
|
|
5873
|
+
type: "address",
|
|
5874
|
+
indexed: true,
|
|
5875
|
+
internalType: "address",
|
|
5876
|
+
},
|
|
5877
|
+
{
|
|
5878
|
+
name: "group",
|
|
5879
|
+
type: "bytes32",
|
|
5880
|
+
indexed: true,
|
|
5881
|
+
internalType: "bytes32",
|
|
5882
|
+
},
|
|
5883
|
+
{
|
|
5884
|
+
name: "amount",
|
|
5885
|
+
type: "uint256",
|
|
5886
|
+
indexed: false,
|
|
5887
|
+
internalType: "uint256",
|
|
5888
|
+
},
|
|
5889
|
+
{
|
|
5890
|
+
name: "onBehalf",
|
|
5891
|
+
type: "address",
|
|
5892
|
+
indexed: true,
|
|
5893
|
+
internalType: "address",
|
|
5894
|
+
},
|
|
5895
|
+
],
|
|
5896
|
+
anonymous: false,
|
|
5897
|
+
},
|
|
5898
|
+
{
|
|
5899
|
+
type: "event",
|
|
5900
|
+
name: "SetDefaultContinuousFee",
|
|
5901
|
+
inputs: [
|
|
5902
|
+
{
|
|
5903
|
+
name: "loanToken",
|
|
5904
|
+
type: "address",
|
|
5905
|
+
indexed: true,
|
|
5906
|
+
internalType: "address",
|
|
5907
|
+
},
|
|
5908
|
+
{
|
|
5909
|
+
name: "newContinuousFee",
|
|
5910
|
+
type: "uint256",
|
|
5911
|
+
indexed: false,
|
|
5912
|
+
internalType: "uint256",
|
|
5913
|
+
},
|
|
5914
|
+
],
|
|
5915
|
+
anonymous: false,
|
|
5916
|
+
},
|
|
5917
|
+
{
|
|
5918
|
+
type: "event",
|
|
5919
|
+
name: "SetDefaultSettlementFee",
|
|
5920
|
+
inputs: [
|
|
5921
|
+
{
|
|
5922
|
+
name: "loanToken",
|
|
5923
|
+
type: "address",
|
|
5924
|
+
indexed: true,
|
|
5925
|
+
internalType: "address",
|
|
5926
|
+
},
|
|
5927
|
+
{
|
|
5928
|
+
name: "index",
|
|
5929
|
+
type: "uint256",
|
|
5930
|
+
indexed: true,
|
|
5931
|
+
internalType: "uint256",
|
|
5932
|
+
},
|
|
5933
|
+
{
|
|
5934
|
+
name: "newSettlementFee",
|
|
5935
|
+
type: "uint256",
|
|
5936
|
+
indexed: false,
|
|
5937
|
+
internalType: "uint256",
|
|
5938
|
+
},
|
|
5939
|
+
],
|
|
5940
|
+
anonymous: false,
|
|
5941
|
+
},
|
|
5942
|
+
{
|
|
5943
|
+
type: "event",
|
|
5944
|
+
name: "SetFeeClaimer",
|
|
5945
|
+
inputs: [
|
|
5946
|
+
{
|
|
5947
|
+
name: "feeClaimer",
|
|
5948
|
+
type: "address",
|
|
5949
|
+
indexed: true,
|
|
5950
|
+
internalType: "address",
|
|
5951
|
+
},
|
|
5952
|
+
],
|
|
5953
|
+
anonymous: false,
|
|
5954
|
+
},
|
|
5955
|
+
{
|
|
5956
|
+
type: "event",
|
|
5957
|
+
name: "SetFeeSetter",
|
|
5958
|
+
inputs: [
|
|
5959
|
+
{
|
|
5960
|
+
name: "feeSetter",
|
|
5961
|
+
type: "address",
|
|
5962
|
+
indexed: true,
|
|
5963
|
+
internalType: "address",
|
|
5964
|
+
},
|
|
5965
|
+
],
|
|
5966
|
+
anonymous: false,
|
|
5967
|
+
},
|
|
5968
|
+
{
|
|
5969
|
+
type: "event",
|
|
5970
|
+
name: "SetIsAuthorized",
|
|
5971
|
+
inputs: [
|
|
5972
|
+
{
|
|
5973
|
+
name: "caller",
|
|
5974
|
+
type: "address",
|
|
5975
|
+
indexed: true,
|
|
5976
|
+
internalType: "address",
|
|
5977
|
+
},
|
|
5978
|
+
{
|
|
5979
|
+
name: "authorized",
|
|
5980
|
+
type: "address",
|
|
5981
|
+
indexed: true,
|
|
5982
|
+
internalType: "address",
|
|
5983
|
+
},
|
|
5984
|
+
{
|
|
5985
|
+
name: "newIsAuthorized",
|
|
5986
|
+
type: "bool",
|
|
5987
|
+
indexed: false,
|
|
5988
|
+
internalType: "bool",
|
|
5989
|
+
},
|
|
5990
|
+
{
|
|
5991
|
+
name: "onBehalf",
|
|
5992
|
+
type: "address",
|
|
5993
|
+
indexed: true,
|
|
5994
|
+
internalType: "address",
|
|
5995
|
+
},
|
|
5996
|
+
],
|
|
5997
|
+
anonymous: false,
|
|
5998
|
+
},
|
|
5999
|
+
{
|
|
6000
|
+
type: "event",
|
|
6001
|
+
name: "SetMarketContinuousFee",
|
|
6002
|
+
inputs: [
|
|
6003
|
+
{
|
|
6004
|
+
name: "id_",
|
|
6005
|
+
type: "bytes32",
|
|
6006
|
+
indexed: true,
|
|
6007
|
+
internalType: "bytes32",
|
|
6008
|
+
},
|
|
6009
|
+
{
|
|
6010
|
+
name: "newContinuousFee",
|
|
6011
|
+
type: "uint256",
|
|
6012
|
+
indexed: false,
|
|
6013
|
+
internalType: "uint256",
|
|
6014
|
+
},
|
|
6015
|
+
],
|
|
6016
|
+
anonymous: false,
|
|
6017
|
+
},
|
|
6018
|
+
{
|
|
6019
|
+
type: "event",
|
|
6020
|
+
name: "SetMarketSettlementFee",
|
|
6021
|
+
inputs: [
|
|
6022
|
+
{
|
|
6023
|
+
name: "id_",
|
|
6024
|
+
type: "bytes32",
|
|
6025
|
+
indexed: true,
|
|
6026
|
+
internalType: "bytes32",
|
|
6027
|
+
},
|
|
6028
|
+
{
|
|
6029
|
+
name: "index",
|
|
6030
|
+
type: "uint256",
|
|
6031
|
+
indexed: true,
|
|
6032
|
+
internalType: "uint256",
|
|
6033
|
+
},
|
|
6034
|
+
{
|
|
6035
|
+
name: "newSettlementFee",
|
|
6036
|
+
type: "uint256",
|
|
6037
|
+
indexed: false,
|
|
6038
|
+
internalType: "uint256",
|
|
6039
|
+
},
|
|
6040
|
+
],
|
|
6041
|
+
anonymous: false,
|
|
6042
|
+
},
|
|
6043
|
+
{
|
|
6044
|
+
type: "event",
|
|
6045
|
+
name: "SetMarketTickSpacing",
|
|
6046
|
+
inputs: [
|
|
6047
|
+
{
|
|
6048
|
+
name: "id_",
|
|
6049
|
+
type: "bytes32",
|
|
6050
|
+
indexed: true,
|
|
6051
|
+
internalType: "bytes32",
|
|
6052
|
+
},
|
|
6053
|
+
{
|
|
6054
|
+
name: "newTickSpacing",
|
|
6055
|
+
type: "uint256",
|
|
6056
|
+
indexed: false,
|
|
6057
|
+
internalType: "uint256",
|
|
6058
|
+
},
|
|
6059
|
+
],
|
|
6060
|
+
anonymous: false,
|
|
6061
|
+
},
|
|
6062
|
+
{
|
|
6063
|
+
type: "event",
|
|
6064
|
+
name: "SetTickSpacingSetter",
|
|
6065
|
+
inputs: [
|
|
6066
|
+
{
|
|
6067
|
+
name: "tickSpacingSetter",
|
|
6068
|
+
type: "address",
|
|
6069
|
+
indexed: true,
|
|
6070
|
+
internalType: "address",
|
|
6071
|
+
},
|
|
6072
|
+
],
|
|
6073
|
+
anonymous: false,
|
|
6074
|
+
},
|
|
6075
|
+
{
|
|
6076
|
+
type: "event",
|
|
6077
|
+
name: "SupplyCollateral",
|
|
6078
|
+
inputs: [
|
|
6079
|
+
{
|
|
6080
|
+
name: "caller",
|
|
6081
|
+
type: "address",
|
|
6082
|
+
indexed: false,
|
|
6083
|
+
internalType: "address",
|
|
6084
|
+
},
|
|
6085
|
+
{
|
|
6086
|
+
name: "id_",
|
|
6087
|
+
type: "bytes32",
|
|
6088
|
+
indexed: true,
|
|
6089
|
+
internalType: "bytes32",
|
|
6090
|
+
},
|
|
6091
|
+
{
|
|
6092
|
+
name: "collateral",
|
|
6093
|
+
type: "address",
|
|
6094
|
+
indexed: true,
|
|
6095
|
+
internalType: "address",
|
|
6096
|
+
},
|
|
6097
|
+
{
|
|
6098
|
+
name: "assets",
|
|
6099
|
+
type: "uint256",
|
|
6100
|
+
indexed: false,
|
|
6101
|
+
internalType: "uint256",
|
|
6102
|
+
},
|
|
6103
|
+
{
|
|
6104
|
+
name: "onBehalf",
|
|
6105
|
+
type: "address",
|
|
6106
|
+
indexed: true,
|
|
6107
|
+
internalType: "address",
|
|
6108
|
+
},
|
|
6109
|
+
],
|
|
6110
|
+
anonymous: false,
|
|
6111
|
+
},
|
|
6112
|
+
{
|
|
6113
|
+
type: "event",
|
|
6114
|
+
name: "Take",
|
|
6115
|
+
inputs: [
|
|
6116
|
+
{
|
|
6117
|
+
name: "caller",
|
|
6118
|
+
type: "address",
|
|
6119
|
+
indexed: false,
|
|
6120
|
+
internalType: "address",
|
|
6121
|
+
},
|
|
6122
|
+
{
|
|
6123
|
+
name: "offerHash",
|
|
6124
|
+
type: "bytes32",
|
|
6125
|
+
indexed: false,
|
|
6126
|
+
internalType: "bytes32",
|
|
6127
|
+
},
|
|
6128
|
+
{
|
|
6129
|
+
name: "id_",
|
|
6130
|
+
type: "bytes32",
|
|
6131
|
+
indexed: true,
|
|
6132
|
+
internalType: "bytes32",
|
|
6133
|
+
},
|
|
6134
|
+
{
|
|
6135
|
+
name: "offerIsBuy",
|
|
6136
|
+
type: "bool",
|
|
6137
|
+
indexed: false,
|
|
6138
|
+
internalType: "bool",
|
|
6139
|
+
},
|
|
6140
|
+
{
|
|
6141
|
+
name: "maker",
|
|
6142
|
+
type: "address",
|
|
6143
|
+
indexed: true,
|
|
6144
|
+
internalType: "address",
|
|
6145
|
+
},
|
|
6146
|
+
{
|
|
6147
|
+
name: "group",
|
|
6148
|
+
type: "bytes32",
|
|
6149
|
+
indexed: false,
|
|
6150
|
+
internalType: "bytes32",
|
|
6151
|
+
},
|
|
6152
|
+
{
|
|
6153
|
+
name: "ratifier",
|
|
6154
|
+
type: "address",
|
|
6155
|
+
indexed: false,
|
|
6156
|
+
internalType: "address",
|
|
6157
|
+
},
|
|
6158
|
+
{
|
|
6159
|
+
name: "ratifierData",
|
|
6160
|
+
type: "bytes",
|
|
6161
|
+
indexed: false,
|
|
6162
|
+
internalType: "bytes",
|
|
6163
|
+
},
|
|
6164
|
+
{
|
|
6165
|
+
name: "units",
|
|
6166
|
+
type: "uint256",
|
|
6167
|
+
indexed: false,
|
|
6168
|
+
internalType: "uint256",
|
|
6169
|
+
},
|
|
6170
|
+
{
|
|
6171
|
+
name: "taker",
|
|
6172
|
+
type: "address",
|
|
6173
|
+
indexed: true,
|
|
6174
|
+
internalType: "address",
|
|
6175
|
+
},
|
|
6176
|
+
{
|
|
6177
|
+
name: "buyerAssets",
|
|
6178
|
+
type: "uint256",
|
|
6179
|
+
indexed: false,
|
|
6180
|
+
internalType: "uint256",
|
|
6181
|
+
},
|
|
6182
|
+
{
|
|
6183
|
+
name: "sellerAssets",
|
|
6184
|
+
type: "uint256",
|
|
6185
|
+
indexed: false,
|
|
6186
|
+
internalType: "uint256",
|
|
6187
|
+
},
|
|
6188
|
+
{
|
|
6189
|
+
name: "consumed",
|
|
6190
|
+
type: "uint256",
|
|
6191
|
+
indexed: false,
|
|
6192
|
+
internalType: "uint256",
|
|
6193
|
+
},
|
|
6194
|
+
{
|
|
6195
|
+
name: "buyerPendingFeeIncrease",
|
|
6196
|
+
type: "uint256",
|
|
6197
|
+
indexed: false,
|
|
6198
|
+
internalType: "uint256",
|
|
6199
|
+
},
|
|
6200
|
+
{
|
|
6201
|
+
name: "sellerPendingFeeDecrease",
|
|
6202
|
+
type: "uint256",
|
|
6203
|
+
indexed: false,
|
|
6204
|
+
internalType: "uint256",
|
|
6205
|
+
},
|
|
6206
|
+
{
|
|
6207
|
+
name: "totalUnitsDelta",
|
|
6208
|
+
type: "int256",
|
|
6209
|
+
indexed: false,
|
|
6210
|
+
internalType: "int256",
|
|
6211
|
+
},
|
|
6212
|
+
{
|
|
6213
|
+
name: "receiver",
|
|
6214
|
+
type: "address",
|
|
6215
|
+
indexed: false,
|
|
6216
|
+
internalType: "address",
|
|
6217
|
+
},
|
|
6218
|
+
{
|
|
6219
|
+
name: "payer",
|
|
6220
|
+
type: "address",
|
|
6221
|
+
indexed: false,
|
|
6222
|
+
internalType: "address",
|
|
6223
|
+
},
|
|
6224
|
+
],
|
|
6225
|
+
anonymous: false,
|
|
6226
|
+
},
|
|
6227
|
+
{
|
|
6228
|
+
type: "event",
|
|
6229
|
+
name: "UpdatePosition",
|
|
6230
|
+
inputs: [
|
|
6231
|
+
{
|
|
6232
|
+
name: "id_",
|
|
6233
|
+
type: "bytes32",
|
|
6234
|
+
indexed: true,
|
|
6235
|
+
internalType: "bytes32",
|
|
6236
|
+
},
|
|
6237
|
+
{
|
|
6238
|
+
name: "user",
|
|
6239
|
+
type: "address",
|
|
6240
|
+
indexed: true,
|
|
6241
|
+
internalType: "address",
|
|
6242
|
+
},
|
|
6243
|
+
{
|
|
6244
|
+
name: "creditDecrease",
|
|
6245
|
+
type: "uint256",
|
|
6246
|
+
indexed: false,
|
|
6247
|
+
internalType: "uint256",
|
|
6248
|
+
},
|
|
6249
|
+
{
|
|
6250
|
+
name: "pendingFeeDecrease",
|
|
6251
|
+
type: "uint256",
|
|
6252
|
+
indexed: false,
|
|
6253
|
+
internalType: "uint256",
|
|
6254
|
+
},
|
|
6255
|
+
{
|
|
6256
|
+
name: "accruedFee",
|
|
6257
|
+
type: "uint256",
|
|
6258
|
+
indexed: false,
|
|
6259
|
+
internalType: "uint256",
|
|
6260
|
+
},
|
|
6261
|
+
],
|
|
6262
|
+
anonymous: false,
|
|
6263
|
+
},
|
|
6264
|
+
{
|
|
6265
|
+
type: "event",
|
|
6266
|
+
name: "Withdraw",
|
|
6267
|
+
inputs: [
|
|
6268
|
+
{
|
|
6269
|
+
name: "caller",
|
|
6270
|
+
type: "address",
|
|
6271
|
+
indexed: false,
|
|
6272
|
+
internalType: "address",
|
|
6273
|
+
},
|
|
6274
|
+
{
|
|
6275
|
+
name: "id_",
|
|
6276
|
+
type: "bytes32",
|
|
6277
|
+
indexed: true,
|
|
6278
|
+
internalType: "bytes32",
|
|
6279
|
+
},
|
|
6280
|
+
{
|
|
6281
|
+
name: "units",
|
|
6282
|
+
type: "uint256",
|
|
6283
|
+
indexed: false,
|
|
6284
|
+
internalType: "uint256",
|
|
6285
|
+
},
|
|
6286
|
+
{
|
|
6287
|
+
name: "onBehalf",
|
|
6288
|
+
type: "address",
|
|
6289
|
+
indexed: true,
|
|
6290
|
+
internalType: "address",
|
|
6291
|
+
},
|
|
6292
|
+
{
|
|
6293
|
+
name: "receiver",
|
|
6294
|
+
type: "address",
|
|
6295
|
+
indexed: true,
|
|
6296
|
+
internalType: "address",
|
|
6297
|
+
},
|
|
6298
|
+
{
|
|
6299
|
+
name: "pendingFeeDecrease",
|
|
6300
|
+
type: "uint256",
|
|
6301
|
+
indexed: false,
|
|
6302
|
+
internalType: "uint256",
|
|
6303
|
+
},
|
|
6304
|
+
],
|
|
6305
|
+
anonymous: false,
|
|
6306
|
+
},
|
|
6307
|
+
{
|
|
6308
|
+
type: "event",
|
|
6309
|
+
name: "WithdrawCollateral",
|
|
6310
|
+
inputs: [
|
|
6311
|
+
{
|
|
6312
|
+
name: "caller",
|
|
6313
|
+
type: "address",
|
|
6314
|
+
indexed: false,
|
|
6315
|
+
internalType: "address",
|
|
6316
|
+
},
|
|
6317
|
+
{
|
|
6318
|
+
name: "id_",
|
|
6319
|
+
type: "bytes32",
|
|
6320
|
+
indexed: true,
|
|
6321
|
+
internalType: "bytes32",
|
|
6322
|
+
},
|
|
6323
|
+
{
|
|
6324
|
+
name: "collateral",
|
|
6325
|
+
type: "address",
|
|
6326
|
+
indexed: true,
|
|
6327
|
+
internalType: "address",
|
|
6328
|
+
},
|
|
6329
|
+
{
|
|
6330
|
+
name: "assets",
|
|
6331
|
+
type: "uint256",
|
|
6332
|
+
indexed: false,
|
|
6333
|
+
internalType: "uint256",
|
|
6334
|
+
},
|
|
6335
|
+
{
|
|
6336
|
+
name: "onBehalf",
|
|
6337
|
+
type: "address",
|
|
6338
|
+
indexed: true,
|
|
6339
|
+
internalType: "address",
|
|
6340
|
+
},
|
|
6341
|
+
{
|
|
6342
|
+
name: "receiver",
|
|
6343
|
+
type: "address",
|
|
6344
|
+
indexed: false,
|
|
6345
|
+
internalType: "address",
|
|
6346
|
+
},
|
|
6347
|
+
],
|
|
6348
|
+
anonymous: false,
|
|
6349
|
+
},
|
|
6350
|
+
];
|