Christian Kamm
d877eae443
Upgrade spl-governance dependency to current master
2021-12-14 13:46:38 +01:00
Christian Kamm
a7dd5684c3
Update anchor dependency
...
The previous version didn't include the fix needed to use init_if_needed
with the voter weight record.
2021-12-14 12:25:03 +01:00
microwavedcola1
73fc3aa224
update lockfile
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2021-12-14 11:37:28 +01:00
Christian Kamm
decdd1230c
Address unaligned references, add padding
...
- Make Registrar zero-copy. While it was using borsh for serialization,
the array of voting mint configs couldn't be serialized without
unaligned references.
- Reorganize all zero_copy fields such that switching to repr(C) would
not make a difference. (just for safety in case that happens)
- Add static asserts on the sizes of all account structs, so any changes
are visible very early.
- Add padding to structs that didn't have it yet.
2021-12-09 11:59:14 +01:00
Christian Kamm
4cbe9ad4d6
Make create_voter idempotent
2021-12-05 15:29:14 +01:00
Christian Kamm
645f02ebd4
Tests: Add a test that checks integration with spl-governance
...
By making a proposal (with the necessary amount of vote weight) and
voting on it.
2021-12-05 09:00:07 +01:00
Christian Kamm
aa1c536b9c
Tests: check start up lockup, and withdrawable amount
2021-12-03 12:29:37 +01:00
Christian Kamm
0b049ad3f8
Add reset_lockup tests / add max period check
2021-12-03 11:38:45 +01:00
Christian Kamm
0543f5fe20
Rename to voter-stake-registry
2021-12-01 13:28:38 +01:00
Christian Kamm
ce1e639e71
Add rust-based tests that setup a spl-gov instance
2021-11-28 08:34:10 +01:00
Christian Kamm
4a00417348
Forbid creating voter accounts via CPI
2021-11-27 09:32:28 +01:00
armaniferrante
26e2d7870c
Use anchor v0.18.0
2021-10-24 22:16:22 -07:00
armaniferrante
9059bdd5d1
Use new voting mint for each exchange rate
2021-10-20 15:54:27 -07:00
armaniferrante
7bc7d12251
Restructure
2021-10-19 17:08:47 -07:00
Armani Ferrante
627d572774
Basic test setup
2021-10-15 13:23:04 -05:00
armaniferrante
6671dae536
More scaffolding
2021-10-14 21:05:21 -07:00
armaniferrante
ca3aca3ce3
Scaffold
2021-10-14 09:53:35 -07:00
armaniferrante
e4f63f7c8a
Init
2021-10-05 13:41:01 -07:00