Socket
Socket
Sign inDemoInstall

@thorchain/asgardex-bitcoin

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thorchain/asgardex-bitcoin - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

6

lib/client.d.ts

@@ -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>;

3

lib/types/client-types.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc