Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update coreIP for DA and set notice_period and unbonding_time #400

Merged
merged 1 commit into from
Sep 9, 2024
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
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
Loading