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 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kwenta): Integrate perpetuals from Kwenta (#1435)
- Loading branch information
1 parent
0bff135
commit af081a2
Showing
30 changed files
with
3,618 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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.4 KB
src/apps/kwenta/assets/0x1228c7d8bbc5bc53db181bd7b1fce765aa83bf8a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+48.9 KB
src/apps/kwenta/assets/0x3ed04ceff4c91872f19b1da35740c0be9ca21558.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.5 KB
src/apps/kwenta/assets/0x4434f56ddbde28fab08c4ae71970a06b300f8881.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+48.5 KB
src/apps/kwenta/assets/0x4aa0dabd22bc0894975324bec293443c8538bd08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.4 KB
src/apps/kwenta/assets/0x4ff54624d5fb61c34c634c3314ed3bfe4dbb665a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33.5 KB
src/apps/kwenta/assets/0x9f1c2f0071bc3b31447aeda9fa3a68d651eb4632.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.5 KB
src/apps/kwenta/assets/0xad44873632840144ffc97b2d1de716f6e2cf0366.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.4 KB
src/apps/kwenta/assets/0xb147c69bee211f57290a6cde9d1babfd0dcf3ea3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.9 KB
src/apps/kwenta/assets/0xbcb2d435045e16b059b2130b28be70b5ca47bfe5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+77.9 KB
src/apps/kwenta/assets/0xd325b17d5c9c3f2b6853a760afcf81945b0184d3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.6 KB
src/apps/kwenta/assets/0xee8804d8ad10b0c3ad1bd57ac3737242ad24bb95.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+32.8 KB
src/apps/kwenta/assets/0xf86048dff23cf130107dfb4e6386f574231a5c65.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,109 changes: 1,109 additions & 0 deletions
1,109
src/apps/kwenta/contracts/abis/kwenta-futures.json
Large diffs are not rendered by default.
Oops, something went wrong.
1,164 changes: 1,164 additions & 0 deletions
1,164
src/apps/kwenta/contracts/ethers/KwentaFutures.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,32 @@ | ||
/* 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; | ||
|
||
export type PromiseOrValue<T> = T | Promise<T>; |
Oops, something went wrong.