Extend BIP174 PSBT base class
This commit is contained in:
parent
62f1749021
commit
6a5e395ebd
6 changed files with 24 additions and 0 deletions
|
@ -16,6 +16,8 @@ const script = require('./script');
|
|||
exports.script = script;
|
||||
var block_1 = require('./block');
|
||||
exports.Block = block_1.Block;
|
||||
var psbt_1 = require('./psbt');
|
||||
exports.Psbt = psbt_1.Psbt;
|
||||
var script_1 = require('./script');
|
||||
exports.opcodes = script_1.OPS;
|
||||
var transaction_1 = require('./transaction');
|
||||
|
|
9
src/psbt.js
Normal file
9
src/psbt.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
const bip174_1 = require('bip174');
|
||||
class Psbt extends bip174_1.Psbt {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
exports.Psbt = Psbt;
|
|
@ -9,6 +9,7 @@ import * as script from './script';
|
|||
export { ECPair, address, bip32, crypto, networks, payments, script };
|
||||
|
||||
export { Block } from './block';
|
||||
export { Psbt } from './psbt';
|
||||
export { OPS as opcodes } from './script';
|
||||
export { Transaction } from './transaction';
|
||||
export { TransactionBuilder } from './transaction_builder';
|
||||
|
|
7
ts_src/psbt.ts
Normal file
7
ts_src/psbt.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import { Psbt as PsbtBase } from 'bip174';
|
||||
|
||||
export class Psbt extends PsbtBase {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
}
|
1
types/index.d.ts
vendored
1
types/index.d.ts
vendored
|
@ -7,6 +7,7 @@ import * as payments from './payments';
|
|||
import * as script from './script';
|
||||
export { ECPair, address, bip32, crypto, networks, payments, script };
|
||||
export { Block } from './block';
|
||||
export { Psbt } from './psbt';
|
||||
export { OPS as opcodes } from './script';
|
||||
export { Transaction } from './transaction';
|
||||
export { TransactionBuilder } from './transaction_builder';
|
||||
|
|
4
types/psbt.d.ts
vendored
Normal file
4
types/psbt.d.ts
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { Psbt as PsbtBase } from 'bip174';
|
||||
export declare class Psbt extends PsbtBase {
|
||||
constructor();
|
||||
}
|
Loading…
Add table
Reference in a new issue