Skip to content

Files

Latest commit

d1fa4d5 · Jul 25, 2024

History

History
This branch is 456 commits behind solana-labs/solana-program-library:master.

stateless-asks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 25, 2024
Feb 13, 2023

Stateless Offer

Simple program to make token offers to any bidder that can satisfy the constraints.

This program is stateless. It is up to the maker to advertise. It uses the PDA as a one way hash of the offer that the maker wants to create. The maker then only needs to approve their token to the PDA address for the taker to receive the items. The maker doesn't need to be online to complete the transaction, but needs to advertise the offer off-chain.

Maker

  1. compute the offer PDA
  2. approve the token delegation for the amount to the PDA
  3. publish the offer off-chain

Taker

  1. Create the offer TX
  2. Submit the TX to the stateless-offer program

To cancel, the maker simply needs to cancel the delegation.

Audit

The repository README contains information about program audits.