Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
192 commits
Select commit Hold shift + click to select a range
a19f5c7
Update go to 1.22
sstanculeanu Jul 19, 2024
4564a3b
update mx chain go
miiu96 Nov 7, 2024
9134392
Merge pull request #88 from multiversx/update-mx-chain-go-barnard
miiu96 Nov 7, 2024
04d6ce9
update barnard
miiu96 Nov 21, 2024
fb3313f
update deps to latest rc barnard
sstanculeanu Nov 21, 2024
ce645bc
update proxy as well
sstanculeanu Nov 21, 2024
bc726f3
Merge pull request #95 from multiversx/update_deps
sstanculeanu Nov 21, 2024
326de82
latest commit hash
miiu96 Nov 27, 2024
ed3f462
Merge branch 'rc/barnard' into update-barnard
miiu96 Nov 27, 2024
ee3c009
fixes after merge
miiu96 Nov 27, 2024
a1e3d19
Merge branch 'main' into rc/barnard
miiu96 Nov 27, 2024
c02a800
Merge pull request #96 from multiversx/merge-main-in-barnard
miiu96 Nov 27, 2024
1499098
Merge branch 'rc/barnard' into update-barnard
miiu96 Nov 27, 2024
ec07de3
Set latest tag only for released release
danidrasovean Nov 27, 2024
f045663
Set latest tag only for released release
danidrasovean Nov 27, 2024
5fb1c75
Fix workflow
danidrasovean Nov 27, 2024
9085790
Merge pull request #94 from multiversx/update-barnard
miiu96 Dec 3, 2024
b77c094
Merge branch 'main' of https://github.com/multiversx/mx-chain-simulat…
sstanculeanu Jan 29, 2025
66cc307
updated mx-chain-go after merge
sstanculeanu Jan 29, 2025
bc49db3
Merge pull request #104 from multiversx/merge_main_into_rc_barnard
sstanculeanu Jan 29, 2025
bfc715b
cleanup
miiu96 Jan 29, 2025
d2524dc
Merge pull request #105 from multiversx/remove-testing-suite
miiu96 Jan 30, 2025
960fa19
sovereign chain simulator
axenteoctavian Feb 3, 2025
73632b5
fixes after self review
axenteoctavian Feb 3, 2025
17529c2
proxy go mod update
axenteoctavian Feb 3, 2025
b79c2b5
test update
axenteoctavian Feb 3, 2025
bae789f
go mod update
axenteoctavian Feb 3, 2025
df7e11f
fixes after testing
axenteoctavian Feb 4, 2025
1deb2a7
proxy config fix
axenteoctavian Feb 4, 2025
bb7aa06
PR build action
axenteoctavian Feb 4, 2025
43d25b9
PR build action
axenteoctavian Feb 4, 2025
5e82eaf
PR build action
axenteoctavian Feb 4, 2025
e7bf3d0
PR build action
axenteoctavian Feb 4, 2025
f53a5f2
PR build action
axenteoctavian Feb 4, 2025
cc033ae
PR build action
axenteoctavian Feb 4, 2025
0639bda
PR build action
axenteoctavian Feb 4, 2025
47802a9
PR build action
axenteoctavian Feb 4, 2025
8def334
PR build action
axenteoctavian Feb 4, 2025
3ef8acf
PR tests action and unit tests fixes
axenteoctavian Feb 4, 2025
d52fd88
PR multiple instances action
axenteoctavian Feb 4, 2025
380b809
PR vm query action
axenteoctavian Feb 4, 2025
c697c2e
PR run examples action
axenteoctavian Feb 4, 2025
a4bce5e
PR actions
axenteoctavian Feb 4, 2025
3bdc68c
PR golangci-lint action
axenteoctavian Feb 4, 2025
c13c6ce
PR actions fixes
axenteoctavian Feb 4, 2025
8175104
PR run examples action
axenteoctavian Feb 4, 2025
da5285e
PR actions fixes
axenteoctavian Feb 4, 2025
5760362
PR linter action
axenteoctavian Feb 4, 2025
03ad1a9
PR run examples action
axenteoctavian Feb 4, 2025
7b6bb53
staking test update
axenteoctavian Feb 4, 2025
be3005c
new go.mod
axenteoctavian Feb 6, 2025
10ed888
fixes after self review
axenteoctavian Feb 6, 2025
b06eeae
sovereign cs docker
axenteoctavian Feb 7, 2025
8e004b4
readme update
axenteoctavian Feb 7, 2025
c9ca149
fix github action
axenteoctavian Feb 7, 2025
b785e96
fix github action
axenteoctavian Feb 7, 2025
4428109
github actions fixes
axenteoctavian Feb 7, 2025
8f0170c
readme update
axenteoctavian Feb 7, 2025
c21f882
GitHub actions update
axenteoctavian Feb 7, 2025
947ce15
GitHub actions update
axenteoctavian Feb 7, 2025
7d7b098
GitHub actions update
axenteoctavian Feb 7, 2025
bdbe634
GitHub actions update
axenteoctavian Feb 7, 2025
19fb062
GitHub actions update
axenteoctavian Feb 10, 2025
3d6463f
GitHub actions update
axenteoctavian Feb 10, 2025
5a11e9f
GitHub actions update
axenteoctavian Feb 10, 2025
4f14dff
flags update
axenteoctavian Feb 10, 2025
2c0cf2f
fixes for docker and github actions
axenteoctavian Feb 10, 2025
9afdf22
makefile fixes
axenteoctavian Feb 10, 2025
0acdbcb
fixes after self review
axenteoctavian Feb 11, 2025
97309b8
fix github action
axenteoctavian Feb 11, 2025
0178316
fix github actions
axenteoctavian Feb 11, 2025
a7e03fb
using temporary go.mod with updated chain simulator binary
axenteoctavian Feb 11, 2025
f84ef21
go.mod updated
axenteoctavian Feb 14, 2025
303cb10
Merge branch 'main' of https://github.com/multiversx/mx-chain-simulat…
sstanculeanu Feb 17, 2025
b734162
fixes after merge
sstanculeanu Feb 17, 2025
6dc90ba
Merge pull request #110 from multiversx/merge_main_into_rc_andromeda_…
sstanculeanu Feb 18, 2025
649f41e
fixes after review
axenteoctavian Feb 18, 2025
d06da43
Merge pull request #111 from multiversx/merge_main_into_rc_barnard_20…
sstanculeanu Feb 18, 2025
d742c28
updated go to 1.23.6
sstanculeanu Feb 18, 2025
af620be
Merge branch 'rc/barnard' of https://github.com/multiversx/mx-chain-s…
sstanculeanu Feb 18, 2025
653e8da
go mod tidy after merge
sstanculeanu Feb 18, 2025
eee6629
fix pipelines running with invalid go
sstanculeanu Feb 19, 2025
1869f59
updated readme
sstanculeanu Feb 19, 2025
5acc994
rollback test
axenteoctavian Feb 19, 2025
f41c891
docker updates
axenteoctavian Feb 19, 2025
b1d3331
yaml file fixes
axenteoctavian Feb 19, 2025
2f37d26
latest chain-go-sdk tag
axenteoctavian Feb 20, 2025
96505d7
updated readme
sstanculeanu Feb 20, 2025
584c728
updated mx-chain-go
sstanculeanu Feb 20, 2025
7f25e0a
Merge branch 'feat/sovereign' into MX-16491-sovereign-chain-simulator
axenteoctavian Feb 24, 2025
0f84f56
test github action
axenteoctavian Feb 24, 2025
4a26f31
test github action
axenteoctavian Feb 24, 2025
a9675de
test github action
axenteoctavian Feb 24, 2025
587b46c
test github action
axenteoctavian Feb 24, 2025
51c55ee
github action test fix
axenteoctavian Feb 24, 2025
333130a
request timeout fix
axenteoctavian Feb 24, 2025
cad948d
fix action name
axenteoctavian Feb 24, 2025
3cefea4
uncomment scripts
axenteoctavian Feb 24, 2025
bbcd45b
Dockerfile update
axenteoctavian Feb 25, 2025
488515a
README.md update
axenteoctavian Feb 25, 2025
a67f358
Dockerfile update
axenteoctavian Feb 25, 2025
d41fde7
Dockerfile update
axenteoctavian Feb 25, 2025
36438a1
Docker update
axenteoctavian Feb 25, 2025
539e2e8
test update
axenteoctavian Feb 25, 2025
663169e
update timeout in test
axenteoctavian Feb 25, 2025
af19feb
fix after review
sstanculeanu Feb 28, 2025
dab7af1
removed all sudo from makefile
sstanculeanu Feb 28, 2025
5723c67
Merge branch 'main' of https://github.com/multiversx/mx-chain-simulat…
sstanculeanu Feb 28, 2025
d5bda1d
Merge pull request #115 from multiversx/merge_main_into_rc_barnard_20…
sstanculeanu Feb 28, 2025
003a3f8
Merge branch 'rc/barnard' into update_go_1.22
sstanculeanu Feb 28, 2025
c12adee
Merge pull request #62 from multiversx/update_go_1.22
sstanculeanu Feb 28, 2025
0f55617
fixes after self review
axenteoctavian Mar 3, 2025
8c6f43b
docker action fix
axenteoctavian Mar 4, 2025
320b777
added make command for sovereign build
axenteoctavian Mar 4, 2025
85ba939
Merge branch 'feat/sovereign' into MX-16491-sovereign-chain-simulator
axenteoctavian Mar 4, 2025
230feb1
fix after review
axenteoctavian Mar 5, 2025
8bafec2
Merge pull request #107 from multiversx/MX-16491-sovereign-chain-simu…
axenteoctavian Mar 5, 2025
a8ea668
Update workflow to push both platforms under same tag
danidrasovean Mar 11, 2025
50b0418
Merge pull request #119 from multiversx/MX-16644-docker-multiarch
danidrasovean Mar 11, 2025
a220236
sovereign fork
axenteoctavian Mar 17, 2025
ab87276
docker fix
axenteoctavian Mar 17, 2025
9196cf0
docker fix
axenteoctavian Mar 17, 2025
325a7a5
updated mx-chain-go to v1.8.12
sstanculeanu Mar 18, 2025
5aae5cf
Merge pull request #121 from multiversx/update_mx-chain-go_v1.8.12
sstanculeanu Mar 18, 2025
e061898
FIX: Go mod for sovereign fork
mariusmihaic Mar 18, 2025
1db193b
Merge pull request #122 from multiversx/sovereign-fork-with-one-go-mod
axenteoctavian Mar 18, 2025
34f4568
update fetch configs and github action
axenteoctavian Mar 19, 2025
19e4521
fix configs fetcher and unit tests
axenteoctavian Mar 19, 2025
c41f12f
update configs fetcher
axenteoctavian Mar 19, 2025
9c0f4cf
update configs fetcher and unit tests
axenteoctavian Mar 19, 2025
b6e13c6
update script
axenteoctavian Mar 19, 2025
694ab71
fixes after review
axenteoctavian Mar 19, 2025
e1e1f23
rollback config.toml to work with both normal and sovereign
axenteoctavian Mar 19, 2025
d3f3697
Merge pull request #120 from multiversx/sovereign-fork
axenteoctavian Mar 21, 2025
2e669bd
updated mx-chain-go
sstanculeanu Mar 26, 2025
1c7d055
Sovereign node override file
axenteoctavian Mar 26, 2025
a5fc205
Sovereign node override file
axenteoctavian Mar 26, 2025
ccd7340
wait less blocks when checking if tx is still pending
sstanculeanu Mar 26, 2025
1a6bcc6
Merge pull request #124 from multiversx/update_mx_chain_go
sstanculeanu Mar 26, 2025
b15f542
Merge branch 'main' of https://github.com/multiversx/mx-chain-simulat…
sstanculeanu Mar 26, 2025
f3b89b1
Merge pull request #127 from multiversx/merge_main_into_andromeda
sstanculeanu Mar 26, 2025
6fdd6b0
added func comment
axenteoctavian Mar 26, 2025
8e6e5d6
fix after review
axenteoctavian Mar 26, 2025
0a6d4a2
Merge branch 'main' into update-barnard-last-main
miiu96 Mar 26, 2025
1249b28
update go mod
miiu96 Mar 26, 2025
decbc5f
Merge pull request #128 from multiversx/update-barnard-last-main
miiu96 Mar 26, 2025
cfe13d4
Merge pull request #125 from multiversx/sovereign-node-override-file
axenteoctavian Mar 26, 2025
5d476a9
update mx chain go
sstanculeanu Mar 27, 2025
a6b5b65
Merge pull request #129 from multiversx/update_mx_chain_go
sstanculeanu Mar 27, 2025
46db6b9
update mx chain go
sstanculeanu Mar 28, 2025
ee8a99b
Merge pull request #131 from multiversx/updated_mx_chain_go
miiu96 Mar 28, 2025
cb59ae7
update go mod
miiu96 Mar 28, 2025
c401e67
fixes
miiu96 Mar 28, 2025
e3b3e1c
latest version
miiu96 Mar 31, 2025
1327daa
small fix
miiu96 Apr 1, 2025
1069f61
update
miiu96 Apr 1, 2025
a512c3c
Merge pull request #132 from multiversx/new-mx-chain-go-andromeda
miiu96 Apr 2, 2025
4ed366e
update core-go hash with update-go-mod.py script
axenteoctavian Apr 4, 2025
3093ff6
Merge pull request #133 from multiversx/update-go-mod-script-4-apr
axenteoctavian Apr 4, 2025
5458cf4
test for Andromeda with patch1
sstanculeanu Apr 7, 2025
2762e52
last andromeda commit
miiu96 Apr 14, 2025
a469407
latest version
miiu96 Apr 16, 2025
6bd75e3
fix unit tests
miiu96 Apr 16, 2025
6f365f0
andromeda patch 2
sstanculeanu May 2, 2025
fa1c5ec
new node version
miiu96 May 15, 2025
5b0493e
Merge pull request #139 from multiversx/update-v1.8.13
miiu96 May 15, 2025
27d9515
updated go mod
sstanculeanu May 21, 2025
84f2769
Merge pull request #138 from multiversx/andromeda-patch2
sstanculeanu May 21, 2025
5ccc06d
Merge branch 'main' of https://github.com/multiversx/mx-chain-simulat…
sstanculeanu May 21, 2025
00a516b
Merge pull request #141 from multiversx/merge-main-into-rc-andromeda
sstanculeanu May 21, 2025
9f1a714
Merge pull request #126 from multiversx/rc/andromeda
sstanculeanu May 21, 2025
e6a43d7
latest proxy version
miiu96 May 29, 2025
96572bb
Merge pull request #142 from multiversx/latest-proxy-version
miiu96 May 29, 2025
3bae2cd
Merge branch 'main' of https://github.com/multiversx/mx-chain-simulat…
sstanculeanu Jun 5, 2025
f34536e
updated go mod
sstanculeanu Jun 5, 2025
08f2157
Merge pull request #143 from multiversx/merge-main-into-barnard-2025.…
sstanculeanu Jun 5, 2025
181c750
Merge branch 'rc/barnard' into MX-16890-merge-barnard-sovereign
mariusmihaic Jun 6, 2025
7249815
FIX: After merge: try to bring latest sovereign modules in go mod
mariusmihaic Jun 10, 2025
6e4f4a6
FIX: Actual version of replace
mariusmihaic Jun 10, 2025
64deb62
FIX: Update latest go mod versions
mariusmihaic Jun 10, 2025
0e549ab
FIX: Git fetcher for git clone
mariusmihaic Jun 10, 2025
c094f6f
FIX: Go mod
mariusmihaic Jul 16, 2025
ad768b1
Merge pull request #144 from multiversx/MX-16890-merge-barnard-sovereign
mariusmihaic Aug 26, 2025
c8f5b6d
Update go.mod for chain-sovereign-go
axenteoctavian Sep 1, 2025
282883e
Merge pull request #159 from multiversx/update-go-mod-sovereign-1-sept
axenteoctavian Sep 1, 2025
0eb1731
Update go.mod for chain-sovereign-go
axenteoctavian Sep 2, 2025
c9372f1
Update go.mod for chain-sovereign-go
axenteoctavian Sep 2, 2025
f667010
Merge pull request #160 from multiversx/update-go-mod-sovereign-2-sept
axenteoctavian Sep 2, 2025
90dae6f
Update go.mod
axenteoctavian Dec 4, 2025
dff0876
Update go.mod
axenteoctavian Dec 8, 2025
a0172da
Update go.mod
axenteoctavian Dec 8, 2025
22f2b7c
Merge pull request #186 from multiversx/update-go-mod-4-dec
axenteoctavian Dec 12, 2025
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
54 changes: 38 additions & 16 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ on:
release:
types: [published]
pull_request:
workflow_dispatch:

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-22.04
strategy:
matrix:
platform: [linux/amd64, linux/arm64]

