serum-dex/pool
Armani Ferrante 3469a83804
Update borsh version (#96)
2021-01-31 06:39:49 -08:00
..
examples Update borsh version (#96) 2021-01-31 06:39:49 -08:00
schema Update borsh version (#96) 2021-01-31 06:39:49 -08:00
src pool: Update fee account 2020-12-14 07:07:48 +08:00
Cargo.toml Update borsh version (#96) 2021-01-31 06:39:49 -08:00
README.md pool: Update fee account 2020-12-14 07:07:48 +08:00
Xargo.toml Pool wip (#48) 2020-11-24 00:29:28 -08:00

README.md

The Pool Protocol

This is a protocol, on Solana, that defines pool-like functionality. Like Ethereum interfaces, the setup doesn't do much to constrain the actual behavior of programs which claim to implement this program. This crate defines an instruction format for pool operations, and provides a library that maps Solana's primitives onto the Pool protocol's semantics.

Data Layout

The serialization and deserialization code are generated by borsh. The instruction and state types are defined in the schema crate.

Implementing the Pool protocol

Implement the Pool trait on a marker type ExamplePool, and invoke declare_pool_entrypoint!(ExamplePool) in your program's source somewhere. The crate is mostly complete, but there may be minor breaking changes before the first release.