File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -97,13 +97,13 @@ class Psbt {
97
97
get inputCount ( ) {
98
98
return this . data . inputs . length ;
99
99
}
100
- get txVersion ( ) {
100
+ get version ( ) {
101
101
return this . __CACHE . __TX . version ;
102
102
}
103
- get txLocktime ( ) {
103
+ get locktime ( ) {
104
104
return this . __CACHE . __TX . locktime ;
105
105
}
106
- get txInputs ( ) {
106
+ get inputs ( ) {
107
107
return this . __CACHE . __TX . ins . map ( input => {
108
108
return {
109
109
hash : bufferutils_1 . cloneBuffer ( input . hash ) ,
@@ -114,7 +114,7 @@ class Psbt {
114
114
} ;
115
115
} ) ;
116
116
}
117
- get txOutputs ( ) {
117
+ get outputs ( ) {
118
118
return this . __CACHE . __TX . outs . map ( output => {
119
119
return {
120
120
script : bufferutils_1 . cloneBuffer ( output . script ) ,
Original file line number Diff line number Diff line change @@ -523,9 +523,9 @@ describe(`Psbt`, () => {
523
523
} ) ;
524
524
525
525
assert . strictEqual ( psbt . inputCount , 1 ) ;
526
- assert . strictEqual ( psbt . txInputs [ 0 ] . sequence , 0xffffffff ) ;
526
+ assert . strictEqual ( psbt . inputs [ 0 ] . sequence , 0xffffffff ) ;
527
527
psbt . setInputSequence ( 0 , 0 ) ;
528
- assert . strictEqual ( psbt . txInputs [ 0 ] . sequence , 0 ) ;
528
+ assert . strictEqual ( psbt . inputs [ 0 ] . sequence , 0 ) ;
529
529
} ) ;
530
530
531
531
it ( 'throws if input index is too high' , ( ) => {
Original file line number Diff line number Diff line change @@ -129,15 +129,15 @@ export class Psbt {
129
129
return this . data . inputs . length ;
130
130
}
131
131
132
- get txVersion ( ) : number {
132
+ get version ( ) : number {
133
133
return this . __CACHE . __TX . version ;
134
134
}
135
135
136
- get txLocktime ( ) : number {
136
+ get locktime ( ) : number {
137
137
return this . __CACHE . __TX . locktime ;
138
138
}
139
139
140
- get txInputs ( ) : Input [ ] {
140
+ get inputs ( ) : Input [ ] {
141
141
return this . __CACHE . __TX . ins . map ( input => {
142
142
return {
143
143
hash : cloneBuffer ( input . hash ) ,
@@ -149,7 +149,7 @@ export class Psbt {
149
149
} ) ;
150
150
}
151
151
152
- get txOutputs ( ) : Output [ ] {
152
+ get outputs ( ) : Output [ ] {
153
153
return this . __CACHE . __TX . outs . map ( output => {
154
154
return {
155
155
script : cloneBuffer ( output . script ) ,
Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ export declare class Psbt {
44
44
private opts ;
45
45
constructor ( opts ?: PsbtOptsOptional , data ?: PsbtBase ) ;
46
46
readonly inputCount : number ;
47
- readonly txVersion : number ;
48
- readonly txLocktime : number ;
49
- readonly txInputs : Input [ ] ;
50
- readonly txOutputs : Output [ ] ;
47
+ readonly version : number ;
48
+ readonly locktime : number ;
49
+ readonly inputs : Input [ ] ;
50
+ readonly outputs : Output [ ] ;
51
51
combine ( ...those : Psbt [ ] ) : this;
52
52
clone ( ) : Psbt ;
53
53
setMaximumFeeRate ( satoshiPerByte : number ) : void ;
You can’t perform that action at this time.
0 commit comments