permissions:
packages: write
contents: read
Expand All @@ -23,7 +22,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.20.7
go-version: 1.23.6
id: go

- name: Get dependencies
Expand All @@ -40,35 +39,58 @@ jobs:
go build
./chainsimulator --fetch-configs-and-close

# TODO: remove this when https://github.com/actions/runner-images/issues/11471 is fully resolved
- name: Set up QEMU for ARM64
if: matrix.platform == 'linux/arm64'
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
- name: Extract metadata (tags, labels) for released releases
if: ${{ github.event.release.prerelease == false }}
id: meta_released
uses: docker/metadata-action@v5
with:
images: multiversx/chainsimulator

- name: Build and push Docker image
id: push
- name: Extract metadata (tags, labels) for prereleased releases
if: ${{ github.event.release.prerelease == true }}
id: meta_prereleased
uses: docker/metadata-action@v5
with:
images: multiversx/sovereign-chainsimulator
tags: |
type=raw,value=${{ github.event.release.tag_name }}
labels: |
type=raw,value=${{ github.event.release.name }}

- name: Build and push Docker image for released
if: ${{ github.event.release.prerelease == false }}
id: push_released
uses: docker/build-push-action@v6
with:
context: .
# We need to make sure that if we ever have to merge this branch in main, this needs to be changed
file: ./Dockerfile
platforms: ${{ matrix.platform }}
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta_released.outputs.tags }}
labels: ${{ steps.meta_released.outputs.labels }}

