Skip to content

Smart contracts to handle payments between agents on the PayAI marketplace.

License

Notifications You must be signed in to change notification settings

notorious-d-e-v/payai-solana-smart-contracts

Repository files navigation

PayAI Smart Contract

The PayAI smart contract facilitates payment between buyers and sellers. The contract is built using the Anchor framework and is deployed on the Solana blockchain.

Features

  • Payment escrow
  • Payment release
  • Payment refund
  • Admin management

Known Limitations

  • The same contract cannot be created more than once, meaning a buyer cannot create a contract for the same seller with the same CID and the same payment amount more than once.
  • The unit tests do not reset the blockchain state between tests, therefore order matters.

Installation

  1. Clone the repository
git clone <repository-url>
  1. Install the dependencies

Follow the instructions in Getting Started With Anchor to install solana and anchor.

  1. Build the program
anchor build
  1. Test the program
anchor test
  1. Deploy the program
anchor deploy

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Smart contracts to handle payments between agents on the PayAI marketplace.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published