Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Oct 25, 2023
2 parents cc95cfd + eaa3dc9 commit 1ce59a4
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 50 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ packages/migration-service/export.json
packages/migration-service/failures.json
migration-docker/data
accounts

.yarn/*
!.yarn/patches
!.yarn/releases
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion programs/voter-stake-registry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "voter-stake-registry"
version = "0.2.2"
version = "0.2.4"
description = "Heliums voter weight plugin for spl-governance"
license = "GPL-3.0-or-later"
homepage = "https://github.com/helium/helium-program-library"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ pub struct RelinquishExpiredVoteV0<'info> {
)]
pub position: Box<Account<'info, PositionV0>>,
#[account(
mut,
constraint = !matches!(proposal.state, ProposalState::Voting { .. })
)]
pub proposal: Account<'info, ProposalV0>,
pub proposal: Box<Account<'info, ProposalV0>>,
pub system_program: Program<'info, System>,
}

Expand Down
2 changes: 1 addition & 1 deletion utils/proposal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "proposal"
version = "0.0.1"
version = "0.1.0"
description = "Proposal cpi wrapper"
edition = "2021"

Expand Down
66 changes: 23 additions & 43 deletions utils/proposal/idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,13 @@
"name": "proposalConfig",
"isMut": false,
"isSigner": false,
"relations": [
"on_vote_hook",
"state_controller",
"vote_controller"
]
"relations": ["on_vote_hook", "state_controller", "vote_controller"]
},
{
"name": "proposal",
"isMut": true,
"isSigner": false,
"relations": [
"proposal_config"
]
"relations": ["proposal_config"]
},
{
"name": "onVoteHook",
Expand Down Expand Up @@ -163,17 +157,13 @@
"name": "proposal",
"isMut": true,
"isSigner": false,
"relations": [
"proposal_config"
]
"relations": ["proposal_config"]
},
{
"name": "proposalConfig",
"isMut": false,
"isSigner": false,
"relations": [
"state_controller"
]
"relations": ["state_controller"]
}
],
"args": [
Expand All @@ -194,9 +184,7 @@
"fields": [
{
"name": "voteController",
"docs": [
"Signer that controls voting and vote weights"
],
"docs": ["Signer that controls voting and vote weights"],
"type": "publicKey"
},
{
Expand Down Expand Up @@ -259,9 +247,7 @@
},
{
"name": "maxChoicesPerVoter",
"docs": [
"Allows for multiple selection votes"
],
"docs": ["Allows for multiple selection votes"],
"type": "u16"
},
{
Expand All @@ -274,9 +260,7 @@
},
{
"name": "uri",
"docs": [
"URI to json containing name, description, etc"
],
"docs": ["URI to json containing name, description, etc"],
"type": "string"
},
{
Expand Down Expand Up @@ -313,9 +297,7 @@
},
{
"name": "voteController",
"docs": [
"Signer that controls voting and vote weights"
],
"docs": ["Signer that controls voting and vote weights"],
"type": "publicKey"
},
{
Expand Down Expand Up @@ -351,9 +333,7 @@
},
{
"name": "uri",
"docs": [
"Any other data that you may want to put in here"
],
"docs": ["Any other data that you may want to put in here"],
"type": {
"option": "string"
}
Expand All @@ -368,9 +348,7 @@
"fields": [
{
"name": "seed",
"docs": [
"Allow a custom seed for indexing"
],
"docs": ["Allow a custom seed for indexing"],
"type": "bytes"
},
{
Expand All @@ -383,9 +361,7 @@
},
{
"name": "maxChoicesPerVoter",
"docs": [
"Allows for multiple selection votes"
],
"docs": ["Allows for multiple selection votes"],
"type": "u16"
},
{
Expand Down Expand Up @@ -434,9 +410,7 @@
},
{
"name": "removeVote",
"docs": [
"This is a remove operation"
],
"docs": ["This is a remove operation"],
"type": "bool"
}
]
Expand All @@ -460,9 +434,7 @@
},
{
"name": "uri",
"docs": [
"Any other data that you may want to put in here"
],
"docs": ["Any other data that you may want to put in here"],
"type": {
"option": "string"
}
Expand Down Expand Up @@ -498,15 +470,23 @@
"type": {
"vec": "u16"
}
},
{
"name": "end_ts",
"type": "i64"
}
]
},
{
"name": "Custom",
"fields": [
{
"name": "state",
"name": "name",
"type": "string"
},
{
"name": "bin",
"type": "bytes"
}
]
}
Expand All @@ -521,4 +501,4 @@
"msg": "Error in arithmetic"
}
]
}
}

0 comments on commit 1ce59a4

Please sign in to comment.