An npm library that provides hassle-free cross-chain token transfers in dapps. No more intensive dev work or deep blockchain knowledge needed. Simple UI for effortless transfers between blockchains. Secure & user-friendly cross-chain interactions with Axelar GMP.
Koinu is a npm library designed to streamline cross-chain token transfers in decentralized applications. By simply installing this library, developers can effortlessly incorporate a user-friendly box within their applications, enabling users to transfer tokens seamlessly between different blockchain networks.
Traditionally, implementing cross-chain functionality in dapps required significant development efforts and a deep understanding of various blockchain protocols. However, this npm library eliminates the need for developers to build their own cross-chain functionality from scratch. Instead, they can leverage this pre-built solution to provide a seamless cross-chain experience to their users.
One of the notable advantages of this library is that it significantly enhances the user experience of interacting with web3 applications. Users no longer need to navigate across different chains to determine which chain holds their funds. For instance, if a user wishes to purchase an NFT on the Optimism network but lacks sufficient ETH on that chain, they would typically have to search every chain to find where their funds reside. Furthermore, they would need to locate a secure cross-chain bridge to transfer their ETH to the desired chain. This process is often challenging, as many bridges are unreliable, potentially compromising the user's private keys.
With this npm library, such complexities are eliminated. Users can view their token balances on each chain directly within the application's interface. The library also offers a visually appealing and intuitive user interface, making cross-chain transfers seamless and secure. Notably, the library leverages Axelar Global Messaging Protocol (GMP) to ensure the utmost security during cross-chain operations.
Overall, users can remain on their current tab and seamlessly execute cross-chain transactions without the need to navigate multiple chains or search for secure cross-chain bridges. This simplifies the user experience, enhances security, and empowers developers to deliver robust cross-chain functionality within their dapps.
The smart contracts for the project was written with Solidity. I used Axelar's Solidity libraries and Axelar's general message passing technologies to callContractWithToken, or in other words, send funds from one chain to another, and deployed on Scroll and Mantle's testnets. The UI for the library was written in React and Typescript, and designed with Tailwindcss. Some functions such as gas estimates were done through Axelar's JS SDK. I used ethersjs to link the UI and the smart contracts. Due to time constraints, I didn't have time to package the UI into an npm library, however I created a demo site that demostrates the power of Koinu library.