Enhance Your Smart Contract Development with the Integration of LokiCode and BuildBear Sandbox.
This article was first published on the BuildBear website at https://www.buildbear.io/resources/guides-and-tutorials/loki_Code
We’re excited to announce the integration of BuildBear Sandboxes into LokiCode’s DevOps tool! Now, users can create private sandboxes across various blockchain networks directly from LokiCode, enjoying the manifold benefits of BuildBear Sandboxes for optimized Smart Contract Development and Testing.
PermalinkLokiCode
Lokicode simplifies Web3 development by enabling you to manage, compile, test, and deploy your smart contracts all in one place.
PermalinkBuildBear
BuildBear is a platform tailored for DApp development and testing. Developers gain the freedom to construct a personalized Private Sandbox (aka Testnets) across a variety of blockchain networks. The liberty to mint unlimited Native and ERC20 tokens, coupled with rapid transaction times on BuildBear under 3 seconds! Additionally, it provides a range of tools designed for real-time testing and debugging.
PermalinkWhy Choose LokiCode?
Effortless collaboration: Work seamlessly with your team, share progress in real-time, and keep sensitive data secure.
Unmatched efficiency: Import projects from GitHub, compile and deploy smart contracts with ease, and track every change effortlessly.
Reduced complexity: Ditch the days of managing multiple outdated tools. Lokicode centralizes everything you need for smooth development.
Cost-effective solution: Eliminate the need for expensive DevOps infrastructure and save valuable resources.
PermalinkWhy Pair BuildBear Sandbox with LokiCode ?
Public Testnets often come with challenges including slow transactions, lack of privacy, and cumbersome setup for Mainnet protocols. With BuildBear and LokiCode, you get:
Rapid Transactions: Transactions are 4x faster compared to public testnets.
Private Explorer: Your contract and transaction data remain confidential.
Instant Faucet Access: Quickly obtain native and popular ERC20 testnet tokens.
PermalinkDeploy Your First Contract to Your Private Sandbox with LokiCode
- Sign Up and Create a Project: Head over to https://www.lokicode.io/ and sign up.
2. Selecting a Project: Choose your project from your GitHub repositories.
To get started, we’ll need to connect your GitHub.
Choose the project you want to use from your repositories. Here is the repository we have used: BuildBearLabs/lokiCode-Tutorial
3. Deploying the Token Contract
- Click on the settings icon in the top right corner.
Select “Compile” to ensure the contract code is up to date.
Choose BuildBear as shown below.
Select the network from which you want to create the BuildBear sandbox as shown below.
Once the Sandbox is live, you will have the following options:
- Add to MetaMask: Use this option to add your sandbox network to your MetaMask wallet, allowing easy signing of transactions from your wallet to your private Sandbox.
- Open Faucet: Click “Open Faucet” to access your sandbox’s faucet. Here, you can freely mint both Native tokens (required for network gas fees) and popular ERC20 tokens.
Copy RPC: This is your Sandbox RPC, necessary for connecting your sandbox to other development tools such as Foundry and Hardhat. Simply copy and paste it into your project’s configuration file to deploy and interact with contracts on your Sandbox.
View Explorer: See all the transactions that have occurred, interact with deployed contracts, and even trace the execution of transactions to debug them.
Click “Deploy” and confirm the transaction in your wallet.
4. Exploring the Contract Functions
Once deployed, click the “Playground” tab. Here, you’ll see all the read-and-write functions available for the contract. Use them to interact with the contract’s state.
Open the explorer to view the contract deployment transaction on the BuildBear explorer.
PermalinkConclusion:
LokiCode, by integrating BuildBear, simplifies the deployment process and eliminates the need to accumulate Testnet tokens. It provides a private environment during the testing Phase. This not only saves time but also enhances collaboration across different networks and projects.
About BuildBear:
BuildBear is a platform for testing dApps at scale, for teams. It provides users with their own private Testnet to test their smart contracts and dApps, which can be forked from any EVM chain. It also provides a Faucet, Explorer, and RPC for testing purposes.
BuildBear aims to build an ecosystem of tools for testing dApps at scale for the teams.