Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion e2e/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ build
node_modules
testrly
.testrly
*.log
*.log
cache
addresses
artifacts
2 changes: 1 addition & 1 deletion e2e/chains/bsc/Dockerfile.bsc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine
FROM golang:1.23-alpine

ARG GIT_SOURCE
ARG GIT_CHECKOUT_BRANCH
Expand Down
1 change: 0 additions & 1 deletion e2e/chains/bsc/config/config-bsc-rpc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Lifetime = 600000000000
Blocks = 20
Percentile = 60
OracleThreshold = 20
Default = 5000000000

[Node]
DataDir = "node"
Expand Down
2 changes: 1 addition & 1 deletion e2e/chains/bsc/docker-compose.bsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ services:
dockerfile: Dockerfile.bsc
args:
GIT_SOURCE: https://github.com/bnb-chain/bsc
GIT_CHECKOUT_BRANCH: v1.4.16
GIT_CHECKOUT_BRANCH: v1.5.5
image: bsc-geth:docker-local
14 changes: 14 additions & 0 deletions e2e/chains/bsc/genesis/genesis-template.template
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@
"haberTime": 0,
"haberFixTime": 0,
"bohrTime": 0,
"pascalTime": 0,
"pragueTime": 0,
"blobSchedule": {
"cancun": {
"target": 3,
"max": 6,
"baseFeeUpdateFraction": 3338477
},
"prague": {
"target": 6,
"max": 9,
"baseFeeUpdateFraction": 5007716
}
},
"parlia": {
"period": 3,
"epoch": {{BLOCKS_PER_EPOCH}}
Expand Down
2 changes: 1 addition & 1 deletion e2e/config/demo/ibc-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"mnemonic": "math razor capable expose worth grape metal sunset metal sudden usage scheme",
"path": "m/44'/60'/0'/0/0"
},
"ibc_address": "0x2F5703804E29F4252FA9405B8D357220d11b3bd9",
"ibc_address": "0xaa43d337145E8930d01cb4E60Abf6595C692921E",
"initial_send_checkpoint": 0,
"initial_recv_checkpoint": 0,
"enable_debug_trace": false,
Expand Down
2 changes: 1 addition & 1 deletion e2e/config/demo/ibc-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"mnemonic": "math razor capable expose worth grape metal sunset metal sudden usage scheme",
"path": "m/44'/60'/0'/0/0"
},
"ibc_address": "0x2F5703804E29F4252FA9405B8D357220d11b3bd9",
"ibc_address": "0xaa43d337145E8930d01cb4E60Abf6595C692921E",
"initial_send_checkpoint": 0,
"initial_recv_checkpoint": 0,
"enable_debug_trace": false,
Expand Down
8 changes: 4 additions & 4 deletions e2e/contracts/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.PHONY:deploy
deploy:
npm i
npx truffle migrate --network bsc_local2 --reset
npx truffle migrate --network bsc_local --reset
npx hardhat run ./scripts/deploy.js --network bsc_local1
npx hardhat run ./scripts/deploy.js --network bsc_local2

.PHONY:test
test:
npx truffle exec apps/send.js --network bsc_local2
npx hardhat run ./scripts/send.js --network bsc_local2
sleep 60
../testrly tx relay ibc01 --home ../.testrly
sleep 20
npx truffle exec apps/recv.js --network bsc_local
npx hardhat run ./scripts/recv.js --network bsc_local1
sleep 20
../testrly query unrelayed-packets ibc01 --home ../.testrly | grep '{"src":\[\],"dst":\[\]}'
../testrly tx relay-acknowledgements ibc01 --home ../.testrly
Expand Down
21 changes: 0 additions & 21 deletions e2e/contracts/apps/recv.js

This file was deleted.

19 changes: 0 additions & 19 deletions e2e/contracts/contracts/Migrations.sol

This file was deleted.

33 changes: 33 additions & 0 deletions e2e/contracts/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
require("@nomicfoundation/hardhat-toolbox");
require("@openzeppelin/hardhat-upgrades");

/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 9_999_999
}
},
},
networks: {
bsc_local1: {
url: 'http://localhost:8545',
accounts: {
mnemonic: "math razor capable expose worth grape metal sunset metal sudden usage scheme",
path: "m/44'/60'/0'/0"
},
},
bsc_local2: {
url: 'http://localhost:8645',
accounts: {
mnemonic: "math razor capable expose worth grape metal sunset metal sudden usage scheme",
path: "m/44'/60'/0'/0"
},
}
}
}
5 changes: 0 additions & 5 deletions e2e/contracts/migrations/1_initial_migration.js

This file was deleted.

36 changes: 0 additions & 36 deletions e2e/contracts/migrations/2_deploy_contracts.js

This file was deleted.

26 changes: 0 additions & 26 deletions e2e/contracts/migrations/3_initialize_contract.js

This file was deleted.

Loading