diff --git a/.gitignore b/.gitignore index 4ae8078..ac21621 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ node_modules *.tgz package-lock.* .nyc_output -.vscode \ No newline at end of file +.vscode +*.log diff --git a/.travis.yml b/.travis.yml index f5e7661..f9e7d3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - 9 + - 10 install: - cd ../../ - git clone --branch=$TRAVIS_BRANCH https://github.com/iota-pico/core.git iota-pico/core diff --git a/coverage/lcov-report/index.html b/coverage/lcov-report/index.html index 12bf908..75d330b 100644 --- a/coverage/lcov-report/index.html +++ b/coverage/lcov-report/index.html @@ -171,7 +171,7 @@

diff --git a/coverage/lcov-report/src/error/businessError.ts.html b/coverage/lcov-report/src/error/businessError.ts.html index c62725a..c371040 100644 --- a/coverage/lcov-report/src/error/businessError.ts.html +++ b/coverage/lcov-report/src/error/businessError.ts.html @@ -103,7 +103,7 @@

diff --git a/coverage/lcov-report/src/error/index.html b/coverage/lcov-report/src/error/index.html index 51abab7..79a65e0 100644 --- a/coverage/lcov-report/src/error/index.html +++ b/coverage/lcov-report/src/error/index.html @@ -80,7 +80,7 @@

diff --git a/coverage/lcov-report/src/helpers/addressHelper.ts.html b/coverage/lcov-report/src/helpers/addressHelper.ts.html index ab5cae2..a917e17 100644 --- a/coverage/lcov-report/src/helpers/addressHelper.ts.html +++ b/coverage/lcov-report/src/helpers/addressHelper.ts.html @@ -133,7 +133,7 @@

diff --git a/coverage/lcov-report/src/helpers/bundleHelper.ts.html b/coverage/lcov-report/src/helpers/bundleHelper.ts.html index 18b21f2..9c8e9be 100644 --- a/coverage/lcov-report/src/helpers/bundleHelper.ts.html +++ b/coverage/lcov-report/src/helpers/bundleHelper.ts.html @@ -1210,7 +1210,7 @@

diff --git a/coverage/lcov-report/src/helpers/index.html b/coverage/lcov-report/src/helpers/index.html index 9a59c29..556bcaf 100644 --- a/coverage/lcov-report/src/helpers/index.html +++ b/coverage/lcov-report/src/helpers/index.html @@ -93,7 +93,7 @@

diff --git a/coverage/lcov-report/src/index.html b/coverage/lcov-report/src/index.html index dfa5966..534bde1 100644 --- a/coverage/lcov-report/src/index.html +++ b/coverage/lcov-report/src/index.html @@ -80,7 +80,7 @@

diff --git a/coverage/lcov-report/src/index.ts.html b/coverage/lcov-report/src/index.ts.html index 04e92a4..d60d7ea 100644 --- a/coverage/lcov-report/src/index.ts.html +++ b/coverage/lcov-report/src/index.ts.html @@ -94,7 +94,7 @@

diff --git a/coverage/lcov-report/src/interfaces/ITransactionClient.ts.html b/coverage/lcov-report/src/interfaces/ITransactionClient.ts.html index 2c24be3..cfa3f7a 100644 --- a/coverage/lcov-report/src/interfaces/ITransactionClient.ts.html +++ b/coverage/lcov-report/src/interfaces/ITransactionClient.ts.html @@ -760,7 +760,7 @@

diff --git a/coverage/lcov-report/src/interfaces/index.html b/coverage/lcov-report/src/interfaces/index.html index 531682b..b5252f9 100644 --- a/coverage/lcov-report/src/interfaces/index.html +++ b/coverage/lcov-report/src/interfaces/index.html @@ -80,7 +80,7 @@

diff --git a/coverage/lcov-report/src/multiSig/index.html b/coverage/lcov-report/src/multiSig/index.html index bd13337..f702450 100644 --- a/coverage/lcov-report/src/multiSig/index.html +++ b/coverage/lcov-report/src/multiSig/index.html @@ -93,7 +93,7 @@

diff --git a/coverage/lcov-report/src/multiSig/multiSigAddress.ts.html b/coverage/lcov-report/src/multiSig/multiSigAddress.ts.html index 407556f..edacf90 100644 --- a/coverage/lcov-report/src/multiSig/multiSigAddress.ts.html +++ b/coverage/lcov-report/src/multiSig/multiSigAddress.ts.html @@ -229,7 +229,7 @@

diff --git a/coverage/lcov-report/src/multiSig/multiSigClient.ts.html b/coverage/lcov-report/src/multiSig/multiSigClient.ts.html index 79f88c3..4eae4c6 100644 --- a/coverage/lcov-report/src/multiSig/multiSigClient.ts.html +++ b/coverage/lcov-report/src/multiSig/multiSigClient.ts.html @@ -751,7 +751,7 @@

diff --git a/coverage/lcov-report/src/sign/hmacCurl.ts.html b/coverage/lcov-report/src/sign/hmacCurl.ts.html index 98f5b77..d71b22f 100644 --- a/coverage/lcov-report/src/sign/hmacCurl.ts.html +++ b/coverage/lcov-report/src/sign/hmacCurl.ts.html @@ -196,7 +196,7 @@

diff --git a/coverage/lcov-report/src/sign/index.html b/coverage/lcov-report/src/sign/index.html index 7119eb3..85211ef 100644 --- a/coverage/lcov-report/src/sign/index.html +++ b/coverage/lcov-report/src/sign/index.html @@ -80,7 +80,7 @@

