@locker-labs/sdk
Version:
A utility library for enhancing your ERC-4337 experience
28 lines (24 loc) • 704 B
text/typescript
import type { Keypair } from "@solana/web3.js";
import type { EChain } from "../accounts/tokens.js";
import type { ILockerClient } from "../accounts/types.js";
export type ISolanaNetwork = "devnet" | "mainnet";
/**
* The bridging provider identifier.
*/
export type IBridgeName = 'cctp';
export type IBridgeFromSolanaParams = {
solanaSigner: Keypair;
solanaTokenAddress: string;
solanaRpcUrl: string;
amount: number;
recipientChain: EChain;
recipientAddress: string;
solanaChain: EChain;
bridgeName: IBridgeName;
lockerClient: ILockerClient;
}
export type IBridgeFromSolanaResponse = {
depositTx: string;
reclaimTx?: string;
recipientChain: EChain;
}