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,148 @@
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 ISparkAdapterInterface extends Interface {
4
+ getFunction(nameOrSignature: "adapterType" | "balanceOf" | "dsrRateBps" | "expectedAPY" | "isD3MActive" | "protocolName" | "spTokenFor" | "sparkPool" | "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: "dsrRateBps", values?: undefined): string;
9
+ encodeFunctionData(functionFragment: "expectedAPY", values: [AddressLike]): string;
10
+ encodeFunctionData(functionFragment: "isD3MActive", values: [AddressLike]): string;
11
+ encodeFunctionData(functionFragment: "protocolName", values?: undefined): string;
12
+ encodeFunctionData(functionFragment: "spTokenFor", values: [AddressLike]): string;
13
+ encodeFunctionData(functionFragment: "sparkPool", values?: undefined): string;
14
+ encodeFunctionData(functionFragment: "supply", values: [AddressLike, BigNumberish]): string;
15
+ encodeFunctionData(functionFragment: "withdraw", values: [AddressLike, BigNumberish]): string;
16
+ decodeFunctionResult(functionFragment: "adapterType", data: BytesLike): Result;
17
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
18
+ decodeFunctionResult(functionFragment: "dsrRateBps", data: BytesLike): Result;
19
+ decodeFunctionResult(functionFragment: "expectedAPY", data: BytesLike): Result;
20
+ decodeFunctionResult(functionFragment: "isD3MActive", data: BytesLike): Result;
21
+ decodeFunctionResult(functionFragment: "protocolName", data: BytesLike): Result;
22
+ decodeFunctionResult(functionFragment: "spTokenFor", data: BytesLike): Result;
23
+ decodeFunctionResult(functionFragment: "sparkPool", data: BytesLike): Result;
24
+ decodeFunctionResult(functionFragment: "supply", data: BytesLike): Result;
25
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
26
+ }
27
+ export declare namespace SuppliedEvent {
28
+ type InputTuple = [
29
+ caller: AddressLike,
30
+ asset: AddressLike,
31
+ amount: BigNumberish,
32
+ received: BigNumberish
33
+ ];
34
+ type OutputTuple = [
35
+ caller: string,
36
+ asset: string,
37
+ amount: bigint,
38
+ received: bigint
39
+ ];
40
+ interface OutputObject {
41
+ caller: string;
42
+ asset: string;
43
+ amount: bigint;
44
+ received: bigint;
45
+ }
46
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
47
+ type Filter = TypedDeferredTopicFilter<Event>;
48
+ type Log = TypedEventLog<Event>;
49
+ type LogDescription = TypedLogDescription<Event>;
50
+ }
51
+ export declare namespace WithdrawnEvent {
52
+ type InputTuple = [
53
+ caller: AddressLike,
54
+ asset: AddressLike,
55
+ amount: BigNumberish,
56
+ withdrawn: BigNumberish
57
+ ];
58
+ type OutputTuple = [
59
+ caller: string,
60
+ asset: string,
61
+ amount: bigint,
62
+ withdrawn: bigint
63
+ ];
64
+ interface OutputObject {
65
+ caller: string;
66
+ asset: string;
67
+ amount: bigint;
68
+ withdrawn: bigint;
69
+ }
70
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
71
+ type Filter = TypedDeferredTopicFilter<Event>;
72
+ type Log = TypedEventLog<Event>;
73
+ type LogDescription = TypedLogDescription<Event>;
74
+ }
75
+ export interface ISparkAdapter extends BaseContract {
76
+ connect(runner?: ContractRunner | null): ISparkAdapter;
77
+ waitForDeployment(): Promise<this>;
78
+ interface: ISparkAdapterInterface;
79
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
80
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
81
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
82
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
83
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
84
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
85
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
86
+ listeners(eventName?: string): Promise<Array<Listener>>;
87
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
88
+ adapterType: TypedContractMethod<[], [string], "view">;
89
+ balanceOf: TypedContractMethod<[
90
+ asset: AddressLike,
91
+ owner: AddressLike
92
+ ], [
93
+ bigint
94
+ ], "view">;
95
+ dsrRateBps: TypedContractMethod<[], [bigint], "view">;
96
+ expectedAPY: TypedContractMethod<[asset: AddressLike], [bigint], "view">;
97
+ isD3MActive: TypedContractMethod<[asset: AddressLike], [boolean], "view">;
98
+ protocolName: TypedContractMethod<[], [string], "view">;
99
+ spTokenFor: TypedContractMethod<[asset: AddressLike], [string], "view">;
100
+ sparkPool: TypedContractMethod<[], [string], "view">;
101
+ supply: TypedContractMethod<[
102
+ asset: AddressLike,
103
+ amount: BigNumberish
104
+ ], [
105
+ bigint
106
+ ], "nonpayable">;
107
+ withdraw: TypedContractMethod<[
108
+ asset: AddressLike,
109
+ amount: BigNumberish
110
+ ], [
111
+ bigint
112
+ ], "nonpayable">;
113
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
114
+ getFunction(nameOrSignature: "adapterType"): TypedContractMethod<[], [string], "view">;
115
+ getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[
116
+ asset: AddressLike,
117
+ owner: AddressLike
118
+ ], [
119
+ bigint
120
+ ], "view">;
121
+ getFunction(nameOrSignature: "dsrRateBps"): TypedContractMethod<[], [bigint], "view">;
122
+ getFunction(nameOrSignature: "expectedAPY"): TypedContractMethod<[asset: AddressLike], [bigint], "view">;
123
+ getFunction(nameOrSignature: "isD3MActive"): TypedContractMethod<[asset: AddressLike], [boolean], "view">;
124
+ getFunction(nameOrSignature: "protocolName"): TypedContractMethod<[], [string], "view">;
125
+ getFunction(nameOrSignature: "spTokenFor"): TypedContractMethod<[asset: AddressLike], [string], "view">;
126
+ getFunction(nameOrSignature: "sparkPool"): TypedContractMethod<[], [string], "view">;
127
+ getFunction(nameOrSignature: "supply"): TypedContractMethod<[
128
+ asset: AddressLike,
129
+ amount: BigNumberish
130
+ ], [
131
+ bigint
132
+ ], "nonpayable">;
133
+ getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[
134
+ asset: AddressLike,
135
+ amount: BigNumberish
136
+ ], [
137
+ bigint
138
+ ], "nonpayable">;
139
+ getEvent(key: "Supplied"): TypedContractEvent<SuppliedEvent.InputTuple, SuppliedEvent.OutputTuple, SuppliedEvent.OutputObject>;
140
+ getEvent(key: "Withdrawn"): TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
141
+ filters: {
142
+ "Supplied(address,address,uint256,uint256)": TypedContractEvent<SuppliedEvent.InputTuple, SuppliedEvent.OutputTuple, SuppliedEvent.OutputObject>;
143
+ Supplied: TypedContractEvent<SuppliedEvent.InputTuple, SuppliedEvent.OutputTuple, SuppliedEvent.OutputObject>;
144
+ "Withdrawn(address,address,uint256,uint256)": TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
145
+ Withdrawn: TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
146
+ };
147
+ }
148
+ //# sourceMappingURL=ISparkAdapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISparkAdapter.d.ts","sourceRoot":"","sources":["../../typechain/adapters/ISparkAdapter.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,WAAW,CAAC;AAEnB,MAAM,WAAW,sBAAuB,SAAQ,SAAS;IACvD,WAAW,CACT,eAAe,EACX,aAAa,GACb,WAAW,GACX,YAAY,GACZ,aAAa,GACb,aAAa,GACb,cAAc,GACd,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,UAA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AC,EAC1C;QAAC,MAAM;KAAC,EACR,YAAY,CACb,CAAC;IAEF,QAAQ,CACN,GAAG,EAAE,UAAU,GACd,kBAAkB,CACnB,aAAa,CAAC,UAAU,EACxB,aAAa,CAAC,WAAW,EACzB,aAAa,CAAC,YAAY,CAC3B,CAAC;IACF,QAAQ,CACN,GAAG,EAAE,WAAW,GACf,kBAAkB,CACnB,cAAc,CAAC,UAAU,EACzB,cAAc,CAAC,WAAW,EAC1B,cAAc,CAAC,YAAY,CAC5B,CAAC;IAEF,OAAO,EAAE;QACP,2CAA2C,EAAE,kBAAkB,CAC7D,aAAa,CAAC,UAAU,EACxB,aAAa,CAAC,WAAW,EACzB,aAAa,CAAC,YAAY,CAC3B,CAAC;QACF,QAAQ,EAAE,kBAAkB,CAC1B,aAAa,CAAC,UAAU,EACxB,aAAa,CAAC,WAAW,EACzB,aAAa,CAAC,YAAY,CAC3B,CAAC;QAEF,4CAA4C,EAAE,kBAAkB,CAC9D,cAAc,CAAC,UAAU,EACzB,cAAc,CAAC,WAAW,EAC1B,cAAc,CAAC,YAAY,CAC5B,CAAC;QACF,SAAS,EAAE,kBAAkB,CAC3B,cAAc,CAAC,UAAU,EACzB,cAAc,CAAC,WAAW,EAC1B,cAAc,CAAC,YAAY,CAC5B,CAAC;KACH,CAAC;CACH"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export type { IAaveV3BNBAdapter } from "./IAaveV3BNBAdapter";
2
+ export type { ICompoundAdapter } from "./ICompoundAdapter";
3
+ export type { IEulerAdapter } from "./IEulerAdapter";
4
+ export type { IKernelAdapter } from "./IKernelAdapter";
5
+ export type { IListaAdapter } from "./IListaAdapter";
6
+ export type { IMorphoAdapter } from "./IMorphoAdapter";
7
+ export type { IPendleAdapter } from "./IPendleAdapter";
8
+ export type { ISiloAdapter } from "./ISiloAdapter";
9
+ export type { ISparkAdapter } from "./ISparkAdapter";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../typechain/adapters/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,51 @@
1
+ import type { FunctionFragment, Typed, EventFragment, ContractTransaction, ContractTransactionResponse, DeferredTopicFilter, EventLog, TransactionRequest, LogDescription } from "ethers";
2
+ export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
3
+ }
4
+ export interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
5
+ (...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
6
+ name: string;
7
+ fragment: EventFragment;
8
+ getFragment(...args: Partial<InputTuple>): EventFragment;
9
+ }
10
+ type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
11
+ type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
12
+ export interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, "args"> {
13
+ args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
14
+ }
15
+ export interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, "args"> {
16
+ args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
17
+ }
18
+ export type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
19
+ ...__TypechainAOutputTuple<TCEvent>,
20
+ TypedEventLog<TCEvent>,
21
+ ...undefined[]
22
+ ]) => void;
23
+ export type MinEthersFactory<C, ARGS> = {
24
+ deploy(...a: ARGS[]): Promise<C>;
25
+ };
26
+ export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
27
+ export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
28
+ export type StateMutability = "nonpayable" | "payable" | "view";
29
+ export type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
30
+ export type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
31
+ export type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
32
+ export type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
33
+ export type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
34
+ export type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
35
+ export type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
36
+ [I in keyof A]-?: A[I] | Typed;
37
+ }, S>;
38
+ export type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
39
+ export interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
40
+ (...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
41
+ name: string;
42
+ fragment: FunctionFragment;
43
+ getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
44
+ populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
45
+ staticCall(...args: ContractMethodArgs<A, "view">): Promise<DefaultReturnType<R>>;
46
+ send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
47
+ estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
48
+ staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
49
+ }
50
+ export {};
51
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../typechain/common.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,KAAK,EACL,aAAa,EACb,mBAAmB,EACnB,2BAA2B,EAC3B,mBAAmB,EACnB,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACf,MAAM,QAAQ,CAAC;AAEhB,MAAM,WAAW,wBAAwB,CAAC,QAAQ,SAAS,kBAAkB,CAC3E,SAAQ,mBAAmB;CAAG;AAEhC,MAAM,WAAW,kBAAkB,CACjC,UAAU,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,EACnC,WAAW,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,EACpC,YAAY,GAAG,GAAG;IAElB,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,wBAAwB,CACtD,kBAAkB,CAAC,UAAU,EAAE,WAAW,EAAE,YAAY,CAAC,CAC1D,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;IACxB,WAAW,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,aAAa,CAAC;CAC1D;AAED,KAAK,uBAAuB,CAAC,CAAC,IAAI,CAAC,SAAS,kBAAkB,CAC5D,MAAM,EAAE,EACR,MAAM,CAAC,CACR,GACG,CAAC,GACD,KAAK,CAAC;AACV,KAAK,uBAAuB,CAAC,CAAC,IAAI,CAA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S,MAAM,GACjD,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAC7B,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAEzC,IAAI,EAAE,MAAM,CAAC;IAEb,QAAQ,EAAE,gBAAgB,CAAC;IAE3B,WAAW,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,gBAAgB,CAAC;IAEjE,mBAAmB,CACjB,GAAG,IAAI,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GAChC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC,UAAU,CACR,GAAG,IAAI,EAAE,kBAAkB,CAAC,CAAC,EAAE,MAAM,CAAC,GACrC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC,IAAI,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC9E,WAAW,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAChE,gBAAgB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CACtE"}
package/dist/common.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,146 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IAllocationAdapter, IAllocationAdapterInterface } from "../IAllocationAdapter";
3
+ export declare class IAllocationAdapter__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: "protocolName";
49
+ readonly inputs: readonly [];
50
+ readonly outputs: readonly [{
51
+ readonly name: "";
52
+ readonly type: "string";
53
+ readonly internalType: "string";
54
+ }];
55
+ readonly stateMutability: "pure";
56
+ }, {
57
+ readonly type: "function";
58
+ readonly name: "supply";
59
+ readonly inputs: readonly [{
60
+ readonly name: "asset";
61
+ readonly type: "address";
62
+ readonly internalType: "address";
63
+ }, {
64
+ readonly name: "amount";
65
+ readonly type: "uint256";
66
+ readonly internalType: "uint256";
67
+ }];
68
+ readonly outputs: readonly [{
69
+ readonly name: "received";
70
+ readonly type: "uint256";
71
+ readonly internalType: "uint256";
72
+ }];
73
+ readonly stateMutability: "nonpayable";
74
+ }, {
75
+ readonly type: "function";
76
+ readonly name: "withdraw";
77
+ readonly inputs: readonly [{
78
+ readonly name: "asset";
79
+ readonly type: "address";
80
+ readonly internalType: "address";
81
+ }, {
82
+ readonly name: "amount";
83
+ readonly type: "uint256";
84
+ readonly internalType: "uint256";
85
+ }];
86
+ readonly outputs: readonly [{
87
+ readonly name: "withdrawn";
88
+ readonly type: "uint256";
89
+ readonly internalType: "uint256";
90
+ }];
91
+ readonly stateMutability: "nonpayable";
92
+ }, {
93
+ readonly type: "event";
94
+ readonly name: "Supplied";
95
+ readonly inputs: readonly [{
96
+ readonly name: "caller";
97
+ readonly type: "address";
98
+ readonly indexed: true;
99
+ readonly internalType: "address";
100
+ }, {
101
+ readonly name: "asset";
102
+ readonly type: "address";
103
+ readonly indexed: true;
104
+ readonly internalType: "address";
105
+ }, {
106
+ readonly name: "amount";
107
+ readonly type: "uint256";
108
+ readonly indexed: false;
109
+ readonly internalType: "uint256";
110
+ }, {
111
+ readonly name: "received";
112
+ readonly type: "uint256";
113
+ readonly indexed: false;
114
+ readonly internalType: "uint256";
115
+ }];
116
+ readonly anonymous: false;
117
+ }, {
118
+ readonly type: "event";
119
+ readonly name: "Withdrawn";
120
+ readonly inputs: readonly [{
121
+ readonly name: "caller";
122
+ readonly type: "address";
123
+ readonly indexed: true;
124
+ readonly internalType: "address";
125
+ }, {
126
+ readonly name: "asset";
127
+ readonly type: "address";
128
+ readonly indexed: true;
129
+ readonly internalType: "address";
130
+ }, {
131
+ readonly name: "amount";
132
+ readonly type: "uint256";
133
+ readonly indexed: false;
134
+ readonly internalType: "uint256";
135
+ }, {
136
+ readonly name: "withdrawn";
137
+ readonly type: "uint256";
138
+ readonly indexed: false;
139
+ readonly internalType: "uint256";
140
+ }];
141
+ readonly anonymous: false;
142
+ }];
143
+ static createInterface(): IAllocationAdapterInterface;
144
+ static connect(address: string, runner?: ContractRunner | null): IAllocationAdapter;
145
+ }
146
+ //# sourceMappingURL=IAllocationAdapter__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAllocationAdapter__factory.d.ts","sourceRoot":"","sources":["../../typechain/factories/IAllocationAdapter__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,OAAO,KAAK,EACV,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAwL/B,qBAAa,2BAA2B;IACtC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,2BAA2B;IAGrD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,kBAAkB;CAGtB"}
@@ -0,0 +1,198 @@
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.IAllocationAdapter__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: "protocolName",
68
+ inputs: [],
69
+ outputs: [
70
+ {
71
+ name: "",
72
+ type: "string",
73
+ internalType: "string",
74
+ },
75
+ ],
76
+ stateMutability: "pure",
77
+ },
78
+ {
79
+ type: "function",
80
+ name: "supply",
81
+ inputs: [
82
+ {
83
+ name: "asset",
84
+ type: "address",
85
+ internalType: "address",
86
+ },
87
+ {
88
+ name: "amount",
89
+ type: "uint256",
90
+ internalType: "uint256",
91
+ },
92
+ ],
93
+ outputs: [
94
+ {
95
+ name: "received",
96
+ type: "uint256",
97
+ internalType: "uint256",
98
+ },
99
+ ],
100
+ stateMutability: "nonpayable",
101
+ },
102
+ {
103
+ type: "function",
104
+ name: "withdraw",
105
+ inputs: [
106
+ {
107
+ name: "asset",
108
+ type: "address",
109
+ internalType: "address",
110
+ },
111
+ {
112
+ name: "amount",
113
+ type: "uint256",
114
+ internalType: "uint256",
115
+ },
116
+ ],
117
+ outputs: [
118
+ {
119
+ name: "withdrawn",
120
+ type: "uint256",
121
+ internalType: "uint256",
122
+ },
123
+ ],
124
+ stateMutability: "nonpayable",
125
+ },
126
+ {
127
+ type: "event",
128
+ name: "Supplied",
129
+ inputs: [
130
+ {
131
+ name: "caller",
132
+ type: "address",
133
+ indexed: true,
134
+ internalType: "address",
135
+ },
136
+ {
137
+ name: "asset",
138
+ type: "address",
139
+ indexed: true,
140
+ internalType: "address",
141
+ },
142
+ {
143
+ name: "amount",
144
+ type: "uint256",
145
+ indexed: false,
146
+ internalType: "uint256",
147
+ },
148
+ {
149
+ name: "received",
150
+ type: "uint256",
151
+ indexed: false,
152
+ internalType: "uint256",
153
+ },
154
+ ],
155
+ anonymous: false,
156
+ },
157
+ {
158
+ type: "event",
159
+ name: "Withdrawn",
160
+ inputs: [
161
+ {
162
+ name: "caller",
163
+ type: "address",
164
+ indexed: true,
165
+ internalType: "address",
166
+ },
167
+ {
168
+ name: "asset",
169
+ type: "address",
170
+ indexed: true,
171
+ internalType: "address",
172
+ },
173
+ {
174
+ name: "amount",
175
+ type: "uint256",
176
+ indexed: false,
177
+ internalType: "uint256",
178
+ },
179
+ {
180
+ name: "withdrawn",
181
+ type: "uint256",
182
+ indexed: false,
183
+ internalType: "uint256",
184
+ },
185
+ ],
186
+ anonymous: false,
187
+ },
188
+ ];
189
+ class IAllocationAdapter__factory {
190
+ static createInterface() {
191
+ return new ethers_1.Interface(_abi);
192
+ }
193
+ static connect(address, runner) {
194
+ return new ethers_1.Contract(address, _abi, runner);
195
+ }
196
+ }
197
+ exports.IAllocationAdapter__factory = IAllocationAdapter__factory;
198
+ IAllocationAdapter__factory.abi = _abi;