diff --git a/src/kiln.ts b/src/kiln.ts index 812e2c9..2b60e9a 100644 --- a/src/kiln.ts +++ b/src/kiln.ts @@ -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; @@ -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}`; @@ -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 }); } } diff --git a/src/services/xtz.ts b/src/services/xtz.ts index 07bd052..ddcac28 100644 --- a/src/services/xtz.ts +++ b/src/services/xtz.ts @@ -30,7 +30,7 @@ export class XtzService extends Service { * Craft Tezos undelegation transaction * @param walletAddress wallet address delegating */ - async craftUnStakeTx(walletAddress: string): Promise { + async craftUnstakeTx(walletAddress: string): Promise { const { data } = await api.post(`/v1/xtz/transaction/unstake`, { wallet: walletAddress, });