Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

feat: add lyra avalon #526

Merged
merged 6 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/apps/lyra-avalon/assets/logo.png
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 src/apps/lyra-avalon/contracts/abis/liquidity-pool.json

Large diffs are not rendered by default.

528 changes: 528 additions & 0 deletions src/apps/lyra-avalon/contracts/abis/liquidity-token.json

Large diffs are not rendered by default.

428 changes: 428 additions & 0 deletions src/apps/lyra-avalon/contracts/abis/lyra-registry.json

Large diffs are not rendered by default.

1,963 changes: 1,963 additions & 0 deletions src/apps/lyra-avalon/contracts/abis/option-market.json

Large diffs are not rendered by default.

2,257 changes: 2,257 additions & 0 deletions src/apps/lyra-avalon/contracts/abis/option-token.json

Large diffs are not rendered by default.

1,883 changes: 1,883 additions & 0 deletions src/apps/lyra-avalon/contracts/ethers/LiquidityPool.ts

Large diffs are not rendered by default.

563 changes: 563 additions & 0 deletions src/apps/lyra-avalon/contracts/ethers/LiquidityToken.ts

Large diffs are not rendered by default.

405 changes: 405 additions & 0 deletions src/apps/lyra-avalon/contracts/ethers/LyraRegistry.ts

Large diffs are not rendered by default.

1,357 changes: 1,357 additions & 0 deletions src/apps/lyra-avalon/contracts/ethers/OptionMarket.ts

Large diffs are not rendered by default.

1,396 changes: 1,396 additions & 0 deletions src/apps/lyra-avalon/contracts/ethers/OptionToken.ts

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions src/apps/lyra-avalon/contracts/ethers/common.ts
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;
Loading