Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main in feat/next #530

Merged
merged 479 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
479 commits
Select commit Hold shift + click to select a range
413ba47
Merge branch 'feat/next' into guardianSigner
andreibancioiu Feb 24, 2023
802f7a0
Merge pull request #10 from multiversx/guardianSigner
andreibancioiu Feb 27, 2023
b15f6d1
Bit of decoupling.
andreibancioiu Mar 13, 2023
c73b739
Merge pull request #25 from multiversx/next-13
andreibancioiu Mar 21, 2023
19dc566
@noble/ed25519 for sign & verify (user wallets).
andreibancioiu Mar 21, 2023
88bc18d
Add benchmark for sign & verify (before switching to noble crypto libs).
andreibancioiu Mar 21, 2023
98d9db4
Merge pull request #26 from multiversx/benchmark-sign-verify
andreibancioiu Mar 21, 2023
38a9176
Merge branch 'feat/next' into noble-ed25519
andreibancioiu Mar 21, 2023
5dc401e
Fix after self-review.
andreibancioiu Mar 21, 2023
486ae63
Merge pull request #27 from multiversx/noble-ed25519
andreibancioiu Mar 22, 2023
a84cb3d
Merge pull request #24 from multiversx/feat/next
andreibancioiu Mar 22, 2023
33c5ebc
Implement getGuardianData().
andreibancioiu Apr 13, 2023
930f248
Rename param.
andreibancioiu Apr 13, 2023
af389df
Add "getCurrentGuardianAddress".
andreibancioiu Apr 13, 2023
769819c
Merge pull request #39 from multiversx/get-guardian-data
andreibancioiu Apr 18, 2023
8c341c2
Automatically handle both kinds of keystores in "UserWallet.loadSecre…
andreibancioiu May 8, 2023
67b19c8
Add extra unit test.
andreibancioiu May 8, 2023
19d1426
Fix after review.
andreibancioiu May 9, 2023
203f63a
Merge pull request #39 from multiversx/handle-keystores
andreibancioiu May 9, 2023
322257a
Workaround: receive Uint8Array instead of Buffer.
andreibancioiu May 24, 2023
36d64fd
Reference buffer in globals (temporary workaround).
andreibancioiu May 24, 2023
c91a71d
Workaround on constructor.
andreibancioiu May 24, 2023
ad1bbe9
Fix get public key.
andreibancioiu May 24, 2023
351abcb
Add proper casts.
andreibancioiu May 24, 2023
45db24d
Merge pull request #40 from multiversx/uint8array-vs-buffer
andreibancioiu May 24, 2023
4ba9d93
add `TransactionEventData` class
popenta Jun 26, 2023
b61dd61
fix
popenta Jun 26, 2023
88e409d
rename variable
popenta Jun 26, 2023
550244e
Merge pull request #40 from multiversx/tx-event-data
popenta Jun 26, 2023
f1076f9
new tx status for proxy
popenta Jul 11, 2023
a080032
started to fix tests
popenta Jul 11, 2023
275e180
change variable names to camel case
popenta Jul 11, 2023
66d12e7
Merge branch 'process-status' into default-nft-balance
popenta Jul 11, 2023
b95ca00
fix tests
popenta Jul 11, 2023
a2c07bc
fix after review
popenta Jul 12, 2023
ad3180f
Merge pull request #41 from multiversx/process-status
popenta Jul 12, 2023
539eea6
Merge branch 'feat/proxy-tx-status' into default-nft-balance
popenta Jul 12, 2023
a9e35e4
small fixes & tests refactoring
popenta Jul 12, 2023
94ee687
update test
popenta Jul 12, 2023
19166b4
update test
popenta Jul 12, 2023
996426d
fixes after review
popenta Jul 13, 2023
4b771ad
Merge pull request #42 from multiversx/default-nft-balance
popenta Jul 13, 2023
809494c
fix test
popenta Aug 23, 2023
f029b7f
Merge pull request #44 from multiversx/fix-network-status-test
popenta Aug 23, 2023
e5df06c
Merge pull request #43 from multiversx/feat/proxy-tx-status
popenta Aug 24, 2023
2a18abd
For Sirius: handle logs.events.additionalData.
andreibancioiu Oct 31, 2023
46f3afc
Fix tests.
andreibancioiu Nov 9, 2023
04517d1
Fix tests.
andreibancioiu Nov 9, 2023
0001c39
Merge pull request #49 from multiversx/logs-additional-data-sirius
andreibancioiu Nov 9, 2023
f46cc4c
add extra check
popenta Dec 6, 2023
87eb57d
remove only
popenta Dec 6, 2023
cc4d2e6
add extra assert for unit test
popenta Dec 6, 2023
9e797c5
add new line
popenta Dec 6, 2023
1366cf1
make error more explicit
popenta Dec 7, 2023
7470df5
Merge pull request #43 from multiversx/add-extra-check-decrypt-secret…
popenta Dec 7, 2023
a0393e3
Fix integration test.
andreibancioiu Jan 9, 2024
302dae1
Merge pull request #54 from multiversx/audit-fix-axios
andreibancioiu Jan 10, 2024
bc60489
Remove Axios as dev-dependency.
andreibancioiu Jan 17, 2024
fe4d5f8
Merge pull request #44 from multiversx/dev-dependencies-2024-01-17
andreibancioiu Jan 18, 2024
bf426bb
add suport for TransactionNext
popenta Feb 16, 2024
ab6f64a
fixes after review
popenta Feb 19, 2024
9ccbae5
Merge pull request #55 from multiversx/add-support-for-tx-next
popenta Feb 20, 2024
fc9cd7e
Add TransactionOnNetwork.function.
andreibancioiu Mar 14, 2024
da92935
Ignore some differences.
andreibancioiu Mar 20, 2024
9fb5a20
Merge pull request #58 from multiversx/function-14
andreibancioiu Mar 21, 2024
f27408d
Accept "Uint8Array", in addition to "Buffer" on the main flows.
andreibancioiu Mar 21, 2024
dc50113
Merge pull request #47 from multiversx/next-core
andreibancioiu Mar 21, 2024
445bd03
Export "TransactionEventData".
andreibancioiu Mar 22, 2024
1a604a6
Merge pull request #59 from multiversx/fix-import-22
andreibancioiu Mar 22, 2024
cac0eee
Sketch support for custom HRP.
andreibancioiu May 14, 2024
3b4400e
Add "newFromBech32", in addition to the legacy "fromBech32".
andreibancioiu May 14, 2024
ee264ef
Undo some changes, add "internal" markers, add some tests.
andreibancioiu May 14, 2024
01b9715
Deprecation notice.
andreibancioiu May 14, 2024
26ee76a
Add library config.
andreibancioiu May 15, 2024
5794b87
Merge pull request #48 from multiversx/custom-hrp
andreibancioiu May 27, 2024
e08524e
Fix tests and update dependency
danielailie Jul 31, 2024
6a09e66
Add empty line
danielailie Jul 31, 2024
4ccd63b
remove only from tests
danielailie Jul 31, 2024
410a9a2
Merge pull request #64 from multiversx/TOOL-216-fix-mapping-for-mappi…
danielailie Jul 31, 2024
062fb64
Merge pull request #471 from multiversx/feat/next
popenta Aug 12, 2024
1ea1928
Run npm audt fix, update dev dependencies.
andreibancioiu Aug 20, 2024
42d9c5d
Merge pull request #473 from multiversx/npm-audit-fix-20
andreibancioiu Aug 20, 2024
615034c
Add managed decimal
danielailie Aug 26, 2024
3c06d22
Add user agent info
danielailie Aug 26, 2024
a52a34b
Extract duplicated code and extend config
danielailie Aug 27, 2024
1a18343
refactoring, fix typos, remaning
danielailie Aug 27, 2024
25d250a
Add tests
danielailie Aug 27, 2024
8b46cd3
Small renaming
danielailie Aug 27, 2024
cacb1f0
Run npm audit fix, add missing info in package.json.
andreibancioiu Aug 27, 2024
d398ddb
Fix CodeQL warning (test code).
andreibancioiu Aug 27, 2024
3901f3f
Merge pull request #474 from multiversx/package-bureaucracy-1
andreibancioiu Aug 28, 2024
d4d1385
Fix tests
danielailie Aug 28, 2024
cbd0611
Merge pull request #67 from multiversx/TOOL-233-extend-user-agent-on-…
danielailie Aug 28, 2024
a3014a7
Fix constructor of ApiNetworkProvider, when config is not provided.
andreibancioiu Aug 30, 2024
6587282
Merge pull request #69 from multiversx/fix-missing-config
andreibancioiu Aug 30, 2024
5b3ee51
add codemetadata codec
michavie Aug 30, 2024
e8389da
Merge pull request #475 from michavie/codemetadata-codec
andreibancioiu Sep 2, 2024
584d8a0
Bump version.
andreibancioiu Sep 2, 2024
e7b8fa0
Merge pull request #476 from multiversx/release-september-2
andreibancioiu Sep 2, 2024
c59657d
Extend managed Decimal
danielailie Sep 3, 2024
ad8d581
Add basic feature abi and update tests
danielailie Sep 4, 2024
ab476cf
Clean up colsole logs
danielailie Sep 5, 2024
9dceb18
Add encoded nested for managed decimal
danielailie Sep 5, 2024
06b85fe
refactor managed decimal codec
danielailie Sep 5, 2024
e35ad8f
Add tests for abi registry managed decimals
danielailie Sep 5, 2024
6065dee
remove unused tests
danielailie Sep 5, 2024
0d9e486
Update native serializer
danielailie Sep 5, 2024
5a11659
Update native serializer tests
danielailie Sep 5, 2024
42bf1c6
Merge branch 'main' into TOOL-223-add-managed-decimal-support-from-rust
danielailie Sep 5, 2024
dada969
Fix integretion tests
danielailie Sep 5, 2024
73670bd
Core review follow up
danielailie Sep 5, 2024
1f65ffe
Remove unused variable
danielailie Sep 5, 2024
8e054c6
code review follow up
danielailie Sep 5, 2024
9135302
Add tests for managed decimals
danielailie Sep 9, 2024
33a875d
Remove console logs
danielailie Sep 9, 2024
14b2f5f
Fixed failing test
danielailie Sep 9, 2024
275bb49
Code review follow up
danielailie Sep 10, 2024
0ca88e9
Fix test name
danielailie Sep 10, 2024
3838dc7
remove only
danielailie Sep 10, 2024
b8927c6
Merge pull request #477 from multiversx/TOOL-223-add-managed-decimal-…
danielailie Sep 10, 2024
d6522bc
Deprecate interaction checker and bump version
danielailie Sep 10, 2024
04947e8
Merge pull request #478 from multiversx/TOOL-244-deprecate-interactio…
danielailie Sep 10, 2024
cd58c8d
Add workflow
danielailie Sep 11, 2024
865ef1e
Fix mxpy install
danielailie Sep 11, 2024
04a1876
Add pipx instalation step
danielailie Sep 11, 2024
ba0a321
Fix pipx instalation
danielailie Sep 11, 2024
6f61e60
Remove verify step
danielailie Sep 11, 2024
3cb06da
Add nohup
danielailie Sep 11, 2024
473e284
Fix start localnet
danielailie Sep 11, 2024
8ee4554
Add managed decimal signed codec
danielailie Sep 12, 2024
7fd503d
Add one more test
danielailie Sep 12, 2024
f235986
Update workflow
danielailie Sep 12, 2024
ca53fb3
Fix test
danielailie Sep 12, 2024
d6eb8b2
remove only
danielailie Sep 12, 2024
4f6a84c
Update signed codec
danielailie Sep 12, 2024
f15a44b
Update workflow to stop when finish
danielailie Sep 12, 2024
c113ff5
Fix variable name
danielailie Sep 12, 2024
490dbec
Extract variable
danielailie Sep 16, 2024
6d972bc
bump version
danielailie Sep 16, 2024
6dbbd06
Merge pull request #479 from multiversx/TOOL-248-add-workflow-to-run-…
danielailie Sep 16, 2024
987afbc
Adjust register cost for dynamic NFTs.
andreibancioiu Sep 20, 2024
846101f
Longer delays for localnet tests.
andreibancioiu Sep 20, 2024
5a21fef
More time for localnet to start.
andreibancioiu Sep 20, 2024
3986959
Merge pull request #480 from multiversx/esdt-09-20
andreibancioiu Sep 20, 2024
79ea2b3
fix address value to accept custom hrps
michavie Sep 23, 2024
04376f6
Merge pull request #481 from michavie/address-value-custom-hrp-fix
andreibancioiu Sep 23, 2024
62bb8c1
Bump version.
andreibancioiu Sep 23, 2024
dbe49e2
Merge pull request #482 from multiversx/bump-version-23
andreibancioiu Sep 23, 2024
fd5be7c
Merge remote-tracking branch 'network-providers/main' into merge-netw…
andreibancioiu Sep 25, 2024
e303053
Merge pull request #484 from multiversx/merge-network-providers
andreibancioiu Sep 26, 2024
13897cc
Move netowrk providers to src level
danielailie Sep 30, 2024
cc5bce9
Remove network providers package and update dependencies
danielailie Sep 30, 2024
5352a6d
Add mnemonicToEntropy and entropyToMnemonic.
andreibancioiu Oct 1, 2024
a5e0017
Handle some errors.
andreibancioiu Oct 1, 2024
2f74baa
Fix import.
andreibancioiu Oct 1, 2024
4fb5e5c
Fix imports.
andreibancioiu Oct 1, 2024
74bb771
Merge pull request #52 from multiversx/entropy-1
andreibancioiu Oct 1, 2024
6ffd9d3
Merge pull request #486 from multiversx/TOOL-262-unify-network-provid…
danielailie Oct 2, 2024
0b7d0b7
Remove unused code
danielailie Oct 2, 2024
3421660
Bump version
danielailie Oct 2, 2024
d07fcd9
Merge pull request #487 from multiversx/TOOL-262-unify-network-provid…
danielailie Oct 2, 2024
405d573
Move axios to peer dependency
danielailie Oct 2, 2024
ef3db11
Merge pull request #489 from multiversx/TOOL-262-unify-network-provid…
danielailie Oct 2, 2024
04b3b4b
Merge pull request #488 from multiversx/feat/unify
danielailie Oct 2, 2024
8bc371c
Merge remote-tracking branch 'wallet/main' into merge-wallet
danielailie Oct 2, 2024
de45867
Merge pull request #490 from multiversx/merge-wallet
danielailie Oct 2, 2024
ea54e78
Legacy ResultsParser: change access modifier of methods from private …
andreibancioiu Oct 3, 2024
52f0efb
Merge pull request #492 from multiversx/legacy-results-parser-1
andreibancioiu Oct 3, 2024
cfaed6e
Update folder structure
danielailie Oct 3, 2024
350d50f
Merge pull request #493 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 3, 2024
09713c3
remove sdk-wallet dependency and fix import
danielailie Oct 8, 2024
2c15a07
Merge pull request #496 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 8, 2024
475b8a4
In outcome parsers, handle both TransactionOnNetwork and TransactionO…
andreibancioiu Oct 8, 2024
8983762
Remove tests file, will be added in next PR.
andreibancioiu Oct 8, 2024
22f0fe6
Merge pull request #497 from multiversx/outcome-08
andreibancioiu Oct 8, 2024
3bfd418
Recover return data of smart contract (new implementation).
andreibancioiu Oct 8, 2024
d13f4c6
Bump version.
andreibancioiu Oct 8, 2024
0ac07f1
Fix after self-review.
andreibancioiu Oct 8, 2024
6f76303
Merge pull request #498 from multiversx/return-data-8
andreibancioiu Oct 8, 2024
928092e
Refactor testutils, remove duplicated files
danielailie Oct 10, 2024
e944d9f
Remove unused signature class
danielailie Oct 10, 2024
962ea3b
Merge pull request #502 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 10, 2024
4a35ef6
Merge error files
danielailie Oct 10, 2024
78bcbb4
Add handle for Uint8Array on signature
danielailie Oct 10, 2024
23dbb86
Change let to const
danielailie Oct 10, 2024
e0c7db1
Remove primitives file
danielailie Oct 10, 2024
6cd9f47
Merge pull request #503 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 14, 2024
10c93ed
Merge pull request #504 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 14, 2024
996a8e5
Make axios and bls optional
danielailie Oct 14, 2024
6f260e4
Add axios and bls handling in case not install
danielailie Oct 14, 2024
21bec13
Add title to abi endpoint
danielailie Oct 14, 2024
adc447a
Bump version
danielailie Oct 14, 2024
13b4d1c
Merge pull request #506 from multiversx/TOOL-272-add-title-to-abi-end…
danielailie Oct 14, 2024
df8d1ad
Update readme and move axios to constructor
danielailie Oct 15, 2024
fe5f1b4
Merge pull request #505 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 15, 2024
ea9ccbc
Additional tests.
andreibancioiu Oct 15, 2024
6e77bcb
Simplify tests.
andreibancioiu Oct 15, 2024
6697b41
Merge pull request #507 from multiversx/outcome-tests-15
andreibancioiu Oct 15, 2024
2ac6d1d
Add localnet configuration (for the CI).
andreibancioiu Oct 15, 2024
a43c335
Merge pull request #508 from multiversx/localnet-15
andreibancioiu Oct 15, 2024
1c9e326
Mark ITransactionNext as deprecated
danielailie Oct 15, 2024
6ceb8be
Fix typo
danielailie Oct 15, 2024
cf98adc
Merge pull request #509 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 15, 2024
56afdaa
Merge pull request #510 from multiversx/main
danielailie Oct 15, 2024
e519e5e
Bump version
danielailie Oct 15, 2024
d44485a
fix version bump for alpha release
danielailie Oct 15, 2024
7993026
Merge pull request #511 from multiversx/TOOL-264-bring-sdk-wallet-int…
danielailie Oct 15, 2024
bb10ad7
Update version for alpha release
danielailie Oct 16, 2024
cf3b92b
Merge pull request #513 from multiversx/UpdateVersion
danielailie Oct 16, 2024
f12245c
Remove relay v3 code
danielailie Oct 21, 2024
3ce39e1
Bump version
danielailie Oct 21, 2024
5eb0ddb
Merge pull request #516 from multiversx/TOOL-278-remove-code-for-rela…
danielailie Oct 21, 2024
47145ab
Make bip39 optional
danielailie Oct 21, 2024
9393d4f
Bump version
danielailie Oct 21, 2024
f920ae6
Remove redundant comment
danielailie Oct 21, 2024
778ae19
Merge pull request #517 from multiversx/MakeBip39Optional
danielailie Oct 21, 2024
bdcc4de
Merge branch 'main' into MergeMainInFeat
danielailie Oct 21, 2024
ced12ce
Remove inner transaction and relayer field
danielailie Oct 21, 2024
78b94b3
Merge pull request #518 from multiversx/MergeMainInFeat
danielailie Oct 21, 2024
17fe9af
Bump version and update export
danielailie Oct 28, 2024
0f82f37
Update versions
danielailie Oct 28, 2024
567d5f5
Merge pull request #521 from multiversx/PrepareReleaseAndUpdateEports
danielailie Oct 28, 2024
2b76735
Merge pull request #522 from multiversx/feat/unify
danielailie Oct 28, 2024
1613d0b
Fix decoding of code metadata.
andreibancioiu Oct 30, 2024
ee6dd3a
Fix error message.
andreibancioiu Oct 30, 2024
ea1b063
Merge pull request #523 from multiversx/fix-code-metadata
andreibancioiu Oct 30, 2024
7e472da
Simplify Network Provider, withResults default true
danielailie Nov 4, 2024
451f816
Fix Esdt transfer for egld
danielailie Nov 4, 2024
439acfd
Merge pull request #524 from multiversx/TOOL-305-simplify-network-pro…
danielailie Nov 5, 2024
6ca61fa
Merge pull request #525 from multiversx/TOOL-306-fix-esdt-transfer
danielailie Nov 5, 2024
27a83bd
Add handling for esdt prefix
danielailie Nov 7, 2024
038b4a0
Bump version
danielailie Nov 7, 2024
a564486
Fix split extended identifier
danielailie Nov 7, 2024
e3ab881
Fix typo, extract constants
danielailie Nov 7, 2024
3c58ca9
Fix check for prefix
danielailie Nov 8, 2024
55ed404
fix comment
danielailie Nov 8, 2024
6623ad1
Move identifier split to upper function
danielailie Nov 8, 2024
59d91af
Fix typo
danielailie Nov 8, 2024
fd98399
Code review follow up
danielailie Nov 8, 2024
e87ae2b
fix tests
danielailie Nov 8, 2024
0e17949
Merge pull request #526 from multiversx/TOOL-307-add-esdt-prefix-to-s…
danielailie Nov 8, 2024
4b20d75
Set userAgent only on network and update message
danielailie Nov 11, 2024
28eed72
Bump version
danielailie Nov 11, 2024
3c99fb7
Bump version
danielailie Nov 11, 2024
3b42356
Extract if in function
danielailie Nov 11, 2024
7a1480b
Merge pull request #528 from multiversx/TOOL-327-extend-user-agent-on…
danielailie Nov 11, 2024
19a25a3
Add explicit enums implementation
danielailie Nov 12, 2024
cf0de40
Remove console logs and add explicit enums tests
danielailie Nov 12, 2024
9a6bd36
Bump version
danielailie Nov 12, 2024
9de1d6a
Merge pull request #529 from multiversx/TOOL-328-fix-explicit-enums
danielailie Nov 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ jobs:
- run: npm run lint
- run: npm run compile
- run: npm install esmify && npm run compile-browser
- run: npm test
- run: npm run tests-unit
- run: npm run tests-devnet
65 changes: 65 additions & 0 deletions .github/workflows/test-localnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: MultiversX Integration Tests

