@molecularlabs/nucleus-frontend
Version:
Nucleus BoringVault Frontend SDK
26 lines (22 loc) • 682 B
text/typescript
import { Address } from 'viem';
import { ChainId } from './vault-config.mjs';
import 'viem/chains';
import '../vaults/config.mjs';
/**
* @fileoverview Functions for interacting with the Teller contract
*/
type BridgeData = {
chainSelector: number;
destinationChainReceiver: Address;
bridgeFeeToken: Address;
messageGas: bigint;
data: `0x${string}`;
};
type GetPreviewFeeProps = {
shareAmount: bigint;
bridgeData: BridgeData;
contractAddress: Address;
chainId: ChainId;
};
declare const getPreviewFee: ({ shareAmount, bridgeData, contractAddress, chainId, }: GetPreviewFeeProps) => Promise<bigint>;
export { type BridgeData, getPreviewFee };