morpho-contracts-helper 0.0.5 → 0.0.6

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.
Files changed (50) hide show
  1. package/contracts/external/morpho/interfaces/AggregatorV3Interface.sol +22 -0
  2. package/contracts/external/morpho/interfaces/IERC4626.sol +6 -0
  3. package/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2.sol +39 -0
  4. package/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory.sol +56 -0
  5. package/contracts/external/morpho/libraries/ChainlinkDataFeedLib.sol +36 -0
  6. package/contracts/external/morpho/libraries/ErrorsLib.sol +9 -0
  7. package/contracts/external/morpho/libraries/VaultLib.sol +18 -0
  8. package/dist/typechain-types/contracts/external/morpho/interfaces/AggregatorV3Interface.d.ts +104 -0
  9. package/dist/typechain-types/contracts/external/morpho/interfaces/AggregatorV3Interface.d.ts.map +1 -0
  10. package/dist/typechain-types/contracts/external/morpho/interfaces/AggregatorV3Interface.js +3 -0
  11. package/dist/typechain-types/contracts/external/morpho/interfaces/AggregatorV3Interface.js.map +1 -0
  12. package/dist/typechain-types/contracts/external/morpho/interfaces/IERC4626.d.ts +26 -0
  13. package/dist/typechain-types/contracts/external/morpho/interfaces/IERC4626.d.ts.map +1 -0
  14. package/dist/typechain-types/contracts/external/morpho/interfaces/IERC4626.js +3 -0
  15. package/dist/typechain-types/contracts/external/morpho/interfaces/IERC4626.js.map +1 -0
  16. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2.d.ts +62 -0
  17. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2.d.ts.map +1 -0
  18. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2.js +3 -0
  19. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2.js.map +1 -0
  20. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory.d.ts +91 -0
  21. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory.d.ts.map +1 -0
  22. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory.js +3 -0
  23. package/dist/typechain-types/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory.js.map +1 -0
  24. package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts +4 -0
  25. package/dist/typechain-types/contracts/external/morpho/interfaces/index.d.ts.map +1 -1
  26. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/AggregatorV3Interface__factory.d.ts +94 -0
  27. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/AggregatorV3Interface__factory.d.ts.map +1 -0
  28. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/AggregatorV3Interface__factory.js +132 -0
  29. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/AggregatorV3Interface__factory.js.map +1 -0
  30. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IERC4626__factory.d.ts +22 -0
  31. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IERC4626__factory.d.ts.map +1 -0
  32. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IERC4626__factory.js +40 -0
  33. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IERC4626__factory.js.map +1 -0
  34. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory__factory.d.ts +91 -0
  35. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory__factory.d.ts.map +1 -0
  36. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory__factory.js +128 -0
  37. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory__factory.js.map +1 -0
  38. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2__factory.d.ts +108 -0
  39. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2__factory.d.ts.map +1 -0
  40. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2__factory.js +151 -0
  41. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2__factory.js.map +1 -0
  42. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts +4 -0
  43. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.d.ts.map +1 -1
  44. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js +9 -1
  45. package/dist/typechain-types/factories/contracts/external/morpho/interfaces/index.js.map +1 -1
  46. package/dist/typechain-types/index.d.ts +8 -0
  47. package/dist/typechain-types/index.d.ts.map +1 -1
  48. package/dist/typechain-types/index.js +9 -1
  49. package/dist/typechain-types/index.js.map +1 -1
  50. package/package.json +7 -7
