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

merge #60

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c04b707
Merge pull request #37 from GenerEOS/master
rdewilder Aug 21, 2022
0dee561
added the list of test accounts to chain.md and usage.md
rdewilder Aug 21, 2022
66eec1e
updated description of timeAdded in time.md
rdewilder Aug 22, 2022
e8e10da
bumped to version 0.3.0
rdewilder Aug 22, 2022
7bd2b10
add a warning msg while downloading docker image
quocle108 Sep 15, 2022
9146a75
snapshot improve start time
quocle108 Sep 18, 2022
0c1f918
improve start time with snapshot
quocle108 Sep 18, 2022
57debf5
fixed ts version
quocle108 Sep 18, 2022
7b6aa85
generate d.ts file
danielvo11 Sep 18, 2022
3ed8405
bump v0.3.5
quocle108 Sep 19, 2022
6f90f7b
Merge branch 'master' into develop
rdewilder Sep 20, 2022
1c714dd
load existing account and contract
quocle108 Oct 2, 2022
7dbddba
prettier
quocle108 Oct 2, 2022
69eec8c
refactor expectAction
quocle108 Oct 2, 2022
c5b4993
bump v0.4.0
quocle108 Oct 2, 2022
1e1c461
add keywork
quocle108 Oct 16, 2022
6aeeec7
fixed: start at invalid block
quocle108 Oct 19, 2022
22bcbbf
bump 0.4.1
quocle108 Oct 19, 2022
fd60d56
Add doc (#51)
quocle108 Oct 19, 2022
ecf1dda
Fixed tapos blocks behind (#52)
quocle108 Oct 20, 2022
2f6e0ca
bump 0.4.2
quocle108 Oct 20, 2022
fcfce4d
fixed supply zero amount in creating account (#53)
quocle108 Oct 22, 2022
99da4e2
bump v0.4.3
quocle108 Oct 22, 2022
48609e0
Auto generate tapos (#54)
quocle108 Oct 27, 2022
3b09e68
fixed expected action (#55)
quocle108 Oct 27, 2022
d7223f3
build docker with antelope leap v3.1.4 (#57)
danielvo11 Apr 12, 2023
311829e
Upgrade to leap version (#58)
quocle108 Apr 12, 2023
639ca79
fixed the script to restart chain
quocle108 Jun 29, 2023
ad4a26d
update readme
quocle108 Jun 29, 2023
b5d86dc
support leap-v4.0.4 for ARM and AMD
quocle108 Nov 15, 2023
5cb4ead
support wax leap (#62)
danielvo11 Mar 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -2,4 +2,5 @@ node_modules
yarn-error.log
logs
dist
.vscode
.vscode
.DS_Store
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -97,4 +97,8 @@ For issues not covered in the documentation, please jump into our channel and we

This code is provided as is, under [MIT Licence](LICENCE).

## Todo

- Support ARM binaries for leap version


5 changes: 2 additions & 3 deletions docker/Dockerfile
Expand Up @@ -2,8 +2,7 @@ FROM ubuntu:20.04
WORKDIR /app

# # Install prerequisites
RUN apt-get update \
&& apt-get update --fix-missing
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
RUN apt-get -y install zip unzip libncurses5 wget git build-essential cmake curl libboost-all-dev libcurl4-openssl-dev libgmp-dev libssl-dev libusb-1.0.0-dev libzstd-dev time pkg-config llvm-11-dev

Expand All @@ -25,7 +24,7 @@ ENV EOSIO_PRV_KEY=5JKxAqBoQuAYSh6YMcjxcougPpt1pi9L4PyJHwEQuZgYYgkWpjS

EXPOSE 8888

HEALTHCHECK --start-period=2s --interval=2s --timeout=2s --retries=5\
HEALTHCHECK --start-period=100ms --interval=500ms --timeout=500ms --retries=20\
CMD ./scripts/health_check.sh || exit 1

ENTRYPOINT ["./entrypoint.sh"]
21 changes: 12 additions & 9 deletions docker/Makefile
@@ -1,7 +1,7 @@
WAX_CLEOS=cleos -u https://wax.greymass.com
EOS_CLEOS=cleos -u https://eos.greymass.com
TELOS_CLEOS=cleos -u https://mainnet.telos.net

IMAGE_VERSION=v4.0.4
ARCH=`uname -m`

get_wax:
Expand Down Expand Up @@ -33,21 +33,24 @@ build_snapshots:
docker build -f Dockerfile.snapshot -t qsnapshot . --platform linux/${ARCH}

create_snapshots: stop
docker run --name qsnapshot --env EOSIO_PUB_KEY=EOS5dUsCQCAyHVjnqr6BFqVEE7w8XksnkRtz22wd9eFrSq4NHoKEH --env EOSIO_PRV_KEY=5JKxAqBoQuAYSh6YMcjxcougPpt1pi9L4PyJHwEQuZgYYgkWpjS --env SYSTEM_TOKEN_SYMBOL="WAX" -d -p 8888:8888 qsnapshot:latest --platform linux/${ARCH}
docker run --name qsnapshot --env EOSIO_PUB_KEY=EOS5dUsCQCAyHVjnqr6BFqVEE7w8XksnkRtz22wd9eFrSq4NHoKEH --env EOSIO_PRV_KEY=5JKxAqBoQuAYSh6YMcjxcougPpt1pi9L4PyJHwEQuZgYYgkWpjS -d -p 8888:8888 qsnapshot:latest --platform linux/${ARCH}

copy_snapshots:
./copy_snapshot.sh

build:
# docker build -f Dockerfile -t genereos/qtest:amd64-v1.1.0 . --platform linux/amd64
# docker build -f Dockerfile -t genereos/qtest:arm64-v1.1.0 . --platform linux/arm64
# docker buildx create --use
docker buildx build -f Dockerfile -t genereos/qtest:v1.1.1 --platform linux/amd64,linux/arm64 . --push

# docker build -f Dockerfile -t songmai108/qtest:$(IMAGE_VERSION) . --platform linux/amd64
# docker build -f Dockerfile -t songmai108/qtest:$(IMAGE_VERSION) . --platform linux/arm64
docker buildx build -f Dockerfile -t songmai108/qtest:$(IMAGE_VERSION) --platform linux/amd64,linux/arm64 . --push

start: stop
docker run --name qtest --env SYSTEM_TOKEN_SYMBOL="WAX" -d -p 8888:8888 genereos/qtest:v1.1.1
docker run --name qtest --env SYSTEM_TOKEN_SYMBOL="TLOS" -d -p 8888:8888 songmai108/qtest:$(IMAGE_VERSION)

stop:
docker container rm qtest -f
docker container rm qsnapshot -f
docker container rm qsnapshot -f

push-docker:
docker push songmai108/qtest:$(IMAGE_VERSION)
docker tag songmai108/qtest:$(IMAGE_VERSION) songmai108/qtest:latest
docker push songmai108/qtest:latest
28 changes: 23 additions & 5 deletions docker/Readme.md
Expand Up @@ -2,13 +2,32 @@

```
$ make build_snapshots

$ make create_snapshots

# wait until all snapshots are created with following logs:
$ docker logs qsnapshot
{
"head_block_id" : "000000108afb765fa579df87aef399987315b3c3f11dd44a2a98f14869e674af",
"head_block_num" : 16,
"head_block_time" : "2022-09-18T07:52:34.000",
"snapshot_name" : "/app/snapshot-node/./logs/EOS/data/snapshots/snapshot-000000108afb765fa579df87aef399987315b3c3f11dd44a2a98f14869e674af.bin",
"version" : 5
}
...
{
"head_block_id" : "00000012970061bb6b3aeac9d36303e9832b7363c8f7ae5db7fc0c90735cb37c",
"head_block_num" : 18,
"head_block_time" : "2022-07-14T01:58:07.000",
"snapshot_name" : "/app/snapshot-node/./logs/TLOS/data/snapshots/snapshot-00000012970061bb6b3aeac9d36303e9832b7363c8f7ae5db7fc0c90735cb37c.bin",
"head_block_id" : "0000000d7b70ad64ac368b01f5ccfaa97481ac610877bbe9307a09e52a75e451",
"head_block_num" : 13,
"head_block_time" : "2022-09-18T07:52:42.000",
"snapshot_name" : "/app/snapshot-node/./logs/WAX/data/snapshots/snapshot-0000000d7b70ad64ac368b01f5ccfaa97481ac610877bbe9307a09e52a75e451.bin",
"version" : 5
}
...
{
"head_block_id" : "0000000d30b1c9f92065e95037619b4ddbb20f7c9143c7863e46a7d0f3f5a103",
"head_block_num" : 13,
"head_block_time" : "2022-09-18T07:52:50.000",
"snapshot_name" : "/app/snapshot-node/./logs/TLOS/data/snapshots/snapshot-0000000d30b1c9f92065e95037619b4ddbb20f7c9143c7863e46a7d0f3f5a103.bin",
"version" : 5
}
$ make copy_snapshots
Expand All @@ -34,7 +53,6 @@ docker run --name qtest --env SYSTEM_TOKEN_SYMBOL="WAX" -d -p 8888:8888 qtest:l
```

## Time manipulation:

```
$ docker exec qtest cleos get info
{
Expand Down
3 changes: 1 addition & 2 deletions docker/contracts/eos/eosio.msig.abi
Expand Up @@ -286,6 +286,5 @@
"error_messages": [],
"abi_extensions": [],
"variants": [],
"action_results": [],
"kv_tables": {}
"action_results": []
}