Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
anhductn2001 committed Aug 30, 2024
1 parent 3b4bb09 commit cdf0ac0
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 30 deletions.
8 changes: 4 additions & 4 deletions tests/fullnode_sync_block_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ func TestSync_BlockSync_EVM(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down Expand Up @@ -407,12 +407,12 @@ func TestSync_BlockSync_fn_disconnect_EVM(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down
24 changes: 12 additions & 12 deletions tests/fullnode_sync_gossip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ func TestSync_Celes_Rt_Gossip_EVM(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down Expand Up @@ -376,12 +376,12 @@ func TestSync_Celes_Rt_Gossip_Wasm(t *testing.T) {
numCelestiaFn := 0
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down Expand Up @@ -653,12 +653,12 @@ func TestSync_Sqc_Disconnect_Gossip_EVM(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down Expand Up @@ -1001,12 +1001,12 @@ func TestSync_Sqc_Disconnect_Gossip_Wasm(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down Expand Up @@ -1349,12 +1349,12 @@ func TestSync_Fullnode_Disconnect_Gossip_EVM(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down Expand Up @@ -1694,12 +1694,12 @@ func TestSync_Fullnode_Disconnect_Gossip_Wasm(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down
8 changes: 4 additions & 4 deletions tests/fullnode_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,14 @@ func TestFullnodeSync_Celestia_EVM(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"
// trustedHash := "\"A62DD37EDF3DFF5A7383C6B5AA2AC619D1F8C8FEB7BA07730E50BBAAC8F2FF0C\""
// sampleFrom := 2395649

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down Expand Up @@ -607,14 +607,14 @@ func TestFullnodeSync_Celestia_Wasm(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"
// trustedHash := "\"A62DD37EDF3DFF5A7383C6B5AA2AC619D1F8C8FEB7BA07730E50BBAAC8F2FF0C\""
// sampleFrom := 2395649

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down
8 changes: 4 additions & 4 deletions tests/sequencer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ func TestSequencerCelestia_EVM(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"
// trustedHash := "\"017428B113893E854767E626BC9CF860BDF49C2AC2DF56F3C1B6582B2597AC6E\""
// sampleFrom := 2423882

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down Expand Up @@ -338,14 +338,14 @@ func TestSequencerHubDisconnection_EVM(t *testing.T) {
numRollAppVals := 1
nodeStore := "/home/celestia/light"
p2pNetwork := "mocha-4"
coreIp := "celestia-testnet-consensus.itrocket.net"
coreIp := "rpc-mocha.pops.one"
// trustedHash := "\"017428B113893E854767E626BC9CF860BDF49C2AC2DF56F3C1B6582B2597AC6E\""
// sampleFrom := 2423882

url := "https://api-mocha.celenium.io/v1/block/count"
headerKey := "User-Agent"
headerValue := "Apidog/1.0.0 (https://apidog.com)"
rpcEndpoint := "http://celestia-testnet-consensus.itrocket.net:26657"
rpcEndpoint := "http://rpc-mocha.pops.one:26657"

cf := test.NewBuiltinChainFactory(zaptest.NewLogger(t), []*test.ChainSpec{
{
Expand Down
36 changes: 30 additions & 6 deletions tests/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ type ForwardMetadata struct {
}

const (
ibcPath = "dymension-demo"
anotherIbcPath = "dymension-demo2"
BLOCK_FINALITY_PERIOD = 30
EventDemandOrderCreated = "dymensionxyz.dymension.eibc.EventDemandOrderCreated"
EventDemandOrderFulfilled = "dymensionxyz.dymension.eibc.EventDemandOrderFulfilled"
EventDemandOrderFeeUpdated = "dymensionxyz.dymension.eibc.EventDemandOrderFeeUpdated"
ibcPath = "dymension-demo"
anotherIbcPath = "dymension-demo2"
BLOCK_FINALITY_PERIOD = 30
EventDemandOrderCreated = "dymensionxyz.dymension.eibc.EventDemandOrderCreated"
EventDemandOrderFulfilled = "dymensionxyz.dymension.eibc.EventDemandOrderFulfilled"
EventDemandOrderFeeUpdated = "dymensionxyz.dymension.eibc.EventDemandOrderFeeUpdated"
EventDemandOrderPacketStatusUpdated = "dymensionxyz.dymension.eibc.EventDemandOrderPacketStatusUpdated"
)

Expand Down Expand Up @@ -195,6 +195,14 @@ var (
}

rollappEVMGenesisKV = []cosmos.GenesisKV{
{
Key: "app_state.sequencers.params.unbonding_time",
Value: "180s",
},
{
Key: "app_state.staking.params.unbonding_time",
Value: "180s",
},
{
Key: "app_state.mint.params.mint_denom",
Value: "urax",
Expand Down Expand Up @@ -263,6 +271,14 @@ var (
}

rollappWasmGenesisKV = []cosmos.GenesisKV{
{
Key: "app_state.sequencers.params.unbonding_time",
Value: "180s",
},
{
Key: "app_state.staking.params.unbonding_time",
Value: "180s",
},
// Bank denom metadata
{
Key: "app_state.bank.denom_metadata",
Expand Down Expand Up @@ -291,6 +307,14 @@ var (
}

dymensionGenesisKV = []cosmos.GenesisKV{
{
Key: "app_state.sequencer.params.unbonding_time",
Value: "180s",
},
{
Key: "app_state.staking.params.unbonding_time",
Value: "180s",
},
// gov params
{
Key: "app_state.gov.params.voting_period",
Expand Down

0 comments on commit cdf0ac0

Please sign in to comment.