Skip to content

Commit dfac09e

Browse files
authored
fix pol service + rename xtz unstake (#119)
1 parent 1bdd798 commit dfac09e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/kiln.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { XtzService } from "./services/xtz";
2020
import { ZetaService } from "./services/zeta";
2121
import { KILN_VALIDATORS as v } from "./validators";
2222
import { KavaService } from "./services/kava";
23+
import { PolService } from "./services/pol";
2324

2425
type Config = {
2526
apiToken: string;
@@ -50,6 +51,7 @@ export class Kiln {
5051
ton: TonService;
5152
zeta: ZetaService;
5253
kava: KavaService;
54+
pol: PolService;
5355

5456
constructor({ testnet, apiToken, baseUrl }: Config) {
5557
api.defaults.headers.common.Authorization = `Bearer ${apiToken}`;
@@ -76,5 +78,6 @@ export class Kiln {
7678
this.ton = new TonService({ testnet });
7779
this.zeta = new ZetaService({ testnet });
7880
this.kava = new KavaService({ testnet });
81+
this.pol = new PolService({ testnet });
7982
}
8083
}

src/services/xtz.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class XtzService extends Service {
3030
* Craft Tezos undelegation transaction
3131
* @param walletAddress wallet address delegating
3232
*/
33-
async craftUnStakeTx(walletAddress: string): Promise<XtzTx> {
33+
async craftUnstakeTx(walletAddress: string): Promise<XtzTx> {
3434
const { data } = await api.post<XtzTx>(`/v1/xtz/transaction/unstake`, {
3535
wallet: walletAddress,
3636
});

0 commit comments

Comments
 (0)