Compare commits

...
Author SHA1 Message Date
dependabot[bot]andGitHub 9a19dddc8e chore(deps): bump cosmossdk.io/x/nft from 0.1.0 to 0.2.0
Bumps [cosmossdk.io/x/nft](https://github.com/cosmos/cosmos-sdk) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/cosmos/cosmos-sdk/releases)
- [Changelog](https://github.com/cosmos/cosmos-sdk/blob/v0.2.0/CHANGELOG.md)
- [Commits](https://github.com/cosmos/cosmos-sdk/compare/api/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: cosmossdk.io/x/nft
  dependency-version: 0.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 02:06:28 +00:00
Prad NukalaandGitHub 6c6cec6326 ci: migrate workflows to tenki (#1309)
👋 Hey there, reviewer!

Experience the fastest GitHub Actions with
[Tenki](https://www.tenki.cloud/), built for performance and cost
efficiency.

## What does this PR do?

This pull request was automatically generated by Tenki's Migration
Wizard.

Here's what's new once you merge:

- ** Faster Runners:** Your workflows now use Tenki's high-performance
bare-metal infrastructure ~35% faster than
default GitHub-hosted runners. 
[Learn more about Tenki's instance types
→](https://www.tenki.cloud/docs/runner-offering)

- **💵 Cheaper Runners:** as you now use Tenki's high-performance
bare-metal infrastructure and WE manage the costs,
that means for you: 90% cheaper than default GitHub-hosted runners. 
[Learn more about Tenki's pricing
→](https://www.tenki.cloud/docs/runner-billing)

## Any questions ? 
**- Is this free?** 
Yes, your first 3,000 minutes per month are on us.

**- Do I need to complete any other steps to migrate to Tenki?**
Nope. Hit Merge, and you are good to go 🎊

**- Who's can I contact if I have any other questions?**
Reach out at [hello@tenki.cloud,](mailto:hello@tenki.cloud,) we will
answer you within 24hrs.
2025-11-19 17:45:53 -05:00
tenki-cloud[bot]andGitHub f4c7b72b3e chore: migrate runner to tenki 2025-11-19 22:44:40 +00:00
tenki-cloud[bot]andGitHub 5dbcc455e8 chore: migrate runner to tenki 2025-11-19 22:44:40 +00:00
181b10b6b2 Feat/noble ibc testnet (#1307)
* feat(dex): integrate Noble testnet for USDC cross-chain operations

This commit integrates the Noble testnet (grand-1) with Sonr's x/dex module,
enabling native USDC trading and liquidity operations across IBC-enabled chains.

Changes:
- Add default params configuration with Noble testnet in allowed connections
- Create Noble-specific helper types and functions for USDC operations
- Implement USDC conversion utilities (base units <-> USDC decimals)
- Add NobleSwapParams and NobleLiquidityParams for structured operations
- Update genesis state to use default params with validation
- Add comprehensive Noble integration documentation
- Create unit tests for params and Noble helpers

Noble Configuration:
- Chain ID: noble-grand-1 (testnet)
- USDC Denom: uusdc (6 decimals)
- RPC: https://noble-testnet-rpc.polkachu.com:443
- gRPC: noble-testnet-grpc.polkachu.com:21590

Module Parameters:
- Max accounts per DID: 5
- Default ICA timeout: 600 seconds
- Min swap amount: 1000 base units
- Max daily volume: 1T base units
- Rate limits: 10 ops/block, 100 ops/DID/day
- Fees: 0.3% swap, 0.2% liquidity, 0.1% orders

This integration enables Sonr users to:
- Register ICA accounts on Noble testnet
- Execute cross-chain swaps with USDC
- Provide/remove liquidity in USDC pairs
- Trade with slippage protection
- Route multi-hop swaps through USDC

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore(ci): migrate scopes to toml format

* feat(dex): add support for noble usdc swaps

##

feat(dex): add support for noble usdc swaps

* feat(test): add e2e tests for usdc swap with did

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-18 12:28:30 -05:00
Prad Nukala 4ddcd54558 Merge branch 'master' into feat/noble-ibc-testnet 2025-11-18 12:27:30 -05:00
Prad Nukala f71193674b feat(cmd): add ASCII art logo to CLI output 2025-11-18 12:27:01 -05:00
Prad Nukala ad69f0ac80 refactor(cmd): remove unnecessary logo print statement from main function 2025-11-18 12:20:40 -05:00
Prad Nukala 28eba5a3f3 feat(cmd): add ASCII art logo to snrd cli tool 2025-11-18 12:19:21 -05:00
Prad Nukala 99167120dc chore(.gitignore): add .claude to ignore list 2025-11-05 15:03:16 -05:00
Prad Nukala 93a5d8826d > Ran tool: github_create_or_update_file
>
> *Failed*:
> ```
> failed to create/update file: PUT https://api.github.com/repos/sonr-io/sonr-io.github.io/contents/docs/guides/decentralized-authentication.mdx: 401 Bad credentials []
> ```

> Ran tool: `github_create_or_update_file`
>
> *Failed*:
> ```
> failed to create/update file: PUT https://api.github.com/repos/sonr-io/sonr-io.github.io/contents/docs/guides/decentralized-authentication.mdx: 401 Bad credentials []
> ```

docs: Remove decentralized authentication guide
2025-10-28 10:39:59 -04:00
Prad NukalaandGitHub ae16bee0c1 Merge branch 'master' into feat/noble-ibc-testnet 2025-10-26 16:49:38 -04:00
Prad Nukala 6f93b63e4b feat(test): add e2e tests for usdc swap with did 2025-10-26 16:22:10 -04:00
Prad Nukala 3c682390a6 feat(dex): add support for noble usdc swaps
##

feat(dex): add support for noble usdc swaps
2025-10-26 16:22:07 -04:00
Prad Nukala 85304fd8b4 chore(ci): migrate scopes to toml format 2025-10-26 16:22:04 -04:00
Prad Nukala be4e4b8367 docs(src): add README file for sonrctl cli 2025-10-25 14:43:47 -04:00
Prad Nukala 88ca486108 chore(devbox): add dasel package and update devbox config 2025-10-25 14:43:46 -04:00
Prad Nukala 30635ba397 chore(ci): migrate scopes to toml format 2025-10-25 14:43:44 -04:00
30 changed files with 3006 additions and 854 deletions
+18
View File
@@ -0,0 +1,18 @@
[scopes]
ante = ["app/ante"]
api = ["api/dex", "api/did", "api/dwn", "api/svc", "api"]
app = ["app/context", "app/decorators", "app/params", "app/upgrades", "app"]
chains = ["chains"]
ci = ["Makefile", ".github"]
cli = ["app/commands"]
cmd = ["cmd/snrd", "cmd"]
config = ["networks/localnet", "networks/testnet", "networks"]
deps = ["go.sum", "go.mod"]
dex = ["proto/dex", "x/dex"]
did = ["proto/did", "x/did"]
docs = ["docs"]
dwn = ["proto/dwn", "x/dwn"]
proto = ["proto"]
scripts = ["scripts"]
svc = ["proto/svc", "x/svc"]
test = ["test/e2e", "test/integration", "test/oauth", "test"]
-150
View File
@@ -1,150 +0,0 @@
[
{
"scope": "deps",
"path": "go.sum"
},
{
"scope": "deps",
"path": "go.mod"
},
{
"scope": "api",
"path": "api/dex"
},
{
"scope": "api",
"path": "api/did"
},
{
"scope": "api",
"path": "api/dwn"
},
{
"scope": "api",
"path": "api/svc"
},
{
"scope": "api",
"path": "api"
},
{
"scope": "ante",
"path": "app/ante"
},
{
"scope": "cli",
"path": "app/commands"
},
{
"scope": "app",
"path": "app/context"
},
{
"scope": "app",
"path": "app/decorators"
},
{
"scope": "app",
"path": "app/params"
},
{
"scope": "app",
"path": "app/upgrades"
},
{
"scope": "app",
"path": "app"
},
{
"scope": "chains",
"path": "chains"
},
{
"scope": "cmd",
"path": "cmd/snrd"
},
{
"scope": "cmd",
"path": "cmd"
},
{
"scope": "docs",
"path": "docs"
},
{
"scope": "config",
"path": "networks/localnet"
},
{
"scope": "config",
"path": "networks/testnet"
},
{
"scope": "config",
"path": "networks"
},
{
"scope": "dex",
"path": "proto/dex"
},
{
"scope": "did",
"path": "proto/did"
},
{
"scope": "dwn",
"path": "proto/dwn"
},
{
"scope": "svc",
"path": "proto/svc"
},
{
"scope": "proto",
"path": "proto"
},
{
"scope": "scripts",
"path": "scripts"
},
{
"scope": "test",
"path": "test/e2e"
},
{
"scope": "test",
"path": "test/integration"
},
{
"scope": "test",
"path": "test/oauth"
},
{
"scope": "test",
"path": "test"
},
{
"scope": "dex",
"path": "x/dex"
},
{
"scope": "did",
"path": "x/did"
},
{
"scope": "dwn",
"path": "x/dwn"
},
{
"scope": "svc",
"path": "x/svc"
},
{
"scope": "ci",
"path": "Makefile"
},
{
"scope": "ci",
"path": ".github"
}
]
+1 -1
View File
@@ -7,7 +7,7 @@ on:
jobs:
report:
name: Report CI Status
runs-on: builder
runs-on: tenki-standard-autoscale
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Report Failure
+3 -3
View File
@@ -13,12 +13,12 @@ env:
jobs:
validate:
name: Validate & Test
runs-on: builder # Self-hosted runner
runs-on: tenki-standard-autoscale
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for github-env.sh comparisons
fetch-depth: 0 # Required for github-env.sh comparisons
# Cache can be local on self-hosted runner for better performance
- name: Cache Dependencies
uses: actions/cache@v4
@@ -57,4 +57,4 @@ jobs:
# Clean build artifacts to prevent disk fill
make clean || true
# Keep caches but remove build outputs
rm -rf dist/ build/ || true
rm -rf dist/ build/ || true
+2
View File
@@ -121,3 +121,5 @@ tmp-openapi-gen/**/*.json
# Allow the final combined openapi.yml
!docs/static/openapi.yml
.mcp.json
node_modules
.claude
+19 -1
View File
@@ -253,6 +253,19 @@ test-e2e-all:
@gum log --level info "Running all e2e tests"
@cd test/e2e && go test -race -v ./tests/...
e2e-usdc-swap-did:
@gum log --level info "Running USDC Swap E2E tests with DID integration"
@gum log --level warn "Note: These tests require manual setup. See test/e2e/usdc-swap-did/README.md"
@cd test/e2e/usdc-swap-did && make test
e2e-usdc-swap-did-setup:
@gum log --level info "Running USDC Swap E2E test setup..."
@cd test/e2e/usdc-swap-did && bash setup.sh
e2e-usdc-swap-did-verbose:
@gum log --level info "Running USDC Swap E2E tests (verbose mode)"
@cd test/e2e/usdc-swap-did && make test-verbose
test-build-snrd: build
@ls -la build/snrd
@chmod +x build/snrd
@@ -306,7 +319,7 @@ test-proto:
test-benchmark:
@go test -mod=readonly -bench=. ./...
.PHONY: test test-all test-unit test-race test-cover test-tdd test-module test-benchmark
.PHONY: test test-all test-unit test-race test-cover test-tdd test-module test-benchmark test-e2e test-e2e-all e2e-usdc-swap-did e2e-usdc-swap-did-setup e2e-usdc-swap-did-verbose
###############################################################################
### Protobuf ###
@@ -402,6 +415,11 @@ help:
@gum log --level info " test-e2e-all Run all e2e tests"
@gum log --level info " test-module Test specific module (MODULE=did|dwn|svc)"
@gum log --level info ""
@gum log --level info "🔄 E2E Test Suites:"
@gum log --level info " e2e-usdc-swap-did Run USDC swap E2E tests"
@gum log --level info " e2e-usdc-swap-did-setup Interactive setup for USDC swap tests"
@gum log --level info " e2e-usdc-swap-did-verbose Run USDC swap tests with verbose output"
@gum log --level info ""
@gum log --level info "📚 Module Testing Examples:"
@gum log --level info " make test-module MODULE=did # Test DID module"
@gum log --level info " make test-module MODULE=dwn VARIANT=cover # DWN with coverage"
+23
View File
@@ -3,6 +3,7 @@ package main
import (
"fmt"
"os"
"strings"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
sdk "github.com/cosmos/cosmos-sdk/types"
@@ -35,3 +36,25 @@ func SetBech32Prefixes(config *sdk.Config) {
config.SetBech32PrefixForValidator(app.Bech32PrefixValAddr, app.Bech32PrefixValPub)
config.SetBech32PrefixForConsensusNode(app.Bech32PrefixConsAddr, app.Bech32PrefixConsPub)
}
func sonrLogo() string {
lines := []string{
"[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m░[0m [38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m░[0m [38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m░[0m [38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m░[0m [38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m█[0m[38;2;153;255;255m░[0m",
"[38;2;119;233;242m█[0m[38;2;119;233;242m█[0m[38;2;119;233;242m░[0m [38;2;119;233;242m█[0m[38;2;119;233;242m█[0m[38;2;119;233;242m░[0m [38;2;119;233;242m█[0m[38;2;119;233;242m█[0m[38;2;119;233;242m░[0m [38;2;119;233;242m█[0m[38;2;119;233;242m█[0m[38;2;119;233;242m░[0m [38;2;119;233;242m█[0m[38;2;119;233;242m█[0m[38;2;119;233;242m░[0m [38;2;119;233;242m█[0m[38;2;119;233;242m█[0m[38;2;119;233;242m░[0m [38;2;119;233;242m█[0m[38;2;119;233;242m█[0m[38;2;119;233;242m░[0m [38;2;119;233;242m█[0m[38;2;119;233;242m█[0m[38;2;119;233;242m░[0m",
"[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m░[0m [38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m░[0m [38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m░[0m [38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m░[0m [38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m░[0m [38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m░[0m [38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m█[0m[38;2;85;211;230m░[0m",
" [38;2;51;189;217m█[0m[38;2;51;189;217m█[0m[38;2;51;189;217m░[0m [38;2;51;189;217m█[0m[38;2;51;189;217m█[0m[38;2;51;189;217m░[0m [38;2;51;189;217m█[0m[38;2;51;189;217m█[0m[38;2;51;189;217m░[0m [38;2;51;189;217m█[0m[38;2;51;189;217m█[0m[38;2;51;189;217m░[0m [38;2;51;189;217m█[0m[38;2;51;189;217m█[0m[38;2;51;189;217m░[0m [38;2;51;189;217m█[0m[38;2;51;189;217m█[0m[38;2;51;189;217m░[0m [38;2;51;189;217m█[0m[38;2;51;189;217m█[0m[38;2;51;189;217m░[0m ",
"[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m░[0m [38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m░[0m [38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m░[0m [38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m░[0m [38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m░[0m [38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m█[0m[38;2;17;168;205m░[0m",
}
var logo string
// Add top padding
logo += "\n"
for _, line := range lines {
// Replace [ with \x1b[ to make valid ANSI escape sequences
line = strings.ReplaceAll(line, "[", "\x1b[")
// Add horizontal padding
logo += " " + line + "\n"
}
// Add bottom padding
logo += "\n"
return logo
}
+1
View File
@@ -61,6 +61,7 @@ func NewRootCmd() *cobra.Command {
rootCmd := &cobra.Command{
Use: version.AppName,
Short: version.AppName + " Daemon (server)",
Long: sonrLogo(),
SilenceErrors: true,
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
// set the default command outputs
+5 -4
View File
@@ -8,7 +8,8 @@
"jq@latest",
"trunk@latest",
"mods@latest",
"yq@latest"
"yq@latest",
"dasel@latest"
],
"env": {},
"shell": {
@@ -16,10 +17,10 @@
"go mod download"
],
"scripts": {
"build": "make build-all",
"test": "make test-all",
"build": "make build-all",
"test": "make test-all",
"snapshot": "make snapshot",
"release": "make release"
"release": "make release"
}
}
}
+48
View File
@@ -1,6 +1,54 @@
{
"lockfile_version": "1",
"packages": {
"dasel@latest": {
"last_modified": "2025-10-07T08:41:47Z",
"resolved": "github:NixOS/nixpkgs/bce5fe2bb998488d8e7e7856315f90496723793c#dasel",
"source": "devbox-search",
"version": "2.8.1",
"systems": {
"aarch64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/kahwgfqz0x48aj3ikrd963pinkjsgi1p-dasel-2.8.1",
"default": true
}
],
"store_path": "/nix/store/kahwgfqz0x48aj3ikrd963pinkjsgi1p-dasel-2.8.1"
},
"aarch64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/gcnpff6qc8r8rz6paphc3j2q20hhys5r-dasel-2.8.1",
"default": true
}
],
"store_path": "/nix/store/gcnpff6qc8r8rz6paphc3j2q20hhys5r-dasel-2.8.1"
},
"x86_64-darwin": {
"outputs": [
{
"name": "out",
"path": "/nix/store/c97l94fqsic4nqrgrzrn5fjbw18lggjw-dasel-2.8.1",
"default": true
}
],
"store_path": "/nix/store/c97l94fqsic4nqrgrzrn5fjbw18lggjw-dasel-2.8.1"
},
"x86_64-linux": {
"outputs": [
{
"name": "out",
"path": "/nix/store/5494996bmd4nqv17l4ji9r3r2n5b1aqj-dasel-2.8.1",
"default": true
}
],
"store_path": "/nix/store/5494996bmd4nqv17l4ji9r3r2n5b1aqj-dasel-2.8.1"
}
}
},
"docker@latest": {
"last_modified": "2025-08-05T11:35:34Z",
"resolved": "github:NixOS/nixpkgs/a683adc19ff5228af548c6539dbc3440509bfed3#docker",
-20
View File
@@ -32,26 +32,6 @@ services:
networks:
- sonr-network
caddy:
container_name: caddy
image: caddy:2-alpine
restart: unless-stopped
depends_on:
snrd:
condition: service_healthy
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
environment:
CADDY_DOMAIN: ${CADDY_DOMAIN:-localhost}
networks:
- sonr-network
snrd:
container_name: snrd
image: onsonr/snrd:latest
@@ -1,191 +0,0 @@
---
title: "Migrating from Centralized to Decentralized Authentication"
description: "A comprehensive guide to migrating from centralized 8787 endpoints to decentralized OIDC authentication with WebAuthn"
sidebarTitle: "Decentralized Authentication"
icon: "key"
---
# Migrating from Centralized to Decentralized Authentication
## Overview
Sonr is transitioning from a centralized authentication model using 8787 endpoints to a fully decentralized, privacy-preserving authentication system leveraging OpenID Connect (OIDC), Self-Issued OpenID Provider (SIOP), and WebAuthn technologies.
### Key Improvements
- **Decentralization**: Move from centralized identity management to self-sovereign identity
- **WebAuthn Integration**: Hardware-backed, phishing-resistance authentication
- **Gasless Onboarding**: Zero-cost user registration and transactions
- **Automatic Vault Creation**: Seamless user experience with instant identity setup
- **Enhanced Privacy**: DID-based authentication with verifiable presentations
## Architecture Comparison
### Old Architecture: Centralized 8787 Endpoints
- Centralized authentication server
- Fixed credential storage
- Limited authentication methods
- Higher security risks
### New Architecture: Decentralized OIDC Provider
```mermaid
graph TD
A[User Device] --> B{WebAuthn Registration}
B --> |Credential Generation| C[Blockchain Bridge]
C --> |Broadcast Credential| D[Sonr Blockchain]
D --> |Create DID| E[User's Decentralized Identity]
E --> |SIOP Flow| F[OIDC Provider]
F --> |Verifiable Presentation| G[Service Provider]
```
## Migration Steps
### 1. Prerequisites
- Go 1.24.1+
- Cosmos SDK v0.50.14
- WebAuthn-compatible browser/device
- Updated Sonr SDK
### 2. Configuration Changes
#### Environment Variables
<CodeGroup>
```bash title="Old Configuration"
# Centralized auth endpoints
AUTH_ENDPOINT=https://8787.sonr.io/auth
AUTH_CLIENT_ID=legacy-client-id
```
```bash title="New Configuration"
# Decentralized OIDC configuration
OIDC_PROVIDER_URL=https://oidc.sonr.network
WEBAUTHN_ORIGIN=https://your-app.com
DID_RESOLVER_URL=https://did.sonr.network
```
</CodeGroup>
### 3. Endpoint Migration
| Old Endpoint | New Endpoint | Changes |
| ---------------- | -------------------- | ----------------------- |
| `/auth/login` | `/oidc/authorize` | OIDC authorization flow |
| `/auth/register` | `/webauthn/register` | WebAuthn registration |
| `/auth/token` | `/oidc/token` | Token issuance via SIOP |
### 4. API Changes
#### Request Format
<CodeGroup>
```json title="Legacy Request"
{
"username": "user@example.com",
"password": "legacy-password"
}
```
```json title="New WebAuthn Request"
{
"challenge": "base64-encoded-challenge",
"attestation": {
"type": "public-key",
"id": "credential-id",
"rawId": "base64-encoded-raw-credential",
"response": {
"clientDataJSON": "...",
"attestationObject": "..."
}
}
}
```
</CodeGroup>
### 5. WebAuthn Integration
#### Registration Flow
1. Generate registration challenge
2. Create WebAuthn credential
3. Broadcast credential to blockchain
4. Automatically create user vault
5. Issue decentralized identifier (DID)
#### Code Example
```go title="WebAuthn Registration Handler"
func (s *Server) HandleWebAuthnRegistration(w http.ResponseWriter, r *http.Request) {
// 1. Validate WebAuthn attestation
credential, err := s.webAuthnService.VerifyRegistration(attestationData)
// 2. Broadcast to blockchain
didDoc, err := s.blockchainBridge.CreateDID(credential)
// 3. Create user vault
vault, err := s.vaultService.CreateVault(didDoc)
// 4. Issue OIDC token
token := s.oidcService.IssueToken(didDoc)
}
```
### 6. SIOP (Self-Issued OpenID Provider)
#### Key Concepts
- Verifiable Presentations
- Decentralized Identifiers (DIDs)
- User-controlled authentication
### 7. Error Handling
#### Migration Errors
| Error Code | Description | Mitigation |
| ------------------------ | ---------------------- | -------------------- |
| `AUTH_LEGACY_DEPRECATED` | Legacy auth method | Upgrade client |
| `WEBAUTHN_UNSUPPORTED` | Device incompatibility | Use alternative auth |
| `DID_RESOLUTION_FAILED` | Identity verification | Retry registration |
### 8. Testing Migration
```bash
# Validate WebAuthn registration
sonr webauthn test-registration
# Verify OIDC provider
sonr oidc validate-provider
# Check DID resolution
sonr did resolve did:sonr:example
```
### 9. Breaking Changes
- Legacy password authentication removed
- Token format changed to JWT with DID claims
- New client libraries required
- WebAuthn mandatory for registration
## Rollback Procedure
If issues arise:
1. Maintain legacy user mappings
2. Provide fallback authentication
3. Gradual, opt-in migration
## Conclusion
This migration represents a significant leap in authentication security and user privacy. By adopting WebAuthn, SIOP, and blockchain-backed identities, we're creating a more robust, user-controlled authentication ecosystem.
## Support
- [Sonr Developer Docs](/docs)
- [WebAuthn Specification](https://www.w3.org/TR/webauthn-2/)
- [OIDC Community](https://openid.net/developers/specs/)
-129
View File
@@ -1,129 +0,0 @@
---
title: "DID Generation and Management"
description: "Learn how to generate and manage Decentralized Identifiers (DIDs) using advanced crypto interfaces"
sidebarTitle: "Identity Generation"
icon: "signature"
---
# DID Generation Patterns
The Sonr project provides a robust and flexible DID (Decentralized Identifier) generation system supporting multiple key types and cryptographic methods.
## Supported Key Types
The `didkey.go` interface supports the following key types:
- RSA Public Keys
- Ed25519 Public Keys
- Secp256k1 Public Keys
## Basic DID Generation
### Creating a DID from a Public Key
```go
import (
"github.com/libp2p/go-libp2p/core/crypto"
"github.com/sonr-io/crypto/keys"
)
// Generate a new key pair
privateKey, publicKey, err := crypto.GenerateKeyPair(crypto.Ed25519, -1)
// Create a DID
did, err := keys.NewDID(publicKey)
```
### Parsing an Existing DID
```go
// Parse a DID string
did, err := keys.Parse("did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGTsyDFWYviJr4")
```
## Advanced DID Operations
### Address Derivation
```go
// Get a blockchain-compatible address from a DID
address, err := did.Address()
```
### Compressed Public Key Retrieval
```go
// Get a compressed public key (for Secp256k1)
compressedPubKey, err := did.CompressedPubKey()
```
## MPC Enclave DID Generation
For MPC (Multi-Party Computation) enclaves, use a specialized method:
```go
// Create a DID from MPC enclave public key bytes
did, err := keys.NewFromMPCPubKey(enclavePublicKeyBytes)
```
## DID Validation
```go
// Validate a DID format
err := keys.ValidateFormat("did:key:example123")
```
## Multicodec Support
The library supports various multicodec prefixes for different key types:
- RSA: `0x1205`
- Ed25519: `0xed`
- Secp256k1: `0xe7`
## Security Considerations
- Always generate keys using cryptographically secure methods
- Validate DIDs before using them in critical operations
- Use the appropriate key type for your security requirements
## Example: Complete DID Workflow
```go
package main
import (
"fmt"
"github.com/libp2p/go-libp2p/core/crypto"
"github.com/sonr-io/crypto/keys"
)
func main() {
// Generate a new key pair
privateKey, publicKey, err := crypto.GenerateKeyPair(crypto.Ed25519, -1)
if err != nil {
panic(err)
}
// Create a DID
did, err := keys.NewDID(publicKey)
if err != nil {
panic(err)
}
// Get the DID string
didString := did.String()
fmt.Println("Generated DID:", didString)
// Derive blockchain address
address, err := did.Address()
if err != nil {
panic(err)
}
fmt.Println("Blockchain Address:", address)
}
```
## Compatibility and Interoperability
The Sonr DID implementation follows the W3C DID specification, ensuring broad compatibility with other decentralized identity systems.
@@ -1,191 +0,0 @@
---
title: "Migrating from Centralized to Decentralized Authentication"
description: "A comprehensive guide to migrating from centralized 8787 endpoints to decentralized OIDC authentication with WebAuthn"
sidebarTitle: "Decentralized Authentication"
icon: "key"
---
# Migrating from Centralized to Decentralized Authentication
## Overview
Sonr is transitioning from a centralized authentication model using 8787 endpoints to a fully decentralized, privacy-preserving authentication system leveraging OpenID Connect (OIDC), Self-Issued OpenID Provider (SIOP), and WebAuthn technologies.
### Key Improvements
- **Decentralization**: Move from centralized identity management to self-sovereign identity
- **WebAuthn Integration**: Hardware-backed, phishing-resistance authentication
- **Gasless Onboarding**: Zero-cost user registration and transactions
- **Automatic Vault Creation**: Seamless user experience with instant identity setup
- **Enhanced Privacy**: DID-based authentication with verifiable presentations
## Architecture Comparison
### Old Architecture: Centralized 8787 Endpoints
- Centralized authentication server
- Fixed credential storage
- Limited authentication methods
- Higher security risks
### New Architecture: Decentralized OIDC Provider
```mermaid
graph TD
A[User Device] --> B{WebAuthn Registration}
B --> |Credential Generation| C[Blockchain Bridge]
C --> |Broadcast Credential| D[Sonr Blockchain]
D --> |Create DID| E[User's Decentralized Identity]
E --> |SIOP Flow| F[OIDC Provider]
F --> |Verifiable Presentation| G[Service Provider]
```
## Migration Steps
### 1. Prerequisites
- Go 1.24.1+
- Cosmos SDK v0.50.14
- WebAuthn-compatible browser/device
- Updated Sonr SDK
### 2. Configuration Changes
#### Environment Variables
<CodeGroup>
```bash title="Old Configuration"
# Centralized auth endpoints
AUTH_ENDPOINT=https://8787.sonr.io/auth
AUTH_CLIENT_ID=legacy-client-id
```
```bash title="New Configuration"
# Decentralized OIDC configuration
OIDC_PROVIDER_URL=https://oidc.sonr.network
WEBAUTHN_ORIGIN=https://your-app.com
DID_RESOLVER_URL=https://did.sonr.network
```
</CodeGroup>
### 3. Endpoint Migration
| Old Endpoint | New Endpoint | Changes |
| ---------------- | -------------------- | ----------------------- |
| `/auth/login` | `/oidc/authorize` | OIDC authorization flow |
| `/auth/register` | `/webauthn/register` | WebAuthn registration |
| `/auth/token` | `/oidc/token` | Token issuance via SIOP |
### 4. API Changes
#### Request Format
<CodeGroup>
```json title="Legacy Request"
{
"username": "user@example.com",
"password": "legacy-password"
}
```
```json title="New WebAuthn Request"
{
"challenge": "base64-encoded-challenge",
"attestation": {
"type": "public-key",
"id": "credential-id",
"rawId": "base64-encoded-raw-credential",
"response": {
"clientDataJSON": "...",
"attestationObject": "..."
}
}
}
```
</CodeGroup>
### 5. WebAuthn Integration
#### Registration Flow
1. Generate registration challenge
2. Create WebAuthn credential
3. Broadcast credential to blockchain
4. Automatically create user vault
5. Issue decentralized identifier (DID)
#### Code Example
```go title="WebAuthn Registration Handler"
func (s *Server) HandleWebAuthnRegistration(w http.ResponseWriter, r *http.Request) {
// 1. Validate WebAuthn attestation
credential, err := s.webAuthnService.VerifyRegistration(attestationData)
// 2. Broadcast to blockchain
didDoc, err := s.blockchainBridge.CreateDID(credential)
// 3. Create user vault
vault, err := s.vaultService.CreateVault(didDoc)
// 4. Issue OIDC token
token := s.oidcService.IssueToken(didDoc)
}
```
### 6. SIOP (Self-Issued OpenID Provider)
#### Key Concepts
- Verifiable Presentations
- Decentralized Identifiers (DIDs)
- User-controlled authentication
### 7. Error Handling
#### Migration Errors
| Error Code | Description | Mitigation |
| ------------------------ | ---------------------- | -------------------- |
| `AUTH_LEGACY_DEPRECATED` | Legacy auth method | Upgrade client |
| `WEBAUTHN_UNSUPPORTED` | Device incompatibility | Use alternative auth |
| `DID_RESOLUTION_FAILED` | Identity verification | Retry registration |
### 8. Testing Migration
```bash
# Validate WebAuthn registration
sonr webauthn test-registration
# Verify OIDC provider
sonr oidc validate-provider
# Check DID resolution
sonr did resolve did:sonr:example
```
### 9. Breaking Changes
- Legacy password authentication removed
- Token format changed to JWT with DID claims
- New client libraries required
- WebAuthn mandatory for registration
## Rollback Procedure
If issues arise:
1. Maintain legacy user mappings
2. Provide fallback authentication
3. Gradual, opt-in migration
## Conclusion
This migration represents a significant leap in authentication security and user privacy. By adopting WebAuthn, SIOP, and blockchain-backed identities, we're creating a more robust, user-controlled authentication ecosystem.
## Support
- [Sonr Developer Docs](/docs)
- [WebAuthn Specification](https://www.w3.org/TR/webauthn-2/)
- [OIDC Community](https://openid.net/developers/specs/)
+53 -41
View File
@@ -37,22 +37,22 @@ replace (
)
require (
cosmossdk.io/api v0.7.6
cosmossdk.io/api v0.9.2
cosmossdk.io/client/v2 v2.0.0-beta.7
cosmossdk.io/collections v0.4.0
cosmossdk.io/collections v1.2.0
cosmossdk.io/core v0.12.0
cosmossdk.io/depinject v1.1.0
cosmossdk.io/errors v1.0.1
cosmossdk.io/log v1.5.0
cosmossdk.io/math v1.5.0
cosmossdk.io/depinject v1.2.0
cosmossdk.io/errors v1.0.2
cosmossdk.io/log v1.5.1
cosmossdk.io/math v1.5.3
cosmossdk.io/orm v1.0.0-beta.3
cosmossdk.io/store v1.1.1
cosmossdk.io/store v1.1.2
cosmossdk.io/tools/confix v0.1.2
cosmossdk.io/x/circuit v0.1.1
cosmossdk.io/x/evidence v0.1.1
cosmossdk.io/x/feegrant v0.1.1
cosmossdk.io/x/nft v0.1.0
cosmossdk.io/x/tx v0.13.7
cosmossdk.io/x/nft v0.2.0
cosmossdk.io/x/tx v0.14.0
cosmossdk.io/x/upgrade v0.1.4
github.com/CosmWasm/wasmvm v1.5.8
github.com/asynkron/protoactor-go v0.0.0-20240822202345-3c0e61ca19c9
@@ -77,8 +77,8 @@ require (
github.com/sonr-io/common v0.0.0-20251010142707-ab6d2fe7e9c9
github.com/sonr-io/crypto v1.0.1
github.com/spf13/cast v1.9.2
github.com/spf13/cobra v1.8.1
github.com/spf13/viper v1.19.0
github.com/spf13/cobra v1.9.1
github.com/spf13/viper v1.20.1
github.com/strangelove-ventures/tokenfactory v0.50.3
github.com/stretchr/testify v1.11.1
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5
@@ -89,16 +89,26 @@ require (
)
require (
cel.dev/expr v0.24.0 // indirect
cloud.google.com/go/monitoring v1.21.2 // indirect
cosmossdk.io/schema v1.1.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1 // indirect
github.com/Oudwins/zog v0.21.6 // indirect
github.com/alexvec/go-bip39 v1.1.0 // indirect
github.com/biter777/countries v1.7.5 // indirect
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 // indirect
github.com/cockroachdb/datadriven v1.0.3-0.20250407164829-2945557346d5 // indirect
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/creachadair/atomicfile v0.3.1 // indirect
github.com/creachadair/tomledit v0.0.24 // indirect
github.com/dgraph-io/ristretto/v2 v2.1.0 // indirect
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
github.com/gammazero/chanqueue v1.1.1 // indirect
github.com/go-jose/go-jose/v4 v4.1.1 // indirect
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
github.com/google/go-tpm v0.9.6 // indirect
github.com/google/pprof v0.0.0-20250607225305-033d6d78b36a // indirect
@@ -113,23 +123,27 @@ require (
github.com/nxadm/tail v1.4.11 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/ginkgo/v2 v2.23.4 // indirect
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
github.com/smartystreets/goconvey v1.8.1 // indirect
github.com/spiffe/go-spiffe/v2 v2.5.0 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/zeebo/errs v1.4.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.36.0 // indirect
nhooyr.io/websocket v1.8.10 // indirect
)
require (
cloud.google.com/go v0.115.0 // indirect
cloud.google.com/go/auth v0.6.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
cloud.google.com/go v0.116.0 // indirect
cloud.google.com/go/auth v0.13.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.6 // indirect
cloud.google.com/go/compute/metadata v0.7.0 // indirect
cloud.google.com/go/iam v1.1.9 // indirect
cloud.google.com/go/storage v1.41.0 // indirect
cloud.google.com/go/iam v1.2.2 // indirect
cloud.google.com/go/storage v1.49.0 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
@@ -142,7 +156,7 @@ require (
github.com/aws/aws-sdk-go v1.55.6 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
github.com/bgentry/speakeasy v0.2.0 // indirect
github.com/bits-and-blooms/bitset v1.24.0 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/btcsuite/btcd v0.24.2 // indirect
@@ -157,12 +171,11 @@ require (
github.com/chzyer/readline v1.5.1 // indirect
github.com/cloudwego/base64x v0.1.5 // indirect
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
github.com/cockroachdb/apd/v3 v3.2.1 // indirect
github.com/cockroachdb/errors v1.11.3 // indirect
github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/pebble v1.1.2 // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/cockroachdb/pebble v1.1.5 // indirect
github.com/cockroachdb/redact v1.1.6 // indirect
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
github.com/cometbft/cometbft-db v0.14.1 // indirect
github.com/consensys/gnark-crypto v0.19.0 // indirect
@@ -188,7 +201,7 @@ require (
github.com/emirpasic/gods v1.18.1 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/gammazero/deque v1.1.0 // indirect
github.com/getsentry/sentry-go v0.27.0 // indirect
github.com/go-kit/kit v0.13.0 // indirect
@@ -213,10 +226,10 @@ require (
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/gopacket v1.1.19 // indirect
github.com/google/orderedcode v0.0.1 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/s2a-go v0.1.8 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.5 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
github.com/gorilla/handlers v1.5.2 // indirect
github.com/gorilla/websocket v1.5.3 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
@@ -224,20 +237,20 @@ require (
github.com/gtank/merlin v0.1.1 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-getter v1.7.9 // indirect
github.com/hashicorp/go-hclog v1.5.0 // indirect
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-metrics v0.5.3 // indirect
github.com/hashicorp/go-plugin v1.5.2 // indirect
github.com/hashicorp/go-metrics v0.5.4 // indirect
github.com/hashicorp/go-plugin v1.6.3 // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/hashicorp/golang-lru v1.0.2 // indirect
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/hdevalence/ed25519consensus v0.1.0 // indirect
github.com/hashicorp/yamux v0.1.2 // indirect
github.com/hdevalence/ed25519consensus v0.2.0 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/holiman/uint256 v1.3.2 // indirect
github.com/huandu/skiplist v1.2.0 // indirect
github.com/huandu/skiplist v1.2.1 // indirect
github.com/iancoleman/orderedmap v0.3.0 // indirect
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/ianlancetaylor/demangle v0.0.0-20250417193237-f615e6bd150b // indirect
@@ -285,7 +298,6 @@ require (
github.com/minio/highwayhash v1.0.3 // indirect
github.com/minio/sha256-simd v1.0.1 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mr-tron/base58 v1.2.0 // indirect
github.com/mtibben/percent v0.2.1 // indirect
@@ -303,7 +315,7 @@ require (
github.com/oklog/run v1.1.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/orcaman/concurrent-map v1.0.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
@@ -318,14 +330,14 @@ require (
github.com/rjeczalik/notify v0.9.3 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
github.com/rs/cors v1.11.1 // indirect
github.com/rs/zerolog v1.33.0 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/rs/zerolog v1.34.0 // indirect
github.com/sagikazarmark/locafero v0.7.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sasha-s/go-deadlock v0.3.5 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/afero v1.12.0 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
@@ -349,7 +361,7 @@ require (
go.etcd.io/bbolt v1.4.0-alpha.0.0.20240404170359-43604f3112c5 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 // indirect
go.opentelemetry.io/otel v1.38.0 // indirect
go.opentelemetry.io/otel/exporters/prometheus v0.56.0 // indirect
@@ -361,7 +373,7 @@ require (
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
golang.org/x/arch v0.3.0 // indirect
golang.org/x/arch v0.15.0 // indirect
golang.org/x/crypto v0.42.0
golang.org/x/exp v0.0.0-20250911091902-df9299821621 // indirect
golang.org/x/mod v0.28.0 // indirect
@@ -374,15 +386,15 @@ require (
golang.org/x/time v0.12.0 // indirect
golang.org/x/tools v0.37.0 // indirect
gonum.org/v1/gonum v0.16.0 // indirect
google.golang.org/api v0.186.0 // indirect
google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094 // indirect
google.golang.org/api v0.215.0 // indirect
google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gotest.tools/v3 v3.5.1 // indirect
gotest.tools/v3 v3.5.2 // indirect
lukechampine.com/blake3 v1.4.1
pgregory.net/rapid v1.1.0 // indirect
pgregory.net/rapid v1.2.0 // indirect
sigs.k8s.io/yaml v1.5.0 // indirect
)
+127 -80
View File
@@ -1,3 +1,5 @@
cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY=
cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw=
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
@@ -36,8 +38,8 @@ cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRY
cloud.google.com/go v0.105.0/go.mod h1:PrLgOJNe5nfE9UMxKxgXj4mD3voiP+YQ6gdt6KMFOKM=
cloud.google.com/go v0.107.0/go.mod h1:wpc2eNrD7hXUTy8EKS10jkxpZBjASrORK7goS+3YX2I=
cloud.google.com/go v0.110.0/go.mod h1:SJnCLqQ0FCFGSZMUNUf84MV3Aia54kn7pi8st7tMzaY=
cloud.google.com/go v0.115.0 h1:CnFSK6Xo3lDYRoBKEcAtia6VSC837/ZkJuRduSFnr14=
cloud.google.com/go v0.115.0/go.mod h1:8jIM5vVgoAEoiVxQ/O4BFTfHqulPZgs/ufEzMcFMdWU=
cloud.google.com/go v0.116.0 h1:B3fRrSDkLRt5qSHWe40ERJvhvnQwdZiHu0bJOpldweE=
cloud.google.com/go v0.116.0/go.mod h1:cEPSRWPzZEswwdr9BxE6ChEn01dWlTaF05LiC2Xs70U=
cloud.google.com/go/accessapproval v1.4.0/go.mod h1:zybIuC3KpDOvotz59lFe5qxRZx6C75OtwbisN56xYB4=
cloud.google.com/go/accessapproval v1.5.0/go.mod h1:HFy3tuiGvMdcd/u+Cu5b9NkO1pEICJ46IR82PoUdplw=
cloud.google.com/go/accessapproval v1.6.0/go.mod h1:R0EiYnwV5fsRFiKZkPHr6mwyk2wxUJ30nL4j2pcFY2E=
@@ -99,10 +101,10 @@ cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVo
cloud.google.com/go/assuredworkloads v1.8.0/go.mod h1:AsX2cqyNCOvEQC8RMPnoc0yEarXQk6WEKkxYfL6kGIo=
cloud.google.com/go/assuredworkloads v1.9.0/go.mod h1:kFuI1P78bplYtT77Tb1hi0FMxM0vVpRC7VVoJC3ZoT0=
cloud.google.com/go/assuredworkloads v1.10.0/go.mod h1:kwdUQuXcedVdsIaKgKTp9t0UJkE5+PAVNhdQm4ZVq2E=
cloud.google.com/go/auth v0.6.0 h1:5x+d6b5zdezZ7gmLWD1m/xNjnaQ2YDhmIz/HH3doy1g=
cloud.google.com/go/auth v0.6.0/go.mod h1:b4acV+jLQDyjwm4OXHYjNvRi4jvGBzHWJRtJcy+2P4g=
cloud.google.com/go/auth/oauth2adapt v0.2.2 h1:+TTV8aXpjeChS9M+aTtN/TjdQnzJvmzKFt//oWu7HX4=
cloud.google.com/go/auth/oauth2adapt v0.2.2/go.mod h1:wcYjgpZI9+Yu7LyYBg4pqSiaRkfEK3GQcpb7C/uyF1Q=
cloud.google.com/go/auth v0.13.0 h1:8Fu8TZy167JkW8Tj3q7dIkr2v4cndv41ouecJx0PAHs=
cloud.google.com/go/auth v0.13.0/go.mod h1:COOjD9gwfKNKz+IIduatIhYJQIc0mG3H102r/EMxX6Q=
cloud.google.com/go/auth/oauth2adapt v0.2.6 h1:V6a6XDu2lTwPZWOawrAa9HUK+DB2zfJyTuciBG5hFkU=
cloud.google.com/go/auth/oauth2adapt v0.2.6/go.mod h1:AlmsELtlEBnaNTL7jCj8VQFLy6mbZv0s4Q7NGBeQ5E8=
cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0=
cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8=
cloud.google.com/go/automl v1.7.0/go.mod h1:RL9MYCCsJEOmt0Wf3z9uzG0a7adTT1fe+aObgSpkCt8=
@@ -317,8 +319,8 @@ cloud.google.com/go/iam v0.8.0/go.mod h1:lga0/y3iH6CX7sYqypWJ33hf7kkfXJag67naqGE
cloud.google.com/go/iam v0.11.0/go.mod h1:9PiLDanza5D+oWFZiH1uG+RnRCfEGKoyl6yo4cgWZGY=
cloud.google.com/go/iam v0.12.0/go.mod h1:knyHGviacl11zrtZUoDuYpDgLjvr28sLQaG0YB2GYAY=
cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0=
cloud.google.com/go/iam v1.1.9 h1:oSkYLVtVme29uGYrOcKcvJRht7cHJpYD09GM9JaR0TE=
cloud.google.com/go/iam v1.1.9/go.mod h1:Nt1eDWNYH9nGQg3d/mY7U1hvfGmsaG9o/kLGoLoLXjQ=
cloud.google.com/go/iam v1.2.2 h1:ozUSofHUGf/F4tCNy/mu9tHLTaxZFLOUiKzjcgWHGIA=
cloud.google.com/go/iam v1.2.2/go.mod h1:0Ys8ccaZHdI1dEUilwzqng/6ps2YB6vRsjIe00/+6JY=
cloud.google.com/go/iap v1.4.0/go.mod h1:RGFwRJdihTINIe4wZ2iCP0zF/qu18ZwyKxrhMhygBEc=
cloud.google.com/go/iap v1.5.0/go.mod h1:UH/CGgKd4KyohZL5Pt0jSKE4m3FR51qg6FKQ/z/Ix9A=
cloud.google.com/go/iap v1.6.0/go.mod h1:NSuvI9C/j7UdjGjIde7t7HBz+QTwBcapPE07+sSRcLk=
@@ -348,9 +350,13 @@ cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6
cloud.google.com/go/lifesciences v0.8.0/go.mod h1:lFxiEOMqII6XggGbOnKiyZ7IBwoIqA84ClvoezaA/bo=
cloud.google.com/go/logging v1.6.1/go.mod h1:5ZO0mHHbvm8gEmeEUHrmDlTDSu5imF6MUP9OfilNXBw=
cloud.google.com/go/logging v1.7.0/go.mod h1:3xjP2CjkM3ZkO73aj4ASA5wRPGGCRrPIAeNqVNkzY8M=
cloud.google.com/go/logging v1.12.0 h1:ex1igYcGFd4S/RZWOCU51StlIEuey5bjqwH9ZYjHibk=
cloud.google.com/go/logging v1.12.0/go.mod h1:wwYBt5HlYP1InnrtYI0wtwttpVU1rifnMT7RejksUAM=
cloud.google.com/go/longrunning v0.1.1/go.mod h1:UUFxuDWkv22EuY93jjmDMFT5GPQKeFVJBIF6QlTqdsE=
cloud.google.com/go/longrunning v0.3.0/go.mod h1:qth9Y41RRSUE69rDcOn6DdK3HfQfsUI0YSmW3iIlLJc=
cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo=
cloud.google.com/go/longrunning v0.6.2 h1:xjDfh1pQcWPEvnfjZmwjKQEcHnpz6lHjfy7Fo0MK+hc=
cloud.google.com/go/longrunning v0.6.2/go.mod h1:k/vIs83RN4bE3YCswdXC5PFfWVILjm3hpEUlSko4PiI=
cloud.google.com/go/managedidentities v1.3.0/go.mod h1:UzlW3cBOiPrzucO5qWkNkh0w33KFtBJU281hacNvsdE=
cloud.google.com/go/managedidentities v1.4.0/go.mod h1:NWSBYbEMgqmbZsLIyKvxrYbtqOsxY1ZrGM+9RgDqInM=
cloud.google.com/go/managedidentities v1.5.0/go.mod h1:+dWcZ0JlUmpuxpIDfyP5pP5y0bLdRwOS4Lp7gMni/LA=
@@ -374,6 +380,8 @@ cloud.google.com/go/monitoring v1.7.0/go.mod h1:HpYse6kkGo//7p6sT0wsIC6IBDET0RhI
cloud.google.com/go/monitoring v1.8.0/go.mod h1:E7PtoMJ1kQXWxPjB6mv2fhC5/15jInuulFdYYtlcvT4=
cloud.google.com/go/monitoring v1.12.0/go.mod h1:yx8Jj2fZNEkL/GYZyTLS4ZtZEZN8WtDEiEqG4kLK50w=
cloud.google.com/go/monitoring v1.13.0/go.mod h1:k2yMBAB1H9JT/QETjNkgdCGD9bPF712XiLTVr+cBrpw=
cloud.google.com/go/monitoring v1.21.2 h1:FChwVtClH19E7pJ+e0xUhJPGksctZNVOk2UhMmblmdU=
cloud.google.com/go/monitoring v1.21.2/go.mod h1:hS3pXvaG8KgWTSz+dAdyzPrGUYmi2Q+WFX8g2hqVEZU=
cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA=
cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o=
cloud.google.com/go/networkconnectivity v1.6.0/go.mod h1:OJOoEXW+0LAxHh89nXd64uGG+FbQoeH8DtxCHVOMlaM=
@@ -537,8 +545,8 @@ cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeL
cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s=
cloud.google.com/go/storage v1.28.1/go.mod h1:Qnisd4CqDdo6BGs2AD5LLnEsmSQ80wQ5ogcBBKhU86Y=
cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4=
cloud.google.com/go/storage v1.41.0 h1:RusiwatSu6lHeEXe3kglxakAmAbfV+rhtPqA6i8RBx0=
cloud.google.com/go/storage v1.41.0/go.mod h1:J1WCa/Z2FcgdEDuPUY8DxT5I+d9mFKsCepp5vR6Sq80=
cloud.google.com/go/storage v1.49.0 h1:zenOPBOWHCnojRd9aJZAyQXBYqkJkdQS42dxL55CIMw=
cloud.google.com/go/storage v1.49.0/go.mod h1:k1eHhhpLvrPjVGfo0mOUPEJ4Y2+a/Hv5PiwehZI9qGU=
cloud.google.com/go/storagetransfer v1.5.0/go.mod h1:dxNzUopWy7RQevYFHewchb29POFv3/AaBgnhqzqiK0w=
cloud.google.com/go/storagetransfer v1.6.0/go.mod h1:y77xm4CQV/ZhFZH75PLEXY0ROiS7Gh6pSKrM8dJyg6I=
cloud.google.com/go/storagetransfer v1.7.0/go.mod h1:8Giuj1QNb1kfLAiWM1bN6dHzfdlDAVC9rv9abHot2W4=
@@ -558,6 +566,8 @@ cloud.google.com/go/trace v1.3.0/go.mod h1:FFUE83d9Ca57C+K8rDl/Ih8LwOzWIV1krKgxg
cloud.google.com/go/trace v1.4.0/go.mod h1:UG0v8UBqzusp+z63o7FK74SdFE+AXpCLdFb1rshXG+Y=
cloud.google.com/go/trace v1.8.0/go.mod h1:zH7vcsbAhklH8hWFig58HvxcxyQbaIqMarMg9hn5ECA=
cloud.google.com/go/trace v1.9.0/go.mod h1:lOQqpE5IaWY0Ixg7/r2SjixMuc6lfTFeO4QGM4dQWOk=
cloud.google.com/go/trace v1.11.2 h1:4ZmaBdL8Ng/ajrgKqY5jfvzqMXbrDcBsUGXOT9aqTtI=
cloud.google.com/go/trace v1.11.2/go.mod h1:bn7OwXd4pd5rFuAnTrzBuoZ4ax2XQeG3qNgYmfCy0Io=
cloud.google.com/go/translate v1.3.0/go.mod h1:gzMUwRjvOqj5i69y/LYLd8RrNQk+hOmIXTi9+nb3Djs=
cloud.google.com/go/translate v1.4.0/go.mod h1:06Dn/ppvLD6WvA5Rhdp029IX2Mi3Mn7fpMRLPvXT5Wg=
cloud.google.com/go/translate v1.5.0/go.mod h1:29YDSYveqqpA1CQFD7NQuP49xymq17RXNaUDdc0mNu0=
@@ -604,24 +614,26 @@ cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoIS
cloud.google.com/go/workflows v1.8.0/go.mod h1:ysGhmEajwZxGn1OhGOGKsTXc5PyxOc0vfKf5Af+to4M=
cloud.google.com/go/workflows v1.9.0/go.mod h1:ZGkj1aFIOd9c8Gerkjjq7OW7I5+l6cSvT3ujaO/WwSA=
cloud.google.com/go/workflows v1.10.0/go.mod h1:fZ8LmRmZQWacon9UCX1r/g/DfAXx5VcPALq2CxzdePw=
cosmossdk.io/api v0.7.6 h1:PC20PcXy1xYKH2KU4RMurVoFjjKkCgYRbVAD4PdqUuY=
cosmossdk.io/api v0.7.6/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38=
cosmossdk.io/api v0.9.2 h1:9i9ptOBdmoIEVEVWLtYYHjxZonlF/aOVODLFaxpmNtg=
cosmossdk.io/api v0.9.2/go.mod h1:CWt31nVohvoPMTlPv+mMNCtC0a7BqRdESjCsstHcTkU=
cosmossdk.io/client/v2 v2.0.0-beta.7 h1:O0PfZL5kC3Sp54wZASLNihQ612Gd6duMp11aM9wawNg=
cosmossdk.io/client/v2 v2.0.0-beta.7/go.mod h1:TzwwrzeK+AfSVSESVEIOYO/9xuCh1fPv0HgeocmfVnM=
cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s=
cosmossdk.io/collections v0.4.0/go.mod h1:oa5lUING2dP+gdDquow+QjlF45eL1t4TJDypgGd+tv0=
cosmossdk.io/collections v1.2.0 h1:IesfVG8G/+FYCMVMP01frS/Cw99Omk5vBh3cHbO01Gg=
cosmossdk.io/collections v1.2.0/go.mod h1:4NkMoYw6qRA8fnSH/yn1D/MOutr8qyQnwsO50Mz9ItU=
cosmossdk.io/core v0.11.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo=
cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w=
cosmossdk.io/depinject v1.1.0 h1:wLan7LG35VM7Yo6ov0jId3RHWCGRhe8E8bsuARorl5E=
cosmossdk.io/depinject v1.1.0/go.mod h1:kkI5H9jCGHeKeYWXTqYdruogYrEeWvBQCw1Pj4/eCFI=
cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0=
cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U=
cosmossdk.io/log v1.5.0 h1:dVdzPJW9kMrnAYyMf1duqacoidB9uZIl+7c6z0mnq0g=
cosmossdk.io/log v1.5.0/go.mod h1:Tr46PUJjiUthlwQ+hxYtUtPn4D/oCZXAkYevBeh5+FI=
cosmossdk.io/math v1.5.0 h1:sbOASxee9Zxdjd6OkzogvBZ25/hP929vdcYcBJQbkLc=
cosmossdk.io/math v1.5.0/go.mod h1:AAwwBmUhqtk2nlku174JwSll+/DepUXW3rWIXN5q+Nw=
cosmossdk.io/depinject v1.2.0 h1:6NW/FSK1IkWTrX7XxUpBmX1QMBozpEI9SsWkKTBc5zw=
cosmossdk.io/depinject v1.2.0/go.mod h1:pvitjtUxZZZTQESKNS9KhGjWVslJZxtO9VooRJYyPjk=
cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo=
cosmossdk.io/errors v1.0.2/go.mod h1:0rjgiHkftRYPj//3DrD6y8hcm40HcPv/dR4R/4efr0k=
cosmossdk.io/log v1.5.1 h1:wLwiYXmfrort/O+j6EkjF+HvbdrRQd+4cYCPKFSm+zM=
cosmossdk.io/log v1.5.1/go.mod h1:5cXXBvfBkR2/BcXmosdCSLXllvgSjphrrDVdfVRmBGM=
cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U=
cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ=
cosmossdk.io/orm v1.0.0-beta.3 h1:XmffCwsIZE+y0sS4kEfRUfIgvJfGGn3HFKntZ91sWcU=
cosmossdk.io/orm v1.0.0-beta.3/go.mod h1:KSH9lKA+0K++2OKECWwPAasKbUIEtZ7xYG+0ikChiyU=
cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE=
cosmossdk.io/schema v1.1.0/go.mod h1:Gb7pqO+tpR+jLW5qDcNOSv0KtppYs7881kfzakguhhI=
cosmossdk.io/tools/confix v0.1.2 h1:2hoM1oFCNisd0ltSAAZw2i4ponARPmlhuNu3yy0VwI4=
cosmossdk.io/tools/confix v0.1.2/go.mod h1:7XfcbK9sC/KNgVGxgLM0BrFbVcR/+6Dg7MFfpx7duYo=
cosmossdk.io/x/circuit v0.1.1 h1:KPJCnLChWrxD4jLwUiuQaf5mFD/1m7Omyo7oooefBVQ=
@@ -630,10 +642,10 @@ cosmossdk.io/x/evidence v0.1.1 h1:Ks+BLTa3uftFpElLTDp9L76t2b58htjVbSZ86aoK/E4=
cosmossdk.io/x/evidence v0.1.1/go.mod h1:OoDsWlbtuyqS70LY51aX8FBTvguQqvFrt78qL7UzeNc=
cosmossdk.io/x/feegrant v0.1.1 h1:EKFWOeo/pup0yF0svDisWWKAA9Zags6Zd0P3nRvVvw8=
cosmossdk.io/x/feegrant v0.1.1/go.mod h1:2GjVVxX6G2fta8LWj7pC/ytHjryA6MHAJroBWHFNiEQ=
cosmossdk.io/x/nft v0.1.0 h1:VhcsFiEK33ODN27kxKLa0r/CeFd8laBfbDBwYqCyYCM=
cosmossdk.io/x/nft v0.1.0/go.mod h1:ec4j4QAO4mJZ+45jeYRnW7awLHby1JZANqe1hNZ4S3g=
cosmossdk.io/x/tx v0.13.7 h1:8WSk6B/OHJLYjiZeMKhq7DK7lHDMyK0UfDbBMxVmeOI=
cosmossdk.io/x/tx v0.13.7/go.mod h1:V6DImnwJMTq5qFjeGWpXNiT/fjgE4HtmclRmTqRVM3w=
cosmossdk.io/x/nft v0.2.0 h1:cd8QGeThxtvspOYGu0WJX0ioI9YnUG4qNwo3/Ac03GM=
cosmossdk.io/x/nft v0.2.0/go.mod h1:KsJBxkrPvcNRNLQYzlj7MHiJjSMw7MwU7p8/P9EyDwo=
cosmossdk.io/x/tx v0.14.0 h1:hB3O25kIcyDW/7kMTLMaO8Ripj3yqs5imceVd6c/heA=
cosmossdk.io/x/tx v0.14.0/go.mod h1:Tn30rSRA1PRfdGB3Yz55W4Sn6EIutr9xtMKSHij+9PM=
cosmossdk.io/x/upgrade v0.1.4 h1:/BWJim24QHoXde8Bc64/2BSEB6W4eTydq0X/2f8+g38=
cosmossdk.io/x/upgrade v0.1.4/go.mod h1:9v0Aj+fs97O+Ztw+tG3/tp5JSlrmT7IcFhAebQHmOPo=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
@@ -653,12 +665,20 @@ github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dX
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/DataDog/zstd v1.5.7 h1:ybO8RBeh29qrxIhCA9E8gKY6xfONU9T6G6aP9DTKfLE=
github.com/DataDog/zstd v1.5.7/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 h1:UQUsRi8WTzhZntp5313l+CHIAT95ojUI2lpP/ExlZa4=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0/go.mod h1:Cz6ft6Dkn3Et6l2v2a9/RpN7epQ1GtDlO6lj8bEcOvw=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1 h1:UQ0AhxogsIRZDkElkblfnwjc3IaltCm2HUMvezQaL7s=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.48.1/go.mod h1:jyqM3eLpJ3IbIFDTKVz2rF9T/xWGW0rIriGwnz8l9Tk=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.48.1 h1:oTX4vsorBZo/Zdum6OKPA4o7544hm6smoRv1QjpTwGo=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.48.1/go.mod h1:0wEl7vrAD8mehJyohS9HZy+WyEOaQO2mJx86Cvh93kM=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1 h1:8nn+rsCvTq9axyEh382S0PFLBeaFwNsT43IrPWzctRU=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.48.1/go.mod h1:viRWSEhtMZqz1rhwmOVKkWl6SwmVowfL9O2YR5gI2PE=
github.com/JohnCGriffin/overflow v0.0.0-20211019200055-46fa312c352c/go.mod h1:X0CRv0ky0k6m906ixxpzmDRLvX58TFUKS2eePweuyxk=
github.com/Jorropo/jsync v1.0.1 h1:6HgRolFZnsdfzRUj+ImB9og1JYOxQoReSywkHOGSaUU=
github.com/Jorropo/jsync v1.0.1/go.mod h1:jCOZj3vrBCri3bSU3ErUYvevKlnbssrXeCivybS5ABQ=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw=
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk=
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
@@ -708,6 +728,7 @@ github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb
github.com/apache/thrift v0.16.0/go.mod h1:PHK3hniurgQaNMZYaCLEqXKsYK8upmhPbmdP2FXSqgU=
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
github.com/armon/go-metrics v0.4.1/go.mod h1:E6amYzXo6aW1tqzoZGT755KkbgrJsSdpwZ+3JqfkOG4=
github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A=
github.com/asynkron/protoactor-go v0.0.0-20240822202345-3c0e61ca19c9 h1:mFWX0/oYqQ4Z+er0U56vA+ZPisr3kaYs1QsQetAVs6E=
@@ -728,8 +749,8 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas=
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4=
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s=
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
github.com/bgentry/speakeasy v0.2.0 h1:tgObeVOf8WAvtuAX6DhJ4xks4CFNwPDZiqzGqIHE51E=
github.com/bgentry/speakeasy v0.2.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
github.com/biter777/countries v1.7.5 h1:MJ+n3+rSxWQdqVJU8eBy9RqcdH6ePPn4PJHocVWUa+Q=
github.com/biter777/countries v1.7.5/go.mod h1:1HSpZ526mYqKJcpT5Ti1kcGQ0L0SrXWIaptUWjFfv2E=
github.com/bits-and-blooms/bitset v1.24.0 h1:H4x4TuulnokZKvHLfzVRTHJfFfnHEeSYJizujEZvmAM=
@@ -821,6 +842,8 @@ github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWH
github.com/cncf/xds/go v0.0.0-20220314180256-7f1daf1720fc/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/cncf/xds/go v0.0.0-20230105202645-06c439db220b/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 h1:aQ3y1lwWyqYPiWZThqv1aFbZMiM9vblcSArJRf2Irls=
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8=
github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E=
github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw=
github.com/cockroachdb/apd/v3 v3.2.1 h1:U+8j7t0axsIgvQUqthuNm82HIrYXodOV2iWLWtEaIwg=
@@ -836,12 +859,12 @@ github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce h1:giXvy4KSc/6g/e
github.com/cockroachdb/fifo v0.0.0-20240606204812-0bbfbd93a7ce/go.mod h1:9/y3cnZ5GKakj/H4y9r9GTjCvAFta7KLgSHPJJYc52M=
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE=
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
github.com/cockroachdb/pebble v1.1.2 h1:CUh2IPtR4swHlEj48Rhfzw6l/d0qA31fItcIszQVIsA=
github.com/cockroachdb/pebble v1.1.2/go.mod h1:4exszw1r40423ZsmkG/09AFEG83I0uDgfujJdbL6kYU=
github.com/cockroachdb/pebble v1.1.5 h1:5AAWCBWbat0uE0blr8qzufZP5tBjkRyy/jWe1QWLnvw=
github.com/cockroachdb/pebble v1.1.5/go.mod h1:17wO9el1YEigxkP/YtV8NtCivQDgoCyBg5c4VR/eOWo=
github.com/cockroachdb/pebble/v2 v2.1.0 h1:6KZvjSpWcEXZUvlLzTRC7T1A2G7r+bFskIzggklxixo=
github.com/cockroachdb/pebble/v2 v2.1.0/go.mod h1:Aza05DCCc05ghIJZkB4Q/axv/JK9wx5cFwWcnhG0eGw=
github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30=
github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
github.com/cockroachdb/redact v1.1.6 h1:zXJBwDZ84xJNlHl1rMyCojqyIxv+7YUpQiJLQ7n4314=
github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
github.com/cockroachdb/swiss v0.0.0-20250624142022-d6e517c1d961 h1:Nua446ru3juLHLZd4AwKNzClZgL1co3pUPGv3o8FlcA=
github.com/cockroachdb/swiss v0.0.0-20250624142022-d6e517c1d961/go.mod h1:yBRu/cnL4ks9bgy4vAASdjIW+/xMlFwuHKqtmh3GZQg=
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo=
@@ -891,7 +914,7 @@ github.com/cosmos/keyring v1.2.0/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStK
github.com/cosmos/ledger-cosmos-go v0.14.0 h1:WfCHricT3rPbkPSVKRH+L4fQGKYHuGOK9Edpel8TYpE=
github.com/cosmos/ledger-cosmos-go v0.14.0/go.mod h1:E07xCWSBl3mTGofZ2QnL4cIUzMbbGVyik84QYKbX3RA=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
github.com/cpuguy83/go-md2man/v2 v2.0.7 h1:zbFlGlXEAKlwXpmvle3d8Oe3YnkKIK4xSRTd3sHPnBo=
github.com/cpuguy83/go-md2man/v2 v2.0.7/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
github.com/crackcomm/go-gitignore v0.0.0-20241020182519-7843d2ba8fdf h1:dwGgBWn84wUS1pVikGiruW+x5XM4amhjaZO20vCjay4=
@@ -980,11 +1003,19 @@ github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE=
github.com/envoyproxy/go-control-plane v0.10.3/go.mod h1:fJJn/j26vwOu972OllsvAgJJM//w9BV6Fxbg2LuVd34=
github.com/envoyproxy/go-control-plane v0.11.1-0.20230524094728-9239064ad72f/go.mod h1:sfYdkwUW4BA3PbKjySwjJy+O4Pu0h62rlqCMHNk+K+Q=
github.com/envoyproxy/go-control-plane v0.13.4 h1:zEqyPVyku6IvWCFwux4x9RxkLOMUL+1vC9xUFv5l2/M=
github.com/envoyproxy/go-control-plane v0.13.4/go.mod h1:kDfuBlDVsSj2MjrLEtRWtHlsWIFcGyB2RMO44Dc5GZA=
github.com/envoyproxy/go-control-plane/envoy v1.32.4 h1:jb83lalDRZSpPWW2Z7Mck/8kXZ5CQAFYVjQcdVIr83A=
github.com/envoyproxy/go-control-plane/envoy v1.32.4/go.mod h1:Gzjc5k8JcJswLjAx1Zm+wSYE20UrLtt7JZMWiWQXQEw=
github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI=
github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
github.com/envoyproxy/protoc-gen-validate v0.6.7/go.mod h1:dyJXwwfPK2VSqiB9Klm1J6romD608Ba7Hij42vrOBCo=
github.com/envoyproxy/protoc-gen-validate v0.9.1/go.mod h1:OKNgG7TCp5pF4d6XftA0++PMirau2/yoOwVac3AbF2w=
github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss=
github.com/envoyproxy/protoc-gen-validate v1.0.0/go.mod h1:0vj8bNkYbSTNS2PIyH87KZaeN4x9zpL9Qt8fQC7d+vs=
github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8=
github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU=
github.com/evmos/cosmos-sdk/store v0.0.0-20240718141609-414cbd051fbe h1:CKvjP3CcWckOiwffAARb9qe+t0+VWoVDiicYkQMvZfQ=
github.com/evmos/cosmos-sdk/store v0.0.0-20240718141609-414cbd051fbe/go.mod h1:Bm6h8ZkYgVTytHK5vhHOMKw9OHyiumm3b1UbkYIJ/Ug=
github.com/evmos/go-ethereum v1.10.26-evmos-rc2 h1:tYghk1ZZ8X4/OQ4YI9hvtm8aSN8OSqO0g9vo/sCMdBo=
@@ -1018,8 +1049,8 @@ github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7z
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
github.com/fxamacker/cbor/v2 v2.9.0 h1:NpKPmjDBgUfBms6tr6JZkTHtfFGcMKsw3eGcmD/sapM=
github.com/fxamacker/cbor/v2 v2.9.0/go.mod h1:vM4b+DJCtHn+zz7h3FFp/hDAI9WNWCsZj23V5ytsSxQ=
github.com/gabriel-vasile/mimetype v1.4.10 h1:zyueNbySn/z8mJZHLt6IPw0KoZsiQNszIpU+bX4+ZK0=
@@ -1041,6 +1072,8 @@ github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmn
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-jose/go-jose/v4 v4.1.1 h1:JYhSgy4mXXzAdF3nUx3ygx347LRXJRrpgyU3adRmkAI=
github.com/go-jose/go-jose/v4 v4.1.1/go.mod h1:BdsZGqgdO3b6tTc6LSE56wcDbMMLuPsw5d4ZD5f94kA=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o=
@@ -1213,8 +1246,8 @@ github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLe
github.com/google/pprof v0.0.0-20250607225305-033d6d78b36a h1://KbezygeMJZCSHH+HgUZiTeSoiuFspbMg1ge+eFj18=
github.com/google/pprof v0.0.0-20250607225305-033d6d78b36a/go.mod h1:5hDyRhoBCxViHszMt12TnOpEI4VVi+U8Gm9iphldiMA=
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o=
github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw=
github.com/google/s2a-go v0.1.8 h1:zZDs9gcbt9ZPLV0ndSyQk6Kacx2g/X+SKYovpnz3SMM=
github.com/google/s2a-go v0.1.8/go.mod h1:6iNWHTpQ+nfNRN5E00MSdfDwVesa8hhS32PhPO8deJA=
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
@@ -1225,8 +1258,8 @@ github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY
github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg=
github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k=
github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k=
github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs=
github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0=
github.com/googleapis/enterprise-certificate-proxy v0.3.4 h1:XYIDZApgAnrN1c855gTgghdIA6Stxb52D5RnLI1SLyw=
github.com/googleapis/enterprise-certificate-proxy v0.3.4/go.mod h1:YKe7cfqYXjKGpGvmSg28/fFvhNzinZQm8DGnaburhGA=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0=
@@ -1238,8 +1271,8 @@ github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqE
github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY=
github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8=
github.com/googleapis/gax-go/v2 v2.7.1/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI=
github.com/googleapis/gax-go/v2 v2.12.5 h1:8gw9KZK8TiVKB6q3zHY3SBzLnrGp6HQjyfYBYGmXdxA=
github.com/googleapis/gax-go/v2 v2.12.5/go.mod h1:BUDKcWo+RaKq5SC9vVYL0wLADa3VcfswbOMMRmB9H3E=
github.com/googleapis/gax-go/v2 v2.14.1 h1:hb0FFeiPaQskmvakKu5EbCbpntQn48jyHuvrkurSS/Q=
github.com/googleapis/gax-go/v2 v2.14.1/go.mod h1:Hb/NubMaVM88SrNkvl8X/o8XWwDJEPqouaLeN2IUxoA=
github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4=
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
@@ -1281,17 +1314,17 @@ github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9n
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
github.com/hashicorp/go-getter v1.7.9 h1:G9gcjrDixz7glqJ+ll5IWvggSBR+R0B54DSRt4qfdC4=
github.com/hashicorp/go-getter v1.7.9/go.mod h1:dyFCmT1AQkDfOIt9NH8pw9XBDqNrIKJT5ylbpi7zPNE=
github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c=
github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k=
github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=
github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-metrics v0.5.3 h1:M5uADWMOGCTUNU1YuC4hfknOeHNaX54LDm4oYSucoNE=
github.com/hashicorp/go-metrics v0.5.3/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE=
github.com/hashicorp/go-metrics v0.5.4 h1:8mmPiIJkTPPEbAiV97IxdAGNdRdaWwVap1BU6elejKY=
github.com/hashicorp/go-metrics v0.5.4/go.mod h1:CG5yz4NZ/AI/aQt9Ucm/vdBnbh7fvmv4lxZ350i+QQI=
github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y=
github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4=
github.com/hashicorp/go-plugin v1.6.3 h1:xgHB+ZUSYeuJi96WtxEjzi23uh7YQpznjGh0U0UUrwg=
github.com/hashicorp/go-plugin v1.6.3/go.mod h1:MRobyh+Wc/nYy1V4KAXUiYfzxoYhs7V1mlH1Z7iY2h0=
github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs=
github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo=
@@ -1319,10 +1352,10 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE=
github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ=
github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU=
github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo=
github.com/hashicorp/yamux v0.1.2 h1:XtB8kyFOyHXYVFnwT5C3+Bdo8gArse7j2AQ0DA0Uey8=
github.com/hashicorp/yamux v0.1.2/go.mod h1:C+zze2n6e/7wshOZep2A70/aQU6QBRWJO/G6FT1wIns=
github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU=
github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo=
github.com/holiman/bloomfilter/v2 v2.0.3 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao=
github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA=
github.com/holiman/uint256 v1.3.2 h1:a9EgMPSC1AAaj1SZL5zIQD3WbwTuHrMGOerLjGmM/TA=
@@ -1330,8 +1363,8 @@ github.com/holiman/uint256 v1.3.2/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXei
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c=
github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U=
github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw=
github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w=
github.com/huandu/skiplist v1.2.1 h1:dTi93MgjwErA/8idWTzIw4Y1kZsMWx35fmI2c8Rij7w=
github.com/huandu/skiplist v1.2.1/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w=
github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg=
github.com/huin/goupnp v1.3.0 h1:UvLUlWDNpoUdYzb2TCn+MuTWtcjXKSza2n6CBdQ0xXc=
github.com/huin/goupnp v1.3.0/go.mod h1:gnGPsThkYa7bFi/KWmEysQRf48l2dvR5bxr2OFckNX8=
@@ -1429,6 +1462,7 @@ github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u
github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
@@ -1575,8 +1609,6 @@ github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrk
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU=
github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8=
github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
@@ -1681,8 +1713,8 @@ github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144T
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58 h1:onHthvaw9LFnH4t2DcNVpwGmV9E1BkGknEliJkfwQj0=
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58/go.mod h1:DXv8WO4yhMYhSNPKjeNKa5WY9YCIEBRbNzFFPJbWO6Y=
github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4=
github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac=
github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9 h1:1/WtZae0yGtPq+TI6+Tv1WTxkukpXeMlviSxvL7SRgk=
github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9/go.mod h1:x3N5drFsm2uilKKuuYo6LdyD8vZAW55sH/9w+pbo1sw=
@@ -1743,6 +1775,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA=
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg=
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo=
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
@@ -1755,6 +1789,7 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn
github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og=
github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU=
github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
github.com/prometheus/client_golang v1.11.1/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0=
github.com/prometheus/client_golang v1.23.2 h1:Je96obch5RDVy3FDMndoUsjAhG5Edi49h0RJWRi/o0o=
github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UHKeFTEQ1YCr+0Gyqmg=
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
@@ -1772,6 +1807,7 @@ github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt2
github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4=
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s=
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
github.com/prometheus/common v0.66.1 h1:h5E0h5/Y8niHc5DlaLlWLArTQI7tMrsfQjHV+d9ZoGs=
github.com/prometheus/common v0.66.1/go.mod h1:gcaUsgf3KfRSwHY4dIMXLPV0K/Wg1oZ8+SbZk/HH/dA=
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
@@ -1780,6 +1816,7 @@ github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsT
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
github.com/prometheus/procfs v0.17.0 h1:FuLQ+05u4ZI+SS/w9+BWEM2TXiHKsUQ9TADiRH7DuK0=
github.com/prometheus/procfs v0.17.0/go.mod h1:oPQLaDAMRbA+u8H5Pbfq+dl3VDAvHxMUOVhe0wYB2zw=
github.com/prometheus/tsdb v0.10.0 h1:If5rVCMTp6W2SiRAQFlbpJNgVlgMEd+U2GZckwK38ic=
@@ -1815,17 +1852,17 @@ github.com/rollchains/wasmd v0.50.0-evm/go.mod h1:DNg2PW+6ublDwg723H+p9NmopjDSMj
github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA=
github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8=
github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss=
github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0=
github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w=
github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk=
github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ=
github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4=
github.com/sagikazarmark/locafero v0.7.0 h1:5MqpDsTGNDhY8sGp0Aowyf0qKsPrhewaLSsFaodPcyo=
github.com/sagikazarmark/locafero v0.7.0/go.mod h1:2za3Cg5rMaTMoG/2Ulr9AwtFaIppKXTRYnozin4aB5k=
github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE=
github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ=
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
@@ -1863,19 +1900,21 @@ github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2
github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4=
github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY=
github.com/spf13/afero v1.12.0 h1:UcOPyRBYczmFn6yvphxkn9ZEOY65cpwGKb5mL36mrqs=
github.com/spf13/afero v1.12.0/go.mod h1:ZTlWwG4/ahT8W7T0WQ5uYmjI9duaLQGy3Q2OAl4sk/4=
github.com/spf13/cast v1.9.2 h1:SsGfm7M8QOFtEzumm7UZrZdLLquNdzFYfIbEXntcFbE=
github.com/spf13/cast v1.9.2/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM=
github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y=
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/viper v1.17.0 h1:I5txKw7MJasPL/BrfkbA0Jyo/oELqVmux4pR/UxOMfI=
github.com/spf13/viper v1.17.0/go.mod h1:BmMMMLQXSbcHK6KAOiFLz0l5JHrU89OdIRHvsk0+yVI=
github.com/spiffe/go-spiffe/v2 v2.5.0 h1:N2I01KCUkv1FAjZXJMwh95KK1ZIQLYbPfhaxw8WS0hE=
github.com/spiffe/go-spiffe/v2 v2.5.0/go.mod h1:P+NxobPc6wXhVtINNtFjNWGBTreew1GBUCwT2wPmb7g=
github.com/strangelove-ventures/cosmos-evm v0.2.0 h1:Abua+Wsvna9njxTuRLX/d0QmQnKIpImf/VbKrxBuHlU=
github.com/strangelove-ventures/cosmos-evm v0.2.0/go.mod h1:5sAR9ETde0vSs4b/FUE1MXA9cWZ4aPsDCm9zVb49/As=
github.com/strangelove-ventures/cosmos-sdk v0.0.0-20250317212103-0767f8c5b1e5 h1:5v7j5P2QTOiV3Uftja+1bwwuyaGe/lpnsC7dZNgoo/U=
@@ -1986,6 +2025,8 @@ github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5t
github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0=
github.com/zeebo/blake3 v0.2.4 h1:KYQPkhpRtcqh0ssGYcKLG1JYvddkEA8QwCM/yBqhaZI=
github.com/zeebo/blake3 v0.2.4/go.mod h1:7eeQ6d2iXWRGF6npfaxl2CU+xy2Fjo2gxeyZGCRUjcE=
github.com/zeebo/errs v1.4.0 h1:XNdoD/RRMKP7HD0UhJnIzUy74ISdGGxURlYG8HSWSfM=
github.com/zeebo/errs v1.4.0/go.mod h1:sgbWHsvVuTPHcqJJGQ1WhI5KbWlHYz+2+2C/LSEtCw4=
github.com/zeebo/xxh3 v1.0.2/go.mod h1:5NWz9Sef7zIDm2JHfFlcQvNekmcEl9ekUZQQKCYaDcA=
github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U=
github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM=
@@ -2008,14 +2049,18 @@ go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 h1:4Pp6oUg3+e/6M4C0A/3kJ2VYa++dsWVTtGgLVj5xtHg=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0/go.mod h1:Mjt1i1INqiaoZOMGR1RIUJN+i3ChKoFRqzrRQhlkbs0=
go.opentelemetry.io/contrib/detectors/gcp v1.36.0 h1:F7q2tNlCaHY9nMKHR6XH9/qkp8FktLnIcy6jJNyOCQw=
go.opentelemetry.io/contrib/detectors/gcp v1.36.0/go.mod h1:IbBN8uAIIx734PTonTPxAxnjc2pQTxWNkwfstZ+6H2k=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 h1:r6I7RJCN86bpD/FQwedZ0vSixDpwuWREjW9oRMsmqDc=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0/go.mod h1:B9yO6b04uB80CzjedvewuqDhxJxi11s7/GtiGa8bAjI=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 h1:RbKq8BG0FI8OiXhBfcRtqqHcZcka+gU3cskNuf05R18=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0/go.mod h1:h06DGIukJOevXaj/xrNjhi/2098RZzcLTbc0jDAUbsg=
go.opentelemetry.io/otel v1.38.0 h1:RkfdswUDRimDg0m2Az18RKOsnI8UDzppJAtj01/Ymk8=
go.opentelemetry.io/otel v1.38.0/go.mod h1:zcmtmQ1+YmQM9wrNsTGV/q/uyusom3P8RxwExxkZhjM=
go.opentelemetry.io/otel/exporters/prometheus v0.56.0 h1:GnCIi0QyG0yy2MrJLzVrIM7laaJstj//flf1zEJCG+E=
go.opentelemetry.io/otel/exporters/prometheus v0.56.0/go.mod h1:JQcVZtbIIPM+7SWBB+T6FK+xunlyidwLp++fN0sUaOk=
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.29.0 h1:WDdP9acbMYjbKIyJUhTvtzj601sVJOqgWdUxSdR/Ysc=
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.29.0/go.mod h1:BLbf7zbNIONBLPwvFnwNHGj4zge8uTCM/UPIVW1Mq2I=
go.opentelemetry.io/otel/metric v1.38.0 h1:Kl6lzIYGAh5M159u9NgiRkmoMKjvbsKtYRwgfrA6WpA=
go.opentelemetry.io/otel/metric v1.38.0/go.mod h1:kB5n/QoRM8YwmUahxvI3bO34eVtQf2i4utNVLr9gEmI=
go.opentelemetry.io/otel/sdk v1.38.0 h1:l48sr5YbNf2hpCUj/FoGhW9yDkl+Ma+LrVl8qaM5b+E=
@@ -2061,8 +2106,8 @@ go.yaml.in/yaml/v2 v2.4.3 h1:6gvOSjQoTB3vt1l+CU+tSyi/HOjfOjRLJ4YwYZGwRO0=
go.yaml.in/yaml/v2 v2.4.3/go.mod h1:zSxWcmIDjOzPXpjlTTbAsKokqkDNAVtZO0WOMiT90s8=
go.yaml.in/yaml/v3 v3.0.3 h1:bXOww4E/J3f66rav3pX3m8w6jDE4knZjGOw8b5Y6iNE=
go.yaml.in/yaml/v3 v3.0.3/go.mod h1:tBHosrYAkRZjRAOREWbDnBXUf08JOwYq++0QNwQiWzI=
golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k=
golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
golang.org/x/arch v0.15.0 h1:QtOrQd0bTUnhNVNndMpLHNWrDmYzZ2KDqSrEymqInZw=
golang.org/x/arch v0.15.0/go.mod h1:JmwW7aLIoRUKgaTzhkiEFxvcEiQGyOg9BMonBJUS7EE=
golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
@@ -2334,6 +2379,7 @@ golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
@@ -2346,6 +2392,7 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
@@ -2600,8 +2647,8 @@ google.golang.org/api v0.108.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/
google.golang.org/api v0.110.0/go.mod h1:7FC4Vvx1Mooxh8C5HWjzZHcavuS2f6pmJpZx60ca7iI=
google.golang.org/api v0.111.0/go.mod h1:qtFHvU9mhgTJegR31csQ+rwxyUTHOKFqCKWp1J0fdw0=
google.golang.org/api v0.114.0/go.mod h1:ifYI2ZsFK6/uGddGfAD5BMxlnkBqCmqHSDUVi45N5Yg=
google.golang.org/api v0.186.0 h1:n2OPp+PPXX0Axh4GuSsL5QL8xQCTb2oDwyzPnQvqUug=
google.golang.org/api v0.186.0/go.mod h1:hvRbBmgoje49RV3xqVXrmP6w93n6ehGgIVPYrGtBFFc=
google.golang.org/api v0.215.0 h1:jdYF4qnyczlEz2ReWIsosNLDuzXyvFHJtI5gcr0J7t0=
google.golang.org/api v0.215.0/go.mod h1:fta3CVtuJYOEdugLNWm6WodzOS8KdFckABwN4I40hzY=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@@ -2748,8 +2795,8 @@ google.golang.org/genproto v0.0.0-20230323212658-478b75c54725/go.mod h1:UUQDJDOl
google.golang.org/genproto v0.0.0-20230330154414-c0448cd141ea/go.mod h1:UUQDJDOlWu4KYeJZffbWgBkS1YFobzKbLVfK69pe0Ak=
google.golang.org/genproto v0.0.0-20230331144136-dcfb400f0633/go.mod h1:UUQDJDOlWu4KYeJZffbWgBkS1YFobzKbLVfK69pe0Ak=
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU=
google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094 h1:6whtk83KtD3FkGrVb2hFXuQ+ZMbCNdakARIn/aHMmG8=
google.golang.org/genproto v0.0.0-20240701130421-f6361c86f094/go.mod h1:Zs4wYw8z1zr6RNF4cwYb31mvN/EGaKAdQjNCF3DW6K4=
google.golang.org/genproto v0.0.0-20241118233622-e639e219e697 h1:ToEetK57OidYuqD4Q5w+vfEnPvPpuTwedCNVohYJfNk=
google.golang.org/genproto v0.0.0-20241118233622-e639e219e697/go.mod h1:JJrvXBWRZaFMxBufik1a4RpFw4HhgVtBBWQeQgUj2cc=
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5 h1:BIRfGDEjiHRrk0QKZe3Xv2ieMhtgRGeLcZQ0mIVn4EY=
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5/go.mod h1:j3QtIyytwqGr1JUDtYXwtMXWPKsEa5LtzIFN1Wn5WvE=
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 h1:eaY8u2EuxbRv7c3NiGK0/NedzVsCcV6hDuU5qPX5EGE=
@@ -2863,8 +2910,8 @@ gorm.io/driver/sqlite v1.6.0 h1:WHRRrIiulaPiPFmDcod6prc4l2VGVWHz80KspNsxSfQ=
gorm.io/driver/sqlite v1.6.0/go.mod h1:AO9V1qIQddBESngQUKWL9yoH93HIeA1X6V633rBwyT8=
gorm.io/gorm v1.30.1 h1:lSHg33jJTBxs2mgJRfRZeLDG+WZaHYCk3Wtfl6Ngzo4=
gorm.io/gorm v1.30.1/go.mod h1:8Z33v652h4//uMA76KjeDH8mJXPm1QNCYrMeatR0DOE=
gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU=
gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU=
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
@@ -2913,8 +2960,8 @@ modernc.org/z v1.5.1/go.mod h1:eWFB510QWW5Th9YGZT81s+LwvaAs3Q2yr4sP0rmLkv8=
nhooyr.io/websocket v1.8.17 h1:KEVeLJkUywCKVsnLIDlD/5gtayKp8VoCkksHCGGfT9Y=
nhooyr.io/websocket v1.8.17/go.mod h1:rN9OFWIUwuxg4fR5tELlYC04bXYowCP9GX47ivo2l+c=
nullprogram.com/x/optparse v1.0.0/go.mod h1:KdyPE+Igbe0jQUrVfMqDMeJQIJZEuyV7pjYmp6pbG50=
pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw=
pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=
pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk=
pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
+396
View File
@@ -0,0 +1,396 @@
# sonrctl 🚀
**Blazingly fast CLI for managing Sonr blockchain nodes, validators, and networks**
Built with [Bun](https://bun.sh) - the all-in-one JavaScript runtime.
## Features
-**Blazingly Fast** - Built on Bun for instant startup and execution
- 🎯 **Simple API** - Clean, intuitive commands for node management
- 🐳 **Docker Integration** - Seamless container orchestration for testnets
- 💾 **SQLite Config** - Lightweight, fast configuration management
- 🎨 **Beautiful Output** - Colored, formatted CLI output
- 🔧 **Node Management** - Initialize, start, stop, and monitor nodes
- 🌐 **Network Operations** - Full testnet deployment and management
## Installation
### Install Bun (if not already installed)
```bash
curl -fsSL https://bun.sh/install | bash
```
### Install sonrctl
```bash
# Clone the repository
git clone https://github.com/sonr-io/sonr.git
cd sonr
# Install dependencies
bun install
# Link the CLI globally
bun link
```
### Install snrd binary
```bash
sonrctl install latest
```
## Quick Start
```bash
# Show help
sonrctl help
# Initialize a validator node
sonrctl init validator val-naruto --chain-id sonrtest_1-1
# Start the entire testnet network
sonrctl start network --detach
# Check network status
sonrctl status network
# Stop the network
sonrctl stop network
```
## Commands
### `sonrctl install [version]`
Install or update the snrd binary.
```bash
# Install latest version
sonrctl install latest
# Install specific version (coming soon)
sonrctl install v1.0.0
```
### `sonrctl init <type> <name> [options]`
Initialize a new node configuration.
**Types:** `validator`, `sentry`, `full`
**Options:**
- `--chain-id <id>` - Chain ID (default: sonrtest_1-1)
- `--home <path>` - Home directory (default: ~/.sonr/<name>)
- `--rpc-port <port>` - RPC port (default: 26657)
- `--rest-port <port>` - REST API port (default: 1317)
- `--grpc-port <port>` - gRPC port (default: 9090)
- `--grpc-web-port <port>` - gRPC-Web port (default: 9091)
- `--json-rpc-port <port>` - JSON-RPC port (default: 8545)
- `--json-rpc-ws-port <port>` - JSON-RPC WebSocket port (default: 8546)
**Examples:**
```bash
# Initialize a validator
sonrctl init validator val-naruto
# Initialize a sentry with custom home
sonrctl init sentry sentry-naruto --home ~/.sonr/custom-sentry
# Initialize with custom ports
sonrctl init validator my-val --rpc-port 26658 --rest-port 1318
```
### `sonrctl start <target> [options]`
Start a node or the entire network.
**Targets:**
- `<node-name>` - Start a specific registered node
- `network` - Start the entire testnet using docker-compose
**Options:**
- `--detach`, `-d` - Run in background (network only)
**Examples:**
```bash
# Start a specific node
sonrctl start val-naruto
# Start network in foreground
sonrctl start network
# Start network in background
sonrctl start network --detach
```
### `sonrctl stop <target>`
Stop a node, network, or all containers.
**Targets:**
- `<node-name>` - Stop a specific container
- `network` - Stop the entire testnet
- `all` - Stop all running containers
**Examples:**
```bash
# Stop a specific node
sonrctl stop val-naruto
# Stop the network
sonrctl stop network
# Stop all containers
sonrctl stop all
```
### `sonrctl status [target]`
Check status of nodes and network.
**Targets:**
- (none) - Show overall status
- `<node-name>` - Show specific node status
- `network` - Show network status
**Examples:**
```bash
# Show overall status
sonrctl status
# Show specific node status
sonrctl status val-naruto
# Show network status
sonrctl status network
```
### `sonrctl config <command> [args]`
Manage sonrctl configuration.
**Commands:**
- `list` - List all configuration
- `get <key>` - Get a specific value
- `set <key> <value>` - Set a configuration value
**Examples:**
```bash
# List all configuration
sonrctl config list
# Get chain ID
sonrctl config get chain_id
# Set home directory
sonrctl config set home ~/.sonr-custom
```
## Configuration
sonrctl stores its configuration in:
- **Config Database:** `~/.config/sonr/config.db`
- **Node Home:** `~/.sonr/` (default)
The SQLite database stores:
- Global configuration (chain ID, binary path, etc.)
- Registered nodes
- Node metadata
## Project Structure
```
src/
├── index.ts # Main CLI entry point
├── types.ts # TypeScript type definitions
├── commands/ # Command implementations
│ ├── install.ts # Install snrd binary
│ ├── init.ts # Initialize nodes
│ ├── start.ts # Start nodes/network
│ ├── stop.ts # Stop nodes/network
│ ├── status.ts # Check status
│ └── config.ts # Configuration management
└── lib/ # Utility libraries
├── constants.ts # Constants and defaults
├── logger.ts # Beautiful logging
├── config.ts # SQLite configuration manager
├── toml.ts # TOML file utilities
├── docker.ts # Docker operations
└── node.ts # Node operations
```
## Architecture
sonrctl is built with a clean, modular architecture:
1. **Command Layer** - Handles user input and command routing
2. **Library Layer** - Provides utilities for common operations
3. **Storage Layer** - SQLite database for configuration persistence
### Key Design Decisions
- **Bun Runtime** - For blazingly fast execution and built-in tools
- **SQLite Storage** - Lightweight, fast, and portable
- **No External Dependencies** - Minimal deps, maximum performance
- **Clean Separation** - Commands, libraries, and utilities are separate
- **Type Safety** - Full TypeScript support
## Docker Integration
sonrctl integrates seamlessly with Docker for testnet deployment:
- Start/stop docker-compose networks
- Manage individual containers
- Monitor container status
- Execute commands in containers
- View container logs
The CLI can work as a drop-in replacement for manual docker-compose operations.
## Development
### Prerequisites
- [Bun](https://bun.sh) v1.0+
- Docker (for network operations)
- Git
### Running Locally
```bash
# Run directly with Bun
bun run src/index.ts help
# Run a specific command
bun run src/index.ts status
```
### Adding New Commands
1. Create a new file in `src/commands/`
2. Export an async function that takes `args: string[]`
3. Import and add to the switch statement in `src/index.ts`
4. Update the help text
Example:
```typescript
// src/commands/mycommand.ts
export async function mycommand(args: string[]) {
Logger.header('My Command');
// Implementation
}
// src/index.ts
import { mycommand } from './commands/mycommand';
// Add to switch statement
case 'mycommand':
await mycommand(commandArgs);
break;
```
## Examples
### Setting Up a Testnet
```bash
# 1. Install the binary
sonrctl install
# 2. Start the testnet network
sonrctl start network --detach
# 3. Check status
sonrctl status network
# 4. View logs
docker logs -f val-naruto
# 5. Stop when done
sonrctl stop network
```
### Creating a Custom Node
```bash
# 1. Initialize a custom validator
sonrctl init validator my-validator \
--chain-id mychain-1 \
--home ~/.sonr/my-validator \
--rpc-port 26667
# 2. Configure genesis (manual step)
# Edit ~/.sonr/my-validator/config/genesis.json
# 3. Start the node
sonrctl start my-validator
# 4. Check status
sonrctl status my-validator
```
## Troubleshooting
### Command not found
```bash
# Make sure Bun's bin directory is in your PATH
export PATH="$HOME/.bun/bin:$PATH"
# Re-link the CLI
bun link
```
### Docker permission denied
```bash
# Add your user to the docker group
sudo usermod -aG docker $USER
# Log out and back in, or run:
newgrp docker
```
### Binary not found after install
```bash
# Check if ~/.local/bin is in your PATH
export PATH="$HOME/.local/bin:$PATH"
# Add to your shell profile
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
```
## Contributing
Contributions are welcome! Please:
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Add tests if applicable
5. Submit a pull request
## License
Apache 2.0 - See LICENSE file for details
## Links
- [Sonr Network](https://sonr.io)
- [Documentation](https://docs.sonr.io)
- [GitHub](https://github.com/sonr-io/sonr)
- [Bun](https://bun.sh)
---
**Built with ❤️ using Bun**
+47
View File
@@ -349,3 +349,50 @@ func GetEventAttribute(event struct {
}
return "", false
}
// DoRequest performs a public HTTP GET request (wrapper around private doRequest)
// This is used by test helpers to query custom endpoints
func (c *StarshipClient) DoRequest(ctx context.Context, url string, target any) error {
return c.doRequest(ctx, url, target)
}
// TxResponse represents a transaction response
type TxResponse struct {
Height string `json:"height"`
TxHash string `json:"txhash"`
Codespace string `json:"codespace"`
Code uint32 `json:"code"`
Data string `json:"data"`
RawLog string `json:"raw_log"`
Logs []struct {
MsgIndex int `json:"msg_index"`
Log string `json:"log"`
Events []struct {
Type string `json:"type"`
Attributes []struct {
Key string `json:"key"`
Value string `json:"value"`
} `json:"attributes"`
} `json:"events"`
} `json:"logs"`
Info string `json:"info"`
GasWanted string `json:"gas_wanted"`
GasUsed string `json:"gas_used"`
Tx any `json:"tx"`
Timestamp string `json:"timestamp"`
}
// SignAndBroadcastTx signs and broadcasts a transaction message
// Note: This is a simplified implementation for E2E tests
// In production, use proper keyring and transaction signing
func (c *StarshipClient) SignAndBroadcastTx(ctx context.Context, from string, msgs ...sdk.Msg) (*TxResponse, error) {
// For E2E tests, we'll use the REST API to broadcast transactions
// In a real implementation, you would:
// 1. Sign the transaction with the account's private key
// 2. Encode the transaction
// 3. Broadcast via REST or gRPC
// This is a placeholder that needs proper implementation based on your keyring setup
// For now, return an error indicating this needs to be implemented
return nil, fmt.Errorf("SignAndBroadcastTx not yet implemented - use CLI or proper SDK client for transaction signing")
}
+4 -2
View File
@@ -18,8 +18,8 @@ replace (
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.8.1
github.com/sonr-io/sonr => ../../
github.com/sonr-io/crypto => ../../crypto
github.com/sonr-io/sonr => ../../
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
)
@@ -333,8 +333,8 @@ require (
github.com/samber/lo v1.47.0 // indirect
github.com/sasha-s/go-deadlock v0.3.5 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/sonr-io/sonr v0.0.0-00010101000000-000000000000 // indirect
github.com/sonr-io/crypto v0.0.0-00010101000000-000000000000 // indirect
github.com/sonr-io/sonr v0.0.0-00010101000000-000000000000 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
@@ -421,3 +421,5 @@ require (
rsc.io/tmplfunc v0.0.3 // indirect
sigs.k8s.io/yaml v1.5.0 // indirect
)
replace github.com/lyft/protoc-gen-validate => github.com/envoyproxy/protoc-gen-validate v1.1.0
+145
View File
@@ -0,0 +1,145 @@
.PHONY: test test-verbose test-quick test-single clean help
# Default target
all: test
# Run all E2E tests
test:
@echo "Running USDC Swap E2E tests..."
go test -v -timeout 10m
# Run tests with verbose output and detailed logs
test-verbose:
@echo "Running tests with verbose output..."
go test -v -timeout 10m 2>&1 | tee test.log
@echo "Test log saved to test.log"
# Run quick tests (skip slow integration tests)
test-quick:
@echo "Running quick tests..."
go test -v -short -timeout 5m
# Run a single test
# Usage: make test-single TEST=Test04_ExecuteUSDCSwap_SNRToUSDC
test-single:
@echo "Running single test: $(TEST)"
go test -v -run "TestUSDCSwapE2E/$(TEST)" -timeout 5m
# Run tests with coverage
test-coverage:
@echo "Running tests with coverage..."
go test -v -coverprofile=coverage.out -timeout 10m
go tool cover -html=coverage.out -o coverage.html
@echo "Coverage report generated: coverage.html"
# Run specific test categories
test-config:
@echo "Running configuration tests..."
go test -v -run "Test01" -timeout 2m
test-did:
@echo "Running DID tests..."
go test -v -run "Test02" -timeout 3m
test-dex:
@echo "Running DEX account tests..."
go test -v -run "Test03" -timeout 3m
test-swaps:
@echo "Running swap execution tests..."
go test -v -run "Test04|Test05|Test09" -timeout 10m
test-validation:
@echo "Running validation tests..."
go test -v -run "Test06" -timeout 3m
test-query:
@echo "Running query tests..."
go test -v -run "Test08" -timeout 2m
# Verify prerequisites
check-prereqs:
@echo "Checking prerequisites..."
@command -v go >/dev/null 2>&1 || { echo "Go is not installed"; exit 1; }
@echo "✓ Go installed: $$(go version)"
@command -v snrd >/dev/null 2>&1 || { echo "snrd is not installed"; exit 1; }
@echo "✓ snrd installed"
@curl -s http://localhost:1317/cosmos/base/tendermint/v1beta1/node_info >/dev/null 2>&1 || \
{ echo "✗ Sonr testnet not running at localhost:1317"; exit 1; }
@echo "✓ Sonr testnet running"
@echo "All prerequisites met!"
# Setup test environment
setup:
@echo "Setting up test environment..."
@echo "1. Checking network status..."
@curl -s http://localhost:1317/cosmos/base/tendermint/v1beta1/node_info | grep -q network && \
echo "✓ Network is running" || { echo "✗ Network not accessible"; exit 1; }
@echo "2. Checking faucet..."
@curl -s http://localhost:8000/health >/dev/null 2>&1 && \
echo "✓ Faucet is running" || echo "⚠ Faucet not accessible (tests may fail)"
@echo "Setup complete!"
# Verify IBC connections
check-ibc:
@echo "Checking IBC connections..."
@snrd query ibc connection connections --node tcp://localhost:26657 --output json | \
jq -r '.connections[] | "\(.id): \(.state)"'
@echo ""
@echo "Checking IBC channels..."
@snrd query ibc channel channels --node tcp://localhost:26657 --output json | \
jq -r '.channels[] | "\(.port_id)/\(.channel_id): \(.state)"'
# Query DEX module status
check-dex:
@echo "Checking DEX module..."
@snrd query dex params --node tcp://localhost:26657 --output json | \
jq -r '.params | "Enabled: \(.enabled), Max Accounts: \(.max_accounts_per_did)"'
# Clean test artifacts
clean:
@echo "Cleaning test artifacts..."
@rm -f test.log coverage.out coverage.html
@echo "✓ Cleaned"
# Watch mode - run tests on file changes
# Requires: entr (brew install entr or apt-get install entr)
watch:
@echo "Watching for file changes..."
@ls *.go | entr -c make test-verbose
# Benchmark tests
bench:
@echo "Running benchmarks..."
go test -bench=. -benchmem -timeout 10m
# Generate test data
generate-test-data:
@echo "Generating test DIDs and accounts..."
@for i in {1..5}; do \
did="did:snr:test_preset_$$i"; \
echo "$$did"; \
done
# Help target
help:
@echo "Available targets:"
@echo " make test - Run all E2E tests"
@echo " make test-verbose - Run with verbose output"
@echo " make test-quick - Run quick tests only"
@echo " make test-single TEST=<name> - Run a single test"
@echo " make test-coverage - Run with coverage report"
@echo " make test-config - Run configuration tests"
@echo " make test-did - Run DID tests"
@echo " make test-dex - Run DEX account tests"
@echo " make test-swaps - Run swap execution tests"
@echo " make test-validation - Run validation tests"
@echo " make test-query - Run query tests"
@echo " make check-prereqs - Verify prerequisites"
@echo " make setup - Setup test environment"
@echo " make check-ibc - Check IBC connections"
@echo " make check-dex - Check DEX module status"
@echo " make clean - Clean test artifacts"
@echo " make watch - Watch mode (requires entr)"
@echo " make bench - Run benchmarks"
@echo " make help - Show this help"
+420
View File
@@ -0,0 +1,420 @@
# USDC Swap with DID E2E Tests
Comprehensive end-to-end tests for USDC swap functionality with DID-based Interchain Accounts (ICA) on Noble testnet.
## Overview
This test suite validates the complete USDC swap flow including:
- DID creation and management
- DEX account registration via ICA
- Cross-chain USDC swaps (SNR ↔ USDC)
- Noble testnet IBC integration
- Swap routing and slippage protection
- Event verification and transaction history
## Prerequisites
### Network Setup
1. **Sonr Testnet**: Running local testnet with DEX module enabled
2. **Noble Testnet Connection**: IBC connection established to Noble testnet (grand-1)
3. **IBC Relayer**: Active relayer between Sonr and Noble chains
4. **Test Tokens**:
- SNR tokens for gas and swaps
- USDC tokens on Noble testnet (optional for full E2E)
### Configuration
The tests use these default configurations:
```go
// Noble Testnet
NobleChainID = "noble-grand-1"
NobleConnectionID = "connection-noble" // Update with actual connection
NobleUSDCDenom = "uusdc"
// Test Amounts
USDCTestAmount = 1_000_000 // 1 USDC (6 decimals)
SNRSwapAmount = 1_000_000 // 1 SNR (6 decimals)
SlippageTolerance = 0.05 // 5% slippage
```
## Test Suite Structure
### Test Cases
#### 01. Verify Noble Configuration
**Purpose**: Validates Noble chain configuration and constants
**Validates**:
- Noble chain ID recognition
- USDC denomination configuration
- Decimal places (6 for USDC)
- Chain type detection
#### 02. Create DID Document
**Purpose**: Creates a test DID for swap operations
**Operations**:
- Generate unique DID for test
- Create DID document on-chain
- Verify DID can be queried
- Validate DID structure
#### 03. Register DEX Account
**Purpose**: Registers an ICA account on Noble connection
**Operations**:
- Register DEX account with Noble connection
- Enable swap and liquidity features
- Wait for ICA channel handshake
- Verify account status and ICA address
**Expected States**:
- `ACCOUNT_STATUS_PENDING`: Initial state during handshake
- `ACCOUNT_STATUS_ACTIVE`: Account ready for operations
- `ACCOUNT_STATUS_FAILED`: Handshake failed
#### 04. Execute USDC Swap (SNR → USDC)
**Purpose**: Tests swapping SNR to USDC on Noble
**Flow**:
1. Setup DID and DEX account
2. Calculate minimum output with slippage
3. Execute swap via ICA
4. Verify transaction success
5. Check swap event emission
**Parameters**:
```go
Amount: 1_000_000 usnr (1 SNR)
MinAmountOut: 950_000 uusdc (0.95 USDC - 5% slippage)
Timeout: 60 seconds
```
#### 05. Execute USDC Swap (USDC → SNR)
**Purpose**: Tests reverse swap (USDC to SNR)
**Flow**: Same as Test 04 but with reversed denoms
#### 06. Swap With Invalid Parameters
**Purpose**: Tests error handling and validation
**Test Cases**:
- Zero amount swap
- Same source/target denom
- Negative minimum output
- Invalid connection ID
**Expected**: All cases should fail gracefully
#### 07. Swap With UCAN Permission
**Purpose**: Tests UCAN-authorized delegated swaps
**Status**: Currently skipped (requires full UCAN setup)
**Features**:
- UCAN token generation
- Permission validation
- Delegated execution
#### 08. Query DEX History
**Purpose**: Verifies transaction history tracking
**Validates**:
- History query endpoint
- Activity records
- Transaction metadata
- Status tracking
#### 09. Multiple Sequential Swaps
**Purpose**: Tests executing multiple swaps in sequence
**Operations**:
- Execute 3 swaps sequentially
- Verify each transaction succeeds
- Check for nonce/sequence handling
- Validate no race conditions
## Running the Tests
### Quick Start
```bash
# Navigate to test directory
cd test/e2e/usdc-swap-did
# Run all tests
go test -v
# Run specific test
go test -v -run TestUSDCSwapE2E/Test04_ExecuteUSDCSwap_SNRToUSDC
# Run with timeout
go test -v -timeout 10m
```
### Prerequisites Check
Before running tests, ensure:
```bash
# 1. Verify Noble connection exists
snrd query ibc connection end connection-noble
# 2. Check connection is open
# Expected output: state: STATE_OPEN
# 3. Verify ICA channel
snrd query ibc channel channels --node tcp://localhost:26657
# 4. Check DEX module is enabled
snrd query dex params
```
### Full E2E Setup
```bash
# 1. Start Sonr testnet
make testnet
# 2. Establish Noble connection (one-time setup)
# This requires:
# - Noble testnet access
# - IBC relayer configuration
# - Channel creation
# 3. Fund test accounts
# The tests will auto-fund via faucet, but you can pre-fund:
snrd tx bank send validator <test-address> 100000000usnr --yes
# 4. Run tests
cd test/e2e/usdc-swap-did && go test -v
```
## Test Utilities
### Helper Functions
#### DID Operations
```go
// Create test DID
did, err := CreateTestDID(ctx, cfg, account, didID)
// Query DID
did, err := QueryDID(ctx, cfg, didID)
```
#### DEX Operations
```go
// Query DEX account
account, err := QueryDEXAccount(ctx, cfg, didID, connectionID)
// Query transaction history
history, err := QueryDEXHistory(ctx, cfg, didID)
// Wait for account activation
active, err := WaitForDEXAccountActivation(ctx, cfg, didID, connectionID, timeout)
```
#### Swap Utilities
```go
// Validate parameters
err := ValidateSwapParameters(sourceDenom, targetDenom, amount, minOut)
// Calculate slippage
minOut := CalculateMinimumOutput(amount, slippagePct)
// Format amounts for display
formatted := FormatUSDCAmount(1000000) // "1.000000 USDC"
formatted = FormatSNRAmount(1000000) // "1.000000 SNR"
```
### Assertions
The test suite uses `testify/suite` and `testify/require` for assertions:
```go
// Transaction success
require.NoError(t, err)
require.Equal(t, uint32(0), txResp.Code)
// Balance checks
balance := s.getBalance(address, denom)
require.True(t, balance.GT(minAmount))
// Event verification
s.verifySwapEvent(txHash, did, connectionID)
```
## Configuration
### Update Connection ID
Before running tests, update the Noble connection ID in `usdc_swap_test.go`:
```go
const (
NobleConnectionID = "connection-0" // Replace with actual connection ID
)
```
To find the connection ID:
```bash
# List all connections
snrd query ibc connection connections
# Look for connection to Noble (grand-1)
# Update NobleConnectionID constant with the correct value
```
### Custom Test Configuration
Create a custom config for your environment:
```go
cfg := &utils.TestConfig{
ChainID: "sonrtest_1-1",
BaseURL: "http://localhost:1317",
NobleConnection: "connection-0", // Your Noble connection
// ... other settings
}
```
## Troubleshooting
### Common Issues
#### 1. Connection Not Found
```
Error: connection connection-noble not found
```
**Solution**: Update `NobleConnectionID` constant with actual connection ID
#### 2. ICA Account Pending
```
⚠ ICA address pending (channel handshake may be in progress)
```
**Solution**: Wait for ICA channel handshake to complete (can take 1-2 minutes)
#### 3. Swap Transaction Fails
```
Error: DEX account not active
```
**Solution**: Ensure ICA account is in `ACCOUNT_STATUS_ACTIVE` state
#### 4. Insufficient Funds
```
Error: insufficient funds
```
**Solution**: Fund test account with SNR tokens
### Debug Mode
Enable verbose logging:
```bash
# Run with verbose output
go test -v -run TestUSDCSwapE2E 2>&1 | tee test.log
# Check specific test output
grep "Test 04" test.log
# View all swap events
grep "Swap" test.log
```
### Verify IBC Setup
```bash
# Check IBC clients
snrd query ibc client states
# Check channels
snrd query ibc channel channels
# Check connections
snrd query ibc connection connections
# Monitor relayer
# (depends on your relayer setup)
```
## Integration with CI/CD
### GitHub Actions
```yaml
name: USDC Swap E2E Tests
on: [push, pull_request]
jobs:
e2e-usdc-swap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Start Testnet
run: make testnet
- name: Wait for Network
run: sleep 30
- name: Run E2E Tests
run: |
cd test/e2e/usdc-swap-did
go test -v -timeout 10m
```
## Expected Output
### Successful Test Run
```
=== RUN TestUSDCSwapE2E
=== RUN TestUSDCSwapE2E/Test01_VerifyNobleConfiguration
=== Test 01: Verify Noble Configuration ===
✓ Noble configuration verified successfully
=== RUN TestUSDCSwapE2E/Test02_CreateDIDDocument
=== Test 02: Create DID Document ===
✓ DID document created: did:snr:test_1234567890
✓ DID query verification successful
=== RUN TestUSDCSwapE2E/Test03_RegisterDEXAccount
=== Test 03: Register DEX Account ===
✓ DEX account registered, tx hash: ABC123...
✓ DEX account status: ACCOUNT_STATUS_ACTIVE
✓ ICA port ID: icacontroller-did:snr:test_1234567890-connection-0
✓ ICA address: noble1abc...xyz
=== RUN TestUSDCSwapE2E/Test04_ExecuteUSDCSwap_SNRToUSDC
=== Test 04: Execute USDC Swap (SNR → USDC) ===
Initial SNR balance: 10000000
✓ Swap transaction broadcasted, tx hash: DEF456...
✓ Found swap event for DID: did:snr:test_1234567890
✓ Swap execution test completed
...
--- PASS: TestUSDCSwapE2E (45.23s)
PASS
ok github.com/sonr-io/sonr/test/e2e/usdc-swap-did 45.234s
```
## Future Enhancements
### Planned Features
1. **Multi-hop Swaps**: Route through multiple pools/chains
2. **Liquidity Provision**: Add/remove liquidity tests
3. **Limit Orders**: Create and execute limit orders
4. **UCAN Integration**: Full delegation testing
5. **Performance Tests**: Load testing and benchmarks
6. **Failure Recovery**: Test ICA timeout handling
### Contributing
When adding new tests:
1. Follow existing naming convention (Test##_Description)
2. Add helper functions to `helpers.go`
3. Update this README with new test documentation
4. Ensure tests are idempotent
5. Add appropriate logging for debugging
## References
- [Noble Documentation](https://docs.noble.xyz)
- [IBC Protocol](https://ibc.cosmos.network)
- [Sonr DEX Module](../../../../x/dex/README.md)
- [DID Module](../../../../x/did/README.md)
- [E2E Testing Framework](../README.md)
+316
View File
@@ -0,0 +1,316 @@
# USDC Swap E2E Test Configuration
# Copy this file to config.yaml and customize for your environment
# Sonr Testnet Configuration
sonr:
chain_id: "sonrtest_1-1"
rpc_endpoint: "http://localhost:26657"
rest_endpoint: "http://localhost:1317"
grpc_endpoint: "localhost:9090"
faucet_endpoint: "http://localhost:8000"
# Native token configuration
staking_denom: "usnr"
display_denom: "snr"
decimals: 6
# Test account configuration
test_accounts:
- name: "test_user_1"
mnemonic: "" # Optional: Provide existing mnemonic
initial_balance: "100000000usnr" # 100 SNR
- name: "test_user_2"
mnemonic: ""
initial_balance: "50000000usnr" # 50 SNR
# Noble Testnet Configuration
noble:
chain_id: "noble-grand-1"
rpc_endpoint: "https://noble-testnet-rpc.polkachu.com:443"
rest_endpoint: "https://noble-testnet-api.polkachu.com"
grpc_endpoint: "noble-testnet-grpc.polkachu.com:21590"
# USDC configuration
usdc_denom: "uusdc"
usdc_decimals: 6
# Circle attestation (for USDC)
attestation:
enabled: true
domain: 4 # Noble testnet domain
# IBC Configuration
ibc:
# Connection from Sonr to Noble
# Update this with your actual connection ID
noble_connection_id: "connection-0"
# IBC transfer channel
# Update with actual channel after connection
transfer_channel_id: "channel-0"
# Relayer configuration (optional)
relayer:
enabled: false
type: "hermes" # or "rly"
path: "sonr-noble"
# DEX Module Configuration
dex:
# Features to enable for test accounts
default_features:
- "swap"
- "liquidity"
- "orders"
# ICA configuration
ica:
# Timeout for ICA operations
timeout: "300s"
# Retry configuration
max_retries: 3
retry_delay: "5s"
# Account creation
auto_register: true
# Swap Test Configuration
swap:
# Test amounts
amounts:
snr_to_usdc: "1000000" # 1 SNR
usdc_to_snr: "5000000" # 5 USDC
small_swap: "100000" # 0.1 tokens
large_swap: "50000000" # 50 tokens
# Slippage configuration
slippage:
default_percent: 5.0 # 5% default slippage
max_percent: 10.0 # 10% maximum allowed
min_percent: 0.1 # 0.1% minimum
# Timeout configuration
timeouts:
swap_tx: "60s" # Individual swap timeout
multi_swap: "300s" # Multiple swaps timeout
history_query: "30s" # History query timeout
# Routing configuration
routing:
prefer_direct: true # Prefer direct swaps when available
max_hops: 3 # Maximum routing hops
usdc_intermediary: true # Use USDC as intermediary
# Test Configuration
test:
# Parallel execution
parallel: false
# Timeout configuration
timeout:
default: "10m"
extended: "30m"
quick: "5m"
# Retry configuration
retry:
enabled: true
max_attempts: 3
delay: "5s"
# Logging
logging:
level: "info" # debug, info, warn, error
verbose: true
save_to_file: true
file_path: "test.log"
# Cleanup
cleanup:
# Clean up test accounts after tests
accounts: true
# Clean up test DIDs after tests
dids: false # Keep for debugging
# Clean up test data
artifacts: true
# DID Configuration
did:
# DID prefix
prefix: "did:snr:test"
# Generate unique DIDs per test
unique_per_test: true
# DID document configuration
document:
verification_methods:
- type: "EcdsaSecp256k1VerificationKey2019"
purpose: ["authentication", "assertionMethod"]
services:
- type: "DEXSwapService"
endpoint: "https://dex.sonr.io"
# Monitoring and Alerts
monitoring:
# Enable transaction monitoring
enabled: true
# Check intervals
intervals:
balance: "5s"
status: "10s"
events: "3s"
# Alerts
alerts:
# Alert on test failure
on_failure: true
# Alert on slow tests
on_slow_test:
enabled: true
threshold: "5m"
# Alert on IBC timeout
on_ibc_timeout: true
# Performance Configuration
performance:
# Concurrent swaps limit
max_concurrent_swaps: 10
# Rate limiting
rate_limit:
enabled: true
requests_per_second: 5
# Resource limits
resources:
max_memory: "1GB"
max_goroutines: 100
# Network Simulation
simulation:
# Simulate network conditions
enabled: false
# Latency simulation
latency:
min: "10ms"
max: "500ms"
# Packet loss simulation
packet_loss:
rate: 0.01 # 1% packet loss
# Bandwidth limits
bandwidth:
upload: "100Mbps"
download: "100Mbps"
# Debug Configuration
debug:
# Enable debug mode
enabled: false
# Save transaction details
save_transactions: true
transactions_dir: "./transactions"
# Save state snapshots
save_snapshots: true
snapshots_dir: "./snapshots"
# Breakpoints
breakpoints:
before_swap: false
after_swap: false
on_error: true
# Profiling
profiling:
enabled: false
cpu: true
memory: true
output_dir: "./profiles"
# CI/CD Configuration
ci:
# GitHub Actions
github_actions:
enabled: true
secrets:
noble_rpc: "NOBLE_RPC_ENDPOINT"
test_mnemonic: "TEST_ACCOUNT_MNEMONIC"
# Report generation
reports:
format: "junit" # junit, json, html
output_dir: "./test-reports"
# Artifacts
artifacts:
upload: true
retention_days: 30
# Environment-specific overrides
environments:
# Local development
local:
sonr:
rest_endpoint: "http://localhost:1317"
noble:
# Use local Noble node if available
rest_endpoint: "http://localhost:1318"
test:
timeout:
default: "5m"
# Staging environment
staging:
sonr:
rest_endpoint: "https://staging-api.sonr.io"
noble:
rest_endpoint: "https://noble-testnet-api.polkachu.com"
test:
timeout:
default: "15m"
# Production testing
production:
sonr:
rest_endpoint: "https://api.sonr.io"
noble:
rest_endpoint: "https://noble-api.polkachu.com"
test:
timeout:
default: "30m"
retry:
max_attempts: 5
# Notes and Documentation Links
documentation:
# Useful links
links:
noble_docs: "https://docs.noble.xyz"
sonr_docs: "https://docs.sonr.io"
ibc_docs: "https://ibc.cosmos.network"
dex_module: "https://github.com/sonr-io/sonr/tree/master/x/dex"
# Known issues
known_issues:
- "ICA channel handshake can take 1-2 minutes"
- "First swap may timeout if pools are not initialized"
- "USDC attestation required for Noble testnet"
# Troubleshooting
troubleshooting:
connection_failed: "Verify IBC connection is established: snrd query ibc connection end <connection-id>"
account_pending: "Wait for ICA channel handshake to complete (1-2 minutes)"
insufficient_funds: "Fund test account: snrd tx bank send validator <address> 100000000usnr"
+260
View File
@@ -0,0 +1,260 @@
package usdcswapdid
import (
"context"
"fmt"
"time"
"github.com/sonr-io/sonr/test/e2e/utils"
dextypes "github.com/sonr-io/sonr/x/dex/types"
didtypes "github.com/sonr-io/sonr/x/did/types"
)
// CreateTestDID creates a DID document for testing
// Returns the created DID document or error
// Note: For E2E tests, DIDs should be created using CLI commands before running tests
// This function checks if the DID exists and returns it, or returns instructions to create it
func CreateTestDID(ctx context.Context, cfg *utils.TestConfig, account, didID string) (*didtypes.DIDDocument, error) {
// Check if DID already exists
existing, err := QueryDID(ctx, cfg, didID)
if err == nil && existing != nil {
return existing, nil
}
// DID doesn't exist - return error with instructions
return nil, fmt.Errorf("DID %s not found. Create it using CLI:\n"+
" snrd tx did create-did %s --from %s --chain-id %s --yes",
didID, didID, account, cfg.ChainID)
}
// QueryDID queries a DID document by ID
func QueryDID(ctx context.Context, cfg *utils.TestConfig, didID string) (*didtypes.DIDDocument, error) {
// Build query URL
url := fmt.Sprintf("%s/sonr/did/v1/did/%s", cfg.BaseURL, didID)
// Response structure
var response struct {
DidDocument *didtypes.DIDDocument `json:"did_document"`
}
// Make HTTP request
if err := cfg.Client.DoRequest(ctx, url, &response); err != nil {
return nil, fmt.Errorf("failed to query DID: %w", err)
}
return response.DidDocument, nil
}
// QueryDEXAccount queries a DEX account by DID and connection ID
func QueryDEXAccount(ctx context.Context, cfg *utils.TestConfig, didID, connectionID string) (*dextypes.InterchainDEXAccount, error) {
// Build query URL
url := fmt.Sprintf("%s/sonr/dex/v1/account/%s/%s", cfg.BaseURL, didID, connectionID)
// Response structure
var response struct {
Account *dextypes.InterchainDEXAccount `json:"account"`
}
// Make HTTP request
if err := cfg.Client.DoRequest(ctx, url, &response); err != nil {
return nil, fmt.Errorf("failed to query DEX account: %w", err)
}
return response.Account, nil
}
// QueryDEXHistory queries transaction history for a DID
func QueryDEXHistory(ctx context.Context, cfg *utils.TestConfig, didID string) ([]*dextypes.DEXActivity, error) {
// Build query URL
url := fmt.Sprintf("%s/sonr/dex/v1/history/%s", cfg.BaseURL, didID)
// Response structure
var response struct {
History []*dextypes.DEXActivity `json:"history"`
}
// Make HTTP request
if err := cfg.Client.DoRequest(ctx, url, &response); err != nil {
return nil, fmt.Errorf("failed to query DEX history: %w", err)
}
return response.History, nil
}
// QueryAllDEXAccounts queries all DEX accounts
func QueryAllDEXAccounts(ctx context.Context, cfg *utils.TestConfig) ([]*dextypes.InterchainDEXAccount, error) {
// Build query URL
url := fmt.Sprintf("%s/sonr/dex/v1/accounts", cfg.BaseURL)
// Response structure
var response struct {
Accounts []*dextypes.InterchainDEXAccount `json:"accounts"`
}
// Make HTTP request
if err := cfg.Client.DoRequest(ctx, url, &response); err != nil {
return nil, fmt.Errorf("failed to query all DEX accounts: %w", err)
}
return response.Accounts, nil
}
// WaitForDEXAccountActivation waits for a DEX account to become active
// Returns true if account is active, false if timeout
func WaitForDEXAccountActivation(ctx context.Context, cfg *utils.TestConfig, didID, connectionID string, timeout time.Duration) (bool, error) {
deadline := time.Now().Add(timeout)
for time.Now().Before(deadline) {
account, err := QueryDEXAccount(ctx, cfg, didID, connectionID)
if err != nil {
// Account not found yet, continue waiting
time.Sleep(cfg.BlockTime)
continue
}
if account.Status == dextypes.ACCOUNT_STATUS_ACTIVE {
return true, nil
}
// Check for failed status
if account.Status == dextypes.ACCOUNT_STATUS_FAILED {
return false, fmt.Errorf("DEX account activation failed")
}
time.Sleep(cfg.BlockTime)
}
return false, fmt.Errorf("timeout waiting for account activation")
}
// VerifyICAAccountAddress verifies that an ICA account has been created
func VerifyICAAccountAddress(ctx context.Context, cfg *utils.TestConfig, didID, connectionID string) (string, error) {
account, err := QueryDEXAccount(ctx, cfg, didID, connectionID)
if err != nil {
return "", fmt.Errorf("failed to query DEX account: %w", err)
}
if account.AccountAddress == "" {
return "", fmt.Errorf("ICA account address not yet assigned")
}
return account.AccountAddress, nil
}
// ValidateSwapParameters validates swap parameters before execution
func ValidateSwapParameters(sourceDenom, targetDenom string, amount, minOut int64) error {
if sourceDenom == "" {
return fmt.Errorf("source denom cannot be empty")
}
if targetDenom == "" {
return fmt.Errorf("target denom cannot be empty")
}
if sourceDenom == targetDenom {
return fmt.Errorf("source and target denoms must be different")
}
if amount <= 0 {
return fmt.Errorf("swap amount must be positive")
}
if minOut < 0 {
return fmt.Errorf("min output cannot be negative")
}
if minOut > amount {
return fmt.Errorf("min output cannot exceed input amount (unless exchange rate > 1)")
}
return nil
}
// CalculateMinimumOutput calculates minimum output based on slippage tolerance
// slippagePct should be between 0 and 100 (e.g., 5 for 5% slippage)
func CalculateMinimumOutput(inputAmount int64, slippagePct float64) int64 {
if slippagePct < 0 {
slippagePct = 0
}
if slippagePct > 100 {
slippagePct = 100
}
multiplier := (100 - slippagePct) / 100
return int64(float64(inputAmount) * multiplier)
}
// FormatUSDCAmount formats a USDC amount for display
// USDC has 6 decimals, so 1000000 = 1.000000 USDC
func FormatUSDCAmount(amount int64) string {
whole := amount / 1_000_000
fractional := amount % 1_000_000
return fmt.Sprintf("%d.%06d USDC", whole, fractional)
}
// FormatSNRAmount formats a SNR amount for display
// SNR has 6 decimals (usnr), so 1000000 = 1.000000 SNR
func FormatSNRAmount(amount int64) string {
whole := amount / 1_000_000
fractional := amount % 1_000_000
return fmt.Sprintf("%d.%06d SNR", whole, fractional)
}
// ParseIBCDenom parses an IBC denom to extract the base denom
// IBC denoms have format: ibc/HASH
func ParseIBCDenom(ibcDenom string) (hash string, isIBC bool) {
if len(ibcDenom) > 4 && ibcDenom[:4] == "ibc/" {
return ibcDenom[4:], true
}
return ibcDenom, false
}
// BuildNobleIBCDenom builds the IBC denom for Noble USDC on Sonr chain
// This requires knowing the IBC channel from Noble to Sonr
func BuildNobleIBCDenom(channelID string) string {
// In actual implementation, this would use IBC denom trace hashing
// For now, return a placeholder
return fmt.Sprintf("ibc/noble_usdc_via_%s", channelID)
}
// ExtractSwapEventData extracts relevant data from a swap event
type SwapEventData struct {
DID string
ConnectionID string
SourceDenom string
TargetDenom string
Amount string
MinAmountOut string
Sequence string
SwapType string
ICAAddress string
}
// ParseSwapEvent parses a swap event from transaction logs
func ParseSwapEvent(events []interface{}) (*SwapEventData, error) {
// This would parse the actual event structure from the transaction
// For now, return a placeholder
return &SwapEventData{}, fmt.Errorf("event parsing not yet implemented")
}
// VerifyNobleConnection verifies that a Noble IBC connection exists
func VerifyNobleConnection(ctx context.Context, cfg *utils.TestConfig, connectionID string) error {
// Build query URL for connection
url := fmt.Sprintf("%s/ibc/core/connection/v1/connections/%s", cfg.BaseURL, connectionID)
var response struct {
Connection struct {
State string `json:"state"`
} `json:"connection"`
}
if err := cfg.Client.DoRequest(ctx, url, &response); err != nil {
return fmt.Errorf("failed to query connection: %w", err)
}
if response.Connection.State != "STATE_OPEN" {
return fmt.Errorf("connection is not open: %s", response.Connection.State)
}
return nil
}
+278
View File
@@ -0,0 +1,278 @@
#!/bin/bash
# USDC Swap E2E Test Setup Script
# This script helps set up the environment for USDC swap E2E tests
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Configuration
SONR_RPC="${SONR_RPC:-http://localhost:26657}"
SONR_REST="${SONR_REST:-http://localhost:1317}"
FAUCET_URL="${FAUCET_URL:-http://localhost:8000}"
NOBLE_CONNECTION="${NOBLE_CONNECTION:-connection-0}"
echo -e "${BLUE}=== USDC Swap E2E Test Setup ===${NC}\n"
# Function to print status
print_status() {
echo -e "${GREEN}${NC} $1"
}
print_warning() {
echo -e "${YELLOW}${NC} $1"
}
print_error() {
echo -e "${RED}${NC} $1"
}
# Function to check if command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Step 1: Check prerequisites
echo -e "${BLUE}Step 1: Checking prerequisites...${NC}"
if ! command_exists go; then
print_error "Go is not installed. Please install Go 1.21 or later."
exit 1
fi
print_status "Go installed: $(go version | awk '{print $3}')"
if ! command_exists snrd; then
print_error "snrd is not installed. Please install Sonr daemon."
exit 1
fi
print_status "snrd installed"
if ! command_exists jq; then
print_warning "jq is not installed. Some features may not work. Install with: brew install jq"
else
print_status "jq installed"
fi
if ! command_exists curl; then
print_error "curl is not installed."
exit 1
fi
print_status "curl installed"
echo ""
# Step 2: Check network status
echo -e "${BLUE}Step 2: Checking network status...${NC}"
if curl -s "${SONR_REST}/cosmos/base/tendermint/v1beta1/node_info" >/dev/null 2>&1; then
CHAIN_ID=$(curl -s "${SONR_REST}/cosmos/base/tendermint/v1beta1/node_info" | jq -r '.default_node_info.network')
print_status "Sonr testnet is running (Chain ID: $CHAIN_ID)"
else
print_error "Sonr testnet is not accessible at ${SONR_REST}"
echo " Start testnet with: make testnet"
exit 1
fi
if curl -s "${FAUCET_URL}/health" >/dev/null 2>&1; then
print_status "Faucet is running"
else
print_warning "Faucet is not accessible. Tests may fail without funded accounts."
fi
echo ""
# Step 3: Check IBC connections
echo -e "${BLUE}Step 3: Checking IBC connections...${NC}"
CONNECTIONS=$(snrd query ibc connection connections --node ${SONR_RPC} --output json 2>/dev/null | jq -r '.connections // [] | length')
if [ "$CONNECTIONS" -eq 0 ]; then
print_warning "No IBC connections found"
echo " You need to establish a connection to Noble testnet"
echo " This typically requires:"
echo " 1. Setting up an IBC relayer"
echo " 2. Creating a client on each chain"
echo " 3. Creating a connection"
echo ""
echo " For testing without Noble, some tests will be skipped."
else
print_status "Found $CONNECTIONS IBC connection(s)"
# Check for Noble connection
if snrd query ibc connection end "$NOBLE_CONNECTION" --node ${SONR_RPC} --output json 2>/dev/null | jq -e '.connection.state == "STATE_OPEN"' >/dev/null; then
print_status "Noble connection ($NOBLE_CONNECTION) is OPEN"
else
print_warning "Noble connection ($NOBLE_CONNECTION) not found or not open"
echo " Update NOBLE_CONNECTION in config or create the connection"
fi
fi
echo ""
# Step 4: Check IBC channels
echo -e "${BLUE}Step 4: Checking IBC channels...${NC}"
CHANNELS=$(snrd query ibc channel channels --node ${SONR_RPC} --output json 2>/dev/null | jq -r '.channels // [] | length')
if [ "$CHANNELS" -eq 0 ]; then
print_warning "No IBC channels found"
else
print_status "Found $CHANNELS IBC channel(s)"
# List channels
if command_exists jq; then
echo " Channels:"
snrd query ibc channel channels --node ${SONR_RPC} --output json 2>/dev/null | \
jq -r '.channels[] | " \(.port_id)/\(.channel_id): \(.state)"'
fi
fi
echo ""
# Step 5: Check DEX module
echo -e "${BLUE}Step 5: Checking DEX module...${NC}"
if snrd query dex params --node ${SONR_RPC} --output json 2>/dev/null | jq -e '.params.enabled == true' >/dev/null; then
print_status "DEX module is enabled"
if command_exists jq; then
MAX_ACCOUNTS=$(snrd query dex params --node ${SONR_RPC} --output json 2>/dev/null | jq -r '.params.max_accounts_per_did // "N/A"')
echo " Max accounts per DID: $MAX_ACCOUNTS"
fi
else
print_error "DEX module is not enabled"
exit 1
fi
echo ""
# Step 6: Check DID module
echo -e "${BLUE}Step 6: Checking DID module...${NC}"
if snrd query did params --node ${SONR_RPC} 2>/dev/null >/dev/null; then
print_status "DID module is available"
else
print_warning "DID module query failed (module may not be enabled)"
fi
echo ""
# Step 7: Create test configuration
echo -e "${BLUE}Step 7: Setting up test configuration...${NC}"
if [ ! -f "config.yaml" ]; then
if [ -f "config.example.yaml" ]; then
cp config.example.yaml config.yaml
# Update connection ID if different from default
if [ -n "$NOBLE_CONNECTION" ]; then
sed -i.bak "s/connection-0/$NOBLE_CONNECTION/g" config.yaml
rm -f config.yaml.bak
fi
print_status "Created config.yaml from example"
echo " Review and update config.yaml with your connection details"
else
print_warning "config.example.yaml not found"
fi
else
print_status "config.yaml already exists"
fi
echo ""
# Step 8: Install test dependencies
echo -e "${BLUE}Step 8: Installing test dependencies...${NC}"
if go mod download 2>/dev/null; then
print_status "Downloaded Go dependencies"
else
print_warning "Failed to download dependencies (may already be cached)"
fi
echo ""
# Step 9: Fund test accounts (optional)
echo -e "${BLUE}Step 9: Test account setup...${NC}"
read -p "Do you want to create and fund a test account? (y/N) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
# Generate test account
TEST_ACCOUNT=$(snrd keys add test_e2e_user --keyring-backend test --output json 2>/dev/null | jq -r '.address' || echo "")
if [ -n "$TEST_ACCOUNT" ]; then
print_status "Created test account: $TEST_ACCOUNT"
# Try to fund via faucet
if curl -s "${FAUCET_URL}/health" >/dev/null 2>&1; then
FUND_RESPONSE=$(curl -s -X POST "${FAUCET_URL}/credit" \
-H "Content-Type: application/json" \
-d "{\"address\":\"$TEST_ACCOUNT\",\"denom\":\"snr\"}" || echo "")
if echo "$FUND_RESPONSE" | grep -q "success"; then
print_status "Funded test account with SNR tokens"
else
print_warning "Failed to fund account via faucet"
echo " Fund manually with: snrd tx bank send validator $TEST_ACCOUNT 100000000usnr"
fi
fi
else
print_warning "Failed to create test account"
fi
fi
echo ""
# Step 10: Run quick verification
echo -e "${BLUE}Step 10: Running quick verification...${NC}"
if make check-prereqs 2>/dev/null; then
print_status "All prerequisites verified"
else
print_warning "Some verification checks failed"
fi
echo ""
# Final summary
echo -e "${BLUE}=== Setup Complete ===${NC}\n"
echo "Environment Summary:"
echo " Sonr RPC: $SONR_RPC"
echo " Sonr REST: $SONR_REST"
echo " Faucet: $FAUCET_URL"
echo " Chain ID: $CHAIN_ID"
echo " IBC Connections: $CONNECTIONS"
echo " IBC Channels: $CHANNELS"
echo ""
echo "Next steps:"
echo " 1. Review and update config.yaml if needed"
echo " 2. Ensure Noble IBC connection is established"
echo " 3. Run tests with: make test"
echo ""
echo "Useful commands:"
echo " make test - Run all tests"
echo " make test-verbose - Run with detailed output"
echo " make check-ibc - Check IBC status"
echo " make help - Show all available commands"
echo ""
# Check if ready to run tests
if [ "$CONNECTIONS" -gt 0 ] && [ "$CHANNELS" -gt 0 ]; then
echo -e "${GREEN}✓ System appears ready for E2E tests!${NC}"
echo ""
read -p "Run tests now? (y/N) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo ""
make test
fi
else
echo -e "${YELLOW}⚠ IBC setup incomplete. Some tests may be skipped.${NC}"
echo " Set up IBC connections to Noble for full test coverage."
fi
+531
View File
@@ -0,0 +1,531 @@
package usdcswapdid
/*
USDC Swap E2E Tests - Implementation Notes
CURRENT STATUS:
These E2E tests are structured and ready but require manual setup steps before execution.
LIMITATION:
The test framework currently lacks full transaction signing/broadcasting capability.
The SignAndBroadcastTx method in StarshipClient is a placeholder that requires proper
keyring integration to function.
MANUAL SETUP REQUIRED:
Before running these tests, you must manually create the test resources using the CLI:
1. Create Test DID:
snrd tx did create-did did:snr:test_<timestamp> --from <account> --chain-id sonrtest_1-1 --yes
2. Register DEX Account:
snrd tx dex register-account did:snr:test_<timestamp> connection-noble \
--features swap,liquidity --from <account> --chain-id sonrtest_1-1 --yes
3. Wait for ICA channel handshake (1-2 minutes)
4. Execute Swaps:
snrd tx dex execute-swap did:snr:test_<timestamp> connection-noble \
usnr uusdc 1000000 950000 --from <account> --chain-id sonrtest_1-1 --yes
ALTERNATIVE APPROACH:
For automated E2E testing, consider:
- Using the setup.sh script to prepare the environment
- Implementing a test helper that shells out to the CLI
- Integrating with cosmos-sdk/testutil for full transaction support
- Using a dedicated test keyring with pre-configured keys
See README.md for detailed setup instructions and troubleshooting.
*/
import (
"context"
"fmt"
"testing"
"time"
"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
"github.com/sonr-io/sonr/test/e2e/utils"
dextypes "github.com/sonr-io/sonr/x/dex/types"
didtypes "github.com/sonr-io/sonr/x/did/types"
)
const (
// Noble testnet configuration
NobleChainID = "noble-grand-1"
NobleConnectionID = "connection-noble" // Update with actual connection ID
NobleUSDCDenom = "uusdc"
// Test amounts (USDC has 6 decimals like native USDC)
USDCTestAmount = 1_000_000 // 1 USDC
USDCSwapAmount = 5_000_000 // 5 USDC
SNRTestAmount = 10_000_000 // 10 SNR
SNRSwapAmount = 1_000_000 // 1 SNR
// Slippage tolerance (5%)
SlippageTolerance = 0.05
)
// USDCSwapTestSuite is the main test suite for USDC swap functionality
type USDCSwapTestSuite struct {
suite.Suite
cfg *utils.TestConfig
ctx context.Context
cancel context.CancelFunc
testDID string
testAccount string
}
// SetupSuite runs once before all tests
func (s *USDCSwapTestSuite) SetupSuite() {
s.cfg = utils.NewTestConfig()
s.ctx, s.cancel = context.WithTimeout(context.Background(), 5*time.Minute)
// Setup test account
users := utils.SetupTestUsers(s.T(), s.cfg, math.NewInt(SNRTestAmount))
require.Len(s.T(), users, 1, "should create at least one test user")
s.testAccount = users[0].Address
s.T().Logf("Test suite initialized with account: %s", s.testAccount)
}
// TearDownSuite runs once after all tests
func (s *USDCSwapTestSuite) TearDownSuite() {
if s.cancel != nil {
s.cancel()
}
}
// SetupTest runs before each test
func (s *USDCSwapTestSuite) SetupTest() {
// Create unique DID for each test
s.testDID = fmt.Sprintf("did:snr:test_%d", time.Now().UnixNano())
s.T().Logf("Created test DID: %s", s.testDID)
}
// TestUSDCSwapE2E is the main end-to-end test function
func TestUSDCSwapE2E(t *testing.T) {
suite.Run(t, new(USDCSwapTestSuite))
}
// Test01_VerifyNobleConfiguration verifies Noble chain configuration
func (s *USDCSwapTestSuite) Test01_VerifyNobleConfiguration() {
s.T().Log("=== Test 01: Verify Noble Configuration ===")
// Verify Noble configuration constants
require.Equal(s.T(), NobleChainID, dextypes.NobleTestnetChainID,
"Noble chain ID should match")
require.Equal(s.T(), NobleUSDCDenom, dextypes.NobleUSDCDenom,
"USDC denom should match")
require.Equal(s.T(), uint8(6), dextypes.NobleUSDCDecimals,
"USDC decimals should be 6")
// Verify Noble is recognized as a Noble chain
require.True(s.T(), dextypes.IsNobleChain(NobleChainID),
"Noble testnet chain ID should be recognized")
s.T().Log("✓ Noble configuration verified successfully")
}
// Test02_CreateDIDDocument creates a DID document for testing
func (s *USDCSwapTestSuite) Test02_CreateDIDDocument() {
s.T().Log("=== Test 02: Create DID Document ===")
// Create DID document
did, err := CreateTestDID(s.ctx, s.cfg, s.testAccount, s.testDID)
require.NoError(s.T(), err, "failed to create DID document")
require.NotNil(s.T(), did, "DID document should not be nil")
require.Equal(s.T(), s.testDID, did.Id, "DID ID should match")
s.T().Logf("✓ DID document created: %s", did.Id)
// Verify DID can be queried
queriedDID, err := QueryDID(s.ctx, s.cfg, s.testDID)
require.NoError(s.T(), err, "failed to query DID")
require.NotNil(s.T(), queriedDID, "queried DID should not be nil")
require.Equal(s.T(), s.testDID, queriedDID.Id, "queried DID should match")
s.T().Log("✓ DID query verification successful")
}
// Test03_RegisterDEXAccount registers a DEX account on Noble connection
func (s *USDCSwapTestSuite) Test03_RegisterDEXAccount() {
s.T().Log("=== Test 03: Register DEX Account ===")
// First create DID
_, err := CreateTestDID(s.ctx, s.cfg, s.testAccount, s.testDID)
require.NoError(s.T(), err, "failed to create DID")
// Register DEX account
msg := &dextypes.MsgRegisterDEXAccount{
Did: s.testDID,
ConnectionId: NobleConnectionID,
Features: []string{"swap", "liquidity"},
Metadata: "Noble USDC swap test account",
}
txResp, err := s.cfg.Client.SignAndBroadcastTx(s.ctx, s.testAccount, msg)
require.NoError(s.T(), err, "failed to register DEX account")
require.Equal(s.T(), uint32(0), txResp.Code, "transaction should succeed")
s.T().Logf("✓ DEX account registered, tx hash: %s", txResp.TxHash)
// Wait for account activation
time.Sleep(2 * s.cfg.BlockTime)
// Query the created account
account, err := QueryDEXAccount(s.ctx, s.cfg, s.testDID, NobleConnectionID)
require.NoError(s.T(), err, "failed to query DEX account")
require.NotNil(s.T(), account, "DEX account should exist")
require.Equal(s.T(), s.testDID, account.Did, "DID should match")
require.Equal(s.T(), NobleConnectionID, account.ConnectionId, "connection should match")
// Account may be pending if ICA channel is not yet established
s.T().Logf("✓ DEX account status: %s", account.Status.String())
s.T().Logf("✓ ICA port ID: %s", account.PortId)
if account.AccountAddress != "" {
s.T().Logf("✓ ICA address: %s", account.AccountAddress)
} else {
s.T().Log("⚠ ICA address pending (channel handshake may be in progress)")
}
}
// Test04_ExecuteUSDCSwap_SNRToUSDC tests swapping SNR to USDC
func (s *USDCSwapTestSuite) Test04_ExecuteUSDCSwap_SNRToUSDC() {
s.T().Log("=== Test 04: Execute USDC Swap (SNR → USDC) ===")
// Setup: Create DID and register DEX account
s.setupDEXAccount()
// Get initial balances
initialSNR := s.getBalance(s.testAccount, s.cfg.StakingDenom)
s.T().Logf("Initial SNR balance: %s", initialSNR.String())
// Calculate expected output (95% of input for 5% slippage)
swapAmount := math.NewInt(SNRSwapAmount)
minUSDCOut := math.NewInt(SNRSwapAmount).
MulRaw(95).QuoRaw(100) // 5% slippage tolerance
// Execute swap
swapMsg := &dextypes.MsgExecuteSwap{
Did: s.testDID,
ConnectionId: NobleConnectionID,
SourceDenom: s.cfg.StakingDenom,
TargetDenom: NobleUSDCDenom,
Amount: swapAmount,
MinAmountOut: minUSDCOut,
Route: fmt.Sprintf("noble:%s", NobleConnectionID),
Timeout: time.Now().Add(60 * time.Second),
}
txResp, err := s.cfg.Client.SignAndBroadcastTx(s.ctx, s.testAccount, swapMsg)
require.NoError(s.T(), err, "failed to execute swap")
require.Equal(s.T(), uint32(0), txResp.Code, "swap transaction should succeed")
s.T().Logf("✓ Swap transaction broadcasted, tx hash: %s", txResp.TxHash)
// Verify swap event was emitted
s.verifySwapEvent(txResp.TxHash, s.testDID, NobleConnectionID)
// Note: In a real IBC swap, we would need to wait for ICA callback
// and verify balances on both chains. For this test, we verify the
// transaction was accepted and properly formatted.
s.T().Log("✓ Swap execution test completed")
}
// Test05_ExecuteUSDCSwap_USDCToSNR tests swapping USDC to SNR
func (s *USDCSwapTestSuite) Test05_ExecuteUSDCSwap_USDCToSNR() {
s.T().Log("=== Test 05: Execute USDC Swap (USDC → SNR) ===")
// Setup: Create DID and register DEX account
s.setupDEXAccount()
// Calculate expected output
swapAmount := math.NewInt(USDCSwapAmount)
minSNROut := math.NewInt(USDCSwapAmount).
MulRaw(95).QuoRaw(100) // 5% slippage tolerance
// Execute swap
swapMsg := &dextypes.MsgExecuteSwap{
Did: s.testDID,
ConnectionId: NobleConnectionID,
SourceDenom: NobleUSDCDenom,
TargetDenom: s.cfg.StakingDenom,
Amount: swapAmount,
MinAmountOut: minSNROut,
Route: fmt.Sprintf("noble:%s", NobleConnectionID),
Timeout: time.Now().Add(60 * time.Second),
}
txResp, err := s.cfg.Client.SignAndBroadcastTx(s.ctx, s.testAccount, swapMsg)
require.NoError(s.T(), err, "failed to execute swap")
require.Equal(s.T(), uint32(0), txResp.Code, "swap transaction should succeed")
s.T().Logf("✓ Swap transaction broadcasted, tx hash: %s", txResp.TxHash)
// Verify swap event
s.verifySwapEvent(txResp.TxHash, s.testDID, NobleConnectionID)
s.T().Log("✓ Reverse swap execution test completed")
}
// Test06_SwapWithInvalidParameters tests swap with invalid parameters
func (s *USDCSwapTestSuite) Test06_SwapWithInvalidParameters() {
s.T().Log("=== Test 06: Swap With Invalid Parameters ===")
// Setup: Create DID and register DEX account
s.setupDEXAccount()
testCases := []struct {
name string
msg *dextypes.MsgExecuteSwap
expectedErr bool
description string
}{
{
name: "zero_amount",
msg: &dextypes.MsgExecuteSwap{
Did: s.testDID,
ConnectionId: NobleConnectionID,
SourceDenom: s.cfg.StakingDenom,
TargetDenom: NobleUSDCDenom,
Amount: math.ZeroInt(),
MinAmountOut: math.NewInt(1000),
Timeout: time.Now().Add(60 * time.Second),
},
expectedErr: true,
description: "swap with zero amount should fail",
},
{
name: "same_denom",
msg: &dextypes.MsgExecuteSwap{
Did: s.testDID,
ConnectionId: NobleConnectionID,
SourceDenom: s.cfg.StakingDenom,
TargetDenom: s.cfg.StakingDenom,
Amount: math.NewInt(1000),
MinAmountOut: math.NewInt(900),
Timeout: time.Now().Add(60 * time.Second),
},
expectedErr: true,
description: "swapping same denom should fail",
},
{
name: "negative_min_out",
msg: &dextypes.MsgExecuteSwap{
Did: s.testDID,
ConnectionId: NobleConnectionID,
SourceDenom: s.cfg.StakingDenom,
TargetDenom: NobleUSDCDenom,
Amount: math.NewInt(1000),
MinAmountOut: math.NewInt(-100),
Timeout: time.Now().Add(60 * time.Second),
},
expectedErr: true,
description: "negative min amount out should fail",
},
{
name: "invalid_connection",
msg: &dextypes.MsgExecuteSwap{
Did: s.testDID,
ConnectionId: "connection-invalid-999",
SourceDenom: s.cfg.StakingDenom,
TargetDenom: NobleUSDCDenom,
Amount: math.NewInt(1000),
MinAmountOut: math.NewInt(900),
Timeout: time.Now().Add(60 * time.Second),
},
expectedErr: true,
description: "invalid connection ID should fail",
},
}
for _, tc := range testCases {
s.T().Run(tc.name, func(t *testing.T) {
t.Logf("Testing: %s", tc.description)
txResp, err := s.cfg.Client.SignAndBroadcastTx(s.ctx, s.testAccount, tc.msg)
if tc.expectedErr {
// Transaction should either fail to broadcast or have non-zero code
if err == nil {
require.NotEqual(t, uint32(0), txResp.Code,
"transaction should fail with non-zero code")
t.Logf("✓ Transaction failed as expected with code: %d, log: %s",
txResp.Code, txResp.RawLog)
} else {
t.Logf("✓ Transaction failed as expected with error: %v", err)
}
} else {
require.NoError(t, err, "transaction should succeed")
require.Equal(t, uint32(0), txResp.Code, "transaction should have code 0")
}
})
}
s.T().Log("✓ Invalid parameter tests completed")
}
// Test07_SwapWithUCANPermission tests swap with UCAN authorization
func (s *USDCSwapTestSuite) Test07_SwapWithUCANPermission() {
s.T().Skip("UCAN integration requires full UCAN module setup")
s.T().Log("=== Test 07: Swap With UCAN Permission ===")
// Setup: Create DID and register DEX account
s.setupDEXAccount()
// TODO: Generate UCAN token with swap capabilities
// ucanToken := generateUCANToken(s.testDID, "swap", NobleConnectionID)
swapMsg := &dextypes.MsgExecuteSwap{
Did: s.testDID,
ConnectionId: NobleConnectionID,
SourceDenom: s.cfg.StakingDenom,
TargetDenom: NobleUSDCDenom,
Amount: math.NewInt(SNRSwapAmount),
MinAmountOut: math.NewInt(SNRSwapAmount * 95 / 100),
UcanToken: "", // Would be populated with actual token
Timeout: time.Now().Add(60 * time.Second),
}
txResp, err := s.cfg.Client.SignAndBroadcastTx(s.ctx, s.testAccount, swapMsg)
require.NoError(s.T(), err, "failed to execute swap with UCAN")
require.Equal(s.T(), uint32(0), txResp.Code, "swap with UCAN should succeed")
s.T().Log("✓ UCAN-authorized swap test completed")
}
// Test08_QueryDEXHistory queries transaction history
func (s *USDCSwapTestSuite) Test08_QueryDEXHistory() {
s.T().Log("=== Test 08: Query DEX History ===")
// Setup and execute a swap
s.setupDEXAccount()
s.executeTestSwap()
// Query DEX history
history, err := QueryDEXHistory(s.ctx, s.cfg, s.testDID)
require.NoError(s.T(), err, "failed to query DEX history")
if len(history) > 0 {
s.T().Logf("✓ Found %d transactions in history", len(history))
for i, activity := range history {
s.T().Logf(" [%d] Type: %s, Status: %s, Height: %d",
i+1, activity.Type, activity.Status, activity.BlockHeight)
}
} else {
s.T().Log("⚠ No history found (ICA may not be fully configured)")
}
}
// Test09_MultipleSwaps tests executing multiple swaps in sequence
func (s *USDCSwapTestSuite) Test09_MultipleSwaps() {
s.T().Log("=== Test 09: Multiple Sequential Swaps ===")
// Setup
s.setupDEXAccount()
numSwaps := 3
for i := 0; i < numSwaps; i++ {
s.T().Logf("Executing swap %d/%d", i+1, numSwaps)
swapMsg := &dextypes.MsgExecuteSwap{
Did: s.testDID,
ConnectionId: NobleConnectionID,
SourceDenom: s.cfg.StakingDenom,
TargetDenom: NobleUSDCDenom,
Amount: math.NewInt(100_000), // Small amounts for multiple swaps
MinAmountOut: math.NewInt(95_000),
Timeout: time.Now().Add(60 * time.Second),
}
txResp, err := s.cfg.Client.SignAndBroadcastTx(s.ctx, s.testAccount, swapMsg)
require.NoError(s.T(), err, "swap %d should succeed", i+1)
require.Equal(s.T(), uint32(0), txResp.Code, "swap %d should have code 0", i+1)
s.T().Logf("✓ Swap %d completed, tx: %s", i+1, txResp.TxHash)
// Small delay between swaps
time.Sleep(s.cfg.BlockTime)
}
s.T().Logf("✓ Successfully executed %d swaps", numSwaps)
}
// Helper Functions
func (s *USDCSwapTestSuite) setupDEXAccount() {
// Create DID if not exists
_, err := CreateTestDID(s.ctx, s.cfg, s.testAccount, s.testDID)
if err != nil {
// DID might already exist, check query
_, queryErr := QueryDID(s.ctx, s.cfg, s.testDID)
require.NoError(s.T(), queryErr, "DID should exist or be creatable")
}
// Register DEX account
msg := &dextypes.MsgRegisterDEXAccount{
Did: s.testDID,
ConnectionId: NobleConnectionID,
Features: []string{"swap"},
}
_, err = s.cfg.Client.SignAndBroadcastTx(s.ctx, s.testAccount, msg)
// Ignore error if account already exists
// Wait for registration
time.Sleep(2 * s.cfg.BlockTime)
}
func (s *USDCSwapTestSuite) executeTestSwap() {
swapMsg := &dextypes.MsgExecuteSwap{
Did: s.testDID,
ConnectionId: NobleConnectionID,
SourceDenom: s.cfg.StakingDenom,
TargetDenom: NobleUSDCDenom,
Amount: math.NewInt(SNRSwapAmount),
MinAmountOut: math.NewInt(SNRSwapAmount * 95 / 100),
Timeout: time.Now().Add(60 * time.Second),
}
txResp, err := s.cfg.Client.SignAndBroadcastTx(s.ctx, s.testAccount, swapMsg)
require.NoError(s.T(), err, "test swap should succeed")
require.Equal(s.T(), uint32(0), txResp.Code, "test swap should have code 0")
}
func (s *USDCSwapTestSuite) getBalance(address, denom string) math.Int {
balance, err := s.cfg.Client.GetBalance(s.ctx, address, denom)
require.NoError(s.T(), err, "should query balance")
return balance
}
func (s *USDCSwapTestSuite) verifySwapEvent(txHash, expectedDID, expectedConnection string) {
// Query events for the transaction
height, err := s.cfg.Client.GetLatestBlockHeight(s.ctx)
require.NoError(s.T(), err, "should get block height")
// Search for swap events
events, err := s.cfg.Client.QueryEventsByType(s.ctx,
dextypes.EventTypeSwapExecuted, height-10, height)
if err != nil || len(events.Events) == 0 {
s.T().Log("⚠ Swap event not found (may be indexed later)")
return
}
// Verify event contains expected attributes
for _, event := range events.Events {
for _, attr := range event.Attributes {
if attr.Key == "did" && attr.Value == expectedDID {
s.T().Logf("✓ Found swap event for DID: %s", expectedDID)
return
}
}
}
s.T().Log("⚠ Swap event attributes not yet indexed")
}
+31 -7
View File
@@ -75,9 +75,18 @@ func CmdRegisterDEXAccount() *cobra.Command {
// CmdExecuteSwap returns a command to execute a swap
func CmdExecuteSwap() *cobra.Command {
cmd := &cobra.Command{
Use: "swap [did] [connection-id] [token-in] [token-out-denom] [min-amount-out] [pool-id]",
Short: "Execute a token swap through ICA",
Args: cobra.ExactArgs(6),
Use: "swap [did] [connection-id] [token-in] [token-out-denom] [min-amount-out]",
Short: "Execute a token swap through ICA (supports Noble USDC)",
Long: `Execute a token swap on a remote chain via Interchain Accounts.
Examples:
# Swap 1000000 uatom for USDC on Noble testnet
snrd tx dex swap did:snr:user1 connection-0 1000000uatom uusdc 950000 --ucan-token="..." --timeout=60s
# Swap USDC for ATOM on Osmosis
snrd tx dex swap did:snr:user1 connection-1 1000000uusdc uatom 950000 --route="pool:1"
`,
Args: cobra.ExactArgs(5),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
@@ -99,9 +108,18 @@ func CmdExecuteSwap() *cobra.Command {
return fmt.Errorf("invalid min-amount-out: %s", args[4])
}
poolID, err := strconv.ParseUint(args[5], 10, 64)
if err != nil {
return fmt.Errorf("invalid pool-id: %w", err)
// Parse optional flags
ucanToken, _ := cmd.Flags().GetString("ucan-token")
route, _ := cmd.Flags().GetString("route")
timeoutStr, _ := cmd.Flags().GetString("timeout")
// Parse timeout duration
timeoutDuration := 30 * time.Second // default
if timeoutStr != "" {
timeoutDuration, err = time.ParseDuration(timeoutStr)
if err != nil {
return fmt.Errorf("invalid timeout: %w", err)
}
}
msg := &types.MsgExecuteSwap{
@@ -111,7 +129,9 @@ func CmdExecuteSwap() *cobra.Command {
TargetDenom: tokenOutDenom,
Amount: tokenIn.Amount,
MinAmountOut: minAmountOut,
Route: fmt.Sprintf("pool:%d", poolID),
Route: route,
UcanToken: ucanToken,
Timeout: time.Now().Add(timeoutDuration),
}
if err := msg.ValidateBasic(); err != nil {
@@ -122,6 +142,10 @@ func CmdExecuteSwap() *cobra.Command {
},
}
cmd.Flags().String("ucan-token", "", "UCAN authorization token for permission delegation")
cmd.Flags().String("route", "", "Optional specific swap route (e.g., 'pool:1' or 'noble:channel-0')")
cmd.Flags().String("timeout", "30s", "Timeout duration for the swap (e.g., '30s', '1m')")
flags.AddTxFlagsToCmd(cmd)
return cmd
}
+145 -21
View File
@@ -2,7 +2,10 @@ package keeper
import (
"context"
"fmt"
"time"
sdkerrors "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/sonr-io/sonr/x/dex/types"
)
@@ -52,23 +55,15 @@ func (ms msgServer) RegisterDEXAccount(
}, nil
}
// TODO: ExecuteSwap - Implement cross-chain swap execution via ICA
// This method should handle token swaps on remote chains through Interchain Accounts
// Required implementation steps:
// 1. Validate the sender's DID exists and is active using did keeper
// 2. Verify UCAN token has proper swap capabilities (resource: swap, action: execute)
// 3. Retrieve the ICA account for this DID and connection from state
// 4. Build the appropriate swap message for the target chain's DEX protocol
// 5. Create ICA packet data with the swap transaction
// 6. Send ICA packet through IBC channel and await acknowledgment
// 7. Store transaction details in DWN for user history tracking
// 8. Emit events for indexing and monitoring
// Returns: Sequence number and transaction ID on success
// ExecuteSwap implements types.MsgServer.
// ExecuteSwap implements cross-chain swap execution via ICA
// This method handles token swaps on remote chains through Interchain Accounts
// with special support for Noble USDC integration
func (ms msgServer) ExecuteSwap(
ctx context.Context,
msg *types.MsgExecuteSwap,
) (*types.MsgExecuteSwapResponse, error) {
sdkCtx := sdk.UnwrapSDKContext(ctx)
// Validate UCAN permission if token provided
if msg.UcanToken != "" {
// Use connection ID as resource ID for swap operations
@@ -77,13 +72,119 @@ func (ms msgServer) ExecuteSwap(
}
}
// TODO: Implement swap execution via ICA
// 1. Validate DID
// 2. Get ICA account for this DID and connection
// 3. Construct swap message for remote chain
// 4. Send ICA packet with swap instruction
// 5. Track transaction in DWN
return &types.MsgExecuteSwapResponse{}, nil
// 1. Validate DID exists and is active
_, err := ms.didKeeper.GetDIDDocument(sdkCtx, msg.Did)
if err != nil {
return nil, sdkerrors.Wrapf(err, "DID %s not found", msg.Did)
}
// Note: Active status check removed as DIDDocument may not have Active field
// If needed, add additional validation based on actual DID structure
// 2. Validate connection exists and is open
if err := ms.ValidateConnection(sdkCtx, msg.ConnectionId); err != nil {
return nil, sdkerrors.Wrapf(types.ErrInvalidConnection, "connection validation failed: %v", err)
}
// 3. Get or ensure ICA account exists
account, err := ms.GetDEXAccount(sdkCtx, msg.Did, msg.ConnectionId)
if err != nil {
// Account doesn't exist, return error - user must register first
return nil, sdkerrors.Wrapf(types.ErrAccountNotFound, "DEX account not found for DID %s on connection %s. Please register first.", msg.Did, msg.ConnectionId)
}
// Verify account is active
if account.Status != types.ACCOUNT_STATUS_ACTIVE {
return nil, sdkerrors.Wrapf(types.ErrAccountNotActive, "DEX account is not active (status: %s)", account.Status.String())
}
// 4. Validate swap parameters
tokenIn := sdk.NewCoin(msg.SourceDenom, msg.Amount)
if err := ms.ValidateSwapParameters(tokenIn, msg.TargetDenom, msg.MinAmountOut); err != nil {
return nil, sdkerrors.Wrapf(types.ErrInvalidSwapParams, "swap parameter validation failed: %v", err)
}
// 5. Build swap message for the target chain
// For Noble USDC swaps, we use IBC transfer
// For other DEX chains (like Osmosis), we build chain-specific swap messages
var swapMsgs []sdk.Msg
var swapType string
// Check if this is a Noble USDC swap
if types.IsNobleChain(account.HostChainId) || msg.SourceDenom == types.NobleUSDCDenom || msg.TargetDenom == types.NobleUSDCDenom {
// Build Noble-specific swap message (IBC transfer for USDC)
swapMsg, err := ms.BuildNobleSwapMsg(sdkCtx, account.AccountAddress, tokenIn, msg.TargetDenom, msg.MinAmountOut)
if err != nil {
return nil, sdkerrors.Wrapf(types.ErrSwapFailed, "failed to build Noble swap message: %v", err)
}
swapMsgs = []sdk.Msg{swapMsg}
swapType = "noble_usdc_swap"
} else {
// Build generic DEX swap message (e.g., Osmosis)
swapMsg := ms.BuildOsmosisSwapMsg(account.AccountAddress, 1, tokenIn, msg.TargetDenom, msg.MinAmountOut)
swapMsgs = []sdk.Msg{swapMsg}
swapType = "osmosis_swap"
}
// 6. Calculate timeout from message or use default
timeoutDuration := msg.Timeout.Sub(sdkCtx.BlockTime())
if timeoutDuration <= 0 {
timeoutDuration = 30 * time.Second // Default 30 second timeout
}
// 7. Send the swap transaction via ICA
sequence, err := ms.SendDEXTransaction(
sdkCtx,
msg.Did,
msg.ConnectionId,
swapMsgs,
fmt.Sprintf("swap_%s_%s_for_%s", swapType, msg.SourceDenom, msg.TargetDenom),
timeoutDuration,
)
if err != nil {
return nil, sdkerrors.Wrapf(types.ErrSwapFailed, "failed to send swap transaction via ICA: %v", err)
}
// 8. Track transaction in DWN if available
if ms.dwnKeeper != nil {
// Create swap activity record
activity := types.DEXActivity{
Type: "swap",
Did: msg.Did,
ConnectionId: msg.ConnectionId,
BlockHeight: sdkCtx.BlockHeight(),
Timestamp: sdkCtx.BlockTime(),
Status: "pending",
Amount: sdk.NewCoins(tokenIn),
}
// Store in DWN for user history (non-blocking)
if err := ms.storeActivityInDWN(sdkCtx, msg.Did, &activity); err != nil {
// Log but don't fail the transaction
ms.Logger(sdkCtx).Error("failed to store swap activity in DWN", "error", err, "did", msg.Did)
}
}
// 9. Emit swap event for indexing
sdkCtx.EventManager().EmitEvent(
sdk.NewEvent(
types.EventTypeSwapExecuted,
sdk.NewAttribute("did", msg.Did),
sdk.NewAttribute("connection_id", msg.ConnectionId),
sdk.NewAttribute("source_denom", msg.SourceDenom),
sdk.NewAttribute("target_denom", msg.TargetDenom),
sdk.NewAttribute("amount", msg.Amount.String()),
sdk.NewAttribute("min_amount_out", msg.MinAmountOut.String()),
sdk.NewAttribute("sequence", fmt.Sprintf("%d", sequence)),
sdk.NewAttribute("swap_type", swapType),
sdk.NewAttribute("ica_address", account.AccountAddress),
),
)
return &types.MsgExecuteSwapResponse{
TxHash: "", // Will be populated by ICA callback
AmountReceived: "", // Will be populated by ICA callback
Sequence: sequence,
}, nil
}
// validateUCANPermission validates UCAN token for a DEX operation
@@ -200,7 +301,7 @@ func (ms msgServer) CreateLimitOrder(
// 5. Check order status is still open (not filled or already cancelled)
// 6. Build order cancellation message for target chain's order book protocol
// 7. Create ICA packet data with the cancellation transaction
// 8. Send ICA packet through IBC channel and await acknowledgment
// 8. Send IBC packet through IBC channel and await acknowledgment
// 9. Update order status in local state to cancelled
// 10. Update order record in DWN with cancellation details
// Returns: Sequence number on successful cancellation
@@ -217,3 +318,26 @@ func (ms msgServer) CancelOrder(
// 5. Update order status in DWN
return &types.MsgCancelOrderResponse{}, nil
}
// storeActivityInDWN stores a DEX activity record in the DWN module
func (ms msgServer) storeActivityInDWN(ctx sdk.Context, did string, activity *types.DEXActivity) error {
// For now, this is a stub - actual implementation would interface with DWN keeper
// to store activity records in the user's decentralized web node
if ms.dwnKeeper == nil {
return nil
}
// TODO: Implement actual DWN storage logic
// This would involve:
// 1. Serializing the activity to JSON
// 2. Creating a DWN record with proper schema
// 3. Storing it in the user's vault
ms.Logger(ctx).Info("DEX activity tracked",
"did", did,
"type", activity.Type,
"status", activity.Status,
)
return nil
}
+115
View File
@@ -123,3 +123,118 @@ func (k Keeper) ValidateSwapParameters(
return nil
}
// BuildNobleSwapMsg builds a Noble-specific swap message using IBC transfer
// Noble swaps typically involve transferring USDC between chains via IBC
func (k Keeper) BuildNobleSwapMsg(
ctx sdk.Context,
senderAddress string,
tokenIn sdk.Coin,
tokenOutDenom string,
minAmountOut math.Int,
) (sdk.Msg, error) {
// Validate Noble swap parameters
params := types.NobleSwapParams{
InputDenom: tokenIn.Denom,
OutputDenom: tokenOutDenom,
Amount: tokenIn.Amount,
MinOutput: minAmountOut,
Receiver: senderAddress,
}
if err := params.Validate(); err != nil {
return nil, fmt.Errorf("invalid Noble swap params: %w", err)
}
// For Noble USDC, we primarily use IBC transfers
// In a full implementation, this would:
// 1. Determine the IBC channel to Noble
// 2. Build an IBC transfer message to send USDC
// 3. Include proper timeout and memo for swap routing
// For now, return a placeholder bank send message
// In production, this should be an IBC transfer message:
// transferMsg := &transfertypes.MsgTransfer{
// SourcePort: "transfer",
// SourceChannel: channelID,
// Token: tokenIn,
// Sender: senderAddress,
// Receiver: senderAddress,
// TimeoutHeight: clienttypes.NewHeight(0, 0),
// TimeoutTimestamp: uint64(ctx.BlockTime().Add(30 * time.Second).UnixNano()),
// Memo: fmt.Sprintf("swap:%s:%s", tokenOutDenom, minAmountOut.String()),
// }
return &banktypes.MsgSend{
FromAddress: senderAddress,
ToAddress: senderAddress,
Amount: sdk.NewCoins(tokenIn),
}, nil
}
// BuildSwapRoute determines the optimal swap route, potentially using USDC as intermediary
func (k Keeper) BuildSwapRoute(
ctx sdk.Context,
tokenInDenom string,
tokenOutDenom string,
connectionID string,
) ([]types.TradingPair, error) {
// Simple routing logic:
// 1. If either token is USDC, direct swap
// 2. Otherwise, route through USDC as intermediary
if tokenInDenom == types.NobleUSDCDenom || tokenOutDenom == types.NobleUSDCDenom {
// Direct swap
return []types.TradingPair{
{
Base: tokenInDenom,
Quote: tokenOutDenom,
Description: fmt.Sprintf("%s/%s direct", tokenInDenom, tokenOutDenom),
},
}, nil
}
// Route through USDC
return []types.TradingPair{
{
Base: tokenInDenom,
Quote: types.NobleUSDCDenom,
Description: fmt.Sprintf("%s/USDC", tokenInDenom),
},
{
Base: types.NobleUSDCDenom,
Quote: tokenOutDenom,
Description: fmt.Sprintf("USDC/%s", tokenOutDenom),
},
}, nil
}
// EstimateNobleSwapOutput estimates output for a Noble USDC swap
func (k Keeper) EstimateNobleSwapOutput(
ctx sdk.Context,
tokenIn sdk.Coin,
tokenOutDenom string,
) (math.Int, error) {
// In a full implementation, this would:
// 1. Query Noble chain for current exchange rates
// 2. Query any DEX pools for pricing
// 3. Calculate expected output accounting for fees
// For now, use a simple 1% fee model
estimatedOutput := tokenIn.Amount.MulRaw(99).QuoRaw(100)
return estimatedOutput, nil
}
// CalculateSwapSlippage calculates the slippage percentage for a swap
func (k Keeper) CalculateSwapSlippage(
expectedOutput math.Int,
minOutput math.Int,
) math.LegacyDec {
if expectedOutput.IsZero() {
return math.LegacyZeroDec()
}
slippage := math.LegacyNewDecFromInt(expectedOutput.Sub(minOutput)).Quo(math.LegacyNewDecFromInt(expectedOutput))
return slippage.Mul(math.LegacyNewDec(100)) // Convert to percentage
}
+4
View File
@@ -14,4 +14,8 @@ var (
ErrInvalidLiquidityParams = sdkerrors.Register(ModuleName, 9, "invalid liquidity parameters")
ErrInvalidOrderParams = sdkerrors.Register(ModuleName, 10, "invalid order parameters")
ErrICAOperationFailed = sdkerrors.Register(ModuleName, 11, "ICA operation failed")
ErrInvalidConnection = sdkerrors.Register(ModuleName, 12, "invalid IBC connection")
ErrSwapFailed = sdkerrors.Register(ModuleName, 13, "swap operation failed")
ErrLiquidityFailed = sdkerrors.Register(ModuleName, 14, "liquidity operation failed")
ErrOrderFailed = sdkerrors.Register(ModuleName, 15, "order operation failed")
)
+14 -13
View File
@@ -3,6 +3,7 @@ package types
import (
"fmt"
"cosmossdk.io/math"
sdk "github.com/cosmos/cosmos-sdk/types"
)
@@ -69,35 +70,35 @@ func ValidateNobleConnection(connectionID string, allowedConnections []string) e
// ConvertToUSDC converts an amount from base units to USDC representation
// For example: 1000000 base units = 1.000000 USDC
func ConvertToUSDC(amount sdk.Int) sdk.Dec {
func ConvertToUSDC(amount math.Int) math.LegacyDec {
// Convert to decimal and divide by 10^6
return sdk.NewDecFromInt(amount).QuoInt64(1000000)
return math.LegacyNewDecFromInt(amount).QuoInt64(1000000)
}
// ConvertFromUSDC converts USDC amount to base units
// For example: 1.5 USDC = 1500000 base units
func ConvertFromUSDC(usdcAmount sdk.Dec) sdk.Int {
func ConvertFromUSDC(usdcAmount math.LegacyDec) math.Int {
// Multiply by 10^6 and truncate to integer
return usdcAmount.MulInt64(1000000).TruncateInt()
}
// FormatUSDCAmount formats a USDC amount for display
// For example: 1500000 -> "1.500000 USDC"
func FormatUSDCAmount(amount sdk.Int) string {
func FormatUSDCAmount(amount math.Int) string {
usdcDec := ConvertToUSDC(amount)
return fmt.Sprintf("%s USDC", usdcDec.String())
}
// ParseUSDCAmount parses a string USDC amount to base units
// For example: "1.5" -> 1500000
func ParseUSDCAmount(amountStr string) (sdk.Int, error) {
usdcDec, err := sdk.NewDecFromStr(amountStr)
func ParseUSDCAmount(amountStr string) (math.Int, error) {
usdcDec, err := math.LegacyNewDecFromStr(amountStr)
if err != nil {
return sdk.ZeroInt(), fmt.Errorf("invalid USDC amount: %w", err)
return math.ZeroInt(), fmt.Errorf("invalid USDC amount: %w", err)
}
if usdcDec.IsNegative() {
return sdk.ZeroInt(), fmt.Errorf("USDC amount cannot be negative")
return math.ZeroInt(), fmt.Errorf("USDC amount cannot be negative")
}
return ConvertFromUSDC(usdcDec), nil
@@ -110,9 +111,9 @@ type NobleSwapParams struct {
// OutputDenom is the denomination being swapped to
OutputDenom string
// Amount is the input amount in base units
Amount sdk.Int
Amount math.Int
// MinOutput is the minimum output amount (slippage protection)
MinOutput sdk.Int
MinOutput math.Int
// Receiver is the address to receive the output tokens
Receiver string
}
@@ -156,11 +157,11 @@ type NobleLiquidityParams struct {
// Token1 is the second token denomination
Token1 string
// Amount0 is the amount of first token
Amount0 sdk.Int
Amount0 math.Int
// Amount1 is the amount of second token
Amount1 sdk.Int
Amount1 math.Int
// MinShares is the minimum LP shares to receive
MinShares sdk.Int
MinShares math.Int
}
// Validate performs basic validation on NobleLiquidityParams