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 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lodestar-v0): Rename Lodestar to Lodestar-v0 (#2924)
- Loading branch information
Showing
23 changed files
with
136 additions
and
134 deletions.
There are no files selected for viewing
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
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
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
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
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
File renamed without changes.
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
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
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
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,6 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export { LodestarV0Comptroller__factory } from './LodestarV0Comptroller__factory'; | ||
export { LodestarV0IToken__factory } from './LodestarV0IToken__factory'; | ||
export { LodestarV0Lens__factory } from './LodestarV0Lens__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,10 @@ | ||
/* Autogenerated file. Do not edit manually. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
export type { LodestarV0Comptroller } from './LodestarV0Comptroller'; | ||
export type { LodestarV0IToken } from './LodestarV0IToken'; | ||
export type { LodestarV0Lens } from './LodestarV0Lens'; | ||
export * as factories from './factories'; | ||
export { LodestarV0Comptroller__factory } from './factories/LodestarV0Comptroller__factory'; | ||
export { LodestarV0IToken__factory } from './factories/LodestarV0IToken__factory'; | ||
export { LodestarV0Lens__factory } from './factories/LodestarV0Lens__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,31 @@ | ||
import { Injectable, Inject } from '@nestjs/common'; | ||
|
||
import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; | ||
import { ContractFactory } from '~contract/contracts'; | ||
import { Network } from '~types/network.interface'; | ||
|
||
import { LodestarV0Comptroller__factory, LodestarV0IToken__factory, LodestarV0Lens__factory } from './ethers'; | ||
|
||
// eslint-disable-next-line | ||
type ContractOpts = { address: string; network: Network }; | ||
|
||
@Injectable() | ||
export class LodestarV0ContractFactory extends ContractFactory { | ||
constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) { | ||
super((network: Network) => appToolkit.getNetworkProvider(network)); | ||
} | ||
|
||
lodestarV0Comptroller({ address, network }: ContractOpts) { | ||
return LodestarV0Comptroller__factory.connect(address, this.appToolkit.getNetworkProvider(network)); | ||
} | ||
lodestarV0IToken({ address, network }: ContractOpts) { | ||
return LodestarV0IToken__factory.connect(address, this.appToolkit.getNetworkProvider(network)); | ||
} | ||
lodestarV0Lens({ address, network }: ContractOpts) { | ||
return LodestarV0Lens__factory.connect(address, this.appToolkit.getNetworkProvider(network)); | ||
} | ||
} | ||
|
||
export type { LodestarV0Comptroller } from './ethers'; | ||
export type { LodestarV0IToken } from './ethers'; | ||
export type { LodestarV0Lens } from './ethers'; |
Oops, something went wrong.