- name: Build and push Docker image for prereleased
if: ${{ github.event.release.prerelease == true }}
id: push_prereleased
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
tags: ${{ steps.meta_prereleased.outputs.tags }}
labels: ${{ steps.meta_prereleased.outputs.labels }}
13 changes: 9 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@ jobs:
name: golangci linter
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.20.7
go-version: 1.23.6
cache: false
- uses: actions/checkout@v3
id: go

- name: Checkout mx-chain-simulator-go
uses: actions/checkout@v4

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.57.2
version: v1.64.5

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.20.7
go-version: 1.23.6
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Checkout mx-chain-simulator-go
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -28,7 +28,8 @@ jobs:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi

- name: Build
run: |
cd cmd/chainsimulator
cd cmd/chainsimulator
go build
8 changes: 4 additions & 4 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.20.7
go-version: 1.23.6
id: go

- name: Check out code
uses: actions/checkout@v2
- name: Checkout mx-chain-simulator-go
uses: actions/checkout@v4
- name: Unit tests
run: |
go test ./...
9 changes: 7 additions & 2 deletions .github/workflows/run-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ jobs:
name: Examples
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Checkout mx-chain-simulator-go
uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install -r examples/requirements.txt
pip3 install pytest

- name: Run examples
run: |
make run-examples