on:
push:
branches:
- main
pull_request:

jobs:
integration_tests:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
- name: Checkout code
uses: actions/checkout@v3

# Step 2: Set up Python environment
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: '3.x'

# Step 3: Install pipx (to manage Python tools)
- name: Install pipx
run: |
python3 -m pip install --user pipx
python3 -m pipx ensurepath
# Add the pipx binary location to PATH
echo "$HOME/.local/bin" >> $GITHUB_PATH
shell: bash

# Step 4: Install mxpy (MultiversX Python SDK)
- name: Install mxpy (MultiversX SDK)
run: |
pipx install multiversx-sdk-cli --force

# Step 5: Set up MultiversX localnet using mxpy
- name: Set up MultiversX localnet
run: |
# Start the local testnet with mxpy
mkdir -p ~/localnet && cd ~/localnet
mxpy localnet setup --configfile=${GITHUB_WORKSPACE}/localnet.toml
nohup mxpy localnet start --configfile=${GITHUB_WORKSPACE}/localnet.toml > localnet.log 2>&1 & echo $! > localnet.pid
sleep 120 # Allow time for the testnet to fully start

# Step 6: Install Node.js and dependencies
- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install Node.js dependencies
run: npm install

# Step 7: Run integration tests
- name: Run integration tests
run: |
npm run tests-localnet

