Skip to content

Commit

Permalink
feature: make marketplace a base module to report contract status
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Apr 10, 2024
1 parent 0c72190 commit 0ee6ec7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/modules/marketplace/marketplace.ts
@@ -1,8 +1,13 @@
import { MasaBase } from "../../masa-base";
import type { MasaInterface } from "../../interface";
import { MasaModuleBase } from "../masa-module-base";
import { claimAllRewards } from "./claimAllRewards";
import { stakeAll } from "./stakeAll";

export class MasaMarketplace extends MasaBase {
export class MasaMarketplace extends MasaModuleBase {
constructor(masa: MasaInterface) {
super(masa, masa.contracts.instances.DataPointsMulti);
}

stakeAll = () => stakeAll(this.masa);
claimAllRewards = () => claimAllRewards(this.masa);
}

0 comments on commit 0ee6ec7

Please sign in to comment.