29 Commits

Author SHA1 Message Date
Vojtech Simetka
a08a1eedc0
chore: update to bee 1.4.1 (#64) 2021-12-14 12:00:07 +01:00
Cafe137
ad300ab7d4
chore: bump bee version to 1.3 (#59) 2021-11-16 11:17:23 +01:00
Adam Uhlíř
b2cce5cab0
ci: trigger bee-js bee update (#58) 2021-11-15 14:50:50 +01:00
nugaon
7fb69c9b3f
refactor: startup (#56)
* refactor: polling chainid instead of sleeptime

* feat: add check for queen container running
2021-10-26 09:58:00 +02:00
Cafe137
568f17465c
feat: change BEE_VERSION to 1.2.0 (#55) 2021-10-15 01:51:10 +02:00
Cafe137
84e7925165
feat: bee 1.1.0 (#52)
* Update .env

* chore: format code and clean up dependencies

* refactor: extract BeePair

* feat: get traffic-gen to work with new endpoints

* docs: fix parameter names in jsdoc

* fix: fix bee endpoints

* fix: add prettier and fix endpoints

* fix: fix build param names

* docs: fix docs

* refactor: bee-cleanup for containers as well

Co-authored-by: nugaon <toth.viktor.levente@gmail.com>
2021-10-06 12:15:56 +02:00
Vojtech Simetka
8151b5597e
feat: configurable hostname to which blockchain and bee nodes are bound (#53)
* feat: configurable hostname to which blockchan and bee nodes are bound

* chore: enable debug for script

* fix: revert awk

* chore: debug more

* Revert "chore: enable debug for script"

This reverts commit c86a2ce359003b8aea1581011d82002e18152ccc.

* Revert "chore: debug more"

This reverts commit 516f389a1fceb4ca9831c1f07e7a53e897b34b3d.

Co-authored-by: Ivan Vandot <ivan@vandot.rs>
2021-09-22 16:16:25 +02:00
nugaon
b8e451e57e
feat: bee 1.0.0 (#41)
* feat: new Price Oracle bytecode

* refactor: remove file smth.txt

* feat: new PostageStamp contract

* feat: change contract deploy workflow

* feat: bee-1.0.0-rc2 compatible runner

* feat: build from source (#47)

* feat: extend build-envrionment.sh with building bee image from source

* ci: new workflow option parameter - beeVersionAsCommitHash

* fix(ci): try to overwrite BEE_VERSION sys variable

* fix: do not export BEE_VERSION after env build

* fix(ci): run build-environment without source command

* fix(ci): try to retrieve built BEE_VERSION value

* fix: save build BEE_VERSION value

* fix(ci): retrieve built image tag in the last step

* refactor: echoerr

* refactor(ci): export sys variables

* feat: disable warmup time (#46)

* feat: disable warmup time

* fix: place warmup-time to the correct place

* fix: put quote back where it truly belongs

* feat: state commit (#45)

* refactor: remove payment treshold option because it causes performance issues

* docs: design planned parameters for the new build workflow

* feat: build environment with traffic gen option

* fix(log): rephrase traffic gen log

* feat: special bee version tagging when state commit happens

* build: new env variable STATE_COMMIT

* ci: STATE_COMMIT

* feat: state commit scripts

* refactor: destroy containers after state producing

* refactor: remove unnecessary echo

* fix: blockchain version at state commit

* build: bumo bee-js version

* build: update package-lock

* fix: fixes

* ci: build environment workflow with state commit

* refactor: buy larger stamp

* fix: publish workflow

* refactor: increase stamp depth

* fix: bee version fetch at commit

* refactor: start containers normally instead of ephemeral for debugging

* fix(ci): add chown for bee user on bee-data-dirs in order to write bee state

* fix: try out the permission on bee data dir with 777 chmod

* fix(ci): give folder permission in the build environment phrase

* refactor(ci): raise sleep between uploads in order to generate cheques

* refactor: wait 11 secs after batch purchase

* fix: commit version tag string true instead of boolean

* fix: add state commit check for set COMMIT_VERSION_TAG

* chore: bump bee version

Co-authored-by: Cafe137 <77121044+Cafe137@users.noreply.github.com>
2021-06-21 16:10:55 +02:00
nugaon
e163745839
feat: parametric traffic gen (#35)
* feat: parametric traffic generation

* refactor: host input splitting

Co-authored-by: Vojtech Simetka <vojtech@simetka.cz>

* docs: update readme

* refactor: typeo

* refactor: traffic gen promise all (#36)

* refactor: concurent promises

* refactor: simplify lastCashOutPromises

* refactor: raise timeout to get cheques sooner

Co-authored-by: Vojtech Simetka <vojtech@simetka.cz>
2021-06-14 11:20:26 +02:00
nugaon
f619caff6d
chore: bump default bee version in .env file 2021-05-20 17:45:17 +02:00
nugaon
9e366130b8
feat: 0.6.0 Bee (#4)
* feat: postage stamp

* chore: remove empty postage stamp sol

* fix: start the nodes with the new '--full-node' flag

* chore: blockchain image 1.1.1 - updated factory bin (#29)

* fix: add network id to the bee statup params

* fix: change payment treshold limit to the possible min value

* feat: add port-maps to the environment sh

* fix: specify the same chainId as the networkId

* feat: expose blockchain 9545 port to localhost

* feat: extended postage stamp contract

* refactor: remove price oracle setups

* feat: updated the gen-traffic to work with postage stamps (#28)

* feat: updated the gen-traffic to work with postage stamps

* chore: update to latest bee-js version

Co-authored-by: Vojtech Simetka <vojtech@simetka.cz>
2021-05-20 17:41:57 +02:00
nugaon
e61f2cb8a1
feat: traffic gen (#21)
* feat: generate random bytes and push to the binded nodes

* fix: npm reinstall

* fix: version dumps in package.json

* ci: bump version number of node

* feat: payment-tolerance

* refactor: gen 400 chunks with the trafficgen command

* feat: parametric traffic generation

* docs: amend beeShPorts description

* docs: readme

* fix: payment tolerance default value in bee.sh

* refactor: only beeApiUrl argument on script call

* docs: traffic gen readme adjustment

* refactor: instead of payment tolerance use payment threshold

* refactor: sleep ms raise and take out unnecessary axios call

* chore: await for upload, the script no longer overloads bee nodes with data (#27)

Co-authored-by: Vojtech Simetka <vojtech@simetka.cz>
2021-05-17 11:03:36 +02:00
nugaon
fcb873ee5c
feat: timeout on infinite loops (#18)
* feat: timeout on infinite loops

* refactor: time-standing solution for timeout check

* chore: take out 2 min comment
2021-05-12 17:55:46 +02:00
nugaon
0ecd8974ce refactor: make connection check be compatible with both python 2 and 3 2021-05-06 10:16:30 +02:00
nugaon
9a34ba2ff9 feat: create docker network on environment.sh run 2021-05-05 15:25:17 +02:00
nugaon
0c359264c6 fix: pull bee image on tagged version image build 2021-05-05 14:39:20 +02:00
nugaon
6bbe27743a refactor: renaming npm migrate script 2021-05-05 14:21:20 +02:00
Adam Uhlíř
1719ebda94
fix: handling comman in underlay address array (#13) 2021-05-05 14:03:17 +02:00
nugaon
2feb3b35a7
feat: queen waits for worker connections (#12) 2021-05-05 14:02:26 +02:00
nugaon
6aa40f09f0 fix: add blockchain image push to the publish script 2021-05-04 17:36:02 +02:00
nugaon
e15c7eabca fix: add tag to the docker image ls in docker push script 2021-05-04 16:28:27 +02:00
nugaon
ccc3b5eca6 fix: push docker images by their name instead of the ids 2021-05-04 16:08:19 +02:00
nugaon
0819569067 ci: export artitary set variables on docker push 2021-05-04 15:31:31 +02:00
nugaon
b3fe994fe0 fix: pull env variables from .env file in publish-environment.sh 2021-05-04 15:22:57 +02:00
nugaon
73595f86d0
feat: tag with commit hash (#10)
* feat: docker image tag setter and getter utility

* chore: add new environment variable commit_version_tag (true or false)

* feat: handle commit_version_tag in build and bee runner scripts

* ci: add ci and introduce the new environment variable set on workflow manual run
2021-05-04 15:05:47 +02:00
nugaon
1b66139c7c
ci: init (#5)
* feat: build docker images with one script

* feat: publish the built docker image

* ci: init worflow to publish built docker image

* chore: add the new commands to the package.json

* ci: add npm setup command run

* ci: build with only node 12.x

* refactor: add github repo bee image prefix to .env

* ci: github action input for build docker image

* fix: intend in yaml

* fix: typeo

* fix: testing the rumor about github bug in order to show up the run workflow button

* revert: prev commit - did not work

* ci: only build image if it was clicked manually
2021-05-04 14:48:36 +02:00
nugaon
9d9afbfe25
feat: separate blockchain versioning (#3)
* fix: dirname query at bee docker build

* feat: remove blockchain image as well

* feat: add separate version handling for blockchain images

* feat: stop and remove blockchain node after image build
2021-04-29 17:08:46 +02:00
nugaon
0bce2ed485
feat: docker image builds (#2)
* feat: add cleanup script in favor of many build trials

* feat: create docker images from specific state of spawned bee clients

* chore: add generated Docker files to git

* refactor: remove individual Docker files and create one common

* feat: remove Dockerfile creation and simplify the script

* feat: update common dockerfile on build

* refactor: remove generated Dockerfile from git

* chore: add generated Dockerfile to gitignore

* chore: ignore Dockerfile

* feat: check whether system environment variable is defined

* feat: common variable handling, new bee.sh functionalities and params

* feat: blockchain docker image build script

* feat: environment script to start the created images

* docs: amend readme

* feat: add bee image prefix env variable and its handlings

* feat: env variable handling + image prefix handling

* docs: amend readme

* feat: docker image prune

* docs: amend readme

* chore: echo for sudo password

* chore: echo for sudo password

* fix: environment queen logging

* chore: remove commented out code

* refactor: use osx compatible local variable init

* refactor: use shell check extension and make the script osx compatible

* fix: stop blockchain container as well on interrupting

* fix: rule out commented lines from env checking

* refactor: remove unnecessary echo

* refactor: remove cat command from the .env grep

* refactor: add some quotes to variable references where is necessary
2021-04-29 14:20:43 +02:00
nugaon
d38a2551a8
feat: init (#1)
* chore: add package.json and package.lock to the project

* build: add truffle configuration for contract deployment

* feat: init swarm contracts and define migration script

* feat: init bash scripts that orchestrate docker containers

* fix: change auto-mining to progressing blockchain in order to satisfy bee ts check

* chore: add npm command definitions and downgrade openzeppelin for solc ^0.6.0

* build: set solc compiler configuration similar to the original swarm deployment

* chore: generate bee keys until 5 nodes

* refactor: import erc20 logic from openzeppelin and remove sw3 contract because cannot produce same bytecode

* chore: add trimmed single-swap-factory bytecode (without token address param)

* feat: deploy erc20 and single swap factory contracts that bee also accepts

* feat: bee.sh and blockchain.sh

* feat: add supply script to fund bee overlay addresses

* docs: amend README

* docs: fix bee start command

* fix: bee.sh datadir path

* docs: add network script to the usage description

* fix: solc compiler truffle config
2021-04-23 16:16:35 +02:00