- name: Run examples - sovereign
run: |
make run-examples SIMULATOR_TYPE=--sovereign
16 changes: 11 additions & 5 deletions .github/workflows/run-multiple-instances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.20.7
go-version: 1.23.6
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Checkout mx-chain-simulator-go
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -27,9 +27,15 @@ jobs:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi

- name: Run multiple instances
run: |
cd cmd/chainsimulator
go build
./chainsimulator --fetch-configs-and-close
./chainsimulator --sovereign --fetch-configs-and-close

# sovereign mode
python3 ../../scripts/run-multiple-instances/script.py --sovereign

# normal mode
python3 ../../scripts/run-multiple-instances/script.py
21 changes: 15 additions & 6 deletions .github/workflows/run-vm-query-after-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.20.7
go-version: 1.23.6
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Checkout mx-chain-simulator-go
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -26,10 +26,19 @@ jobs:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi

- name: Run VM query after start
run: |
cd cmd/chainsimulator
go build
./chainsimulator --fetch-configs-and-close
screen -dmS chainsimulator "./chainsimulator"
./chainsimulator --sovereign --fetch-configs-and-close

# sovereign mode
screen -dmS chainsimulator bash -c "./chainsimulator --sovereign"
./../../scripts/run-vm-query/script.sh
screen -X -S chainsimulator quit

