@xchainjs/xchain-client
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -0,1 +1,7 @@ | ||
# v.0.9.0 (2021-05-17) | ||
### Breaking change | ||
- added support for HD wallets | ||
# v.0.8.0 (2021-05-05) | ||
@@ -2,0 +8,0 @@ |
@@ -40,2 +40,3 @@ import { Asset, BaseAmount } from '@xchainjs/xchain-util'; | ||
export declare type TxParams = { | ||
walletIndex?: number; | ||
asset?: Asset; | ||
@@ -55,5 +56,10 @@ amount: BaseAmount; | ||
}; | ||
export declare type RootDerivationPaths = { | ||
mainnet: string; | ||
testnet: string; | ||
}; | ||
export declare type XChainClientParams = { | ||
network?: Network; | ||
phrase?: string; | ||
rootDerivationPaths?: RootDerivationPaths; | ||
}; | ||
@@ -67,5 +73,5 @@ export interface XChainClient { | ||
validateAddress(address: string): boolean; | ||
getAddress(): Address; | ||
setPhrase(phrase: string): Address; | ||
getBalance(address?: Address, assets?: Asset[]): Promise<Balances>; | ||
getAddress(walletIndex: number): Address; | ||
setPhrase(phrase: string, walletIndex: number): Address; | ||
getBalance(address: Address, assets?: Asset[]): Promise<Balances>; | ||
getTransactions(params?: TxHistoryParams): Promise<TxsPage>; | ||
@@ -72,0 +78,0 @@ getTransactionData(txId: string, assetAddress?: Address): Promise<Tx>; |
{ | ||
"name": "@xchainjs/xchain-client", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
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
14905
95