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

Commit

Permalink
feat(sideshift): add sideshift (#1883)
Browse files Browse the repository at this point in the history
* feat(sideshift): add sideshift
  • Loading branch information
abrkn committed Dec 15, 2022
1 parent 7eb6ecf commit 4504584
Show file tree
Hide file tree
Showing 12 changed files with 3,273 additions and 0 deletions.
Binary file added src/apps/sideshift/assets/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
975 changes: 975 additions & 0 deletions src/apps/sideshift/contracts/abis/svxai-vault.json

Large diffs are not rendered by default.

1,145 changes: 1,145 additions & 0 deletions src/apps/sideshift/contracts/ethers/SvxaiVault.ts

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions src/apps/sideshift/contracts/ethers/common.ts
@@ -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>;

0 comments on commit 4504584

Please sign in to comment.