@@ -0,0 +1,94 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { AggregatorV3Interface, AggregatorV3InterfaceInterface } from "../../../../../contracts/external/morpho/interfaces/AggregatorV3Interface";
3
+ export declare class AggregatorV3Interface__factory {
4
+ static readonly abi: readonly [{
5
+ readonly inputs: readonly [];
6
+ readonly name: "decimals";
7
+ readonly outputs: readonly [{
8
+ readonly internalType: "uint8";
9
+ readonly name: "";
10
+ readonly type: "uint8";
11
+ }];
12
+ readonly stateMutability: "view";
13
+ readonly type: "function";
14
+ }, {
15
+ readonly inputs: readonly [];
16
+ readonly name: "description";
17
+ readonly outputs: readonly [{
18
+ readonly internalType: "string";
19
+ readonly name: "";
20
+ readonly type: "string";
21
+ }];
22
+ readonly stateMutability: "view";
23
+ readonly type: "function";
24
+ }, {
25
+ readonly inputs: readonly [{
26
+ readonly internalType: "uint80";
27
+ readonly name: "_roundId";
28
+ readonly type: "uint80";
29
+ }];
30
+ readonly name: "getRoundData";
31
+ readonly outputs: readonly [{
32
+ readonly internalType: "uint80";
33
+ readonly name: "roundId";
34
+ readonly type: "uint80";
35
+ }, {
36
+ readonly internalType: "int256";
37
+ readonly name: "answer";
38
+ readonly type: "int256";
39
+ }, {
40
+ readonly internalType: "uint256";
41
+ readonly name: "startedAt";
42
+ readonly type: "uint256";
43
+ }, {
44
+ readonly internalType: "uint256";
45
+ readonly name: "updatedAt";
46
+ readonly type: "uint256";
47
+ }, {
48
+ readonly internalType: "uint80";
49
+ readonly name: "answeredInRound";
50
+ readonly type: "uint80";
51
+ }];
52
+ readonly stateMutability: "view";
53
+ readonly type: "function";
54
+ }, {
55
+ readonly inputs: readonly [];
56
+ readonly name: "latestRoundData";
57
+ readonly outputs: readonly [{
58
+ readonly internalType: "uint80";
59
+ readonly name: "roundId";
60
+ readonly type: "uint80";
61
+ }, {
62
+ readonly internalType: "int256";
63
+ readonly name: "answer";
64
+ readonly type: "int256";
65
+ }, {
66
+ readonly internalType: "uint256";
67
+ readonly name: "startedAt";
68
+ readonly type: "uint256";
69
+ }, {
70
+ readonly internalType: "uint256";
71
+ readonly name: "updatedAt";
72
+ readonly type: "uint256";
73
+ }, {
74
+ readonly internalType: "uint80";
75
+ readonly name: "answeredInRound";
76
+ readonly type: "uint80";
77
+ }];
78
+ readonly stateMutability: "view";
79
+ readonly type: "function";
80
+ }, {
81
+ readonly inputs: readonly [];
82
+ readonly name: "version";
83
+ readonly outputs: readonly [{
84
+ readonly internalType: "uint256";
85
+ readonly name: "";
86
+ readonly type: "uint256";
87
+ }];
88
+ readonly stateMutability: "view";
89
+ readonly type: "function";
90
+ }];
91
+ static createInterface(): AggregatorV3InterfaceInterface;
92
+ static connect(address: string, runner?: ContractRunner | null): AggregatorV3Interface;
93
+ }
94
+ //# sourceMappingURL=AggregatorV3Interface__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AggregatorV3Interface__factory.d.ts","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/AggregatorV3Interface__factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,qBAAqB,EACrB,8BAA8B,EAC/B,MAAM,2EAA2E,CAAC;AAoHnF,qBAAa,8BAA8B;IACzC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,8BAA8B;IAGxD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,qBAAqB;CAOzB"}
@@ -0,0 +1,132 @@
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.AggregatorV3Interface__factory = void 0;
8
+ const ethers_1 = require("ethers");
9
+ const _abi = [
10
+ {
11
+ inputs: [],
12
+ name: "decimals",
13
+ outputs: [
14
+ {
15
+ internalType: "uint8",
16
+ name: "",
17
+ type: "uint8",
18
+ },
19
+ ],
20
+ stateMutability: "view",
21
+ type: "function",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "description",
26
+ outputs: [
27
+ {
28
+ internalType: "string",
29
+ name: "",
30
+ type: "string",
31
+ },
32
+ ],
33
+ stateMutability: "view",
34
+ type: "function",
35
+ },
36
+ {
37
+ inputs: [
38
+ {
39
+ internalType: "uint80",
40
+ name: "_roundId",
41
+ type: "uint80",
42
+ },
43
+ ],
44
+ name: "getRoundData",
45
+ outputs: [
46
+ {
47
+ internalType: "uint80",
48
+ name: "roundId",
49
+ type: "uint80",
50
+ },
51
+ {
52
+ internalType: "int256",
53
+ name: "answer",
54
+ type: "int256",
55
+ },
56
+ {
57
+ internalType: "uint256",
58
+ name: "startedAt",
59
+ type: "uint256",
60
+ },
61
+ {
62
+ internalType: "uint256",
63
+ name: "updatedAt",
64
+ type: "uint256",
65
+ },
66
+ {
67
+ internalType: "uint80",
68
+ name: "answeredInRound",
69
+ type: "uint80",
70
+ },
71
+ ],
72
+ stateMutability: "view",
73
+ type: "function",
74
+ },
75
+ {
76
+ inputs: [],
77
+ name: "latestRoundData",
78
+ outputs: [
79
+ {
80
+ internalType: "uint80",
81
+ name: "roundId",
82
+ type: "uint80",
83
+ },
84
+ {
85
+ internalType: "int256",
86
+ name: "answer",
87
+ type: "int256",
88
+ },
89
+ {
90
+ internalType: "uint256",
91
+ name: "startedAt",
92
+ type: "uint256",
93
+ },
94
+ {
95
+ internalType: "uint256",
96
+ name: "updatedAt",
97
+ type: "uint256",
98
+ },
99
+ {
100
+ internalType: "uint80",
101
+ name: "answeredInRound",
102
+ type: "uint80",
103
+ },
104
+ ],
105
+ stateMutability: "view",
106
+ type: "function",
107
+ },
108
+ {
109
+ inputs: [],
110
+ name: "version",
111
+ outputs: [
112
+ {
113
+ internalType: "uint256",
114
+ name: "",
115
+ type: "uint256",
116
+ },
117
+ ],
118
+ stateMutability: "view",
119
+ type: "function",
120
+ },
121
+ ];
122
+ class AggregatorV3Interface__factory {
123
+ static abi = _abi;
124
+ static createInterface() {
125
+ return new ethers_1.Interface(_abi);
126
+ }
127
+ static connect(address, runner) {
128
+ return new ethers_1.Contract(address, _abi, runner);
129
+ }
130
+ }
131
+ exports.AggregatorV3Interface__factory = AggregatorV3Interface__factory;
132
+ //# sourceMappingURL=AggregatorV3Interface__factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AggregatorV3Interface__factory.js","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/AggregatorV3Interface__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAkE;AAMlE,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,UAAU;QAChB,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,EAAE,QAAQ;aACf;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,QAAQ;aACf;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAa,8BAA8B;IACzC,MAAM,CAAU,GAAG,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAmC,CAAC;IAC/D,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,MAAM,CAC6B,CAAC;IACxC,CAAC;;AAdH,wEAeC"}
@@ -0,0 +1,22 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IERC4626, IERC4626Interface } from "../../../../../contracts/external/morpho/interfaces/IERC4626";
3
+ export declare class IERC4626__factory {
4
+ static readonly abi: readonly [{
5
+ readonly inputs: readonly [{
6
+ readonly internalType: "uint256";
7
+ readonly name: "";
8
+ readonly type: "uint256";
9
+ }];
10
+ readonly name: "convertToAssets";
11
+ readonly outputs: readonly [{
12
+ readonly internalType: "uint256";
13
+ readonly name: "";
14
+ readonly type: "uint256";
15
+ }];
16
+ readonly stateMutability: "view";
17
+ readonly type: "function";
18
+ }];
19
+ static createInterface(): IERC4626Interface;
20
+ static connect(address: string, runner?: ContractRunner | null): IERC4626;
21
+ }
22
+ //# sourceMappingURL=IERC4626__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IERC4626__factory.d.ts","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/IERC4626__factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EAClB,MAAM,8DAA8D,CAAC;AAwBtE,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,iBAAiB;IAG3C,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,QAAQ;CAG1E"}
@@ -0,0 +1,40 @@
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.IERC4626__factory = void 0;
8
+ const ethers_1 = require("ethers");
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "uint256",
14
+ name: "",
15
+ type: "uint256",
16
+ },
17
+ ],
18
+ name: "convertToAssets",
19
+ outputs: [
20
+ {
21
+ internalType: "uint256",
22
+ name: "",
23
+ type: "uint256",
24
+ },
25
+ ],
26
+ stateMutability: "view",
27
+ type: "function",
28
+ },
29
+ ];
30
+ class IERC4626__factory {
31
+ static abi = _abi;
32
+ static createInterface() {
33
+ return new ethers_1.Interface(_abi);
34
+ }
35
+ static connect(address, runner) {
36
+ return new ethers_1.Contract(address, _abi, runner);
37
+ }
38
+ }
39
+ exports.IERC4626__factory = IERC4626__factory;
40
+ //# sourceMappingURL=IERC4626__factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IERC4626__factory.js","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/IERC4626__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,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAa,iBAAiB;IAC5B,MAAM,CAAU,GAAG,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAsB,CAAC;IAClD,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,MAA8B;QAC5D,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAwB,CAAC;IACpE,CAAC;;AAPH,8CAQC"}
@@ -0,0 +1,91 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IMorphoChainlinkOracleV2Factory, IMorphoChainlinkOracleV2FactoryInterface } from "../../../../../contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory";
3
+ export declare class IMorphoChainlinkOracleV2Factory__factory {
4
+ static readonly abi: readonly [{
5
+ readonly anonymous: false;
6
+ readonly inputs: readonly [{
7
+ readonly indexed: false;
8
+ readonly internalType: "address";
9
+ readonly name: "caller";
10
+ readonly type: "address";
11
+ }, {
12
+ readonly indexed: false;
13
+ readonly internalType: "address";
14
+ readonly name: "oracle";
15
+ readonly type: "address";
16
+ }];
17
+ readonly name: "CreateMorphoChainlinkOracleV2";
18
+ readonly type: "event";
19
+ }, {
20
+ readonly inputs: readonly [{
21
+ readonly internalType: "contract IERC4626";
22
+ readonly name: "baseVault";
23
+ readonly type: "address";
24
+ }, {
25
+ readonly internalType: "uint256";
26
+ readonly name: "baseVaultConversionSample";
27
+ readonly type: "uint256";
28
+ }, {
29
+ readonly internalType: "contract AggregatorV3Interface";
30
+ readonly name: "baseFeed1";
31
+ readonly type: "address";
32
+ }, {
33
+ readonly internalType: "contract AggregatorV3Interface";
34
+ readonly name: "baseFeed2";
35
+ readonly type: "address";
36
+ }, {
37
+ readonly internalType: "uint256";
38
+ readonly name: "baseTokenDecimals";
39
+ readonly type: "uint256";
40
+ }, {
41
+ readonly internalType: "contract IERC4626";
42
+ readonly name: "quoteVault";
43
+ readonly type: "address";
44
+ }, {
45
+ readonly internalType: "uint256";
46
+ readonly name: "quoteVaultConversionSample";
47
+ readonly type: "uint256";
48
+ }, {
49
+ readonly internalType: "contract AggregatorV3Interface";
50
+ readonly name: "quoteFeed1";
51
+ readonly type: "address";
52
+ }, {
53
+ readonly internalType: "contract AggregatorV3Interface";
54
+ readonly name: "quoteFeed2";
55
+ readonly type: "address";
56
+ }, {
57
+ readonly internalType: "uint256";
58
+ readonly name: "quoteTokenDecimals";
59
+ readonly type: "uint256";
60
+ }, {
61
+ readonly internalType: "bytes32";
62
+ readonly name: "salt";
63
+ readonly type: "bytes32";
64
+ }];
65
+ readonly name: "createMorphoChainlinkOracleV2";
66
+ readonly outputs: readonly [{
67
+ readonly internalType: "contract IMorphoChainlinkOracleV2";
68
+ readonly name: "oracle";
69
+ readonly type: "address";
70
+ }];
71
+ readonly stateMutability: "nonpayable";
72
+ readonly type: "function";
73
+ }, {
74
+ readonly inputs: readonly [{
75
+ readonly internalType: "address";
76
+ readonly name: "target";
77
+ readonly type: "address";
78
+ }];
79
+ readonly name: "isMorphoChainlinkOracleV2";
80
+ readonly outputs: readonly [{
81
+ readonly internalType: "bool";
82
+ readonly name: "";
83
+ readonly type: "bool";
84
+ }];
85
+ readonly stateMutability: "view";
86
+ readonly type: "function";
87
+ }];
88
+ static createInterface(): IMorphoChainlinkOracleV2FactoryInterface;
89
+ static connect(address: string, runner?: ContractRunner | null): IMorphoChainlinkOracleV2Factory;
90
+ }
91
+ //# sourceMappingURL=IMorphoChainlinkOracleV2Factory__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMorphoChainlinkOracleV2Factory__factory.d.ts","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory__factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,+BAA+B,EAC/B,wCAAwC,EACzC,MAAM,qFAAqF,CAAC;AAgH7F,qBAAa,wCAAwC;IACnD,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,wCAAwC;IAGlE,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,+BAA+B;CAOnC"}
@@ -0,0 +1,128 @@
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.IMorphoChainlinkOracleV2Factory__factory = void 0;
8
+ const ethers_1 = require("ethers");
9
+ const _abi = [
10
+ {
11
+ anonymous: false,
12
+ inputs: [
13
+ {
14
+ indexed: false,
15
+ internalType: "address",
16
+ name: "caller",
17
+ type: "address",
18
+ },
19
+ {
20
+ indexed: false,
21
+ internalType: "address",
22
+ name: "oracle",
23
+ type: "address",
24
+ },
25
+ ],
26
+ name: "CreateMorphoChainlinkOracleV2",
27
+ type: "event",
28
+ },
29
+ {
30
+ inputs: [
31
+ {
32
+ internalType: "contract IERC4626",
33
+ name: "baseVault",
34
+ type: "address",
35
+ },
36
+ {
37
+ internalType: "uint256",
38
+ name: "baseVaultConversionSample",
39
+ type: "uint256",
40
+ },
41
+ {
42
+ internalType: "contract AggregatorV3Interface",
43
+ name: "baseFeed1",
44
+ type: "address",
45
+ },
46
+ {
47
+ internalType: "contract AggregatorV3Interface",
48
+ name: "baseFeed2",
49
+ type: "address",
50
+ },
51
+ {
52
+ internalType: "uint256",
53
+ name: "baseTokenDecimals",
54
+ type: "uint256",
55
+ },
56
+ {
57
+ internalType: "contract IERC4626",
58
+ name: "quoteVault",
59
+ type: "address",
60
+ },
61
+ {
62
+ internalType: "uint256",
63
+ name: "quoteVaultConversionSample",
64
+ type: "uint256",
65
+ },
66
+ {
67
+ internalType: "contract AggregatorV3Interface",
68
+ name: "quoteFeed1",
69
+ type: "address",
70
+ },
71
+ {
72
+ internalType: "contract AggregatorV3Interface",
73
+ name: "quoteFeed2",
74
+ type: "address",
75
+ },
76
+ {
77
+ internalType: "uint256",
78
+ name: "quoteTokenDecimals",
79
+ type: "uint256",
80
+ },
81
+ {
82
+ internalType: "bytes32",
83
+ name: "salt",
84
+ type: "bytes32",
85
+ },
86
+ ],
87
+ name: "createMorphoChainlinkOracleV2",
88
+ outputs: [
89
+ {
90
+ internalType: "contract IMorphoChainlinkOracleV2",
91
+ name: "oracle",
92
+ type: "address",
93
+ },
94
+ ],
95
+ stateMutability: "nonpayable",
96
+ type: "function",
97
+ },
98
+ {
99
+ inputs: [
100
+ {
101
+ internalType: "address",
102
+ name: "target",
103
+ type: "address",
104
+ },
105
+ ],
106
+ name: "isMorphoChainlinkOracleV2",
107
+ outputs: [
108
+ {
109
+ internalType: "bool",
110
+ name: "",
111
+ type: "bool",
112
+ },
113
+ ],
114
+ stateMutability: "view",
115
+ type: "function",
116
+ },
117
+ ];
118
+ class IMorphoChainlinkOracleV2Factory__factory {
119
+ static abi = _abi;
120
+ static createInterface() {
121
+ return new ethers_1.Interface(_abi);
122
+ }
123
+ static connect(address, runner) {
124
+ return new ethers_1.Contract(address, _abi, runner);
125
+ }
126
+ }
127
+ exports.IMorphoChainlinkOracleV2Factory__factory = IMorphoChainlinkOracleV2Factory__factory;
128
+ //# sourceMappingURL=IMorphoChainlinkOracleV2Factory__factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMorphoChainlinkOracleV2Factory__factory.js","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2Factory__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAkE;AAMlE,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,+BAA+B;QACrC,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,mBAAmB;gBACjC,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,2BAA2B;gBACjC,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,gCAAgC;gBAC9C,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,gCAAgC;gBAC9C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AC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA6C,CAAC;IACzE,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,MAAM,CACuC,CAAC;IAClD,CAAC;;AAdH,4FAeC"}
@@ -0,0 +1,108 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IMorphoChainlinkOracleV2, IMorphoChainlinkOracleV2Interface } from "../../../../../contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2";
3
+ export declare class IMorphoChainlinkOracleV2__factory {
4
+ static readonly abi: readonly [{
5
+ readonly inputs: readonly [];
6
+ readonly name: "BASE_FEED_1";
7
+ readonly outputs: readonly [{
8
+ readonly internalType: "contract AggregatorV3Interface";
9
+ readonly name: "";
10
+ readonly type: "address";
11
+ }];
12
+ readonly stateMutability: "view";
13
+ readonly type: "function";
14
+ }, {
15
+ readonly inputs: readonly [];
16
+ readonly name: "BASE_FEED_2";
17
+ readonly outputs: readonly [{
18
+ readonly internalType: "contract AggregatorV3Interface";
19
+ readonly name: "";
20
+ readonly type: "address";
21
+ }];
22
+ readonly stateMutability: "view";
23
+ readonly type: "function";
24
+ }, {
25
+ readonly inputs: readonly [];
26
+ readonly name: "BASE_VAULT";
27
+ readonly outputs: readonly [{
28
+ readonly internalType: "contract IERC4626";
29
+ readonly name: "";
30
+ readonly type: "address";
31
+ }];
32
+ readonly stateMutability: "view";
33
+ readonly type: "function";
34
+ }, {
35
+ readonly inputs: readonly [];
36
+ readonly name: "BASE_VAULT_CONVERSION_SAMPLE";
37
+ readonly outputs: readonly [{
38
+ readonly internalType: "uint256";
39
+ readonly name: "";
40
+ readonly type: "uint256";
41
+ }];
42
+ readonly stateMutability: "view";
43
+ readonly type: "function";
44
+ }, {
45
+ readonly inputs: readonly [];
46
+ readonly name: "QUOTE_FEED_1";
47
+ readonly outputs: readonly [{
48
+ readonly internalType: "contract AggregatorV3Interface";
49
+ readonly name: "";
50
+ readonly type: "address";
51
+ }];
52
+ readonly stateMutability: "view";
53
+ readonly type: "function";
54
+ }, {
55
+ readonly inputs: readonly [];
56
+ readonly name: "QUOTE_FEED_2";
57
+ readonly outputs: readonly [{
58
+ readonly internalType: "contract AggregatorV3Interface";
59
+ readonly name: "";
60
+ readonly type: "address";
61
+ }];
62
+ readonly stateMutability: "view";
63
+ readonly type: "function";
64
+ }, {
65
+ readonly inputs: readonly [];
66
+ readonly name: "QUOTE_VAULT";
67
+ readonly outputs: readonly [{
68
+ readonly internalType: "contract IERC4626";
69
+ readonly name: "";
70
+ readonly type: "address";
71
+ }];
72
+ readonly stateMutability: "view";
73
+ readonly type: "function";
74
+ }, {
75
+ readonly inputs: readonly [];
76
+ readonly name: "QUOTE_VAULT_CONVERSION_SAMPLE";
77
+ readonly outputs: readonly [{
78
+ readonly internalType: "uint256";
79
+ readonly name: "";
80
+ readonly type: "uint256";
81
+ }];
82
+ readonly stateMutability: "view";
83
+ readonly type: "function";
84
+ }, {
85
+ readonly inputs: readonly [];
86
+ readonly name: "SCALE_FACTOR";
87
+ readonly outputs: readonly [{
88
+ readonly internalType: "uint256";
89
+ readonly name: "";
90
+ readonly type: "uint256";
91
+ }];
92
+ readonly stateMutability: "view";
93
+ readonly type: "function";
94
+ }, {
95
+ readonly inputs: readonly [];
96
+ readonly name: "price";
97
+ readonly outputs: readonly [{
98
+ readonly internalType: "uint256";
99
+ readonly name: "";
100
+ readonly type: "uint256";
101
+ }];
102
+ readonly stateMutability: "view";
103
+ readonly type: "function";
104
+ }];
105
+ static createInterface(): IMorphoChainlinkOracleV2Interface;
106
+ static connect(address: string, runner?: ContractRunner | null): IMorphoChainlinkOracleV2;
107
+ }
108
+ //# sourceMappingURL=IMorphoChainlinkOracleV2__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMorphoChainlinkOracleV2__factory.d.ts","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/contracts/external/morpho/interfaces/IMorphoChainlinkOracleV2__factory.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,8EAA8E,CAAC;AAuItF,qBAAa,iCAAiC;IAC5C,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,iCAAiC;IAG3D,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,wBAAwB;CAO5B"}