Commit Graph

22 Commits

Author SHA1 Message Date
Armani Ferrante 9ee1aabc25
crank, registry/rewards: Add consume-events-rewards instruction (#57) 2020-12-11 11:56:38 -08:00
Sam Schetterer 16f67135ef rustfmt 2020-12-07 12:20:26 +08:00
Sam Schetterer 5f53192a62 Use a basic runtime for queue monitoring instead of a full multithreaded one 2020-12-07 12:19:54 +08:00
Armani Ferrante ea2bfbb62d
Registry, lockups, and staking (#51) 2020-12-01 09:48:26 -08:00
Armani Ferrante c908b890ac
Pool wip (#48)
* pool protocol WIP

* remove cruft, update gitignore

* Add draft pool schema and optimized retbuf implementation

* Checkpoint pool stuff

* Add test pool client

* Move pool-client to pool/client and add to workspace

* Switch from capnproto to borsh

* Move pool-schema to pool/schema

* Update client to use new schema, fix deserialization

* Simplify schema

* Update request format

* Add pool traits

* Pool WIP

* Finish merging

* Be explicit about evaluation order

* Plug the Pool trait into PoolProcessor

* Document the current state of pools

* pool: Implementable by registry

* pool: Use token account mint on init

* pool: Remove unecessary lifetimes

* Provide default create/redeem implementations

* Use the shmem param

* pool: Fix rounding, add error logging

* pool: Don't require setting delegate on accounts from which funds will not be pulled

* pool: Add simple pool program

* pool: Rename Trasact to Execute

* pool: Add a name field to PoolState

* Bump solana-sdk and remove feature to fix build

Co-authored-by: Sebastian Conybeare <sebastian@alameda-research.com>
Co-authored-by: Sebastian Conybeare <sebastian@projectserum.com>
Co-authored-by: Gary Wang <gary@garywang.net>
2020-11-24 00:29:28 -08:00
Sebastian Conybeare 991a86e93c
Alignment-independent account data (#47)
* Port Dex to solana-program 1.4.4 and spl-token 3.0.0-pre1
* Use packed structs for on-chain state representation


Co-authored-by: Michael Vines <mvines@gmail.com>
Co-authored-by: Sebastian Conybeare <sebastian@projectserum.com>
2020-11-16 19:06:30 +08:00
Michael Vines 5adf8799ae
Employ RpcSendTransactionConfig::default() for better forward compatibility (#39) 2020-10-23 11:58:56 -07:00
Gary Wang 16c79ee06b Run cargo fix on crank 2020-10-12 22:43:49 -07:00
Gary Wang 05f4def2fd Only use extra cranking workers if the number of pending events is too much for one worker 2020-10-12 22:43:49 -07:00
Gary Wang 1575d8d8a9 Don't retry cranking instructions, just wait for the next iteration 2020-10-12 22:36:04 -07:00
Armani Ferrante c3eab56384
Add simulate_transaction fn (#25) 2020-10-10 17:09:07 -07:00
Armani Ferrante 086e2219de
Registry CLI (#22) 2020-10-08 11:42:45 -07:00
Armani Ferrante e65766dd00
Node scaffold (#16) 2020-10-08 11:32:23 -07:00
Sam Schetterer db82618863 cargo fmt 2020-09-29 13:21:23 +08:00
Sam Schetterer 77abc98f47 Better logging, don't cancel on exit 2020-09-29 13:00:32 +08:00
armaniferrante ce2e10d0e9 Add serum-common crate 2020-09-25 19:04:25 -07:00
Sebastian Conybeare b6992d15f4 Bump dex version to 0.2.0 2020-09-22 17:58:57 +00:00
Sebastian Conybeare cb8bcdb354 Add SelfTradeBehavior toggle, cleanup debug prints 2020-09-22 17:58:57 +00:00
Nathaniel Parke 3dc834b1de Update crank solana version and fix RpcSendTransactionConfig 2020-09-22 17:58:57 +00:00
Sam Schetterer aee849f900 Expose weberver in the crnak instead of websockets 2020-09-22 17:58:57 +00:00
Sebastian Conybeare fa2d3da93d self-trade prevention 2020-09-22 17:58:57 +00:00
Sebastian 276b2c655a Initial release 2020-09-09 12:14:15 +00:00