alia-contracts-spec 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +73 -0
  3. package/abi/IAllocationAdapter.json +181 -0
  4. package/abi/IPillarDMode.json +281 -0
  5. package/abi/IScoreEngine.json +87 -0
  6. package/abi/adapters/IAaveV3BNBAdapter.json +251 -0
  7. package/abi/adapters/ICompoundAdapter.json +238 -0
  8. package/abi/adapters/IEulerAdapter.json +238 -0
  9. package/abi/adapters/IKernelAdapter.json +255 -0
  10. package/abi/adapters/IListaAdapter.json +239 -0
  11. package/abi/adapters/IMorphoAdapter.json +259 -0
  12. package/abi/adapters/IPendleAdapter.json +289 -0
  13. package/abi/adapters/ISiloAdapter.json +238 -0
  14. package/abi/adapters/ISparkAdapter.json +245 -0
  15. package/dist/IAllocationAdapter.d.ts +132 -0
  16. package/dist/IAllocationAdapter.d.ts.map +1 -0
  17. package/dist/IAllocationAdapter.js +2 -0
  18. package/dist/IPillarDMode.d.ts +179 -0
  19. package/dist/IPillarDMode.d.ts.map +1 -0
  20. package/dist/IPillarDMode.js +2 -0
  21. package/dist/IScoreEngine.d.ts +90 -0
  22. package/dist/IScoreEngine.d.ts.map +1 -0
  23. package/dist/IScoreEngine.js +2 -0
  24. package/dist/adapters/IAaveV3BNBAdapter.d.ts +156 -0
  25. package/dist/adapters/IAaveV3BNBAdapter.d.ts.map +1 -0
  26. package/dist/adapters/IAaveV3BNBAdapter.js +2 -0
  27. package/dist/adapters/ICompoundAdapter.d.ts +148 -0
  28. package/dist/adapters/ICompoundAdapter.d.ts.map +1 -0
  29. package/dist/adapters/ICompoundAdapter.js +2 -0
  30. package/dist/adapters/IEulerAdapter.d.ts +144 -0
  31. package/dist/adapters/IEulerAdapter.d.ts.map +1 -0
  32. package/dist/adapters/IEulerAdapter.js +2 -0
  33. package/dist/adapters/IKernelAdapter.d.ts +164 -0
  34. package/dist/adapters/IKernelAdapter.d.ts.map +1 -0
  35. package/dist/adapters/IKernelAdapter.js +2 -0
  36. package/dist/adapters/IListaAdapter.d.ts +148 -0
  37. package/dist/adapters/IListaAdapter.d.ts.map +1 -0
  38. package/dist/adapters/IListaAdapter.js +2 -0
  39. package/dist/adapters/IMorphoAdapter.d.ts +174 -0
  40. package/dist/adapters/IMorphoAdapter.d.ts.map +1 -0
  41. package/dist/adapters/IMorphoAdapter.js +2 -0
  42. package/dist/adapters/IPendleAdapter.d.ts +156 -0
  43. package/dist/adapters/IPendleAdapter.d.ts.map +1 -0
  44. package/dist/adapters/IPendleAdapter.js +2 -0
  45. package/dist/adapters/ISiloAdapter.d.ts +144 -0
  46. package/dist/adapters/ISiloAdapter.d.ts.map +1 -0
  47. package/dist/adapters/ISiloAdapter.js +2 -0
  48. package/dist/adapters/ISparkAdapter.d.ts +148 -0
  49. package/dist/adapters/ISparkAdapter.d.ts.map +1 -0
  50. package/dist/adapters/ISparkAdapter.js +2 -0
  51. package/dist/adapters/index.d.ts +10 -0
  52. package/dist/adapters/index.d.ts.map +1 -0
  53. package/dist/adapters/index.js +2 -0
  54. package/dist/common.d.ts +51 -0
  55. package/dist/common.d.ts.map +1 -0
  56. package/dist/common.js +2 -0
  57. package/dist/factories/IAllocationAdapter__factory.d.ts +146 -0
  58. package/dist/factories/IAllocationAdapter__factory.d.ts.map +1 -0
  59. package/dist/factories/IAllocationAdapter__factory.js +198 -0
  60. package/dist/factories/IPillarDMode__factory.d.ts +223 -0
  61. package/dist/factories/IPillarDMode__factory.d.ts.map +1 -0
  62. package/dist/factories/IPillarDMode__factory.js +298 -0
  63. package/dist/factories/IScoreEngine__factory.d.ts +74 -0
  64. package/dist/factories/IScoreEngine__factory.d.ts.map +1 -0
  65. package/dist/factories/IScoreEngine__factory.js +104 -0
  66. package/dist/factories/adapters/IAaveV3BNBAdapter__factory.d.ts +198 -0
  67. package/dist/factories/adapters/IAaveV3BNBAdapter__factory.d.ts.map +1 -0
  68. package/dist/factories/adapters/IAaveV3BNBAdapter__factory.js +268 -0
  69. package/dist/factories/adapters/ICompoundAdapter__factory.d.ts +188 -0
  70. package/dist/factories/adapters/ICompoundAdapter__factory.d.ts.map +1 -0
  71. package/dist/factories/adapters/ICompoundAdapter__factory.js +255 -0
  72. package/dist/factories/adapters/IEulerAdapter__factory.d.ts +188 -0
  73. package/dist/factories/adapters/IEulerAdapter__factory.d.ts.map +1 -0
  74. package/dist/factories/adapters/IEulerAdapter__factory.js +255 -0
  75. package/dist/factories/adapters/IKernelAdapter__factory.d.ts +202 -0
  76. package/dist/factories/adapters/IKernelAdapter__factory.d.ts.map +1 -0
  77. package/dist/factories/adapters/IKernelAdapter__factory.js +272 -0
  78. package/dist/factories/adapters/IListaAdapter__factory.d.ts +190 -0
  79. package/dist/factories/adapters/IListaAdapter__factory.d.ts.map +1 -0
  80. package/dist/factories/adapters/IListaAdapter__factory.js +256 -0
  81. package/dist/factories/adapters/IMorphoAdapter__factory.d.ts +205 -0
  82. package/dist/factories/adapters/IMorphoAdapter__factory.d.ts.map +1 -0
  83. package/dist/factories/adapters/IMorphoAdapter__factory.js +276 -0
  84. package/dist/factories/adapters/IPendleAdapter__factory.d.ts +226 -0
  85. package/dist/factories/adapters/IPendleAdapter__factory.d.ts.map +1 -0
  86. package/dist/factories/adapters/IPendleAdapter__factory.js +306 -0
  87. package/dist/factories/adapters/ISiloAdapter__factory.d.ts +188 -0
  88. package/dist/factories/adapters/ISiloAdapter__factory.d.ts.map +1 -0
  89. package/dist/factories/adapters/ISiloAdapter__factory.js +255 -0
  90. package/dist/factories/adapters/ISparkAdapter__factory.d.ts +194 -0
  91. package/dist/factories/adapters/ISparkAdapter__factory.d.ts.map +1 -0
  92. package/dist/factories/adapters/ISparkAdapter__factory.js +262 -0
  93. package/dist/factories/adapters/index.d.ts +10 -0
  94. package/dist/factories/adapters/index.d.ts.map +1 -0
  95. package/dist/factories/adapters/index.js +24 -0
  96. package/dist/factories/index.d.ts +5 -0
  97. package/dist/factories/index.d.ts.map +1 -0
  98. package/dist/factories/index.js +46 -0
  99. package/dist/index.d.ts +28 -0
  100. package/dist/index.d.ts.map +1 -0
  101. package/dist/index.js +61 -0
  102. package/package.json +56 -0
  103. package/src/adapters/interfaces/IAaveV3BNBAdapter.sol +34 -0
  104. package/src/adapters/interfaces/ICompoundAdapter.sol +21 -0
  105. package/src/adapters/interfaces/IEulerAdapter.sol +10 -0
  106. package/src/adapters/interfaces/IKernelAdapter.sol +30 -0
  107. package/src/adapters/interfaces/IListaAdapter.sol +11 -0
  108. package/src/adapters/interfaces/IMorphoAdapter.sol +19 -0
  109. package/src/adapters/interfaces/IPendleAdapter.sol +13 -0
  110. package/src/adapters/interfaces/ISiloAdapter.sol +10 -0
  111. package/src/adapters/interfaces/ISparkAdapter.sol +11 -0
  112. package/src/interfaces/IAllocationAdapter.sol +78 -0
  113. package/src/interfaces/IPillarDMode.sol +85 -0
  114. package/src/interfaces/IScoreEngine.sol +52 -0
