-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an example config files, add volumes for pre/post, small improvement
- Loading branch information
Showing
5 changed files
with
253 additions
and
37 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
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,102 @@ | ||
vega_binary_path = "vega" | ||
|
||
network "testnet" { | ||
ethereum { | ||
chain_id = "1440" | ||
network_id = "1441" | ||
endpoint = "http://127.0.0.1:8545/" | ||
} | ||
|
||
faucet "faucet-1" { | ||
wallet_pass = "f4uc3tw4ll3t-v3g4-p4ssphr4e3" | ||
|
||
template = <<-EOT | ||
[Node] | ||
Port = 3002 | ||
IP = "127.0.0.1" | ||
EOT | ||
} | ||
|
||
wallet "wallet-1" { | ||
binary = "vegawallet" | ||
|
||
template = <<-EOT | ||
Name = "DV" | ||
Level = "debug" | ||
TokenExpiry = "168h0m0s" | ||
Port = 1789 | ||
Host = "0.0.0.0" | ||
[API] | ||
[API.GRPC] | ||
Hosts = [{{range $i, $v := .Validators}}{{if ne $i 0}},{{end}}"127.0.0.1:30{{$i}}2"{{end}}] | ||
Retries = 5 | ||
EOT | ||
} | ||
|
||
pre_start { | ||
docker_service "ganache-1" { | ||
image = "vegaprotocol/ganache:latest" | ||
cmd = "ganache-cli" | ||
args = [ | ||
"--blockTime", "1", | ||
"--chainId", "1440", | ||
"--networkId", "1441", | ||
"-h", "0.0.0.0", | ||
"-p", "8545", | ||
"-m", "ozone access unlock valid olympic save include omit supply green clown session", | ||
"--db", "/app/ganache-db", | ||
] | ||
static_port { | ||
value = 8545 | ||
to = 8545 | ||
} | ||
auth_soft_fail = true | ||
volumes = [ | ||
"./net_confs/docker:/config" | ||
] | ||
} | ||
} | ||
|
||
post_start { | ||
docker_service "liqbot" { | ||
image = "vegaprotocol/liqbot:local" | ||
cmd = "./liqbot" | ||
args = [ | ||
"--config=/config/liqbot_config.yaml" | ||
] | ||
auth_soft_fail = true | ||
volumes = [ | ||
"./net_confs/docker:/config" | ||
] | ||
} | ||
} | ||
|
||
genesis_template_file = "./genesis.tmpl" | ||
smart_contracts_addresses_file = "./public_smart_contracts_addresses.json" | ||
|
||
node_set "validators" { | ||
count = 2 | ||
mode = "validator" | ||
node_wallet_pass = "n0d3w4ll3t-p4ssphr4e3" | ||
vega_wallet_pass = "w4ll3t-p4ssphr4e3" | ||
ethereum_wallet_pass = "ch41nw4ll3t-3th3r3um-p4ssphr4e3" | ||
|
||
config_templates { | ||
vega_file = "./node_set_templates/default/vega_validators.tmpl" | ||
tendermint_file = "./node_set_templates/default/tendermint_validators.tmpl" | ||
} | ||
} | ||
|
||
node_set "full" { | ||
count = 1 | ||
mode = "full" | ||
data_node_binary = "data-node" | ||
|
||
config_templates { | ||
vega_file = "./node_set_templates/default/vega_full.tmpl" | ||
tendermint_file = "./node_set_templates/default/tendermint_full.tmpl" | ||
data_node_file = "./node_set_templates/default/data_node_full.tmpl" | ||
} | ||
} | ||
} |
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,77 @@ | ||
--- | ||
|
||
server: | ||
env: prod # dev, prod | ||
listen: ":7800" | ||
logformat: text # json, text | ||
loglevel: debug # debug, info, warning, error | ||
pricing: | ||
address: | ||
scheme: https | ||
host: prices.ops.vega.xyz | ||
path: /prices | ||
wallet: | ||
url: http://host.docker.internal:1789 | ||
tokenExpiry: 31536000 # seconds | ||
seed: | ||
ethereumAddress: https://host.docker.internal:8545 | ||
erc20BridgeAddress: 0x9708FF7510D4A7B9541e1699d15b53Ecb1AFDc54 | ||
stakingBridgeAddress: 0x9135f5afd6F055e731bca2348429482eE614CFfA | ||
tUSDCTokenAddress: 0x1b8a1B6CBE5c93609b46D1829Cc7f3Cb8eeE23a0 | ||
vegaTokenAddress: 0x67175Da1D5e966e40D11c4B2519392B2058373de | ||
contractOwnerAddress: 0xEe7D375bcB50C26d52E1A4a472D8822A2A22d94F | ||
contractOwnerPrivateKey: a37f4c2a678aefb5037bf415a826df1540b330b7e471aa54184877ba901b9ef0 | ||
amount: 1000000000000000000 | ||
bots: | ||
- name: w00 | ||
location: host.docker.internal:3027 | ||
connectTimeout: 30000 # milliseconds | ||
callTimeout: 10000 # milliseconds | ||
marketID: b07e975907e117d7b82f767771f1983ba2023f7d2a61a88f3206d8a7c43b69d5 # BTC/USD | ||
instrumentBase: BTC | ||
instrumentQuote: USD | ||
strategy: normal | ||
strategyDetails: | ||
expectedMarkPrice: 0 | ||
auctionVolume: 100 | ||
maxLong: 100 | ||
maxShort: 100 | ||
posManagementFraction: 0.25 | ||
stakeFraction: 0.1 | ||
ordersFraction: 0.25 | ||
commitmentFraction: 0.10 | ||
fee: 0.01 | ||
|
||
shorteningShape: | ||
sells: | ||
- {reference: Ask, proportion: 10, offset: 8} | ||
- {reference: Ask, proportion: 20, offset: 4} | ||
- {reference: Ask, proportion: 30, offset: 2} | ||
- {reference: Ask, proportion: 40, offset: 1} | ||
buys: | ||
- {reference: Bid, proportion: 40, offset: 2} | ||
- {reference: Bid, proportion: 30, offset: 4} | ||
- {reference: Bid, proportion: 20, offset: 8} | ||
- {reference: Bid, proportion: 10, offset: 16} | ||
longeningShape: | ||
sells: | ||
- {reference: Ask, proportion: 10, offset: 16} | ||
- {reference: Ask, proportion: 20, offset: 8} | ||
- {reference: Ask, proportion: 30, offset: 4} | ||
- {reference: Ask, proportion: 40, offset: 2} | ||
buys: | ||
- {reference: Bid, proportion: 40, offset: 1} | ||
- {reference: Bid, proportion: 30, offset: 2} | ||
- {reference: Bid, proportion: 20, offset: 4} | ||
- {reference: Bid, proportion: 10, offset: 8} | ||
posManagementSleepMilliseconds: 5050 | ||
marketPriceSteeringRatePerSecond: 0.25 | ||
minPriceSteerFraction: 0.00001 | ||
priceSteerOrderScale: 20.5 | ||
limitOrderDistributionParams: | ||
method: "discreteThreeLevel" | ||
gttLengthSeconds: 60 | ||
tgtTimeHorizonHours: 1.0 | ||
numTicksFromMid: 5 | ||
numIdenticalBots: 1 | ||
targetLNVol: 0.25 |
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.