@xchainjs/xchain-evm-providers
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -20,3 +20,3 @@ import { TxType, FeeOption } from '@xchainjs/xchain-client'; | ||
***************************************************************************** */ | ||
/* global Reflect, Promise, SuppressedError, Symbol */ | ||
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */ | ||
@@ -23,0 +23,0 @@ |
@@ -8,2 +8,6 @@ 'use strict'; | ||
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; } | ||
var axios__default = /*#__PURE__*/_interopDefault(axios); | ||
/****************************************************************************** | ||
@@ -23,3 +27,3 @@ Copyright (c) Microsoft Corporation. | ||
***************************************************************************** */ | ||
/* global Reflect, Promise, SuppressedError, Symbol */ | ||
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */ | ||
@@ -390,3 +394,3 @@ | ||
const url = baseUrl + '/api?module=gastracker&action=gasoracle'; | ||
const result = (yield axios.get(url + getApiKeyQueryParameter(apiKey))).data.result; | ||
const result = (yield axios__default.default.get(url + getApiKeyQueryParameter(apiKey))).data.result; | ||
if (typeof result === 'string') | ||
@@ -419,3 +423,3 @@ throw Error(`Can not retrieve gasOracle: ${result}`); | ||
url += `&endblock=${endblock}`; | ||
const result = (yield axios.get(url)).data.result; | ||
const result = (yield axios__default.default.get(url)).data.result; | ||
if (JSON.stringify(result).includes('Invalid API Key')) | ||
@@ -454,3 +458,3 @@ throw new Error('Invalid API Key'); | ||
url += `&endblock=${endblock}`; | ||
const result = (yield axios.get(url)).data.result; | ||
const result = (yield axios__default.default.get(url)).data.result; | ||
if (JSON.stringify(result).includes('Invalid API Key')) | ||
@@ -496,3 +500,3 @@ throw new Error('Invalid API Key'); | ||
// Get All Erc-20 txs | ||
const response = (yield axios.get(`${this.baseUrl}/api?module=account&action=tokentx&address=${address}&sort=asc&apikey=${this.apiKey}`)).data; | ||
const response = (yield axios__default.default.get(`${this.baseUrl}/api?module=account&action=tokentx&address=${address}&sort=asc&apikey=${this.apiKey}`)).data; | ||
const erc20TokenTxs = this.getUniqueContractAddresses(response.result); | ||
@@ -700,3 +704,3 @@ for (const erc20Token of erc20TokenTxs) { | ||
const balances = []; | ||
const response = (yield axios.get(`${this.baseUrl}/v1/${this.chainId}/address/${address}/balances_v2/?key=${this.apiKey}`)).data; | ||
const response = (yield axios__default.default.get(`${this.baseUrl}/v1/${this.chainId}/address/${address}/balances_v2/?key=${this.apiKey}`)).data; | ||
for (const balance of response.data.items) { | ||
@@ -789,3 +793,3 @@ let symbol; | ||
const txs = []; | ||
const response = (yield axios.get(`${this.baseUrl}/v1/${this.chainId}/address/${params.address}/transactions_v2/?key=${this.apiKey}`)).data; | ||
const response = (yield axios__default.default.get(`${this.baseUrl}/v1/${this.chainId}/address/${params.address}/transactions_v2/?key=${this.apiKey}`)).data; | ||
for (const item of response.data.items) { | ||
@@ -826,3 +830,3 @@ if (!item.log_events || item.log_events.length === 0) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const response = (yield axios.get(`${this.baseUrl}/v1/${this.chainId}/transaction_v2/${txHash}/?key=${this.apiKey}`)).data; | ||
const response = (yield axios__default.default.get(`${this.baseUrl}/v1/${this.chainId}/transaction_v2/${txHash}/?key=${this.apiKey}`)).data; | ||
for (const item of response.data.items) { | ||
@@ -829,0 +833,0 @@ if (!item.log_events || item.log_events.length === 0) { |
{ | ||
"name": "@xchainjs/xchain-evm-providers", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"license": "MIT", | ||
@@ -32,4 +32,4 @@ "main": "lib/index.js", | ||
"@supercharge/promise-pool": "2.4.0", | ||
"@xchainjs/xchain-client": "1.0.6", | ||
"@xchainjs/xchain-util": "1.0.5", | ||
"@xchainjs/xchain-client": "1.0.7", | ||
"@xchainjs/xchain-util": "1.0.6", | ||
"axios": "1.7.4", | ||
@@ -36,0 +36,0 @@ "ethers": "5.7.2" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80634
2261
+ Added@xchainjs/xchain-client@1.0.7(transitive)
+ Added@xchainjs/xchain-crypto@0.3.6(transitive)
+ Added@xchainjs/xchain-util@1.0.6(transitive)
- Removed@xchainjs/xchain-client@1.0.6(transitive)
- Removed@xchainjs/xchain-crypto@0.3.5(transitive)
- Removed@xchainjs/xchain-util@1.0.5(transitive)
Updated@xchainjs/xchain-util@1.0.6