@@ -0,0 +1,256 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IListaAdapter__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ type: "function",
11
+ name: "adapterType",
12
+ inputs: [],
13
+ outputs: [
14
+ {
15
+ name: "",
16
+ type: "string",
17
+ internalType: "string",
18
+ },
19
+ ],
20
+ stateMutability: "pure",
21
+ },
22
+ {
23
+ type: "function",
24
+ name: "balanceOf",
25
+ inputs: [
26
+ {
27
+ name: "asset",
28
+ type: "address",
29
+ internalType: "address",
30
+ },
31
+ {
32
+ name: "owner",
33
+ type: "address",
34
+ internalType: "address",
35
+ },
36
+ ],
37
+ outputs: [
38
+ {
39
+ name: "",
40
+ type: "uint256",
41
+ internalType: "uint256",
42
+ },
43
+ ],
44
+ stateMutability: "view",
45
+ },
46
+ {
47
+ type: "function",
48
+ name: "expectedAPY",
49
+ inputs: [
50
+ {
51
+ name: "asset",
52
+ type: "address",
53
+ internalType: "address",
54
+ },
55
+ ],
56
+ outputs: [
57
+ {
58
+ name: "bps",
59
+ type: "uint16",
60
+ internalType: "uint16",
61
+ },
62
+ ],
63
+ stateMutability: "view",
64
+ },
65
+ {
66
+ type: "function",
67
+ name: "listaRWAModule",
68
+ inputs: [],
69
+ outputs: [
70
+ {
71
+ name: "",
72
+ type: "address",
73
+ internalType: "address",
74
+ },
75
+ ],
76
+ stateMutability: "view",
77
+ },
78
+ {
79
+ type: "function",
80
+ name: "listaStaking",
81
+ inputs: [],
82
+ outputs: [
83
+ {
84
+ name: "",
85
+ type: "address",
86
+ internalType: "address",
87
+ },
88
+ ],
89
+ stateMutability: "view",
90
+ },
91
+ {
92
+ type: "function",
93
+ name: "moduleFor",
94
+ inputs: [
95
+ {
96
+ name: "asset",
97
+ type: "address",
98
+ internalType: "address",
99
+ },
100
+ ],
101
+ outputs: [
102
+ {
103
+ name: "",
104
+ type: "string",
105
+ internalType: "string",
106
+ },
107
+ ],
108
+ stateMutability: "view",
109
+ },
110
+ {
111
+ type: "function",
112
+ name: "protocolName",
113
+ inputs: [],
114
+ outputs: [
115
+ {
116
+ name: "",
117
+ type: "string",
118
+ internalType: "string",
119
+ },
120
+ ],
121
+ stateMutability: "pure",
122
+ },
123
+ {
124
+ type: "function",
125
+ name: "slisBNBRate",
126
+ inputs: [],
127
+ outputs: [
128
+ {
129
+ name: "",
130
+ type: "uint256",
131
+ internalType: "uint256",
132
+ },
133
+ ],
134
+ stateMutability: "view",
135
+ },
136
+ {
137
+ type: "function",
138
+ name: "supply",
139
+ inputs: [
140
+ {
141
+ name: "asset",
142
+ type: "address",
143
+ internalType: "address",
144
+ },
145
+ {
146
+ name: "amount",
147
+ type: "uint256",
148
+ internalType: "uint256",
149
+ },
150
+ ],
151
+ outputs: [
152
+ {
153
+ name: "received",
154
+ type: "uint256",
155
+ internalType: "uint256",
156
+ },
157
+ ],
158
+ stateMutability: "nonpayable",
159
+ },
160
+ {
161
+ type: "function",
162
+ name: "withdraw",
163
+ inputs: [
164
+ {
165
+ name: "asset",
166
+ type: "address",
167
+ internalType: "address",
168
+ },
169
+ {
170
+ name: "amount",
171
+ type: "uint256",
172
+ internalType: "uint256",
173
+ },
174
+ ],
175
+ outputs: [
176
+ {
177
+ name: "withdrawn",
178
+ type: "uint256",
179
+ internalType: "uint256",
180
+ },
181
+ ],
182
+ stateMutability: "nonpayable",
183
+ },
184
+ {
185
+ type: "event",
186
+ name: "Supplied",
187
+ inputs: [
188
+ {
189
+ name: "caller",
190
+ type: "address",
191
+ indexed: true,
192
+ internalType: "address",
193
+ },
194
+ {
195
+ name: "asset",
196
+ type: "address",
197
+ indexed: true,
198
+ internalType: "address",
199
+ },
200
+ {
201
+ name: "amount",
202
+ type: "uint256",
203
+ indexed: false,
204
+ internalType: "uint256",
205
+ },
206
+ {
207
+ name: "received",
208
+ type: "uint256",
209
+ indexed: false,
210
+ internalType: "uint256",
211
+ },
212
+ ],
213
+ anonymous: false,
214
+ },
215
+ {
216
+ type: "event",
217
+ name: "Withdrawn",
218
+ inputs: [
219
+ {
220
+ name: "caller",
221
+ type: "address",
222
+ indexed: true,
223
+ internalType: "address",
224
+ },
225
+ {
226
+ name: "asset",
227
+ type: "address",
228
+ indexed: true,
229
+ internalType: "address",
230
+ },
231
+ {
232
+ name: "amount",
233
+ type: "uint256",
234
+ indexed: false,
235
+ internalType: "uint256",
236
+ },
237
+ {
238
+ name: "withdrawn",
239
+ type: "uint256",
240
+ indexed: false,
241
+ internalType: "uint256",
242
+ },
243
+ ],
244
+ anonymous: false,
245
+ },
246
+ ];
247
+ class IListaAdapter__factory {
248
+ static createInterface() {
249
+ return new ethers_1.Interface(_abi);
250
+ }
251
+ static connect(address, runner) {
252
+ return new ethers_1.Contract(address, _abi, runner);
253
+ }
254
+ }
255
+ exports.IListaAdapter__factory = IListaAdapter__factory;
256
+ IListaAdapter__factory.abi = _abi;
@@ -0,0 +1,205 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IMorphoAdapter, IMorphoAdapterInterface } from "../../adapters/IMorphoAdapter";
3
+ export declare class IMorphoAdapter__factory {
4
+ static readonly abi: readonly [{
5
+ readonly type: "function";
6
+ readonly name: "adapterType";
7
+ readonly inputs: readonly [];
8
+ readonly outputs: readonly [{
9
+ readonly name: "";
10
+ readonly type: "string";
11
+ readonly internalType: "string";
12
+ }];
13
+ readonly stateMutability: "pure";
14
+ }, {
15
+ readonly type: "function";
16
+ readonly name: "balanceOf";
17
+ readonly inputs: readonly [{
18
+ readonly name: "asset";
19
+ readonly type: "address";
20
+ readonly internalType: "address";
21
+ }, {
22
+ readonly name: "owner";
23
+ readonly type: "address";
24
+ readonly internalType: "address";
25
+ }];
26
+ readonly outputs: readonly [{
27
+ readonly name: "";
28
+ readonly type: "uint256";
29
+ readonly internalType: "uint256";
30
+ }];
31
+ readonly stateMutability: "view";
32
+ }, {
33
+ readonly type: "function";
34
+ readonly name: "expectedAPY";
35
+ readonly inputs: readonly [{
36
+ readonly name: "asset";
37
+ readonly type: "address";
38
+ readonly internalType: "address";
39
+ }];
40
+ readonly outputs: readonly [{
41
+ readonly name: "bps";
42
+ readonly type: "uint16";
43
+ readonly internalType: "uint16";
44
+ }];
45
+ readonly stateMutability: "view";
46
+ }, {
47
+ readonly type: "function";
48
+ readonly name: "marketIdFor";
49
+ readonly inputs: readonly [{
50
+ readonly name: "asset";
51
+ readonly type: "address";
52
+ readonly internalType: "address";
53
+ }];
54
+ readonly outputs: readonly [{
55
+ readonly name: "";
56
+ readonly type: "bytes32";
57
+ readonly internalType: "bytes32";
58
+ }];
59
+ readonly stateMutability: "view";
60
+ }, {
61
+ readonly type: "function";
62
+ readonly name: "marketParamsFor";
63
+ readonly inputs: readonly [{
64
+ readonly name: "asset";
65
+ readonly type: "address";
66
+ readonly internalType: "address";
67
+ }];
68
+ readonly outputs: readonly [{
69
+ readonly name: "";
70
+ readonly type: "tuple";
71
+ readonly internalType: "struct IMorphoAdapter.MarketParams";
72
+ readonly components: readonly [{
73
+ readonly name: "loanToken";
74
+ readonly type: "address";
75
+ readonly internalType: "address";
76
+ }, {
77
+ readonly name: "collateralToken";
78
+ readonly type: "address";
79
+ readonly internalType: "address";
80
+ }, {
81
+ readonly name: "oracle";
82
+ readonly type: "address";
83
+ readonly internalType: "address";
84
+ }, {
85
+ readonly name: "irm";
86
+ readonly type: "address";
87
+ readonly internalType: "address";
88
+ }, {
89
+ readonly name: "lltv";
90
+ readonly type: "uint256";
91
+ readonly internalType: "uint256";
92
+ }];
93
+ }];
94
+ readonly stateMutability: "view";
95
+ }, {
96
+ readonly type: "function";
97
+ readonly name: "morphoBlue";
98
+ readonly inputs: readonly [];
99
+ readonly outputs: readonly [{
100
+ readonly name: "";
101
+ readonly type: "address";
102
+ readonly internalType: "address";
103
+ }];
104
+ readonly stateMutability: "view";
105
+ }, {
106
+ readonly type: "function";
107
+ readonly name: "protocolName";
108
+ readonly inputs: readonly [];
109
+ readonly outputs: readonly [{
110
+ readonly name: "";
111
+ readonly type: "string";
112
+ readonly internalType: "string";
113
+ }];
114
+ readonly stateMutability: "pure";
115
+ }, {
116
+ readonly type: "function";
117
+ readonly name: "supply";
118
+ readonly inputs: readonly [{
119
+ readonly name: "asset";
120
+ readonly type: "address";
121
+ readonly internalType: "address";
122
+ }, {
123
+ readonly name: "amount";
124
+ readonly type: "uint256";
125
+ readonly internalType: "uint256";
126
+ }];
127
+ readonly outputs: readonly [{
128
+ readonly name: "received";
129
+ readonly type: "uint256";
130
+ readonly internalType: "uint256";
131
+ }];
132
+ readonly stateMutability: "nonpayable";
133
+ }, {
134
+ readonly type: "function";
135
+ readonly name: "withdraw";
136
+ readonly inputs: readonly [{
137
+ readonly name: "asset";
138
+ readonly type: "address";
139
+ readonly internalType: "address";
140
+ }, {
141
+ readonly name: "amount";
142
+ readonly type: "uint256";
143
+ readonly internalType: "uint256";
144
+ }];
145
+ readonly outputs: readonly [{
146
+ readonly name: "withdrawn";
147
+ readonly type: "uint256";
148
+ readonly internalType: "uint256";
149
+ }];
150
+ readonly stateMutability: "nonpayable";
151
+ }, {
152
+ readonly type: "event";
153
+ readonly name: "Supplied";
154
+ readonly inputs: readonly [{
155
+ readonly name: "caller";
156
+ readonly type: "address";
157
+ readonly indexed: true;
158
+ readonly internalType: "address";
159
+ }, {
160
+ readonly name: "asset";
161
+ readonly type: "address";
162
+ readonly indexed: true;
163
+ readonly internalType: "address";
164
+ }, {
165
+ readonly name: "amount";
166
+ readonly type: "uint256";
167
+ readonly indexed: false;
168
+ readonly internalType: "uint256";
169
+ }, {
170
+ readonly name: "received";
171
+ readonly type: "uint256";
172
+ readonly indexed: false;
173
+ readonly internalType: "uint256";
174
+ }];
175
+ readonly anonymous: false;
176
+ }, {
177
+ readonly type: "event";
178
+ readonly name: "Withdrawn";
179
+ readonly inputs: readonly [{
180
+ readonly name: "caller";
181
+ readonly type: "address";
182
+ readonly indexed: true;
183
+ readonly internalType: "address";
184
+ }, {
185
+ readonly name: "asset";
186
+ readonly type: "address";
187
+ readonly indexed: true;
188
+ readonly internalType: "address";
189
+ }, {
190
+ readonly name: "amount";
191
+ readonly type: "uint256";
192
+ readonly indexed: false;
193
+ readonly internalType: "uint256";
194
+ }, {
195
+ readonly name: "withdrawn";
196
+ readonly type: "uint256";
197
+ readonly indexed: false;
198
+ readonly internalType: "uint256";
199
+ }];
200
+ readonly anonymous: false;
201
+ }];
202
+ static createInterface(): IMorphoAdapterInterface;
203
+ static connect(address: string, runner?: ContractRunner | null): IMorphoAdapter;
204
+ }
205
+ //# sourceMappingURL=IMorphoAdapter__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IMorphoAdapter__factory.d.ts","sourceRoot":"","sources":["../../../typechain/factories/adapters/IMorphoAdapter__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACxB,MAAM,+BAA+B,CAAC;AAsQvC,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"}