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

Commit

Permalink
feat(apps): Spool.fi v2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tadej-solidant committed Nov 29, 2023
1 parent 03c38dd commit f64ff9c
Show file tree
Hide file tree
Showing 16 changed files with 6,348 additions and 0 deletions.
Binary file added src/apps/spool-v2/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.
810 changes: 810 additions & 0 deletions src/apps/spool-v2/contracts/abis/spool-staking.json

Large diffs are not rendered by default.

815 changes: 815 additions & 0 deletions src/apps/spool-v2/contracts/abis/spool-vault.json

Large diffs are not rendered by default.

1,173 changes: 1,173 additions & 0 deletions src/apps/spool-v2/contracts/abis/spool-vospool.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/apps/spool-v2/contracts/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
export * from './viem.contract-factory';
23 changes: 23 additions & 0 deletions src/apps/spool-v2/contracts/viem.contract-factory.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Injectable, Inject } from '@nestjs/common';

import { IAppToolkit, APP_TOOLKIT } from '../../../../../studio/src/app-toolkit/app-toolkit.interface';
import { Network } from '../../../../../studio/src/types/network.interface';

import { SpoolStaking__factory, SpoolVault__factory, SpoolVospool__factory } from './viem';

type ContractOpts = { address: string; network: Network };

@Injectable()
export class SpoolV2ViemContractFactory {
constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) {}

spoolStaking({ address, network }: ContractOpts) {
return SpoolStaking__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
spoolVault({ address, network }: ContractOpts) {
return SpoolVault__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
spoolVospool({ address, network }: ContractOpts) {
return SpoolVospool__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
}
Loading

0 comments on commit f64ff9c

Please sign in to comment.