beignet 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/electrum/index.js +4 -4
- package/dist/electrum/index.js.map +1 -1
- package/dist/types/electrum/index.d.ts +3 -3
- package/dist/types/electrum.js +7 -1
- package/dist/types/electrum.js.map +1 -1
- package/dist/types/types/electrum.d.ts +6 -1
- package/dist/types/types/wallet.d.ts +3 -3
- package/dist/types/wallet/index.d.ts +1 -1
- package/dist/wallet/index.js.map +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/Electrum.html +46 -44
- package/docs/html/classes/Transaction.html +26 -24
- package/docs/html/classes/Wallet.html +222 -128
- package/docs/html/enums/EAddressType.html +6 -4
- package/docs/html/enums/EAvailableNetworks.html +10 -8
- package/docs/html/enums/EBoostType.html +5 -3
- package/docs/html/enums/EElectrumNetworks.html +229 -0
- package/docs/html/enums/EFeeId.html +8 -6
- package/docs/html/enums/EPaymentType.html +5 -3
- package/docs/html/enums/EProtocol.html +5 -3
- package/docs/html/enums/EUnit.html +6 -4
- package/docs/html/functions/availableNetworks.html +3 -1
- package/docs/html/functions/constructByteCountParam.html +3 -1
- package/docs/html/functions/decodeOpReturnMessage.html +3 -1
- package/docs/html/functions/decodeRawTransaction.html +3 -1
- package/docs/html/functions/err.html +3 -1
- package/docs/html/functions/formatKeyDerivationPath.html +3 -1
- package/docs/html/functions/formatPeerData.html +3 -1
- package/docs/html/functions/generateMnemonic.html +3 -1
- package/docs/html/functions/generateWalletId.html +3 -1
- package/docs/html/functions/getAddressFromScriptPubKey.html +3 -1
- package/docs/html/functions/getAddressTypeFromPath.html +3 -1
- package/docs/html/functions/getByteCount.html +7 -3
- package/docs/html/functions/getDataFallback.html +3 -1
- package/docs/html/functions/getDefaultPort.html +3 -1
- package/docs/html/functions/getDefaultWalletData.html +3 -1
- package/docs/html/functions/getDefaultWalletDataKeys.html +3 -1
- package/docs/html/functions/getExchangeRates.html +3 -1
- package/docs/html/functions/getHighestUsedIndexFromTxHashes.html +3 -1
- package/docs/html/functions/getKeyDerivationPath.html +3 -1
- package/docs/html/functions/getKeyDerivationPathObject.html +3 -1
- package/docs/html/functions/getKeyDerivationPathString.html +3 -1
- package/docs/html/functions/getKeyValue.html +3 -1
- package/docs/html/functions/getPeers.html +3 -1
- package/docs/html/functions/getProtocolForPort.html +3 -1
- package/docs/html/functions/getScriptHash.html +3 -1
- package/docs/html/functions/getSeed.html +3 -1
- package/docs/html/functions/getSeedHash.html +3 -1
- package/docs/html/functions/getSha256.html +3 -1
- package/docs/html/functions/getStorageKeyValues.html +3 -1
- package/docs/html/functions/getTxFee.html +3 -1
- package/docs/html/functions/getWalletDataStorageKey.html +3 -1
- package/docs/html/functions/isValidBech32mEncodedString.html +3 -1
- package/docs/html/functions/objectKeys-1.html +3 -1
- package/docs/html/functions/objectsMatch.html +3 -1
- package/docs/html/functions/ok.html +3 -1
- package/docs/html/functions/parseOnChainPaymentRequest.html +3 -1
- package/docs/html/functions/reduceValue.html +3 -1
- package/docs/html/functions/removeDustOutputs.html +3 -1
- package/docs/html/functions/setReplaceByFee.html +3 -1
- package/docs/html/functions/shuffleArray.html +3 -1
- package/docs/html/functions/validateAddress.html +3 -1
- package/docs/html/functions/validateMnemonic.html +3 -1
- package/docs/html/functions/validateTransaction.html +3 -1
- package/docs/html/index.html +4 -0
- package/docs/html/interfaces/IAddInput.html +6 -4
- package/docs/html/interfaces/IAddress.html +8 -6
- package/docs/html/interfaces/IAddressData.html +6 -4
- package/docs/html/interfaces/IAddressType.html +3 -1
- package/docs/html/interfaces/IAddressTypeData.html +9 -7
- package/docs/html/interfaces/IAddresses.html +3 -1
- package/docs/html/interfaces/IBoostedTransaction.html +7 -5
- package/docs/html/interfaces/IBoostedTransactions.html +3 -1
- package/docs/html/interfaces/ICreateTransaction.html +5 -3
- package/docs/html/interfaces/ICustomGetAddress.html +9 -7
- package/docs/html/interfaces/ICustomGetScriptHash.html +8 -6
- package/docs/html/interfaces/IElectrumGetAddressBalanceRes.html +6 -4
- package/docs/html/interfaces/IExchangeRates.html +3 -1
- package/docs/html/interfaces/IFormattedPeerData.html +8 -6
- package/docs/html/interfaces/IFormattedTransaction.html +22 -20
- package/docs/html/interfaces/IFormattedTransactions.html +3 -1
- package/docs/html/interfaces/IGenerateAddresses.html +17 -8
- package/docs/html/interfaces/IGenerateAddressesResponse.html +5 -3
- package/docs/html/interfaces/IGetAddress.html +6 -4
- package/docs/html/interfaces/IGetAddressBalanceRes.html +5 -3
- package/docs/html/interfaces/IGetAddressByPath.html +5 -3
- package/docs/html/interfaces/IGetAddressHistoryResponse.html +10 -8
- package/docs/html/interfaces/IGetAddressResponse.html +6 -4
- package/docs/html/interfaces/IGetAddressScriptHashBalances.html +247 -0
- package/docs/html/interfaces/IGetAddressScriptHashesHistoryResponse.html +8 -6
- package/docs/html/interfaces/IGetDerivationPath.html +9 -7
- package/docs/html/interfaces/IGetFeeEstimatesResponse.html +7 -5
- package/docs/html/interfaces/IGetHeaderResponse.html +8 -6
- package/docs/html/interfaces/IGetNextAvailableAddressResponse.html +7 -5
- package/docs/html/interfaces/IGetTransactions.html +8 -6
- package/docs/html/interfaces/IGetTransactionsFromInputs.html +8 -6
- package/docs/html/interfaces/IGetUtxosResponse.html +5 -3
- package/docs/html/interfaces/IHeader.html +6 -4
- package/docs/html/interfaces/IIndexes.html +7 -5
- package/docs/html/interfaces/IKeyDerivationPath.html +8 -6
- package/docs/html/interfaces/IKeyDerivationPathData.html +5 -3
- package/docs/html/interfaces/INewBlock.html +5 -3
- package/docs/html/interfaces/IOnchainFees.html +8 -6
- package/docs/html/interfaces/IOutput.html +6 -4
- package/docs/html/interfaces/IPeerData.html +6 -4
- package/docs/html/interfaces/IRbfData.html +9 -7
- package/docs/html/interfaces/ISend.html +5 -3
- package/docs/html/interfaces/ISendTransaction.html +19 -17
- package/docs/html/interfaces/ISendTx.html +6 -4
- package/docs/html/interfaces/ISetupTransaction.html +7 -5
- package/docs/html/interfaces/ISubscribeToAddress.html +7 -5
- package/docs/html/interfaces/ISubscribeToHeader.html +7 -5
- package/docs/html/interfaces/ITargets.html +7 -5
- package/docs/html/interfaces/ITransaction.html +8 -6
- package/docs/html/interfaces/ITxHash.html +4 -2
- package/docs/html/interfaces/ITxHashes.html +6 -4
- package/docs/html/interfaces/IUtxo.html +20 -18
- package/docs/html/interfaces/IVin.html +8 -6
- package/docs/html/interfaces/IVout.html +6 -4
- package/docs/html/interfaces/IWallet.html +18 -16
- package/docs/html/interfaces/IWalletData.html +22 -20
- package/docs/html/types/ElectrumConnectionPubSub.html +3 -1
- package/docs/html/types/ElectrumConnectionSubscription.html +4 -2
- package/docs/html/types/InputData.html +3 -1
- package/docs/html/types/ObjectKeys.html +3 -1
- package/docs/html/types/Result.html +3 -1
- package/docs/html/types/TAddressIndexInfo.html +3 -1
- package/docs/html/types/TAddressLabel.html +3 -1
- package/docs/html/types/TAddressType.html +3 -1
- package/docs/html/types/TAddressTypeContent.html +3 -1
- package/docs/html/types/TAddressTypes.html +3 -1
- package/docs/html/types/TAvailableNetworks.html +3 -1
- package/docs/html/types/TConnectToElectrumRes.html +3 -1
- package/docs/html/types/TDecodeRawTx.html +3 -1
- package/docs/html/types/TElectrumNetworks.html +3 -1
- package/docs/html/types/TGetAddressHistory.html +3 -1
- package/docs/html/types/TGetByteCountInput.html +3 -1
- package/docs/html/types/TGetByteCountInputs.html +3 -1
- package/docs/html/types/TGetByteCountOutput.html +3 -1
- package/docs/html/types/TGetByteCountOutputs.html +3 -1
- package/docs/html/types/TGetData.html +3 -1
- package/docs/html/types/TGetTotalFeeObj.html +3 -1
- package/docs/html/types/TKeyDerivationAccount.html +3 -1
- package/docs/html/types/TKeyDerivationChange.html +3 -1
- package/docs/html/types/TKeyDerivationCoinType.html +3 -1
- package/docs/html/types/TKeyDerivationIndex.html +3 -1
- package/docs/html/types/TKeyDerivationPurpose.html +3 -1
- package/docs/html/types/TMessageDataMap.html +3 -1
- package/docs/html/types/TMessageKeys.html +3 -1
- package/docs/html/types/TOnMessage.html +3 -1
- package/docs/html/types/TProcessUnconfirmedTransactions.html +3 -1
- package/docs/html/types/TProtocol.html +3 -1
- package/docs/html/types/TServer.html +3 -1
- package/docs/html/types/TSetData.html +3 -1
- package/docs/html/types/TSetupTransactionResponse.html +3 -1
- package/docs/html/types/TStorage.html +3 -1
- package/docs/html/types/TSubscribedReceive.html +3 -1
- package/docs/html/types/TTransactionMessage.html +3 -1
- package/docs/html/types/TTxResponse.html +3 -1
- package/docs/html/types/TTxResult.html +3 -1
- package/docs/html/types/TUnspentAddressScriptHashData.html +3 -1
- package/docs/html/types/TWalletDataKeys.html +3 -1
- package/docs/html/variables/defaultElectrumPorts.html +3 -1
- package/docs/html/variables/electrumConnection.html +3 -1
- package/docs/html/variables/mostUsedExchangeTickers.html +3 -1
- package/docs/markdown/README.md +154 -151
- package/docs/markdown/classes/Electrum.md +78 -78
- package/docs/markdown/classes/Transaction.md +54 -54
- package/docs/markdown/classes/Wallet.md +351 -245
- package/docs/markdown/enums/EAddressType.md +3 -3
- package/docs/markdown/enums/EAvailableNetworks.md +7 -7
- package/docs/markdown/enums/EBoostType.md +2 -2
- package/docs/markdown/enums/EElectrumNetworks.md +41 -0
- package/docs/markdown/enums/EFeeId.md +5 -5
- package/docs/markdown/enums/EPaymentType.md +2 -2
- package/docs/markdown/enums/EProtocol.md +2 -2
- package/docs/markdown/enums/EUnit.md +3 -3
- package/docs/markdown/interfaces/IAddInput.md +3 -3
- package/docs/markdown/interfaces/IAddress.md +5 -5
- package/docs/markdown/interfaces/IAddressData.md +3 -3
- package/docs/markdown/interfaces/IAddressTypeData.md +6 -6
- package/docs/markdown/interfaces/IBoostedTransaction.md +4 -4
- package/docs/markdown/interfaces/ICreateTransaction.md +2 -2
- package/docs/markdown/interfaces/ICustomGetAddress.md +4 -4
- package/docs/markdown/interfaces/ICustomGetScriptHash.md +3 -3
- package/docs/markdown/interfaces/IElectrumGetAddressBalanceRes.md +3 -3
- package/docs/markdown/interfaces/IExchangeRates.md +1 -1
- package/docs/markdown/interfaces/IFormattedPeerData.md +5 -5
- package/docs/markdown/interfaces/IFormattedTransaction.md +19 -19
- package/docs/markdown/interfaces/IGenerateAddresses.md +17 -6
- package/docs/markdown/interfaces/IGenerateAddressesResponse.md +2 -2
- package/docs/markdown/interfaces/IGetAddress.md +3 -3
- package/docs/markdown/interfaces/IGetAddressBalanceRes.md +2 -2
- package/docs/markdown/interfaces/IGetAddressByPath.md +2 -2
- package/docs/markdown/interfaces/IGetAddressHistoryResponse.md +7 -7
- package/docs/markdown/interfaces/IGetAddressResponse.md +3 -3
- package/docs/markdown/interfaces/IGetAddressScriptHashBalances.md +63 -0
- package/docs/markdown/interfaces/IGetAddressScriptHashesHistoryResponse.md +5 -5
- package/docs/markdown/interfaces/IGetDerivationPath.md +6 -6
- package/docs/markdown/interfaces/IGetFeeEstimatesResponse.md +4 -4
- package/docs/markdown/interfaces/IGetHeaderResponse.md +5 -5
- package/docs/markdown/interfaces/IGetNextAvailableAddressResponse.md +4 -4
- package/docs/markdown/interfaces/IGetTransactions.md +6 -6
- package/docs/markdown/interfaces/IGetTransactionsFromInputs.md +6 -6
- package/docs/markdown/interfaces/IGetUtxosResponse.md +2 -2
- package/docs/markdown/interfaces/IHeader.md +3 -3
- package/docs/markdown/interfaces/IIndexes.md +4 -4
- package/docs/markdown/interfaces/IKeyDerivationPath.md +5 -5
- package/docs/markdown/interfaces/IKeyDerivationPathData.md +2 -2
- package/docs/markdown/interfaces/INewBlock.md +2 -2
- package/docs/markdown/interfaces/IOnchainFees.md +5 -5
- package/docs/markdown/interfaces/IOutput.md +3 -3
- package/docs/markdown/interfaces/IPeerData.md +3 -3
- package/docs/markdown/interfaces/IRbfData.md +6 -6
- package/docs/markdown/interfaces/ISend.md +2 -2
- package/docs/markdown/interfaces/ISendTransaction.md +16 -16
- package/docs/markdown/interfaces/ISendTx.md +3 -3
- package/docs/markdown/interfaces/ISetupTransaction.md +4 -4
- package/docs/markdown/interfaces/ISubscribeToAddress.md +4 -4
- package/docs/markdown/interfaces/ISubscribeToHeader.md +4 -4
- package/docs/markdown/interfaces/ITargets.md +4 -4
- package/docs/markdown/interfaces/ITransaction.md +6 -6
- package/docs/markdown/interfaces/ITxHash.md +1 -1
- package/docs/markdown/interfaces/ITxHashes.md +3 -3
- package/docs/markdown/interfaces/IUtxo.md +16 -16
- package/docs/markdown/interfaces/IVin.md +5 -5
- package/docs/markdown/interfaces/IVout.md +3 -3
- package/docs/markdown/interfaces/IWallet.md +21 -21
- package/docs/markdown/interfaces/IWalletData.md +25 -25
- package/package.json +1 -1
- package/src/electrum/index.ts +8 -8
- package/src/types/electrum.ts +6 -2
- package/src/types/wallet.ts +3 -3
- package/src/wallet/index.ts +4 -4
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
#### Defined in
|
|
21
21
|
|
|
22
|
-
[types/transaction.ts:20](https://github.com/synonymdev/beignet/blob/
|
|
22
|
+
[types/transaction.ts:20](https://github.com/synonymdev/beignet/blob/88520f5/src/types/transaction.ts#L20)
|
|
23
23
|
|
|
24
24
|
___
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ ___
|
|
|
29
29
|
|
|
30
30
|
#### Defined in
|
|
31
31
|
|
|
32
|
-
[types/transaction.ts:19](https://github.com/synonymdev/beignet/blob/
|
|
32
|
+
[types/transaction.ts:19](https://github.com/synonymdev/beignet/blob/88520f5/src/types/transaction.ts#L19)
|
|
33
33
|
|
|
34
34
|
___
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ ___
|
|
|
39
39
|
|
|
40
40
|
#### Defined in
|
|
41
41
|
|
|
42
|
-
[types/transaction.ts:21](https://github.com/synonymdev/beignet/blob/
|
|
42
|
+
[types/transaction.ts:21](https://github.com/synonymdev/beignet/blob/88520f5/src/types/transaction.ts#L21)
|
|
43
43
|
|
|
44
44
|
___
|
|
45
45
|
|
|
@@ -49,4 +49,4 @@ ___
|
|
|
49
49
|
|
|
50
50
|
#### Defined in
|
|
51
51
|
|
|
52
|
-
[types/transaction.ts:18](https://github.com/synonymdev/beignet/blob/
|
|
52
|
+
[types/transaction.ts:18](https://github.com/synonymdev/beignet/blob/88520f5/src/types/transaction.ts#L18)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[beignet](../README.md) / ITransaction
|
|
2
2
|
|
|
3
|
-
# Interface: ITransaction
|
|
3
|
+
# Interface: ITransaction<T\>
|
|
4
4
|
|
|
5
5
|
## Type parameters
|
|
6
6
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
#### Defined in
|
|
28
28
|
|
|
29
|
-
[types/wallet.ts:
|
|
29
|
+
[types/wallet.ts:326](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L326)
|
|
30
30
|
|
|
31
31
|
___
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ ___
|
|
|
36
36
|
|
|
37
37
|
#### Defined in
|
|
38
38
|
|
|
39
|
-
[types/wallet.ts:
|
|
39
|
+
[types/wallet.ts:323](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L323)
|
|
40
40
|
|
|
41
41
|
___
|
|
42
42
|
|
|
@@ -46,7 +46,7 @@ ___
|
|
|
46
46
|
|
|
47
47
|
#### Defined in
|
|
48
48
|
|
|
49
|
-
[types/wallet.ts:
|
|
49
|
+
[types/wallet.ts:324](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L324)
|
|
50
50
|
|
|
51
51
|
___
|
|
52
52
|
|
|
@@ -56,7 +56,7 @@ ___
|
|
|
56
56
|
|
|
57
57
|
#### Defined in
|
|
58
58
|
|
|
59
|
-
[types/wallet.ts:
|
|
59
|
+
[types/wallet.ts:325](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L325)
|
|
60
60
|
|
|
61
61
|
___
|
|
62
62
|
|
|
@@ -85,4 +85,4 @@ ___
|
|
|
85
85
|
|
|
86
86
|
#### Defined in
|
|
87
87
|
|
|
88
|
-
[types/wallet.ts:
|
|
88
|
+
[types/wallet.ts:327](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L327)
|
|
@@ -28,7 +28,7 @@ TTxResult.height
|
|
|
28
28
|
|
|
29
29
|
#### Defined in
|
|
30
30
|
|
|
31
|
-
[types/electrum.ts:
|
|
31
|
+
[types/electrum.ts:44](https://github.com/synonymdev/beignet/blob/88520f5/src/types/electrum.ts#L44)
|
|
32
32
|
|
|
33
33
|
___
|
|
34
34
|
|
|
@@ -38,7 +38,7 @@ ___
|
|
|
38
38
|
|
|
39
39
|
#### Defined in
|
|
40
40
|
|
|
41
|
-
[types/wallet.ts:
|
|
41
|
+
[types/wallet.ts:300](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L300)
|
|
42
42
|
|
|
43
43
|
___
|
|
44
44
|
|
|
@@ -52,4 +52,4 @@ TTxResult.tx\_hash
|
|
|
52
52
|
|
|
53
53
|
#### Defined in
|
|
54
54
|
|
|
55
|
-
[types/electrum.ts:
|
|
55
|
+
[types/electrum.ts:43](https://github.com/synonymdev/beignet/blob/88520f5/src/types/electrum.ts#L43)
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
|
|
24
24
|
#### Defined in
|
|
25
25
|
|
|
26
|
-
[types/wallet.ts:60](https://github.com/synonymdev/beignet/blob/
|
|
26
|
+
[types/wallet.ts:60](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L60)
|
|
27
27
|
|
|
28
|
-
[types/wallet.ts:256](https://github.com/synonymdev/beignet/blob/
|
|
28
|
+
[types/wallet.ts:256](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L256)
|
|
29
29
|
|
|
30
30
|
___
|
|
31
31
|
|
|
@@ -35,9 +35,9 @@ ___
|
|
|
35
35
|
|
|
36
36
|
#### Defined in
|
|
37
37
|
|
|
38
|
-
[types/wallet.ts:64](https://github.com/synonymdev/beignet/blob/
|
|
38
|
+
[types/wallet.ts:64](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L64)
|
|
39
39
|
|
|
40
|
-
[types/wallet.ts:260](https://github.com/synonymdev/beignet/blob/
|
|
40
|
+
[types/wallet.ts:260](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L260)
|
|
41
41
|
|
|
42
42
|
___
|
|
43
43
|
|
|
@@ -47,9 +47,9 @@ ___
|
|
|
47
47
|
|
|
48
48
|
#### Defined in
|
|
49
49
|
|
|
50
|
-
[types/wallet.ts:61](https://github.com/synonymdev/beignet/blob/
|
|
50
|
+
[types/wallet.ts:61](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L61)
|
|
51
51
|
|
|
52
|
-
[types/wallet.ts:257](https://github.com/synonymdev/beignet/blob/
|
|
52
|
+
[types/wallet.ts:257](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L257)
|
|
53
53
|
|
|
54
54
|
___
|
|
55
55
|
|
|
@@ -59,9 +59,9 @@ ___
|
|
|
59
59
|
|
|
60
60
|
#### Defined in
|
|
61
61
|
|
|
62
|
-
[types/wallet.ts:62](https://github.com/synonymdev/beignet/blob/
|
|
62
|
+
[types/wallet.ts:62](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L62)
|
|
63
63
|
|
|
64
|
-
[types/wallet.ts:258](https://github.com/synonymdev/beignet/blob/
|
|
64
|
+
[types/wallet.ts:258](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L258)
|
|
65
65
|
|
|
66
66
|
___
|
|
67
67
|
|
|
@@ -71,9 +71,9 @@ ___
|
|
|
71
71
|
|
|
72
72
|
#### Defined in
|
|
73
73
|
|
|
74
|
-
[types/wallet.ts:63](https://github.com/synonymdev/beignet/blob/
|
|
74
|
+
[types/wallet.ts:63](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L63)
|
|
75
75
|
|
|
76
|
-
[types/wallet.ts:259](https://github.com/synonymdev/beignet/blob/
|
|
76
|
+
[types/wallet.ts:259](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L259)
|
|
77
77
|
|
|
78
78
|
___
|
|
79
79
|
|
|
@@ -83,9 +83,9 @@ ___
|
|
|
83
83
|
|
|
84
84
|
#### Defined in
|
|
85
85
|
|
|
86
|
-
[types/wallet.ts:65](https://github.com/synonymdev/beignet/blob/
|
|
86
|
+
[types/wallet.ts:65](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L65)
|
|
87
87
|
|
|
88
|
-
[types/wallet.ts:261](https://github.com/synonymdev/beignet/blob/
|
|
88
|
+
[types/wallet.ts:261](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L261)
|
|
89
89
|
|
|
90
90
|
___
|
|
91
91
|
|
|
@@ -95,9 +95,9 @@ ___
|
|
|
95
95
|
|
|
96
96
|
#### Defined in
|
|
97
97
|
|
|
98
|
-
[types/wallet.ts:66](https://github.com/synonymdev/beignet/blob/
|
|
98
|
+
[types/wallet.ts:66](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L66)
|
|
99
99
|
|
|
100
|
-
[types/wallet.ts:262](https://github.com/synonymdev/beignet/blob/
|
|
100
|
+
[types/wallet.ts:262](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L262)
|
|
101
101
|
|
|
102
102
|
___
|
|
103
103
|
|
|
@@ -107,6 +107,6 @@ ___
|
|
|
107
107
|
|
|
108
108
|
#### Defined in
|
|
109
109
|
|
|
110
|
-
[types/wallet.ts:67](https://github.com/synonymdev/beignet/blob/
|
|
110
|
+
[types/wallet.ts:67](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L67)
|
|
111
111
|
|
|
112
|
-
[types/wallet.ts:263](https://github.com/synonymdev/beignet/blob/
|
|
112
|
+
[types/wallet.ts:263](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L263)
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
#### Defined in
|
|
29
29
|
|
|
30
|
-
[types/wallet.ts:71](https://github.com/synonymdev/beignet/blob/
|
|
30
|
+
[types/wallet.ts:71](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L71)
|
|
31
31
|
|
|
32
32
|
___
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ ___
|
|
|
37
37
|
|
|
38
38
|
#### Defined in
|
|
39
39
|
|
|
40
|
-
[types/wallet.ts:75](https://github.com/synonymdev/beignet/blob/
|
|
40
|
+
[types/wallet.ts:75](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L75)
|
|
41
41
|
|
|
42
42
|
___
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ ___
|
|
|
47
47
|
|
|
48
48
|
#### Defined in
|
|
49
49
|
|
|
50
|
-
[types/wallet.ts:76](https://github.com/synonymdev/beignet/blob/
|
|
50
|
+
[types/wallet.ts:76](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L76)
|
|
51
51
|
|
|
52
52
|
___
|
|
53
53
|
|
|
@@ -57,7 +57,7 @@ ___
|
|
|
57
57
|
|
|
58
58
|
#### Defined in
|
|
59
59
|
|
|
60
|
-
[types/wallet.ts:77](https://github.com/synonymdev/beignet/blob/
|
|
60
|
+
[types/wallet.ts:77](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L77)
|
|
61
61
|
|
|
62
62
|
___
|
|
63
63
|
|
|
@@ -67,4 +67,4 @@ ___
|
|
|
67
67
|
|
|
68
68
|
#### Defined in
|
|
69
69
|
|
|
70
|
-
[types/wallet.ts:78](https://github.com/synonymdev/beignet/blob/
|
|
70
|
+
[types/wallet.ts:78](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L78)
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
#### Defined in
|
|
20
20
|
|
|
21
|
-
[types/wallet.ts:
|
|
21
|
+
[types/wallet.ts:346](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L346)
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -39,7 +39,7 @@ ___
|
|
|
39
39
|
|
|
40
40
|
#### Defined in
|
|
41
41
|
|
|
42
|
-
[types/wallet.ts:
|
|
42
|
+
[types/wallet.ts:347](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L347)
|
|
43
43
|
|
|
44
44
|
___
|
|
45
45
|
|
|
@@ -49,4 +49,4 @@ ___
|
|
|
49
49
|
|
|
50
50
|
#### Defined in
|
|
51
51
|
|
|
52
|
-
[types/wallet.ts:
|
|
52
|
+
[types/wallet.ts:355](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L355)
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
|
|
31
31
|
#### Defined in
|
|
32
32
|
|
|
33
|
-
[types/wallet.ts:187](https://github.com/synonymdev/beignet/blob/
|
|
33
|
+
[types/wallet.ts:187](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L187)
|
|
34
34
|
|
|
35
35
|
___
|
|
36
36
|
|
|
37
37
|
### customGetAddress
|
|
38
38
|
|
|
39
|
-
• `Optional` **customGetAddress**: (`data`: [`ICustomGetAddress`](ICustomGetAddress.md)) => `Promise
|
|
39
|
+
• `Optional` **customGetAddress**: (`data`: [`ICustomGetAddress`](ICustomGetAddress.md)) => `Promise`<[`Result`](../README.md#result)<[`IGetAddressResponse`](IGetAddressResponse.md)\>\>
|
|
40
40
|
|
|
41
41
|
#### Type declaration
|
|
42
42
|
|
|
43
|
-
▸ (`data`): `Promise
|
|
43
|
+
▸ (`data`): `Promise`<[`Result`](../README.md#result)<[`IGetAddressResponse`](IGetAddressResponse.md)\>\>
|
|
44
44
|
|
|
45
45
|
##### Parameters
|
|
46
46
|
|
|
@@ -50,21 +50,21 @@ ___
|
|
|
50
50
|
|
|
51
51
|
##### Returns
|
|
52
52
|
|
|
53
|
-
`Promise
|
|
53
|
+
`Promise`<[`Result`](../README.md#result)<[`IGetAddressResponse`](IGetAddressResponse.md)\>\>
|
|
54
54
|
|
|
55
55
|
#### Defined in
|
|
56
56
|
|
|
57
|
-
[types/wallet.ts:197](https://github.com/synonymdev/beignet/blob/
|
|
57
|
+
[types/wallet.ts:197](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L197)
|
|
58
58
|
|
|
59
59
|
___
|
|
60
60
|
|
|
61
61
|
### customGetScriptHash
|
|
62
62
|
|
|
63
|
-
• `Optional` **customGetScriptHash**: (`data`: [`ICustomGetScriptHash`](ICustomGetScriptHash.md)) => `Promise
|
|
63
|
+
• `Optional` **customGetScriptHash**: (`data`: [`ICustomGetScriptHash`](ICustomGetScriptHash.md)) => `Promise`<`string`\>
|
|
64
64
|
|
|
65
65
|
#### Type declaration
|
|
66
66
|
|
|
67
|
-
▸ (`data`): `Promise
|
|
67
|
+
▸ (`data`): `Promise`<`string`\>
|
|
68
68
|
|
|
69
69
|
##### Parameters
|
|
70
70
|
|
|
@@ -74,11 +74,11 @@ ___
|
|
|
74
74
|
|
|
75
75
|
##### Returns
|
|
76
76
|
|
|
77
|
-
`Promise
|
|
77
|
+
`Promise`<`string`\>
|
|
78
78
|
|
|
79
79
|
#### Defined in
|
|
80
80
|
|
|
81
|
-
[types/wallet.ts:200](https://github.com/synonymdev/beignet/blob/
|
|
81
|
+
[types/wallet.ts:200](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L200)
|
|
82
82
|
|
|
83
83
|
___
|
|
84
84
|
|
|
@@ -88,7 +88,7 @@ ___
|
|
|
88
88
|
|
|
89
89
|
#### Defined in
|
|
90
90
|
|
|
91
|
-
[types/wallet.ts:188](https://github.com/synonymdev/beignet/blob/
|
|
91
|
+
[types/wallet.ts:188](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L188)
|
|
92
92
|
|
|
93
93
|
___
|
|
94
94
|
|
|
@@ -106,7 +106,7 @@ ___
|
|
|
106
106
|
|
|
107
107
|
#### Defined in
|
|
108
108
|
|
|
109
|
-
[types/wallet.ts:190](https://github.com/synonymdev/beignet/blob/
|
|
109
|
+
[types/wallet.ts:190](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L190)
|
|
110
110
|
|
|
111
111
|
___
|
|
112
112
|
|
|
@@ -116,7 +116,7 @@ ___
|
|
|
116
116
|
|
|
117
117
|
#### Defined in
|
|
118
118
|
|
|
119
|
-
[types/wallet.ts:183](https://github.com/synonymdev/beignet/blob/
|
|
119
|
+
[types/wallet.ts:183](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L183)
|
|
120
120
|
|
|
121
121
|
___
|
|
122
122
|
|
|
@@ -126,7 +126,7 @@ ___
|
|
|
126
126
|
|
|
127
127
|
#### Defined in
|
|
128
128
|
|
|
129
|
-
[types/wallet.ts:182](https://github.com/synonymdev/beignet/blob/
|
|
129
|
+
[types/wallet.ts:182](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L182)
|
|
130
130
|
|
|
131
131
|
___
|
|
132
132
|
|
|
@@ -136,7 +136,7 @@ ___
|
|
|
136
136
|
|
|
137
137
|
#### Defined in
|
|
138
138
|
|
|
139
|
-
[types/wallet.ts:184](https://github.com/synonymdev/beignet/blob/
|
|
139
|
+
[types/wallet.ts:184](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L184)
|
|
140
140
|
|
|
141
141
|
___
|
|
142
142
|
|
|
@@ -146,7 +146,7 @@ ___
|
|
|
146
146
|
|
|
147
147
|
#### Defined in
|
|
148
148
|
|
|
149
|
-
[types/wallet.ts:186](https://github.com/synonymdev/beignet/blob/
|
|
149
|
+
[types/wallet.ts:186](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L186)
|
|
150
150
|
|
|
151
151
|
___
|
|
152
152
|
|
|
@@ -156,7 +156,7 @@ ___
|
|
|
156
156
|
|
|
157
157
|
#### Defined in
|
|
158
158
|
|
|
159
|
-
[types/wallet.ts:196](https://github.com/synonymdev/beignet/blob/
|
|
159
|
+
[types/wallet.ts:196](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L196)
|
|
160
160
|
|
|
161
161
|
___
|
|
162
162
|
|
|
@@ -166,7 +166,7 @@ ___
|
|
|
166
166
|
|
|
167
167
|
#### Defined in
|
|
168
168
|
|
|
169
|
-
[types/wallet.ts:185](https://github.com/synonymdev/beignet/blob/
|
|
169
|
+
[types/wallet.ts:185](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L185)
|
|
170
170
|
|
|
171
171
|
___
|
|
172
172
|
|
|
@@ -176,7 +176,7 @@ ___
|
|
|
176
176
|
|
|
177
177
|
#### Defined in
|
|
178
178
|
|
|
179
|
-
[types/wallet.ts:201](https://github.com/synonymdev/beignet/blob/
|
|
179
|
+
[types/wallet.ts:201](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L201)
|
|
180
180
|
|
|
181
181
|
___
|
|
182
182
|
|
|
@@ -186,7 +186,7 @@ ___
|
|
|
186
186
|
|
|
187
187
|
#### Defined in
|
|
188
188
|
|
|
189
|
-
[types/wallet.ts:195](https://github.com/synonymdev/beignet/blob/
|
|
189
|
+
[types/wallet.ts:195](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L195)
|
|
190
190
|
|
|
191
191
|
___
|
|
192
192
|
|
|
@@ -196,7 +196,7 @@ ___
|
|
|
196
196
|
|
|
197
197
|
#### Defined in
|
|
198
198
|
|
|
199
|
-
[types/wallet.ts:202](https://github.com/synonymdev/beignet/blob/
|
|
199
|
+
[types/wallet.ts:202](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L202)
|
|
200
200
|
|
|
201
201
|
___
|
|
202
202
|
|
|
@@ -206,4 +206,4 @@ ___
|
|
|
206
206
|
|
|
207
207
|
#### Defined in
|
|
208
208
|
|
|
209
|
-
[types/wallet.ts:189](https://github.com/synonymdev/beignet/blob/
|
|
209
|
+
[types/wallet.ts:189](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L189)
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
|
|
31
31
|
### addressIndex
|
|
32
32
|
|
|
33
|
-
• **addressIndex**: [`TAddressTypeContent`](../README.md#taddresstypecontent)
|
|
33
|
+
• **addressIndex**: [`TAddressTypeContent`](../README.md#taddresstypecontent)<[`IAddress`](IAddress.md)\>
|
|
34
34
|
|
|
35
35
|
#### Defined in
|
|
36
36
|
|
|
37
|
-
[types/wallet.ts:155](https://github.com/synonymdev/beignet/blob/
|
|
37
|
+
[types/wallet.ts:155](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L155)
|
|
38
38
|
|
|
39
39
|
___
|
|
40
40
|
|
|
@@ -44,17 +44,17 @@ ___
|
|
|
44
44
|
|
|
45
45
|
#### Defined in
|
|
46
46
|
|
|
47
|
-
[types/wallet.ts:151](https://github.com/synonymdev/beignet/blob/
|
|
47
|
+
[types/wallet.ts:151](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L151)
|
|
48
48
|
|
|
49
49
|
___
|
|
50
50
|
|
|
51
51
|
### addresses
|
|
52
52
|
|
|
53
|
-
• **addresses**: [`TAddressTypeContent`](../README.md#taddresstypecontent)
|
|
53
|
+
• **addresses**: [`TAddressTypeContent`](../README.md#taddresstypecontent)<[`IAddresses`](IAddresses.md)\>
|
|
54
54
|
|
|
55
55
|
#### Defined in
|
|
56
56
|
|
|
57
|
-
[types/wallet.ts:153](https://github.com/synonymdev/beignet/blob/
|
|
57
|
+
[types/wallet.ts:153](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L153)
|
|
58
58
|
|
|
59
59
|
___
|
|
60
60
|
|
|
@@ -64,7 +64,7 @@ ___
|
|
|
64
64
|
|
|
65
65
|
#### Defined in
|
|
66
66
|
|
|
67
|
-
[types/wallet.ts:165](https://github.com/synonymdev/beignet/blob/
|
|
67
|
+
[types/wallet.ts:165](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L165)
|
|
68
68
|
|
|
69
69
|
___
|
|
70
70
|
|
|
@@ -74,7 +74,7 @@ ___
|
|
|
74
74
|
|
|
75
75
|
#### Defined in
|
|
76
76
|
|
|
77
|
-
[types/wallet.ts:160](https://github.com/synonymdev/beignet/blob/
|
|
77
|
+
[types/wallet.ts:160](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L160)
|
|
78
78
|
|
|
79
79
|
___
|
|
80
80
|
|
|
@@ -84,27 +84,27 @@ ___
|
|
|
84
84
|
|
|
85
85
|
#### Defined in
|
|
86
86
|
|
|
87
|
-
[types/wallet.ts:163](https://github.com/synonymdev/beignet/blob/
|
|
87
|
+
[types/wallet.ts:163](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L163)
|
|
88
88
|
|
|
89
89
|
___
|
|
90
90
|
|
|
91
91
|
### changeAddressIndex
|
|
92
92
|
|
|
93
|
-
• **changeAddressIndex**: [`TAddressTypeContent`](../README.md#taddresstypecontent)
|
|
93
|
+
• **changeAddressIndex**: [`TAddressTypeContent`](../README.md#taddresstypecontent)<[`IAddress`](IAddress.md)\>
|
|
94
94
|
|
|
95
95
|
#### Defined in
|
|
96
96
|
|
|
97
|
-
[types/wallet.ts:156](https://github.com/synonymdev/beignet/blob/
|
|
97
|
+
[types/wallet.ts:156](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L156)
|
|
98
98
|
|
|
99
99
|
___
|
|
100
100
|
|
|
101
101
|
### changeAddresses
|
|
102
102
|
|
|
103
|
-
• **changeAddresses**: [`TAddressTypeContent`](../README.md#taddresstypecontent)
|
|
103
|
+
• **changeAddresses**: [`TAddressTypeContent`](../README.md#taddresstypecontent)<[`IAddresses`](IAddresses.md)\>
|
|
104
104
|
|
|
105
105
|
#### Defined in
|
|
106
106
|
|
|
107
|
-
[types/wallet.ts:154](https://github.com/synonymdev/beignet/blob/
|
|
107
|
+
[types/wallet.ts:154](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L154)
|
|
108
108
|
|
|
109
109
|
___
|
|
110
110
|
|
|
@@ -114,7 +114,7 @@ ___
|
|
|
114
114
|
|
|
115
115
|
#### Defined in
|
|
116
116
|
|
|
117
|
-
[types/wallet.ts:167](https://github.com/synonymdev/beignet/blob/
|
|
117
|
+
[types/wallet.ts:167](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L167)
|
|
118
118
|
|
|
119
119
|
___
|
|
120
120
|
|
|
@@ -124,7 +124,7 @@ ___
|
|
|
124
124
|
|
|
125
125
|
#### Defined in
|
|
126
126
|
|
|
127
|
-
[types/wallet.ts:168](https://github.com/synonymdev/beignet/blob/
|
|
127
|
+
[types/wallet.ts:168](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L168)
|
|
128
128
|
|
|
129
129
|
___
|
|
130
130
|
|
|
@@ -134,7 +134,7 @@ ___
|
|
|
134
134
|
|
|
135
135
|
#### Defined in
|
|
136
136
|
|
|
137
|
-
[types/wallet.ts:152](https://github.com/synonymdev/beignet/blob/
|
|
137
|
+
[types/wallet.ts:152](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L152)
|
|
138
138
|
|
|
139
139
|
___
|
|
140
140
|
|
|
@@ -144,27 +144,27 @@ ___
|
|
|
144
144
|
|
|
145
145
|
#### Defined in
|
|
146
146
|
|
|
147
|
-
[types/wallet.ts:150](https://github.com/synonymdev/beignet/blob/
|
|
147
|
+
[types/wallet.ts:150](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L150)
|
|
148
148
|
|
|
149
149
|
___
|
|
150
150
|
|
|
151
151
|
### lastUsedAddressIndex
|
|
152
152
|
|
|
153
|
-
• **lastUsedAddressIndex**: [`TAddressTypeContent`](../README.md#taddresstypecontent)
|
|
153
|
+
• **lastUsedAddressIndex**: [`TAddressTypeContent`](../README.md#taddresstypecontent)<[`IAddress`](IAddress.md)\>
|
|
154
154
|
|
|
155
155
|
#### Defined in
|
|
156
156
|
|
|
157
|
-
[types/wallet.ts:157](https://github.com/synonymdev/beignet/blob/
|
|
157
|
+
[types/wallet.ts:157](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L157)
|
|
158
158
|
|
|
159
159
|
___
|
|
160
160
|
|
|
161
161
|
### lastUsedChangeAddressIndex
|
|
162
162
|
|
|
163
|
-
• **lastUsedChangeAddressIndex**: [`TAddressTypeContent`](../README.md#taddresstypecontent)
|
|
163
|
+
• **lastUsedChangeAddressIndex**: [`TAddressTypeContent`](../README.md#taddresstypecontent)<[`IAddress`](IAddress.md)\>
|
|
164
164
|
|
|
165
165
|
#### Defined in
|
|
166
166
|
|
|
167
|
-
[types/wallet.ts:158](https://github.com/synonymdev/beignet/blob/
|
|
167
|
+
[types/wallet.ts:158](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L158)
|
|
168
168
|
|
|
169
169
|
___
|
|
170
170
|
|
|
@@ -174,7 +174,7 @@ ___
|
|
|
174
174
|
|
|
175
175
|
#### Defined in
|
|
176
176
|
|
|
177
|
-
[types/wallet.ts:166](https://github.com/synonymdev/beignet/blob/
|
|
177
|
+
[types/wallet.ts:166](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L166)
|
|
178
178
|
|
|
179
179
|
___
|
|
180
180
|
|
|
@@ -184,7 +184,7 @@ ___
|
|
|
184
184
|
|
|
185
185
|
#### Defined in
|
|
186
186
|
|
|
187
|
-
[types/wallet.ts:164](https://github.com/synonymdev/beignet/blob/
|
|
187
|
+
[types/wallet.ts:164](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L164)
|
|
188
188
|
|
|
189
189
|
___
|
|
190
190
|
|
|
@@ -194,7 +194,7 @@ ___
|
|
|
194
194
|
|
|
195
195
|
#### Defined in
|
|
196
196
|
|
|
197
|
-
[types/wallet.ts:162](https://github.com/synonymdev/beignet/blob/
|
|
197
|
+
[types/wallet.ts:162](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L162)
|
|
198
198
|
|
|
199
199
|
___
|
|
200
200
|
|
|
@@ -204,7 +204,7 @@ ___
|
|
|
204
204
|
|
|
205
205
|
#### Defined in
|
|
206
206
|
|
|
207
|
-
[types/wallet.ts:161](https://github.com/synonymdev/beignet/blob/
|
|
207
|
+
[types/wallet.ts:161](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L161)
|
|
208
208
|
|
|
209
209
|
___
|
|
210
210
|
|
|
@@ -214,4 +214,4 @@ ___
|
|
|
214
214
|
|
|
215
215
|
#### Defined in
|
|
216
216
|
|
|
217
|
-
[types/wallet.ts:159](https://github.com/synonymdev/beignet/blob/
|
|
217
|
+
[types/wallet.ts:159](https://github.com/synonymdev/beignet/blob/88520f5/src/types/wallet.ts#L159)
|
package/package.json
CHANGED
package/src/electrum/index.ts
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
ITransaction,
|
|
20
20
|
ITxHash,
|
|
21
21
|
IUtxo,
|
|
22
|
-
|
|
22
|
+
EElectrumNetworks,
|
|
23
23
|
TServer,
|
|
24
24
|
TSubscribedReceive,
|
|
25
25
|
TTxResponse,
|
|
@@ -59,7 +59,7 @@ export class Electrum {
|
|
|
59
59
|
|
|
60
60
|
public servers?: TServer | TServer[];
|
|
61
61
|
public readonly network: EAvailableNetworks;
|
|
62
|
-
public readonly electrumNetwork:
|
|
62
|
+
public readonly electrumNetwork: EElectrumNetworks;
|
|
63
63
|
public connectedToElectrum: boolean;
|
|
64
64
|
public onReceive?: (data: unknown) => void;
|
|
65
65
|
constructor({
|
|
@@ -186,18 +186,18 @@ export class Electrum {
|
|
|
186
186
|
/**
|
|
187
187
|
* Returns the network string for use with Electrum methods.
|
|
188
188
|
* @param {EAvailableNetworks} [network]
|
|
189
|
-
* @return {
|
|
189
|
+
* @return {EElectrumNetworks}
|
|
190
190
|
*/
|
|
191
|
-
getElectrumNetwork(network: EAvailableNetworks):
|
|
191
|
+
getElectrumNetwork(network: EAvailableNetworks): EElectrumNetworks {
|
|
192
192
|
switch (network) {
|
|
193
193
|
case 'bitcoin':
|
|
194
|
-
return
|
|
194
|
+
return EElectrumNetworks.bitcoin;
|
|
195
195
|
case 'testnet':
|
|
196
|
-
return
|
|
196
|
+
return EElectrumNetworks.bitcoinTestnet;
|
|
197
197
|
case 'regtest':
|
|
198
|
-
return
|
|
198
|
+
return EElectrumNetworks.bitcoinRegtest;
|
|
199
199
|
default:
|
|
200
|
-
return
|
|
200
|
+
return EElectrumNetworks.bitcoinTestnet;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
|