Skip to content

dhruvja/p-ata

 
 

Repository files navigation

p-ata

p-ata

A pinocchio-based Associated Token Account Program

Overview

This repository contains a proof-of-concept of a reimplementation of the SPL Associated Token Account program, one of the most used programs on Solana, using pinocchio. The purpose is to have an implementation that optimizes the compute units, while being fully compatible with the original implementation — i.e., support the exact same instruction and account layouts as SPL Token, byte for byte.

Features

  • no_std crate
  • Same instruction and account layout as SPL Token
  • Minimal CU usage

Building

To build the programs from the root directory of the repository:

pnpm install

to install the required libraries, then:

pnpm programs:build

Testing

To run the tests against both versions of the Token program:

pnpm programs:test

License

The code is licensed under the Apache License Version 2.0

About

Pinocchio version of Associated Token Program

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.0%
  • Rust 32.8%
  • TypeScript 18.2%