Seamlessly Manage Your Deployed Contracts
The My Contracts
editor tool in Eidolon.Unity simplifies contract management, allowing you to effortlessly review and interact with your deployed smart contracts. This tool streamlines the process of creating contract managers and generating transaction scripts, making blockchain integration into your Unity project a breeze.
Key Features:
This specific tool streamlines the process of contract management:
- User-Friendly Interface: Easily review contract details, create managers, and generate transaction scripts.
- Script Generation: The tool generates script templates that make interacting with contracts in Unity straightforward.
- Contract Cleanup: Quickly remove contracts you no longer need, keeping your contract list organized.
Usage
1. Open the “My Contracts” Window
To open the My Contracts
window, follow these steps:
- Navigate to the
Eidolon
menu in the Unity Editor. - Select
My Contracts
and then click onManage Contracts.
2. Review Your Contracts
The My Contracts
window provides a user-friendly interface for reviewing your deployed contracts:
- Select a Contract: Choose a contract from the list to view its details.
- Contract Name: Displays the name of the selected contract.
- Contract Address: Shows the contract’s address on the blockchain.
- Contract Standard: Indicates the contract’s standard (e.g., ERC-20).
3. Contract Actions
Create Manager
Easily create a contract manager for the selected contract:
- Click the
Create Manager
button to generate a script that provides access to the contract’s address and ABI. - The generated script is ready for use in your Unity project and facilitates interaction with the contract.
Here’s an example of what a generated contract manager script looks like:
Using this contract manager, you can effortlessly reference contract details throughout your game, ensuring seamless blockchain integration.
Transaction Builder
Generate ready-to-use transaction scripts for interacting with the selected contract:
- Click the
Transaction Builder
button to open theTransaction Builder
window. - The ABI and contract address of the selected contract are automatically passed to the
Transaction Builder
for script generation. - The
Transaction Builder
simplifies the creation of transaction scripts for contract interaction.
Discard Contract
Remove unwanted contracts from your deployed contracts list:
- Click the
Delete
button to remove the selected contract from your list of deployed contracts. - This action allows you to keep your contract list clean and organized.