@merkl/contracts 1.15.17 → 1.15.18

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 (34) hide show
  1. package/dist/src/FxMintOperateFacet.d.ts +187 -0
  2. package/dist/src/FxMintOperateFacet.js +2 -0
  3. package/dist/src/FxMintOperateFacet.js.map +1 -0
  4. package/dist/src/FxMintPool.d.ts +1173 -0
  5. package/dist/src/FxMintPool.js +2 -0
  6. package/dist/src/FxMintPool.js.map +1 -0
  7. package/dist/src/FxMintPoolManager.d.ts +1494 -0
  8. package/dist/src/FxMintPoolManager.js +2 -0
  9. package/dist/src/FxMintPoolManager.js.map +1 -0
  10. package/dist/src/factories/FxMintOperateFacet__factory.d.ts +267 -0
  11. package/dist/src/factories/FxMintOperateFacet__factory.js +349 -0
  12. package/dist/src/factories/FxMintOperateFacet__factory.js.map +1 -0
  13. package/dist/src/factories/FxMintPoolManager__factory.d.ts +1763 -0
  14. package/dist/src/factories/FxMintPoolManager__factory.js +2271 -0
  15. package/dist/src/factories/FxMintPoolManager__factory.js.map +1 -0
  16. package/dist/src/factories/FxMintPool__factory.d.ts +1492 -0
  17. package/dist/src/factories/FxMintPool__factory.js +1941 -0
  18. package/dist/src/factories/FxMintPool__factory.js.map +1 -0
  19. package/dist/src/factories/index.d.ts +3 -0
  20. package/dist/src/factories/index.js +3 -0
  21. package/dist/src/factories/index.js.map +1 -1
  22. package/dist/src/index.d.ts +6 -0
  23. package/dist/src/index.js +3 -0
  24. package/dist/src/index.js.map +1 -1
  25. package/dist/src/interfaces/FxMintOperateFacetInterface.d.ts +7 -0
  26. package/dist/src/interfaces/FxMintOperateFacetInterface.js +7 -0
  27. package/dist/src/interfaces/FxMintOperateFacetInterface.js.map +1 -0
  28. package/dist/src/interfaces/FxMintPoolInterface.d.ts +7 -0
  29. package/dist/src/interfaces/FxMintPoolInterface.js +7 -0
  30. package/dist/src/interfaces/FxMintPoolInterface.js.map +1 -0
  31. package/dist/src/interfaces/FxMintPoolManagerInterface.d.ts +7 -0
  32. package/dist/src/interfaces/FxMintPoolManagerInterface.js +7 -0
  33. package/dist/src/interfaces/FxMintPoolManagerInterface.js.map +1 -0
  34. package/package.json +1 -1
