@xchainjs/xchain-evm-providers
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,4 +0,4 @@ | ||
import { Balance, Fees, OnlineDataProvider, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Balance, EvmOnlineDataProvider, FeeRates, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Address, Asset, Chain } from '@xchainjs/xchain-util'; | ||
export declare class CovalentProvider implements OnlineDataProvider { | ||
export declare class CovalentProvider implements EvmOnlineDataProvider { | ||
private baseUrl; | ||
@@ -17,3 +17,3 @@ private apiKey; | ||
getTransactionData(txHash: string, assetAddress?: Address): Promise<Tx>; | ||
getFees(): Promise<Fees>; | ||
getFeeRates(): Promise<FeeRates>; | ||
} |
import { Provider } from '@ethersproject/abstract-provider'; | ||
import { Balance, OnlineDataProvider, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Balance, EvmOnlineDataProvider, FeeRates, Tx, TxHistoryParams, TxsPage } from '@xchainjs/xchain-client'; | ||
import { Address, Asset, Chain } from '@xchainjs/xchain-util'; | ||
export declare class EtherscanProvider implements OnlineDataProvider { | ||
export declare class EtherscanProvider implements EvmOnlineDataProvider { | ||
private provider; | ||
@@ -18,2 +18,3 @@ private baseUrl; | ||
getTransactionData(txHash: string, assetAddress?: Address): Promise<Tx>; | ||
getFeeRates(): Promise<FeeRates>; | ||
} |
{ | ||
"name": "@xchainjs/xchain-evm-providers", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"license": "MIT", | ||
@@ -30,3 +30,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@xchainjs/xchain-client": "^0.14.2", | ||
"@xchainjs/xchain-client": "^0.15.2", | ||
"@xchainjs/xchain-crypto": "^0.3.0", | ||
@@ -37,3 +37,3 @@ "@xchainjs/xchain-util": "^0.13.1", | ||
"peerDependencies": { | ||
"@xchainjs/xchain-client": "^0.14.2", | ||
"@xchainjs/xchain-client": "^0.15.2", | ||
"@xchainjs/xchain-crypto": "^0.3.0", | ||
@@ -46,2 +46,2 @@ "@xchainjs/xchain-util": "^0.13.1", | ||
} | ||
} | ||
} |
# XChainJS API UTXO providers Interface | ||
A specification for a generalised interface for api providers, to be used by XChainJS implementations. The providers should not have any functionality to generate a key, instead, the `asgardex-crypto` library should be used to ensure cross-chain compatible keystores are handled. The providers is only ever passed a master BIP39 phrase, from which a temporary key and address is decoded. | ||
A specification for a generalised interface for api providers, to be used by XChainJS implementations. The providers should not have any functionality to generate a key, instead, the `xchain-crypto` library should be used to ensure cross-chain compatible keystores are handled. The providers is only ever passed a master BIP39 phrase, from which a temporary key and address is decoded. | ||
@@ -5,0 +5,0 @@ ## Documentation |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
647387
18458