Skip to content

Commit

Permalink
Merge pull request #60 from PufferFinance/3365/distribution-handler
Browse files Browse the repository at this point in the history
3365 Distributor handler
  • Loading branch information
guestn authored Feb 28, 2025
2 parents 326e3e4 + d95a221 commit 3d234cf
Show file tree
Hide file tree
Showing 6 changed files with 1,189 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/api/puffer-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { NucleusAccountantHandler } from '../contracts/handlers/nucleus-accounta
import { NucleusAtomicQueueHandler } from '../contracts/handlers/nucleus-atomic-queue-handler';
import { MtwCarrotHandler } from '../contracts/handlers/mtw-carrot-handler';
import { CarrotStakingHandler } from '../contracts/handlers/carrot-staking-handler';
import { DistributorHandler } from '../contracts/handlers/distributor-handler';

/**
* The core class and the main entry point of the Puffer SDK.
Expand Down Expand Up @@ -57,6 +58,8 @@ export class PufferClient {
public mtwCarrot: MtwCarrotHandler;
/** Handler for the `CarrotStaker` contract. */
public carrotStaker: CarrotStakingHandler;
/** Handler for the `Distributor` contract. */
public distributor: DistributorHandler;

/**
* Create the Puffer Client.
Expand Down Expand Up @@ -158,6 +161,11 @@ export class PufferClient {
this.walletClient,
this.publicClient,
);
this.distributor = new DistributorHandler(
chain,
this.walletClient,
this.publicClient,
);
}

/**
Expand Down
Loading

0 comments on commit 3d234cf

Please sign in to comment.