@@ -0,0 +1,187 @@
1
+ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers";
2
+ import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
3
+ import type { Listener, Provider } from "@ethersproject/providers";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "./common";
5
+ export declare namespace LibRouter {
6
+ type ConvertInParamsStruct = {
7
+ tokenIn: PromiseOrValue<string>;
8
+ amount: PromiseOrValue<BigNumberish>;
9
+ target: PromiseOrValue<string>;
10
+ data: PromiseOrValue<BytesLike>;
11
+ minOut: PromiseOrValue<BigNumberish>;
12
+ signature: PromiseOrValue<BytesLike>;
13
+ };
14
+ type ConvertInParamsStructOutput = [
15
+ string,
16
+ BigNumber,
17
+ string,
18
+ string,
19
+ BigNumber,
20
+ string
21
+ ] & {
22
+ tokenIn: string;
23
+ amount: BigNumber;
24
+ target: string;
25
+ data: string;
26
+ minOut: BigNumber;
27
+ signature: string;
28
+ };
29
+ type ConvertOutParamsStruct = {
30
+ tokenOut: PromiseOrValue<string>;
31
+ converter: PromiseOrValue<string>;
32
+ encodings: PromiseOrValue<BigNumberish>;
33
+ routes: PromiseOrValue<BigNumberish>[];
34
+ minOut: PromiseOrValue<BigNumberish>;
35
+ signature: PromiseOrValue<BytesLike>;
36
+ };
37
+ type ConvertOutParamsStructOutput = [
38
+ string,
39
+ string,
40
+ BigNumber,
41
+ BigNumber[],
42
+ BigNumber,
43
+ string
44
+ ] & {
45
+ tokenOut: string;
46
+ converter: string;
47
+ encodings: BigNumber;
48
+ routes: BigNumber[];
49
+ minOut: BigNumber;
50
+ signature: string;
51
+ };
52
+ }
53
+ export declare namespace PositionOperateFacet {
54
+ type BorrowFromLongParamsStruct = {
55
+ pool: PromiseOrValue<string>;
56
+ positionId: PromiseOrValue<BigNumberish>;
57
+ borrowAmount: PromiseOrValue<BigNumberish>;
58
+ };
59
+ type BorrowFromLongParamsStructOutput = [
60
+ string,
61
+ BigNumber,
62
+ BigNumber
63
+ ] & {
64
+ pool: string;
65
+ positionId: BigNumber;
66
+ borrowAmount: BigNumber;
67
+ };
68
+ type RepayToLongParamsStruct = {
69
+ pool: PromiseOrValue<string>;
70
+ positionId: PromiseOrValue<BigNumberish>;
71
+ withdrawAmount: PromiseOrValue<BigNumberish>;
72
+ };
73
+ type RepayToLongParamsStructOutput = [string, BigNumber, BigNumber] & {
74
+ pool: string;
75
+ positionId: BigNumber;
76
+ withdrawAmount: BigNumber;
77
+ };
78
+ }
79
+ export interface FxMintOperateFacetInterface extends utils.Interface {
80
+ functions: {
81
+ "borrowFromLong((address,uint256,address,bytes,uint256,bytes),(address,uint256,uint256))": FunctionFragment;
82
+ "repayToLong((address,uint256,address,bytes,uint256,bytes),(address,uint256,uint256))": FunctionFragment;
83
+ "repayToLongAndZapOut((address,uint256,address,bytes,uint256,bytes),(address,uint256,uint256),(address,address,uint256,uint256[],uint256,bytes))": FunctionFragment;
84
+ };
85
+ getFunction(nameOrSignatureOrTopic: "borrowFromLong" | "repayToLong" | "repayToLongAndZapOut"): FunctionFragment;
86
+ encodeFunctionData(functionFragment: "borrowFromLong", values: [
87
+ LibRouter.ConvertInParamsStruct,
88
+ PositionOperateFacet.BorrowFromLongParamsStruct
89
+ ]): string;
90
+ encodeFunctionData(functionFragment: "repayToLong", values: [
91
+ LibRouter.ConvertInParamsStruct,
92
+ PositionOperateFacet.RepayToLongParamsStruct
93
+ ]): string;
94
+ encodeFunctionData(functionFragment: "repayToLongAndZapOut", values: [
95
+ LibRouter.ConvertInParamsStruct,
96
+ PositionOperateFacet.RepayToLongParamsStruct,
97
+ LibRouter.ConvertOutParamsStruct
98
+ ]): string;
99
+ decodeFunctionResult(functionFragment: "borrowFromLong", data: BytesLike): Result;
100
+ decodeFunctionResult(functionFragment: "repayToLong", data: BytesLike): Result;
101
+ decodeFunctionResult(functionFragment: "repayToLongAndZapOut", data: BytesLike): Result;
102
+ events: {
103
+ "Operate(address,address,uint256,int256,int256)": EventFragment;
104
+ };
105
+ getEvent(nameOrSignatureOrTopic: "Operate"): EventFragment;
106
+ }
107
+ export interface OperateEventObject {
108
+ pool: string;
109
+ user: string;
110
+ positionId: BigNumber;
111
+ deltaColls: BigNumber;
112
+ deltaDebts: BigNumber;
113
+ }
114
+ export type OperateEvent = TypedEvent<[
115
+ string,
116
+ string,
117
+ BigNumber,
118
+ BigNumber,
119
+ BigNumber
120
+ ], OperateEventObject>;
121
+ export type OperateEventFilter = TypedEventFilter<OperateEvent>;
122
+ export interface FxMintOperateFacet extends BaseContract {
123
+ connect(signerOrProvider: Signer | Provider | string): this;
124
+ attach(addressOrName: string): this;
125
+ deployed(): Promise<this>;
126
+ interface: FxMintOperateFacetInterface;
127
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
128
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
129
+ listeners(eventName?: string): Array<Listener>;
130
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
131
+ removeAllListeners(eventName?: string): this;
132
+ off: OnEvent<this>;
133
+ on: OnEvent<this>;
134
+ once: OnEvent<this>;
135
+ removeListener: OnEvent<this>;
136
+ functions: {
137
+ borrowFromLong(convertInParams: LibRouter.ConvertInParamsStruct, borrowParams: PositionOperateFacet.BorrowFromLongParamsStruct, overrides?: PayableOverrides & {
138
+ from?: PromiseOrValue<string>;
139
+ }): Promise<ContractTransaction>;
140
+ repayToLong(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, overrides?: PayableOverrides & {
141
+ from?: PromiseOrValue<string>;
142
+ }): Promise<ContractTransaction>;
143
+ repayToLongAndZapOut(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, convertOutParams: LibRouter.ConvertOutParamsStruct, overrides?: PayableOverrides & {
144
+ from?: PromiseOrValue<string>;
145
+ }): Promise<ContractTransaction>;
146
+ };
147
+ borrowFromLong(convertInParams: LibRouter.ConvertInParamsStruct, borrowParams: PositionOperateFacet.BorrowFromLongParamsStruct, overrides?: PayableOverrides & {
148
+ from?: PromiseOrValue<string>;
149
+ }): Promise<ContractTransaction>;
150
+ repayToLong(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, overrides?: PayableOverrides & {
151
+ from?: PromiseOrValue<string>;
152
+ }): Promise<ContractTransaction>;
153
+ repayToLongAndZapOut(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, convertOutParams: LibRouter.ConvertOutParamsStruct, overrides?: PayableOverrides & {
154
+ from?: PromiseOrValue<string>;
155
+ }): Promise<ContractTransaction>;
156
+ callStatic: {
157
+ borrowFromLong(convertInParams: LibRouter.ConvertInParamsStruct, borrowParams: PositionOperateFacet.BorrowFromLongParamsStruct, overrides?: CallOverrides): Promise<BigNumber>;
158
+ repayToLong(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, overrides?: CallOverrides): Promise<void>;
159
+ repayToLongAndZapOut(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, convertOutParams: LibRouter.ConvertOutParamsStruct, overrides?: CallOverrides): Promise<void>;
160
+ };
161
+ filters: {
162
+ "Operate(address,address,uint256,int256,int256)"(pool?: PromiseOrValue<string> | null, user?: PromiseOrValue<string> | null, positionId?: null, deltaColls?: null, deltaDebts?: null): OperateEventFilter;
163
+ Operate(pool?: PromiseOrValue<string> | null, user?: PromiseOrValue<string> | null, positionId?: null, deltaColls?: null, deltaDebts?: null): OperateEventFilter;
164
+ };
165
+ estimateGas: {
166
+ borrowFromLong(convertInParams: LibRouter.ConvertInParamsStruct, borrowParams: PositionOperateFacet.BorrowFromLongParamsStruct, overrides?: PayableOverrides & {
167
+ from?: PromiseOrValue<string>;
168
+ }): Promise<BigNumber>;
169
+ repayToLong(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, overrides?: PayableOverrides & {
170
+ from?: PromiseOrValue<string>;
171
+ }): Promise<BigNumber>;
172
+ repayToLongAndZapOut(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, convertOutParams: LibRouter.ConvertOutParamsStruct, overrides?: PayableOverrides & {
173
+ from?: PromiseOrValue<string>;
174
+ }): Promise<BigNumber>;
175
+ };
176
+ populateTransaction: {
177
+ borrowFromLong(convertInParams: LibRouter.ConvertInParamsStruct, borrowParams: PositionOperateFacet.BorrowFromLongParamsStruct, overrides?: PayableOverrides & {
178
+ from?: PromiseOrValue<string>;
179
+ }): Promise<PopulatedTransaction>;
180
+ repayToLong(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, overrides?: PayableOverrides & {
181
+ from?: PromiseOrValue<string>;
182
+ }): Promise<PopulatedTransaction>;
183
+ repayToLongAndZapOut(convertInParams: LibRouter.ConvertInParamsStruct, repayParams: PositionOperateFacet.RepayToLongParamsStruct, convertOutParams: LibRouter.ConvertOutParamsStruct, overrides?: PayableOverrides & {
184
+ from?: PromiseOrValue<string>;
185
+ }): Promise<PopulatedTransaction>;
186
+ };
187
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FxMintOperateFacet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FxMintOperateFacet.js","sourceRoot":"","sources":["../../src/FxMintOperateFacet.ts"],"names":[],"mappings":""}