@thorchain/asgardex-bitcoin
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -29,4 +29,2 @@ import * as Bitcoin from 'bitcoinjs-lib'; | ||
getTransactions(address: string): Promise<Txs>; | ||
getBlockTime(): Promise<number>; | ||
getTxWeight(addressTo: string, memo?: string): Promise<number>; | ||
calcFees(addressTo: string, memo?: string): Promise<object>; | ||
@@ -60,5 +58,3 @@ vaultTx(addressVault: string, valueOut: number, memo: string, feeRate: number): Promise<string>; | ||
getTransactions: (address: string) => Promise<Txs>; | ||
getBlockTime: () => Promise<number>; | ||
getTxWeight: (addressTo: string, memo?: string | undefined) => Promise<number>; | ||
calcFees: (addressTo: string, memo?: string | undefined) => Promise<FeeOptions>; | ||
calcFees: (memo?: string | undefined) => Promise<FeeOptions>; | ||
vaultTx: (addressVault: string, valueOut: number, memo: string, feeRate: number) => Promise<string>; | ||
@@ -65,0 +61,0 @@ normalTx: (addressTo: string, valueOut: number, feeRate: number) => Promise<string>; |
export interface FeeOption { | ||
feeRate: number; | ||
estimatedFee: number; | ||
estimatedTxTime: number; | ||
feeTotal: number; | ||
} | ||
@@ -6,0 +5,0 @@ export interface FeeOptions { |
@@ -15,2 +15,3 @@ /// <reference types="node" /> | ||
} | ||
export declare const compileMemo: (memo: string) => Buffer; | ||
export declare function getVaultFee(inputs: UTXO[], data: Buffer, feeRate: number): number; | ||
@@ -17,0 +18,0 @@ export declare function getNormalFee(inputs: UTXO[], feeRate: number): number; |
{ | ||
"name": "@thorchain/asgardex-bitcoin", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Custom Bitcoin client and utilities used by ASGARDEX clients", | ||
@@ -39,3 +39,2 @@ "keywords": [ | ||
"bitcoinjs-lib": "^5.1.10", | ||
"moment": "^2.27.0", | ||
"wif": "^2.0.6" | ||
@@ -42,0 +41,0 @@ }, |
@@ -20,3 +20,2 @@ # `@thorchain/asgardex-bitcoin` | ||
getTransactions(address: string): Promise<Txs> | ||
getBlockTime(): Promise<number> | ||
calcFees(memo?: string): Promise<object> | ||
@@ -154,10 +153,2 @@ vaultTx(addressVault: string, valueOut: number, memo: string, feeRate: number): Promise<string> | ||
### .getBlockTime() | ||
_Async_ | ||
Get the average block publish time in seconds | ||
**Return**: `number` in seconds | ||
### .calcFees(`memo`) | ||
@@ -167,3 +158,3 @@ | ||
Calculates the fee rate, the fee total estimate, and estimated confirmation time for getting a transaction into the next 10 blocks. Add a `memo` for a vault TX | ||
Calculates the fee rate and the fee total estimate for fast, regular, and slow transactions. Add a `memo` for a vault TX | ||
@@ -170,0 +161,0 @@ **memo**: `string` _optional_ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
4
4251408
70380
186
- Removedmoment@^2.27.0
- Removedmoment@2.30.1(transitive)