# normal mode
screen -dmS chainsimulator bash -c "./chainsimulator"
./../../scripts/run-vm-query/script.sh
screen -X -S chainsimulator quit
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20.7 AS builder
FROM golang:1.23.6 AS builder


WORKDIR /multiversx
Expand All @@ -21,8 +21,6 @@ RUN cp /go/pkg/mod/github.com/multiversx/$(cat /multiversx/go.sum | grep mx-chai

FROM ubuntu:22.04
ARG TARGETARCH


RUN apt-get update && apt-get install -y git curl

COPY --from=builder /multiversx/cmd/chainsimulator /multiversx
Expand All @@ -37,5 +35,3 @@ COPY --from=builder "/lib_${TARGETARCH}/*" "/lib/"
CMD ["/bin/bash"]

ENTRYPOINT ["./chainsimulator"]


6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker-build:

run-faucet-test:
$(MAKE) docker-build
docker run -d --name "${IMAGE_NAME}" -p 8085:8085 ${CHAIN_SIMULATOR_IMAGE_NAME}:${CHAIN_SIMULATOR_IMAGE_TAG}
docker run -d --name "${IMAGE_NAME}" -p 8085:8085 ${CHAIN_SIMULATOR_IMAGE_NAME}:${CHAIN_SIMULATOR_IMAGE_TAG} ${SIMULATOR_TYPE}
sleep 2s
cd examples/faucet && /bin/bash faucet.sh
docker stop "${IMAGE_NAME}"
Expand All @@ -23,8 +23,8 @@ run-examples:
rm temp.txt

$(MAKE) docker-build
docker run -d --name "${IMAGE_NAME}" -p 8085:8085 ${CHAIN_SIMULATOR_IMAGE_NAME}:${CHAIN_SIMULATOR_IMAGE_TAG}
cd scripts/run-examples && /bin/bash script.sh
docker run -d --name "${IMAGE_NAME}" -p 8085:8085 ${CHAIN_SIMULATOR_IMAGE_NAME}:${CHAIN_SIMULATOR_IMAGE_TAG} ${SIMULATOR_TYPE}
cd scripts/run-examples && /bin/bash install-python-deps.sh && /bin/bash script.sh
docker stop "${IMAGE_NAME}"
docker rm ${IMAGE_NAME}

Expand Down
Loading
Loading