@merkl/contracts 0.2.15 → 0.2.17

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.
@@ -0,0 +1,77 @@
1
+ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, 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 interface BalancerGaugeFactoryInterface extends utils.Interface {
6
+ functions: {
7
+ "create(address,uint256)": FunctionFragment;
8
+ "getGaugeImplementation()": FunctionFragment;
9
+ "isGaugeFromFactory(address)": FunctionFragment;
10
+ };
11
+ getFunction(nameOrSignatureOrTopic: "create" | "getGaugeImplementation" | "isGaugeFromFactory"): FunctionFragment;
12
+ encodeFunctionData(functionFragment: "create", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
13
+ encodeFunctionData(functionFragment: "getGaugeImplementation", values?: undefined): string;
14
+ encodeFunctionData(functionFragment: "isGaugeFromFactory", values: [PromiseOrValue<string>]): string;
15
+ decodeFunctionResult(functionFragment: "create", data: BytesLike): Result;
16
+ decodeFunctionResult(functionFragment: "getGaugeImplementation", data: BytesLike): Result;
17
+ decodeFunctionResult(functionFragment: "isGaugeFromFactory", data: BytesLike): Result;
18
+ events: {
19
+ "GaugeCreated(address)": EventFragment;
20
+ };
21
+ getEvent(nameOrSignatureOrTopic: "GaugeCreated"): EventFragment;
22
+ }
23
+ export interface GaugeCreatedEventObject {
24
+ gauge: string;
25
+ }
26
+ export type GaugeCreatedEvent = TypedEvent<[string], GaugeCreatedEventObject>;
27
+ export type GaugeCreatedEventFilter = TypedEventFilter<GaugeCreatedEvent>;
28
+ export interface BalancerGaugeFactory extends BaseContract {
29
+ connect(signerOrProvider: Signer | Provider | string): this;
30
+ attach(addressOrName: string): this;
31
+ deployed(): Promise<this>;
32
+ interface: BalancerGaugeFactoryInterface;
33
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
34
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
35
+ listeners(eventName?: string): Array<Listener>;
36
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
37
+ removeAllListeners(eventName?: string): this;
38
+ off: OnEvent<this>;
39
+ on: OnEvent<this>;
40
+ once: OnEvent<this>;
41
+ removeListener: OnEvent<this>;
42
+ functions: {
43
+ create(pool: PromiseOrValue<string>, relativeWeightCap: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
44
+ from?: PromiseOrValue<string>;
45
+ }): Promise<ContractTransaction>;
46
+ getGaugeImplementation(overrides?: CallOverrides): Promise<[string]>;
47
+ isGaugeFromFactory(gauge: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
48
+ };
49
+ create(pool: PromiseOrValue<string>, relativeWeightCap: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
50
+ from?: PromiseOrValue<string>;
51
+ }): Promise<ContractTransaction>;
52
+ getGaugeImplementation(overrides?: CallOverrides): Promise<string>;
53
+ isGaugeFromFactory(gauge: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
54
+ callStatic: {
55
+ create(pool: PromiseOrValue<string>, relativeWeightCap: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
56
+ getGaugeImplementation(overrides?: CallOverrides): Promise<string>;
57
+ isGaugeFromFactory(gauge: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
58
+ };
59
+ filters: {
60
+ "GaugeCreated(address)"(gauge?: PromiseOrValue<string> | null): GaugeCreatedEventFilter;
61
+ GaugeCreated(gauge?: PromiseOrValue<string> | null): GaugeCreatedEventFilter;
62
+ };
63
+ estimateGas: {
64
+ create(pool: PromiseOrValue<string>, relativeWeightCap: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
65
+ from?: PromiseOrValue<string>;
66
+ }): Promise<BigNumber>;
67
+ getGaugeImplementation(overrides?: CallOverrides): Promise<BigNumber>;
68
+ isGaugeFromFactory(gauge: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
69
+ };
70
+ populateTransaction: {
71
+ create(pool: PromiseOrValue<string>, relativeWeightCap: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
72
+ from?: PromiseOrValue<string>;
73
+ }): Promise<PopulatedTransaction>;
74
+ getGaugeImplementation(overrides?: CallOverrides): Promise<PopulatedTransaction>;
75
+ isGaugeFromFactory(gauge: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
76
+ };
77
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,68 @@
1
+ import { Signer } from "ethers";
2
+ import type { Provider } from "@ethersproject/providers";
3
+ import type { BalancerGaugeFactory, BalancerGaugeFactoryInterface } from "../BalancerGaugeFactory";
4
+ export declare class BalancerGaugeFactory__factory {
5
+ static readonly abi: readonly [{
6
+ readonly inputs: readonly [{
7
+ readonly internalType: "contract IStakingLiquidityGauge";
8
+ readonly name: "gauge";
9
+ readonly type: "address";
10
+ }];
11
+ readonly stateMutability: "nonpayable";
12
+ readonly type: "constructor";
13
+ }, {
14
+ readonly anonymous: false;
15
+ readonly inputs: readonly [{
16
+ readonly indexed: true;
17
+ readonly internalType: "address";
18
+ readonly name: "gauge";
19
+ readonly type: "address";
20
+ }];
21
+ readonly name: "GaugeCreated";
22
+ readonly type: "event";
23
+ }, {
24
+ readonly inputs: readonly [{
25
+ readonly internalType: "address";
26
+ readonly name: "pool";
27
+ readonly type: "address";
28
+ }, {
29
+ readonly internalType: "uint256";
30
+ readonly name: "relativeWeightCap";
31
+ readonly type: "uint256";
32
+ }];
33
+ readonly name: "create";
34
+ readonly outputs: readonly [{
35
+ readonly internalType: "address";
36
+ readonly name: "";
37
+ readonly type: "address";
38
+ }];
39
+ readonly stateMutability: "nonpayable";
40
+ readonly type: "function";
41
+ }, {
42
+ readonly inputs: readonly [];
43
+ readonly name: "getGaugeImplementation";
44
+ readonly outputs: readonly [{
45
+ readonly internalType: "contract ILiquidityGauge";
46
+ readonly name: "";
47
+ readonly type: "address";
48
+ }];
49
+ readonly stateMutability: "view";
50
+ readonly type: "function";
51
+ }, {
52
+ readonly inputs: readonly [{
53
+ readonly internalType: "address";
54
+ readonly name: "gauge";
55
+ readonly type: "address";
56
+ }];
57
+ readonly name: "isGaugeFromFactory";
58
+ readonly outputs: readonly [{
59
+ readonly internalType: "bool";
60
+ readonly name: "";
61
+ readonly type: "bool";
62
+ }];
63
+ readonly stateMutability: "view";
64
+ readonly type: "function";
65
+ }];
66
+ static createInterface(): BalancerGaugeFactoryInterface;
67
+ static connect(address: string, signerOrProvider: Signer | Provider): BalancerGaugeFactory;
68
+ }
@@ -0,0 +1,95 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, utils } from "ethers";
5
+ const _abi = [
6
+ {
7
+ inputs: [
8
+ {
9
+ internalType: "contract IStakingLiquidityGauge",
10
+ name: "gauge",
11
+ type: "address",
12
+ },
13
+ ],
14
+ stateMutability: "nonpayable",
15
+ type: "constructor",
16
+ },
17
+ {
18
+ anonymous: false,
19
+ inputs: [
20
+ {
21
+ indexed: true,
22
+ internalType: "address",
23
+ name: "gauge",
24
+ type: "address",
25
+ },
26
+ ],
27
+ name: "GaugeCreated",
28
+ type: "event",
29
+ },
30
+ {
31
+ inputs: [
32
+ {
33
+ internalType: "address",
34
+ name: "pool",
35
+ type: "address",
36
+ },
37
+ {
38
+ internalType: "uint256",
39
+ name: "relativeWeightCap",
40
+ type: "uint256",
41
+ },
42
+ ],
43
+ name: "create",
44
+ outputs: [
45
+ {
46
+ internalType: "address",
47
+ name: "",
48
+ type: "address",
49
+ },
50
+ ],
51
+ stateMutability: "nonpayable",
52
+ type: "function",
53
+ },
54
+ {
55
+ inputs: [],
56
+ name: "getGaugeImplementation",
57
+ outputs: [
58
+ {
59
+ internalType: "contract ILiquidityGauge",
60
+ name: "",
61
+ type: "address",
62
+ },
63
+ ],
64
+ stateMutability: "view",
65
+ type: "function",
66
+ },
67
+ {
68
+ inputs: [
69
+ {
70
+ internalType: "address",
71
+ name: "gauge",
72
+ type: "address",
73
+ },
74
+ ],
75
+ name: "isGaugeFromFactory",
76
+ outputs: [
77
+ {
78
+ internalType: "bool",
79
+ name: "",
80
+ type: "bool",
81
+ },
82
+ ],
83
+ stateMutability: "view",
84
+ type: "function",
85
+ },
86
+ ];
87
+ export class BalancerGaugeFactory__factory {
88
+ static abi = _abi;
89
+ static createInterface() {
90
+ return new utils.Interface(_abi);
91
+ }
92
+ static connect(address, signerOrProvider) {
93
+ return new Contract(address, _abi, signerOrProvider);
94
+ }
95
+ }
@@ -56,6 +56,7 @@ export { Aura__factory } from "./Aura__factory";
56
56
  export { AuraOperator__factory } from "./AuraOperator__factory";
57
57
  export { BPAMOJob__factory } from "./BPAMOJob__factory";
58
58
  export { BalancerGauge__factory } from "./BalancerGauge__factory";
59
+ export { BalancerGaugeFactory__factory } from "./BalancerGaugeFactory__factory";
59
60
  export { BalancerPool__factory } from "./BalancerPool__factory";
60
61
  export { BalancerSingleton__factory } from "./BalancerSingleton__factory";
61
62
  export { BalancerV3StablePool__factory } from "./BalancerV3StablePool__factory";
@@ -59,6 +59,7 @@ export { Aura__factory } from "./Aura__factory";
59
59
  export { AuraOperator__factory } from "./AuraOperator__factory";
60
60
  export { BPAMOJob__factory } from "./BPAMOJob__factory";
61
61
  export { BalancerGauge__factory } from "./BalancerGauge__factory";
62
+ export { BalancerGaugeFactory__factory } from "./BalancerGaugeFactory__factory";
62
63
  export { BalancerPool__factory } from "./BalancerPool__factory";
63
64
  export { BalancerSingleton__factory } from "./BalancerSingleton__factory";
64
65
  export { BalancerV3StablePool__factory } from "./BalancerV3StablePool__factory";
@@ -269,6 +269,7 @@ export type { TermMaxFT } from "./TermMaxFT";
269
269
  export type { JonesDoubleRewardTracker } from "./JonesDoubleRewardTracker";
270
270
  export type { TermMaxMarket } from "./TermMaxMarket";
271
271
  export type { KilnFactory } from "./KilnFactory";
272
+ export type { BalancerGaugeFactory } from "./BalancerGaugeFactory";
272
273
  export type { AlgebraIntegralV12NonFungibleManager } from "./AlgebraIntegralV12NonFungibleManager";
273
274
  export type { MaverickRewardVault } from "./MaverickRewardVault";
274
275
  export type { ERC4626 } from "./ERC4626";
@@ -406,6 +407,7 @@ export declare const FraxLendPairInterface: import("./FraxLendPair").FraxLendPai
406
407
  export declare const CtokenInterface: import("./Ctoken").CtokenInterface;
407
408
  export declare const GammaChefInterface: import("./GammaChef").GammaChefInterface;
408
409
  export declare const AlgebraIntegralV12FarmingCenterInterface: import("./AlgebraIntegralV12FarmingCenter").AlgebraIntegralV12FarmingCenterInterface;
410
+ export declare const BalancerGaugeFactoryInterface: import("./BalancerGaugeFactory").BalancerGaugeFactoryInterface;
409
411
  export declare const MorphoBlueInterface: import("./MorphoBlue").MorphoBlueInterface;
410
412
  export declare const TwyneEulerCollateralVaultInterface: import("./TwyneEulerCollateralVault").TwyneEulerCollateralVaultInterface;
411
413
  export declare const BunniV2HubInterface: import("./BunniV2Hub").BunniV2HubInterface;
package/dist/src/index.js CHANGED
@@ -148,6 +148,8 @@ import { GammaChef__factory } from "./factories/GammaChef__factory";
148
148
  export const GammaChefInterface = GammaChef__factory.createInterface();
149
149
  import { AlgebraIntegralV12FarmingCenter__factory } from "./factories/AlgebraIntegralV12FarmingCenter__factory";
150
150
  export const AlgebraIntegralV12FarmingCenterInterface = AlgebraIntegralV12FarmingCenter__factory.createInterface();
151
+ import { BalancerGaugeFactory__factory } from "./factories/BalancerGaugeFactory__factory";
152
+ export const BalancerGaugeFactoryInterface = BalancerGaugeFactory__factory.createInterface();
151
153
  import { MorphoBlue__factory } from "./factories/MorphoBlue__factory";
152
154
  export const MorphoBlueInterface = MorphoBlue__factory.createInterface();
153
155
  import { TwyneEulerCollateralVault__factory } from "./factories/TwyneEulerCollateralVault__factory";