Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-nguy committed Nov 22, 2021
1 parent 0287876 commit 18f9bbd
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 5 deletions.
2 changes: 1 addition & 1 deletion integration_tests/configs/genesis_token_mapping.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cronos_777-1:
cmd: cronosd
start-flags: "--trace"
start-flags: "--trace --unsafe-experimental"
app-config:
json-rpc:
address: "0.0.0.0:{EVMRPC_PORT}"
Expand Down
9 changes: 9 additions & 0 deletions integration_tests/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ def setup_cronos(path, base_port, enable_auto_deployment=True):
yield from setup_custom_cronos(path, base_port, cfg)


def setup_cronos_experimental(path, base_port, enable_auto_deployment=True):
cfg = Path(__file__).parent / (
"../scripts/cronos-experimental-devnet.yaml"
if enable_auto_deployment
else "configs/disable_auto_deployment.yaml"
)
yield from setup_custom_cronos(path, base_port, cfg)


def setup_chainmain(path, base_port):
cmd = ["start-chainmain", path, "--base_port", str(base_port)]
print(*cmd)
Expand Down
7 changes: 4 additions & 3 deletions integration_tests/test_gravity.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
from hexbytes import HexBytes
from pystarport import ports

from .conftest import setup_cronos, setup_geth
from .gorc import GoRc
from .network import GravityBridge
from .network import GravityBridge, setup_cronos_experimental, setup_geth
from .utils import (
ADDRS,
KEYS,
Expand Down Expand Up @@ -85,7 +84,9 @@ def geth(tmp_path_factory):
@pytest.fixture(scope="module", params=[True, False])
def cronos(request, tmp_path_factory):
"start-cronos"
yield from setup_cronos(tmp_path_factory.mktemp("cronos"), 26700, request.param)
yield from setup_cronos_experimental(
tmp_path_factory.mktemp("cronos_experimental"), 26700, request.param
)


@pytest.fixture(scope="module")
Expand Down
52 changes: 52 additions & 0 deletions scripts/cronos-experimental-devnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
cronos_777-1:
cmd: cronosd
start-flags: "--trace --unsafe-experimental"
app-config:
minimum-gas-prices: 5000000000000basetcro
json-rpc:
address: "0.0.0.0:{EVMRPC_PORT}"
ws-address: "0.0.0.0:{EVMRPC_PORT_WS}"
validators:
- coins: 1000000000000000000stake,10000000000000000000000basetcro
staked: 1000000000000000000stake
mnemonic: visit craft resemble online window solution west chuckle music diesel vital settle comic tribe project blame bulb armed flower region sausage mercy arrive release
- coins: 1000000000000000000stake,10000000000000000000000basetcro
staked: 1000000000000000000stake
mnemonic: direct travel shrug hand twice agent sail sell jump phone velvet pilot mango charge usual multiply orient garment bleak virtual action mention panda vast
accounts:
- name: community
coins: 10000000000000000000000basetcro
mnemonic: "notable error gospel wave pair ugly measure elite toddler cost various fly make eye ketchup despair slab throw tribe swarm word fruit into inmate"
- name: signer1
coins: 20000000000000000000000basetcro
mnemonic: shed crumble dismiss loyal latin million oblige gesture shrug still oxygen custom remove ribbon disorder palace addict again blanket sad flock consider obey popular
- name: signer2
coins: 30000000000000000000000basetcro
mnemonic: night renew tonight dinner shaft scheme domain oppose echo summer broccoli agent face guitar surface belt veteran siren poem alcohol menu custom crunch index

genesis:
consensus_params:
block:
max_bytes: "1048576"
max_gas: "81500000"
app_state:
evm:
params:
evm_denom: basetcro
cronos:
params:
cronos_admin: crc12luku6uxehhak02py4rcz65zu0swh7wjsrw0pp
enable_auto_deployment: true
ibc_cro_denom: ibc/6411AE2ADA1E73DB59DB151A8988F9B7D5E7E233D8414DB6817F8F1A01611F86
gov:
voting_params:
voting_period: "10s"
deposit_params:
max_deposit_period: "10s"
min_deposit:
- denom: "basetcro"
amount: "1"
transfer:
params:
receive_enabled: true
send_enabled: true
2 changes: 1 addition & 1 deletion scripts/devnet.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cronos_777-1:
cmd: ./build/cronosd
start-flags: "--trace"
start-flags: "--trace --unsafe-experimental"
app-config:
json-rpc:
address: "0.0.0.0:{EVMRPC_PORT}"
Expand Down

0 comments on commit 18f9bbd

Please sign in to comment.