Commit Graph

38 Commits

Author SHA1 Message Date
Nathaniel Parke 527ef71dad
Upgrade solana web3 to v0.83.0 (#30)
* v0.73.0

* Upgrade to solana web3 v0.83.0

* Updates

* Latest
2020-10-24 14:49:05 +08:00
Nishad 0025ce147e Expose programId 2020-09-22 14:44:55 +08:00
Nishad ce4c81f852 SRM-based fee discounts in upcoming program 2020-09-18 07:56:15 +08:00
Nishad ac16e87344 Support new layouts 2020-09-18 06:06:43 +08:00
Nathaniel Parke 19fcd6a064
Allow for client to set an open orders account when placing orders (#20) 2020-09-15 21:11:59 +08:00
Nishad 3688910c2a Support fetch all OpenOrders accounts for a given owner, program id 2020-09-07 18:34:42 +08:00
Nathaniel Parke b246231c51 Make bid and ask accounts public on Market 2020-09-07 17:32:41 +08:00
Nishad 6a5e61bc4d List known markets and coins. Remove assumptions about default DEX program IDs 2020-09-07 09:50:56 +08:00
Nathaniel Parke 15d76566ca Optionally cache openOrdersAccounts 2020-09-04 13:14:57 +08:00
Gary Wang f2021c0e6e Only wrap as much SOL as we need 2020-09-01 08:20:06 -07:00
Gary Wang 9793e02c87 Replace makeMatchOrdersInstruction with makeMatchOrdersTransaction 2020-09-01 07:43:24 -07:00
Gary Wang ba191365e7 Use correct number of decimals for wrapped SOL 2020-09-01 07:33:34 -07:00
Gary Wang 3f7471c930 Add option to findBaseTokenAccountsForOwner/findQuoteTokenAccountsForOwner to include unwrapped SOL for wrapped-SOL markets 2020-09-01 07:03:26 -07:00
Gary Wang d6c0a0ba5a Add support for wrapped-SOL markets 2020-09-01 05:46:07 -07:00
Nathaniel Parke 3a5a8f0507 Include clientOrderId in the orderbook slab iterator 2020-09-01 16:33:53 +08:00
Nathaniel Parke eb5b34e9a0 v0.9.3 2020-09-01 15:42:20 +08:00
Gary Wang 87c25716c0 Switch to new program ID, update order placement instruction 2020-08-29 06:41:31 -07:00
Nishad 21b0040355 Rename function to makeCancelOrderInstruction 2020-08-27 18:54:46 +08:00
Nishad 7375763aba Make DEX program ID configurable 2020-08-27 03:37:17 +08:00
Nishad dbc29b2390 eslint 2020-08-26 19:34:39 +08:00
Nathaniel Parke c06ec61ac0
Add makeSettleInstruction (#5)
Add makeSettleInstruction
2020-08-26 19:33:47 +08:00
Nathaniel Parke 7f60007135
Add makeCanceOrderInstruction (#4)
Add makeCanceOrderInstruction
2020-08-26 18:50:23 +08:00
Nathaniel Parke 2f726f3071
Add makePlaceOrderInstruction (#3) 2020-08-26 18:27:03 +08:00
Nathaniel Parke d2f748f431
clientId is an optional field in Order objects 2020-08-26 08:03:56 +08:00
Nishad a807bd8500 Update 2020-08-26 03:50:44 +08:00
Nishad aefa39c020 Update event parsing to account for rebates 2020-08-26 03:46:01 +08:00
Nishad 74e98df58b Update event parsing 2020-08-26 02:24:10 +08:00
Nishad 3fd28e535b Update program ID, update layouts 2020-08-25 06:33:12 +08:00
Nishad 91cd66b4df Update DEX program ID and expose makeMatchOrdersInstruction 2020-08-23 14:13:20 +08:00
Nishad 19be2f9eb3 Make compatible with solana RPC interface change for retrieving account data 2020-08-21 00:57:21 +08:00
Gary Wang db5635c1f6 Add method to settle funds 2020-08-18 04:23:36 -07:00
Gary Wang 4d1e45f815 Rename owner field on orders to openOrdersAddress, fix cancellations, add confirmation options 2020-08-18 03:38:25 -07:00
Gary Wang 39d6b4ba22 Update loadOrdersForOwner to use open orders accounts 2020-08-16 23:55:33 -07:00
Gary Wang 7848262c4d Throw error if price or size is too small 2020-08-15 22:28:17 -07:00
Gary Wang 9223575e6f Add convenience method for retrieving orders by user, update README 2020-08-13 13:32:51 -07:00
Gary Wang 8c5ef2aa68 Switch to latest program address on testnet, with 5/7 padding 2020-08-13 12:53:46 -07:00
Gary Wang 9b7e39c8fe Add method for retrieving fills 2020-08-13 12:46:09 -07:00
Gary Wang b5ee5e2127 Add some types and fix some bugs 2020-08-13 10:12:14 -07:00