@xchainjs/xchain-evm
Advanced tools
Comparing version 0.1.0-alpha to 0.1.0-alpha2
import { Provider, TransactionResponse } from '@ethersproject/abstract-provider'; | ||
import { Address, Balance, BaseXChainClient, FeeOption, Fees, Network, Tx, TxHash, TxHistoryParams, TxParams, TxsPage, XChainClient, XChainClientParams } from '@xchainjs/xchain-client'; | ||
import { Asset, BaseAmount, Chain } from '@xchainjs/xchain-util'; | ||
import { Balance, BaseXChainClient, FeeOption, Fees, Network, Tx, TxHash, TxHistoryParams, TxParams, TxsPage, XChainClient, XChainClientParams } from '@xchainjs/xchain-client'; | ||
import { Address, Asset, BaseAmount, Chain } from '@xchainjs/xchain-util'; | ||
import { BigNumber, Signer, ethers } from 'ethers'; | ||
@@ -5,0 +5,0 @@ import { ApproveParams, CallParams, EstimateApproveParams, EstimateCallParams, FeesWithGasPricesAndLimits, GasPrices, IsApprovedParams } from './types'; |
@@ -741,7 +741,5 @@ import { BaseXChainClient, Network, FeeOption, checkFeeBounds, standardFeeRates, FeeType, TxType } from '@xchainjs/xchain-client'; | ||
txGasLimit = yield this.estimateGasLimit({ asset, recipient, amount, memo }); | ||
console.log(`estimateGasLimit=${txGasLimit.toString()}`); | ||
} | ||
catch (error) { | ||
txGasLimit = defaultGasLimit; | ||
console.log(`defaultGasLimit=${txGasLimit.toString()}`); | ||
} | ||
@@ -756,3 +754,2 @@ } | ||
}; | ||
console.log(JSON.stringify(overrides)); | ||
checkFeeBounds(this.feeBounds, overrides.gasPrice.toNumber()); | ||
@@ -759,0 +756,0 @@ const signer = txSigner || this.getWallet(walletIndex); |
@@ -749,7 +749,5 @@ 'use strict'; | ||
txGasLimit = yield this.estimateGasLimit({ asset, recipient, amount, memo }); | ||
console.log(`estimateGasLimit=${txGasLimit.toString()}`); | ||
} | ||
catch (error) { | ||
txGasLimit = defaultGasLimit; | ||
console.log(`defaultGasLimit=${txGasLimit.toString()}`); | ||
} | ||
@@ -764,3 +762,2 @@ } | ||
}; | ||
console.log(JSON.stringify(overrides)); | ||
xchainClient.checkFeeBounds(this.feeBounds, overrides.gasPrice.toNumber()); | ||
@@ -767,0 +764,0 @@ const signer = txSigner || this.getWallet(walletIndex); |
@@ -1,3 +0,3 @@ | ||
import { Address, Balance, Fees, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Asset, Chain } from '@xchainjs/xchain-util'; | ||
import { Balance, Fees, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Address, Asset, Chain } from '@xchainjs/xchain-util'; | ||
import { GasPrices } from '../../types'; | ||
@@ -4,0 +4,0 @@ import { OnlineDataProvider } from '../../types/provider-types'; |
@@ -1,2 +0,2 @@ | ||
import { Address } from '@xchainjs/xchain-client'; | ||
import { Address } from '@xchainjs/xchain-util'; | ||
export declare type GetBalanceResponse = { | ||
@@ -3,0 +3,0 @@ data: { |
import { Provider } from '@ethersproject/abstract-provider'; | ||
import { Address, Balance, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Asset, Chain } from '@xchainjs/xchain-util'; | ||
import { Balance, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Address, Asset, Chain } from '@xchainjs/xchain-util'; | ||
import { OnlineDataProvider } from '../../types/provider-types'; | ||
@@ -5,0 +5,0 @@ export declare class EtherscanProvider implements OnlineDataProvider { |
@@ -1,2 +0,2 @@ | ||
import { Address } from '@xchainjs/xchain-client'; | ||
import { Address } from '@xchainjs/xchain-util'; | ||
export declare type ERC20Tx = { | ||
@@ -3,0 +3,0 @@ timeStamp: string; |
@@ -1,2 +0,2 @@ | ||
import { Address } from '@xchainjs/xchain-client'; | ||
import { Address } from '@xchainjs/xchain-util'; | ||
export declare class ExplorerProvider { | ||
@@ -3,0 +3,0 @@ private explorerUrl; |
@@ -1,3 +0,3 @@ | ||
import { Address, FeeOption, Fees, Network } from '@xchainjs/xchain-client'; | ||
import { BaseAmount } from '@xchainjs/xchain-util'; | ||
import { FeeOption, Fees, Network } from '@xchainjs/xchain-client'; | ||
import { Address, BaseAmount } from '@xchainjs/xchain-util'; | ||
import { BigNumber, Signer, ethers } from 'ethers'; | ||
@@ -4,0 +4,0 @@ export declare type ClientUrl = Record<Network, string>; |
@@ -1,3 +0,3 @@ | ||
import { Address, Balance, Network, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Asset } from '@xchainjs/xchain-util'; | ||
import { Balance, Network, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Address, Asset } from '@xchainjs/xchain-util'; | ||
import { ExplorerProvider } from '../providers/explorer-provider'; | ||
@@ -4,0 +4,0 @@ export interface OnlineDataProvider { |
@@ -1,3 +0,2 @@ | ||
import { Address } from '@xchainjs/xchain-client'; | ||
import { Asset, BaseAmount } from '@xchainjs/xchain-util'; | ||
import { Address, Asset, BaseAmount } from '@xchainjs/xchain-util'; | ||
import { Signer, ethers, providers } from 'ethers'; | ||
@@ -4,0 +3,0 @@ export declare const MAX_APPROVAL: ethers.BigNumber; |
{ | ||
"name": "@xchainjs/xchain-evm", | ||
"version": "0.1.0-alpha", | ||
"version": "0.1.0-alpha2", | ||
"description": "Genereic EVM client for XChainJS", | ||
@@ -37,5 +37,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@xchainjs/xchain-client": "^0.12.0", | ||
"@xchainjs/xchain-client": "^0.13.0", | ||
"@xchainjs/xchain-crypto": "^0.2.6", | ||
"@xchainjs/xchain-util": "^0.8.1", | ||
"@xchainjs/xchain-util": "^0.9.0", | ||
"axios": "^0.25.0", | ||
@@ -45,5 +45,5 @@ "ethers": "^5.6.6" | ||
"peerDependencies": { | ||
"@xchainjs/xchain-client": "^0.12.0", | ||
"@xchainjs/xchain-client": "^0.13.0", | ||
"@xchainjs/xchain-crypto": "^0.2.6", | ||
"@xchainjs/xchain-util": "^0.8.1", | ||
"@xchainjs/xchain-util": "^0.9.0", | ||
"axios": "^0.25.0", | ||
@@ -50,0 +50,0 @@ "ethers": "^5.6.6" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
300543
4143