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,238 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "adapterType",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "string",
10
+ "internalType": "string"
11
+ }
12
+ ],
13
+ "stateMutability": "pure"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "balanceOf",
18
+ "inputs": [
19
+ {
20
+ "name": "asset",
21
+ "type": "address",
22
+ "internalType": "address"
23
+ },
24
+ {
25
+ "name": "owner",
26
+ "type": "address",
27
+ "internalType": "address"
28
+ }
29
+ ],
30
+ "outputs": [
31
+ {
32
+ "name": "",
33
+ "type": "uint256",
34
+ "internalType": "uint256"
35
+ }
36
+ ],
37
+ "stateMutability": "view"
38
+ },
39
+ {
40
+ "type": "function",
41
+ "name": "expectedAPY",
42
+ "inputs": [
43
+ {
44
+ "name": "asset",
45
+ "type": "address",
46
+ "internalType": "address"
47
+ }
48
+ ],
49
+ "outputs": [
50
+ {
51
+ "name": "bps",
52
+ "type": "uint16",
53
+ "internalType": "uint16"
54
+ }
55
+ ],
56
+ "stateMutability": "view"
57
+ },
58
+ {
59
+ "type": "function",
60
+ "name": "getInterestRate",
61
+ "inputs": [
62
+ {
63
+ "name": "asset",
64
+ "type": "address",
65
+ "internalType": "address"
66
+ }
67
+ ],
68
+ "outputs": [
69
+ {
70
+ "name": "",
71
+ "type": "uint256",
72
+ "internalType": "uint256"
73
+ }
74
+ ],
75
+ "stateMutability": "view"
76
+ },
77
+ {
78
+ "type": "function",
79
+ "name": "protocolName",
80
+ "inputs": [],
81
+ "outputs": [
82
+ {
83
+ "name": "",
84
+ "type": "string",
85
+ "internalType": "string"
86
+ }
87
+ ],
88
+ "stateMutability": "pure"
89
+ },
90
+ {
91
+ "type": "function",
92
+ "name": "shareTokenFor",
93
+ "inputs": [
94
+ {
95
+ "name": "asset",
96
+ "type": "address",
97
+ "internalType": "address"
98
+ }
99
+ ],
100
+ "outputs": [
101
+ {
102
+ "name": "",
103
+ "type": "address",
104
+ "internalType": "address"
105
+ }
106
+ ],
107
+ "stateMutability": "view"
108
+ },
109
+ {
110
+ "type": "function",
111
+ "name": "siloFor",
112
+ "inputs": [
113
+ {
114
+ "name": "asset",
115
+ "type": "address",
116
+ "internalType": "address"
117
+ }
118
+ ],
119
+ "outputs": [
120
+ {
121
+ "name": "",
122
+ "type": "address",
123
+ "internalType": "address"
124
+ }
125
+ ],
126
+ "stateMutability": "view"
127
+ },
128
+ {
129
+ "type": "function",
130
+ "name": "supply",
131
+ "inputs": [
132
+ {
133
+ "name": "asset",
134
+ "type": "address",
135
+ "internalType": "address"
136
+ },
137
+ {
138
+ "name": "amount",
139
+ "type": "uint256",
140
+ "internalType": "uint256"
141
+ }
142
+ ],
143
+ "outputs": [
144
+ {
145
+ "name": "received",
146
+ "type": "uint256",
147
+ "internalType": "uint256"
148
+ }
149
+ ],
150
+ "stateMutability": "nonpayable"
151
+ },
152
+ {
153
+ "type": "function",
154
+ "name": "withdraw",
155
+ "inputs": [
156
+ {
157
+ "name": "asset",
158
+ "type": "address",
159
+ "internalType": "address"
160
+ },
161
+ {
162
+ "name": "amount",
163
+ "type": "uint256",
164
+ "internalType": "uint256"
165
+ }
166
+ ],
167
+ "outputs": [
168
+ {
169
+ "name": "withdrawn",
170
+ "type": "uint256",
171
+ "internalType": "uint256"
172
+ }
173
+ ],
174
+ "stateMutability": "nonpayable"
175
+ },
176
+ {
177
+ "type": "event",
178
+ "name": "Supplied",
179
+ "inputs": [
180
+ {
181
+ "name": "caller",
182
+ "type": "address",
183
+ "indexed": true,
184
+ "internalType": "address"
185
+ },
186
+ {
187
+ "name": "asset",
188
+ "type": "address",
189
+ "indexed": true,
190
+ "internalType": "address"
191
+ },
192
+ {
193
+ "name": "amount",
194
+ "type": "uint256",
195
+ "indexed": false,
196
+ "internalType": "uint256"
197
+ },
198
+ {
199
+ "name": "received",
200
+ "type": "uint256",
201
+ "indexed": false,
202
+ "internalType": "uint256"
203
+ }
204
+ ],
205
+ "anonymous": false
206
+ },
207
+ {
208
+ "type": "event",
209
+ "name": "Withdrawn",
210
+ "inputs": [
211
+ {
212
+ "name": "caller",
213
+ "type": "address",
214
+ "indexed": true,
215
+ "internalType": "address"
216
+ },
217
+ {
218
+ "name": "asset",
219
+ "type": "address",
220
+ "indexed": true,
221
+ "internalType": "address"
222
+ },
223
+ {
224
+ "name": "amount",
225
+ "type": "uint256",
226
+ "indexed": false,
227
+ "internalType": "uint256"
228
+ },
229
+ {
230
+ "name": "withdrawn",
231
+ "type": "uint256",
232
+ "indexed": false,
233
+ "internalType": "uint256"
234
+ }
235
+ ],
236
+ "anonymous": false
237
+ }
238
+ ]
@@ -0,0 +1,245 @@
1
+ [
2
+ {
3
+ "type": "function",
4
+ "name": "adapterType",
5
+ "inputs": [],
6
+ "outputs": [
7
+ {
8
+ "name": "",
9
+ "type": "string",
10
+ "internalType": "string"
11
+ }
12
+ ],
13
+ "stateMutability": "pure"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "balanceOf",
18
+ "inputs": [
19
+ {
20
+ "name": "asset",
21
+ "type": "address",
22
+ "internalType": "address"
23
+ },
24
+ {
25
+ "name": "owner",
26
+ "type": "address",
27
+ "internalType": "address"
28
+ }
29
+ ],
30
+ "outputs": [
31
+ {
32
+ "name": "",
33
+ "type": "uint256",
34
+ "internalType": "uint256"
35
+ }
36
+ ],
37
+ "stateMutability": "view"
38
+ },
39
+ {
40
+ "type": "function",
41
+ "name": "dsrRateBps",
42
+ "inputs": [],
43
+ "outputs": [
44
+ {
45
+ "name": "",
46
+ "type": "uint16",
47
+ "internalType": "uint16"
48
+ }
49
+ ],
50
+ "stateMutability": "view"
51
+ },
52
+ {
53
+ "type": "function",
54
+ "name": "expectedAPY",
55
+ "inputs": [
56
+ {
57
+ "name": "asset",
58
+ "type": "address",
59
+ "internalType": "address"
60
+ }
61
+ ],
62
+ "outputs": [
63
+ {
64
+ "name": "bps",
65
+ "type": "uint16",
66
+ "internalType": "uint16"
67
+ }
68
+ ],
69
+ "stateMutability": "view"
70
+ },
71
+ {
72
+ "type": "function",
73
+ "name": "isD3MActive",
74
+ "inputs": [
75
+ {
76
+ "name": "asset",
77
+ "type": "address",
78
+ "internalType": "address"
79
+ }
80
+ ],
81
+ "outputs": [
82
+ {
83
+ "name": "",
84
+ "type": "bool",
85
+ "internalType": "bool"
86
+ }
87
+ ],
88
+ "stateMutability": "view"
89
+ },
90
+ {
91
+ "type": "function",
92
+ "name": "protocolName",
93
+ "inputs": [],
94
+ "outputs": [
95
+ {
96
+ "name": "",
97
+ "type": "string",
98
+ "internalType": "string"
99
+ }
100
+ ],
101
+ "stateMutability": "pure"
102
+ },
103
+ {
104
+ "type": "function",
105
+ "name": "spTokenFor",
106
+ "inputs": [
107
+ {
108
+ "name": "asset",
109
+ "type": "address",
110
+ "internalType": "address"
111
+ }
112
+ ],
113
+ "outputs": [
114
+ {
115
+ "name": "",
116
+ "type": "address",
117
+ "internalType": "address"
118
+ }
119
+ ],
120
+ "stateMutability": "view"
121
+ },
122
+ {
123
+ "type": "function",
124
+ "name": "sparkPool",
125
+ "inputs": [],
126
+ "outputs": [
127
+ {
128
+ "name": "",
129
+ "type": "address",
130
+ "internalType": "address"
131
+ }
132
+ ],
133
+ "stateMutability": "view"
134
+ },
135
+ {
136
+ "type": "function",
137
+ "name": "supply",
138
+ "inputs": [
139
+ {
140
+ "name": "asset",
141
+ "type": "address",
142
+ "internalType": "address"
143
+ },
144
+ {
145
+ "name": "amount",
146
+ "type": "uint256",
147
+ "internalType": "uint256"
148
+ }
149
+ ],
150
+ "outputs": [
151
+ {
152
+ "name": "received",
153
+ "type": "uint256",
154
+ "internalType": "uint256"
155
+ }
156
+ ],
157
+ "stateMutability": "nonpayable"
158
+ },
159
+ {
160
+ "type": "function",
161
+ "name": "withdraw",
162
+ "inputs": [
163
+ {
164
+ "name": "asset",
165
+ "type": "address",
166
+ "internalType": "address"
167
+ },
168
+ {
169
+ "name": "amount",
170
+ "type": "uint256",
171
+ "internalType": "uint256"
172
+ }
173
+ ],
174
+ "outputs": [
175
+ {
176
+ "name": "withdrawn",
177
+ "type": "uint256",
178
+ "internalType": "uint256"
179
+ }
180
+ ],
181
+ "stateMutability": "nonpayable"
182
+ },
183
+ {
184
+ "type": "event",
185
+ "name": "Supplied",
186
+ "inputs": [
187
+ {
188
+ "name": "caller",
189
+ "type": "address",
190
+ "indexed": true,
191
+ "internalType": "address"
192
+ },
193
+ {
194
+ "name": "asset",
195
+ "type": "address",
196
+ "indexed": true,
197
+ "internalType": "address"
198
+ },
199
+ {
200
+ "name": "amount",
201
+ "type": "uint256",
202
+ "indexed": false,
203
+ "internalType": "uint256"
204
+ },
205
+ {
206
+ "name": "received",
207
+ "type": "uint256",
208
+ "indexed": false,
209
+ "internalType": "uint256"
210
+ }
211
+ ],
212
+ "anonymous": false
213
+ },
214
+ {
215
+ "type": "event",
216
+ "name": "Withdrawn",
217
+ "inputs": [
218
+ {
219
+ "name": "caller",
220
+ "type": "address",
221
+ "indexed": true,
222
+ "internalType": "address"
223
+ },
224
+ {
225
+ "name": "asset",
226
+ "type": "address",
227
+ "indexed": true,
228
+ "internalType": "address"
229
+ },
230
+ {
231
+ "name": "amount",
232
+ "type": "uint256",
233
+ "indexed": false,
234
+ "internalType": "uint256"
235
+ },
236
+ {
237
+ "name": "withdrawn",
238
+ "type": "uint256",
239
+ "indexed": false,
240
+ "internalType": "uint256"
241
+ }
242
+ ],
243
+ "anonymous": false
244
+ }
245
+ ]
@@ -0,0 +1,132 @@
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 interface IAllocationAdapterInterface extends Interface {
4
+ getFunction(nameOrSignature: "adapterType" | "balanceOf" | "expectedAPY" | "protocolName" | "supply" | "withdraw"): FunctionFragment;
5
+ getEvent(nameOrSignatureOrTopic: "Supplied" | "Withdrawn"): EventFragment;
6
+ encodeFunctionData(functionFragment: "adapterType", values?: undefined): string;
7
+ encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike, AddressLike]): string;
8
+ encodeFunctionData(functionFragment: "expectedAPY", values: [AddressLike]): string;
9
+ encodeFunctionData(functionFragment: "protocolName", values?: undefined): string;
10
+ encodeFunctionData(functionFragment: "supply", values: [AddressLike, BigNumberish]): string;
11
+ encodeFunctionData(functionFragment: "withdraw", values: [AddressLike, BigNumberish]): string;
12
+ decodeFunctionResult(functionFragment: "adapterType", data: BytesLike): Result;
13
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
14
+ decodeFunctionResult(functionFragment: "expectedAPY", data: BytesLike): Result;
15
+ decodeFunctionResult(functionFragment: "protocolName", data: BytesLike): Result;
16
+ decodeFunctionResult(functionFragment: "supply", data: BytesLike): Result;
17
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
18
+ }
19
+ export declare namespace SuppliedEvent {
20
+ type InputTuple = [
21
+ caller: AddressLike,
22
+ asset: AddressLike,
23
+ amount: BigNumberish,
24
+ received: BigNumberish
25
+ ];
26
+ type OutputTuple = [
27
+ caller: string,
28
+ asset: string,
29
+ amount: bigint,
30
+ received: bigint
31
+ ];
32
+ interface OutputObject {
33
+ caller: string;
34
+ asset: string;
35
+ amount: bigint;
36
+ received: bigint;
37
+ }
38
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
39
+ type Filter = TypedDeferredTopicFilter<Event>;
40
+ type Log = TypedEventLog<Event>;
41
+ type LogDescription = TypedLogDescription<Event>;
42
+ }
43
+ export declare namespace WithdrawnEvent {
44
+ type InputTuple = [
45
+ caller: AddressLike,
46
+ asset: AddressLike,
47
+ amount: BigNumberish,
48
+ withdrawn: BigNumberish
49
+ ];
50
+ type OutputTuple = [
51
+ caller: string,
52
+ asset: string,
53
+ amount: bigint,
54
+ withdrawn: bigint
55
+ ];
56
+ interface OutputObject {
57
+ caller: string;
58
+ asset: string;
59
+ amount: bigint;
60
+ withdrawn: bigint;
61
+ }
62
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
63
+ type Filter = TypedDeferredTopicFilter<Event>;
64
+ type Log = TypedEventLog<Event>;
65
+ type LogDescription = TypedLogDescription<Event>;
66
+ }
67
+ export interface IAllocationAdapter extends BaseContract {
68
+ connect(runner?: ContractRunner | null): IAllocationAdapter;
69
+ waitForDeployment(): Promise<this>;
70
+ interface: IAllocationAdapterInterface;
71
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
72
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
73
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
74
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
75
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
76
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
77
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
78
+ listeners(eventName?: string): Promise<Array<Listener>>;
79
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
80
+ adapterType: TypedContractMethod<[], [string], "view">;
81
+ balanceOf: TypedContractMethod<[
82
+ asset: AddressLike,
83
+ owner: AddressLike
84
+ ], [
85
+ bigint
86
+ ], "view">;
87
+ expectedAPY: TypedContractMethod<[asset: AddressLike], [bigint], "view">;
88
+ protocolName: TypedContractMethod<[], [string], "view">;
89
+ supply: TypedContractMethod<[
90
+ asset: AddressLike,
91
+ amount: BigNumberish
92
+ ], [
93
+ bigint
94
+ ], "nonpayable">;
95
+ withdraw: TypedContractMethod<[
96
+ asset: AddressLike,
97
+ amount: BigNumberish
98
+ ], [
99
+ bigint
100
+ ], "nonpayable">;
101
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
102
+ getFunction(nameOrSignature: "adapterType"): TypedContractMethod<[], [string], "view">;
103
+ getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[
104
+ asset: AddressLike,
105
+ owner: AddressLike
106
+ ], [
107
+ bigint
108
+ ], "view">;
109
+ getFunction(nameOrSignature: "expectedAPY"): TypedContractMethod<[asset: AddressLike], [bigint], "view">;
110
+ getFunction(nameOrSignature: "protocolName"): TypedContractMethod<[], [string], "view">;
111
+ getFunction(nameOrSignature: "supply"): TypedContractMethod<[
112
+ asset: AddressLike,
113
+ amount: BigNumberish
114
+ ], [
115
+ bigint
116
+ ], "nonpayable">;
117
+ getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
118
+ asset: AddressLike,
119
+ amount: BigNumberish
120
+ ], [
121
+ bigint
122
+ ], "nonpayable">;
123
+ getEvent(key: "Supplied"): TypedContractEvent<SuppliedEvent.InputTuple, SuppliedEvent.OutputTuple, SuppliedEvent.OutputObject>;
124
+ getEvent(key: "Withdrawn"): TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
125
+ filters: {
126
+ "Supplied(address,address,uint256,uint256)": TypedContractEvent<SuppliedEvent.InputTuple, SuppliedEvent.OutputTuple, SuppliedEvent.OutputObject>;
127
+ Supplied: TypedContractEvent<SuppliedEvent.InputTuple, SuppliedEvent.OutputTuple, SuppliedEvent.OutputObject>;
128
+ "Withdrawn(address,address,uint256,uint256)": TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
129
+ Withdrawn: TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
130
+ };
131
+ }
132
+ //# sourceMappingURL=IAllocationAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAllocationAdapter.d.ts","sourceRoot":"","sources":["../typechain/IAllocationAdapter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,SAAS,EACT,aAAa,EACb,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACT,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAElB,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D,WAAW,CACT,eAAe,EACX,aAAa,GACb,WAAW,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