Skip to content

Commit

Permalink
fix pol service + rename xtz unstake (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
nooxx authored Sep 12, 2024
1 parent 1bdd798 commit dfac09e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/kiln.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { XtzService } from "./services/xtz";
import { ZetaService } from "./services/zeta";
import { KILN_VALIDATORS as v } from "./validators";
import { KavaService } from "./services/kava";
import { PolService } from "./services/pol";

type Config = {
apiToken: string;
Expand Down Expand Up @@ -50,6 +51,7 @@ export class Kiln {
ton: TonService;
zeta: ZetaService;
kava: KavaService;
pol: PolService;

constructor({ testnet, apiToken, baseUrl }: Config) {
api.defaults.headers.common.Authorization = `Bearer ${apiToken}`;
Expand All @@ -76,5 +78,6 @@ export class Kiln {
this.ton = new TonService({ testnet });
this.zeta = new ZetaService({ testnet });
this.kava = new KavaService({ testnet });
this.pol = new PolService({ testnet });
}
}
2 changes: 1 addition & 1 deletion src/services/xtz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class XtzService extends Service {
* Craft Tezos undelegation transaction
* @param walletAddress wallet address delegating
*/
async craftUnStakeTx(walletAddress: string): Promise<XtzTx> {
async craftUnstakeTx(walletAddress: string): Promise<XtzTx> {
const { data } = await api.post<XtzTx>(`/v1/xtz/transaction/unstake`, {
wallet: walletAddress,
});
Expand Down

0 comments on commit dfac09e

Please sign in to comment.