Home

Awesome

Solang Aqd - Smart Contract CLI Tool

<div align="center"> <img src="https://raw.githubusercontent.com/hyperledger/solang/main/docs/hl_solang_horizontal-color.svg" alt="Solang Logo" width="75%" />

Discord CI License

</div>

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 :

cargo install --force --locked aqd

Polkadot Interactions

To upload a contract to Polkadot:

aqd polkadot upload --suri //Alice -x flipper.contract

To instantiate a contract on Polkadot:

aqd polkadot instantiate --suri //Alice --args true -x flipper.contract

To call a specific function on Polkadot:

aqd polkadot call --contract <contract_address> --message get --suri //Alice flipper.contract

Solana Interactions

To deploy a contract to Solana:

aqd solana deploy flipper.so

To call a specific function on Solana:

aqd solana call --idl flipper.json --program <program_id> --instruction new --data true --accounts new self system

For more information, refer to Solang Aqd documentation

Packages

PackageDescriptionVersion
aqd-coreThe CLI tool core cratepre-release
aqd-polkadotSmart contract interactions for Polkadotpre-release
aqd-solanaSmart contract interactions for Solanapre-release
aqd-utilsUtility functions and common codepre-release
aqd-solana-contractsRust crate for Solana smart contract interactionspre-release