@lunch-money/ethereum-to-lunch-money
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -1,3 +0,3 @@ | ||
import ethscan from '@mycrypto/eth-scan'; | ||
import ethers from 'ethers'; | ||
import * as ethscan from '@mycrypto/eth-scan'; | ||
import * as ethers from 'ethers'; | ||
export interface EthereumWalletClient { | ||
@@ -4,0 +4,0 @@ getWeiBalance(walletAddress: string): Promise<bigint>; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -16,3 +35,3 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
exports.loadTokenList = exports.createEthereumWalletClient = void 0; | ||
const eth_scan_1 = __importDefault(require("@mycrypto/eth-scan")); | ||
const ethscan = __importStar(require("@mycrypto/eth-scan")); | ||
const mem_1 = __importDefault(require("mem")); | ||
@@ -28,3 +47,3 @@ const _1inch_json_1 = __importDefault(require("../fixtures/1inch.json")); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return eth_scan_1.default.getTokensBalance(provider, walletAddress, tokenContractAddresses); | ||
return ethscan.getTokensBalance(provider, walletAddress, tokenContractAddresses); | ||
}); | ||
@@ -31,0 +50,0 @@ }, |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -11,9 +30,6 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LunchMoneyEthereumWalletConnection = exports.createEthereumWalletClient = void 0; | ||
const client_js_1 = require("./client.js"); | ||
const ethers_1 = __importDefault(require("ethers")); | ||
const ethers = __importStar(require("ethers")); | ||
var client_js_2 = require("./client.js"); | ||
@@ -45,3 +61,3 @@ Object.defineProperty(exports, "createEthereumWalletClient", { enumerable: true, get: function () { return client_js_2.createEthereumWalletClient; } }); | ||
.filter((b) => b.amount > negligibleBalanceThreshold) | ||
.map(({ asset, amount }) => ({ asset, amount: ethers_1.default.utils.formatEther(amount) })) | ||
.map(({ asset, amount }) => ({ asset, amount: ethers.utils.formatEther(amount) })) | ||
.sort((a, b) => a.asset.localeCompare(b.asset)); | ||
@@ -48,0 +64,0 @@ return { |
@@ -1,3 +0,3 @@ | ||
import ethscan from '@mycrypto/eth-scan'; | ||
import ethers from 'ethers'; | ||
import * as ethscan from '@mycrypto/eth-scan'; | ||
import * as ethers from 'ethers'; | ||
export interface EthereumWalletClient { | ||
@@ -4,0 +4,0 @@ getWeiBalance(walletAddress: string): Promise<bigint>; |
@@ -1,2 +0,2 @@ | ||
import ethscan from '@mycrypto/eth-scan'; | ||
import * as ethscan from '@mycrypto/eth-scan'; | ||
import mem from 'mem'; | ||
@@ -3,0 +3,0 @@ import tokenList1inch from '../fixtures/1inch.json'; |
import { loadTokenList } from './client.js'; | ||
import ethers from 'ethers'; | ||
import * as ethers from 'ethers'; | ||
export { createEthereumWalletClient } from './client.js'; | ||
@@ -4,0 +4,0 @@ /** The minimum balance (in wei) that a token should have in order to be |
@@ -10,3 +10,3 @@ { | ||
"homepage": "https://github.com/lunch-money/ethereum-to-lunch-money#README", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"license": "MIT", | ||
@@ -75,5 +75,5 @@ "keywords": [ | ||
"@mycrypto/eth-scan": "^3.4.4", | ||
"ethers": "^5.4.5", | ||
"mem": "^9.0.1" | ||
"ethers": "^5.4.6", | ||
"mem": "^8.1.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
508443
2061
+ Addedmem@8.1.1(transitive)
+ Addedmimic-fn@3.1.0(transitive)
- Removedmem@9.0.2(transitive)
- Removedmimic-fn@4.0.0(transitive)
Updatedethers@^5.4.6
Updatedmem@^8.1.1