- Scaffold Cosmos SDK chain with Ignite CLI (address prefix: claw, token: uclaw) - Implement x/privacy module with ZK UTXO shielded pool: - gnark Groth16 circuits (TransferCircuit: 2-in-2-out, UnshieldCircuit) - MiMC-based Merkle tree (depth 32) for commitment storage - Shield/Unshield/PrivateTransfer message handlers with proof verification - Nullifier double-spend prevention - On-chain Merkle tree state management - Implement x/agent module for AI agent identities: - Agent registration with pubkey, endpoint, name - Agent action logging with type validation - Query handlers for agent lookup - 26 passing tests covering full ZK proof lifecycle Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
475 B
Go
25 lines
475 B
Go
package keeper_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"clawchain/x/agent/types"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGenesis(t *testing.T) {
|
|
genesisState := types.GenesisState{
|
|
Params: types.DefaultParams(),
|
|
}
|
|
|
|
f := initFixture(t)
|
|
err := f.keeper.InitGenesis(f.ctx, genesisState)
|
|
require.NoError(t, err)
|
|
got, err := f.keeper.ExportGenesis(f.ctx)
|
|
require.NoError(t, err)
|
|
require.NotNil(t, got)
|
|
|
|
require.EqualExportedValues(t, genesisState.Params, got.Params)
|
|
}
|