Skip to content

Commit

Permalink
Add sample tompl file to root of repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jerargus committed Nov 28, 2023
1 parent 9547c7f commit 1ec7758
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
8 changes: 8 additions & 0 deletions common/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,11 @@ DUPLICATE = 200
assert.Check(t, err != nil, "in %q", tc.name)
}
}

func TestCanParseExampleConfig(t *testing.T) {
exampleConfig := "../../example-world.toml"
cfg, err := LoadConfig(exampleConfig)
assert.NilError(t, err)
assert.Equal(t, "my-world-1", cfg.DockerEnv["CARDINAL_NAMESPACE"])
assert.Equal(t, "world-engine", cfg.DockerEnv["CHAIN_ID"])
}
17 changes: 17 additions & 0 deletions example-world.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# By default, the root cardinal directory is the location of this config file. The root
# directory can be changed by uncommenting this line:
# root_dir="/path/to/cardinal/"

[cardinal]
CARDINAL_NAMESPACE="my-world-1"

[evm]
# this value must come from the celestia client. https://docs.celestia.org/developers/node-tutorial#auth-token
DA_AUTH_TOKEN=""
DA_BASE_URL="http://celestia-devnet:26658"
DA_NAMESPACE_ID="67480c4a88c4d12935d4"
CHAIN_ID="world-engine"
# this is a test mnemonic and should not be used in production.
KEY_MNEMONIC="enact adjust liberty squirrel bulk ticket invest tissue antique window thank slam unknown fury script among bread social switch glide wool clog flag enroll"
FAUCET_ADDR="xyzzy"
BLOCK_TIME=-1

0 comments on commit 1ec7758

Please sign in to comment.