Skip to content

Commit 8bb2ada

Browse files
authored
rename babylon to bbn (#167)
1 parent 3964443 commit 8bb2ada

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/kiln.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { ZetaService } from "./services/zeta";
2121
import { KILN_VALIDATORS as v } from "./validators";
2222
import { KavaService } from "./services/kava";
2323
import { PolService } from "./services/pol";
24-
import { BabylonService } from "./services/babylon";
24+
import { BbnService } from "./services/bbn";
2525

2626
type Config = {
2727
apiToken: string;
@@ -53,7 +53,7 @@ export class Kiln {
5353
zeta: ZetaService;
5454
kava: KavaService;
5555
pol: PolService;
56-
babylon: BabylonService;
56+
bbn: BbnService;
5757

5858
constructor({ testnet, apiToken, baseUrl }: Config) {
5959
api.defaults.headers.common.Authorization = `Bearer ${apiToken}`;
@@ -81,6 +81,6 @@ export class Kiln {
8181
this.zeta = new ZetaService({ testnet });
8282
this.kava = new KavaService({ testnet });
8383
this.pol = new PolService({ testnet });
84-
this.babylon = new BabylonService({ testnet });
84+
this.bbn = new BbnService({ testnet });
8585
}
8686
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { ServiceProps } from "../types/service";
66
import type { Integration } from "../types/integrations";
77
import { FireblocksSigner as FireblocksPsbtSigner } from "@fireblocks/psbt-sdk";
88

9-
export class BabylonService extends Service {
9+
export class BbnService extends Service {
1010
constructor({ testnet }: ServiceProps) {
1111
super({ testnet });
1212
}
@@ -15,7 +15,7 @@ export class BabylonService extends Service {
1515
* Craft a babylon stake transaction
1616
*/
1717
async craftStakeTx(accountId: string, publicKey: string, amountSatoshi: number, timeLock: number, feeRate: number): Promise<BitcoinTx> {
18-
const { data } = await api.post<BitcoinTx>('/v1/babylon/transaction/stake', {
18+
const { data } = await api.post<BitcoinTx>('/v1/bbn/transaction/stake', {
1919
account_id: accountId,
2020
public_key: publicKey,
2121
amount_satoshi: amountSatoshi,
@@ -59,7 +59,7 @@ export class BabylonService extends Service {
5959
* @param signedTx the transaction to broadcast
6060
*/
6161
async broadcast(signedTx: BitcoinSignedTx): Promise<BitcoinTxHash> {
62-
const { data } = await api.post<BitcoinTxHash>('/v1/babylon/transaction/broadcast', {
62+
const { data } = await api.post<BitcoinTxHash>('/v1/bbn/transaction/broadcast', {
6363
tx_serialized: signedTx.data.signed_tx_serialized,
6464
});
6565
return data;

0 commit comments

Comments
 (0)