Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
30 changes: 27 additions & 3 deletions .github/workflows/test-localnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@ jobs:
runs-on: ubuntu-latest

steps:
# Install system dependencies
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config

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

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

# Step 3: Install pipx (to manage Python tools)
- name: Install pipx
Expand All @@ -44,8 +50,26 @@ jobs:
# Start the local testnet with mxpy
mkdir -p ~/localnet && cd ~/localnet
mxpy localnet setup --configfile=${GITHUB_WORKSPACE}/localnet.toml
echo "Localnet setup completed."
echo "Starting localnet..."
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
echo "Localnet started, waiting for it to be fully operational..."

# Allow time for the testnet to fully start
timeout=300
elapsed=0
while ! curl -s http://127.0.0.1:7950/network/config > /dev/null; do
if [ $elapsed -ge $timeout ]; then
echo "Timeout waiting for localnet to start"
cat ~/localnet/localnet.log
exit 1
fi
echo "Waiting for localnet... ($elapsed/$timeout seconds)"
sleep 10
elapsed=$((elapsed + 10))
done

echo "Localnet is ready!"

# Step 6: Install Node.js and dependencies
- name: Set up Node.js environment
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiversx/sdk-core",
"version": "15.3.0",
"version": "15.3.1",
"description": "MultiversX SDK for JavaScript and TypeScript",
"author": "MultiversX",
"homepage": "https://multiversx.com",
Expand Down
1 change: 1 addition & 0 deletions src/abi/typesystem/typeMapper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe("test mapper", () => {
testMapping("u64", new U64Type());
testMapping("BigUint", new BigUIntType());
testMapping("TokenIdentifier", new TokenIdentifierType());
testMapping("EsdtTokenIdentifier", new TokenIdentifierType());
});

it("should map generic types", () => {
Expand Down
1 change: 1 addition & 0 deletions src/abi/typesystem/typeMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export class TypeMapper {
["utf-8 string", new StringType()],
["TokenIdentifier", new TokenIdentifierType()],
["EgldOrEsdtTokenIdentifier", new TokenIdentifierType()],
["EsdtTokenIdentifier", new TokenIdentifierType()],
["CodeMetadata", new CodeMetadataType()],
["nothing", new NothingType()],
["AsyncCall", new NothingType()],
Expand Down
Loading