Christian Kamm
|
174d38a199
|
Don't check PDA seeds on use, instead store addresses
This saves about 5000 CU currently, making Deposit/Withdraw go from
26000 CU to 21000 CU.
|
2022-02-26 12:17:20 +01:00 |
Christian Kamm
|
2ef2424ac5
|
Move the asset/liab weights to the Bank account
|
2022-02-26 12:04:42 +01:00 |
Christian Kamm
|
8f5becc0d5
|
Asset/liab weights and withdraw amounts
|
2022-02-25 18:29:54 +01:00 |
Christian Kamm
|
d1e2cc28b7
|
Outline of withdraw instruction
|
2022-02-25 15:14:15 +01:00 |
Christian Kamm
|
5f5ba723d6
|
Add basic test setup
|
2022-02-25 13:12:16 +01:00 |
microwavedcola1
|
e6e17dd88c
|
Merge pull request #10 from blockworks-foundation/mc/ts-client
mc/ts-client
|
2022-02-23 11:13:13 +01:00 |
microwavedcola1
|
1e5b33f85c
|
new line
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-23 11:12:31 +01:00 |
microwavedcola1
|
4a95294312
|
add todo, fix program id
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-23 11:12:14 +01:00 |
microwavedcola1
|
3dba9095ba
|
bump anchor ts lib
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-23 11:10:50 +01:00 |
microwavedcola1
|
425c2568c7
|
new line
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-23 11:10:09 +01:00 |
microwavedcola1
|
634d442469
|
ts client boilerplate
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-23 11:09:17 +01:00 |
microwavedcola1
|
a73ba559c2
|
cleanup
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-23 10:56:03 +01:00 |
Christian Kamm
|
818bd6fe48
|
Enable anchor seeds extraction
|
2022-02-23 10:55:23 +01:00 |
Christian Kamm
|
70d3603cb4
|
Rename group.owner -> group.admin
|
2022-02-23 10:19:54 +01:00 |
Christian Kamm
|
9f013fb22a
|
Initialize bank indexes
|
2022-02-23 10:15:33 +01:00 |
Christian Kamm
|
5a4b6263ac
|
Add deposits/borrows tracking
|
2022-02-23 10:09:01 +01:00 |
Christian Kamm
|
8bc0416ef6
|
Helper functions to simplify
|
2022-02-22 17:13:26 +01:00 |
Christian Kamm
|
6b5162cce0
|
Remove root bank
|
2022-02-22 16:46:55 +01:00 |
Christian Kamm
|
16baae73d4
|
Depend on anchor cli 0.22.0
|
2022-02-22 16:45:13 +01:00 |
Christian Kamm
|
1b935335fb
|
Drop Default impls, manually set account space
This fixes stack issues.
I don't know why anchor uses bytemuck::from_bytes(&T::default()).len()
|
2022-02-22 15:55:30 +01:00 |
Christian Kamm
|
13d1ebb614
|
Remove bad annotation
|
2022-02-22 14:40:49 +01:00 |
Christian Kamm
|
fdfab14e43
|
Drop unneeded associated token account program
|
2022-02-22 14:35:10 +01:00 |
Christian Kamm
|
c9ad4f0c94
|
Very basic deposit instruction
|
2022-02-22 14:23:13 +01:00 |
Christian Kamm
|
901062d0c1
|
Add token bank and vault accounts
|
2022-02-22 13:31:18 +01:00 |
Christian Kamm
|
76a4e717c3
|
Add forgotten create_account.rs
|
2022-02-22 13:31:03 +01:00 |
Christian Kamm
|
9b16feaf44
|
CreateAccount instruction outline
|
2022-02-22 13:15:13 +01:00 |
Christian Kamm
|
6a7881b725
|
RegisterToken instruction outline
|
2022-02-22 10:19:40 +01:00 |
Christian Kamm
|
cb94c7c598
|
CreateGroup instruction outline
|
2022-02-22 10:16:13 +01:00 |
Christian Kamm
|
6160a80457
|
First ideas for MangoGroup and MangoAccount accounts
|
2022-02-22 10:15:37 +01:00 |
Christian Kamm
|
d4246f7da1
|
Upgrade to anchor 0.22.0
|
2022-02-22 10:09:40 +01:00 |
Christian Kamm
|
a79ee2c8e2
|
Fix compile by disabling unadapted state/ structs
|
2022-02-22 10:09:40 +01:00 |
microwavedcola1
|
79b0740cf5
|
Merge pull request #9 from blockworks-foundation/mc/state_review
add todos
|
2022-02-22 09:56:29 +01:00 |
microwavedcola1
|
b362d3320b
|
notes for self
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-10 10:50:57 +01:00 |
microwavedcola1
|
f2921d2272
|
add todos
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-10 10:49:45 +01:00 |
microwavedcola1
|
268db58294
|
fix imports
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-10 10:04:47 +01:00 |
microwavedcola1
|
1156fe8924
|
Merge pull request #8 from blockworks-foundation/mc/state_layout
Mc/state layout
|
2022-02-10 09:34:52 +01:00 |
microwavedcola1
|
b31cd9c56e
|
add comments from notion
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-10 09:11:39 +01:00 |
microwavedcola1
|
5edbd70dd0
|
add daffys notes from notion
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-10 09:09:42 +01:00 |
microwavedcola1
|
5ab8f6e09e
|
copy structs from v3, next goal is to see what we can retain and what to change
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-10 09:07:34 +01:00 |
microwavedcola1
|
d7229d7a48
|
Program struct
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-02 11:55:44 +01:00 |
microwavedcola1
|
38ee659ce9
|
Extend note
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-01-21 19:31:16 +01:00 |
microwavedcola1
|
7b9f29d8b9
|
readme
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-01-21 19:30:28 +01:00 |
microwavedcola1
|
b35802c555
|
turn off doc tests, make script executable
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-01-21 19:25:13 +01:00 |
microwavedcola1
|
66172881a1
|
First commit
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-01-21 19:21:46 +01:00 |