Skip to content

code-payments/code-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code VM

license version

The Code Virtual Machine (Code VM) is a program that runs on the Solana blockchain. It is purpose built for payments and reduces transaction fees by up to 95% and account rent by 80% when compared to using non-virtualized accounts. The VM operates on compact representations of accounts but can further compress dormant accounts off-chain, effectively reducing rent to zero. Compressed accounts can be decompressed when needed — either automatically using the Code app or manually through a public indexer.

Note

The Code VM is designed specifically to be used by the Code and Flipchat mobile apps, prioritizing seamless payments. As a result, this codebase is not intended as a generalized foundation for other projects.

Audits

Network Address Audited By Status Audit Report Commit
Mainnet vmZ1WU...5YMRTJ OtterSec in progress - tbd
Devnet J8FLfS...Rr3L24 - - - -

Dev Milestones

✅ The on-chain program itself is largely completed.

✅ Flipchat is using the program in mainnet.

We’re currently integrating the VM into a fork of the Code app called Flipchat. This allows us to make changes to backend services more efficiently without disrupting Code app users.

A key obejctive for us has been that the Code mobile app could be migrated to the VM with minimal effort. From the app’s perspective, it should behave as if it’s using standard Solana accounts. All the VM complexity should be abstracted away by the backend services.

We’re happy to report that this key objective has been achieved on Flipchat — our mobile app team migrated payments using only a handful of minor adjustments to the original transaction mechanics. To enable this from the VM side, we made intentional trade-offs that optimize for core objectives instead of on-chain compute units.

Release Schedule

Milestone Status VM Flipchat Code
Anchor Version Done Aug 9th, 2024 - -
Steel Version Done Oct 24th, 2024 - -
Audited Release WIP tbd - -
IDLs Done Oct 30th, 2024 - -
Indexer Done - Aug 15th, 2024 tbd
Sequencer Done - November 25th, 2024 tbd
Explorer tbd
Documentation tbd

Quick Start

  1. Install Solana CLI: https://docs.solana.com/de/cli/install-solana-cli-tools
  2. Open Terminal: cargo build-sbf & cargo test-sbf -- --nocapture

Versions

Please make sure you have the following versions installed:

% rustc --version
rustc 1.76.0 (07dca489a 2024-02-04)

% solana --version
solana-cli 1.18.9 (src:9a7dd9ca; feat:3469865029, client:SolanaLabs)

Getting Help

If you have any questions or need help, please reach out to us on Discord or Twitter.

Community Feedback & Contributions

While we can't guarantee that all feedback will be implemented, we are always open to hearing from the community. If you have any suggestions or feedback, please reach out to us.

Security and Issue Disclosures

In the interest of protecting the security of our users and their funds, we ask that if you discover any security vulnerabilities please report them using this Report a Vulnerability link.

About

Purpose built VM for reduced fees on Solana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published