Skip to content

Commit

Permalink
idl-update: program-voter-stake-registry-0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lthiery committed Aug 2, 2024
1 parent a0e363d commit e88893f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 271 deletions.
292 changes: 22 additions & 270 deletions idl/voter_stake_registry.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.1",
"version": "0.3.2",
"name": "voter_stake_registry",
"instructions": [
{
Expand Down Expand Up @@ -242,7 +242,7 @@
"accounts": [
{
"name": "registrar",
"isMut": true,
"isMut": false,
"isSigner": false,
"relations": [
"collection"
Expand Down Expand Up @@ -840,67 +840,6 @@
}
]
},
{
"name": "relinquishVoteV0",
"accounts": [
{
"name": "registrar",
"isMut": false,
"isSigner": false
},
{
"name": "voterWeightRecord",
"isMut": true,
"isSigner": false
},
{
"name": "governance",
"isMut": false,
"isSigner": false,
"docs": [
"Governance account the Proposal is for"
]
},
{
"name": "proposal",
"isMut": false,
"isSigner": false
},
{
"name": "voterTokenOwnerRecord",
"isMut": false,
"isSigner": false,
"docs": [
"TokenOwnerRecord of the voter who cast the original vote"
]
},
{
"name": "voterAuthority",
"isMut": false,
"isSigner": true,
"docs": [
"Authority of the voter who cast the original vote",
"It can be either governing_token_owner or its delegate and must sign this instruction"
]
},
{
"name": "voteRecord",
"isMut": false,
"isSigner": false,
"docs": [
"The account is used to validate that it doesn't exist and if it doesn't then Anchor owner check throws error",
"The check is disabled here and performed inside the instruction",
"#[account(owner = registrar.governance_program_id)]"
]
},
{
"name": "beneficiary",
"isMut": true,
"isSigner": false
}
],
"args": []
},
{
"name": "ledgerTransferPositionV0",
"accounts": [
Expand Down Expand Up @@ -987,48 +926,24 @@
"name": "registrar",
"isMut": true,
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "account",
"type": "publicKey",
"path": "realm"
},
{
"kind": "const",
"type": "string",
"value": "registrar"
},
{
"kind": "account",
"type": "publicKey",
"account": "Registrar",
"path": "registrar.realm_governing_token_mint"
}
]
},
"relations": [
"realm",
"realm_authority"
]
},
{
"name": "realmAuthority",
"isMut": false,
"isSigner": true
},
{
"name": "realm",
"isMut": false,
"isSigner": false
},
{
"name": "governanceProgramId",
"isMut": false,
"isSigner": false
}
],
"args": []
"args": [
{
"name": "args",
"type": {
"defined": "UpdateRegistrarAuthorityArgsV0"
}
}
]
},
{
"name": "voteV0",
Expand Down Expand Up @@ -1306,50 +1221,6 @@
}
],
"args": []
},
{
"name": "adminCloseNftVoteRecord",
"accounts": [
{
"name": "admin",
"isMut": false,
"isSigner": true
},
{
"name": "voteRecord",
"isMut": true,
"isSigner": false,
"relations": [
"governing_token_owner"
]
},
{
"name": "position",
"isMut": true,
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "position"
},
{
"kind": "account",
"type": "publicKey",
"account": "NftVoteRecord",
"path": "vote_record.nft_mint"
}
]
}
},
{
"name": "governingTokenOwner",
"isMut": true,
"isSigner": false
}
],
"args": []
}
],
"accounts": [
Expand Down Expand Up @@ -1398,61 +1269,6 @@
]
}
},
{
"name": "MaxVoterWeightRecord",
"type": {
"kind": "struct",
"fields": [
{
"name": "realm",
"type": "publicKey"
},
{
"name": "governingTokenMint",
"type": "publicKey"
},
{
"name": "maxVoterWeight",
"type": "u64"
},
{
"name": "maxVoterWeightExpiry",
"type": {
"option": "u64"
}
},
{
"name": "reserved",
"type": {
"array": [
"u8",
8
]
}
}
]
}
},
{
"name": "NftVoteRecord",
"type": {
"kind": "struct",
"fields": [
{
"name": "proposal",
"type": "publicKey"
},
{
"name": "nftMint",
"type": "publicKey"
},
{
"name": "governingTokenOwner",
"type": "publicKey"
}
]
}
},
{
"name": "PositionV0",
"type": {
Expand Down Expand Up @@ -1570,59 +1386,6 @@
}
]
}
},
{
"name": "VoterWeightRecord",
"type": {
"kind": "struct",
"fields": [
{
"name": "realm",
"type": "publicKey"
},
{
"name": "governingTokenMint",
"type": "publicKey"
},
{
"name": "governingTokenOwner",
"type": "publicKey"
},
{
"name": "voterWeight",
"type": "u64"
},
{
"name": "voterWeightExpiry",
"type": {
"option": "u64"
}
},
{
"name": "weightAction",
"type": {
"option": {
"defined": "VoterWeightAction"
}
}
},
{
"name": "weightActionTarget",
"type": {
"option": "publicKey"
}
},
{
"name": "reserved",
"type": {
"array": [
"u8",
8
]
}
}
]
}
}
],
"types": [
Expand Down Expand Up @@ -1744,6 +1507,18 @@
]
}
},
{
"name": "UpdateRegistrarAuthorityArgsV0",
"type": {
"kind": "struct",
"fields": [
{
"name": "authority",
"type": "publicKey"
}
]
}
},
{
"name": "VoteArgsV0",
"type": {
Expand Down Expand Up @@ -1842,29 +1617,6 @@
}
]
}
},
{
"name": "VoterWeightAction",
"type": {
"kind": "enum",
"variants": [
{
"name": "CastVote"
},
{
"name": "CommentProposal"
},
{
"name": "CreateGovernance"
},
{
"name": "CreateProposal"
},
{
"name": "SignOffProposal"
}
]
}
}
],
"errors": [
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.1"
version = "0.3.2"
edition = "2021"
authors = ["Louis Thiery <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit e88893f

Please sign in to comment.