Skip to content

Commit

Permalink
export FireblocksAssetId
Browse files Browse the repository at this point in the history
  • Loading branch information
LeTamanoir committed Nov 22, 2024
1 parent 7be640c commit e4d131e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fireblocks_signer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import { formatEther, formatUnits } from 'viem';
import type { components } from './openapi/schema.js';

export type AssetId =
export type FireblocksAssetId =
| 'SOL_TEST'
| 'SOL'
| 'ETH_TEST5'
Expand Down Expand Up @@ -81,7 +81,7 @@ export class FireblocksSigner {
* @param assetId fireblocks asset id
* @param note optional fireblocks custom note
*/
public async sign(payloadToSign: object, assetId?: AssetId, note = ''): Promise<TransactionResponse> {
public async sign(payloadToSign: object, assetId?: FireblocksAssetId, note = ''): Promise<TransactionResponse> {
try {
const assetArgs = assetId
? {
Expand Down Expand Up @@ -155,7 +155,7 @@ export class FireblocksSigner {
*/
public async signAndBroadcastWith(
payloadToSign: object,
assetId: AssetId,
assetId: FireblocksAssetId,
tx: components['schemas']['ETHUnsignedTx'] | components['schemas']['POLUnsignedTx'],
destinationId: string,
sendAmount = true,
Expand Down
1 change: 1 addition & 0 deletions src/kiln.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export * from './validators.js';
export * from './openapi/schema.js';
export * from './utils.js';
export type { FireblocksIntegration } from './fireblocks.js';
export type { FireblocksAssetId } from './fireblocks_signer.js';

type Config = {
baseUrl: string;
Expand Down

0 comments on commit e4d131e

Please sign in to comment.