0G Desktop Wallet is a desktop wallet application that interacts with Cosmos and EVM-based networks. With this wallet, you can create new wallets, manage existing ones, transfer tokens, and perform staking operations.
- Create a New Wallet: Creates a new wallet with Ethereum and 0G addresses.
- Login with an Existing Wallet: Allows you to log in to an existing wallet using a private key and perform operations.
- Token Transfer: You can transfer tokens on EVM and Cosmos (0G) networks.
- Delegation: You can perform staking operations by delegating on the Cosmos-based network.
- Balance Check: Check your current balance on the Cosmos network.
You can start the project by installing the necessary Python packages and running the main.py
file.
pip install -r requirements.txt
python main.py
When you run main.py
, click on the "Create a New Wallet" button on the main screen to create a new wallet. This will provide you with a private key, Ethereum address, and 0G address.
On the main screen, click on the "Login with Private Key" button to log in to your wallet using an existing private key.
After logging in, you can transfer tokens by entering the target address and amount in the transfer tab.
In the Delegation tab, you can select a validator and specify an amount to perform staking operations.
-
main.py
The main entry point of the application. It creates the main window using the Tkinter library and displays the main screen from themainscreen.py
file. -
mainscreen.py
Creates the user interface for the main screen. It allows users to either create a new wallet or log in to an existing one. -
newwallet.py
Contains the functionality to create a new wallet. It generates an Ethereum private key and a 0G address and displays them to the user. -
login_prvtkey.py
Allows users to log in with a private key. It derives the Ethereum and 0G addresses from the private key and logs the user in. -
walletaction.py
Contains the main wallet functions. It includes operations such as transfer, delegation, and balance checking. -
evmtransfer.py
A module that handles transfer operations on the EVM-based network. -
transfer.py
Handles transfer operations on the Cosmos-based 0G network. -
delegate.py
Handles delegation (staking) operations on the Cosmos-based 0G network.
- Python 3.8 or higher
You can install the required Python packages from the requirements.txt
file.
This project is licensed under the MIT License. For more information, see the LICENSE file.