This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lyra-avalon): Add support for Lyra Avalon (#526)
- Loading branch information
Showing
28 changed files
with
21,279 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,360 changes: 2,360 additions & 0 deletions
2,360
src/apps/lyra-avalon/contracts/abis/liquidity-pool.json
Large diffs are not rendered by default.
Oops, something went wrong.
528 changes: 528 additions & 0 deletions
528
src/apps/lyra-avalon/contracts/abis/liquidity-token.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
1,963 changes: 1,963 additions & 0 deletions
1,963
src/apps/lyra-avalon/contracts/abis/option-market.json
Large diffs are not rendered by default.
Oops, something went wrong.
2,257 changes: 2,257 additions & 0 deletions
2,257
src/apps/lyra-avalon/contracts/abis/option-token.json
Large diffs are not rendered by default.
Oops, something went wrong.
1,883 changes: 1,883 additions & 0 deletions
1,883
src/apps/lyra-avalon/contracts/ethers/LiquidityPool.ts
Large diffs are not rendered by default.
Oops, something went wrong.
563 changes: 563 additions & 0 deletions
563
src/apps/lyra-avalon/contracts/ethers/LiquidityToken.ts
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
1,357 changes: 1,357 additions & 0 deletions
1,357
src/apps/lyra-avalon/contracts/ethers/OptionMarket.ts
Large diffs are not rendered by default.
Oops, something went wrong.
1,396 changes: 1,396 additions & 0 deletions
1,396
src/apps/lyra-avalon/contracts/ethers/OptionToken.ts
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { Listener } from '@ethersproject/providers'; | ||
import type { Event, EventFilter } from 'ethers'; | ||
|
||
export interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event { | ||
args: TArgsArray & TArgsObject; | ||
} | ||
|
||
export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {} | ||
|
||
export interface TypedListener<TEvent extends TypedEvent> { | ||
(...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void; | ||
} | ||
|
||
type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never; | ||
|
||
export interface OnEvent<TRes> { | ||
<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes; | ||
(eventName: string, listener: Listener): TRes; | ||
} | ||
|
||
export type MinEthersFactory<C, ARGS> = { | ||
deploy(...a: ARGS[]): Promise<C>; | ||
}; | ||
|
||
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; |
Oops, something went wrong.