2021-10-05 13:40:01 -07:00
|
|
|
[package]
|
2021-12-01 04:28:38 -08:00
|
|
|
name = "voter-stake-registry"
|
2022-05-04 04:55:27 -07:00
|
|
|
version = "0.2.4"
|
2022-05-04 12:07:30 -07:00
|
|
|
description = "a voter weight plugin for spl-governance"
|
|
|
|
license = "GPL-3.0-or-later"
|
|
|
|
homepage = "https://github.com/blockworks-foundation/voter-stake-registry"
|
2021-10-05 13:40:01 -07:00
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
crate-type = ["cdylib", "lib"]
|
2021-12-01 04:28:38 -08:00
|
|
|
name = "voter_stake_registry"
|
2021-11-27 23:34:10 -08:00
|
|
|
doctest = false
|
2021-10-05 13:40:01 -07:00
|
|
|
|
|
|
|
[features]
|
|
|
|
no-entrypoint = []
|
|
|
|
no-idl = []
|
|
|
|
cpi = ["no-entrypoint"]
|
|
|
|
default = []
|
2021-11-25 22:49:22 -08:00
|
|
|
localnet = []
|
2022-12-21 05:35:58 -08:00
|
|
|
test-sbf = []
|
2021-10-05 13:40:01 -07:00
|
|
|
|
|
|
|
[dependencies]
|
2022-01-13 02:53:24 -08:00
|
|
|
# a) for deployment use these
|
2022-12-21 04:41:09 -08:00
|
|
|
anchor-lang = { version = "0.26.0", features = ["init-if-needed"] }
|
|
|
|
anchor-spl = { version = "0.26.0" }
|
2022-01-13 02:53:24 -08:00
|
|
|
# b) while testing, use below dependencies for debugging instead of above ones
|
|
|
|
# anchor-lang = { git = "https://github.com/microwavedcola1/anchor.git", branch = "master-debug" }
|
|
|
|
# anchor-spl = { git = "https://github.com/microwavedcola1/anchor.git", branch = "master-debug", features = ["governance"]}
|
2021-11-27 23:34:10 -08:00
|
|
|
|
2021-12-04 01:51:47 -08:00
|
|
|
# The rev used for spl-governance must match what the fixture binary
|
|
|
|
# programs/voter-stake-registry/tests/fixtures/spl_governance.so is built from.
|
2022-02-01 15:14:43 -08:00
|
|
|
|
2022-04-08 05:55:33 -07:00
|
|
|
bytemuck = "1.9.1"
|
|
|
|
|
2022-04-14 02:50:51 -07:00
|
|
|
# WARNING: Be careful about upgrading the spl-governance dependency!
|
|
|
|
# Recently the discriminator for new VoterWeightRecord accounts has changed, and upgrading
|
|
|
|
# this dependency here without also upgrading the spl-governance program instance beforehand
|
|
|
|
# would lead to VWR accounts that are unusable until the spl-governance program is upgraded.
|
2022-04-25 04:45:46 -07:00
|
|
|
spl-governance = { version = "=2.2.1", features = ["no-entrypoint"] }
|
|
|
|
spl-governance-addin-api = "=0.1.1"
|
2022-01-13 02:53:24 -08:00
|
|
|
|
2022-12-21 04:41:09 -08:00
|
|
|
solana-program = "1.14.10"
|
2021-12-08 23:22:22 -08:00
|
|
|
static_assertions = "1.1"
|
2021-11-27 23:34:10 -08:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-12-21 04:41:09 -08:00
|
|
|
solana-sdk = "1.14.10"
|
|
|
|
solana-program-test = "1.14.10"
|
|
|
|
solana-logger = "1.14.10"
|
2021-11-27 23:34:10 -08:00
|
|
|
spl-token = { version = "^3.0.0", features = ["no-entrypoint"] }
|
|
|
|
spl-associated-token-account = { version = "^1.0.3", features = ["no-entrypoint"] }
|
|
|
|
bytemuck = "^1.7.2"
|
|
|
|
serde = "^1.0"
|
|
|
|
bincode = "^1.3.1"
|
2022-01-18 04:31:27 -08:00
|
|
|
log = "0.4.14"
|
|
|
|
env_logger = "0.9.0"
|
2022-01-19 00:06:03 -08:00
|
|
|
base64 = "0.13.0"
|