Commit Graph

23 Commits

Author SHA1 Message Date
Christian Kamm dff41754e2 Update to version 0.1.6 2022-01-26 09:44:27 +01:00
microwavedcola1 97f2a3de9d update
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-01-19 09:16:15 +01:00
Christian Kamm 183626ad32 Add LogVoterInfo instruction
It has no effect on any state. It logs information about the voter and
all of its deposits to the program log. This can be used from the UI.
2022-01-19 09:04:39 +01:00
microwavedcola1 6b59d48df3
Mc/release experiments (#20)
* fix anchor version

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* fix solana version, use the version anchor-lang refers to

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* add comment

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* uncomment

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* rename

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* fix test script

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* rename + make consistent

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* cleanup script and do a proper release

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* not required in ts package

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* fix-comment

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-01-13 11:53:24 +01:00
microwavedcola1 38d7b03735 ts client
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-01-10 10:13:08 +01:00
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