From 87c087e11a4734fa5dbf2349c5e6d25dc8db210e Mon Sep 17 00:00:00 2001 From: scrypt Date: Thu, 21 Sep 2023 11:39:03 +0200 Subject: [PATCH] Update reference. --- docs/reference/README.md | 163 +++++++++++++++------ docs/reference/classes/Constants.md | 12 +- docs/reference/classes/SigHash.md | 38 ++--- docs/reference/classes/Utils.md | 67 ++++++++- docs/reference/classes/VarIntWriter.md | 6 +- docs/reference/enums/ProviderEvent.md | 4 +- docs/reference/interfaces/Outpoint.md | 4 +- docs/reference/interfaces/ScriptContext.md | 18 +-- docs/reference/interfaces/TxInputRef.md | 4 +- 9 files changed, 217 insertions(+), 99 deletions(-) diff --git a/docs/reference/README.md b/docs/reference/README.md index 98cc8d607..52799145e 100644 --- a/docs/reference/README.md +++ b/docs/reference/README.md @@ -171,6 +171,7 @@ scrypt-ts - [filterUTXO](README.md#filterutxo) - [findSig](README.md#findsig) - [findSigs](README.md#findsigs) +- [fromByteString](README.md#frombytestring) - [getDummyP2pkhUTXOs](README.md#getdummyp2pkhutxos) - [getDummySig](README.md#getdummysig) - [getRandomAddress](README.md#getrandomaddress) @@ -225,7 +226,7 @@ let bbb: FixedArray, 2>, 3> = [[[1n], [1n]], [[ #### Defined in -dist/smart-contract/builtins/types.d.ts:62 +dist/smart-contract/builtins/types.d.ts:118 ___ @@ -233,13 +234,15 @@ ___ ### Addr -Ƭ **Addr**: [`PubKeyHash`](README.md#pubkeyhash) +Ƭ **Addr**: `_PubKeyHash` + +A domain specific subtype of `ByteString`, representing an address. #### Defined in -dist/smart-contract/builtins/types.d.ts:29 +dist/smart-contract/builtins/types.d.ts:75 -dist/smart-contract/builtins/types.d.ts:22 +dist/smart-contract/builtins/types.d.ts:37 ___ @@ -271,7 +274,7 @@ a ByteString represents a byte array. #### Defined in -dist/smart-contract/builtins/types.d.ts:33 +dist/smart-contract/builtins/types.d.ts:89 ___ @@ -343,11 +346,13 @@ ___ Ƭ **PubKey**: `_PubKey` +A domain specific subtype of `ByteString`, representing a public key. + #### Defined in -dist/smart-contract/builtins/types.d.ts:25 +dist/smart-contract/builtins/types.d.ts:51 -dist/smart-contract/builtins/types.d.ts:18 +dist/smart-contract/builtins/types.d.ts:21 ___ @@ -355,11 +360,13 @@ ___ Ƭ **PubKeyHash**: `_PubKeyHash` +A domain specific subtype of `ByteString`, representing an address. + #### Defined in -dist/smart-contract/builtins/types.d.ts:28 +dist/smart-contract/builtins/types.d.ts:69 -dist/smart-contract/builtins/types.d.ts:21 +dist/smart-contract/builtins/types.d.ts:33 ___ @@ -397,11 +404,13 @@ ___ Ƭ **Ripemd160**: `_Ripemd160` +A domain specific subtype of `ByteString`, representing a RIPEMD-160 hash. + #### Defined in -dist/smart-contract/builtins/types.d.ts:27 +dist/smart-contract/builtins/types.d.ts:63 -dist/smart-contract/builtins/types.d.ts:20 +dist/smart-contract/builtins/types.d.ts:29 ___ @@ -409,11 +418,13 @@ ___ Ƭ **Sha1**: `_Sha1` +A domain specific subtype of `ByteString`, representing a SHA-1 hash. + #### Defined in -dist/smart-contract/builtins/types.d.ts:30 +dist/smart-contract/builtins/types.d.ts:81 -dist/smart-contract/builtins/types.d.ts:24 +dist/smart-contract/builtins/types.d.ts:45 ___ @@ -421,11 +432,13 @@ ___ Ƭ **Sha256**: `_Sha256` +A domain specific subtype of `ByteString`, representing a SHA-256 hash. + #### Defined in -dist/smart-contract/builtins/types.d.ts:31 +dist/smart-contract/builtins/types.d.ts:87 -dist/smart-contract/builtins/types.d.ts:23 +dist/smart-contract/builtins/types.d.ts:41 ___ @@ -433,11 +446,13 @@ ___ Ƭ **Sig**: `_Sig` +A domain specific subtype of `ByteString`, representing a signature. + #### Defined in -dist/smart-contract/builtins/types.d.ts:26 +dist/smart-contract/builtins/types.d.ts:57 -dist/smart-contract/builtins/types.d.ts:19 +dist/smart-contract/builtins/types.d.ts:25 ___ @@ -533,7 +548,7 @@ The auto keyword specifies that the type of the variable, of basic type, declare #### Defined in -dist/smart-contract/builtins/types.d.ts:46 +dist/smart-contract/builtins/types.d.ts:102 ## Variables @@ -732,7 +747,7 @@ returns true if equal; otherwise returns false #### Defined in -dist/smart-contract/builtins/types.d.ts:68 +dist/smart-contract/builtins/types.d.ts:124 ___ @@ -1001,19 +1016,23 @@ ___ ▸ **Addr**(`b`): [`Addr`](README.md#addr) +Creates an `Addr` instance from a `ByteString`. + #### Parameters -| Name | Type | -| :------ | :------ | -| `b` | [`ByteString`](README.md#bytestring) | +| Name | Type | Description | +| :------ | :------ | :------ | +| `b` | [`ByteString`](README.md#bytestring) | Input ByteString. | #### Returns [`Addr`](README.md#addr) +- A domain specific address representation. + #### Defined in -dist/smart-contract/builtins/types.d.ts:29 +dist/smart-contract/builtins/types.d.ts:75 ___ @@ -1061,19 +1080,23 @@ ___ ▸ **PubKey**(`b`): [`PubKey`](README.md#pubkey) +Creates a `PubKey` instance from a `ByteString`. + #### Parameters -| Name | Type | -| :------ | :------ | -| `b` | [`ByteString`](README.md#bytestring) | +| Name | Type | Description | +| :------ | :------ | :------ | +| `b` | [`ByteString`](README.md#bytestring) | Input ByteString. | #### Returns [`PubKey`](README.md#pubkey) +- A domain specific public key representation. + #### Defined in -dist/smart-contract/builtins/types.d.ts:25 +dist/smart-contract/builtins/types.d.ts:51 ___ @@ -1081,19 +1104,23 @@ ___ ▸ **PubKeyHash**(`b`): [`PubKeyHash`](README.md#pubkeyhash) +Creates a `PubKeyHash` instance from a `ByteString`. + #### Parameters -| Name | Type | -| :------ | :------ | -| `b` | [`ByteString`](README.md#bytestring) | +| Name | Type | Description | +| :------ | :------ | :------ | +| `b` | [`ByteString`](README.md#bytestring) | Input ByteString. | #### Returns [`PubKeyHash`](README.md#pubkeyhash) +- A domain specific address representation. + #### Defined in -dist/smart-contract/builtins/types.d.ts:28 +dist/smart-contract/builtins/types.d.ts:69 ___ @@ -1101,19 +1128,23 @@ ___ ▸ **Ripemd160**(`b`): [`Ripemd160`](README.md#ripemd160) +Creates a `Ripemd160` instance from a `ByteString`. + #### Parameters -| Name | Type | -| :------ | :------ | -| `b` | [`ByteString`](README.md#bytestring) | +| Name | Type | Description | +| :------ | :------ | :------ | +| `b` | [`ByteString`](README.md#bytestring) | Input ByteString. | #### Returns [`Ripemd160`](README.md#ripemd160) +- A domain specific RIPEMD-160 hash representation. + #### Defined in -dist/smart-contract/builtins/types.d.ts:27 +dist/smart-contract/builtins/types.d.ts:63 ___ @@ -1121,19 +1152,23 @@ ___ ▸ **Sha1**(`b`): [`Sha1`](README.md#sha1) +Creates a `Sha1` instance from a `ByteString`. + #### Parameters -| Name | Type | -| :------ | :------ | -| `b` | [`ByteString`](README.md#bytestring) | +| Name | Type | Description | +| :------ | :------ | :------ | +| `b` | [`ByteString`](README.md#bytestring) | Input ByteString. | #### Returns [`Sha1`](README.md#sha1) +- A domain specific SHA-1 hash representation. + #### Defined in -dist/smart-contract/builtins/types.d.ts:30 +dist/smart-contract/builtins/types.d.ts:81 ___ @@ -1141,19 +1176,23 @@ ___ ▸ **Sha256**(`b`): [`Sha256`](README.md#sha256) +Creates a `Sha256` instance from a `ByteString`. + #### Parameters -| Name | Type | -| :------ | :------ | -| `b` | [`ByteString`](README.md#bytestring) | +| Name | Type | Description | +| :------ | :------ | :------ | +| `b` | [`ByteString`](README.md#bytestring) | Input ByteString. | #### Returns [`Sha256`](README.md#sha256) +- A domain specific SHA-256 hash representation. + #### Defined in -dist/smart-contract/builtins/types.d.ts:31 +dist/smart-contract/builtins/types.d.ts:87 ___ @@ -1161,19 +1200,23 @@ ___ ▸ **Sig**(`b`): [`Sig`](README.md#sig) +Creates a `Sig` instance from a `ByteString`. + #### Parameters -| Name | Type | -| :------ | :------ | -| `b` | [`ByteString`](README.md#bytestring) | +| Name | Type | Description | +| :------ | :------ | :------ | +| `b` | [`ByteString`](README.md#bytestring) | Input ByteString. | #### Returns [`Sig`](README.md#sig) +- A domain specific digital signature representation. + #### Defined in -dist/smart-contract/builtins/types.d.ts:26 +dist/smart-contract/builtins/types.d.ts:57 ___ @@ -1415,6 +1458,30 @@ dist/smart-contract/utils/index.d.ts:8 ___ +### fromByteString + +▸ **fromByteString**(`bs`): `string` + +convert ByteString to utf8 string + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `bs` | [`ByteString`](README.md#bytestring) | ByteString | + +#### Returns + +`string` + +utf8 string + +#### Defined in + +dist/smart-contract/utils/index.d.ts:18 + +___ + ### getDummyP2pkhUTXOs ▸ **getDummyP2pkhUTXOs**(`count?`): [`UTXO`](README.md#utxo)[] @@ -1666,7 +1733,7 @@ Otherwise, `literal` should be in the format of utf8 literal, i.e. `hello world` #### Defined in -dist/smart-contract/builtins/types.d.ts:41 +dist/smart-contract/builtins/types.d.ts:97 ___ diff --git a/docs/reference/classes/Constants.md b/docs/reference/classes/Constants.md index 57d99f720..5d2054e7b 100644 --- a/docs/reference/classes/Constants.md +++ b/docs/reference/classes/Constants.md @@ -35,7 +35,7 @@ length of `ByteString` to denote input sequence #### Defined in -dist/smart-contract/builtins/functions.d.ts:1155 +dist/smart-contract/builtins/functions.d.ts:1168 ___ @@ -47,7 +47,7 @@ length of `ByteString` to denote a outpoint #### Defined in -dist/smart-contract/builtins/functions.d.ts:1165 +dist/smart-contract/builtins/functions.d.ts:1178 ___ @@ -59,7 +59,7 @@ length of `ByteString` to denote output value #### Defined in -dist/smart-contract/builtins/functions.d.ts:1157 +dist/smart-contract/builtins/functions.d.ts:1170 ___ @@ -71,7 +71,7 @@ length of `ByteString` to denote a public key hash #### Defined in -dist/smart-contract/builtins/functions.d.ts:1161 +dist/smart-contract/builtins/functions.d.ts:1174 ___ @@ -83,7 +83,7 @@ length of `ByteString` to denote a public key (compressed) #### Defined in -dist/smart-contract/builtins/functions.d.ts:1159 +dist/smart-contract/builtins/functions.d.ts:1172 ___ @@ -95,4 +95,4 @@ length of `ByteString` to denote a tx id #### Defined in -dist/smart-contract/builtins/functions.d.ts:1163 +dist/smart-contract/builtins/functions.d.ts:1176 diff --git a/docs/reference/classes/SigHash.md b/docs/reference/classes/SigHash.md index ea0eb3c3e..5edd17f2d 100644 --- a/docs/reference/classes/SigHash.md +++ b/docs/reference/classes/SigHash.md @@ -51,7 +51,7 @@ and use `SigHash.value(preimage: SigHashPreimage)` to access the value field of #### Defined in -dist/smart-contract/builtins/functions.d.ts:972 +dist/smart-contract/builtins/functions.d.ts:985 ___ @@ -61,7 +61,7 @@ ___ #### Defined in -dist/smart-contract/builtins/functions.d.ts:975 +dist/smart-contract/builtins/functions.d.ts:988 ___ @@ -71,7 +71,7 @@ ___ #### Defined in -dist/smart-contract/builtins/functions.d.ts:976 +dist/smart-contract/builtins/functions.d.ts:989 ___ @@ -81,7 +81,7 @@ ___ #### Defined in -dist/smart-contract/builtins/functions.d.ts:977 +dist/smart-contract/builtins/functions.d.ts:990 ___ @@ -91,7 +91,7 @@ ___ #### Defined in -dist/smart-contract/builtins/functions.d.ts:973 +dist/smart-contract/builtins/functions.d.ts:986 ___ @@ -101,7 +101,7 @@ ___ #### Defined in -dist/smart-contract/builtins/functions.d.ts:974 +dist/smart-contract/builtins/functions.d.ts:987 ## Methods @@ -125,7 +125,7 @@ return hashOutputs `ByteString` in 32-byte hash #### Defined in -dist/smart-contract/builtins/functions.d.ts:1037 +dist/smart-contract/builtins/functions.d.ts:1050 ___ @@ -149,7 +149,7 @@ return hashPrevouts `ByteString` in 32-byte little endian #### Defined in -dist/smart-contract/builtins/functions.d.ts:989 +dist/smart-contract/builtins/functions.d.ts:1002 ___ @@ -173,7 +173,7 @@ return hashSequence `ByteString` in 32-byte little endian #### Defined in -dist/smart-contract/builtins/functions.d.ts:995 +dist/smart-contract/builtins/functions.d.ts:1008 ___ @@ -197,7 +197,7 @@ return nLocktime #### Defined in -dist/smart-contract/builtins/functions.d.ts:1049 +dist/smart-contract/builtins/functions.d.ts:1062 ___ @@ -221,7 +221,7 @@ return nLocktime `ByteString` in 4-byte little endian #### Defined in -dist/smart-contract/builtins/functions.d.ts:1043 +dist/smart-contract/builtins/functions.d.ts:1056 ___ @@ -245,7 +245,7 @@ return nSequence #### Defined in -dist/smart-contract/builtins/functions.d.ts:1031 +dist/smart-contract/builtins/functions.d.ts:1044 ___ @@ -269,7 +269,7 @@ return nSequence `ByteString` in 4-byte little endian #### Defined in -dist/smart-contract/builtins/functions.d.ts:1025 +dist/smart-contract/builtins/functions.d.ts:1038 ___ @@ -293,7 +293,7 @@ return version `ByteString` in 4-byte little endian #### Defined in -dist/smart-contract/builtins/functions.d.ts:983 +dist/smart-contract/builtins/functions.d.ts:996 ___ @@ -317,7 +317,7 @@ return outpoint `ByteString` in 32-byte hash + 4-byte little endian #### Defined in -dist/smart-contract/builtins/functions.d.ts:1001 +dist/smart-contract/builtins/functions.d.ts:1014 ___ @@ -341,7 +341,7 @@ return scriptCode `ByteString` #### Defined in -dist/smart-contract/builtins/functions.d.ts:1007 +dist/smart-contract/builtins/functions.d.ts:1020 ___ @@ -365,7 +365,7 @@ return sighash type #### Defined in -dist/smart-contract/builtins/functions.d.ts:1055 +dist/smart-contract/builtins/functions.d.ts:1068 ___ @@ -389,7 +389,7 @@ return value #### Defined in -dist/smart-contract/builtins/functions.d.ts:1019 +dist/smart-contract/builtins/functions.d.ts:1032 ___ @@ -413,4 +413,4 @@ return value `ByteString` in 8-byte little endian #### Defined in -dist/smart-contract/builtins/functions.d.ts:1013 +dist/smart-contract/builtins/functions.d.ts:1026 diff --git a/docs/reference/classes/Utils.md b/docs/reference/classes/Utils.md index ba18328c3..3d1d9fe4a 100644 --- a/docs/reference/classes/Utils.md +++ b/docs/reference/classes/Utils.md @@ -17,6 +17,8 @@ The Utils library provides a set of commonly used utility functions. ### Methods +- [buildAddressOutput](Utils.md#buildaddressoutput) +- [buildAddressScript](Utils.md#buildaddressscript) - [buildOpreturnScript](Utils.md#buildopreturnscript) - [buildOutput](Utils.md#buildoutput) - [buildPublicKeyHashOutput](Utils.md#buildpublickeyhashoutput) @@ -58,6 +60,55 @@ dist/smart-contract/builtins/functions.d.ts:912 ## Methods +### buildAddressOutput + +▸ `Static` **buildAddressOutput**(`addr`, `amount`): [`ByteString`](../README.md#bytestring) + +constructs a standard payment (P2PKH) output from a given address and satoshi amount + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `addr` | `Ripemd160` | the recipient's address | +| `amount` | `bigint` | the satoshi amount | + +#### Returns + +[`ByteString`](../README.md#bytestring) + +a `ByteString` representing the P2PKH output + +#### Defined in + +dist/smart-contract/builtins/functions.d.ts:970 + +___ + +### buildAddressScript + +▸ `Static` **buildAddressScript**(`addr`): [`ByteString`](../README.md#bytestring) + +constructs a standard payment (P2PKH) script from a given address + +#### Parameters + +| Name | Type | Description | +| :------ | :------ | :------ | +| `addr` | `Ripemd160` | the recipient's address | + +#### Returns + +[`ByteString`](../README.md#bytestring) + +a `ByteString` representing the P2PKH script + +#### Defined in + +dist/smart-contract/builtins/functions.d.ts:963 + +___ + ### buildOpreturnScript ▸ `Static` **buildOpreturnScript**(`data`): [`ByteString`](../README.md#bytestring) @@ -78,7 +129,7 @@ a ByteString contains the data payload #### Defined in -dist/smart-contract/builtins/functions.d.ts:963 +dist/smart-contract/builtins/functions.d.ts:976 ___ @@ -111,20 +162,20 @@ ___ ▸ `Static` **buildPublicKeyHashOutput**(`pubKeyHash`, `amount`): [`ByteString`](../README.md#bytestring) -build P2PKH output from PubKeyHash +constructs a P2PKH output from a given PubKeyHash and satoshi amount #### Parameters | Name | Type | Description | | :------ | :------ | :------ | -| `pubKeyHash` | `Ripemd160` | the address to receive change coin | -| `amount` | `bigint` | satoshi amount | +| `pubKeyHash` | `Ripemd160` | the recipient's public key hash | +| `amount` | `bigint` | the satoshi amount | #### Returns [`ByteString`](../README.md#bytestring) -a P2PKH output +a `ByteString` representing the P2PKH output #### Defined in @@ -136,19 +187,19 @@ ___ ▸ `Static` **buildPublicKeyHashScript**(`pubKeyHash`): [`ByteString`](../README.md#bytestring) -build P2PKH script from PubKeyHash +constructs a P2PKH script from a given PubKeyHash #### Parameters | Name | Type | Description | | :------ | :------ | :------ | -| `pubKeyHash` | `Ripemd160` | recipient's pubKeyHash | +| `pubKeyHash` | `Ripemd160` | the recipient's public key hash | #### Returns [`ByteString`](../README.md#bytestring) -a `ByteString` that represents P2PKH script +a `ByteString` representing the P2PKH script #### Defined in diff --git a/docs/reference/classes/VarIntWriter.md b/docs/reference/classes/VarIntWriter.md index b7d3dff22..0849b654e 100644 --- a/docs/reference/classes/VarIntWriter.md +++ b/docs/reference/classes/VarIntWriter.md @@ -44,7 +44,7 @@ serialized `ByteString` #### Defined in -dist/smart-contract/builtins/functions.d.ts:1111 +dist/smart-contract/builtins/functions.d.ts:1124 ___ @@ -68,7 +68,7 @@ serialized `ByteString` #### Defined in -dist/smart-contract/builtins/functions.d.ts:1105 +dist/smart-contract/builtins/functions.d.ts:1118 ___ @@ -92,4 +92,4 @@ serialized `ByteString` #### Defined in -dist/smart-contract/builtins/functions.d.ts:1117 +dist/smart-contract/builtins/functions.d.ts:1130 diff --git a/docs/reference/enums/ProviderEvent.md b/docs/reference/enums/ProviderEvent.md index 7204d2cc5..9814f366b 100644 --- a/docs/reference/enums/ProviderEvent.md +++ b/docs/reference/enums/ProviderEvent.md @@ -22,7 +22,7 @@ The provider will send a 'Connected' event after the connection is successful. #### Defined in -dist/bsv/abstract-provider.d.ts:23 +dist/bsv/abstract-provider.d.ts:24 ___ @@ -34,4 +34,4 @@ After the network connected to the provider changes, it will issue the 'NetworkC #### Defined in -dist/bsv/abstract-provider.d.ts:25 +dist/bsv/abstract-provider.d.ts:26 diff --git a/docs/reference/interfaces/Outpoint.md b/docs/reference/interfaces/Outpoint.md index 471349ba7..2824be7b4 100644 --- a/docs/reference/interfaces/Outpoint.md +++ b/docs/reference/interfaces/Outpoint.md @@ -21,7 +21,7 @@ index of the specific output #### Defined in -dist/smart-contract/contract.d.ts:34 +dist/smart-contract/contract.d.ts:35 ___ @@ -33,4 +33,4 @@ txid of the transaction holding the output #### Defined in -dist/smart-contract/contract.d.ts:32 +dist/smart-contract/contract.d.ts:33 diff --git a/docs/reference/interfaces/ScriptContext.md b/docs/reference/interfaces/ScriptContext.md index 25a3a7a4a..f9425256e 100644 --- a/docs/reference/interfaces/ScriptContext.md +++ b/docs/reference/interfaces/ScriptContext.md @@ -33,7 +33,7 @@ double-SHA256 hash of the serialization of some/all output amount with its locki #### Defined in -dist/smart-contract/contract.d.ts:60 +dist/smart-contract/contract.d.ts:61 ___ @@ -45,7 +45,7 @@ double-SHA256 hash of the serialization of some/all input outpoints, see [hashPr #### Defined in -dist/smart-contract/contract.d.ts:54 +dist/smart-contract/contract.d.ts:55 ___ @@ -57,7 +57,7 @@ double-SHA256 hash of the serialization of some/all input sequence values, see [ #### Defined in -dist/smart-contract/contract.d.ts:56 +dist/smart-contract/contract.d.ts:57 ___ @@ -69,7 +69,7 @@ locktime of [transaction][https://wiki.bitcoinsv.io/index.php/Bitcoin_Transactio #### Defined in -dist/smart-contract/contract.d.ts:62 +dist/smart-contract/contract.d.ts:63 ___ @@ -81,7 +81,7 @@ sequence number of [transaction input][https://wiki.bitcoinsv.io/index.php/Bitco #### Defined in -dist/smart-contract/contract.d.ts:58 +dist/smart-contract/contract.d.ts:59 ___ @@ -93,7 +93,7 @@ ___ #### Defined in -dist/smart-contract/contract.d.ts:64 +dist/smart-contract/contract.d.ts:65 ___ @@ -113,7 +113,7 @@ the specific UTXO spent by this transaction input #### Defined in -dist/smart-contract/contract.d.ts:45 +dist/smart-contract/contract.d.ts:46 ___ @@ -125,7 +125,7 @@ version number of [transaction][https://wiki.bitcoinsv.io/index.php/Bitcoin_Tran #### Defined in -dist/smart-contract/contract.d.ts:43 +dist/smart-contract/contract.d.ts:44 ## Methods @@ -141,4 +141,4 @@ get the whole serialized sighash preimage #### Defined in -dist/smart-contract/contract.d.ts:66 +dist/smart-contract/contract.d.ts:67 diff --git a/docs/reference/interfaces/TxInputRef.md b/docs/reference/interfaces/TxInputRef.md index 0c402fc4c..e707b9829 100644 --- a/docs/reference/interfaces/TxInputRef.md +++ b/docs/reference/interfaces/TxInputRef.md @@ -21,7 +21,7 @@ an index indicating the position of inputs in this transaction #### Defined in -dist/smart-contract/contract.d.ts:16 +dist/smart-contract/contract.d.ts:17 ___ @@ -33,4 +33,4 @@ transaction object #### Defined in -dist/smart-contract/contract.d.ts:14 +dist/smart-contract/contract.d.ts:15