Skip to content

Commit

Permalink
idl-update: program-voter-stake-registry-0.3.3 (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: lthiery <[email protected]>
  • Loading branch information
github-actions[bot] and lthiery authored Sep 10, 2024
1 parent ae22a95 commit 54392f5
Show file tree
Hide file tree
Showing 2 changed files with 288 additions and 15 deletions.
301 changes: 287 additions & 14 deletions idl/voter_stake_registry.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.2",
"version": "0.3.3",
"name": "voter_stake_registry",
"instructions": [
{
Expand Down Expand Up @@ -182,6 +182,12 @@
"name": "tokenProgram",
"isMut": false,
"isSigner": false
},
{
"name": "proxyConfig",
"isMut": false,
"isSigner": false,
"isOptional": true
}
],
"args": [
Expand Down Expand Up @@ -1058,14 +1064,6 @@
{
"name": "relinquishVoteV1",
"accounts": [
{
"name": "refund",
"isMut": true,
"isSigner": false,
"docs": [
"Account to receive sol refund if marker is closed"
]
},
{
"name": "marker",
"isMut": true,
Expand Down Expand Up @@ -1093,7 +1091,8 @@
},
"relations": [
"registrar",
"mint"
"mint",
"rent_refund"
]
},
{
Expand Down Expand Up @@ -1161,6 +1160,11 @@
"name": "systemProgram",
"isMut": false,
"isSigner": false
},
{
"name": "rentRefund",
"isMut": true,
"isSigner": false
}
],
"args": [
Expand All @@ -1175,6 +1179,11 @@
{
"name": "relinquishExpiredVoteV0",
"accounts": [
{
"name": "rentRefund",
"isMut": true,
"isSigner": false
},
{
"name": "marker",
"isMut": true,
Expand All @@ -1201,7 +1210,8 @@
]
},
"relations": [
"proposal"
"proposal",
"rent_refund"
]
},
{
Expand All @@ -1221,6 +1231,256 @@
}
],
"args": []
},
{
"name": "proxiedRelinquishVoteV0",
"accounts": [
{
"name": "rentRefund",
"isMut": true,
"isSigner": false
},
{
"name": "marker",
"isMut": true,
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "marker"
},
{
"kind": "account",
"type": "publicKey",
"account": "Mint",
"path": "mint"
},
{
"kind": "account",
"type": "publicKey",
"account": "ProposalV0",
"path": "proposal"
}
]
},
"relations": [
"registrar",
"mint",
"rent_refund"
]
},
{
"name": "registrar",
"isMut": false,
"isSigner": false
},
{
"name": "voter",
"isMut": false,
"isSigner": true
},
{
"name": "proxyAssignment",
"isMut": false,
"isSigner": false,
"relations": [
"voter"
]
},
{
"name": "position",
"isMut": true,
"isSigner": false,
"relations": [
"mint",
"registrar"
]
},
{
"name": "mint",
"isMut": false,
"isSigner": false
},
{
"name": "proposal",
"isMut": true,
"isSigner": false,
"relations": [
"proposal_config"
]
},
{
"name": "proposalConfig",
"isMut": false,
"isSigner": false,
"relations": [
"on_vote_hook",
"state_controller"
]
},
{
"name": "stateController",
"isMut": true,
"isSigner": false
},
{
"name": "onVoteHook",
"isMut": false,
"isSigner": false
},
{
"name": "proposalProgram",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "args",
"type": {
"defined": "RelinquishVoteArgsV1"
}
}
]
},
{
"name": "proxiedVoteV0",
"accounts": [
{
"name": "payer",
"isMut": true,
"isSigner": true
},
{
"name": "marker",
"isMut": true,
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "marker"
},
{
"kind": "account",
"type": "publicKey",
"account": "PositionV0",
"path": "position.mint"
},
{
"kind": "account",
"type": "publicKey",
"account": "ProposalV0",
"path": "proposal"
}
]
}
},
{
"name": "registrar",
"isMut": true,
"isSigner": false
},
{
"name": "voter",
"isMut": false,
"isSigner": true
},
{
"name": "position",
"isMut": true,
"isSigner": false,
"relations": [
"registrar"
]
},
{
"name": "proxyAssignment",
"isMut": false,
"isSigner": false,
"relations": [
"voter"
]
},
{
"name": "proposal",
"isMut": true,
"isSigner": false,
"relations": [
"proposal_config"
]
},
{
"name": "proposalConfig",
"isMut": false,
"isSigner": false,
"relations": [
"on_vote_hook",
"state_controller"
]
},
{
"name": "stateController",
"isMut": true,
"isSigner": false
},
{
"name": "onVoteHook",
"isMut": false,
"isSigner": false
},
{
"name": "proposalProgram",
"isMut": false,
"isSigner": false
},
{
"name": "systemProgram",
"isMut": false,
"isSigner": false
}
],
"args": [
{
"name": "args",
"type": {
"defined": "VoteArgsV0"
}
}
]
},
{
"name": "updateRegistrarV0",
"accounts": [
{
"name": "registrar",
"isMut": true,
"isSigner": false,
"relations": [
"realm_authority"
]
},
{
"name": "realmAuthority",
"isMut": false,
"isSigner": true
},
{
"name": "proxyConfig",
"isMut": false,
"isSigner": false,
"isOptional": true
}
],
"args": []
}
],
"accounts": [
Expand Down Expand Up @@ -1260,11 +1520,20 @@
"type": "u8"
},
{
"name": "relinquished",
"name": "deprecatedRelinquished",
"docs": [
"Whether this vote has been cleared on the position after proposal expireds"
"Whether this vote has been cleared on the position after proposal expired",
"DEPRECATED. New votes will have markers closed after the vote completes."
],
"type": "bool"
},
{
"name": "proxyIndex",
"type": "u16"
},
{
"name": "rentRefund",
"type": "publicKey"
}
]
}
Expand Down Expand Up @@ -1372,10 +1641,14 @@
"type": {
"array": [
"u64",
7
3
]
}
},
{
"name": "proxyConfig",
"type": "publicKey"
},
{
"name": "votingMints",
"type": {
Expand Down
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.3.2"
version = "0.3.3"
edition = "2021"
authors = ["Louis Thiery <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 54392f5

Please sign in to comment.