Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
include token-voter-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
crypt0miester committed Jul 19, 2024
1 parent 475c13a commit 827ed57
Show file tree
Hide file tree
Showing 41 changed files with 9,988 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ seeds = false
nft_voter = "GnftV5kLjd67tvHpNGyodwWveEKivz3ZWvvE3Z4xi2iw"
gateway = "GgathUhdrCWRHowoRKACjgWhYHfxCEdBi5ViqYN6HVxk"
solana-gateway-program = "gatem74V238djXdzWnJf94Wo1DcnuGkfijbf3AuBhfs"
token-haver = "7gobfUihgoxA14RUnVaseoah89ggCgYAzgz1JoaPAXam"
gpl_token_haver = "7gobfUihgoxA14RUnVaseoah89ggCgYAzgz1JoaPAXam"
gpl_token_voter = "3JhBg9bSPcfWGFa3t8LH7ooVtrjm45yCkHpxYXMXstUM"

[registry]
url = "https://anchor.projectserum.com"
Expand Down
185 changes: 181 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions programs/token-voter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[package]
name = "gpl-token-voter"
version = "0.0.1"
description = "SPL Governance plugin implementing token based governance power"
license = "Apache-2.0"
edition = "2018"

[lib]
crate-type = ["cdylib", "lib"]
name = "gpl_token_voter"

[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"]

[dependencies]
anchor-lang = { version = "0.30.1", features = ["init-if-needed"] }
anchor-spl = "0.30.1"
arrayref = "0.3.7"
solana-program = "1.18.18"
spl-governance = { version = "4.0.0", features = ["no-entrypoint"] }
spl-tlv-account-resolution = { version = "0.6.3" }
spl-transfer-hook-interface = { version = "0.6.3" }
spl-governance-tools = "0.1.4"
spl-token = { version = "4.0.0", features = [ "no-entrypoint" ] }
spl-token-2022 = { version = "3.0.4", features = [ "no-entrypoint" ] }
ahash = "=0.8.7"
static_assertions = "1.1"
spl-governance-addin-api = "0.1.4"


[dev-dependencies]
borsh = "0.10.3"
spl-associated-token-account = { version = "^3.0.2", features = ["no-entrypoint"] }
spl-transfer-hook-example = { version = "0.6.0", features = ["no-entrypoint"] }
solana-sdk = "1.18.18"
solana-program-test = "1.18.18"
log = "0.4.14"
env_logger = "0.9.0"
spl-token-client = "0.10.0"
2 changes: 2 additions & 0 deletions programs/token-voter/Xargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.bpfel-unknown-unknown.dependencies.std]
features = []
Loading

0 comments on commit 827ed57

Please sign in to comment.