@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/cjs/abis.d.ts
CHANGED
|
@@ -1939,6 +1939,143 @@ export declare const midnightAbi: readonly [{
|
|
|
1939
1939
|
readonly name: "WrongSellCallbackReturnValue";
|
|
1940
1940
|
readonly inputs: readonly [];
|
|
1941
1941
|
}];
|
|
1942
|
+
/**
|
|
1943
|
+
* Pinned ABI JSON for the EcrecoverAuthorizer.
|
|
1944
|
+
*
|
|
1945
|
+
* Source: `morpho-org/midnight` commit `336b924a2bb378d810ef6d35b6dd3486759af8bd`,
|
|
1946
|
+
* `src/periphery/interfaces/IEcrecoverAuthorizer.sol`, Forge artifact `out/IEcrecoverAuthorizer.sol/IEcrecoverAuthorizer.json`.
|
|
1947
|
+
*
|
|
1948
|
+
* @example
|
|
1949
|
+
* ```ts
|
|
1950
|
+
* import { ecrecoverAuthorizerAbi } from "@morpho-org/midnight-sdk";
|
|
1951
|
+
*
|
|
1952
|
+
* console.log(ecrecoverAuthorizerAbi.length);
|
|
1953
|
+
* ```
|
|
1954
|
+
*/
|
|
1955
|
+
export declare const ecrecoverAuthorizerAbi: readonly [{
|
|
1956
|
+
readonly type: "function";
|
|
1957
|
+
readonly name: "MIDNIGHT";
|
|
1958
|
+
readonly inputs: readonly [];
|
|
1959
|
+
readonly outputs: readonly [{
|
|
1960
|
+
readonly name: "";
|
|
1961
|
+
readonly type: "address";
|
|
1962
|
+
readonly internalType: "address";
|
|
1963
|
+
}];
|
|
1964
|
+
readonly stateMutability: "view";
|
|
1965
|
+
}, {
|
|
1966
|
+
readonly type: "function";
|
|
1967
|
+
readonly name: "nonce";
|
|
1968
|
+
readonly inputs: readonly [{
|
|
1969
|
+
readonly name: "authorizer";
|
|
1970
|
+
readonly type: "address";
|
|
1971
|
+
readonly internalType: "address";
|
|
1972
|
+
}];
|
|
1973
|
+
readonly outputs: readonly [{
|
|
1974
|
+
readonly name: "";
|
|
1975
|
+
readonly type: "uint256";
|
|
1976
|
+
readonly internalType: "uint256";
|
|
1977
|
+
}];
|
|
1978
|
+
readonly stateMutability: "view";
|
|
1979
|
+
}, {
|
|
1980
|
+
readonly type: "function";
|
|
1981
|
+
readonly name: "setIsAuthorized";
|
|
1982
|
+
readonly inputs: readonly [{
|
|
1983
|
+
readonly name: "authorization";
|
|
1984
|
+
readonly type: "tuple";
|
|
1985
|
+
readonly internalType: "struct Authorization";
|
|
1986
|
+
readonly components: readonly [{
|
|
1987
|
+
readonly name: "authorizer";
|
|
1988
|
+
readonly type: "address";
|
|
1989
|
+
readonly internalType: "address";
|
|
1990
|
+
}, {
|
|
1991
|
+
readonly name: "authorized";
|
|
1992
|
+
readonly type: "address";
|
|
1993
|
+
readonly internalType: "address";
|
|
1994
|
+
}, {
|
|
1995
|
+
readonly name: "isAuthorized";
|
|
1996
|
+
readonly type: "bool";
|
|
1997
|
+
readonly internalType: "bool";
|
|
1998
|
+
}, {
|
|
1999
|
+
readonly name: "nonce";
|
|
2000
|
+
readonly type: "uint256";
|
|
2001
|
+
readonly internalType: "uint256";
|
|
2002
|
+
}, {
|
|
2003
|
+
readonly name: "deadline";
|
|
2004
|
+
readonly type: "uint256";
|
|
2005
|
+
readonly internalType: "uint256";
|
|
2006
|
+
}];
|
|
2007
|
+
}, {
|
|
2008
|
+
readonly name: "signature";
|
|
2009
|
+
readonly type: "tuple";
|
|
2010
|
+
readonly internalType: "struct Signature";
|
|
2011
|
+
readonly components: readonly [{
|
|
2012
|
+
readonly name: "v";
|
|
2013
|
+
readonly type: "uint8";
|
|
2014
|
+
readonly internalType: "uint8";
|
|
2015
|
+
}, {
|
|
2016
|
+
readonly name: "r";
|
|
2017
|
+
readonly type: "bytes32";
|
|
2018
|
+
readonly internalType: "bytes32";
|
|
2019
|
+
}, {
|
|
2020
|
+
readonly name: "s";
|
|
2021
|
+
readonly type: "bytes32";
|
|
2022
|
+
readonly internalType: "bytes32";
|
|
2023
|
+
}];
|
|
2024
|
+
}];
|
|
2025
|
+
readonly outputs: readonly [];
|
|
2026
|
+
readonly stateMutability: "nonpayable";
|
|
2027
|
+
}, {
|
|
2028
|
+
readonly type: "event";
|
|
2029
|
+
readonly name: "SetIsAuthorized";
|
|
2030
|
+
readonly inputs: readonly [{
|
|
2031
|
+
readonly name: "caller";
|
|
2032
|
+
readonly type: "address";
|
|
2033
|
+
readonly indexed: true;
|
|
2034
|
+
readonly internalType: "address";
|
|
2035
|
+
}, {
|
|
2036
|
+
readonly name: "authorizer";
|
|
2037
|
+
readonly type: "address";
|
|
2038
|
+
readonly indexed: true;
|
|
2039
|
+
readonly internalType: "address";
|
|
2040
|
+
}, {
|
|
2041
|
+
readonly name: "authorized";
|
|
2042
|
+
readonly type: "address";
|
|
2043
|
+
readonly indexed: true;
|
|
2044
|
+
readonly internalType: "address";
|
|
2045
|
+
}, {
|
|
2046
|
+
readonly name: "isAuthorized";
|
|
2047
|
+
readonly type: "bool";
|
|
2048
|
+
readonly indexed: false;
|
|
2049
|
+
readonly internalType: "bool";
|
|
2050
|
+
}, {
|
|
2051
|
+
readonly name: "nonce";
|
|
2052
|
+
readonly type: "uint256";
|
|
2053
|
+
readonly indexed: false;
|
|
2054
|
+
readonly internalType: "uint256";
|
|
2055
|
+
}, {
|
|
2056
|
+
readonly name: "signer";
|
|
2057
|
+
readonly type: "address";
|
|
2058
|
+
readonly indexed: false;
|
|
2059
|
+
readonly internalType: "address";
|
|
2060
|
+
}];
|
|
2061
|
+
readonly anonymous: false;
|
|
2062
|
+
}, {
|
|
2063
|
+
readonly type: "error";
|
|
2064
|
+
readonly name: "Expired";
|
|
2065
|
+
readonly inputs: readonly [];
|
|
2066
|
+
}, {
|
|
2067
|
+
readonly type: "error";
|
|
2068
|
+
readonly name: "InvalidNonce";
|
|
2069
|
+
readonly inputs: readonly [];
|
|
2070
|
+
}, {
|
|
2071
|
+
readonly type: "error";
|
|
2072
|
+
readonly name: "InvalidSignature";
|
|
2073
|
+
readonly inputs: readonly [];
|
|
2074
|
+
}, {
|
|
2075
|
+
readonly type: "error";
|
|
2076
|
+
readonly name: "Unauthorized";
|
|
2077
|
+
readonly inputs: readonly [];
|
|
2078
|
+
}];
|
|
1942
2079
|
/**
|
|
1943
2080
|
* Pinned ABI JSON for the EcrecoverRatifier.
|
|
1944
2081
|
*
|
|
@@ -4560,3 +4697,688 @@ export declare const blueBuyCallbackFactoryAbi: readonly [{
|
|
|
4560
4697
|
}];
|
|
4561
4698
|
readonly anonymous: false;
|
|
4562
4699
|
}];
|
|
4700
|
+
/**
|
|
4701
|
+
* Pinned ABI JSON for the events emitted by the core Midnight contract.
|
|
4702
|
+
*
|
|
4703
|
+
* Source: `morpho-org/midnight` commit `336b924a2bb378d810ef6d35b6dd3486759af8bd`,
|
|
4704
|
+
* `src/libraries/EventsLib.sol`, `forge inspect src/libraries/EventsLib.sol:EventsLib abi`.
|
|
4705
|
+
*
|
|
4706
|
+
* @example
|
|
4707
|
+
* ```ts
|
|
4708
|
+
* import { decodeEventLog, type Log } from "viem";
|
|
4709
|
+
* import { midnightEventsAbi } from "@morpho-org/midnight-sdk";
|
|
4710
|
+
*
|
|
4711
|
+
* declare const log: Log; // e.g. from a transaction receipt
|
|
4712
|
+
* const { eventName, args } = decodeEventLog({
|
|
4713
|
+
* abi: midnightEventsAbi,
|
|
4714
|
+
* data: log.data,
|
|
4715
|
+
* topics: log.topics,
|
|
4716
|
+
* });
|
|
4717
|
+
* ```
|
|
4718
|
+
*/
|
|
4719
|
+
export declare const midnightEventsAbi: readonly [{
|
|
4720
|
+
readonly type: "event";
|
|
4721
|
+
readonly name: "ClaimContinuousFee";
|
|
4722
|
+
readonly inputs: readonly [{
|
|
4723
|
+
readonly name: "caller";
|
|
4724
|
+
readonly type: "address";
|
|
4725
|
+
readonly indexed: true;
|
|
4726
|
+
readonly internalType: "address";
|
|
4727
|
+
}, {
|
|
4728
|
+
readonly name: "id_";
|
|
4729
|
+
readonly type: "bytes32";
|
|
4730
|
+
readonly indexed: true;
|
|
4731
|
+
readonly internalType: "bytes32";
|
|
4732
|
+
}, {
|
|
4733
|
+
readonly name: "amount";
|
|
4734
|
+
readonly type: "uint256";
|
|
4735
|
+
readonly indexed: false;
|
|
4736
|
+
readonly internalType: "uint256";
|
|
4737
|
+
}, {
|
|
4738
|
+
readonly name: "receiver";
|
|
4739
|
+
readonly type: "address";
|
|
4740
|
+
readonly indexed: true;
|
|
4741
|
+
readonly internalType: "address";
|
|
4742
|
+
}];
|
|
4743
|
+
readonly anonymous: false;
|
|
4744
|
+
}, {
|
|
4745
|
+
readonly type: "event";
|
|
4746
|
+
readonly name: "ClaimSettlementFee";
|
|
4747
|
+
readonly inputs: readonly [{
|
|
4748
|
+
readonly name: "caller";
|
|
4749
|
+
readonly type: "address";
|
|
4750
|
+
readonly indexed: true;
|
|
4751
|
+
readonly internalType: "address";
|
|
4752
|
+
}, {
|
|
4753
|
+
readonly name: "token";
|
|
4754
|
+
readonly type: "address";
|
|
4755
|
+
readonly indexed: true;
|
|
4756
|
+
readonly internalType: "address";
|
|
4757
|
+
}, {
|
|
4758
|
+
readonly name: "amount";
|
|
4759
|
+
readonly type: "uint256";
|
|
4760
|
+
readonly indexed: false;
|
|
4761
|
+
readonly internalType: "uint256";
|
|
4762
|
+
}, {
|
|
4763
|
+
readonly name: "receiver";
|
|
4764
|
+
readonly type: "address";
|
|
4765
|
+
readonly indexed: true;
|
|
4766
|
+
readonly internalType: "address";
|
|
4767
|
+
}];
|
|
4768
|
+
readonly anonymous: false;
|
|
4769
|
+
}, {
|
|
4770
|
+
readonly type: "event";
|
|
4771
|
+
readonly name: "Constructor";
|
|
4772
|
+
readonly inputs: readonly [{
|
|
4773
|
+
readonly name: "configurator";
|
|
4774
|
+
readonly type: "address";
|
|
4775
|
+
readonly indexed: true;
|
|
4776
|
+
readonly internalType: "address";
|
|
4777
|
+
}];
|
|
4778
|
+
readonly anonymous: false;
|
|
4779
|
+
}, {
|
|
4780
|
+
readonly type: "event";
|
|
4781
|
+
readonly name: "EnableLiquidationCursor";
|
|
4782
|
+
readonly inputs: readonly [{
|
|
4783
|
+
readonly name: "liquidationCursor";
|
|
4784
|
+
readonly type: "uint256";
|
|
4785
|
+
readonly indexed: false;
|
|
4786
|
+
readonly internalType: "uint256";
|
|
4787
|
+
}];
|
|
4788
|
+
readonly anonymous: false;
|
|
4789
|
+
}, {
|
|
4790
|
+
readonly type: "event";
|
|
4791
|
+
readonly name: "EnableLltv";
|
|
4792
|
+
readonly inputs: readonly [{
|
|
4793
|
+
readonly name: "lltv";
|
|
4794
|
+
readonly type: "uint256";
|
|
4795
|
+
readonly indexed: false;
|
|
4796
|
+
readonly internalType: "uint256";
|
|
4797
|
+
}];
|
|
4798
|
+
readonly anonymous: false;
|
|
4799
|
+
}, {
|
|
4800
|
+
readonly type: "event";
|
|
4801
|
+
readonly name: "FlashLoan";
|
|
4802
|
+
readonly inputs: readonly [{
|
|
4803
|
+
readonly name: "caller";
|
|
4804
|
+
readonly type: "address";
|
|
4805
|
+
readonly indexed: true;
|
|
4806
|
+
readonly internalType: "address";
|
|
4807
|
+
}, {
|
|
4808
|
+
readonly name: "tokens";
|
|
4809
|
+
readonly type: "address[]";
|
|
4810
|
+
readonly indexed: false;
|
|
4811
|
+
readonly internalType: "address[]";
|
|
4812
|
+
}, {
|
|
4813
|
+
readonly name: "assets";
|
|
4814
|
+
readonly type: "uint256[]";
|
|
4815
|
+
readonly indexed: false;
|
|
4816
|
+
readonly internalType: "uint256[]";
|
|
4817
|
+
}, {
|
|
4818
|
+
readonly name: "callback";
|
|
4819
|
+
readonly type: "address";
|
|
4820
|
+
readonly indexed: true;
|
|
4821
|
+
readonly internalType: "address";
|
|
4822
|
+
}];
|
|
4823
|
+
readonly anonymous: false;
|
|
4824
|
+
}, {
|
|
4825
|
+
readonly type: "event";
|
|
4826
|
+
readonly name: "Liquidate";
|
|
4827
|
+
readonly inputs: readonly [{
|
|
4828
|
+
readonly name: "caller";
|
|
4829
|
+
readonly type: "address";
|
|
4830
|
+
readonly indexed: false;
|
|
4831
|
+
readonly internalType: "address";
|
|
4832
|
+
}, {
|
|
4833
|
+
readonly name: "id_";
|
|
4834
|
+
readonly type: "bytes32";
|
|
4835
|
+
readonly indexed: true;
|
|
4836
|
+
readonly internalType: "bytes32";
|
|
4837
|
+
}, {
|
|
4838
|
+
readonly name: "collateral";
|
|
4839
|
+
readonly type: "address";
|
|
4840
|
+
readonly indexed: true;
|
|
4841
|
+
readonly internalType: "address";
|
|
4842
|
+
}, {
|
|
4843
|
+
readonly name: "seizedAssets";
|
|
4844
|
+
readonly type: "uint256";
|
|
4845
|
+
readonly indexed: false;
|
|
4846
|
+
readonly internalType: "uint256";
|
|
4847
|
+
}, {
|
|
4848
|
+
readonly name: "repaidUnits";
|
|
4849
|
+
readonly type: "uint256";
|
|
4850
|
+
readonly indexed: false;
|
|
4851
|
+
readonly internalType: "uint256";
|
|
4852
|
+
}, {
|
|
4853
|
+
readonly name: "borrower";
|
|
4854
|
+
readonly type: "address";
|
|
4855
|
+
readonly indexed: true;
|
|
4856
|
+
readonly internalType: "address";
|
|
4857
|
+
}, {
|
|
4858
|
+
readonly name: "postMaturityMode";
|
|
4859
|
+
readonly type: "bool";
|
|
4860
|
+
readonly indexed: false;
|
|
4861
|
+
readonly internalType: "bool";
|
|
4862
|
+
}, {
|
|
4863
|
+
readonly name: "receiver";
|
|
4864
|
+
readonly type: "address";
|
|
4865
|
+
readonly indexed: false;
|
|
4866
|
+
readonly internalType: "address";
|
|
4867
|
+
}, {
|
|
4868
|
+
readonly name: "payer";
|
|
4869
|
+
readonly type: "address";
|
|
4870
|
+
readonly indexed: false;
|
|
4871
|
+
readonly internalType: "address";
|
|
4872
|
+
}, {
|
|
4873
|
+
readonly name: "badDebt";
|
|
4874
|
+
readonly type: "uint256";
|
|
4875
|
+
readonly indexed: false;
|
|
4876
|
+
readonly internalType: "uint256";
|
|
4877
|
+
}, {
|
|
4878
|
+
readonly name: "latestLossFactor";
|
|
4879
|
+
readonly type: "uint256";
|
|
4880
|
+
readonly indexed: false;
|
|
4881
|
+
readonly internalType: "uint256";
|
|
4882
|
+
}, {
|
|
4883
|
+
readonly name: "latestContinuousFeeCredit";
|
|
4884
|
+
readonly type: "uint256";
|
|
4885
|
+
readonly indexed: false;
|
|
4886
|
+
readonly internalType: "uint256";
|
|
4887
|
+
}];
|
|
4888
|
+
readonly anonymous: false;
|
|
4889
|
+
}, {
|
|
4890
|
+
readonly type: "event";
|
|
4891
|
+
readonly name: "MarketCreated";
|
|
4892
|
+
readonly inputs: readonly [{
|
|
4893
|
+
readonly name: "market";
|
|
4894
|
+
readonly type: "tuple";
|
|
4895
|
+
readonly indexed: false;
|
|
4896
|
+
readonly internalType: "struct Market";
|
|
4897
|
+
readonly components: readonly [{
|
|
4898
|
+
readonly name: "chainId";
|
|
4899
|
+
readonly type: "uint256";
|
|
4900
|
+
readonly internalType: "uint256";
|
|
4901
|
+
}, {
|
|
4902
|
+
readonly name: "midnight";
|
|
4903
|
+
readonly type: "address";
|
|
4904
|
+
readonly internalType: "address";
|
|
4905
|
+
}, {
|
|
4906
|
+
readonly name: "loanToken";
|
|
4907
|
+
readonly type: "address";
|
|
4908
|
+
readonly internalType: "address";
|
|
4909
|
+
}, {
|
|
4910
|
+
readonly name: "collateralParams";
|
|
4911
|
+
readonly type: "tuple[]";
|
|
4912
|
+
readonly internalType: "struct CollateralParams[]";
|
|
4913
|
+
readonly components: readonly [{
|
|
4914
|
+
readonly name: "token";
|
|
4915
|
+
readonly type: "address";
|
|
4916
|
+
readonly internalType: "address";
|
|
4917
|
+
}, {
|
|
4918
|
+
readonly name: "lltv";
|
|
4919
|
+
readonly type: "uint256";
|
|
4920
|
+
readonly internalType: "uint256";
|
|
4921
|
+
}, {
|
|
4922
|
+
readonly name: "liquidationCursor";
|
|
4923
|
+
readonly type: "uint256";
|
|
4924
|
+
readonly internalType: "uint256";
|
|
4925
|
+
}, {
|
|
4926
|
+
readonly name: "oracle";
|
|
4927
|
+
readonly type: "address";
|
|
4928
|
+
readonly internalType: "address";
|
|
4929
|
+
}];
|
|
4930
|
+
}, {
|
|
4931
|
+
readonly name: "maturity";
|
|
4932
|
+
readonly type: "uint256";
|
|
4933
|
+
readonly internalType: "uint256";
|
|
4934
|
+
}, {
|
|
4935
|
+
readonly name: "rcfThreshold";
|
|
4936
|
+
readonly type: "uint256";
|
|
4937
|
+
readonly internalType: "uint256";
|
|
4938
|
+
}, {
|
|
4939
|
+
readonly name: "enterGate";
|
|
4940
|
+
readonly type: "address";
|
|
4941
|
+
readonly internalType: "address";
|
|
4942
|
+
}, {
|
|
4943
|
+
readonly name: "liquidatorGate";
|
|
4944
|
+
readonly type: "address";
|
|
4945
|
+
readonly internalType: "address";
|
|
4946
|
+
}];
|
|
4947
|
+
}, {
|
|
4948
|
+
readonly name: "id_";
|
|
4949
|
+
readonly type: "bytes32";
|
|
4950
|
+
readonly indexed: true;
|
|
4951
|
+
readonly internalType: "bytes32";
|
|
4952
|
+
}];
|
|
4953
|
+
readonly anonymous: false;
|
|
4954
|
+
}, {
|
|
4955
|
+
readonly type: "event";
|
|
4956
|
+
readonly name: "Repay";
|
|
4957
|
+
readonly inputs: readonly [{
|
|
4958
|
+
readonly name: "caller";
|
|
4959
|
+
readonly type: "address";
|
|
4960
|
+
readonly indexed: true;
|
|
4961
|
+
readonly internalType: "address";
|
|
4962
|
+
}, {
|
|
4963
|
+
readonly name: "id_";
|
|
4964
|
+
readonly type: "bytes32";
|
|
4965
|
+
readonly indexed: true;
|
|
4966
|
+
readonly internalType: "bytes32";
|
|
4967
|
+
}, {
|
|
4968
|
+
readonly name: "units";
|
|
4969
|
+
readonly type: "uint256";
|
|
4970
|
+
readonly indexed: false;
|
|
4971
|
+
readonly internalType: "uint256";
|
|
4972
|
+
}, {
|
|
4973
|
+
readonly name: "onBehalf";
|
|
4974
|
+
readonly type: "address";
|
|
4975
|
+
readonly indexed: true;
|
|
4976
|
+
readonly internalType: "address";
|
|
4977
|
+
}, {
|
|
4978
|
+
readonly name: "payer";
|
|
4979
|
+
readonly type: "address";
|
|
4980
|
+
readonly indexed: false;
|
|
4981
|
+
readonly internalType: "address";
|
|
4982
|
+
}];
|
|
4983
|
+
readonly anonymous: false;
|
|
4984
|
+
}, {
|
|
4985
|
+
readonly type: "event";
|
|
4986
|
+
readonly name: "SetConfigurator";
|
|
4987
|
+
readonly inputs: readonly [{
|
|
4988
|
+
readonly name: "configurator";
|
|
4989
|
+
readonly type: "address";
|
|
4990
|
+
readonly indexed: true;
|
|
4991
|
+
readonly internalType: "address";
|
|
4992
|
+
}];
|
|
4993
|
+
readonly anonymous: false;
|
|
4994
|
+
}, {
|
|
4995
|
+
readonly type: "event";
|
|
4996
|
+
readonly name: "SetConsumed";
|
|
4997
|
+
readonly inputs: readonly [{
|
|
4998
|
+
readonly name: "caller";
|
|
4999
|
+
readonly type: "address";
|
|
5000
|
+
readonly indexed: true;
|
|
5001
|
+
readonly internalType: "address";
|
|
5002
|
+
}, {
|
|
5003
|
+
readonly name: "group";
|
|
5004
|
+
readonly type: "bytes32";
|
|
5005
|
+
readonly indexed: true;
|
|
5006
|
+
readonly internalType: "bytes32";
|
|
5007
|
+
}, {
|
|
5008
|
+
readonly name: "amount";
|
|
5009
|
+
readonly type: "uint256";
|
|
5010
|
+
readonly indexed: false;
|
|
5011
|
+
readonly internalType: "uint256";
|
|
5012
|
+
}, {
|
|
5013
|
+
readonly name: "onBehalf";
|
|
5014
|
+
readonly type: "address";
|
|
5015
|
+
readonly indexed: true;
|
|
5016
|
+
readonly internalType: "address";
|
|
5017
|
+
}];
|
|
5018
|
+
readonly anonymous: false;
|
|
5019
|
+
}, {
|
|
5020
|
+
readonly type: "event";
|
|
5021
|
+
readonly name: "SetDefaultContinuousFee";
|
|
5022
|
+
readonly inputs: readonly [{
|
|
5023
|
+
readonly name: "loanToken";
|
|
5024
|
+
readonly type: "address";
|
|
5025
|
+
readonly indexed: true;
|
|
5026
|
+
readonly internalType: "address";
|
|
5027
|
+
}, {
|
|
5028
|
+
readonly name: "newContinuousFee";
|
|
5029
|
+
readonly type: "uint256";
|
|
5030
|
+
readonly indexed: false;
|
|
5031
|
+
readonly internalType: "uint256";
|
|
5032
|
+
}];
|
|
5033
|
+
readonly anonymous: false;
|
|
5034
|
+
}, {
|
|
5035
|
+
readonly type: "event";
|
|
5036
|
+
readonly name: "SetDefaultSettlementFee";
|
|
5037
|
+
readonly inputs: readonly [{
|
|
5038
|
+
readonly name: "loanToken";
|
|
5039
|
+
readonly type: "address";
|
|
5040
|
+
readonly indexed: true;
|
|
5041
|
+
readonly internalType: "address";
|
|
5042
|
+
}, {
|
|
5043
|
+
readonly name: "index";
|
|
5044
|
+
readonly type: "uint256";
|
|
5045
|
+
readonly indexed: true;
|
|
5046
|
+
readonly internalType: "uint256";
|
|
5047
|
+
}, {
|
|
5048
|
+
readonly name: "newSettlementFee";
|
|
5049
|
+
readonly type: "uint256";
|
|
5050
|
+
readonly indexed: false;
|
|
5051
|
+
readonly internalType: "uint256";
|
|
5052
|
+
}];
|
|
5053
|
+
readonly anonymous: false;
|
|
5054
|
+
}, {
|
|
5055
|
+
readonly type: "event";
|
|
5056
|
+
readonly name: "SetFeeClaimer";
|
|
5057
|
+
readonly inputs: readonly [{
|
|
5058
|
+
readonly name: "feeClaimer";
|
|
5059
|
+
readonly type: "address";
|
|
5060
|
+
readonly indexed: true;
|
|
5061
|
+
readonly internalType: "address";
|
|
5062
|
+
}];
|
|
5063
|
+
readonly anonymous: false;
|
|
5064
|
+
}, {
|
|
5065
|
+
readonly type: "event";
|
|
5066
|
+
readonly name: "SetFeeSetter";
|
|
5067
|
+
readonly inputs: readonly [{
|
|
5068
|
+
readonly name: "feeSetter";
|
|
5069
|
+
readonly type: "address";
|
|
5070
|
+
readonly indexed: true;
|
|
5071
|
+
readonly internalType: "address";
|
|
5072
|
+
}];
|
|
5073
|
+
readonly anonymous: false;
|
|
5074
|
+
}, {
|
|
5075
|
+
readonly type: "event";
|
|
5076
|
+
readonly name: "SetIsAuthorized";
|
|
5077
|
+
readonly inputs: readonly [{
|
|
5078
|
+
readonly name: "caller";
|
|
5079
|
+
readonly type: "address";
|
|
5080
|
+
readonly indexed: true;
|
|
5081
|
+
readonly internalType: "address";
|
|
5082
|
+
}, {
|
|
5083
|
+
readonly name: "authorized";
|
|
5084
|
+
readonly type: "address";
|
|
5085
|
+
readonly indexed: true;
|
|
5086
|
+
readonly internalType: "address";
|
|
5087
|
+
}, {
|
|
5088
|
+
readonly name: "newIsAuthorized";
|
|
5089
|
+
readonly type: "bool";
|
|
5090
|
+
readonly indexed: false;
|
|
5091
|
+
readonly internalType: "bool";
|
|
5092
|
+
}, {
|
|
5093
|
+
readonly name: "onBehalf";
|
|
5094
|
+
readonly type: "address";
|
|
5095
|
+
readonly indexed: true;
|
|
5096
|
+
readonly internalType: "address";
|
|
5097
|
+
}];
|
|
5098
|
+
readonly anonymous: false;
|
|
5099
|
+
}, {
|
|
5100
|
+
readonly type: "event";
|
|
5101
|
+
readonly name: "SetMarketContinuousFee";
|
|
5102
|
+
readonly inputs: readonly [{
|
|
5103
|
+
readonly name: "id_";
|
|
5104
|
+
readonly type: "bytes32";
|
|
5105
|
+
readonly indexed: true;
|
|
5106
|
+
readonly internalType: "bytes32";
|
|
5107
|
+
}, {
|
|
5108
|
+
readonly name: "newContinuousFee";
|
|
5109
|
+
readonly type: "uint256";
|
|
5110
|
+
readonly indexed: false;
|
|
5111
|
+
readonly internalType: "uint256";
|
|
5112
|
+
}];
|
|
5113
|
+
readonly anonymous: false;
|
|
5114
|
+
}, {
|
|
5115
|
+
readonly type: "event";
|
|
5116
|
+
readonly name: "SetMarketSettlementFee";
|
|
5117
|
+
readonly inputs: readonly [{
|
|
5118
|
+
readonly name: "id_";
|
|
5119
|
+
readonly type: "bytes32";
|
|
5120
|
+
readonly indexed: true;
|
|
5121
|
+
readonly internalType: "bytes32";
|
|
5122
|
+
}, {
|
|
5123
|
+
readonly name: "index";
|
|
5124
|
+
readonly type: "uint256";
|
|
5125
|
+
readonly indexed: true;
|
|
5126
|
+
readonly internalType: "uint256";
|
|
5127
|
+
}, {
|
|
5128
|
+
readonly name: "newSettlementFee";
|
|
5129
|
+
readonly type: "uint256";
|
|
5130
|
+
readonly indexed: false;
|
|
5131
|
+
readonly internalType: "uint256";
|
|
5132
|
+
}];
|
|
5133
|
+
readonly anonymous: false;
|
|
5134
|
+
}, {
|
|
5135
|
+
readonly type: "event";
|
|
5136
|
+
readonly name: "SetMarketTickSpacing";
|
|
5137
|
+
readonly inputs: readonly [{
|
|
5138
|
+
readonly name: "id_";
|
|
5139
|
+
readonly type: "bytes32";
|
|
5140
|
+
readonly indexed: true;
|
|
5141
|
+
readonly internalType: "bytes32";
|
|
5142
|
+
}, {
|
|
5143
|
+
readonly name: "newTickSpacing";
|
|
5144
|
+
readonly type: "uint256";
|
|
5145
|
+
readonly indexed: false;
|
|
5146
|
+
readonly internalType: "uint256";
|
|
5147
|
+
}];
|
|
5148
|
+
readonly anonymous: false;
|
|
5149
|
+
}, {
|
|
5150
|
+
readonly type: "event";
|
|
5151
|
+
readonly name: "SetTickSpacingSetter";
|
|
5152
|
+
readonly inputs: readonly [{
|
|
5153
|
+
readonly name: "tickSpacingSetter";
|
|
5154
|
+
readonly type: "address";
|
|
5155
|
+
readonly indexed: true;
|
|
5156
|
+
readonly internalType: "address";
|
|
5157
|
+
}];
|
|
5158
|
+
readonly anonymous: false;
|
|
5159
|
+
}, {
|
|
5160
|
+
readonly type: "event";
|
|
5161
|
+
readonly name: "SupplyCollateral";
|
|
5162
|
+
readonly inputs: readonly [{
|
|
5163
|
+
readonly name: "caller";
|
|
5164
|
+
readonly type: "address";
|
|
5165
|
+
readonly indexed: false;
|
|
5166
|
+
readonly internalType: "address";
|
|
5167
|
+
}, {
|
|
5168
|
+
readonly name: "id_";
|
|
5169
|
+
readonly type: "bytes32";
|
|
5170
|
+
readonly indexed: true;
|
|
5171
|
+
readonly internalType: "bytes32";
|
|
5172
|
+
}, {
|
|
5173
|
+
readonly name: "collateral";
|
|
5174
|
+
readonly type: "address";
|
|
5175
|
+
readonly indexed: true;
|
|
5176
|
+
readonly internalType: "address";
|
|
5177
|
+
}, {
|
|
5178
|
+
readonly name: "assets";
|
|
5179
|
+
readonly type: "uint256";
|
|
5180
|
+
readonly indexed: false;
|
|
5181
|
+
readonly internalType: "uint256";
|
|
5182
|
+
}, {
|
|
5183
|
+
readonly name: "onBehalf";
|
|
5184
|
+
readonly type: "address";
|
|
5185
|
+
readonly indexed: true;
|
|
5186
|
+
readonly internalType: "address";
|
|
5187
|
+
}];
|
|
5188
|
+
readonly anonymous: false;
|
|
5189
|
+
}, {
|
|
5190
|
+
readonly type: "event";
|
|
5191
|
+
readonly name: "Take";
|
|
5192
|
+
readonly inputs: readonly [{
|
|
5193
|
+
readonly name: "caller";
|
|
5194
|
+
readonly type: "address";
|
|
5195
|
+
readonly indexed: false;
|
|
5196
|
+
readonly internalType: "address";
|
|
5197
|
+
}, {
|
|
5198
|
+
readonly name: "offerHash";
|
|
5199
|
+
readonly type: "bytes32";
|
|
5200
|
+
readonly indexed: false;
|
|
5201
|
+
readonly internalType: "bytes32";
|
|
5202
|
+
}, {
|
|
5203
|
+
readonly name: "id_";
|
|
5204
|
+
readonly type: "bytes32";
|
|
5205
|
+
readonly indexed: true;
|
|
5206
|
+
readonly internalType: "bytes32";
|
|
5207
|
+
}, {
|
|
5208
|
+
readonly name: "offerIsBuy";
|
|
5209
|
+
readonly type: "bool";
|
|
5210
|
+
readonly indexed: false;
|
|
5211
|
+
readonly internalType: "bool";
|
|
5212
|
+
}, {
|
|
5213
|
+
readonly name: "maker";
|
|
5214
|
+
readonly type: "address";
|
|
5215
|
+
readonly indexed: true;
|
|
5216
|
+
readonly internalType: "address";
|
|
5217
|
+
}, {
|
|
5218
|
+
readonly name: "group";
|
|
5219
|
+
readonly type: "bytes32";
|
|
5220
|
+
readonly indexed: false;
|
|
5221
|
+
readonly internalType: "bytes32";
|
|
5222
|
+
}, {
|
|
5223
|
+
readonly name: "ratifier";
|
|
5224
|
+
readonly type: "address";
|
|
5225
|
+
readonly indexed: false;
|
|
5226
|
+
readonly internalType: "address";
|
|
5227
|
+
}, {
|
|
5228
|
+
readonly name: "ratifierData";
|
|
5229
|
+
readonly type: "bytes";
|
|
5230
|
+
readonly indexed: false;
|
|
5231
|
+
readonly internalType: "bytes";
|
|
5232
|
+
}, {
|
|
5233
|
+
readonly name: "units";
|
|
5234
|
+
readonly type: "uint256";
|
|
5235
|
+
readonly indexed: false;
|
|
5236
|
+
readonly internalType: "uint256";
|
|
5237
|
+
}, {
|
|
5238
|
+
readonly name: "taker";
|
|
5239
|
+
readonly type: "address";
|
|
5240
|
+
readonly indexed: true;
|
|
5241
|
+
readonly internalType: "address";
|
|
5242
|
+
}, {
|
|
5243
|
+
readonly name: "buyerAssets";
|
|
5244
|
+
readonly type: "uint256";
|
|
5245
|
+
readonly indexed: false;
|
|
5246
|
+
readonly internalType: "uint256";
|
|
5247
|
+
}, {
|
|
5248
|
+
readonly name: "sellerAssets";
|
|
5249
|
+
readonly type: "uint256";
|
|
5250
|
+
readonly indexed: false;
|
|
5251
|
+
readonly internalType: "uint256";
|
|
5252
|
+
}, {
|
|
5253
|
+
readonly name: "consumed";
|
|
5254
|
+
readonly type: "uint256";
|
|
5255
|
+
readonly indexed: false;
|
|
5256
|
+
readonly internalType: "uint256";
|
|
5257
|
+
}, {
|
|
5258
|
+
readonly name: "buyerPendingFeeIncrease";
|
|
5259
|
+
readonly type: "uint256";
|
|
5260
|
+
readonly indexed: false;
|
|
5261
|
+
readonly internalType: "uint256";
|
|
5262
|
+
}, {
|
|
5263
|
+
readonly name: "sellerPendingFeeDecrease";
|
|
5264
|
+
readonly type: "uint256";
|
|
5265
|
+
readonly indexed: false;
|
|
5266
|
+
readonly internalType: "uint256";
|
|
5267
|
+
}, {
|
|
5268
|
+
readonly name: "totalUnitsDelta";
|
|
5269
|
+
readonly type: "int256";
|
|
5270
|
+
readonly indexed: false;
|
|
5271
|
+
readonly internalType: "int256";
|
|
5272
|
+
}, {
|
|
5273
|
+
readonly name: "receiver";
|
|
5274
|
+
readonly type: "address";
|
|
5275
|
+
readonly indexed: false;
|
|
5276
|
+
readonly internalType: "address";
|
|
5277
|
+
}, {
|
|
5278
|
+
readonly name: "payer";
|
|
5279
|
+
readonly type: "address";
|
|
5280
|
+
readonly indexed: false;
|
|
5281
|
+
readonly internalType: "address";
|
|
5282
|
+
}];
|
|
5283
|
+
readonly anonymous: false;
|
|
5284
|
+
}, {
|
|
5285
|
+
readonly type: "event";
|
|
5286
|
+
readonly name: "UpdatePosition";
|
|
5287
|
+
readonly inputs: readonly [{
|
|
5288
|
+
readonly name: "id_";
|
|
5289
|
+
readonly type: "bytes32";
|
|
5290
|
+
readonly indexed: true;
|
|
5291
|
+
readonly internalType: "bytes32";
|
|
5292
|
+
}, {
|
|
5293
|
+
readonly name: "user";
|
|
5294
|
+
readonly type: "address";
|
|
5295
|
+
readonly indexed: true;
|
|
5296
|
+
readonly internalType: "address";
|
|
5297
|
+
}, {
|
|
5298
|
+
readonly name: "creditDecrease";
|
|
5299
|
+
readonly type: "uint256";
|
|
5300
|
+
readonly indexed: false;
|
|
5301
|
+
readonly internalType: "uint256";
|
|
5302
|
+
}, {
|
|
5303
|
+
readonly name: "pendingFeeDecrease";
|
|
5304
|
+
readonly type: "uint256";
|
|
5305
|
+
readonly indexed: false;
|
|
5306
|
+
readonly internalType: "uint256";
|
|
5307
|
+
}, {
|
|
5308
|
+
readonly name: "accruedFee";
|
|
5309
|
+
readonly type: "uint256";
|
|
5310
|
+
readonly indexed: false;
|
|
5311
|
+
readonly internalType: "uint256";
|
|
5312
|
+
}];
|
|
5313
|
+
readonly anonymous: false;
|
|
5314
|
+
}, {
|
|
5315
|
+
readonly type: "event";
|
|
5316
|
+
readonly name: "Withdraw";
|
|
5317
|
+
readonly inputs: readonly [{
|
|
5318
|
+
readonly name: "caller";
|
|
5319
|
+
readonly type: "address";
|
|
5320
|
+
readonly indexed: false;
|
|
5321
|
+
readonly internalType: "address";
|
|
5322
|
+
}, {
|
|
5323
|
+
readonly name: "id_";
|
|
5324
|
+
readonly type: "bytes32";
|
|
5325
|
+
readonly indexed: true;
|
|
5326
|
+
readonly internalType: "bytes32";
|
|
5327
|
+
}, {
|
|
5328
|
+
readonly name: "units";
|
|
5329
|
+
readonly type: "uint256";
|
|
5330
|
+
readonly indexed: false;
|
|
5331
|
+
readonly internalType: "uint256";
|
|
5332
|
+
}, {
|
|
5333
|
+
readonly name: "onBehalf";
|
|
5334
|
+
readonly type: "address";
|
|
5335
|
+
readonly indexed: true;
|
|
5336
|
+
readonly internalType: "address";
|
|
5337
|
+
}, {
|
|
5338
|
+
readonly name: "receiver";
|
|
5339
|
+
readonly type: "address";
|
|
5340
|
+
readonly indexed: true;
|
|
5341
|
+
readonly internalType: "address";
|
|
5342
|
+
}, {
|
|
5343
|
+
readonly name: "pendingFeeDecrease";
|
|
5344
|
+
readonly type: "uint256";
|
|
5345
|
+
readonly indexed: false;
|
|
5346
|
+
readonly internalType: "uint256";
|
|
5347
|
+
}];
|
|
5348
|
+
readonly anonymous: false;
|
|
5349
|
+
}, {
|
|
5350
|
+
readonly type: "event";
|
|
5351
|
+
readonly name: "WithdrawCollateral";
|
|
5352
|
+
readonly inputs: readonly [{
|
|
5353
|
+
readonly name: "caller";
|
|
5354
|
+
readonly type: "address";
|
|
5355
|
+
readonly indexed: false;
|
|
5356
|
+
readonly internalType: "address";
|
|
5357
|
+
}, {
|
|
5358
|
+
readonly name: "id_";
|
|
5359
|
+
readonly type: "bytes32";
|
|
5360
|
+
readonly indexed: true;
|
|
5361
|
+
readonly internalType: "bytes32";
|
|
5362
|
+
}, {
|
|
5363
|
+
readonly name: "collateral";
|
|
5364
|
+
readonly type: "address";
|
|
5365
|
+
readonly indexed: true;
|
|
5366
|
+
readonly internalType: "address";
|
|
5367
|
+
}, {
|
|
5368
|
+
readonly name: "assets";
|
|
5369
|
+
readonly type: "uint256";
|
|
5370
|
+
readonly indexed: false;
|
|
5371
|
+
readonly internalType: "uint256";
|
|
5372
|
+
}, {
|
|
5373
|
+
readonly name: "onBehalf";
|
|
5374
|
+
readonly type: "address";
|
|
5375
|
+
readonly indexed: true;
|
|
5376
|
+
readonly internalType: "address";
|
|
5377
|
+
}, {
|
|
5378
|
+
readonly name: "receiver";
|
|
5379
|
+
readonly type: "address";
|
|
5380
|
+
readonly indexed: false;
|
|
5381
|
+
readonly internalType: "address";
|
|
5382
|
+
}];
|
|
5383
|
+
readonly anonymous: false;
|
|
5384
|
+
}];
|