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 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03c38dd
commit f64ff9c
Showing
16 changed files
with
6,348 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.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
1,173 changes: 1,173 additions & 0 deletions
1,173
src/apps/spool-v2/contracts/abis/spool-vospool.json
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,4 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export * from './viem.contract-factory'; |
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,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)); | ||
} | ||
} |
Oops, something went wrong.