Skip to content

Commit e4d131e

Browse files
committed
export FireblocksAssetId
1 parent 7be640c commit e4d131e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/fireblocks_signer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { formatEther, formatUnits } from 'viem';
1212
import type { components } from './openapi/schema.js';
1313

14-
export type AssetId =
14+
export type FireblocksAssetId =
1515
| 'SOL_TEST'
1616
| 'SOL'
1717
| 'ETH_TEST5'
@@ -81,7 +81,7 @@ export class FireblocksSigner {
8181
* @param assetId fireblocks asset id
8282
* @param note optional fireblocks custom note
8383
*/
84-
public async sign(payloadToSign: object, assetId?: AssetId, note = ''): Promise<TransactionResponse> {
84+
public async sign(payloadToSign: object, assetId?: FireblocksAssetId, note = ''): Promise<TransactionResponse> {
8585
try {
8686
const assetArgs = assetId
8787
? {
@@ -155,7 +155,7 @@ export class FireblocksSigner {
155155
*/
156156
public async signAndBroadcastWith(
157157
payloadToSign: object,
158-
assetId: AssetId,
158+
assetId: FireblocksAssetId,
159159
tx: components['schemas']['ETHUnsignedTx'] | components['schemas']['POLUnsignedTx'],
160160
destinationId: string,
161161
sendAmount = true,

src/kiln.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export * from './validators.js';
66
export * from './openapi/schema.js';
77
export * from './utils.js';
88
export type { FireblocksIntegration } from './fireblocks.js';
9+
export type { FireblocksAssetId } from './fireblocks_signer.js';
910

1011
type Config = {
1112
baseUrl: string;

0 commit comments

Comments
 (0)