# Step 8: Stop the testnet using the stored PID
- name: Stop MultiversX local testnet
if: success() || failure()
run: |
kill $(cat localnet.pid) || echo "Testnet already stopped"
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
src/testdata/**
src/testutils/**
localnet.toml
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"prettier.printWidth": 120
}
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,33 @@ Feel free to skip this section if you are not a contributor.

```
npm install --global browserify
npm install esmify
npm install esmify --no-save
```

## Optional Dependencies

### axios

This package can make HTTP requests using `axios`, which is not bundled by default. If you plan to use the API network provider or Proxy network provider, make sure to install `axios`:

```bash
npm install axios
```

### @multiversx/sdk-bls-wasm

This package requires `@multiversx/sdk-bls-wasm` for BLS (Boneh-Lynn-Shacham) cryptographic functions, which is not bundled by default. If you plan to use BLS functionality, make sure to install this optional dependency:

```bash
npm install @multiversx/sdk-bls-wasm
```

### bip39

This package provides mnemonic and seed generation functionality using `bip39`, but it is not bundled by default. If you plan to use mnemonic-related features, make sure to install this optional dependency:

```bash
npm install bip39
```

### Building the library
Expand Down
2 changes: 1 addition & 1 deletion browser-tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="/node_modules/mocha/mocha.js"></script>

<script>mocha.setup('bdd')</script>
Expand Down
41 changes: 41 additions & 0 deletions localnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[general]
log_level = "*:DEBUG"
genesis_delay_seconds = 10
rounds_per_epoch = 50
round_duration_milliseconds = 6000

[metashard]
consensus_size = 1
num_observers = 0
num_validators = 1

[shards]
num_shards = 3
consensus_size = 1
num_observers_per_shard = 0
num_validators_per_shard = 1

[networking]
host = "127.0.0.1"
port_seednode = 9999
port_seednode_rest_api = 10000
p2p_id_seednode = "16Uiu2HAkx4QqgXXDdHdUWbLu5kxhd3Uo2hqB2FfCxmxH5Sd7bZFk"
port_proxy = 7950
port_first_observer = 21100
port_first_observer_rest_api = 10100
port_first_validator = 21500
port_first_validator_rest_api = 10200

[software.mx_chain_go]
resolution = "remote"
archive_url = "https://github.com/multiversx/mx-chain-go/archive/refs/heads/master.zip"
archive_download_folder = "~/multiversx-sdk/localnet_software_remote/downloaded/mx-chain-go"
archive_extraction_folder = "~/multiversx-sdk/localnet_software_remote/extracted/mx-chain-go"
local_path = "~/multiversx-sdk/localnet_software_local/mx-chain-go"

[software.mx_chain_proxy_go]
resolution = "remote"
archive_url = "https://github.com/multiversx/mx-chain-proxy-go/archive/refs/heads/master.zip"
archive_download_folder = "~/multiversx-sdk/localnet_software_remote/downloaded/mx-chain-proxy-go"
archive_extraction_folder = "~/multiversx-sdk/localnet_software_remote/extracted/mx-chain-proxy-go"
local_path = "~/multiversx-sdk/localnet_software_local/mx-chain-proxy-go"
Loading
Loading