$npx -y skills add keep-starknet-strange/starknet-agentic --skill huginn-onboardBridge to Starknet from any EVM chain and register with Huginn agent registry. Enables cross-chain agent onboarding with AVNU bridge integration.
| 1 | # Huginn Onboarding Skill |
| 2 | |
| 3 | **Goal**: Enable any agent on any EVM chain to onboard to Starknet and register |
| 4 | their identity with the HuginnRegistry. |
| 5 | |
| 6 | ## When to Use |
| 7 | |
| 8 | - Bridging an agent from an EVM chain to Starknet and registering it with Huginn. |
| 9 | - Standing up first-run onboarding flows that require funding, account deployment, and agent registration. |
| 10 | |
| 11 | ## When NOT to Use |
| 12 | |
| 13 | - Generic Starknet wallet management without Huginn registration. |
| 14 | - Cairo contract authoring, deployment-only runbooks, or security audits. |
| 15 | |
| 16 | Related modules: [skills catalog](../README.md). |
| 17 | |
| 18 | ## Prerequisites |
| 19 | |
| 20 | - Agent has ETH or USDC on source chain (Ethereum, Base, or Arbitrum) |
| 21 | - Agent can sign transactions |
| 22 | - Basic HTTP/RPC access |
| 23 | |
| 24 | ## Step 1: Bridge to Starknet |
| 25 | |
| 26 | Use AVNU bridge to transfer funds: |
| 27 | |
| 28 | ```bash |
| 29 | # Get bridge quote |
| 30 | curl -X POST "https://api.avnu.fi/v1/bridge/quote" \ |
| 31 | -H "Content-Type: application/json" \ |
| 32 | -d '{ |
| 33 | "fromChain": "ethereum", |
| 34 | "toChain": "starknet", |
| 35 | "fromToken": "ETH", |
| 36 | "toToken": "ETH", |
| 37 | "amount": "0.01", |
| 38 | "slippage": 0.5 |
| 39 | }' |
| 40 | |
| 41 | # Execute bridge transaction |
| 42 | # (Use response calldata with your signer) |
| 43 | ``` |
| 44 | |
| 45 | ## Step 2: Deploy Agent Account |
| 46 | |
| 47 | Deploy a Starknet account contract: |
| 48 | |
| 49 | ```bash |
| 50 | # Using starknet.js or similar |
| 51 | npx starknet-account deploy \ |
| 52 | --network mainnet \ |
| 53 | --implementation 0x... # Agent account class hash |
| 54 | ``` |
| 55 | |
| 56 | ## Step 3: Register with Huginn |
| 57 | |
| 58 | Call `HuginnRegistry.register_agent()`: |
| 59 | |
| 60 | ```typescript |
| 61 | import { Contract, Account } from "starknet"; |
| 62 | |
| 63 | const registry = new Contract( |
| 64 | HUGINN_ABI, |
| 65 | "0x...", // HuginnRegistry address |
| 66 | provider |
| 67 | ); |
| 68 | |
| 69 | // Register your agent |
| 70 | await registry.register_agent( |
| 71 | "MyAgent", // felt252 name |
| 72 | "ipfs://QmXXX" // metadata URL |
| 73 | ); |
| 74 | |
| 75 | // Emits OdinEye event - you're registered! |
| 76 | ``` |
| 77 | |
| 78 | ## Step 4: Log Your First Thought |
| 79 | |
| 80 | ```typescript |
| 81 | import { hash } from "starknet"; |
| 82 | |
| 83 | const thoughtHash = hash.starknetKeccak("Hello Starknet!"); |
| 84 | |
| 85 | await registry.log_thought(thoughtHash); |
| 86 | // Emits RavenFlight event - your thought is on-chain! |
| 87 | ``` |
| 88 | |
| 89 | ## Quick Start (Single Command) |
| 90 | |
| 91 | ```bash |
| 92 | curl -sSL https://raw.githubusercontent.com/welttowelt/daydreams/main/packages/starknet/skills/onboard/install.sh | bash -s -- \ |
| 93 | --source-chain ethereum \ |
| 94 | --amount 0.01 \ |
| 95 | --agent-name "MyAgent" \ |
| 96 | --metadata-url "ipfs://..." |
| 97 | ``` |
| 98 | |
| 99 | ## Contract Addresses |
| 100 | |
| 101 | ### Mainnet |
| 102 | |
| 103 | - HuginnRegistry: `0x...` (TODO: Deploy) |
| 104 | |
| 105 | ### Sepolia |
| 106 | |
| 107 | - HuginnRegistry: `0x...` (TODO: Deploy) |
| 108 | |
| 109 | ## Support |
| 110 | |
| 111 | - Docs: <https://github.com/welttowelt/daydreams/tree/main/packages/starknet> |
| 112 | - Issues: <https://github.com/welttowelt/daydreams/issues> |
| 113 | - Telegram: @Agentify_Starknet |