Open
Conversation
added 2 commits
April 8, 2026 11:18
There was a problem hiding this comment.
Pull request overview
Adds Secret Network (Cosmos SDK / CosmWasm) as a new target chain type in the relayer, including a remote-only FKMS signer flow, provider/client implementation, config parsing, and DB schema updates to record Secret transactions.
Changes:
- Introduce
secretchain provider + client to build/sign (via FKMS) and broadcast Secret txs, then poll confirmation and record metrics/DB transactions. - Add Secret remote-only wallet/signer integration (FKMS
SignSecret) and wire it into wallet/store/config chain-type dispatch. - Extend DB schema/migrations to accept
chain_type='secret'(Postgres enum + SQLite CHECK constraint).
Reviewed changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| relayer/chains/secret/config.go | New Secret provider config + provider factory; sets Cosmos bech32 prefixes. |
| relayer/chains/secret/client.go | New Cosmos/CometBFT RPC client pool for Secret (broadcast/query/tx/block/account). |
| relayer/chains/secret/provider.go | New Secret relay loop (sign via FKMS, broadcast, confirm, metrics, DB persistence). |
| relayer/chains/secret/types.go | Secret tx result model used by provider confirmation/persistence. |
| relayer/wallet/secret/wallet.go | New Secret wallet constructor using remote-only adapter. |
| relayer/wallet/secret/types.go | JSON signer payload type for FKMS Secret signing. |
| relayer/wallet/secret/remote_signer.go | New FKMS SignSecret remote signer implementation. |
| relayer/config/config.go | Add parsing support for chain_type = "secret" provider configs. |
| relayer/store/filesystem.go | Wire Secret wallet creation into the store wallet factory switch. |
| relayer/chains/types/chain_type.go | Add ChainTypeSecret and "secret" string mapping. |
| relayer/db/migrations/postgres/00005_add_secret_chain_type.sql | Add 'secret' value to Postgres chain_type enum. |
| relayer/db/migrations/sqlite/00001_create_transactions.sql | Expand SQLite chain_type CHECK constraint to include secret. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation details
Add Secret Chain
Please ensure the following requirements are met before submitting a pull request:
CHANGELOG_UNRELEASED.mdFiles changedtab in the Github PR explorer)