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
2 changes: 1 addition & 1 deletion .github/workflows/validate-gentx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
default: 'mainnet'

env:
WARDEND_VERSION: 'v0.7.0-rc5'
WARDEND_VERSION: 'v0.7.0'
GO_VERSION: '1.25'
DAGGER_NO_NAG: '1'

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ validate-custom: ## Validate with custom parameters (use NETWORK, WARDEND_VERSIO
@cd ci && dagger call validate-all-gentx-together \
--source=.. \
--network=$(or $(NETWORK),mainnet) \
--wardend-version=$(or $(WARDEND_VERSION),v0.7.0-rc3) \
--wardend-version=$(or $(WARDEND_VERSION),v0.7.0) \
--go-version=$(or $(GO_VERSION),1.24)

# Development targets
Expand Down
29 changes: 21 additions & 8 deletions ci/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (m *Ci) ValidateGentxCli(
network string,
// Wardend version to use for validation
// +optional
// +default="v0.7.0-rc3"
// +default="v0.7.0"
wardendVersion string,
// Go version for building check-genesis tool
// +optional
Expand Down Expand Up @@ -55,7 +55,7 @@ func (m *Ci) ValidateGentx(
network string,
// Wardend version to use for validation
// +optional
// +default="v0.7.0-rc3"
// +default="v0.7.0"
wardendVersion string,
// Go version for building check-genesis tool
// +optional
Expand Down Expand Up @@ -158,7 +158,11 @@ type FileValidationResult struct {
}

// getGentxFiles returns the list of gentx files to validate
func (m *Ci) getGentxFiles(ctx context.Context, source *dagger.Directory, network string) ([]string, error) {
func (m *Ci) getGentxFiles(
ctx context.Context,
source *dagger.Directory,
network string,
) ([]string, error) {
if network != "mainnet" {
return nil, fmt.Errorf("only mainnet network is supported")
}
Expand Down Expand Up @@ -260,7 +264,7 @@ func (m *Ci) RunLocalValidation(
network string,
// Wardend version to use for validation
// +optional
// +default="v0.7.0-rc3"
// +default="v0.7.0"
wardendVersion string,
// Go version for building check-genesis tool
// +optional
Expand Down Expand Up @@ -317,7 +321,7 @@ func (m *Ci) CopyAllGentx(
network string,
// Wardend version to use for validation
// +optional
// +default="v0.7.0-rc3"
// +default="v0.7.0"
wardendVersion string,
) (*dagger.Container, error) {
// Get the list of gentx files
Expand Down Expand Up @@ -372,7 +376,7 @@ func (m *Ci) ValidateAllGentxTogether(
network string,
// Wardend version to use for validation
// +optional
// +default="v0.7.0-rc3"
// +default="v0.7.0"
wardendVersion string,
// Go version for building check-genesis tool
// +optional
Expand Down Expand Up @@ -421,7 +425,12 @@ func (m *Ci) ValidateAllGentxTogether(
debugResult := validationResult.WithExec([]string{"cat", "logs.txt"})
debugLogs, _ := debugResult.Stdout(ctx)

return fmt.Sprintf("❌ Validation FAILED:\n%s\n\nStderr:\n%s\n\nDebug logs:\n%s", stdout, stderr, debugLogs), stdoutErr
return fmt.Sprintf(
"❌ Validation FAILED:\n%s\n\nStderr:\n%s\n\nDebug logs:\n%s",
stdout,
stderr,
debugLogs,
), stdoutErr
}

return fmt.Sprintf("✅ Validation PASSED:\n%s", stdout), nil
Expand Down Expand Up @@ -466,7 +475,11 @@ func (m *Ci) TestCheckGenesisTool(
usageOutput, _ := usageContainer.Stdout(ctx)
usageError, _ := usageContainer.Stderr(ctx)

result := fmt.Sprintf("✅ check-genesis tool build and test successful:\n\nFile details:\n%s\nUsage output:\n%s", lsOutput, usageOutput)
result := fmt.Sprintf(
"✅ check-genesis tool build and test successful:\n\nFile details:\n%s\nUsage output:\n%s",
lsOutput,
usageOutput,
)
if usageError != "" {
result += fmt.Sprintf("\nUsage stderr:\n%s", usageError)
}
Expand Down
69 changes: 69 additions & 0 deletions mainnet/gentx/gentx-f0e60309bd1f084dd3803706bce3fb7d7349a5e7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"body": {
"messages": [
{
"@type": "/cosmos.staking.v1beta1.MsgCreateValidator",
"description": {
"moniker": "WardenLabs",
"identity": "",
"website": "",
"security_contact": "",
"details": ""
},
"commission": {
"rate": "0.100000000000000000",
"max_rate": "0.200000000000000000",
"max_change_rate": "0.100000000000000000"
},
"min_self_delegation": "1",
"delegator_address": "",
"validator_address": "wardenvaloper1qvyu97ps4sgqnsapvdv9akkarythawx7927ukx",
"pubkey": {
"@type": "/cosmos.crypto.ed25519.PubKey",
"key": "ZkDMWNUY91ZZPuOzOKpKdCLjqoQgD0PE6CdFPLmL4gs="
},
"value": {
"denom": "award",
"amount": "8000000000000000000"
}
}
],
"memo": "f0e60309bd1f084dd3803706bce3fb7d7349a5e7@192.168.88.75:26656",
"timeout_height": "0",
"unordered": false,
"timeout_timestamp": null,
"extension_options": [],
"non_critical_extension_options": []
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"@type": "/cosmos.evm.crypto.v1.ethsecp256k1.PubKey",
"key": "AjOg9zGpaas2ow43raDKO8ZZ9WF8ZiSFWc8gTkZ9IgWT"
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_DIRECT"
}
},
"sequence": "0"
}
],
"fee": {
"amount": [
{
"denom": "award",
"amount": "1000000000000000000"
}
],
"gas_limit": "200000",
"payer": "",
"granter": ""
},
"tip": null
},
"signatures": [
"rBJPYk/XDUwh45UZrkfegvqmTELFLd0zP1nCqAtJK7IavXyWgznKcaP1lfAI2FxMu5gGOAXSGCaDyryezn47rwA="
]
}