diff --git a/coverage/lcov-report/src/transactions/index.html b/coverage/lcov-report/src/transactions/index.html index 33e4708..9fff1d6 100644 --- a/coverage/lcov-report/src/transactions/index.html +++ b/coverage/lcov-report/src/transactions/index.html @@ -93,7 +93,7 @@

diff --git a/coverage/lcov-report/src/transactions/proofOfWorkApi.ts.html b/coverage/lcov-report/src/transactions/proofOfWorkApi.ts.html index 4e3c4cd..869a88c 100644 --- a/coverage/lcov-report/src/transactions/proofOfWorkApi.ts.html +++ b/coverage/lcov-report/src/transactions/proofOfWorkApi.ts.html @@ -280,7 +280,7 @@

diff --git a/coverage/lcov-report/src/transactions/transactionClient.ts.html b/coverage/lcov-report/src/transactions/transactionClient.ts.html index 18f4e33..edb0b68 100644 --- a/coverage/lcov-report/src/transactions/transactionClient.ts.html +++ b/coverage/lcov-report/src/transactions/transactionClient.ts.html @@ -3394,7 +3394,7 @@

diff --git a/coverage/lcov-report/src/types/accountData.ts.html b/coverage/lcov-report/src/types/accountData.ts.html index 8037918..d564f6f 100644 --- a/coverage/lcov-report/src/types/accountData.ts.html +++ b/coverage/lcov-report/src/types/accountData.ts.html @@ -94,7 +94,7 @@

diff --git a/coverage/lcov-report/src/types/index.html b/coverage/lcov-report/src/types/index.html index 3bec0ea..1d75b99 100644 --- a/coverage/lcov-report/src/types/index.html +++ b/coverage/lcov-report/src/types/index.html @@ -106,7 +106,7 @@

diff --git a/coverage/lcov-report/src/types/promoteOptions.ts.html b/coverage/lcov-report/src/types/promoteOptions.ts.html index 7d82e5f..46a43ae 100644 --- a/coverage/lcov-report/src/types/promoteOptions.ts.html +++ b/coverage/lcov-report/src/types/promoteOptions.ts.html @@ -91,7 +91,7 @@

diff --git a/coverage/lcov-report/src/types/transferOptions.ts.html b/coverage/lcov-report/src/types/transferOptions.ts.html index f58466e..c190747 100644 --- a/coverage/lcov-report/src/types/transferOptions.ts.html +++ b/coverage/lcov-report/src/types/transferOptions.ts.html @@ -130,7 +130,7 @@

