morpho-contracts-helper 0.0.1
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/IIrm.sol +19 -0
- package/contracts/external/morpho/interfaces/IMorpho.sol +362 -0
- package/contracts/external/morpho/interfaces/IOracle.sol +15 -0
- package/contracts/external/morpho/libraries/ConstantsLib.sol +22 -0
- package/contracts/external/morpho/libraries/ErrorsLib.sol +80 -0
- package/contracts/external/morpho/libraries/EventsLib.sol +157 -0
- package/contracts/external/morpho/libraries/MarketParamsLib.sol +21 -0
- package/contracts/external/morpho/libraries/MathLib.sol +45 -0
- package/contracts/external/morpho/libraries/SafeTransferLib.sol +36 -0
- package/contracts/external/morpho/libraries/SharesMathLib.sol +45 -0
- package/contracts/external/morpho/libraries/UtilsLib.sol +38 -0
- package/contracts/external/morpho/libraries/periphery/MorphoBalancesLib.sol +115 -0
- package/contracts/external/morpho/libraries/periphery/MorphoLib.sol +63 -0
- package/contracts/external/morpho/libraries/periphery/MorphoStorageLib.sol +109 -0
- package/dist/hardhat.config.cjs +33 -0
- package/dist/hardhat.config.cjs.map +1 -0
- package/dist/hardhat.config.d.cts +5 -0
- package/dist/hardhat.config.d.cts.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +18 -0
- package/dist/src/index.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/index.d.ts +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/index.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/index.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +130 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.d.ts +2 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/index.d.ts +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/index.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/index.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/index.d.ts +3 -0
- package/dist/typechain-types/@openzeppelin/index.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/index.js.map +1 -0
- package/dist/typechain-types/common.d.ts +51 -0
- package/dist/typechain-types/common.d.ts.map +1 -0
- package/dist/typechain-types/common.js +3 -0
- package/dist/typechain-types/common.js.map +1 -0
- package/dist/typechain-types/contracts/external/index.d.ts +3 -0
- package/dist/typechain-types/contracts/external/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/index.js +3 -0
- package/dist/typechain-types/contracts/external/index.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/index.d.ts +5 -0
- package/dist/typechain-types/contracts/external/morpho/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/index.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/index.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IIrm.d.ts +93 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IIrm.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IIrm.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IIrm.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho.d.ts +469 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase.d.ts +406 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping.d.ts +512 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/index.d.ts +4 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/index.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IMorpho.sol/index.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IOracle.d.ts +26 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IOracle.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IOracle.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/IOracle.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts +5 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/index.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/interfaces/index.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/EventsLib.d.ts +452 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/EventsLib.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/EventsLib.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/EventsLib.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal.d.ts +52 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/index.d.ts +2 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/index.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/SafeTransferLib.sol/index.js.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/index.d.ts +4 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/index.js +3 -0
- package/dist/typechain-types/contracts/external/morpho/libraries/index.js.map +1 -0
- package/dist/typechain-types/contracts/index.d.ts +3 -0
- package/dist/typechain-types/contracts/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/index.js +3 -0
- package/dist/typechain-types/contracts/index.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/index.d.ts +2 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/index.js +42 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/index.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +148 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js +204 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +2 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.js +10 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/index.d.ts +2 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/index.js +42 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/index.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/index.d.ts +2 -0
- package/dist/typechain-types/factories/@openzeppelin/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/index.js +42 -0
- package/dist/typechain-types/factories/@openzeppelin/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/index.d.ts +2 -0
- package/dist/typechain-types/factories/contracts/external/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/index.js +42 -0
- package/dist/typechain-types/factories/contracts/external/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/index.d.ts +3 -0
- package/dist/typechain-types/factories/contracts/external/morpho/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/index.js +43 -0
- package/dist/typechain-types/factories/contracts/external/morpho/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IIrm__factory.d.ts +136 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IIrm__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IIrm__factory.js +187 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IIrm__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase__factory.d.ts +690 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase__factory.js +905 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoBase__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping__factory.d.ts +780 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping__factory.js +1022 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorphoStaticTyping__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho__factory.d.ts +795 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho__factory.js +1043 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/IMorpho__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/index.d.ts +4 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/index.js +14 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorpho.sol/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IOracle__factory.d.ts +18 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IOracle__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IOracle__factory.js +34 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IOracle__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts +4 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js +46 -0
- package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.d.ts +434 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.js +553 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.d.ts +48 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.js +74 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/index.d.ts +2 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/index.js +10 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/index.d.ts +3 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/index.js +44 -0
- package/dist/typechain-types/factories/contracts/external/morpho/libraries/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/index.d.ts +2 -0
- package/dist/typechain-types/factories/contracts/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/index.js +42 -0
- package/dist/typechain-types/factories/contracts/index.js.map +1 -0
- package/dist/typechain-types/factories/index.d.ts +3 -0
- package/dist/typechain-types/factories/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/index.js +43 -0
- package/dist/typechain-types/factories/index.js.map +1 -0
- package/dist/typechain-types/index.d.ts +22 -0
- package/dist/typechain-types/index.d.ts.map +1 -0
- package/dist/typechain-types/index.js +54 -0
- package/dist/typechain-types/index.js.map +1 -0
- package/hardhat.config.cts +33 -0
- package/package.json +25 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +33 -0
package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.js
ADDED
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventsLib__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const ethers_1 = require("ethers");
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
anonymous: false,
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
indexed: true,
|
|
15
|
+
internalType: "Id",
|
|
16
|
+
name: "id",
|
|
17
|
+
type: "bytes32",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
indexed: false,
|
|
21
|
+
internalType: "uint256",
|
|
22
|
+
name: "prevBorrowRate",
|
|
23
|
+
type: "uint256",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
indexed: false,
|
|
27
|
+
internalType: "uint256",
|
|
28
|
+
name: "interest",
|
|
29
|
+
type: "uint256",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
indexed: false,
|
|
33
|
+
internalType: "uint256",
|
|
34
|
+
name: "feeShares",
|
|
35
|
+
type: "uint256",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
name: "AccrueInterest",
|
|
39
|
+
type: "event",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
anonymous: false,
|
|
43
|
+
inputs: [
|
|
44
|
+
{
|
|
45
|
+
indexed: true,
|
|
46
|
+
internalType: "Id",
|
|
47
|
+
name: "id",
|
|
48
|
+
type: "bytes32",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
indexed: false,
|
|
52
|
+
internalType: "address",
|
|
53
|
+
name: "caller",
|
|
54
|
+
type: "address",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
indexed: true,
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "onBehalf",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
indexed: true,
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "receiver",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
indexed: false,
|
|
70
|
+
internalType: "uint256",
|
|
71
|
+
name: "assets",
|
|
72
|
+
type: "uint256",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
indexed: false,
|
|
76
|
+
internalType: "uint256",
|
|
77
|
+
name: "shares",
|
|
78
|
+
type: "uint256",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
name: "Borrow",
|
|
82
|
+
type: "event",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
anonymous: false,
|
|
86
|
+
inputs: [
|
|
87
|
+
{
|
|
88
|
+
indexed: true,
|
|
89
|
+
internalType: "Id",
|
|
90
|
+
name: "id",
|
|
91
|
+
type: "bytes32",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
components: [
|
|
95
|
+
{
|
|
96
|
+
internalType: "address",
|
|
97
|
+
name: "loanToken",
|
|
98
|
+
type: "address",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
internalType: "address",
|
|
102
|
+
name: "collateralToken",
|
|
103
|
+
type: "address",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
internalType: "address",
|
|
107
|
+
name: "oracle",
|
|
108
|
+
type: "address",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
internalType: "address",
|
|
112
|
+
name: "irm",
|
|
113
|
+
type: "address",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
internalType: "uint256",
|
|
117
|
+
name: "lltv",
|
|
118
|
+
type: "uint256",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
indexed: false,
|
|
122
|
+
internalType: "struct MarketParams",
|
|
123
|
+
name: "marketParams",
|
|
124
|
+
type: "tuple",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
name: "CreateMarket",
|
|
128
|
+
type: "event",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
anonymous: false,
|
|
132
|
+
inputs: [
|
|
133
|
+
{
|
|
134
|
+
indexed: true,
|
|
135
|
+
internalType: "address",
|
|
136
|
+
name: "irm",
|
|
137
|
+
type: "address",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
name: "EnableIrm",
|
|
141
|
+
type: "event",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
anonymous: false,
|
|
145
|
+
inputs: [
|
|
146
|
+
{
|
|
147
|
+
indexed: false,
|
|
148
|
+
internalType: "uint256",
|
|
149
|
+
name: "lltv",
|
|
150
|
+
type: "uint256",
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
name: "EnableLltv",
|
|
154
|
+
type: "event",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
anonymous: false,
|
|
158
|
+
inputs: [
|
|
159
|
+
{
|
|
160
|
+
indexed: true,
|
|
161
|
+
internalType: "address",
|
|
162
|
+
name: "caller",
|
|
163
|
+
type: "address",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
indexed: true,
|
|
167
|
+
internalType: "address",
|
|
168
|
+
name: "token",
|
|
169
|
+
type: "address",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
indexed: false,
|
|
173
|
+
internalType: "uint256",
|
|
174
|
+
name: "assets",
|
|
175
|
+
type: "uint256",
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
name: "FlashLoan",
|
|
179
|
+
type: "event",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
anonymous: false,
|
|
183
|
+
inputs: [
|
|
184
|
+
{
|
|
185
|
+
indexed: true,
|
|
186
|
+
internalType: "address",
|
|
187
|
+
name: "caller",
|
|
188
|
+
type: "address",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
indexed: true,
|
|
192
|
+
internalType: "address",
|
|
193
|
+
name: "authorizer",
|
|
194
|
+
type: "address",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
indexed: false,
|
|
198
|
+
internalType: "uint256",
|
|
199
|
+
name: "usedNonce",
|
|
200
|
+
type: "uint256",
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
name: "IncrementNonce",
|
|
204
|
+
type: "event",
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
anonymous: false,
|
|
208
|
+
inputs: [
|
|
209
|
+
{
|
|
210
|
+
indexed: true,
|
|
211
|
+
internalType: "Id",
|
|
212
|
+
name: "id",
|
|
213
|
+
type: "bytes32",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
indexed: true,
|
|
217
|
+
internalType: "address",
|
|
218
|
+
name: "caller",
|
|
219
|
+
type: "address",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
indexed: true,
|
|
223
|
+
internalType: "address",
|
|
224
|
+
name: "borrower",
|
|
225
|
+
type: "address",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
indexed: false,
|
|
229
|
+
internalType: "uint256",
|
|
230
|
+
name: "repaidAssets",
|
|
231
|
+
type: "uint256",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
indexed: false,
|
|
235
|
+
internalType: "uint256",
|
|
236
|
+
name: "repaidShares",
|
|
237
|
+
type: "uint256",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
indexed: false,
|
|
241
|
+
internalType: "uint256",
|
|
242
|
+
name: "seizedAssets",
|
|
243
|
+
type: "uint256",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
indexed: false,
|
|
247
|
+
internalType: "uint256",
|
|
248
|
+
name: "badDebtAssets",
|
|
249
|
+
type: "uint256",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
indexed: false,
|
|
253
|
+
internalType: "uint256",
|
|
254
|
+
name: "badDebtShares",
|
|
255
|
+
type: "uint256",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
name: "Liquidate",
|
|
259
|
+
type: "event",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
anonymous: false,
|
|
263
|
+
inputs: [
|
|
264
|
+
{
|
|
265
|
+
indexed: true,
|
|
266
|
+
internalType: "Id",
|
|
267
|
+
name: "id",
|
|
268
|
+
type: "bytes32",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
indexed: true,
|
|
272
|
+
internalType: "address",
|
|
273
|
+
name: "caller",
|
|
274
|
+
type: "address",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
indexed: true,
|
|
278
|
+
internalType: "address",
|
|
279
|
+
name: "onBehalf",
|
|
280
|
+
type: "address",
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
indexed: false,
|
|
284
|
+
internalType: "uint256",
|
|
285
|
+
name: "assets",
|
|
286
|
+
type: "uint256",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
indexed: false,
|
|
290
|
+
internalType: "uint256",
|
|
291
|
+
name: "shares",
|
|
292
|
+
type: "uint256",
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
name: "Repay",
|
|
296
|
+
type: "event",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
anonymous: false,
|
|
300
|
+
inputs: [
|
|
301
|
+
{
|
|
302
|
+
indexed: true,
|
|
303
|
+
internalType: "address",
|
|
304
|
+
name: "caller",
|
|
305
|
+
type: "address",
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
indexed: true,
|
|
309
|
+
internalType: "address",
|
|
310
|
+
name: "authorizer",
|
|
311
|
+
type: "address",
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
indexed: true,
|
|
315
|
+
internalType: "address",
|
|
316
|
+
name: "authorized",
|
|
317
|
+
type: "address",
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
indexed: false,
|
|
321
|
+
internalType: "bool",
|
|
322
|
+
name: "newIsAuthorized",
|
|
323
|
+
type: "bool",
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
name: "SetAuthorization",
|
|
327
|
+
type: "event",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
anonymous: false,
|
|
331
|
+
inputs: [
|
|
332
|
+
{
|
|
333
|
+
indexed: true,
|
|
334
|
+
internalType: "Id",
|
|
335
|
+
name: "id",
|
|
336
|
+
type: "bytes32",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
indexed: false,
|
|
340
|
+
internalType: "uint256",
|
|
341
|
+
name: "newFee",
|
|
342
|
+
type: "uint256",
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
name: "SetFee",
|
|
346
|
+
type: "event",
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
anonymous: false,
|
|
350
|
+
inputs: [
|
|
351
|
+
{
|
|
352
|
+
indexed: true,
|
|
353
|
+
internalType: "address",
|
|
354
|
+
name: "newFeeRecipient",
|
|
355
|
+
type: "address",
|
|
356
|
+
},
|
|
357
|
+
],
|
|
358
|
+
name: "SetFeeRecipient",
|
|
359
|
+
type: "event",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
anonymous: false,
|
|
363
|
+
inputs: [
|
|
364
|
+
{
|
|
365
|
+
indexed: true,
|
|
366
|
+
internalType: "address",
|
|
367
|
+
name: "newOwner",
|
|
368
|
+
type: "address",
|
|
369
|
+
},
|
|
370
|
+
],
|
|
371
|
+
name: "SetOwner",
|
|
372
|
+
type: "event",
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
anonymous: false,
|
|
376
|
+
inputs: [
|
|
377
|
+
{
|
|
378
|
+
indexed: true,
|
|
379
|
+
internalType: "Id",
|
|
380
|
+
name: "id",
|
|
381
|
+
type: "bytes32",
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
indexed: true,
|
|
385
|
+
internalType: "address",
|
|
386
|
+
name: "caller",
|
|
387
|
+
type: "address",
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
indexed: true,
|
|
391
|
+
internalType: "address",
|
|
392
|
+
name: "onBehalf",
|
|
393
|
+
type: "address",
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
indexed: false,
|
|
397
|
+
internalType: "uint256",
|
|
398
|
+
name: "assets",
|
|
399
|
+
type: "uint256",
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
indexed: false,
|
|
403
|
+
internalType: "uint256",
|
|
404
|
+
name: "shares",
|
|
405
|
+
type: "uint256",
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
name: "Supply",
|
|
409
|
+
type: "event",
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
anonymous: false,
|
|
413
|
+
inputs: [
|
|
414
|
+
{
|
|
415
|
+
indexed: true,
|
|
416
|
+
internalType: "Id",
|
|
417
|
+
name: "id",
|
|
418
|
+
type: "bytes32",
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
indexed: true,
|
|
422
|
+
internalType: "address",
|
|
423
|
+
name: "caller",
|
|
424
|
+
type: "address",
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
indexed: true,
|
|
428
|
+
internalType: "address",
|
|
429
|
+
name: "onBehalf",
|
|
430
|
+
type: "address",
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
indexed: false,
|
|
434
|
+
internalType: "uint256",
|
|
435
|
+
name: "assets",
|
|
436
|
+
type: "uint256",
|
|
437
|
+
},
|
|
438
|
+
],
|
|
439
|
+
name: "SupplyCollateral",
|
|
440
|
+
type: "event",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
anonymous: false,
|
|
444
|
+
inputs: [
|
|
445
|
+
{
|
|
446
|
+
indexed: true,
|
|
447
|
+
internalType: "Id",
|
|
448
|
+
name: "id",
|
|
449
|
+
type: "bytes32",
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
indexed: false,
|
|
453
|
+
internalType: "address",
|
|
454
|
+
name: "caller",
|
|
455
|
+
type: "address",
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
indexed: true,
|
|
459
|
+
internalType: "address",
|
|
460
|
+
name: "onBehalf",
|
|
461
|
+
type: "address",
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
indexed: true,
|
|
465
|
+
internalType: "address",
|
|
466
|
+
name: "receiver",
|
|
467
|
+
type: "address",
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
indexed: false,
|
|
471
|
+
internalType: "uint256",
|
|
472
|
+
name: "assets",
|
|
473
|
+
type: "uint256",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
indexed: false,
|
|
477
|
+
internalType: "uint256",
|
|
478
|
+
name: "shares",
|
|
479
|
+
type: "uint256",
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
name: "Withdraw",
|
|
483
|
+
type: "event",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
anonymous: false,
|
|
487
|
+
inputs: [
|
|
488
|
+
{
|
|
489
|
+
indexed: true,
|
|
490
|
+
internalType: "Id",
|
|
491
|
+
name: "id",
|
|
492
|
+
type: "bytes32",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
indexed: false,
|
|
496
|
+
internalType: "address",
|
|
497
|
+
name: "caller",
|
|
498
|
+
type: "address",
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
indexed: true,
|
|
502
|
+
internalType: "address",
|
|
503
|
+
name: "onBehalf",
|
|
504
|
+
type: "address",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
indexed: true,
|
|
508
|
+
internalType: "address",
|
|
509
|
+
name: "receiver",
|
|
510
|
+
type: "address",
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
indexed: false,
|
|
514
|
+
internalType: "uint256",
|
|
515
|
+
name: "assets",
|
|
516
|
+
type: "uint256",
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
name: "WithdrawCollateral",
|
|
520
|
+
type: "event",
|
|
521
|
+
},
|
|
522
|
+
];
|
|
523
|
+
const _bytecode = "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202b8c7ca8f22807a28fa64c8c13b9385abc7fedf82535b26323e118f3a8f0ebee64736f6c634300081b0033";
|
|
524
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
525
|
+
class EventsLib__factory extends ethers_1.ContractFactory {
|
|
526
|
+
constructor(...args) {
|
|
527
|
+
if (isSuperArgs(args)) {
|
|
528
|
+
super(...args);
|
|
529
|
+
}
|
|
530
|
+
else {
|
|
531
|
+
super(_abi, _bytecode, args[0]);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
getDeployTransaction(overrides) {
|
|
535
|
+
return super.getDeployTransaction(overrides || {});
|
|
536
|
+
}
|
|
537
|
+
deploy(overrides) {
|
|
538
|
+
return super.deploy(overrides || {});
|
|
539
|
+
}
|
|
540
|
+
connect(runner) {
|
|
541
|
+
return super.connect(runner);
|
|
542
|
+
}
|
|
543
|
+
static bytecode = _bytecode;
|
|
544
|
+
static abi = _abi;
|
|
545
|
+
static createInterface() {
|
|
546
|
+
return new ethers_1.Interface(_abi);
|
|
547
|
+
}
|
|
548
|
+
static connect(address, runner) {
|
|
549
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
exports.EventsLib__factory = EventsLib__factory;
|
|
553
|
+
//# sourceMappingURL=EventsLib__factory.js.map
|
package/dist/typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventsLib__factory.js","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/libraries/EventsLib__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,IAAI;gBAClB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,S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AMjS,MAAM,WAAW,GAAG,CAClB,EAA8B,EACuB,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,kBAAmB,SAAQ,wBAAe;IACrD,YAAY,GAAG,IAAgC;QAC7C,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACjB,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAEQ,oBAAoB,CAC3B,SAAmD;QAEnD,OAAO,KAAK,CAAC,oBAAoB,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;IACQ,MAAM,CAAC,SAAmD;QACjE,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAIlC,CAAC;IACJ,CAAC;IACQ,OAAO,CAAC,MAA6B;QAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAuB,CAAC;IACrD,CAAC;IAED,MAAM,CAAU,QAAQ,GAAG,SAAS,CAAC;IACrC,MAAM,CAAU,GAAG,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAuB,CAAC;IACnD,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,MAA8B;QAC5D,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAyB,CAAC;IACrE,CAAC;;AAhCH,gDAiCC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ContractRunner } from "ethers";
|
|
2
|
+
import type { IERC20Internal, IERC20InternalInterface } from "../../../../../../contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal";
|
|
3
|
+
export declare class IERC20Internal__factory {
|
|
4
|
+
static readonly abi: readonly [{
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly internalType: "address";
|
|
7
|
+
readonly name: "to";
|
|
8
|
+
readonly type: "address";
|
|
9
|
+
}, {
|
|
10
|
+
readonly internalType: "uint256";
|
|
11
|
+
readonly name: "value";
|
|
12
|
+
readonly type: "uint256";
|
|
13
|
+
}];
|
|
14
|
+
readonly name: "transfer";
|
|
15
|
+
readonly outputs: readonly [{
|
|
16
|
+
readonly internalType: "bool";
|
|
17
|
+
readonly name: "";
|
|
18
|
+
readonly type: "bool";
|
|
19
|
+
}];
|
|
20
|
+
readonly stateMutability: "nonpayable";
|
|
21
|
+
readonly type: "function";
|
|
22
|
+
}, {
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly internalType: "address";
|
|
25
|
+
readonly name: "from";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}, {
|
|
28
|
+
readonly internalType: "address";
|
|
29
|
+
readonly name: "to";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly internalType: "uint256";
|
|
33
|
+
readonly name: "value";
|
|
34
|
+
readonly type: "uint256";
|
|
35
|
+
}];
|
|
36
|
+
readonly name: "transferFrom";
|
|
37
|
+
readonly outputs: readonly [{
|
|
38
|
+
readonly internalType: "bool";
|
|
39
|
+
readonly name: "";
|
|
40
|
+
readonly type: "bool";
|
|
41
|
+
}];
|
|
42
|
+
readonly stateMutability: "nonpayable";
|
|
43
|
+
readonly type: "function";
|
|
44
|
+
}];
|
|
45
|
+
static createInterface(): IERC20InternalInterface;
|
|
46
|
+
static connect(address: string, runner?: ContractRunner | null): IERC20Internal;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=IERC20Internal__factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IERC20Internal__factory.d.ts","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACxB,MAAM,0FAA0F,CAAC;AA0DlG,qBAAa,uBAAuB;IAClC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,uBAAuB;IAGjD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,cAAc;CAGlB"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.IERC20Internal__factory = void 0;
|
|
8
|
+
const ethers_1 = require("ethers");
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "address",
|
|
14
|
+
name: "to",
|
|
15
|
+
type: "address",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
internalType: "uint256",
|
|
19
|
+
name: "value",
|
|
20
|
+
type: "uint256",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
name: "transfer",
|
|
24
|
+
outputs: [
|
|
25
|
+
{
|
|
26
|
+
internalType: "bool",
|
|
27
|
+
name: "",
|
|
28
|
+
type: "bool",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
stateMutability: "nonpayable",
|
|
32
|
+
type: "function",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
inputs: [
|
|
36
|
+
{
|
|
37
|
+
internalType: "address",
|
|
38
|
+
name: "from",
|
|
39
|
+
type: "address",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "to",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
internalType: "uint256",
|
|
48
|
+
name: "value",
|
|
49
|
+
type: "uint256",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "transferFrom",
|
|
53
|
+
outputs: [
|
|
54
|
+
{
|
|
55
|
+
internalType: "bool",
|
|
56
|
+
name: "",
|
|
57
|
+
type: "bool",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
stateMutability: "nonpayable",
|
|
61
|
+
type: "function",
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
class IERC20Internal__factory {
|
|
65
|
+
static abi = _abi;
|
|
66
|
+
static createInterface() {
|
|
67
|
+
return new ethers_1.Interface(_abi);
|
|
68
|
+
}
|
|
69
|
+
static connect(address, runner) {
|
|
70
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.IERC20Internal__factory = IERC20Internal__factory;
|
|
74
|
+
//# sourceMappingURL=IERC20Internal__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IERC20Internal__factory.js","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/contracts/external/morpho/libraries/SafeTransferLib.sol/IERC20Internal__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAkE;AAMlE,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE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