-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: Transaction bot does not work on local node (#308)
Solution: (Fix #307) Refactor to be able to work with a local node with more features
- Loading branch information
1 parent
debaf23
commit b90ed44
Showing
14 changed files
with
1,191 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,5 @@ frontend/.cache | |
|
||
# Pystarport | ||
/bot.yaml | ||
/bot.*.yaml | ||
/config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
jobs: | ||
- label: Test # arbitrary label | ||
node: 0 # index of the node where the `from account` is created | ||
from_account: launch # from account (should be pre-created in the node data folder) | ||
- label: Transfer Test # arbitrary label | ||
type: transfer # support transfer, delegate and withdraw_all_rewards | ||
node: 0 # index of the node in the cluster where the `from account` is created. | ||
# Can be skipped if connecting to a non-cluster node | ||
from_account: launch # from account (should be pre-created in the node data folder) | ||
to_address: cro19zyg34kkrllfqvtumsu3jacg9lgf6lw22xsqye | ||
amount: 1cro | ||
interval: 5 # job interval in second | ||
interval: 5 # job interval in second | ||
- label: Delegation Test | ||
type: delegate | ||
node: 0 | ||
from_account: launch | ||
to_validator_address: cro19zyg34kkrllfqvtumsu3jacg9lgf6lw22xsqye | ||
random_amount: [1, 2, "cro"] # random amount | ||
random_interval: [60, 120] # random job interval in second | ||
- label: Withdraw All Rewards Test | ||
type: withdraw_all_rewards | ||
node: 0 | ||
from_account: txbot_staking | ||
random_interval: [60, 120] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import os | ||
|
||
CHAIN = "" # edit by nix-build | ||
if not CHAIN: | ||
CHAIN = os.environ.get("CHAIN_MAIND", "chain-maind") | ||
IMAGE = "docker.pkg.github.com/crypto-com/chain-main/chain-main-pystarport:latest" | ||
|
||
SUPERVISOR_CONFIG_FILE = "tasks.ini" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.