morpho-contracts-helper 0.0.11 → 0.0.12
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/contracts/external/morpho/interfaces/IAdapter.sol +19 -0
- package/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.sol +66 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.d.ts +74 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/index.js → IAdapter.js} +1 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IAdapter.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.d.ts +427 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.d.ts → IMorphoMarketV1AdapterV2Factory.d.ts} +1 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts +3 -2
- package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.d.ts +78 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.js +112 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IAdapter__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.d.ts → IMorphoMarketV1AdapterV2Factory__factory.d.ts} +1 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.d.ts +619 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.js +812 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts +3 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js +7 -2
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js.map +1 -1
- package/dist/typechain-types/index.d.ts +6 -2
- package/dist/typechain-types/index.d.ts.map +1 -1
- package/dist/typechain-types/index.js +7 -2
- package/dist/typechain-types/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.d.ts.map +0 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.js.map +0 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts +0 -2
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts.map +0 -1
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.js.map +0 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.js.map +0 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts +0 -2
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.js +0 -10
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2Factory.sol.sol/index.js.map +0 -1
- /package/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol → IMorphoMarketV1AdapterV2Factory.sol} +0 -0
- /package/dist/typechain-types/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory.js → IMorphoMarketV1AdapterV2Factory.js} +0 -0
- /package/dist/typechain-types/factories/contracts/external/morpho/interfaces/{IMorphoMarketV1AdapterV2Factory.sol.sol/IMorphoMarketV1AdapterV2Factory__factory.js → IMorphoMarketV1AdapterV2Factory__factory.js} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
2
|
+
// Copyright (c) 2025 Morpho Association
|
|
3
|
+
pragma solidity >=0.5.0;
|
|
4
|
+
|
|
5
|
+
/// @dev See VaultV2 NatSpec comments for more details on adapter's spec.
|
|
6
|
+
interface IAdapter {
|
|
7
|
+
/// @dev Returns the market' ids and the change in assets on this market.
|
|
8
|
+
function allocate(bytes memory data, uint256 assets, bytes4 selector, address sender)
|
|
9
|
+
external
|
|
10
|
+
returns (bytes32[] memory ids, int256 change);
|
|
11
|
+
|
|
12
|
+
/// @dev Returns the market' ids and the change in assets on this market.
|
|
13
|
+
function deallocate(bytes memory data, uint256 assets, bytes4 selector, address sender)
|
|
14
|
+
external
|
|
15
|
+
returns (bytes32[] memory ids, int256 change);
|
|
16
|
+
|
|
17
|
+
/// @dev Returns the current value of the investments of the adapter (in underlying asset).
|
|
18
|
+
function realAssets() external view returns (uint256 assets);
|
|
19
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
2
|
+
// Copyright (c) 2025 Morpho Association
|
|
3
|
+
pragma solidity >=0.5.0;
|
|
4
|
+
|
|
5
|
+
import {IAdapter} from "./IAdapter.sol";
|
|
6
|
+
import {MarketParams} from "./IMorpho.sol";
|
|
7
|
+
|
|
8
|
+
interface IMorphoMarketV1AdapterV2 is IAdapter {
|
|
9
|
+
/* EVENTS */
|
|
10
|
+
|
|
11
|
+
event Submit(bytes4 indexed selector, bytes data, uint256 executableAt);
|
|
12
|
+
event Revoke(address indexed sender, bytes4 indexed selector, bytes data);
|
|
13
|
+
event Accept(bytes4 indexed selector, bytes data);
|
|
14
|
+
event Abdicate(bytes4 indexed selector);
|
|
15
|
+
event IncreaseTimelock(bytes4 indexed selector, uint256 newDuration);
|
|
16
|
+
event DecreaseTimelock(bytes4 indexed selector, uint256 newDuration);
|
|
17
|
+
event SetSkimRecipient(address indexed newSkimRecipient);
|
|
18
|
+
event Skim(address indexed token, uint256 assets);
|
|
19
|
+
event BurnShares(bytes32 indexed marketId, uint256 supplyShares);
|
|
20
|
+
event Allocate(bytes32 indexed marketId, uint256 newAllocation, uint256 mintedShares);
|
|
21
|
+
event Deallocate(bytes32 indexed marketId, uint256 newAllocation, uint256 burnedShares);
|
|
22
|
+
|
|
23
|
+
/* ERRORS */
|
|
24
|
+
|
|
25
|
+
error Abdicated();
|
|
26
|
+
error AutomaticallyTimelocked();
|
|
27
|
+
error DataAlreadyPending();
|
|
28
|
+
error DataNotTimelocked();
|
|
29
|
+
error IrmMismatch();
|
|
30
|
+
error LoanAssetMismatch();
|
|
31
|
+
error SharePriceAboveOne();
|
|
32
|
+
error TimelockNotDecreasing();
|
|
33
|
+
error TimelockNotExpired();
|
|
34
|
+
error TimelockNotIncreasing();
|
|
35
|
+
error Unauthorized();
|
|
36
|
+
|
|
37
|
+
/* VIEW FUNCTIONS */
|
|
38
|
+
|
|
39
|
+
function factory() external view returns (address);
|
|
40
|
+
function parentVault() external view returns (address);
|
|
41
|
+
function asset() external view returns (address);
|
|
42
|
+
function morpho() external view returns (address);
|
|
43
|
+
function marketIds(uint256 index) external view returns (bytes32);
|
|
44
|
+
function supplyShares(bytes32 marketId) external view returns (uint256);
|
|
45
|
+
function adapterId() external view returns (bytes32);
|
|
46
|
+
function skimRecipient() external view returns (address);
|
|
47
|
+
function marketIdsLength() external view returns (uint256);
|
|
48
|
+
function adaptiveCurveIrm() external view returns (address);
|
|
49
|
+
function allocation(MarketParams memory marketParams) external view returns (uint256);
|
|
50
|
+
function expectedSupplyAssets(bytes32 marketId) external view returns (uint256);
|
|
51
|
+
function ids(MarketParams memory marketParams) external view returns (bytes32[] memory);
|
|
52
|
+
function timelock(bytes4 selector) external view returns (uint256);
|
|
53
|
+
function abdicated(bytes4 selector) external view returns (bool);
|
|
54
|
+
function executableAt(bytes memory data) external view returns (uint256);
|
|
55
|
+
|
|
56
|
+
/* NON-VIEW FUNCTIONS */
|
|
57
|
+
|
|
58
|
+
function submit(bytes memory data) external;
|
|
59
|
+
function revoke(bytes memory data) external;
|
|
60
|
+
function increaseTimelock(bytes4 selector, uint256 newDuration) external;
|
|
61
|
+
function decreaseTimelock(bytes4 selector, uint256 newDuration) external;
|
|
62
|
+
function abdicate(bytes4 selector) external;
|
|
63
|
+
function setSkimRecipient(address newSkimRecipient) external;
|
|
64
|
+
function burnShares(bytes32 marketId) external;
|
|
65
|
+
function skim(address token) external;
|
|
66
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
+
export interface IAdapterInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "allocate" | "deallocate" | "realAssets"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "allocate", values: [BytesLike, BigNumberish, BytesLike, AddressLike]): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "deallocate", values: [BytesLike, BigNumberish, BytesLike, AddressLike]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "realAssets", values?: undefined): string;
|
|
8
|
+
decodeFunctionResult(functionFragment: "allocate", data: BytesLike): Result;
|
|
9
|
+
decodeFunctionResult(functionFragment: "deallocate", data: BytesLike): Result;
|
|
10
|
+
decodeFunctionResult(functionFragment: "realAssets", data: BytesLike): Result;
|
|
11
|
+
}
|
|
12
|
+
export interface IAdapter extends BaseContract {
|
|
13
|
+
connect(runner?: ContractRunner | null): IAdapter;
|
|
14
|
+
waitForDeployment(): Promise<this>;
|
|
15
|
+
interface: IAdapterInterface;
|
|
16
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
17
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
18
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
19
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
20
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
21
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
22
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
23
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
24
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
25
|
+
allocate: TypedContractMethod<[
|
|
26
|
+
data: BytesLike,
|
|
27
|
+
assets: BigNumberish,
|
|
28
|
+
selector: BytesLike,
|
|
29
|
+
sender: AddressLike
|
|
30
|
+
], [
|
|
31
|
+
[string[], bigint] & {
|
|
32
|
+
ids: string[];
|
|
33
|
+
change: bigint;
|
|
34
|
+
}
|
|
35
|
+
], "nonpayable">;
|
|
36
|
+
deallocate: TypedContractMethod<[
|
|
37
|
+
data: BytesLike,
|
|
38
|
+
assets: BigNumberish,
|
|
39
|
+
selector: BytesLike,
|
|
40
|
+
sender: AddressLike
|
|
41
|
+
], [
|
|
42
|
+
[string[], bigint] & {
|
|
43
|
+
ids: string[];
|
|
44
|
+
change: bigint;
|
|
45
|
+
}
|
|
46
|
+
], "nonpayable">;
|
|
47
|
+
realAssets: TypedContractMethod<[], [bigint], "view">;
|
|
48
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
49
|
+
getFunction(nameOrSignature: "allocate"): TypedContractMethod<[
|
|
50
|
+
data: BytesLike,
|
|
51
|
+
assets: BigNumberish,
|
|
52
|
+
selector: BytesLike,
|
|
53
|
+
sender: AddressLike
|
|
54
|
+
], [
|
|
55
|
+
[string[], bigint] & {
|
|
56
|
+
ids: string[];
|
|
57
|
+
change: bigint;
|
|
58
|
+
}
|
|
59
|
+
], "nonpayable">;
|
|
60
|
+
getFunction(nameOrSignature: "deallocate"): TypedContractMethod<[
|
|
61
|
+
data: BytesLike,
|
|
62
|
+
assets: BigNumberish,
|
|
63
|
+
selector: BytesLike,
|
|
64
|
+
sender: AddressLike
|
|
65
|
+
], [
|
|
66
|
+
[string[], bigint] & {
|
|
67
|
+
ids: string[];
|
|
68
|
+
change: bigint;
|
|
69
|
+
}
|
|
70
|
+
], "nonpayable">;
|
|
71
|
+
getFunction(nameOrSignature: "realAssets"): TypedContractMethod<[], [bigint], "view">;
|
|
72
|
+
filters: {};
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=IAdapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAdapter.d.ts","sourceRoot":"","sources":["../../../../../../typechain-types/contracts/external/morpho/interfaces/IAdapter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACT,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IAClD,WAAW,CACT,eAAe,EAAE,UAAU,GAAG,YAAY,GAAG,YAAY,GACxD,gBAAgB,CAAC;IAEpB,kBAAkB,CAChB,gBAAgB,EAAE,UAAU,EAC5B,MAAM,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,CAAC,GACxD,MAAM,CAAC;IACV,kBAAkB,CAChB,gBAAgB,EAA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3,"file":"IAdapter.js","sourceRoot":"","sources":["../../../../../../typechain-types/contracts/external/morpho/interfaces/IAdapter.ts"],"names":[],"mappings":""}
|
package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoMarketV1AdapterV2.d.ts
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
+
export type MarketParamsStruct = {
|
|
4
|
+
loanToken: AddressLike;
|
|
5
|
+
collateralToken: AddressLike;
|
|
6
|
+
oracle: AddressLike;
|
|
7
|
+
irm: AddressLike;
|
|
8
|
+
lltv: BigNumberish;
|
|
9
|
+
};
|
|
10
|
+
export type MarketParamsStructOutput = [
|
|
11
|
+
loanToken: string,
|
|
12
|
+
collateralToken: string,
|
|
13
|
+
oracle: string,
|
|
14
|
+
irm: string,
|
|
15
|
+
lltv: bigint
|
|
16
|
+
] & {
|
|
17
|
+
loanToken: string;
|
|
18
|
+
collateralToken: string;
|
|
19
|
+
oracle: string;
|
|
20
|
+
irm: string;
|
|
21
|
+
lltv: bigint;
|
|
22
|
+
};
|
|
23
|
+
export interface IMorphoMarketV1AdapterV2Interface extends Interface {
|
|
24
|
+
getFunction(nameOrSignature: "abdicate" | "abdicated" | "adapterId" | "adaptiveCurveIrm" | "allocate" | "allocation" | "asset" | "burnShares" | "deallocate" | "decreaseTimelock" | "executableAt" | "expectedSupplyAssets" | "factory" | "ids" | "increaseTimelock" | "marketIds" | "marketIdsLength" | "morpho" | "parentVault" | "realAssets" | "revoke" | "setSkimRecipient" | "skim" | "skimRecipient" | "submit" | "supplyShares" | "timelock"): FunctionFragment;
|
|
25
|
+
getEvent(nameOrSignatureOrTopic: "Abdicate" | "Accept" | "Allocate" | "BurnShares" | "Deallocate" | "DecreaseTimelock" | "IncreaseTimelock" | "Revoke" | "SetSkimRecipient" | "Skim" | "Submit"): EventFragment;
|
|
26
|
+
encodeFunctionData(functionFragment: "abdicate", values: [BytesLike]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "abdicated", values: [BytesLike]): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "adapterId", values?: undefined): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "adaptiveCurveIrm", values?: undefined): string;
|
|
30
|
+
encodeFunctionData(functionFragment: "allocate", values: [BytesLike, BigNumberish, BytesLike, AddressLike]): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "allocation", values: [MarketParamsStruct]): string;
|
|
32
|
+
encodeFunctionData(functionFragment: "asset", values?: undefined): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "burnShares", values: [BytesLike]): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "deallocate", values: [BytesLike, BigNumberish, BytesLike, AddressLike]): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "decreaseTimelock", values: [BytesLike, BigNumberish]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "executableAt", values: [BytesLike]): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "expectedSupplyAssets", values: [BytesLike]): string;
|
|
38
|
+
encodeFunctionData(functionFragment: "factory", values?: undefined): string;
|
|
39
|
+
encodeFunctionData(functionFragment: "ids", values: [MarketParamsStruct]): string;
|
|
40
|
+
encodeFunctionData(functionFragment: "increaseTimelock", values: [BytesLike, BigNumberish]): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "marketIds", values: [BigNumberish]): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "marketIdsLength", values?: undefined): string;
|
|
43
|
+
encodeFunctionData(functionFragment: "morpho", values?: undefined): string;
|
|
44
|
+
encodeFunctionData(functionFragment: "parentVault", values?: undefined): string;
|
|
45
|
+
encodeFunctionData(functionFragment: "realAssets", values?: undefined): string;
|
|
46
|
+
encodeFunctionData(functionFragment: "revoke", values: [BytesLike]): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "setSkimRecipient", values: [AddressLike]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "skim", values: [AddressLike]): string;
|
|
49
|
+
encodeFunctionData(functionFragment: "skimRecipient", values?: undefined): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "submit", values: [BytesLike]): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "supplyShares", values: [BytesLike]): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "timelock", values: [BytesLike]): string;
|
|
53
|
+
decodeFunctionResult(functionFragment: "abdicate", data: BytesLike): Result;
|
|
54
|
+
decodeFunctionResult(functionFragment: "abdicated", data: BytesLike): Result;
|
|
55
|
+
decodeFunctionResult(functionFragment: "adapterId", data: BytesLike): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "adaptiveCurveIrm", data: BytesLike): Result;
|
|
57
|
+
decodeFunctionResult(functionFragment: "allocate", data: BytesLike): Result;
|
|
58
|
+
decodeFunctionResult(functionFragment: "allocation", data: BytesLike): Result;
|
|
59
|
+
decodeFunctionResult(functionFragment: "asset", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: "burnShares", data: BytesLike): Result;
|
|
61
|
+
decodeFunctionResult(functionFragment: "deallocate", data: BytesLike): Result;
|
|
62
|
+
decodeFunctionResult(functionFragment: "decreaseTimelock", data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: "executableAt", data: BytesLike): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: "expectedSupplyAssets", data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: "factory", data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: "ids", data: BytesLike): Result;
|
|
67
|
+
decodeFunctionResult(functionFragment: "increaseTimelock", data: BytesLike): Result;
|
|
68
|
+
decodeFunctionResult(functionFragment: "marketIds", data: BytesLike): Result;
|
|
69
|
+
decodeFunctionResult(functionFragment: "marketIdsLength", data: BytesLike): Result;
|
|
70
|
+
decodeFunctionResult(functionFragment: "morpho", data: BytesLike): Result;
|
|
71
|
+
decodeFunctionResult(functionFragment: "parentVault", data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(functionFragment: "realAssets", data: BytesLike): Result;
|
|
73
|
+
decodeFunctionResult(functionFragment: "revoke", data: BytesLike): Result;
|
|
74
|
+
decodeFunctionResult(functionFragment: "setSkimRecipient", data: BytesLike): Result;
|
|
75
|
+
decodeFunctionResult(functionFragment: "skim", data: BytesLike): Result;
|
|
76
|
+
decodeFunctionResult(functionFragment: "skimRecipient", data: BytesLike): Result;
|
|
77
|
+
decodeFunctionResult(functionFragment: "submit", data: BytesLike): Result;
|
|
78
|
+
decodeFunctionResult(functionFragment: "supplyShares", data: BytesLike): Result;
|
|
79
|
+
decodeFunctionResult(functionFragment: "timelock", data: BytesLike): Result;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace AbdicateEvent {
|
|
82
|
+
type InputTuple = [selector: BytesLike];
|
|
83
|
+
type OutputTuple = [selector: string];
|
|
84
|
+
interface OutputObject {
|
|
85
|
+
selector: string;
|
|
86
|
+
}
|
|
87
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
88
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
89
|
+
type Log = TypedEventLog<Event>;
|
|
90
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
91
|
+
}
|
|
92
|
+
export declare namespace AcceptEvent {
|
|
93
|
+
type InputTuple = [selector: BytesLike, data: BytesLike];
|
|
94
|
+
type OutputTuple = [selector: string, data: string];
|
|
95
|
+
interface OutputObject {
|
|
96
|
+
selector: string;
|
|
97
|
+
data: string;
|
|
98
|
+
}
|
|
99
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
100
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
101
|
+
type Log = TypedEventLog<Event>;
|
|
102
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace AllocateEvent {
|
|
105
|
+
type InputTuple = [
|
|
106
|
+
marketId: BytesLike,
|
|
107
|
+
newAllocation: BigNumberish,
|
|
108
|
+
mintedShares: BigNumberish
|
|
109
|
+
];
|
|
110
|
+
type OutputTuple = [
|
|
111
|
+
marketId: string,
|
|
112
|
+
newAllocation: bigint,
|
|
113
|
+
mintedShares: bigint
|
|
114
|
+
];
|
|
115
|
+
interface OutputObject {
|
|
116
|
+
marketId: string;
|
|
117
|
+
newAllocation: bigint;
|
|
118
|
+
mintedShares: bigint;
|
|
119
|
+
}
|
|
120
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
121
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
122
|
+
type Log = TypedEventLog<Event>;
|
|
123
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace BurnSharesEvent {
|
|
126
|
+
type InputTuple = [marketId: BytesLike, supplyShares: BigNumberish];
|
|
127
|
+
type OutputTuple = [marketId: string, supplyShares: bigint];
|
|
128
|
+
interface OutputObject {
|
|
129
|
+
marketId: string;
|
|
130
|
+
supplyShares: bigint;
|
|
131
|
+
}
|
|
132
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
133
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
134
|
+
type Log = TypedEventLog<Event>;
|
|
135
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace DeallocateEvent {
|
|
138
|
+
type InputTuple = [
|
|
139
|
+
marketId: BytesLike,
|
|
140
|
+
newAllocation: BigNumberish,
|
|
141
|
+
burnedShares: BigNumberish
|
|
142
|
+
];
|
|
143
|
+
type OutputTuple = [
|
|
144
|
+
marketId: string,
|
|
145
|
+
newAllocation: bigint,
|
|
146
|
+
burnedShares: bigint
|
|
147
|
+
];
|
|
148
|
+
interface OutputObject {
|
|
149
|
+
marketId: string;
|
|
150
|
+
newAllocation: bigint;
|
|
151
|
+
burnedShares: bigint;
|
|
152
|
+
}
|
|
153
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
154
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
155
|
+
type Log = TypedEventLog<Event>;
|
|
156
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
157
|
+
}
|
|
158
|
+
export declare namespace DecreaseTimelockEvent {
|
|
159
|
+
type InputTuple = [selector: BytesLike, newDuration: BigNumberish];
|
|
160
|
+
type OutputTuple = [selector: string, newDuration: bigint];
|
|
161
|
+
interface OutputObject {
|
|
162
|
+
selector: string;
|
|
163
|
+
newDuration: bigint;
|
|
164
|
+
}
|
|
165
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
166
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
167
|
+
type Log = TypedEventLog<Event>;
|
|
168
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
169
|
+
}
|
|
170
|
+
export declare namespace IncreaseTimelockEvent {
|
|
171
|
+
type InputTuple = [selector: BytesLike, newDuration: BigNumberish];
|
|
172
|
+
type OutputTuple = [selector: string, newDuration: bigint];
|
|
173
|
+
interface OutputObject {
|
|
174
|
+
selector: string;
|
|
175
|
+
newDuration: bigint;
|
|
176
|
+
}
|
|
177
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
178
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
179
|
+
type Log = TypedEventLog<Event>;
|
|
180
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
181
|
+
}
|
|
182
|
+
export declare namespace RevokeEvent {
|
|
183
|
+
type InputTuple = [
|
|
184
|
+
sender: AddressLike,
|
|
185
|
+
selector: BytesLike,
|
|
186
|
+
data: BytesLike
|
|
187
|
+
];
|
|
188
|
+
type OutputTuple = [sender: string, selector: string, data: string];
|
|
189
|
+
interface OutputObject {
|
|
190
|
+
sender: string;
|
|
191
|
+
selector: string;
|
|
192
|
+
data: string;
|
|
193
|
+
}
|
|
194
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
195
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
196
|
+
type Log = TypedEventLog<Event>;
|
|
197
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
198
|
+
}
|
|
199
|
+
export declare namespace SetSkimRecipientEvent {
|
|
200
|
+
type InputTuple = [newSkimRecipient: AddressLike];
|
|
201
|
+
type OutputTuple = [newSkimRecipient: string];
|
|
202
|
+
interface OutputObject {
|
|
203
|
+
newSkimRecipient: string;
|
|
204
|
+
}
|
|
205
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
206
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
207
|
+
type Log = TypedEventLog<Event>;
|
|
208
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
209
|
+
}
|
|
210
|
+
export declare namespace SkimEvent {
|
|
211
|
+
type InputTuple = [token: AddressLike, assets: BigNumberish];
|
|
212
|
+
type OutputTuple = [token: string, assets: bigint];
|
|
213
|
+
interface OutputObject {
|
|
214
|
+
token: string;
|
|
215
|
+
assets: bigint;
|
|
216
|
+
}
|
|
217
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
218
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
219
|
+
type Log = TypedEventLog<Event>;
|
|
220
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
221
|
+
}
|
|
222
|
+
export declare namespace SubmitEvent {
|
|
223
|
+
type InputTuple = [
|
|
224
|
+
selector: BytesLike,
|
|
225
|
+
data: BytesLike,
|
|
226
|
+
executableAt: BigNumberish
|
|
227
|
+
];
|
|
228
|
+
type OutputTuple = [
|
|
229
|
+
selector: string,
|
|
230
|
+
data: string,
|
|
231
|
+
executableAt: bigint
|
|
232
|
+
];
|
|
233
|
+
interface OutputObject {
|
|
234
|
+
selector: string;
|
|
235
|
+
data: string;
|
|
236
|
+
executableAt: bigint;
|
|
237
|
+
}
|
|
238
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
239
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
240
|
+
type Log = TypedEventLog<Event>;
|
|
241
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
242
|
+
}
|
|
243
|
+
export interface IMorphoMarketV1AdapterV2 extends BaseContract {
|
|
244
|
+
connect(runner?: ContractRunner | null): IMorphoMarketV1AdapterV2;
|
|
245
|
+
waitForDeployment(): Promise<this>;
|
|
246
|
+
interface: IMorphoMarketV1AdapterV2Interface;
|
|
247
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
248
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
249
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
250
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
251
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
252
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
253
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
254
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
255
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
256
|
+
abdicate: TypedContractMethod<[selector: BytesLike], [void], "nonpayable">;
|
|
257
|
+
abdicated: TypedContractMethod<[selector: BytesLike], [boolean], "view">;
|
|
258
|
+
adapterId: TypedContractMethod<[], [string], "view">;
|
|
259
|
+
adaptiveCurveIrm: TypedContractMethod<[], [string], "view">;
|
|
260
|
+
allocate: TypedContractMethod<[
|
|
261
|
+
data: BytesLike,
|
|
262
|
+
assets: BigNumberish,
|
|
263
|
+
selector: BytesLike,
|
|
264
|
+
sender: AddressLike
|
|
265
|
+
], [
|
|
266
|
+
[string[], bigint] & {
|
|
267
|
+
ids: string[];
|
|
268
|
+
change: bigint;
|
|
269
|
+
}
|
|
270
|
+
], "nonpayable">;
|
|
271
|
+
allocation: TypedContractMethod<[
|
|
272
|
+
marketParams: MarketParamsStruct
|
|
273
|
+
], [
|
|
274
|
+
bigint
|
|
275
|
+
], "view">;
|
|
276
|
+
asset: TypedContractMethod<[], [string], "view">;
|
|
277
|
+
burnShares: TypedContractMethod<[marketId: BytesLike], [void], "nonpayable">;
|
|
278
|
+
deallocate: TypedContractMethod<[
|
|
279
|
+
data: BytesLike,
|
|
280
|
+
assets: BigNumberish,
|
|
281
|
+
selector: BytesLike,
|
|
282
|
+
sender: AddressLike
|
|
283
|
+
], [
|
|
284
|
+
[string[], bigint] & {
|
|
285
|
+
ids: string[];
|
|
286
|
+
change: bigint;
|
|
287
|
+
}
|
|
288
|
+
], "nonpayable">;
|
|
289
|
+
decreaseTimelock: TypedContractMethod<[
|
|
290
|
+
selector: BytesLike,
|
|
291
|
+
newDuration: BigNumberish
|
|
292
|
+
], [
|
|
293
|
+
void
|
|
294
|
+
], "nonpayable">;
|
|
295
|
+
executableAt: TypedContractMethod<[data: BytesLike], [bigint], "view">;
|
|
296
|
+
expectedSupplyAssets: TypedContractMethod<[
|
|
297
|
+
marketId: BytesLike
|
|
298
|
+
], [
|
|
299
|
+
bigint
|
|
300
|
+
], "view">;
|
|
301
|
+
factory: TypedContractMethod<[], [string], "view">;
|
|
302
|
+
ids: TypedContractMethod<[
|
|
303
|
+
marketParams: MarketParamsStruct
|
|
304
|
+
], [
|
|
305
|
+
string[]
|
|
306
|
+
], "view">;
|
|
307
|
+
increaseTimelock: TypedContractMethod<[
|
|
308
|
+
selector: BytesLike,
|
|
309
|
+
newDuration: BigNumberish
|
|
310
|
+
], [
|
|
311
|
+
void
|
|
312
|
+
], "nonpayable">;
|
|
313
|
+
marketIds: TypedContractMethod<[index: BigNumberish], [string], "view">;
|
|
314
|
+
marketIdsLength: TypedContractMethod<[], [bigint], "view">;
|
|
315
|
+
morpho: TypedContractMethod<[], [string], "view">;
|
|
316
|
+
parentVault: TypedContractMethod<[], [string], "view">;
|
|
317
|
+
realAssets: TypedContractMethod<[], [bigint], "view">;
|
|
318
|
+
revoke: TypedContractMethod<[data: BytesLike], [void], "nonpayable">;
|
|
319
|
+
setSkimRecipient: TypedContractMethod<[
|
|
320
|
+
newSkimRecipient: AddressLike
|
|
321
|
+
], [
|
|
322
|
+
void
|
|
323
|
+
], "nonpayable">;
|
|
324
|
+
skim: TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
325
|
+
skimRecipient: TypedContractMethod<[], [string], "view">;
|
|
326
|
+
submit: TypedContractMethod<[data: BytesLike], [void], "nonpayable">;
|
|
327
|
+
supplyShares: TypedContractMethod<[marketId: BytesLike], [bigint], "view">;
|
|
328
|
+
timelock: TypedContractMethod<[selector: BytesLike], [bigint], "view">;
|
|
329
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
330
|
+
getFunction(nameOrSignature: "abdicate"): TypedContractMethod<[selector: BytesLike], [void], "nonpayable">;
|
|
331
|
+
getFunction(nameOrSignature: "abdicated"): TypedContractMethod<[selector: BytesLike], [boolean], "view">;
|
|
332
|
+
getFunction(nameOrSignature: "adapterId"): TypedContractMethod<[], [string], "view">;
|
|
333
|
+
getFunction(nameOrSignature: "adaptiveCurveIrm"): TypedContractMethod<[], [string], "view">;
|
|
334
|
+
getFunction(nameOrSignature: "allocate"): TypedContractMethod<[
|
|
335
|
+
data: BytesLike,
|
|
336
|
+
assets: BigNumberish,
|
|
337
|
+
selector: BytesLike,
|
|
338
|
+
sender: AddressLike
|
|
339
|
+
], [
|
|
340
|
+
[string[], bigint] & {
|
|
341
|
+
ids: string[];
|
|
342
|
+
change: bigint;
|
|
343
|
+
}
|
|
344
|
+
], "nonpayable">;
|
|
345
|
+
getFunction(nameOrSignature: "allocation"): TypedContractMethod<[marketParams: MarketParamsStruct], [bigint], "view">;
|
|
346
|
+
getFunction(nameOrSignature: "asset"): TypedContractMethod<[], [string], "view">;
|
|
347
|
+
getFunction(nameOrSignature: "burnShares"): TypedContractMethod<[marketId: BytesLike], [void], "nonpayable">;
|
|
348
|
+
getFunction(nameOrSignature: "deallocate"): TypedContractMethod<[
|
|
349
|
+
data: BytesLike,
|
|
350
|
+
assets: BigNumberish,
|
|
351
|
+
selector: BytesLike,
|
|
352
|
+
sender: AddressLike
|
|
353
|
+
], [
|
|
354
|
+
[string[], bigint] & {
|
|
355
|
+
ids: string[];
|
|
356
|
+
change: bigint;
|
|
357
|
+
}
|
|
358
|
+
], "nonpayable">;
|
|
359
|
+
getFunction(nameOrSignature: "decreaseTimelock"): TypedContractMethod<[
|
|
360
|
+
selector: BytesLike,
|
|
361
|
+
newDuration: BigNumberish
|
|
362
|
+
], [
|
|
363
|
+
void
|
|
364
|
+
], "nonpayable">;
|
|
365
|
+
getFunction(nameOrSignature: "executableAt"): TypedContractMethod<[data: BytesLike], [bigint], "view">;
|
|
366
|
+
getFunction(nameOrSignature: "expectedSupplyAssets"): TypedContractMethod<[marketId: BytesLike], [bigint], "view">;
|
|
367
|
+
getFunction(nameOrSignature: "factory"): TypedContractMethod<[], [string], "view">;
|
|
368
|
+
getFunction(nameOrSignature: "ids"): TypedContractMethod<[
|
|
369
|
+
marketParams: MarketParamsStruct
|
|
370
|
+
], [
|
|
371
|
+
string[]
|
|
372
|
+
], "view">;
|
|
373
|
+
getFunction(nameOrSignature: "increaseTimelock"): TypedContractMethod<[
|
|
374
|
+
selector: BytesLike,
|
|
375
|
+
newDuration: BigNumberish
|
|
376
|
+
], [
|
|
377
|
+
void
|
|
378
|
+
], "nonpayable">;
|
|
379
|
+
getFunction(nameOrSignature: "marketIds"): TypedContractMethod<[index: BigNumberish], [string], "view">;
|
|
380
|
+
getFunction(nameOrSignature: "marketIdsLength"): TypedContractMethod<[], [bigint], "view">;
|
|
381
|
+
getFunction(nameOrSignature: "morpho"): TypedContractMethod<[], [string], "view">;
|
|
382
|
+
getFunction(nameOrSignature: "parentVault"): TypedContractMethod<[], [string], "view">;
|
|
383
|
+
getFunction(nameOrSignature: "realAssets"): TypedContractMethod<[], [bigint], "view">;
|
|
384
|
+
getFunction(nameOrSignature: "revoke"): TypedContractMethod<[data: BytesLike], [void], "nonpayable">;
|
|
385
|
+
getFunction(nameOrSignature: "setSkimRecipient"): TypedContractMethod<[newSkimRecipient: AddressLike], [void], "nonpayable">;
|
|
386
|
+
getFunction(nameOrSignature: "skim"): TypedContractMethod<[token: AddressLike], [void], "nonpayable">;
|
|
387
|
+
getFunction(nameOrSignature: "skimRecipient"): TypedContractMethod<[], [string], "view">;
|
|
388
|
+
getFunction(nameOrSignature: "submit"): TypedContractMethod<[data: BytesLike], [void], "nonpayable">;
|
|
389
|
+
getFunction(nameOrSignature: "supplyShares"): TypedContractMethod<[marketId: BytesLike], [bigint], "view">;
|
|
390
|
+
getFunction(nameOrSignature: "timelock"): TypedContractMethod<[selector: BytesLike], [bigint], "view">;
|
|
391
|
+
getEvent(key: "Abdicate"): TypedContractEvent<AbdicateEvent.InputTuple, AbdicateEvent.OutputTuple, AbdicateEvent.OutputObject>;
|
|
392
|
+
getEvent(key: "Accept"): TypedContractEvent<AcceptEvent.InputTuple, AcceptEvent.OutputTuple, AcceptEvent.OutputObject>;
|
|
393
|
+
getEvent(key: "Allocate"): TypedContractEvent<AllocateEvent.InputTuple, AllocateEvent.OutputTuple, AllocateEvent.OutputObject>;
|
|
394
|
+
getEvent(key: "BurnShares"): TypedContractEvent<BurnSharesEvent.InputTuple, BurnSharesEvent.OutputTuple, BurnSharesEvent.OutputObject>;
|
|
395
|
+
getEvent(key: "Deallocate"): TypedContractEvent<DeallocateEvent.InputTuple, DeallocateEvent.OutputTuple, DeallocateEvent.OutputObject>;
|
|
396
|
+
getEvent(key: "DecreaseTimelock"): TypedContractEvent<DecreaseTimelockEvent.InputTuple, DecreaseTimelockEvent.OutputTuple, DecreaseTimelockEvent.OutputObject>;
|
|
397
|
+
getEvent(key: "IncreaseTimelock"): TypedContractEvent<IncreaseTimelockEvent.InputTuple, IncreaseTimelockEvent.OutputTuple, IncreaseTimelockEvent.OutputObject>;
|
|
398
|
+
getEvent(key: "Revoke"): TypedContractEvent<RevokeEvent.InputTuple, RevokeEvent.OutputTuple, RevokeEvent.OutputObject>;
|
|
399
|
+
getEvent(key: "SetSkimRecipient"): TypedContractEvent<SetSkimRecipientEvent.InputTuple, SetSkimRecipientEvent.OutputTuple, SetSkimRecipientEvent.OutputObject>;
|
|
400
|
+
getEvent(key: "Skim"): TypedContractEvent<SkimEvent.InputTuple, SkimEvent.OutputTuple, SkimEvent.OutputObject>;
|
|
401
|
+
getEvent(key: "Submit"): TypedContractEvent<SubmitEvent.InputTuple, SubmitEvent.OutputTuple, SubmitEvent.OutputObject>;
|
|
402
|
+
filters: {
|
|
403
|
+
"Abdicate(bytes4)": TypedContractEvent<AbdicateEvent.InputTuple, AbdicateEvent.OutputTuple, AbdicateEvent.OutputObject>;
|
|
404
|
+
Abdicate: TypedContractEvent<AbdicateEvent.InputTuple, AbdicateEvent.OutputTuple, AbdicateEvent.OutputObject>;
|
|
405
|
+
"Accept(bytes4,bytes)": TypedContractEvent<AcceptEvent.InputTuple, AcceptEvent.OutputTuple, AcceptEvent.OutputObject>;
|
|
406
|
+
Accept: TypedContractEvent<AcceptEvent.InputTuple, AcceptEvent.OutputTuple, AcceptEvent.OutputObject>;
|
|
407
|
+
"Allocate(bytes32,uint256,uint256)": TypedContractEvent<AllocateEvent.InputTuple, AllocateEvent.OutputTuple, AllocateEvent.OutputObject>;
|
|
408
|
+
Allocate: TypedContractEvent<AllocateEvent.InputTuple, AllocateEvent.OutputTuple, AllocateEvent.OutputObject>;
|
|
409
|
+
"BurnShares(bytes32,uint256)": TypedContractEvent<BurnSharesEvent.InputTuple, BurnSharesEvent.OutputTuple, BurnSharesEvent.OutputObject>;
|
|
410
|
+
BurnShares: TypedContractEvent<BurnSharesEvent.InputTuple, BurnSharesEvent.OutputTuple, BurnSharesEvent.OutputObject>;
|
|
411
|
+
"Deallocate(bytes32,uint256,uint256)": TypedContractEvent<DeallocateEvent.InputTuple, DeallocateEvent.OutputTuple, DeallocateEvent.OutputObject>;
|
|
412
|
+
Deallocate: TypedContractEvent<DeallocateEvent.InputTuple, DeallocateEvent.OutputTuple, DeallocateEvent.OutputObject>;
|
|
413
|
+
"DecreaseTimelock(bytes4,uint256)": TypedContractEvent<DecreaseTimelockEvent.InputTuple, DecreaseTimelockEvent.OutputTuple, DecreaseTimelockEvent.OutputObject>;
|
|
414
|
+
DecreaseTimelock: TypedContractEvent<DecreaseTimelockEvent.InputTuple, DecreaseTimelockEvent.OutputTuple, DecreaseTimelockEvent.OutputObject>;
|
|
415
|
+
"IncreaseTimelock(bytes4,uint256)": TypedContractEvent<IncreaseTimelockEvent.InputTuple, IncreaseTimelockEvent.OutputTuple, IncreaseTimelockEvent.OutputObject>;
|
|
416
|
+
IncreaseTimelock: TypedContractEvent<IncreaseTimelockEvent.InputTuple, IncreaseTimelockEvent.OutputTuple, IncreaseTimelockEvent.OutputObject>;
|
|
417
|
+
"Revoke(address,bytes4,bytes)": TypedContractEvent<RevokeEvent.InputTuple, RevokeEvent.OutputTuple, RevokeEvent.OutputObject>;
|
|
418
|
+
Revoke: TypedContractEvent<RevokeEvent.InputTuple, RevokeEvent.OutputTuple, RevokeEvent.OutputObject>;
|
|
419
|
+
"SetSkimRecipient(address)": TypedContractEvent<SetSkimRecipientEvent.InputTuple, SetSkimRecipientEvent.OutputTuple, SetSkimRecipientEvent.OutputObject>;
|
|
420
|
+
SetSkimRecipient: TypedContractEvent<SetSkimRecipientEvent.InputTuple, SetSkimRecipientEvent.OutputTuple, SetSkimRecipientEvent.OutputObject>;
|
|
421
|
+
"Skim(address,uint256)": TypedContractEvent<SkimEvent.InputTuple, SkimEvent.OutputTuple, SkimEvent.OutputObject>;
|
|
422
|
+
Skim: TypedContractEvent<SkimEvent.InputTuple, SkimEvent.OutputTuple, SkimEvent.OutputObject>;
|
|
423
|
+
"Submit(bytes4,bytes,uint256)": TypedContractEvent<SubmitEvent.InputTuple, SubmitEvent.OutputTuple, SubmitEvent.OutputObject>;
|
|
424
|
+
Submit: TypedContractEvent<SubmitEvent.InputTuple, SubmitEvent.OutputTuple, SubmitEvent.OutputObject>;
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
//# sourceMappingURL=IMorphoMarketV1AdapterV2.d.ts.map
|