@xchainjs/xchain-client
Advanced tools
Comparing version 0.15.0 to 0.15.1
import { Address, Asset, Chain } from '@xchainjs/xchain-util'; | ||
import { AssetInfo, Balance, FeeBounds, FeeRate, Fees, Network, RootDerivationPaths, Tx, TxHash, TxHistoryParams, TxParams, TxsPage, XChainClient, XChainClientParams } from './types'; | ||
import { AssetInfo, Balance, FeeBounds, FeeRate, Fees, Network, PreparedTx, RootDerivationPaths, Tx, TxHash, TxHistoryParams, TxParams, TxsPage, XChainClient, XChainClientParams } from './types'; | ||
export declare abstract class BaseXChainClient implements XChainClient { | ||
@@ -74,2 +74,3 @@ protected chain: Chain; | ||
abstract getAssetInfo(): AssetInfo; | ||
abstract prepareTx(params: TxParams): Promise<PreparedTx>; | ||
} |
@@ -15,2 +15,3 @@ /// <reference types="node" /> | ||
txHex?: string; | ||
scriptPubKey?: string; | ||
}; | ||
@@ -17,0 +18,0 @@ export interface OnlineDataProvider { |
@@ -90,2 +90,5 @@ import { Address, Asset, BaseAmount } from '@xchainjs/xchain-util'; | ||
}; | ||
export type PreparedTx = { | ||
rawUnsignedTx: string; | ||
}; | ||
export interface XChainClient { | ||
@@ -105,4 +108,5 @@ setNetwork(net: Network): void; | ||
transfer(params: TxParams): Promise<TxHash>; | ||
prepareTx(params: TxParams): Promise<PreparedTx>; | ||
broadcastTx(txHex: string): Promise<TxHash>; | ||
purgeClient(): void; | ||
} |
{ | ||
"name": "@xchainjs/xchain-client", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"license": "MIT", | ||
@@ -31,2 +31,2 @@ "main": "lib/index.js", | ||
} | ||
} | ||
} |
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
110971
1194