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.
feat(dinero): Add Dinero LSTs pxETH and apxETH (#3141)
* feat(dinero): add contracts abis * feat(dinero): generate contract factory * feat(dinero): create token fetcher * feat(dinero): add app logo --------- Co-authored-by: William Poulin <[email protected]>
- Loading branch information
Showing
11 changed files
with
4,028 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.
1,161 changes: 1,161 additions & 0 deletions
1,161
src/apps/dinero/contracts/abis/dinero-apxeth.json
Large diffs are not rendered by default.
Oops, something went wrong.
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,20 @@ | ||
import { Injectable, Inject } from '@nestjs/common'; | ||
|
||
import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface'; | ||
import { Network } from '~types/network.interface'; | ||
|
||
import { DineroApxeth__factory, DineroPxeth__factory } from './viem'; | ||
|
||
type ContractOpts = { address: string; network: Network }; | ||
|
||
@Injectable() | ||
export class DineroViemContractFactory { | ||
constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) {} | ||
|
||
dineroApxeth({ address, network }: ContractOpts) { | ||
return DineroApxeth__factory.connect(address, this.appToolkit.getViemNetworkProvider(network)); | ||
} | ||
dineroPxeth({ address, network }: ContractOpts) { | ||
return DineroPxeth__factory.connect(address, this.appToolkit.getViemNetworkProvider(network)); | ||
} | ||
} |
Oops, something went wrong.