Skip to content
This repository was archived by the owner on Sep 6, 2024. It is now read-only.

Commit 2dad22c

Browse files
committed
chore: Dependency update
1 parent cdb088e commit 2dad22c

File tree

412 files changed

+12093
-11673
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+12093
-11673
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,9 @@ module.exports = {
12611261
"unicorn/prefer-modern-dom-apis": [
12621262
"error"
12631263
],
1264+
"unicorn/prefer-module": [
1265+
"off"
1266+
],
12641267
"unicorn/prefer-negative-index": [
12651268
"error"
12661269
],

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: "CodeQL"
33
on:
44
push:
55
branches:
6-
- feature/chrysalis-pt2
6+
- main
7+
- develop
78
paths:
89
- 'src/**'
910
- '.github/codeql/**'

.github/workflows/chrysalis-pt2.yml renamed to .github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Client Build Chrysalis Pt 2
1+
name: Library Build Main/Develop
22

33
on:
44
push:
5-
branches: [chrysalis]
5+
branches: [main]
66
paths:
77
- "src/**"
8-
- ".github/workflows/chrysalis-pt2.yml"
8+
- ".github/workflows/main.yml"
99
pull_request:
10-
branches: [chrysalis]
10+
branches: [develop]
1111
paths:
1212
- "src/**"
13-
- ".github/workflows/chrysalis-pt2.yml"
13+
- ".github/workflows/develop.yml"
1414

1515

1616
jobs:

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p align="center">
44
<a href="https://discord.iota.org/" style="text-decoration:none;"><img src="https://img.shields.io/badge/Discord-9cf.svg?logo=discord" alt="Discord"></a>
55
<a href="https://iota.stackexchange.com/" style="text-decoration:none;"><img src="https://img.shields.io/badge/StackExchange-9cf.svg?logo=stackexchange" alt="StackExchange"></a>
6-
<a href="https://github.com/iotaledger/iota.js/blob/master/LICENSE" style="text-decoration:none;"><img src="https://img.shields.io/github/license/iotaledger/iota.js.svg" alt="Apache-2.0 license"></a>
6+
<a href="https://github.com/iotaledger/iota.js/blob/main/LICENSE" style="text-decoration:none;"><img src="https://img.shields.io/github/license/iotaledger/iota.js.svg" alt="Apache-2.0 license"></a>
77
</p>
88
99
<p align="center">
@@ -24,7 +24,7 @@
2424

2525
> This library is functionally complete, but it is recommended to use [iota.rs](https://github.com/iotaledger/iota.rs). The rust library will be more heavily maintained and is much more performant.
2626
27-
Client library for IOTA Chrysalis network, implemeted in TypeScript to strongly type the objects sent and received from the API.
27+
Client library for IOTA network, implemeted in TypeScript to strongly type the objects sent and received from the API.
2828

2929
Also includes High Level operations and MQTT support.
3030

@@ -33,7 +33,7 @@ Runs in both NodeJS and Browser environments.
3333
## Prerequisites
3434

3535
```shell
36-
npm install iotaledger/iota.js#chrysalis
36+
npm install @iota/iota.js
3737
```
3838

3939
## Example
@@ -42,7 +42,7 @@ npm install iotaledger/iota.js#chrysalis
4242
const { SingleNodeClient } = require("@iota/iota.js");
4343

4444
async function run() {
45-
const client = new SingleNodeClient("http://localhost:14265");
45+
const client = new SingleNodeClient("https://chrysalis-nodes.iota.org");
4646

4747
const info = await client.info();
4848
console.log("Node Info");
@@ -127,12 +127,12 @@ You can see the model definitions for all the objects in the [typings](./typings
127127

128128
## Proof of Work
129129

130-
A very simple local proof of work provider [./localPowProvider](./src/pow/localPowProvider.ts) is implemented but not used by default.
130+
A very simple local proof of work provider [./localPowProvider](./src/pow/localPowProvider.ts) is implemented but not used by default, it is recommended to use remote PoW with this library.
131131
The example is included for reference purposes, but should not be used as it is very slow.
132132
You can experiment using it or any other PoW implementation by passing it in the options parameter of the SingleNodeClient constructor.
133133

134134
```js
135-
const client = new SingleNodeClient("http://localhost:14265", { powProvider: new LocalPowProvider() });
135+
const client = new SingleNodeClient("https://chrysalis-nodes.iota.org", { powProvider: new LocalPowProvider() });
136136
```
137137

138138
## Additional Examples
@@ -155,4 +155,4 @@ See our [contributing guidelines](.github/CONTRIBUTING.md) for more information.
155155

156156
## Joining the discussion
157157

158-
If you want to get involved in the community, need help with getting set up, have any issues or just want to discuss IOTA, Distributed Registry Technology (DRT), and IoT with other people, feel free to join our [Discord](https://discord.iota.org/).
158+
If you want to get involved in the community, need help with getting set up, have any issues or just want to discuss IOTA, feel free to join our [Discord](https://discord.iota.org/).

dist/iota.browser.js

Lines changed: 192 additions & 158 deletions
Large diffs are not rendered by default.

dist/iota.browser.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iota.js

Lines changed: 192 additions & 158 deletions
Large diffs are not rendered by default.

dist/iota.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/README.md

Lines changed: 114 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,120 @@
1-
@iota/iota.js
1+
**[@iota/iota.js](README.md)**
2+
3+
> Globals
24
35
# @iota/iota.js
46

5-
## Table of contents
7+
## Index
68

79
### Modules
810

9-
- [addressTypes/ed25519Address](modules/addresstypes_ed25519address.md)
10-
- [binary/address](modules/binary_address.md)
11-
- [binary/common](modules/binary_common.md)
12-
- [binary/funds](modules/binary_funds.md)
13-
- [binary/input](modules/binary_input.md)
14-
- [binary/message](modules/binary_message.md)
15-
- [binary/output](modules/binary_output.md)
16-
- [binary/payload](modules/binary_payload.md)
17-
- [binary/signature](modules/binary_signature.md)
18-
- [binary/transaction](modules/binary_transaction.md)
19-
- [binary/unlockBlock](modules/binary_unlockblock.md)
20-
- [clients/clientError](modules/clients_clienterror.md)
21-
- [clients/mqttClient](modules/clients_mqttclient.md)
22-
- [clients/singleNodeClient](modules/clients_singlenodeclient.md)
23-
- [clients/singleNodeClientOptions](modules/clients_singlenodeclientoptions.md)
24-
- [crypto/bech32](modules/crypto_bech32.md)
25-
- [crypto/bip32Path](modules/crypto_bip32path.md)
26-
- [crypto/bip39](modules/crypto_bip39.md)
27-
- [crypto/blake2b](modules/crypto_blake2b.md)
28-
- [crypto/curl](modules/crypto_curl.md)
29-
- [crypto/ed25519](modules/crypto_ed25519.md)
30-
- [crypto/edwards25519/bigIntCommon](modules/crypto_edwards25519_bigintcommon.md)
31-
- [crypto/edwards25519/cachedGroupElement](modules/crypto_edwards25519_cachedgroupelement.md)
32-
- [crypto/edwards25519/completedGroupElement](modules/crypto_edwards25519_completedgroupelement.md)
33-
- [crypto/edwards25519/const](modules/crypto_edwards25519_const.md)
34-
- [crypto/edwards25519/extendedGroupElement](modules/crypto_edwards25519_extendedgroupelement.md)
35-
- [crypto/edwards25519/fieldElement](modules/crypto_edwards25519_fieldelement.md)
36-
- [crypto/edwards25519/preComputedGroupElement](modules/crypto_edwards25519_precomputedgroupelement.md)
37-
- [crypto/edwards25519/projectiveGroupElement](modules/crypto_edwards25519_projectivegroupelement.md)
38-
- [crypto/edwards25519/scalar](modules/crypto_edwards25519_scalar.md)
39-
- [crypto/hmacSha256](modules/crypto_hmacsha256.md)
40-
- [crypto/hmacSha512](modules/crypto_hmacsha512.md)
41-
- [crypto/pbkdf2](modules/crypto_pbkdf2.md)
42-
- [crypto/sha256](modules/crypto_sha256.md)
43-
- [crypto/sha512](modules/crypto_sha512.md)
44-
- [crypto/slip0010](modules/crypto_slip0010.md)
45-
- [crypto/wordlists/english](modules/crypto_wordlists_english.md)
46-
- [crypto/zip215](modules/crypto_zip215.md)
47-
- [encoding/b1t6](modules/encoding_b1t6.md)
48-
- [highLevel/addresses](modules/highlevel_addresses.md)
49-
- [highLevel/getBalance](modules/highlevel_getbalance.md)
50-
- [highLevel/getUnspentAddress](modules/highlevel_getunspentaddress.md)
51-
- [highLevel/getUnspentAddresses](modules/highlevel_getunspentaddresses.md)
52-
- [highLevel/promote](modules/highlevel_promote.md)
53-
- [highLevel/reattach](modules/highlevel_reattach.md)
54-
- [highLevel/retrieveData](modules/highlevel_retrievedata.md)
55-
- [highLevel/retry](modules/highlevel_retry.md)
56-
- [highLevel/send](modules/highlevel_send.md)
57-
- [highLevel/sendAdvanced](modules/highlevel_sendadvanced.md)
58-
- [highLevel/sendData](modules/highlevel_senddata.md)
59-
- [models/IAddress](modules/models_iaddress.md)
60-
- [models/IBip44GeneratorState](modules/models_ibip44generatorstate.md)
61-
- [models/IClient](modules/models_iclient.md)
62-
- [models/IEd25519Address](modules/models_ied25519address.md)
63-
- [models/IEd25519Signature](modules/models_ied25519signature.md)
64-
- [models/IGossipHeartbeat](modules/models_igossipheartbeat.md)
65-
- [models/IGossipMetrics](modules/models_igossipmetrics.md)
66-
- [models/IIndexationPayload](modules/models_iindexationpayload.md)
67-
- [models/IKeyPair](modules/models_ikeypair.md)
68-
- [models/IMessage](modules/models_imessage.md)
69-
- [models/IMessageMetadata](modules/models_imessagemetadata.md)
70-
- [models/IMigratedFunds](modules/models_imigratedfunds.md)
71-
- [models/IMilestonePayload](modules/models_imilestonepayload.md)
72-
- [models/IMqttClient](modules/models_imqttclient.md)
73-
- [models/IMqttStatus](modules/models_imqttstatus.md)
74-
- [models/INodeInfo](modules/models_inodeinfo.md)
75-
- [models/IPeer](modules/models_ipeer.md)
76-
- [models/IPowProvider](modules/models_ipowprovider.md)
77-
- [models/IReceiptPayload](modules/models_ireceiptpayload.md)
78-
- [models/IReferenceUnlockBlock](modules/models_ireferenceunlockblock.md)
79-
- [models/ISeed](modules/models_iseed.md)
80-
- [models/ISigLockedDustAllowanceOutput](modules/models_isiglockeddustallowanceoutput.md)
81-
- [models/ISigLockedSingleOutput](modules/models_isiglockedsingleoutput.md)
82-
- [models/ISignatureUnlockBlock](modules/models_isignatureunlockblock.md)
83-
- [models/ITransactionEssence](modules/models_itransactionessence.md)
84-
- [models/ITransactionPayload](modules/models_itransactionpayload.md)
85-
- [models/ITreasury](modules/models_itreasury.md)
86-
- [models/ITreasuryInput](modules/models_itreasuryinput.md)
87-
- [models/ITreasuryOutput](modules/models_itreasuryoutput.md)
88-
- [models/ITreasuryTransactionPayload](modules/models_itreasurytransactionpayload.md)
89-
- [models/ITypeBase](modules/models_itypebase.md)
90-
- [models/IUTXOInput](modules/models_iutxoinput.md)
91-
- [models/api/IAddressOutputsResponse](modules/models_api_iaddressoutputsresponse.md)
92-
- [models/api/IAddressResponse](modules/models_api_iaddressresponse.md)
93-
- [models/api/IChildrenResponse](modules/models_api_ichildrenresponse.md)
94-
- [models/api/IMessageIdResponse](modules/models_api_imessageidresponse.md)
95-
- [models/api/IMessagesResponse](modules/models_api_imessagesresponse.md)
96-
- [models/api/IMilestoneResponse](modules/models_api_imilestoneresponse.md)
97-
- [models/api/IMilestoneUtxoChangesResponse](modules/models_api_imilestoneutxochangesresponse.md)
98-
- [models/api/IMqttMilestoneResponse](modules/models_api_imqttmilestoneresponse.md)
99-
- [models/api/IOutputResponse](modules/models_api_ioutputresponse.md)
100-
- [models/api/IReceiptsResponse](modules/models_api_ireceiptsresponse.md)
101-
- [models/api/IResponse](modules/models_api_iresponse.md)
102-
- [models/api/ITipsResponse](modules/models_api_itipsresponse.md)
103-
- [models/conflictReason](modules/models_conflictreason.md)
104-
- [models/ledgerInclusionState](modules/models_ledgerinclusionstate.md)
105-
- [models/units](modules/models_units.md)
106-
- [pow/localPowProvider](modules/pow_localpowprovider.md)
107-
- [resources/conflictReasonStrings](modules/resources_conflictreasonstrings.md)
108-
- [seedTypes/ed25519Seed](modules/seedtypes_ed25519seed.md)
109-
- [utils/arrayHelper](modules/utils_arrayhelper.md)
110-
- [utils/bech32Helper](modules/utils_bech32helper.md)
111-
- [utils/bigIntHelper](modules/utils_biginthelper.md)
112-
- [utils/converter](modules/utils_converter.md)
113-
- [utils/logging](modules/utils_logging.md)
114-
- [utils/powHelper](modules/utils_powhelper.md)
115-
- [utils/randomHelper](modules/utils_randomhelper.md)
116-
- [utils/readStream](modules/utils_readstream.md)
117-
- [utils/unitsHelper](modules/utils_unitshelper.md)
118-
- [utils/writeStream](modules/utils_writestream.md)
11+
* ["addressTypes/ed25519Address"](modules/_addresstypes_ed25519address_.md)
12+
* ["binary/address"](modules/_binary_address_.md)
13+
* ["binary/common"](modules/_binary_common_.md)
14+
* ["binary/funds"](modules/_binary_funds_.md)
15+
* ["binary/input"](modules/_binary_input_.md)
16+
* ["binary/message"](modules/_binary_message_.md)
17+
* ["binary/output"](modules/_binary_output_.md)
18+
* ["binary/payload"](modules/_binary_payload_.md)
19+
* ["binary/signature"](modules/_binary_signature_.md)
20+
* ["binary/transaction"](modules/_binary_transaction_.md)
21+
* ["binary/unlockBlock"](modules/_binary_unlockblock_.md)
22+
* ["clients/clientError"](modules/_clients_clienterror_.md)
23+
* ["clients/mqttClient"](modules/_clients_mqttclient_.md)
24+
* ["clients/singleNodeClient"](modules/_clients_singlenodeclient_.md)
25+
* ["clients/singleNodeClientOptions"](modules/_clients_singlenodeclientoptions_.md)
26+
* ["crypto/bech32"](modules/_crypto_bech32_.md)
27+
* ["crypto/bip32Path"](modules/_crypto_bip32path_.md)
28+
* ["crypto/bip39"](modules/_crypto_bip39_.md)
29+
* ["crypto/blake2b"](modules/_crypto_blake2b_.md)
30+
* ["crypto/curl"](modules/_crypto_curl_.md)
31+
* ["crypto/ed25519"](modules/_crypto_ed25519_.md)
32+
* ["crypto/edwards25519/bigIntCommon"](modules/_crypto_edwards25519_bigintcommon_.md)
33+
* ["crypto/edwards25519/cachedGroupElement"](modules/_crypto_edwards25519_cachedgroupelement_.md)
34+
* ["crypto/edwards25519/completedGroupElement"](modules/_crypto_edwards25519_completedgroupelement_.md)
35+
* ["crypto/edwards25519/const"](modules/_crypto_edwards25519_const_.md)
36+
* ["crypto/edwards25519/extendedGroupElement"](modules/_crypto_edwards25519_extendedgroupelement_.md)
37+
* ["crypto/edwards25519/fieldElement"](modules/_crypto_edwards25519_fieldelement_.md)
38+
* ["crypto/edwards25519/preComputedGroupElement"](modules/_crypto_edwards25519_precomputedgroupelement_.md)
39+
* ["crypto/edwards25519/projectiveGroupElement"](modules/_crypto_edwards25519_projectivegroupelement_.md)
40+
* ["crypto/edwards25519/scalar"](modules/_crypto_edwards25519_scalar_.md)
41+
* ["crypto/hmacSha256"](modules/_crypto_hmacsha256_.md)
42+
* ["crypto/hmacSha512"](modules/_crypto_hmacsha512_.md)
43+
* ["crypto/pbkdf2"](modules/_crypto_pbkdf2_.md)
44+
* ["crypto/sha256"](modules/_crypto_sha256_.md)
45+
* ["crypto/sha512"](modules/_crypto_sha512_.md)
46+
* ["crypto/slip0010"](modules/_crypto_slip0010_.md)
47+
* ["crypto/wordlists/english"](modules/_crypto_wordlists_english_.md)
48+
* ["crypto/zip215"](modules/_crypto_zip215_.md)
49+
* ["encoding/b1t6"](modules/_encoding_b1t6_.md)
50+
* ["highLevel/addresses"](modules/_highlevel_addresses_.md)
51+
* ["highLevel/getBalance"](modules/_highlevel_getbalance_.md)
52+
* ["highLevel/getUnspentAddress"](modules/_highlevel_getunspentaddress_.md)
53+
* ["highLevel/getUnspentAddresses"](modules/_highlevel_getunspentaddresses_.md)
54+
* ["highLevel/promote"](modules/_highlevel_promote_.md)
55+
* ["highLevel/reattach"](modules/_highlevel_reattach_.md)
56+
* ["highLevel/retrieveData"](modules/_highlevel_retrievedata_.md)
57+
* ["highLevel/retry"](modules/_highlevel_retry_.md)
58+
* ["highLevel/send"](modules/_highlevel_send_.md)
59+
* ["highLevel/sendAdvanced"](modules/_highlevel_sendadvanced_.md)
60+
* ["highLevel/sendData"](modules/_highlevel_senddata_.md)
61+
* ["models/IAddress"](modules/_models_iaddress_.md)
62+
* ["models/IBip44GeneratorState"](modules/_models_ibip44generatorstate_.md)
63+
* ["models/IClient"](modules/_models_iclient_.md)
64+
* ["models/IEd25519Address"](modules/_models_ied25519address_.md)
65+
* ["models/IEd25519Signature"](modules/_models_ied25519signature_.md)
66+
* ["models/IGossipHeartbeat"](modules/_models_igossipheartbeat_.md)
67+
* ["models/IGossipMetrics"](modules/_models_igossipmetrics_.md)
68+
* ["models/IIndexationPayload"](modules/_models_iindexationpayload_.md)
69+
* ["models/IKeyPair"](modules/_models_ikeypair_.md)
70+
* ["models/IMessage"](modules/_models_imessage_.md)
71+
* ["models/IMessageMetadata"](modules/_models_imessagemetadata_.md)
72+
* ["models/IMigratedFunds"](modules/_models_imigratedfunds_.md)
73+
* ["models/IMilestonePayload"](modules/_models_imilestonepayload_.md)
74+
* ["models/IMqttClient"](modules/_models_imqttclient_.md)
75+
* ["models/IMqttStatus"](modules/_models_imqttstatus_.md)
76+
* ["models/INodeInfo"](modules/_models_inodeinfo_.md)
77+
* ["models/IPeer"](modules/_models_ipeer_.md)
78+
* ["models/IPowProvider"](modules/_models_ipowprovider_.md)
79+
* ["models/IReceiptPayload"](modules/_models_ireceiptpayload_.md)
80+
* ["models/IReferenceUnlockBlock"](modules/_models_ireferenceunlockblock_.md)
81+
* ["models/ISeed"](modules/_models_iseed_.md)
82+
* ["models/ISigLockedDustAllowanceOutput"](modules/_models_isiglockeddustallowanceoutput_.md)
83+
* ["models/ISigLockedSingleOutput"](modules/_models_isiglockedsingleoutput_.md)
84+
* ["models/ISignatureUnlockBlock"](modules/_models_isignatureunlockblock_.md)
85+
* ["models/ITransactionEssence"](modules/_models_itransactionessence_.md)
86+
* ["models/ITransactionPayload"](modules/_models_itransactionpayload_.md)
87+
* ["models/ITreasury"](modules/_models_itreasury_.md)
88+
* ["models/ITreasuryInput"](modules/_models_itreasuryinput_.md)
89+
* ["models/ITreasuryOutput"](modules/_models_itreasuryoutput_.md)
90+
* ["models/ITreasuryTransactionPayload"](modules/_models_itreasurytransactionpayload_.md)
91+
* ["models/ITypeBase"](modules/_models_itypebase_.md)
92+
* ["models/IUTXOInput"](modules/_models_iutxoinput_.md)
93+
* ["models/api/IAddressOutputsResponse"](modules/_models_api_iaddressoutputsresponse_.md)
94+
* ["models/api/IAddressResponse"](modules/_models_api_iaddressresponse_.md)
95+
* ["models/api/IChildrenResponse"](modules/_models_api_ichildrenresponse_.md)
96+
* ["models/api/IMessageIdResponse"](modules/_models_api_imessageidresponse_.md)
97+
* ["models/api/IMessagesResponse"](modules/_models_api_imessagesresponse_.md)
98+
* ["models/api/IMilestoneResponse"](modules/_models_api_imilestoneresponse_.md)
99+
* ["models/api/IMilestoneUtxoChangesResponse"](modules/_models_api_imilestoneutxochangesresponse_.md)
100+
* ["models/api/IMqttMilestoneResponse"](modules/_models_api_imqttmilestoneresponse_.md)
101+
* ["models/api/IOutputResponse"](modules/_models_api_ioutputresponse_.md)
102+
* ["models/api/IReceiptsResponse"](modules/_models_api_ireceiptsresponse_.md)
103+
* ["models/api/IResponse"](modules/_models_api_iresponse_.md)
104+
* ["models/api/ITipsResponse"](modules/_models_api_itipsresponse_.md)
105+
* ["models/conflictReason"](modules/_models_conflictreason_.md)
106+
* ["models/ledgerInclusionState"](modules/_models_ledgerinclusionstate_.md)
107+
* ["models/units"](modules/_models_units_.md)
108+
* ["pow/localPowProvider"](modules/_pow_localpowprovider_.md)
109+
* ["resources/conflictReasonStrings"](modules/_resources_conflictreasonstrings_.md)
110+
* ["seedTypes/ed25519Seed"](modules/_seedtypes_ed25519seed_.md)
111+
* ["utils/arrayHelper"](modules/_utils_arrayhelper_.md)
112+
* ["utils/bech32Helper"](modules/_utils_bech32helper_.md)
113+
* ["utils/bigIntHelper"](modules/_utils_biginthelper_.md)
114+
* ["utils/converter"](modules/_utils_converter_.md)
115+
* ["utils/logging"](modules/_utils_logging_.md)
116+
* ["utils/powHelper"](modules/_utils_powhelper_.md)
117+
* ["utils/randomHelper"](modules/_utils_randomhelper_.md)
118+
* ["utils/readStream"](modules/_utils_readstream_.md)
119+
* ["utils/unitsHelper"](modules/_utils_unitshelper_.md)
120+
* ["utils/writeStream"](modules/_utils_writestream_.md)

0 commit comments

Comments
 (0)