https://github.com/hyperledger-solang/solang-aqd
https://github.com/hyperledger-solang/solang-aqd
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hyperledger-solang/solang-aqd
- Owner: hyperledger-solang
- License: apache-2.0
- Created: 2023-10-31T14:47:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T20:01:11.000Z (about 2 years ago)
- Last Synced: 2025-02-12T11:18:03.353Z (over 1 year ago)
- Language: Rust
- Size: 777 KB
- Stars: 2
- Watchers: 11
- Forks: 1
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Solang Aqd - Smart Contract CLI Tool
[](https://discord.gg/hyperledger)
[](https://github.com/hyperledger/solang-aqd/actions)
[](LICENSE)
`Aqd`(عَقد - meaning a contract in Arabic) is a versatile CLI tool for interacting with smart contracts on the Solana and Polkadot blockchains.
It provides a user-friendly interface with commands for deploying smart contracts and calling specific functions on the deployed contracts.
Whether you're developing on Solana or Polkadot, `Aqd` simplifies your smart contract interactions.
## Usage
### Installation
You can install Aqd using `cargo` :
```bash
cargo install --force --locked aqd
```
### Polkadot Interactions
To upload a contract to Polkadot:
```bash
aqd polkadot upload --suri //Alice -x flipper.contract
```
To instantiate a contract on Polkadot:
```bash
aqd polkadot instantiate --suri //Alice --args true -x flipper.contract
```
To call a specific function on Polkadot:
```bash
aqd polkadot call --contract --message get --suri //Alice flipper.contract
```
### Solana Interactions
To deploy a contract to Solana:
```bash
aqd solana deploy flipper.so
```
To call a specific function on Solana:
```bash
aqd solana call --idl flipper.json --program --instruction new --data true --accounts new self system
```
For more information, refer to [`Solang Aqd` documentation](https://solang.readthedocs.io/en/v0.3.3/running.html)
## Packages
| Package | Description | Version |
| ------------------ | ---------------------------------- | ------- |
| `aqd-core` | The CLI tool core crate | pre-release |
| `aqd-polkadot` | Smart contract interactions for Polkadot | pre-release |
| `aqd-solana` | Smart contract interactions for Solana | pre-release |
| `aqd-utils` | Utility functions and common code | pre-release |
| `aqd-solana-contracts` | Rust crate for Solana smart contract interactions | pre-release |