Skip to content

Commit 9441d18

Browse files
authored
Merge pull request #59 from BitGo/BG-67258-lazy
chore: export lazy
2 parents 17653d8 + 484c378 commit 9441d18

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export { Psbt, PsbtTransaction, PsbtTxInput, PsbtTxOutput, Signer, SignerAsync,
1212
export { OPS as opcodes } from './ops';
1313
export { Transaction } from './transaction';
1414
export { Network } from './networks';
15-
export { Payment, PaymentCreator, PaymentOpts, Stack, StackElement, } from './payments';
15+
export { Payment, PaymentCreator, PaymentOpts, Stack, StackElement, lazy, } from './payments';
1616
export { Input as TxInput, Output as TxOutput } from './transaction';

src/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
Object.defineProperty(exports, '__esModule', { value: true });
3-
exports.Transaction = exports.opcodes = exports.PsbtTransaction = exports.Psbt = exports.Block = exports.taproot = exports.script = exports.payments = exports.networks = exports.crypto = exports.address = exports.ScriptSignature = void 0;
3+
exports.lazy = exports.Transaction = exports.opcodes = exports.PsbtTransaction = exports.Psbt = exports.Block = exports.taproot = exports.script = exports.payments = exports.networks = exports.crypto = exports.address = exports.ScriptSignature = void 0;
44
const address = require('./address');
55
exports.address = address;
66
const crypto = require('./crypto');
@@ -49,3 +49,10 @@ Object.defineProperty(exports, 'Transaction', {
4949
return transaction_1.Transaction;
5050
},
5151
});
52+
var payments_1 = require('./payments');
53+
Object.defineProperty(exports, 'lazy', {
54+
enumerable: true,
55+
get: function() {
56+
return payments_1.lazy;
57+
},
58+
});

src/payments/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { p2tr } from './p2tr';
1111
import { p2tr_ns } from './p2tr_ns';
1212
import { p2wpkh } from './p2wpkh';
1313
import { p2wsh } from './p2wsh';
14+
import * as lazy from './lazy';
1415
export interface Payment {
1516
name?: string;
1617
network?: Network;
@@ -46,4 +47,4 @@ export interface PaymentOpts {
4647
export declare type StackElement = Buffer | number;
4748
export declare type Stack = StackElement[];
4849
export declare type StackFunction = () => Stack;
49-
export { embed, p2ms, p2pk, p2pkh, p2sh, p2tr, p2tr_ns, p2wpkh, p2wsh };
50+
export { embed, p2ms, p2pk, p2pkh, p2sh, p2tr, p2tr_ns, p2wpkh, p2wsh, lazy };

src/payments/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22
Object.defineProperty(exports, '__esModule', { value: true });
3-
exports.p2wsh = exports.p2wpkh = exports.p2tr_ns = exports.p2tr = exports.p2sh = exports.p2pkh = exports.p2pk = exports.p2ms = exports.embed = void 0;
3+
exports.lazy = exports.p2wsh = exports.p2wpkh = exports.p2tr_ns = exports.p2tr = exports.p2sh = exports.p2pkh = exports.p2pk = exports.p2ms = exports.embed = void 0;
44
const embed_1 = require('./embed');
55
Object.defineProperty(exports, 'embed', {
66
enumerable: true,
@@ -64,5 +64,7 @@ Object.defineProperty(exports, 'p2wsh', {
6464
return p2wsh_1.p2wsh;
6565
},
6666
});
67+
const lazy = require('./lazy');
68+
exports.lazy = lazy;
6769
// TODO
6870
// witness commitment

ts_src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ export {
3838
PaymentOpts,
3939
Stack,
4040
StackElement,
41+
lazy,
4142
} from './payments';
4243
export { Input as TxInput, Output as TxOutput } from './transaction';

ts_src/payments/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { p2tr } from './p2tr';
1010
import { p2tr_ns } from './p2tr_ns';
1111
import { p2wpkh } from './p2wpkh';
1212
import { p2wsh } from './p2wsh';
13+
import * as lazy from './lazy';
1314

1415
export interface Payment {
1516
name?: string;
@@ -51,7 +52,7 @@ export type StackElement = Buffer | number;
5152
export type Stack = StackElement[];
5253
export type StackFunction = () => Stack;
5354

54-
export { embed, p2ms, p2pk, p2pkh, p2sh, p2tr, p2tr_ns, p2wpkh, p2wsh };
55+
export { embed, p2ms, p2pk, p2pkh, p2sh, p2tr, p2tr_ns, p2wpkh, p2wsh, lazy };
5556

5657
// TODO
5758
// witness commitment

0 commit comments

Comments
 (0)