Skip to content

Commit

Permalink
0.25.3 update
Browse files Browse the repository at this point in the history
  • Loading branch information
jcramer committed Apr 6, 2020
1 parent 8454d9b commit 74baddf
Show file tree
Hide file tree
Showing 7 changed files with 802 additions and 314 deletions.
5 changes: 5 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require:
- 'ts-node/register'
- 'source-map-support/register'
recursive: true
spec: 'test/**/*.test.ts'
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ Table of Contents

# Installation

NOTE: Using SLPJS requires bitbox-sdk and bitcore-lib-cash to also be installed.

#### For node.js
`npm install slpjs`
`npm install slpjs bitbox-sdk bitcore-lib-cash`

#### For browser
```<script src='https://unpkg.com/slpjs'></script>```
Expand Down Expand Up @@ -835,6 +837,10 @@ Running the unit tests require node.js v8.15+.

# Change Log

### 0.25.3
- Typings update for bitcore-cash-lib
- Update mocha version and settings

### 0.25.2
- Update typings for bitcore-cash-lib

Expand Down
4 changes: 2 additions & 2 deletions lib/transactionhelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ export class TransactionHelpers {
// again, this is for bitcore-lib input sig generation

txn.inputs[input_index].output = new Bitcore.Transaction.Output({
satoshis: input_satoshis,
script: Bitcore.Script.fromAddress(Utils.toCashAddress(ecpair.getAddress()))
satoshis: input_satoshis,
script: Bitcore.Script.fromAddress(Utils.toCashAddress(ecpair.getAddress())),
});

// Update input to be non-abstract type so we can get the p2pkh sign method
Expand Down
5 changes: 4 additions & 1 deletion lib/vendors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ declare module "bitcore-lib-cash" {
inspect(): string;
toObject(): this;
toString(): string;
toBuffer(): Buffer;
}
}

Expand Down Expand Up @@ -133,11 +134,13 @@ declare module "bitcore-lib-cash" {
}

export class Script {
static fromAddress(address: Address|string): Script;
constructor(script: Buffer);
fromBuffer(buffer: Buffer): Script;
toBuffer(): Buffer;
toAddress(network: any): Address;
fromAddress(address: Address): Script;
fromString(hex: string): Script;
toString(fmt?: string): string;
fromASM(asm: string): string;
toASM(): string;
fromHex(hex: string): string
Expand Down
Loading

0 comments on commit 74baddf

Please sign in to comment.