Skip to content

Commit a386b0c

Browse files
committed
more test
1 parent 567b55a commit a386b0c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+2502
-369
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@
3434
[submodule "tests/evm-tools-compatibility/foundry/lib/forge-std"]
3535
path = tests/evm-tools-compatibility/foundry/lib/forge-std
3636
url = https://github.com/foundry-rs/forge-std
37+
[submodule "tests/integration_tests/contracts/openzeppelin-contracts-upgradeable"]
38+
path = tests/integration_tests/contracts/openzeppelin-contracts-upgradeable
39+
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable.git

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ lint-fix:
239239
lint-fix-contracts:
240240
solhint --fix contracts/**/*.sol
241241

242+
lint-py:
243+
flake8 --show-source --count --statistics \
244+
--format="::error file=%(path)s,line=%(row)d,col=%(col)d::%(path)s:%(row)d:%(col)d: %(code)s %(text)s" \
245+
--exclude=tests/integration_tests/contracts \
246+
tests/integration_tests/
247+
242248
.PHONY: lint lint-fix lint-contracts lint-go lint-python
243249

244250
format: format-go format-python format-shell

tests/integration_tests/.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 88
3+
extend-ignore = E203
4+
exclude = .git,__pycache__,./integration_tests/contracts

tests/integration_tests/configs/default.jsonnet

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ local chain = (import 'chains.jsonnet')[std.extVar('CHAIN_CONFIG')];
106106
evm_denom: chain.evm_denom,
107107
active_static_precompiles: [
108108
'0x0000000000000000000000000000000000000800',
109+
'0x0000000000000000000000000000000000000801',
110+
'0x0000000000000000000000000000000000000805',
109111
'0x0000000000000000000000000000000000000807',
110112
],
111113
},
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
local config = import 'default.jsonnet';
2+
local rly_chain = import 'rly_chain.jsonnet';
3+
local rly_common = import 'rly_common.jsonnet';
4+
local chain = (import 'chains.jsonnet')[std.extVar('CHAIN_CONFIG')];
5+
local basic = config['evm-canary-net-1'];
6+
local ibc_common = import 'ibc_common.jsonnet';
7+
8+
config {
9+
'evm-canary-net-1'+: ibc_common {
10+
key_name: 'signer2',
11+
'account-prefix': chain['account-prefix'],
12+
},
13+
'evm-canary-net-2'+: basic + ibc_common {
14+
key_name: 'signer1',
15+
'account-prefix': chain['account-prefix'],
16+
validators: [validator {
17+
base_port: 26800 + i * 10,
18+
} for i in std.range(0, std.length(super.validators) - 1) for validator in [super.validators[i]]],
19+
},
20+
relayer: rly_common {
21+
chains: [
22+
rly_chain {
23+
id: 'evm-canary-net-1',
24+
gas_price+: {
25+
denom: chain.evm_denom,
26+
},
27+
},
28+
rly_chain {
29+
id: 'evm-canary-net-2',
30+
gas_price+: {
31+
denom: chain.evm_denom,
32+
},
33+
},
34+
],
35+
},
36+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
'coin-type': 60,
3+
'app-config'+: {
4+
'index-events': super['index-events'] + ['message.action'],
5+
},
6+
genesis+: {
7+
app_state+: {
8+
feemarket+: {
9+
params+: {
10+
no_base_fee: true,
11+
base_fee: '0',
12+
min_gas_price: '0',
13+
},
14+
},
15+
staking+: {
16+
params+: {
17+
unbonding_time: '1814400s',
18+
},
19+
},
20+
},
21+
},
22+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
max_gas: 2500000,
3+
gas_multiplier: 1.1,
4+
address_type: {
5+
derivation: 'ethermint',
6+
proto_type: {
7+
pk_type: '/cosmos.evm.crypto.v1.ethsecp256k1.PubKey',
8+
},
9+
},
10+
gas_price: {
11+
price: 0.1,
12+
},
13+
event_source: {
14+
batch_delay: '5000ms',
15+
},
16+
extension_options: [{
17+
type: 'cosmos_evm_dynamic_fee_v1',
18+
value: '10000000000000000',
19+
}],
20+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
mode: {
3+
clients: {
4+
enabled: true,
5+
refresh: true,
6+
misbehaviour: true,
7+
},
8+
connections: {
9+
enabled: true,
10+
},
11+
channels: {
12+
enabled: true,
13+
},
14+
packets: {
15+
enabled: true,
16+
tx_confirmation: true,
17+
},
18+
},
19+
rest: {
20+
enabled: true,
21+
host: '127.0.0.1',
22+
port: 3000,
23+
},
24+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
local config = import 'default.jsonnet';
2+
local chain = (import 'chains.jsonnet')[std.extVar('CHAIN_CONFIG')];
3+
4+
config {
5+
'evm-canary-net-1'+: {
6+
validators: super.validators + [{
7+
'coin-type': 60,
8+
coins: '100000000000000000000' + chain.evm_denom,
9+
staked: '10000000000000000000' + chain.evm_denom,
10+
gas_prices: '0.01' + chain.evm_denom,
11+
min_self_delegation: 1000000000000000000,
12+
mnemonic: '${VALIDATOR4_MNEMONIC}',
13+
}],
14+
},
15+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/cache

0 commit comments

Comments
 (0)