Commit Graph

34 Commits

Author SHA1 Message Date
Christian Kamm acd76e8031 Bump version to 0.2.1, introduce changelog 2022-04-03 08:43:04 +02:00
Christian Kamm 6699b25e49 Deps: Update regex due to "cargo audit" security advisory
This has no effect on the voter stake registry program.
2022-03-10 12:38:02 +01:00
Christian Kamm c510f25b87 Cli: Add binary to decode voter accounts 2022-02-28 12:27:06 +01:00
Christian Kamm a41616a9bc Bump version to 0.2.0 2022-02-14 10:54:08 +01:00
Christian Kamm bb9738b12f Update to 0.1.11 2022-02-11 13:53:06 +01:00
microwavedcola1 357648e4da bump version
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-02-10 19:37:56 +01:00
Sebastian Bor 7ff4ad2e23 chore: update version to 0.1.9 2022-02-09 13:59:52 +00:00
Christian Kamm 5835652650 Bump version to 0.1.8, release 2022-02-04 14:32:20 +01:00
microwavedcola1 b466f0d002 release
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-02-02 18:19:34 +01:00
Sebastian Bor b6fe798af6 chore: upgrade spl-gov to 2.2.0 2022-02-02 08:43:42 +01:00
Christian Kamm 1a577eb7bd
Upgrade spl-governance version (#30)
Upgrade to latest spl-governance

Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
2022-02-01 10:46:03 +01:00
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