@lunch-money/ethereum-to-lunch-money
Version:
A wrapper around Ethereum APIs for enabling Lunch Money to gather information about a user's wallet.
15 lines (14 loc) • 940 B
TypeScript
import type { LunchMoneyCryptoConnection, LunchMoneyCryptoConnectionContext, LunchMoneyCryptoConnectionConfig } from './types.js';
import { EthereumWalletClient } from './client.js';
import EthereumInitializationService, { EthereumIntegrationType } from './ethereum_init.js';
export { createEthereumWalletClient } from './client.js';
export { EthereumInitializationService, EthereumIntegrationType };
interface LunchMoneyEthereumWalletConnectionConfig extends LunchMoneyCryptoConnectionConfig {
/** The unique ID of the user's wallet address on the blockchain. */
walletAddress: string;
negligibleBalanceThreshold?: number;
}
interface LunchMoneyEthereumWalletConnectionContext extends LunchMoneyCryptoConnectionContext {
client: EthereumWalletClient;
}
export declare const LunchMoneyEthereumWalletConnection: LunchMoneyCryptoConnection<LunchMoneyEthereumWalletConnectionConfig, LunchMoneyEthereumWalletConnectionContext>;