diff --git a/docs/README.md b/docs/README.md index ddcbfa8..d330642 100644 --- a/docs/README.md +++ b/docs/README.md @@ -34,7 +34,7 @@ **ΤAccountData**: *`object`* -*Defined in [types/accountData.ts:8](https://github.com/iota-pico/business/blob/d578214/src/types/accountData.ts#L8)* +*Defined in [types/accountData.ts:8](https://github.com/iota-pico/business/tree/master/src/types/accountData.ts#L8* Account data information returned from getAccountData. @@ -57,7 +57,7 @@ ___ **ΤPromoteOptions**: *`object`* -*Defined in [types/promoteOptions.ts:4](https://github.com/iota-pico/business/blob/d578214/src/types/promoteOptions.ts#L4)* +*Defined in [types/promoteOptions.ts:4](https://github.com/iota-pico/business/tree/master/src/types/promoteOptions.ts#L4* Options used during promote process in promoteTransaction. @@ -78,7 +78,7 @@ ___ **ΤTransferOptions**: *`object`* -*Defined in [types/transferOptions.ts:9](https://github.com/iota-pico/business/blob/d578214/src/types/transferOptions.ts#L9)* +*Defined in [types/transferOptions.ts:9](https://github.com/iota-pico/business/tree/master/src/types/transferOptions.ts#L9* Options used during prepare transfer process prepareTransfers and sendTransfer. diff --git a/docs/classes/addresshelper.md b/docs/classes/addresshelper.md index 42af70f..120dca7 100644 --- a/docs/classes/addresshelper.md +++ b/docs/classes/addresshelper.md @@ -25,7 +25,7 @@ Helper class for address signing. Original [https://github.com/iotaledger/iota.l ▸ **createChecksum**(trits: *`Int8Array`*, checksumLength: *`number`*): `string` -*Defined in [helpers/addressHelper.ts:16](https://github.com/iota-pico/business/blob/d578214/src/helpers/addressHelper.ts#L16)* +*Defined in [helpers/addressHelper.ts:16](https://github.com/iota-pico/business/tree/master/src/helpers/addressHelper.ts#L16* Create a checksum for the trits. diff --git a/docs/classes/bundlehelper.md b/docs/classes/bundlehelper.md index 14fe315..d480459 100644 --- a/docs/classes/bundlehelper.md +++ b/docs/classes/bundlehelper.md @@ -33,7 +33,7 @@ Helper class for signing bundles. Converted [https://github.com/iotaledger/iota. **● NUMBER_OF_FRAGMENT_CHUNKS**: *`number`* = 27 -*Defined in [helpers/bundleHelper.ts:26](https://github.com/iota-pico/business/blob/d578214/src/helpers/bundleHelper.ts#L26)* +*Defined in [helpers/bundleHelper.ts:26](https://github.com/iota-pico/business/tree/master/src/helpers/bundleHelper.ts#L26* ___ @@ -45,7 +45,7 @@ ___ ▸ **finalizeBundle**(bundle: *`Bundle`*): `void` -*Defined in [helpers/bundleHelper.ts:341](https://github.com/iota-pico/business/blob/d578214/src/helpers/bundleHelper.ts#L341)* +*Defined in [helpers/bundleHelper.ts:341](https://github.com/iota-pico/business/tree/master/src/helpers/bundleHelper.ts#L341* Finalize a bundle. @@ -64,7 +64,7 @@ ___ ▸ **isValid**(bundle: *`Bundle`*): `boolean` -*Defined in [helpers/bundleHelper.ts:33](https://github.com/iota-pico/business/blob/d578214/src/helpers/bundleHelper.ts#L33)* +*Defined in [helpers/bundleHelper.ts:33](https://github.com/iota-pico/business/tree/master/src/helpers/bundleHelper.ts#L33* Is the bundle valid. @@ -84,7 +84,7 @@ ___ ▸ **prepareBundle**(timeService: *`ITimeService`*, transfers: *`Transfer`[]*): `object` -*Defined in [helpers/bundleHelper.ts:166](https://github.com/iota-pico/business/blob/d578214/src/helpers/bundleHelper.ts#L166)* +*Defined in [helpers/bundleHelper.ts:166](https://github.com/iota-pico/business/tree/master/src/helpers/bundleHelper.ts#L166* Prepare a bundle. @@ -105,7 +105,7 @@ ___ ▸ **signInputs**(seed: *`Hash`*, bundle: *`Bundle`*, transferOptions: *[TransferOptions](../#transferoptions)*, signatureMessageFragments: *`SignatureMessageFragment`[]*, inputs: *`Input`[]*, addedHMAC: *`boolean`*): `void` -*Defined in [helpers/bundleHelper.ts:238](https://github.com/iota-pico/business/blob/d578214/src/helpers/bundleHelper.ts#L238)* +*Defined in [helpers/bundleHelper.ts:238](https://github.com/iota-pico/business/tree/master/src/helpers/bundleHelper.ts#L238* Sign the input of the bundle. @@ -129,7 +129,7 @@ ___ ▸ **signTransactions**(bundle: *`Bundle`*, index: *`number`*, firstUnsignedIndex: *`number`*, keyTrits: *`Int8Array`*, addressTrytes: *`string`*, security: *`AddressSecurity`*): `void` -*Defined in [helpers/bundleHelper.ts:289](https://github.com/iota-pico/business/blob/d578214/src/helpers/bundleHelper.ts#L289)* +*Defined in [helpers/bundleHelper.ts:289](https://github.com/iota-pico/business/tree/master/src/helpers/bundleHelper.ts#L289* Sign the trsnactions @@ -153,7 +153,7 @@ ___ ▸ **validateSignatures**(signedBundle: *`Bundle`*, inputAddress: *`Address`*): `boolean` -*Defined in [helpers/bundleHelper.ts:129](https://github.com/iota-pico/business/blob/d578214/src/helpers/bundleHelper.ts#L129)* +*Defined in [helpers/bundleHelper.ts:129](https://github.com/iota-pico/business/tree/master/src/helpers/bundleHelper.ts#L129* Validate signatures for each of the co-signers in the multi-signature to independently verify that a generated transaction with the corresponding signatures of the co-signers is valid. diff --git a/docs/classes/businesserror.md b/docs/classes/businesserror.md index bdd30eb..3be8e47 100644 --- a/docs/classes/businesserror.md +++ b/docs/classes/businesserror.md @@ -42,7 +42,7 @@ A business implementation of an error. *Overrides CoreError.__constructor* -*Defined in [error/businessError.ts:6](https://github.com/iota-pico/business/blob/d578214/src/error/businessError.ts#L6)* +*Defined in [error/businessError.ts:6](https://github.com/iota-pico/business/tree/master/src/error/businessError.ts#L6* Create an instance of BusinessError. diff --git a/docs/classes/hmaccurl.md b/docs/classes/hmaccurl.md index b7765f4..f4582d8 100644 --- a/docs/classes/hmaccurl.md +++ b/docs/classes/hmaccurl.md @@ -28,7 +28,7 @@ Hashed Message Authentication Code using Curl. ⊕ **new HmacCurl**(key: *`Trytes`*): [HmacCurl](hmaccurl.md) -*Defined in [sign/hmacCurl.ts:14](https://github.com/iota-pico/business/blob/d578214/src/sign/hmacCurl.ts#L14)* +*Defined in [sign/hmacCurl.ts:14](https://github.com/iota-pico/business/tree/master/src/sign/hmacCurl.ts#L14* Create a new instance of the HmacCurl. @@ -50,7 +50,7 @@ ___ ▸ **addHMAC**(bundle: *`Bundle`*): `void` -*Defined in [sign/hmacCurl.ts:28](https://github.com/iota-pico/business/blob/d578214/src/sign/hmacCurl.ts#L28)* +*Defined in [sign/hmacCurl.ts:28](https://github.com/iota-pico/business/tree/master/src/sign/hmacCurl.ts#L28* Add bundle to the HMAC. diff --git a/docs/classes/multisigaddress.md b/docs/classes/multisigaddress.md index 5be7daa..aa679f5 100644 --- a/docs/classes/multisigaddress.md +++ b/docs/classes/multisigaddress.md @@ -29,7 +29,7 @@ Address using multiple signatures. ⊕ **new MultiSigAddress**(): [MultiSigAddress](multisigaddress.md) -*Defined in [multiSig/multiSigAddress.ts:18](https://github.com/iota-pico/business/blob/d578214/src/multiSig/multiSigAddress.ts#L18)* +*Defined in [multiSig/multiSigAddress.ts:18](https://github.com/iota-pico/business/tree/master/src/multiSig/multiSigAddress.ts#L18* Create a new instance of the MultiSigAddress. @@ -45,7 +45,7 @@ ___ ▸ **absorb**(digests: *`Trytes`[]*): `void` -*Defined in [multiSig/multiSigAddress.ts:33](https://github.com/iota-pico/business/blob/d578214/src/multiSig/multiSigAddress.ts#L33)* +*Defined in [multiSig/multiSigAddress.ts:33](https://github.com/iota-pico/business/tree/master/src/multiSig/multiSigAddress.ts#L33* Absorb key digests. @@ -64,7 +64,7 @@ ___ ▸ **finalize**(digests?: *`Trytes`[]*): `Address` -*Defined in [multiSig/multiSigAddress.ts:49](https://github.com/iota-pico/business/blob/d578214/src/multiSig/multiSigAddress.ts#L49)* +*Defined in [multiSig/multiSigAddress.ts:49](https://github.com/iota-pico/business/tree/master/src/multiSig/multiSigAddress.ts#L49* Finalizes and returns the multisig address in trytes. diff --git a/docs/classes/multisigclient.md b/docs/classes/multisigclient.md index 70ee89f..d8042b7 100644 --- a/docs/classes/multisigclient.md +++ b/docs/classes/multisigclient.md @@ -32,7 +32,7 @@ Multiple signatures. Converted [https://github.com/iotaledger/iota.lib.js/blob/m ⊕ **new MultiSigClient**(apiClient: *`IApiClient`*, timeService?: *`ITimeService`*): [MultiSigClient](multisigclient.md) -*Defined in [multiSig/multiSigClient.ts:31](https://github.com/iota-pico/business/blob/d578214/src/multiSig/multiSigClient.ts#L31)* +*Defined in [multiSig/multiSigClient.ts:31](https://github.com/iota-pico/business/tree/master/src/multiSig/multiSigClient.ts#L31* Create a new instance of the MultiSigClient. @@ -55,7 +55,7 @@ ___ ▸ **prepareTransfer**(address: *`Address`*, securitySum: *`number`*, balance: *`number`*, transfers: *`Transfer`[]*, remainderAddress?: *`Address`*): `Promise`<`Bundle`> -*Defined in [multiSig/multiSigClient.ts:164](https://github.com/iota-pico/business/blob/d578214/src/multiSig/multiSigClient.ts#L164)* +*Defined in [multiSig/multiSigClient.ts:164](https://github.com/iota-pico/business/tree/master/src/multiSig/multiSigClient.ts#L164* Initiates the creation of a new transfer by generating an empty bundle with the correct number of bundle entries to be later used for the signing process. @@ -79,7 +79,7 @@ ___ ▸ **addSignature**(bundle: *`Bundle`*, address: *`Address`*, key: *`Trytes`*): `void` -*Defined in [multiSig/multiSigClient.ts:111](https://github.com/iota-pico/business/blob/d578214/src/multiSig/multiSigClient.ts#L111)* +*Defined in [multiSig/multiSigClient.ts:111](https://github.com/iota-pico/business/tree/master/src/multiSig/multiSigClient.ts#L111* Adds the cosigner signatures to the corresponding bundle transactions. @@ -100,7 +100,7 @@ ___ ▸ **getDigest**(seed: *`Hash`*, index: *`number`*, security: *`AddressSecurity`*): `Trytes` -*Defined in [multiSig/multiSigClient.ts:71](https://github.com/iota-pico/business/blob/d578214/src/multiSig/multiSigClient.ts#L71)* +*Defined in [multiSig/multiSigClient.ts:71](https://github.com/iota-pico/business/tree/master/src/multiSig/multiSigClient.ts#L71* Get the digest value of a seed. @@ -122,7 +122,7 @@ ___ ▸ **getKey**(seed: *`Hash`*, index: *`number`*, security: *`AddressSecurity`*): `Trytes` -*Defined in [multiSig/multiSigClient.ts:50](https://github.com/iota-pico/business/blob/d578214/src/multiSig/multiSigClient.ts#L50)* +*Defined in [multiSig/multiSigClient.ts:50](https://github.com/iota-pico/business/tree/master/src/multiSig/multiSigClient.ts#L50* Get the key value of a seed. @@ -144,7 +144,7 @@ ___ ▸ **validateAddress**(address: *`Address`*, digests: *`Trytes`[]*): `boolean` -*Defined in [multiSig/multiSigClient.ts:93](https://github.com/iota-pico/business/blob/d578214/src/multiSig/multiSigClient.ts#L93)* +*Defined in [multiSig/multiSigClient.ts:93](https://github.com/iota-pico/business/tree/master/src/multiSig/multiSigClient.ts#L93* Validate address. diff --git a/docs/classes/proofofworkapi.md b/docs/classes/proofofworkapi.md index 0057a61..d531021 100644 --- a/docs/classes/proofofworkapi.md +++ b/docs/classes/proofofworkapi.md @@ -33,7 +33,7 @@ ProofOfWork implementation using API. ⊕ **new ProofOfWorkApi**(apiClient: *`IApiClient`*): [ProofOfWorkApi](proofofworkapi.md) -*Defined in [transactions/proofOfWorkApi.ts:17](https://github.com/iota-pico/business/blob/d578214/src/transactions/proofOfWorkApi.ts#L17)* +*Defined in [transactions/proofOfWorkApi.ts:17](https://github.com/iota-pico/business/tree/master/src/transactions/proofOfWorkApi.ts#L17* Create an instance of ProofOfWork. @@ -55,7 +55,7 @@ ___ ▸ **initialize**(): `Promise`<`void`> -*Defined in [transactions/proofOfWorkApi.ts:35](https://github.com/iota-pico/business/blob/d578214/src/transactions/proofOfWorkApi.ts#L35)* +*Defined in [transactions/proofOfWorkApi.ts:35](https://github.com/iota-pico/business/tree/master/src/transactions/proofOfWorkApi.ts#L35* Allow the proof of work to perform any initialization. Will throw an exception if the implementation is not supported. @@ -69,7 +69,7 @@ ___ ▸ **pow**(trunkTransaction: *`Hash`*, branchTransaction: *`Hash`*, trytes: *`Trytes`[]*, minWeightMagnitude: *`number`*): `Promise`<`Trytes`[]> -*Defined in [transactions/proofOfWorkApi.ts:47](https://github.com/iota-pico/business/blob/d578214/src/transactions/proofOfWorkApi.ts#L47)* +*Defined in [transactions/proofOfWorkApi.ts:47](https://github.com/iota-pico/business/tree/master/src/transactions/proofOfWorkApi.ts#L47* Perform a proof of work on the data. diff --git a/docs/classes/transactionclient.md b/docs/classes/transactionclient.md index e4e43fc..427d86d 100644 --- a/docs/classes/transactionclient.md +++ b/docs/classes/transactionclient.md @@ -53,7 +53,7 @@ Default implementation of the ITransactionClient. ⊕ **new TransactionClient**(apiClient: *`IApiClient`*, proofOfWork?: *`IProofOfWork`*, timeService?: *`ITimeService`*, backgroundTaskService?: *`IBackgroundTaskService`*, logger?: *`ILogger`*): [TransactionClient](transactionclient.md) -*Defined in [transactions/transactionClient.ts:66](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L66)* +*Defined in [transactions/transactionClient.ts:66](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L66* Create a new instance of the TransactionClient. @@ -81,7 +81,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[attachToTangle](../interfaces/itransactionclient.md#attachtotangle)* -*Defined in [transactions/transactionClient.ts:531](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L531)* +*Defined in [transactions/transactionClient.ts:531](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L531* Attach the transactions to the tangle by doing proof of work. @@ -106,7 +106,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[findTransactionObjects](../interfaces/itransactionclient.md#findtransactionobjects)* -*Defined in [transactions/transactionClient.ts:900](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L900)* +*Defined in [transactions/transactionClient.ts:900](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L900* Get transaction objects by fist performing a findTransactions call. @@ -131,7 +131,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[findTransactions](../interfaces/itransactionclient.md#findtransactions)* -*Defined in [transactions/transactionClient.ts:118](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L118)* +*Defined in [transactions/transactionClient.ts:118](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L118* Find the transactions which match the specified input and return. All input values are lists, for which a list of return values (transaction hashes), in the same order, is returned for all individual elements. Using multiple of these input fields returns the intersection of the values. @@ -156,7 +156,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getAccountData](../interfaces/itransactionclient.md#getaccountdata)* -*Defined in [transactions/transactionClient.ts:951](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L951)* +*Defined in [transactions/transactionClient.ts:951](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L951* Similar to getTransfers, just that it returns additional account data. @@ -181,7 +181,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getAddressesByIndex](../interfaces/itransactionclient.md#getaddressesbyindex)* -*Defined in [transactions/transactionClient.ts:277](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L277)* +*Defined in [transactions/transactionClient.ts:277](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L277* Generates new addresses index-based. @@ -207,7 +207,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getAddressesToUnused](../interfaces/itransactionclient.md#getaddressestounused)* -*Defined in [transactions/transactionClient.ts:315](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L315)* +*Defined in [transactions/transactionClient.ts:315](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L315* Generates new address which havent been used using apis. @@ -232,7 +232,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getBundle](../interfaces/itransactionclient.md#getbundle)* -*Defined in [transactions/transactionClient.ts:767](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L767)* +*Defined in [transactions/transactionClient.ts:767](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L767* Gets the associated bundle transactions of a single transaction. Does validation of signatures, total sum as well as bundle order. @@ -254,7 +254,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getInputs](../interfaces/itransactionclient.md#getinputs)* -*Defined in [transactions/transactionClient.ts:370](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L370)* +*Defined in [transactions/transactionClient.ts:370](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L370* Get the input data for a range of addresses. @@ -280,7 +280,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getLatestInclusion](../interfaces/itransactionclient.md#getlatestinclusion)* -*Defined in [transactions/transactionClient.ts:195](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L195)* +*Defined in [transactions/transactionClient.ts:195](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L195* Get the inclusion states of a list of transaction hashes. @@ -302,7 +302,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getNewAddress](../interfaces/itransactionclient.md#getnewaddress)* -*Defined in [transactions/transactionClient.ts:229](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L229)* +*Defined in [transactions/transactionClient.ts:229](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L229* Generates addresses with index-based or using apis. @@ -328,7 +328,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getTransactionsInProgress](../interfaces/itransactionclient.md#gettransactionsinprogress)* -*Defined in [transactions/transactionClient.ts:95](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L95)* +*Defined in [transactions/transactionClient.ts:95](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L95* Returns the list of transaction in progress. @@ -344,7 +344,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getTransactionsObjects](../interfaces/itransactionclient.md#gettransactionsobjects)* -*Defined in [transactions/transactionClient.ts:169](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L169)* +*Defined in [transactions/transactionClient.ts:169](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L169* Get the transaction details of specific transactions. @@ -366,7 +366,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[getTransfers](../interfaces/itransactionclient.md#gettransfers)* -*Defined in [transactions/transactionClient.ts:925](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L925)* +*Defined in [transactions/transactionClient.ts:925](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L925* The transfers which are associated with a seed. The transfers are determined by either calculating deterministically which addresses were already used, or by providing a list of indexes to get the addresses and the associated transfers from. The transfers are sorted by their timestamp. @@ -392,7 +392,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[isPromotable](../interfaces/itransactionclient.md#ispromotable)* -*Defined in [transactions/transactionClient.ts:624](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L624)* +*Defined in [transactions/transactionClient.ts:624](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L624* Find out if a transaction is promotable. @@ -414,7 +414,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[isReattachable](../interfaces/itransactionclient.md#isreattachable)* -*Defined in [transactions/transactionClient.ts:645](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L645)* +*Defined in [transactions/transactionClient.ts:645](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L645* Determines whether you should replay a transaction or make a new one (either with the same input, or a different one). @@ -436,7 +436,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[prepareTransfers](../interfaces/itransactionclient.md#preparetransfers)* -*Defined in [transactions/transactionClient.ts:429](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L429)* +*Defined in [transactions/transactionClient.ts:429](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L429* Prepares transfer by generating bundle, finding and signing inputs. @@ -460,7 +460,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[promoteTransaction](../interfaces/itransactionclient.md#promotetransaction)* -*Defined in [transactions/transactionClient.ts:714](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L714)* +*Defined in [transactions/transactionClient.ts:714](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L714* Promotes a transaction by adding spam on top of it, as long as it is promotable. Will promote by adding transfers on top of the current one with delay interval. Use promoteOptions.interrupt to terminate the promotion. If promoteOptions.delay is set to 0 only one promotion transfer will be sent. @@ -486,7 +486,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[reattachBundle](../interfaces/itransactionclient.md#reattachbundle)* -*Defined in [transactions/transactionClient.ts:859](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L859)* +*Defined in [transactions/transactionClient.ts:859](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L859* Wrapper which gets a bundle and then replays a transfer by doing Proof of Work again. @@ -510,7 +510,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[rebroadcastBundle](../interfaces/itransactionclient.md#rebroadcastbundle)* -*Defined in [transactions/transactionClient.ts:876](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L876)* +*Defined in [transactions/transactionClient.ts:876](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L876* Wrapper which gets a bundle and then broadcasts it. @@ -532,7 +532,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[sendTransactions](../interfaces/itransactionclient.md#sendtransactions)* -*Defined in [transactions/transactionClient.ts:578](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L578)* +*Defined in [transactions/transactionClient.ts:578](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L578* Wrapper function that does attachToTangle and then stores and broadcasts the transactions. @@ -557,7 +557,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[sendTransfer](../interfaces/itransactionclient.md#sendtransfer)* -*Defined in [transactions/transactionClient.ts:609](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L609)* +*Defined in [transactions/transactionClient.ts:609](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L609* Wrapper function that does prepareTransfers and then sendTransactions. @@ -584,7 +584,7 @@ ___ *Implementation of [ITransactionClient](../interfaces/itransactionclient.md).[traverseBundle](../interfaces/itransactionclient.md#traversebundle)* -*Defined in [transactions/transactionClient.ts:796](https://github.com/iota-pico/business/blob/d578214/src/transactions/transactionClient.ts#L796)* +*Defined in [transactions/transactionClient.ts:796](https://github.com/iota-pico/business/tree/master/src/transactions/transactionClient.ts#L796* Traverse the Bundle by going down the trunkTransactions until the bundle hash of the transaction is no longer the same. diff --git a/docs/interfaces/itransactionclient.md b/docs/interfaces/itransactionclient.md index 60887fc..f91f252 100644 --- a/docs/interfaces/itransactionclient.md +++ b/docs/interfaces/itransactionclient.md @@ -50,7 +50,7 @@ Represents a client for performing transactions using the api if required. ▸ **attachToTangle**(bundle: *`Bundle`*, depth: *`number`*, minWeightMagnitude: *`number`*, reference?: *`Hash`*): `Promise`<`Bundle`> -*Defined in [interfaces/ITransactionClient.ts:112](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L112)* +*Defined in [interfaces/ITransactionClient.ts:112](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L112* Attach the transactions to the tangle by doing proof of work. @@ -73,7 +73,7 @@ ___ ▸ **findTransactionObjects**(bundles?: *`Hash`[]*, addresses?: *`Address`[]*, tags?: *`Tag`[]*, approvees?: *`Hash`[]*): `Promise`<`Transaction`[]> -*Defined in [interfaces/ITransactionClient.ts:212](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L212)* +*Defined in [interfaces/ITransactionClient.ts:212](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L212* Get transaction objects by fist performing a findTransactions call. @@ -96,7 +96,7 @@ ___ ▸ **findTransactions**(bundles?: *`Hash`[]*, addresses?: *`Address`[]*, tags?: *`Tag`[]*, approvees?: *`Hash`[]*): `Promise`<`Hash`[]> -*Defined in [interfaces/ITransactionClient.ts:34](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L34)* +*Defined in [interfaces/ITransactionClient.ts:34](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L34* Find the transactions which match the specified input and return. All input values are lists, for which a list of return values (transaction hashes), in the same order, is returned for all individual elements. Using multiple of these input fields returns the intersection of the values. @@ -119,7 +119,7 @@ ___ ▸ **getAccountData**(seed: *`Hash`*, startIndex?: *`number`*, endIndex?: *`number`*, security?: *`AddressSecurity`*): `Promise`<[AccountData](../#accountdata)> -*Defined in [interfaces/ITransactionClient.ts:235](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L235)* +*Defined in [interfaces/ITransactionClient.ts:235](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L235* Similar to getTransfers, just that it returns additional account data. @@ -142,7 +142,7 @@ ___ ▸ **getAddressesByIndex**(seed: *`Hash`*, startIndex: *`number`*, endIndex: *`number`*, includeChecksum: *`boolean`*, security: *`AddressSecurity`*): `Promise`<`Address`[]> -*Defined in [interfaces/ITransactionClient.ts:68](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L68)* +*Defined in [interfaces/ITransactionClient.ts:68](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L68* Generates addresses index-based. @@ -166,7 +166,7 @@ ___ ▸ **getAddressesToUnused**(seed: *`Hash`*, startIndex: *`number`*, includeChecksum: *`boolean`*, security: *`AddressSecurity`*): `Promise`<`Address`[]> -*Defined in [interfaces/ITransactionClient.ts:78](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L78)* +*Defined in [interfaces/ITransactionClient.ts:78](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L78* Generates address which havent been used using apis. @@ -189,7 +189,7 @@ ___ ▸ **getBundle**(transactionHash: *`Hash`*): `Promise`<`Bundle`> -*Defined in [interfaces/ITransactionClient.ts:176](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L176)* +*Defined in [interfaces/ITransactionClient.ts:176](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L176* Gets the associated bundle transactions of a single transaction. Does validation of signatures, total sum as well as bundle order. @@ -209,7 +209,7 @@ ___ ▸ **getInputs**(seed: *`Hash`*, startIndex: *`number`*, endIndex: *`number`*, security: *`AddressSecurity`*, totalRequired: *`number`*): `Promise`<`object`> -*Defined in [interfaces/ITransactionClient.ts:89](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L89)* +*Defined in [interfaces/ITransactionClient.ts:89](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L89* Get the input data for a range of addresses. @@ -233,7 +233,7 @@ ___ ▸ **getLatestInclusion**(transactionHashes: *`Hash`[]*): `Promise`<`boolean`[]> -*Defined in [interfaces/ITransactionClient.ts:46](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L46)* +*Defined in [interfaces/ITransactionClient.ts:46](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L46* Get the inclusion states of a list of transaction hashes. @@ -253,7 +253,7 @@ ___ ▸ **getNewAddress**(seed: *`Hash`*, startIndex?: *`number`*, endIndex?: *`number`*, includeChecksum?: *`boolean`*, security?: *`AddressSecurity`*): `Promise`<`Address`[]> -*Defined in [interfaces/ITransactionClient.ts:57](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L57)* +*Defined in [interfaces/ITransactionClient.ts:57](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L57* Generates addresses with index-based or using apis. @@ -277,7 +277,7 @@ ___ ▸ **getTransactionsInProgress**(): `Promise`<`Hash`[]> -*Defined in [interfaces/ITransactionClient.ts:22](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L22)* +*Defined in [interfaces/ITransactionClient.ts:22](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L22* Returns the list of transaction in progress. @@ -291,7 +291,7 @@ ___ ▸ **getTransactionsObjects**(transactionHashes: *`Hash`[]*): `Promise`<`Transaction`[]> -*Defined in [interfaces/ITransactionClient.ts:40](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L40)* +*Defined in [interfaces/ITransactionClient.ts:40](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L40* Get the transaction details of specific transactions. @@ -311,7 +311,7 @@ ___ ▸ **getTransfers**(seed: *`Hash`*, startIndex?: *`number`*, endIndex?: *`number`*, security?: *`AddressSecurity`*, inclusionStates?: *`boolean`*): `Promise`<`Bundle`[]> -*Defined in [interfaces/ITransactionClient.ts:225](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L225)* +*Defined in [interfaces/ITransactionClient.ts:225](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L225* The transfers which are associated with a seed. The transfers are determined by either calculating deterministically which addresses were already used, or by providing a list of indexes to get the addresses and the associated transfers from. The transfers are sorted by their timestamp. @@ -335,7 +335,7 @@ ___ ▸ **isPromotable**(transactionTail: *`Hash`*): `Promise`<`boolean`> -*Defined in [interfaces/ITransactionClient.ts:145](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L145)* +*Defined in [interfaces/ITransactionClient.ts:145](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L145* Find out if a transaction is promotable. @@ -355,7 +355,7 @@ ___ ▸ **isReattachable**(addresses: *`Address`[]*): `Promise`<`boolean`[]> -*Defined in [interfaces/ITransactionClient.ts:152](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L152)* +*Defined in [interfaces/ITransactionClient.ts:152](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L152* Determines whether you should replay a transaction or make a new one (either with the same input, or a different one). @@ -375,7 +375,7 @@ ___ ▸ **prepareTransfers**(seed: *`Hash`*, transfers: *`Transfer`[]*, transferOptions?: *[TransferOptions](../#transferoptions)*): `Promise`<`Bundle`> -*Defined in [interfaces/ITransactionClient.ts:102](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L102)* +*Defined in [interfaces/ITransactionClient.ts:102](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L102* Prepares transfer by generating bundle, finding and signing inputs. @@ -397,7 +397,7 @@ ___ ▸ **promoteTransaction**(transactionTail: *`Hash`*, depth: *`number`*, minWeightMagnitude: *`number`*, transfers: *`Transfer`[]*, promoteOptions?: *[PromoteOptions](../#promoteoptions)*): `Promise`<`Bundle`> -*Defined in [interfaces/ITransactionClient.ts:168](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L168)* +*Defined in [interfaces/ITransactionClient.ts:168](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L168* Promotes a transaction by adding spam on top of it, as long as it is promotable. Will promote by adding transfers on top of the current one with delay interval. Use promoteOptions.interrupt to terminate the promotion. If promoteOptions.delay is set to 0 only one promotion transfer will be sent. @@ -421,7 +421,7 @@ ___ ▸ **reattachBundle**(transactionHash: *`Hash`*, depth: *`number`*, minWeightMagnitude: *`number`*): `Promise`<`Bundle`> -*Defined in [interfaces/ITransactionClient.ts:194](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L194)* +*Defined in [interfaces/ITransactionClient.ts:194](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L194* Wrapper which gets a bundle and then replays a transfer by doing Proof of Work again. @@ -443,7 +443,7 @@ ___ ▸ **rebroadcastBundle**(transactionHash: *`Hash`*): `Promise`<`Bundle`> -*Defined in [interfaces/ITransactionClient.ts:201](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L201)* +*Defined in [interfaces/ITransactionClient.ts:201](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L201* Wrapper which gets a bundle and then broadcasts it. @@ -463,7 +463,7 @@ ___ ▸ **sendTransactions**(bundle: *`Bundle`*, depth: *`number`*, minWeightMagnitude: *`number`*, reference?: *`Hash`*): `Promise`<`Bundle`> -*Defined in [interfaces/ITransactionClient.ts:122](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L122)* +*Defined in [interfaces/ITransactionClient.ts:122](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L122* Wrapper function that does attachToTangle and then stores and broadcasts the transactions. @@ -486,7 +486,7 @@ ___ ▸ **sendTransfer**(seed: *`Hash`*, depth: *`number`*, minWeightMagnitude: *`number`*, transfers: *`Transfer`[]*, transferOptions?: *[TransferOptions](../#transferoptions)*, reference?: *`Hash`*): `Promise`<`Bundle`> -*Defined in [interfaces/ITransactionClient.ts:138](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L138)* +*Defined in [interfaces/ITransactionClient.ts:138](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L138* Wrapper function that does prepareTransfers and then sendTransactions. @@ -511,7 +511,7 @@ ___ ▸ **traverseBundle**(trunkTransaction: *`Hash`*, bundleHash?: *`Hash`*): `Promise`<`Transaction`[]> -*Defined in [interfaces/ITransactionClient.ts:185](https://github.com/iota-pico/business/blob/d578214/src/interfaces/ITransactionClient.ts#L185)* +*Defined in [interfaces/ITransactionClient.ts:185](https://github.com/iota-pico/business/tree/master/src/interfaces/ITransactionClient.ts#L185* Traverse the Bundle by going down the trunkTransactions until the bundle hash of the transaction is no longer the same. diff --git a/package.json b/package.json index 0fd2dcb..ca7f801 100644 --- a/package.json +++ b/package.json @@ -34,11 +34,13 @@ "test-clean": "rimraf ./coverage/*", "test-lint": "tslint -p ./test/tsconfig.json -c ./tslint.json -t verbose", "test-run": "nyc mocha", - "test": "npm-run-all test-clean test-lint test-run", + "test-post": "replace-in-file \"/(istanbul<\\/a>) at.*/g\" \"$1\" coverage/**/*.html --isRegex", + "test": "npm-run-all test-clean test-lint test-run test-post", "test-publish": "minicat ./coverage/lcov.info | coveralls", "docs-clean": "rimraf ./docs/*", "docs-generate": "typedoc --module commonjs --excludePrivate --theme markdown --readme none --hideGenerator --mode file --target es5 --exclude ./**/src/index.ts --out ./docs ./src", - "docs": "npm-run-all docs-clean docs-generate", + "docs-post": "replace-in-file \"/(Defined in \\[.*\\]\\(https:\\/\\/github.com\\/.*?\\/.*?\\/).*?\\/.*?\\/(.*)\\)/g\" \"$1tree/master/$2\" docs/**/*.md --isRegex", + "docs": "npm-run-all docs-clean docs-generate docs-post", "pkg-clean": "rimraf ./pkg/*", "pkg-dev": "cross-env NODE_ENV=development webpack --progress", "pkg-prod": "cross-env NODE_ENV=production webpack --progress", @@ -70,6 +72,7 @@ "npm-run-all": "^4.1.3", "nsp": "^3.2.1", "nyc": "^12.0.2", + "replace-in-file": "^3.4.0", "rimraf": "^2.6.2", "sinon": "^6.0.1", "source-map-support": "^0.5.6",