Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xchainjs/xchain-evm-providers

Package Overview
Dependencies
Maintainers
11
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xchainjs/xchain-evm-providers - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

lib/index.esm.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc