@dahlia-labs/numoen-utils
Advanced tools
Comparing version 0.9.11 to 0.9.12
import type { ChainsV1 } from "./types"; | ||
declare type AddressMap = { | ||
type AddressMap = { | ||
[chain in ChainsV1]: string; | ||
@@ -4,0 +4,0 @@ }; |
@@ -11,3 +11,3 @@ import type { Listener } from "@ethersproject/providers"; | ||
} | ||
declare type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never; | ||
type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never; | ||
export interface OnEvent<TRes> { | ||
@@ -17,9 +17,9 @@ <TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes; | ||
} | ||
export declare type MinEthersFactory<C, ARGS> = { | ||
export type MinEthersFactory<C, ARGS> = { | ||
deploy(...a: ARGS[]): Promise<C>; | ||
}; | ||
export declare type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never; | ||
export declare type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never; | ||
export declare type PromiseOrValue<T> = T | Promise<T>; | ||
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never; | ||
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never; | ||
export type PromiseOrValue<T> = T | Promise<T>; | ||
export {}; | ||
//# sourceMappingURL=common.d.ts.map |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { Factory, FactoryInterface } from "../Factory"; | ||
declare type FactoryConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type FactoryConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class Factory__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: FactoryConstructorParams); |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { Lendgine, LendgineInterface } from "../Lendgine"; | ||
declare type LendgineConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type LendgineConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class Lendgine__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: LendgineConstructorParams); |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { LendgineRouter, LendgineRouterInterface } from "../LendgineRouter"; | ||
declare type LendgineRouterConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type LendgineRouterConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class LendgineRouter__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: LendgineRouterConstructorParams); |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { LiquidityManager, LiquidityManagerInterface } from "../LiquidityManager"; | ||
declare type LiquidityManagerConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type LiquidityManagerConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class LiquidityManager__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: LiquidityManagerConstructorParams); |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { Pair, PairInterface } from "../Pair"; | ||
declare type PairConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type PairConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class Pair__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: PairConstructorParams); |
@@ -47,3 +47,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type LendgineCreatedEvent = TypedEvent<[ | ||
export type LendgineCreatedEvent = TypedEvent<[ | ||
string, | ||
@@ -57,3 +57,3 @@ string, | ||
], LendgineCreatedEventObject>; | ||
export declare type LendgineCreatedEventFilter = TypedEventFilter<LendgineCreatedEvent>; | ||
export type LendgineCreatedEventFilter = TypedEventFilter<LendgineCreatedEvent>; | ||
export interface Factory extends BaseContract { | ||
@@ -60,0 +60,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -160,3 +160,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type AccrueInterestEvent = TypedEvent<[ | ||
export type AccrueInterestEvent = TypedEvent<[ | ||
BigNumber, | ||
@@ -167,3 +167,3 @@ BigNumber, | ||
], AccrueInterestEventObject>; | ||
export declare type AccrueInterestEventFilter = TypedEventFilter<AccrueInterestEvent>; | ||
export type AccrueInterestEventFilter = TypedEventFilter<AccrueInterestEvent>; | ||
export interface AccruePositionInterestEventObject { | ||
@@ -173,7 +173,7 @@ owner: string; | ||
} | ||
export declare type AccruePositionInterestEvent = TypedEvent<[ | ||
export type AccruePositionInterestEvent = TypedEvent<[ | ||
string, | ||
BigNumber | ||
], AccruePositionInterestEventObject>; | ||
export declare type AccruePositionInterestEventFilter = TypedEventFilter<AccruePositionInterestEvent>; | ||
export type AccruePositionInterestEventFilter = TypedEventFilter<AccruePositionInterestEvent>; | ||
export interface ApprovalEventObject { | ||
@@ -184,3 +184,3 @@ owner: string; | ||
} | ||
export declare type ApprovalEvent = TypedEvent<[ | ||
export type ApprovalEvent = TypedEvent<[ | ||
string, | ||
@@ -190,3 +190,3 @@ string, | ||
], ApprovalEventObject>; | ||
export declare type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>; | ||
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>; | ||
export interface BurnEventObject { | ||
@@ -199,3 +199,3 @@ sender: string; | ||
} | ||
export declare type BurnEvent = TypedEvent<[ | ||
export type BurnEvent = TypedEvent<[ | ||
string, | ||
@@ -207,3 +207,3 @@ BigNumber, | ||
], BurnEventObject>; | ||
export declare type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export interface CollectEventObject { | ||
@@ -214,3 +214,3 @@ owner: string; | ||
} | ||
export declare type CollectEvent = TypedEvent<[ | ||
export type CollectEvent = TypedEvent<[ | ||
string, | ||
@@ -220,3 +220,3 @@ string, | ||
], CollectEventObject>; | ||
export declare type CollectEventFilter = TypedEventFilter<CollectEvent>; | ||
export type CollectEventFilter = TypedEventFilter<CollectEvent>; | ||
export interface DepositEventObject { | ||
@@ -227,3 +227,3 @@ sender: string; | ||
} | ||
export declare type DepositEvent = TypedEvent<[ | ||
export type DepositEvent = TypedEvent<[ | ||
string, | ||
@@ -233,3 +233,3 @@ BigNumber, | ||
], DepositEventObject>; | ||
export declare type DepositEventFilter = TypedEventFilter<DepositEvent>; | ||
export type DepositEventFilter = TypedEventFilter<DepositEvent>; | ||
export interface MintEventObject { | ||
@@ -242,3 +242,3 @@ sender: string; | ||
} | ||
export declare type MintEvent = TypedEvent<[ | ||
export type MintEvent = TypedEvent<[ | ||
string, | ||
@@ -250,3 +250,3 @@ BigNumber, | ||
], MintEventObject>; | ||
export declare type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export interface TransferEventObject { | ||
@@ -257,3 +257,3 @@ from: string; | ||
} | ||
export declare type TransferEvent = TypedEvent<[ | ||
export type TransferEvent = TypedEvent<[ | ||
string, | ||
@@ -263,3 +263,3 @@ string, | ||
], TransferEventObject>; | ||
export declare type TransferEventFilter = TypedEventFilter<TransferEvent>; | ||
export type TransferEventFilter = TypedEventFilter<TransferEvent>; | ||
export interface WithdrawEventObject { | ||
@@ -269,7 +269,7 @@ sender: string; | ||
} | ||
export declare type WithdrawEvent = TypedEvent<[ | ||
export type WithdrawEvent = TypedEvent<[ | ||
string, | ||
BigNumber | ||
], WithdrawEventObject>; | ||
export declare type WithdrawEventFilter = TypedEventFilter<WithdrawEvent>; | ||
export type WithdrawEventFilter = TypedEventFilter<WithdrawEvent>; | ||
export interface Lendgine extends BaseContract { | ||
@@ -276,0 +276,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -159,3 +159,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type BurnEvent = TypedEvent<[ | ||
export type BurnEvent = TypedEvent<[ | ||
string, | ||
@@ -166,3 +166,3 @@ string, | ||
], BurnEventObject>; | ||
export declare type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export interface MintEventObject { | ||
@@ -174,3 +174,3 @@ recipient: string; | ||
} | ||
export declare type MintEvent = TypedEvent<[ | ||
export type MintEvent = TypedEvent<[ | ||
string, | ||
@@ -181,3 +181,3 @@ string, | ||
], MintEventObject>; | ||
export declare type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export interface LendgineRouter extends BaseContract { | ||
@@ -184,0 +184,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -177,7 +177,7 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type CollectEvent = TypedEvent<[ | ||
export type CollectEvent = TypedEvent<[ | ||
BigNumber, | ||
BigNumber | ||
], CollectEventObject>; | ||
export declare type CollectEventFilter = TypedEventFilter<CollectEvent>; | ||
export type CollectEventFilter = TypedEventFilter<CollectEvent>; | ||
export interface DecreaseLiquidityEventObject { | ||
@@ -187,7 +187,7 @@ tokenID: BigNumber; | ||
} | ||
export declare type DecreaseLiquidityEvent = TypedEvent<[ | ||
export type DecreaseLiquidityEvent = TypedEvent<[ | ||
BigNumber, | ||
BigNumber | ||
], DecreaseLiquidityEventObject>; | ||
export declare type DecreaseLiquidityEventFilter = TypedEventFilter<DecreaseLiquidityEvent>; | ||
export type DecreaseLiquidityEventFilter = TypedEventFilter<DecreaseLiquidityEvent>; | ||
export interface IncreaseLiquidityEventObject { | ||
@@ -199,3 +199,3 @@ tokenID: BigNumber; | ||
} | ||
export declare type IncreaseLiquidityEvent = TypedEvent<[ | ||
export type IncreaseLiquidityEvent = TypedEvent<[ | ||
BigNumber, | ||
@@ -206,3 +206,3 @@ BigNumber, | ||
], IncreaseLiquidityEventObject>; | ||
export declare type IncreaseLiquidityEventFilter = TypedEventFilter<IncreaseLiquidityEvent>; | ||
export type IncreaseLiquidityEventFilter = TypedEventFilter<IncreaseLiquidityEvent>; | ||
export interface MintEventObject { | ||
@@ -215,3 +215,3 @@ operator: string; | ||
} | ||
export declare type MintEvent = TypedEvent<[ | ||
export type MintEvent = TypedEvent<[ | ||
string, | ||
@@ -223,3 +223,3 @@ BigNumber, | ||
], MintEventObject>; | ||
export declare type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export interface LiquidityManager extends BaseContract { | ||
@@ -226,0 +226,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -87,3 +87,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type BurnEvent = TypedEvent<[ | ||
export type BurnEvent = TypedEvent<[ | ||
string, | ||
@@ -95,3 +95,3 @@ BigNumber, | ||
], BurnEventObject>; | ||
export declare type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export interface MintEventObject { | ||
@@ -101,4 +101,4 @@ sender: string; | ||
} | ||
export declare type MintEvent = TypedEvent<[string, BigNumber], MintEventObject>; | ||
export declare type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export type MintEvent = TypedEvent<[string, BigNumber], MintEventObject>; | ||
export type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export interface SwapEventObject { | ||
@@ -110,3 +110,3 @@ sender: string; | ||
} | ||
export declare type SwapEvent = TypedEvent<[ | ||
export type SwapEvent = TypedEvent<[ | ||
string, | ||
@@ -117,3 +117,3 @@ BigNumber, | ||
], SwapEventObject>; | ||
export declare type SwapEventFilter = TypedEventFilter<SwapEvent>; | ||
export type SwapEventFilter = TypedEventFilter<SwapEvent>; | ||
export interface Pair extends BaseContract { | ||
@@ -120,0 +120,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -62,3 +62,3 @@ "use strict"; | ||
rewardPerLiquidityPaid: new token_utils_1.TokenAmount(market.pair.speculativeToken, data.rewardPerLiquidityPaid.toString()), | ||
tokensOwed: new token_utils_1.TokenAmount(market.pair.speculativeToken, data.rewardPerLiquidityPaid.toString()), | ||
tokensOwed: new token_utils_1.TokenAmount(market.pair.speculativeToken, data.tokensOwed.toString()), | ||
}; | ||
@@ -65,0 +65,0 @@ }, |
import type { Price, Token, TokenAmount } from "@dahlia-labs/token-utils"; | ||
import type { IUniswapV2Pair } from "@dahlia-labs/uniswapv2-utils"; | ||
import type { chainID } from "@dahlia-labs/use-ethers"; | ||
export declare type ChainsV1 = keyof Pick<typeof chainID, "goerli">; | ||
export type ChainsV1 = keyof Pick<typeof chainID, "goerli">; | ||
export interface IMarket { | ||
@@ -6,0 +6,0 @@ token: Token; |
import type { ChainsV1 } from "./types"; | ||
declare type AddressMap = { | ||
type AddressMap = { | ||
[chain in ChainsV1]: string; | ||
@@ -4,0 +4,0 @@ }; |
@@ -11,3 +11,3 @@ import type { Listener } from "@ethersproject/providers"; | ||
} | ||
declare type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never; | ||
type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never; | ||
export interface OnEvent<TRes> { | ||
@@ -17,9 +17,9 @@ <TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes; | ||
} | ||
export declare type MinEthersFactory<C, ARGS> = { | ||
export type MinEthersFactory<C, ARGS> = { | ||
deploy(...a: ARGS[]): Promise<C>; | ||
}; | ||
export declare type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never; | ||
export declare type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never; | ||
export declare type PromiseOrValue<T> = T | Promise<T>; | ||
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never; | ||
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never; | ||
export type PromiseOrValue<T> = T | Promise<T>; | ||
export {}; | ||
//# sourceMappingURL=common.d.ts.map |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { Factory, FactoryInterface } from "../Factory"; | ||
declare type FactoryConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type FactoryConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class Factory__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: FactoryConstructorParams); |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { Lendgine, LendgineInterface } from "../Lendgine"; | ||
declare type LendgineConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type LendgineConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class Lendgine__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: LendgineConstructorParams); |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { LendgineRouter, LendgineRouterInterface } from "../LendgineRouter"; | ||
declare type LendgineRouterConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type LendgineRouterConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class LendgineRouter__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: LendgineRouterConstructorParams); |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { LiquidityManager, LiquidityManagerInterface } from "../LiquidityManager"; | ||
declare type LiquidityManagerConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type LiquidityManagerConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class LiquidityManager__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: LiquidityManagerConstructorParams); |
@@ -5,3 +5,3 @@ import { Signer, ContractFactory, Overrides } from "ethers"; | ||
import type { Pair, PairInterface } from "../Pair"; | ||
declare type PairConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
type PairConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>; | ||
export declare class Pair__factory extends ContractFactory { | ||
@@ -8,0 +8,0 @@ constructor(...args: PairConstructorParams); |
@@ -47,3 +47,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type LendgineCreatedEvent = TypedEvent<[ | ||
export type LendgineCreatedEvent = TypedEvent<[ | ||
string, | ||
@@ -57,3 +57,3 @@ string, | ||
], LendgineCreatedEventObject>; | ||
export declare type LendgineCreatedEventFilter = TypedEventFilter<LendgineCreatedEvent>; | ||
export type LendgineCreatedEventFilter = TypedEventFilter<LendgineCreatedEvent>; | ||
export interface Factory extends BaseContract { | ||
@@ -60,0 +60,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -160,3 +160,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type AccrueInterestEvent = TypedEvent<[ | ||
export type AccrueInterestEvent = TypedEvent<[ | ||
BigNumber, | ||
@@ -167,3 +167,3 @@ BigNumber, | ||
], AccrueInterestEventObject>; | ||
export declare type AccrueInterestEventFilter = TypedEventFilter<AccrueInterestEvent>; | ||
export type AccrueInterestEventFilter = TypedEventFilter<AccrueInterestEvent>; | ||
export interface AccruePositionInterestEventObject { | ||
@@ -173,7 +173,7 @@ owner: string; | ||
} | ||
export declare type AccruePositionInterestEvent = TypedEvent<[ | ||
export type AccruePositionInterestEvent = TypedEvent<[ | ||
string, | ||
BigNumber | ||
], AccruePositionInterestEventObject>; | ||
export declare type AccruePositionInterestEventFilter = TypedEventFilter<AccruePositionInterestEvent>; | ||
export type AccruePositionInterestEventFilter = TypedEventFilter<AccruePositionInterestEvent>; | ||
export interface ApprovalEventObject { | ||
@@ -184,3 +184,3 @@ owner: string; | ||
} | ||
export declare type ApprovalEvent = TypedEvent<[ | ||
export type ApprovalEvent = TypedEvent<[ | ||
string, | ||
@@ -190,3 +190,3 @@ string, | ||
], ApprovalEventObject>; | ||
export declare type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>; | ||
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>; | ||
export interface BurnEventObject { | ||
@@ -199,3 +199,3 @@ sender: string; | ||
} | ||
export declare type BurnEvent = TypedEvent<[ | ||
export type BurnEvent = TypedEvent<[ | ||
string, | ||
@@ -207,3 +207,3 @@ BigNumber, | ||
], BurnEventObject>; | ||
export declare type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export interface CollectEventObject { | ||
@@ -214,3 +214,3 @@ owner: string; | ||
} | ||
export declare type CollectEvent = TypedEvent<[ | ||
export type CollectEvent = TypedEvent<[ | ||
string, | ||
@@ -220,3 +220,3 @@ string, | ||
], CollectEventObject>; | ||
export declare type CollectEventFilter = TypedEventFilter<CollectEvent>; | ||
export type CollectEventFilter = TypedEventFilter<CollectEvent>; | ||
export interface DepositEventObject { | ||
@@ -227,3 +227,3 @@ sender: string; | ||
} | ||
export declare type DepositEvent = TypedEvent<[ | ||
export type DepositEvent = TypedEvent<[ | ||
string, | ||
@@ -233,3 +233,3 @@ BigNumber, | ||
], DepositEventObject>; | ||
export declare type DepositEventFilter = TypedEventFilter<DepositEvent>; | ||
export type DepositEventFilter = TypedEventFilter<DepositEvent>; | ||
export interface MintEventObject { | ||
@@ -242,3 +242,3 @@ sender: string; | ||
} | ||
export declare type MintEvent = TypedEvent<[ | ||
export type MintEvent = TypedEvent<[ | ||
string, | ||
@@ -250,3 +250,3 @@ BigNumber, | ||
], MintEventObject>; | ||
export declare type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export interface TransferEventObject { | ||
@@ -257,3 +257,3 @@ from: string; | ||
} | ||
export declare type TransferEvent = TypedEvent<[ | ||
export type TransferEvent = TypedEvent<[ | ||
string, | ||
@@ -263,3 +263,3 @@ string, | ||
], TransferEventObject>; | ||
export declare type TransferEventFilter = TypedEventFilter<TransferEvent>; | ||
export type TransferEventFilter = TypedEventFilter<TransferEvent>; | ||
export interface WithdrawEventObject { | ||
@@ -269,7 +269,7 @@ sender: string; | ||
} | ||
export declare type WithdrawEvent = TypedEvent<[ | ||
export type WithdrawEvent = TypedEvent<[ | ||
string, | ||
BigNumber | ||
], WithdrawEventObject>; | ||
export declare type WithdrawEventFilter = TypedEventFilter<WithdrawEvent>; | ||
export type WithdrawEventFilter = TypedEventFilter<WithdrawEvent>; | ||
export interface Lendgine extends BaseContract { | ||
@@ -276,0 +276,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -159,3 +159,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type BurnEvent = TypedEvent<[ | ||
export type BurnEvent = TypedEvent<[ | ||
string, | ||
@@ -166,3 +166,3 @@ string, | ||
], BurnEventObject>; | ||
export declare type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export interface MintEventObject { | ||
@@ -174,3 +174,3 @@ recipient: string; | ||
} | ||
export declare type MintEvent = TypedEvent<[ | ||
export type MintEvent = TypedEvent<[ | ||
string, | ||
@@ -181,3 +181,3 @@ string, | ||
], MintEventObject>; | ||
export declare type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export interface LendgineRouter extends BaseContract { | ||
@@ -184,0 +184,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -177,7 +177,7 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, PayableOverrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type CollectEvent = TypedEvent<[ | ||
export type CollectEvent = TypedEvent<[ | ||
BigNumber, | ||
BigNumber | ||
], CollectEventObject>; | ||
export declare type CollectEventFilter = TypedEventFilter<CollectEvent>; | ||
export type CollectEventFilter = TypedEventFilter<CollectEvent>; | ||
export interface DecreaseLiquidityEventObject { | ||
@@ -187,7 +187,7 @@ tokenID: BigNumber; | ||
} | ||
export declare type DecreaseLiquidityEvent = TypedEvent<[ | ||
export type DecreaseLiquidityEvent = TypedEvent<[ | ||
BigNumber, | ||
BigNumber | ||
], DecreaseLiquidityEventObject>; | ||
export declare type DecreaseLiquidityEventFilter = TypedEventFilter<DecreaseLiquidityEvent>; | ||
export type DecreaseLiquidityEventFilter = TypedEventFilter<DecreaseLiquidityEvent>; | ||
export interface IncreaseLiquidityEventObject { | ||
@@ -199,3 +199,3 @@ tokenID: BigNumber; | ||
} | ||
export declare type IncreaseLiquidityEvent = TypedEvent<[ | ||
export type IncreaseLiquidityEvent = TypedEvent<[ | ||
BigNumber, | ||
@@ -206,3 +206,3 @@ BigNumber, | ||
], IncreaseLiquidityEventObject>; | ||
export declare type IncreaseLiquidityEventFilter = TypedEventFilter<IncreaseLiquidityEvent>; | ||
export type IncreaseLiquidityEventFilter = TypedEventFilter<IncreaseLiquidityEvent>; | ||
export interface MintEventObject { | ||
@@ -215,3 +215,3 @@ operator: string; | ||
} | ||
export declare type MintEvent = TypedEvent<[ | ||
export type MintEvent = TypedEvent<[ | ||
string, | ||
@@ -223,3 +223,3 @@ BigNumber, | ||
], MintEventObject>; | ||
export declare type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export interface LiquidityManager extends BaseContract { | ||
@@ -226,0 +226,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -87,3 +87,3 @@ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; | ||
} | ||
export declare type BurnEvent = TypedEvent<[ | ||
export type BurnEvent = TypedEvent<[ | ||
string, | ||
@@ -95,3 +95,3 @@ BigNumber, | ||
], BurnEventObject>; | ||
export declare type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export type BurnEventFilter = TypedEventFilter<BurnEvent>; | ||
export interface MintEventObject { | ||
@@ -101,4 +101,4 @@ sender: string; | ||
} | ||
export declare type MintEvent = TypedEvent<[string, BigNumber], MintEventObject>; | ||
export declare type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export type MintEvent = TypedEvent<[string, BigNumber], MintEventObject>; | ||
export type MintEventFilter = TypedEventFilter<MintEvent>; | ||
export interface SwapEventObject { | ||
@@ -110,3 +110,3 @@ sender: string; | ||
} | ||
export declare type SwapEvent = TypedEvent<[ | ||
export type SwapEvent = TypedEvent<[ | ||
string, | ||
@@ -117,3 +117,3 @@ BigNumber, | ||
], SwapEventObject>; | ||
export declare type SwapEventFilter = TypedEventFilter<SwapEvent>; | ||
export type SwapEventFilter = TypedEventFilter<SwapEvent>; | ||
export interface Pair extends BaseContract { | ||
@@ -120,0 +120,0 @@ connect(signerOrProvider: Signer | Provider | string): this; |
@@ -55,3 +55,3 @@ import { TokenAmount } from "@dahlia-labs/token-utils"; | ||
rewardPerLiquidityPaid: new TokenAmount(market.pair.speculativeToken, data.rewardPerLiquidityPaid.toString()), | ||
tokensOwed: new TokenAmount(market.pair.speculativeToken, data.rewardPerLiquidityPaid.toString()), | ||
tokensOwed: new TokenAmount(market.pair.speculativeToken, data.tokensOwed.toString()), | ||
}; | ||
@@ -58,0 +58,0 @@ }, |
import type { Price, Token, TokenAmount } from "@dahlia-labs/token-utils"; | ||
import type { IUniswapV2Pair } from "@dahlia-labs/uniswapv2-utils"; | ||
import type { chainID } from "@dahlia-labs/use-ethers"; | ||
export declare type ChainsV1 = keyof Pick<typeof chainID, "goerli">; | ||
export type ChainsV1 = keyof Pick<typeof chainID, "goerli">; | ||
export interface IMarket { | ||
@@ -6,0 +6,0 @@ token: Token; |
{ | ||
"name": "@dahlia-labs/numoen-utils", | ||
"description": "Types and data collection functions for UniswapV2", | ||
"version": "0.9.11", | ||
"version": "0.9.12", | ||
"repository": { | ||
@@ -29,5 +29,5 @@ "type": "git", | ||
"dependencies": { | ||
"@dahlia-labs/token-utils": "^0.9.11", | ||
"@dahlia-labs/uniswapv2-utils": "^0.9.11", | ||
"@dahlia-labs/use-ethers": "^0.9.11", | ||
"@dahlia-labs/token-utils": "^0.9.12", | ||
"@dahlia-labs/uniswapv2-utils": "^0.9.12", | ||
"@dahlia-labs/use-ethers": "^0.9.12", | ||
"@ethersproject/abi": "^5.7.0", | ||
@@ -58,3 +58,3 @@ "@ethersproject/abstract-signer": "^5.7.0", | ||
"typechain": "^8.1.1", | ||
"typescript": "^4.8.3" | ||
"typescript": "^4.9.3" | ||
}, | ||
@@ -61,0 +61,0 @@ "peerDependencies": { |
@@ -112,3 +112,3 @@ import { TokenAmount } from "@dahlia-labs/token-utils"; | ||
market.pair.speculativeToken, | ||
data.rewardPerLiquidityPaid.toString() | ||
data.tokensOwed.toString() | ||
), | ||
@@ -115,0 +115,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13270325