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

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoulin committed Jan 4, 2024
1 parent 9632306 commit f462716
Show file tree
Hide file tree
Showing 8 changed files with 5,134 additions and 84 deletions.
2,557 changes: 2,557 additions & 0 deletions src/apps/gains-network/contracts/abis/gains-network-g-token.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/apps/gains-network/contracts/viem.contract-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface';
import { Network } from '~types/network.interface';

import {
GainsNetworkGToken__factory,
GainsNetworkLockedDepositNft__factory,
GainsNetworkStaking__factory,
GainsNetworkStakingV2__factory,
Expand All @@ -15,6 +16,9 @@ type ContractOpts = { address: string; network: Network };
export class GainsNetworkViemContractFactory {
constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) {}

gainsNetworkGToken({ address, network }: ContractOpts) {
return GainsNetworkGToken__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
gainsNetworkLockedDepositNft({ address, network }: ContractOpts) {
return GainsNetworkLockedDepositNft__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
Expand Down
Loading

0 comments on commit f462716

Please sign in to comment.