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 2, 2024
1 parent 8698eeb commit 651add4
Show file tree
Hide file tree
Showing 19 changed files with 1 addition and 7,075 deletions.
596 changes: 0 additions & 596 deletions src/apps/mstable/contracts/abis/mstable-asset.json

This file was deleted.

524 changes: 0 additions & 524 deletions src/apps/mstable/contracts/abis/mstable-metavault-4626.json

This file was deleted.

14 changes: 1 addition & 13 deletions src/apps/mstable/contracts/viem.contract-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,14 @@ import { Injectable, Inject } from '@nestjs/common';
import { IAppToolkit, APP_TOOLKIT } from '~app-toolkit/app-toolkit.interface';
import { Network } from '~types/network.interface';

import {
MstableAsset__factory,
MstableMetavault4626__factory,
MstableStaking__factory,
MstableStakingV2__factory,
MstableVmta__factory,
} from './viem';
import { MstableStaking__factory, MstableStakingV2__factory, MstableVmta__factory } from './viem';

type ContractOpts = { address: string; network: Network };

@Injectable()
export class MstableViemContractFactory {
constructor(@Inject(APP_TOOLKIT) protected readonly appToolkit: IAppToolkit) {}

mstableAsset({ address, network }: ContractOpts) {
return MstableAsset__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
mstableMetavault4626({ address, network }: ContractOpts) {
return MstableMetavault4626__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
mstableStaking({ address, network }: ContractOpts) {
return MstableStaking__factory.connect(address, this.appToolkit.getViemNetworkProvider(network));
}
Expand Down
Loading

0 comments on commit 651add4

Please sign in to comment.