Christian Kamm
|
a7975d390d
|
Tests: Fix warnings
|
2022-03-01 13:49:59 +01:00 |
microwavedcola1
|
2a698f3135
|
Merge pull request #13 from blockworks-foundation/mc/oracle-in-withdraw
basic stub oracle integration in tests and withdraw
|
2022-03-01 06:38:13 +01:00 |
microwavedcola1
|
d9c7260375
|
code review
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-01 06:28:12 +01:00 |
microwavedcola1
|
c626b68a4a
|
suppress known issues
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-01 06:16:10 +01:00 |
Christian Kamm
|
3e6d722e01
|
Deposit: Don't add accounts to lookup table twice
|
2022-02-28 20:12:37 +01:00 |
Christian Kamm
|
5ebf425a65
|
Deposit: Extend the lookup table with bank and oracle
When the position goes from inactive to active.
|
2022-02-28 19:43:40 +01:00 |
microwavedcola1
|
5299e31ff8
|
basic stub oracle integration in tests and withdraw
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 17:17:01 +01:00 |
Christian Kamm
|
9a50325718
|
fix outdated comment
|
2022-02-28 15:45:56 +01:00 |
Christian Kamm
|
75092f7681
|
CreateAccount: Initialize an address lookup table
|
2022-02-28 15:43:08 +01:00 |
microwavedcola1
|
c7cd564d11
|
fix test, was missing oracle
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 14:48:59 +01:00 |
microwavedcola1
|
362b180069
|
add oracle to to token registration
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 14:44:08 +01:00 |
microwavedcola1
|
ccab3b867f
|
github workflows
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 12:58:39 +01:00 |
microwavedcola1
|
12d2a9f962
|
make clippy happy
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 12:56:26 +01:00 |
microwavedcola1
|
1c47f0d004
|
add ix handling for stub oracles
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 12:37:12 +01:00 |
microwavedcola1
|
3355ed1dcf
|
dont need special crate for this
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 11:18:55 +01:00 |
microwavedcola1
|
364f5d895b
|
fix use statement location
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 11:18:35 +01:00 |
microwavedcola1
|
e8b1563223
|
optimise imports
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 11:07:04 +01:00 |
microwavedcola1
|
3648cba0d0
|
use discriminator to differentiate between oracles, removes need for a magic constant, same could be done for other oracles
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 11:05:15 +01:00 |
microwavedcola1
|
575833c752
|
ignore expanded file
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 10:52:07 +01:00 |
microwavedcola1
|
6345d3ebd4
|
add todo
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 10:45:03 +01:00 |
microwavedcola1
|
c0c115bd03
|
remove unused
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 10:44:08 +01:00 |
microwavedcola1
|
4791990d89
|
Merge pull request #12 from blockworks-foundation/mc/stub-oracles
stub oracle ix and account state
|
2022-02-28 10:37:24 +01:00 |
microwavedcola1
|
823fbeb6b5
|
stub oracle ix and account state
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-02-28 10:36:31 +01:00 |
Christian Kamm
|
b88989bf3a
|
Tests: Transport error info on send_tx()
|
2022-02-28 09:12:24 +01:00 |
Christian Kamm
|
7aa2cd7e13
|
Test cleanups
|
2022-02-28 09:03:43 +01:00 |
Christian Kamm
|
1b404cc652
|
Basic health check, no oracles yet
|
2022-02-26 17:47:16 +01:00 |
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 |