UNPKG

@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 706 B
import EthereumInitializationService from './ethereum_init.js'; export { createEthereumWalletClient } from './client.js'; export { EthereumInitializationService }; /** The minimum balance (in wei) that a token should have in order to be * considered for returning as a balance. */ const NEGLIGIBLE_BALANCE_THRESHOLD = 1000; export const LunchMoneyEthereumWalletConnection = { async initiate(config, context) { return this.getBalances(config, context); }, async getBalances({ walletAddress, negligibleBalanceThreshold = NEGLIGIBLE_BALANCE_THRESHOLD }, { client }) { return client.getBalances(walletAddress, negligibleBalanceThreshold); }, }; //# sourceMappingURL=main.js.map