Skip to content

Commit 5c8255c

Browse files
committed
fix: move typechain to types subpath
1 parent 4d56c3f commit 5c8255c

File tree

91 files changed

+20412
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+20412
-7
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"sideEffects": false,
1515
"exports": {
1616
"./package.json": "./package.json",
17-
".": {
17+
"./types": {
1818
"import": {
19-
"types": "./dist/esm/index.d.mts",
20-
"default": "./dist/esm/index.mjs"
19+
"types": "./dist/esm/types/index.d.mts",
20+
"default": "./dist/esm/types/index.mjs"
2121
},
2222
"require": {
23-
"types": "./dist/cjs/index.d.ts",
24-
"default": "./dist/cjs/index.cjs"
23+
"types": "./dist/cjs/types/index.d.ts",
24+
"default": "./dist/cjs/types/index.cjs"
2525
}
2626
},
2727
"./abi": {
@@ -52,7 +52,7 @@
5252
"scripts": {
5353
"clean": "forge clean && rm -rf types dist",
5454
"build": "forge build && yarn types && yarn abis && yarn bytecode && tsup",
55-
"types": "typechain --target ethers-v6 --show-stack-traces --out-dir ./src/generated ./forge-out/*.sol/*.json",
55+
"types": "typechain --target ethers-v6 --out-dir ./src/types/generated ./forge-out/*.sol/*.json",
5656
"forge-build": "forge clean && forge build",
5757
"abis": "wagmi generate",
5858
"bytecode": "node ./generate-bytecode.mjs",

src/types/generated/AaveFLTaker.ts

Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
/* Autogenerated file. Do not edit manually. */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
import type {
5+
BaseContract,
6+
BigNumberish,
7+
BytesLike,
8+
FunctionFragment,
9+
Result,
10+
Interface,
11+
EventFragment,
12+
AddressLike,
13+
ContractRunner,
14+
ContractMethod,
15+
Listener,
16+
} from "ethers";
17+
import type {
18+
TypedContractEvent,
19+
TypedDeferredTopicFilter,
20+
TypedEventLog,
21+
TypedLogDescription,
22+
TypedListener,
23+
TypedContractMethod,
24+
} from "./common";
25+
26+
export interface AaveFLTakerInterface extends Interface {
27+
getFunction(
28+
nameOrSignature:
29+
| "aavePool"
30+
| "allowedFLReceiver"
31+
| "owner"
32+
| "renounceOwnership"
33+
| "setAllowedFLReceiver"
34+
| "takeFlashLoan"
35+
| "transferOwnership"
36+
): FunctionFragment;
37+
38+
getEvent(
39+
nameOrSignatureOrTopic: "OwnershipTransferred" | "SetAllowedFLReceiver"
40+
): EventFragment;
41+
42+
encodeFunctionData(functionFragment: "aavePool", values?: undefined): string;
43+
encodeFunctionData(
44+
functionFragment: "allowedFLReceiver",
45+
values: [AddressLike]
46+
): string;
47+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
48+
encodeFunctionData(
49+
functionFragment: "renounceOwnership",
50+
values?: undefined
51+
): string;
52+
encodeFunctionData(
53+
functionFragment: "setAllowedFLReceiver",
54+
values: [AddressLike, boolean]
55+
): string;
56+
encodeFunctionData(
57+
functionFragment: "takeFlashLoan",
58+
values: [AddressLike, BigNumberish, BytesLike]
59+
): string;
60+
encodeFunctionData(
61+
functionFragment: "transferOwnership",
62+
values: [AddressLike]
63+
): string;
64+
65+
decodeFunctionResult(functionFragment: "aavePool", data: BytesLike): Result;
66+
decodeFunctionResult(
67+
functionFragment: "allowedFLReceiver",
68+
data: BytesLike
69+
): Result;
70+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
71+
decodeFunctionResult(
72+
functionFragment: "renounceOwnership",
73+
data: BytesLike
74+
): Result;
75+
decodeFunctionResult(
76+
functionFragment: "setAllowedFLReceiver",
77+
data: BytesLike
78+
): Result;
79+
decodeFunctionResult(
80+
functionFragment: "takeFlashLoan",
81+
data: BytesLike
82+
): Result;
83+
decodeFunctionResult(
84+
functionFragment: "transferOwnership",
85+
data: BytesLike
86+
): Result;
87+
}
88+
89+
export namespace OwnershipTransferredEvent {
90+
export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
91+
export type OutputTuple = [previousOwner: string, newOwner: string];
92+
export interface OutputObject {
93+
previousOwner: string;
94+
newOwner: string;
95+
}
96+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
97+
export type Filter = TypedDeferredTopicFilter<Event>;
98+
export type Log = TypedEventLog<Event>;
99+
export type LogDescription = TypedLogDescription<Event>;
100+
}
101+
102+
export namespace SetAllowedFLReceiverEvent {
103+
export type InputTuple = [consumer: AddressLike, status: boolean];
104+
export type OutputTuple = [consumer: string, status: boolean];
105+
export interface OutputObject {
106+
consumer: string;
107+
status: boolean;
108+
}
109+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
110+
export type Filter = TypedDeferredTopicFilter<Event>;
111+
export type Log = TypedEventLog<Event>;
112+
export type LogDescription = TypedLogDescription<Event>;
113+
}
114+
115+
export interface AaveFLTaker extends BaseContract {
116+
connect(runner?: ContractRunner | null): AaveFLTaker;
117+
waitForDeployment(): Promise<this>;
118+
119+
interface: AaveFLTakerInterface;
120+
121+
queryFilter<TCEvent extends TypedContractEvent>(
122+
event: TCEvent,
123+
fromBlockOrBlockhash?: string | number | undefined,
124+
toBlock?: string | number | undefined
125+
): Promise<Array<TypedEventLog<TCEvent>>>;
126+
queryFilter<TCEvent extends TypedContractEvent>(
127+
filter: TypedDeferredTopicFilter<TCEvent>,
128+
fromBlockOrBlockhash?: string | number | undefined,
129+
toBlock?: string | number | undefined
130+
): Promise<Array<TypedEventLog<TCEvent>>>;
131+
132+
on<TCEvent extends TypedContractEvent>(
133+
event: TCEvent,
134+
listener: TypedListener<TCEvent>
135+
): Promise<this>;
136+
on<TCEvent extends TypedContractEvent>(
137+
filter: TypedDeferredTopicFilter<TCEvent>,
138+
listener: TypedListener<TCEvent>
139+
): Promise<this>;
140+
141+
once<TCEvent extends TypedContractEvent>(
142+
event: TCEvent,
143+
listener: TypedListener<TCEvent>
144+
): Promise<this>;
145+
once<TCEvent extends TypedContractEvent>(
146+
filter: TypedDeferredTopicFilter<TCEvent>,
147+
listener: TypedListener<TCEvent>
148+
): Promise<this>;
149+
150+
listeners<TCEvent extends TypedContractEvent>(
151+
event: TCEvent
152+
): Promise<Array<TypedListener<TCEvent>>>;
153+
listeners(eventName?: string): Promise<Array<Listener>>;
154+
removeAllListeners<TCEvent extends TypedContractEvent>(
155+
event?: TCEvent
156+
): Promise<this>;
157+
158+
aavePool: TypedContractMethod<[], [string], "view">;
159+
160+
allowedFLReceiver: TypedContractMethod<
161+
[arg0: AddressLike],
162+
[boolean],
163+
"view"
164+
>;
165+
166+
owner: TypedContractMethod<[], [string], "view">;
167+
168+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
169+
170+
setAllowedFLReceiver: TypedContractMethod<
171+
[receiver: AddressLike, status: boolean],
172+
[void],
173+
"nonpayable"
174+
>;
175+
176+
takeFlashLoan: TypedContractMethod<
177+
[asset: AddressLike, amount: BigNumberish, data: BytesLike],
178+
[void],
179+
"nonpayable"
180+
>;
181+
182+
transferOwnership: TypedContractMethod<
183+
[newOwner: AddressLike],
184+
[void],
185+
"nonpayable"
186+
>;
187+
188+
getFunction<T extends ContractMethod = ContractMethod>(
189+
key: string | FunctionFragment
190+
): T;
191+
192+
getFunction(
193+
nameOrSignature: "aavePool"
194+
): TypedContractMethod<[], [string], "view">;
195+
getFunction(
196+
nameOrSignature: "allowedFLReceiver"
197+
): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
198+
getFunction(
199+
nameOrSignature: "owner"
200+
): TypedContractMethod<[], [string], "view">;
201+
getFunction(
202+
nameOrSignature: "renounceOwnership"
203+
): TypedContractMethod<[], [void], "nonpayable">;
204+
getFunction(
205+
nameOrSignature: "setAllowedFLReceiver"
206+
): TypedContractMethod<
207+
[receiver: AddressLike, status: boolean],
208+
[void],
209+
"nonpayable"
210+
>;
211+
getFunction(
212+
nameOrSignature: "takeFlashLoan"
213+
): TypedContractMethod<
214+
[asset: AddressLike, amount: BigNumberish, data: BytesLike],
215+
[void],
216+
"nonpayable"
217+
>;
218+
getFunction(
219+
nameOrSignature: "transferOwnership"
220+
): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
221+
222+
getEvent(
223+
key: "OwnershipTransferred"
224+
): TypedContractEvent<
225+
OwnershipTransferredEvent.InputTuple,
226+
OwnershipTransferredEvent.OutputTuple,
227+
OwnershipTransferredEvent.OutputObject
228+
>;
229+
getEvent(
230+
key: "SetAllowedFLReceiver"
231+
): TypedContractEvent<
232+
SetAllowedFLReceiverEvent.InputTuple,
233+
SetAllowedFLReceiverEvent.OutputTuple,
234+
SetAllowedFLReceiverEvent.OutputObject
235+
>;
236+
237+
filters: {
238+
"OwnershipTransferred(address,address)": TypedContractEvent<
239+
OwnershipTransferredEvent.InputTuple,
240+
OwnershipTransferredEvent.OutputTuple,
241+
OwnershipTransferredEvent.OutputObject
242+
>;
243+
OwnershipTransferred: TypedContractEvent<
244+
OwnershipTransferredEvent.InputTuple,
245+
OwnershipTransferredEvent.OutputTuple,
246+
OwnershipTransferredEvent.OutputObject
247+
>;
248+
249+
"SetAllowedFLReceiver(address,bool)": TypedContractEvent<
250+
SetAllowedFLReceiverEvent.InputTuple,
251+
SetAllowedFLReceiverEvent.OutputTuple,
252+
SetAllowedFLReceiverEvent.OutputObject
253+
>;
254+
SetAllowedFLReceiver: TypedContractEvent<
255+
SetAllowedFLReceiverEvent.InputTuple,
256+
SetAllowedFLReceiverEvent.OutputTuple,
257+
SetAllowedFLReceiverEvent.OutputObject
258+
>;
259+
};
260+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/* Autogenerated file. Do not edit manually. */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
import type {
5+
BaseContract,
6+
FunctionFragment,
7+
Interface,
8+
ContractRunner,
9+
ContractMethod,
10+
Listener,
11+
} from "ethers";
12+
import type {
13+
TypedContractEvent,
14+
TypedDeferredTopicFilter,
15+
TypedEventLog,
16+
TypedListener,
17+
} from "../common";
18+
19+
export interface BalanceOpsInterface extends Interface {}
20+
21+
export interface BalanceOps extends BaseContract {
22+
connect(runner?: ContractRunner | null): BalanceOps;
23+
waitForDeployment(): Promise<this>;
24+
25+
interface: BalanceOpsInterface;
26+
27+
queryFilter<TCEvent extends TypedContractEvent>(
28+
event: TCEvent,
29+
fromBlockOrBlockhash?: string | number | undefined,
30+
toBlock?: string | number | undefined
31+
): Promise<Array<TypedEventLog<TCEvent>>>;
32+
queryFilter<TCEvent extends TypedContractEvent>(
33+
filter: TypedDeferredTopicFilter<TCEvent>,
34+
fromBlockOrBlockhash?: string | number | undefined,
35+
toBlock?: string | number | undefined
36+
): Promise<Array<TypedEventLog<TCEvent>>>;
37+
38+
on<TCEvent extends TypedContractEvent>(
39+
event: TCEvent,
40+
listener: TypedListener<TCEvent>
41+
): Promise<this>;
42+
on<TCEvent extends TypedContractEvent>(
43+
filter: TypedDeferredTopicFilter<TCEvent>,
44+
listener: TypedListener<TCEvent>
45+
): Promise<this>;
46+
47+
once<TCEvent extends TypedContractEvent>(
48+
event: TCEvent,
49+
listener: TypedListener<TCEvent>
50+
): Promise<this>;
51+
once<TCEvent extends TypedContractEvent>(
52+
filter: TypedDeferredTopicFilter<TCEvent>,
53+
listener: TypedListener<TCEvent>
54+
): Promise<this>;
55+
56+
listeners<TCEvent extends TypedContractEvent>(
57+
event: TCEvent
58+
): Promise<Array<TypedListener<TCEvent>>>;
59+
listeners(eventName?: string): Promise<Array<Listener>>;
60+
removeAllListeners<TCEvent extends TypedContractEvent>(
61+
event?: TCEvent
62+
): Promise<this>;
63+
64+
getFunction<T extends ContractMethod = ContractMethod>(
65+
key: string | FunctionFragment
66+
): T;
67+
68+
filters: {};
69+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* Autogenerated file. Do not edit manually. */
2+
/* tslint:disable */
3+
/* eslint-disable */
4+
export type { BalanceOps } from "./BalanceOps";

0 commit comments

Comments
 (0)