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

Commit

Permalink
feat(dinero): Add Dinero LSTs pxETH and apxETH (#3141)
Browse files Browse the repository at this point in the history
* 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
0xhafa and wpoulin authored Dec 13, 2023
1 parent fb6b24a commit 72be905
Show file tree
Hide file tree
Showing 11 changed files with 4,028 additions and 0 deletions.
Binary file added src/apps/dinero/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.
1,161 changes: 1,161 additions & 0 deletions src/apps/dinero/contracts/abis/dinero-apxeth.json

Large diffs are not rendered by default.

778 changes: 778 additions & 0 deletions src/apps/dinero/contracts/abis/dinero-pxeth.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/apps/dinero/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';
20 changes: 20 additions & 0 deletions src/apps/dinero/contracts/viem.contract-factory.ts
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));
}
}
Loading

0 comments on commit 72be905

Please sign in to comment.