← Back to home

HyperWallet

HyperWallet is a chain abstracted wallet powered by Hyperlane

Screenshots

HyperWallet screenshot 1
HyperWallet screenshot 2
HyperWallet screenshot 3
HyperWallet screenshot 4

Problem Statement

HyperWallet is a chain abstracted wallet that empowers users to interact with multiple blockchains using Interchain Accounts.Users only need to transaction on one chain but can manage assets and permissions across many chains. This enables easy onboarding of users to new chains especially as Hyperlane supports self-deployment on many L2s.Key FeaturesChain Abstraction: Interact with various blockchains without the need to manually switch networks or manage multiple wallets.Cross-Chain Transactions: Send and receive assets across different chains using cross-chain messaging protocols.User-Friendly Interface: UI that caters to both beginners and experienced users.Developer Integration: Easy integration for dApps, with support for popular tools like ViemUse CasesManaging Certificates and Attestations on Multiple ChainsIn a multichain paradigm, certain verifiers may prefer that your certificates and attestations exist and data be executable on a specific chain, rather than managed via crosschain message passing or bridging. Data availability on the same chain as other smart contracts, enables simpler implementation of on-chain logic. However, if multiple copies of the same certificate need to be updated or revoked on multiple chains, switching to each chain to perform the action would be cumbersomeExecuting a DeFi Strategy or Managing Staking Across Multiple ChainsAdvanced traders with portfolios and assets across multiple chains would benefit from the added simplicity, provenance, and traceability when executing a strategy or changing a stake on multiple chains.Chains Optimized for Wallet OperationsA single chain can be optimized for identity, wallets, and cross-chain connections, which ultimately attracts more developers to create a robust ecosystem for wallet innovation and tools.DAO Voting on Another or Multiple ChainsIt’s quite costly, if not impossible to migrate the approval logic of DAOs, however in many cases a DAO may exist on a different chain than the identity that wishes to vote.

Solution

We used a combination of existing tech from sponsors, industry standard libraries, and new innovations we quickly developed to power HyperWallet. The goal was to quickly get an MVP that can interact with any DApp on Scroll while relaying messages from an EOA on Binance Smart Chain using Hyperlane.Existing TechHyperlane Network & Contracts: Hyperlane Network connects many popular chains (in our demo we use BsC & Scroll). We used the new Interchain Accounts (https://docs.hyperlane.xyz/docs/reference/applications/interchain-account) contracts to enable users to manage wallets cross-chain.Viem: Modern web3 sdk. We adapter Hyperlane to work with this.Anvil: Employed for local testing of transactions and smart contracts, ensuring the reliability and robustness of the wallet's functionality. Helped debug the hyperlane CLI.New TechHyperlane Viem Interfaces: Simple ESM Compatible Artifacts for Hyperlane Contracts. Codegenerated with https://github.com/owlprotocol/hyper-wallet/tree/main/packages/hyperlane-contracts/src/codegenHyperlane Utils: Utils for computing Hyperlane ICA addresses. https://github.com/owlprotocol/hyper-wallet/blob/main/packages/hyperlane-contracts/src/InterchainAccountRouter.tsViem Wallet Actions: Custom wallet actions that mimic a viem wallet client https://viem.sh/docs/clients/wallet (similar to permissionless for AA). Extended to handle chain abstraction, compute addresses usingcreate2, and encode cross-chain transactions, making the wallet chain-agnostic and easy to use for developers and users. https://github.com/owlprotocol/hyper-wallet/tree/main/packages/hyperlane-contracts/src/actions/icaForked WalletConnect React Wallet V2: We forked this example and patched it to integrate our HyperWallet viem walletClient extension https://github.com/owlprotocol/hyper-wallet/blob/main/packages/react-wallet-v2/src/lib/EIP155ViemLib.ts

Hackathon

ETHGlobal Singapore

2024

Prizes

  • 🏆

    Best Use of Hyperlane

    Hyperlane

Contributors