diff --git a/idl/voter_stake_registry.json b/idl/voter_stake_registry.json index 173bda0..3564a0d 100644 --- a/idl/voter_stake_registry.json +++ b/idl/voter_stake_registry.json @@ -1,344 +1,629 @@ { - "version": "0.4.0", - "name": "voter_stake_registry", + "address": "hvsrNC3NKbcryqDs2DocYHZ9yPKEVzdSjQG6RVtK1s8", + "metadata": { + "name": "voter_stake_registry", + "version": "0.4.6", + "spec": "0.1.0", + "description": "Heliums voter weight plugin for spl-governance" + }, "instructions": [ { - "name": "initializeRegistrarV0", + "name": "clear_recent_proposals_v0", + "discriminator": [ + 149, + 201, + 192, + 200, + 184, + 142, + 146, + 231 + ], "accounts": [ { "name": "registrar", - "isMut": true, - "isSigner": false, - "docs": [ - "The voting registrar. There can only be a single registrar", - "per governance realm and governing mint." - ], + "writable": true, + "relations": [ + "position" + ] + }, + { + "name": "position", + "writable": true + }, + { + "name": "dao", + "signer": true, "pda": { "seeds": [ - { - "kind": "account", - "type": "publicKey", - "path": "realm" - }, { "kind": "const", - "type": "string", - "value": "registrar" + "value": [ + 100, + 97, + 111 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Mint", - "path": "realm_governing_token_mint" + "path": "registrar.realm_governing_token_mint", + "account": "Registrar" } - ] + ], + "program": { + "kind": "const", + "value": [ + 10, + 104, + 152, + 190, + 21, + 252, + 131, + 38, + 148, + 54, + 47, + 241, + 62, + 209, + 226, + 156, + 55, + 230, + 135, + 33, + 39, + 214, + 182, + 249, + 212, + 26, + 40, + 238, + 129, + 125, + 204, + 154 + ] + } + } + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "ClearRecentProposalsArgsV0" + } } + } + ] + }, + { + "name": "close_position_v0", + "discriminator": [ + 173, + 188, + 35, + 215, + 182, + 237, + 158, + 7 + ], + "accounts": [ + { + "name": "sol_destination", + "writable": true }, { - "name": "collection", - "isMut": true, - "isSigner": false, + "name": "position", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "collection" + "value": [ + 112, + 111, + 115, + 105, + 116, + 105, + 111, + 110 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Registrar", - "path": "registrar" + "path": "mint" } ] } }, { - "name": "metadata", - "isMut": true, - "isSigner": false, + "name": "registrar", + "writable": true, + "relations": [ + "position" + ] + }, + { + "name": "mint", + "writable": true, + "relations": [ + "position" + ] + }, + { + "name": "position_token_account", + "writable": true + }, + { + "name": "position_authority", + "signer": true + }, + { + "name": "token_program", + "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" + }, + { + "name": "token_metadata_program", + "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" + } + ], + "args": [] + }, + { + "name": "configure_voting_mint_v0", + "discriminator": [ + 46, + 52, + 225, + 144, + 13, + 214, + 246, + 100 + ], + "accounts": [ + { + "name": "registrar", + "writable": true + }, + { + "name": "realm_authority", + "signer": true, + "relations": [ + "registrar" + ] + }, + { + "name": "mint", + "docs": [ + "Tokens of this mint will produce vote weight" + ] + }, + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [ + { + "name": "args", + "type": { + "defined": { + "name": "ConfigureVotingMintArgsV0" + } + } + } + ] + }, + { + "name": "count_proxy_vote_v0", + "discriminator": [ + 82, + 172, + 157, + 8, + 73, + 214, + 168, + 62 + ], + "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, + { + "name": "marker", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 97, + 114, + 107, + 101, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "path": "token_metadata_program" + "path": "position.mint", + "account": "PositionV0" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", - "path": "collection" + "path": "proposal" } - ], - "programId": { - "kind": "account", - "type": "publicKey", - "path": "token_metadata_program" - } + ] } }, { - "name": "masterEdition", - "isMut": true, - "isSigner": false, + "name": "registrar", + "writable": true, + "relations": [ + "position" + ] + }, + { + "name": "voter", + "relations": [ + "proxy_marker", + "proxy_assignment" + ] + }, + { + "name": "proxy_marker", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 112, + 114, + 111, + 120, + 121, + 95, + 109, + 97, + 114, + 107, + 101, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "path": "token_metadata_program" + "path": "voter" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", - "path": "collection" - }, - { - "kind": "const", - "type": "string", - "value": "edition" + "path": "proposal" } - ], - "programId": { - "kind": "account", - "type": "publicKey", - "path": "token_metadata_program" - } + ] } }, { - "name": "tokenAccount", - "isMut": true, - "isSigner": false + "name": "position", + "writable": true }, { - "name": "realm", - "isMut": false, - "isSigner": false, - "docs": [ - "An spl-governance realm", - "", - "realm is validated in the instruction:", - "- realm is owned by the governance_program_id", - "- realm_governing_token_mint must be the community or council mint", - "- realm_authority is realm.authority" - ] + "name": "proxy_assignment" }, { - "name": "governanceProgramId", - "isMut": false, - "isSigner": false, - "docs": [ - "The program id of the spl-governance program the realm belongs to." + "name": "proposal", + "writable": true, + "relations": [ + "proxy_marker" ] }, { - "name": "realmGoverningTokenMint", - "isMut": false, - "isSigner": false, - "docs": [ - "Either the realm community mint or the council mint." + "name": "proposal_config", + "relations": [ + "proposal" ] }, { - "name": "realmAuthority", - "isMut": false, - "isSigner": true - }, - { - "name": "payer", - "isMut": true, - "isSigner": true - }, - { - "name": "tokenMetadataProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "associatedTokenProgram", - "isMut": false, - "isSigner": false + "name": "state_controller", + "writable": true, + "relations": [ + "proposal_config" + ] }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "on_vote_hook", + "relations": [ + "proposal_config" + ] }, { - "name": "tokenProgram", - "isMut": false, - "isSigner": false + "name": "proposal_program" }, { - "name": "proxyConfig", - "isMut": false, - "isSigner": false, - "isOptional": true + "name": "system_program", + "address": "11111111111111111111111111111111" } ], - "args": [ - { - "name": "args", - "type": { - "defined": "InitializeRegistrarArgsV0" - } - } - ] + "args": [] }, { - "name": "configureVotingMintV0", + "name": "deposit_v0", + "discriminator": [ + 174, + 234, + 80, + 137, + 26, + 149, + 244, + 29 + ], "accounts": [ { "name": "registrar", - "isMut": true, - "isSigner": false, "relations": [ - "realm_authority" + "position" ] }, { - "name": "realmAuthority", - "isMut": false, - "isSigner": true + "name": "position", + "writable": true + }, + { + "name": "vault", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "position" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { "name": "mint", - "isMut": false, - "isSigner": false, - "docs": [ - "Tokens of this mint will produce vote weight" + "relations": [ + "deposit_token" ] }, { - "name": "payer", - "isMut": true, - "isSigner": true + "name": "deposit_token", + "writable": true + }, + { + "name": "deposit_authority", + "signer": true }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "token_program", + "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" } ], "args": [ { "name": "args", "type": { - "defined": "ConfigureVotingMintArgsV0" + "defined": { + "name": "DepositArgsV0" + } } } ] }, { - "name": "initializePositionV0", + "name": "initialize_position_v0", + "discriminator": [ + 251, + 173, + 133, + 198, + 158, + 35, + 152, + 97 + ], "accounts": [ { - "name": "registrar", - "isMut": false, - "isSigner": false, - "relations": [ - "collection" - ] + "name": "registrar" }, { "name": "collection", - "isMut": false, - "isSigner": false + "relations": [ + "registrar" + ] }, { - "name": "collectionMetadata", - "isMut": true, - "isSigner": false, + "name": "collection_metadata", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "collectionMasterEdition", - "isMut": false, - "isSigner": false, + "name": "collection_master_edition", "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "collection" }, { "kind": "const", - "type": "string", - "value": "edition" + "value": [ + 101, + 100, + 105, + 116, + 105, + 111, + 110 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { "name": "position", - "isMut": true, - "isSigner": false, + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "position" + "value": [ + 112, + 111, + 115, + 105, + 116, + 105, + 111, + 110 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "mint" } ] @@ -346,650 +631,1096 @@ }, { "name": "mint", - "isMut": true, - "isSigner": false + "writable": true }, { "name": "metadata", - "isMut": true, - "isSigner": false, + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "mint" } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "masterEdition", - "isMut": true, - "isSigner": false, + "name": "master_edition", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "metadata" + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] }, { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "mint" }, { "kind": "const", - "type": "string", - "value": "edition" + "value": [ + 101, + 100, + 105, + 116, + 105, + 111, + 110 + ] } ], - "programId": { + "program": { "kind": "account", - "type": "publicKey", "path": "token_metadata_program" } } }, { - "name": "positionTokenAccount", - "isMut": true, - "isSigner": false + "name": "position_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "recipient" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "recipient", - "isMut": false, - "isSigner": false + "name": "recipient" }, { "name": "vault", - "isMut": true, - "isSigner": false + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "position" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "deposit_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { "name": "payer", - "isMut": true, - "isSigner": true + "writable": true, + "signer": true }, { - "name": "depositMint", - "isMut": false, - "isSigner": false + "name": "deposit_mint" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" }, { - "name": "tokenProgram", - "isMut": false, - "isSigner": false + "name": "token_program", + "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { - "name": "associatedTokenProgram", - "isMut": false, - "isSigner": false + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { - "name": "tokenMetadataProgram", - "isMut": false, - "isSigner": false + "name": "token_metadata_program", + "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" } ], "args": [ { "name": "args", "type": { - "defined": "InitializePositionArgsV0" + "defined": { + "name": "InitializePositionArgsV0" + } } } ] }, { - "name": "depositV0", + "name": "initialize_registrar_v0", + "discriminator": [ + 120, + 90, + 57, + 8, + 36, + 255, + 82, + 25 + ], "accounts": [ { "name": "registrar", - "isMut": false, - "isSigner": false - }, - { - "name": "position", - "isMut": true, - "isSigner": false, - "relations": [ - "registrar" - ] - }, - { - "name": "vault", - "isMut": true, - "isSigner": false - }, - { - "name": "mint", - "isMut": false, - "isSigner": false - }, - { - "name": "depositToken", - "isMut": true, - "isSigner": false, - "relations": [ - "mint" - ] - }, - { - "name": "depositAuthority", - "isMut": false, - "isSigner": true + "docs": [ + "The voting registrar. There can only be a single registrar", + "per governance realm and governing mint." + ], + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "realm" + }, + { + "kind": "const", + "value": [ + 114, + 101, + 103, + 105, + 115, + 116, + 114, + 97, + 114 + ] + }, + { + "kind": "account", + "path": "realm_governing_token_mint" + } + ] + } }, { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [ - { - "name": "args", - "type": { - "defined": "DepositArgsV0" + "name": "collection", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 99, + 111, + 108, + 108, + 101, + 99, + 116, + 105, + 111, + 110 + ] + }, + { + "kind": "account", + "path": "registrar" + } + ] } - } - ] - }, - { - "name": "withdrawV0", - "accounts": [ + }, { - "name": "positionAuthority", - "isMut": true, - "isSigner": true + "name": "metadata", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] + }, + { + "kind": "account", + "path": "token_metadata_program" + }, + { + "kind": "account", + "path": "collection" + } + ], + "program": { + "kind": "account", + "path": "token_metadata_program" + } + } }, { - "name": "registrar", - "isMut": false, - "isSigner": false + "name": "master_edition", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "const", + "value": [ + 109, + 101, + 116, + 97, + 100, + 97, + 116, + 97 + ] + }, + { + "kind": "account", + "path": "token_metadata_program" + }, + { + "kind": "account", + "path": "collection" + }, + { + "kind": "const", + "value": [ + 101, + 100, + 105, + 116, + 105, + 111, + 110 + ] + } + ], + "program": { + "kind": "account", + "path": "token_metadata_program" + } + } }, { - "name": "position", - "isMut": true, - "isSigner": false, + "name": "token_account", + "writable": true, "pda": { "seeds": [ + { + "kind": "account", + "path": "registrar" + }, { "kind": "const", - "type": "string", - "value": "position" + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Mint", - "path": "mint" + "path": "collection" } - ] - }, - "relations": [ - "registrar", - "mint" + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "realm", + "docs": [ + "An spl-governance realm", + "", + "realm is validated in the instruction:", + "- realm is owned by the governance_program_id", + "- realm_governing_token_mint must be the community or council mint", + "- realm_authority is realm.authority" ] }, { - "name": "mint", - "isMut": false, - "isSigner": false + "name": "governance_program_id", + "docs": [ + "The program id of the spl-governance program the realm belongs to." + ] + }, + { + "name": "realm_governing_token_mint", + "docs": [ + "Either the realm community mint or the council mint." + ] }, { - "name": "positionTokenAccount", - "isMut": true, - "isSigner": false + "name": "realm_authority", + "signer": true }, { - "name": "vault", - "isMut": true, - "isSigner": false + "name": "payer", + "writable": true, + "signer": true }, { - "name": "depositMint", - "isMut": false, - "isSigner": false + "name": "token_metadata_program", + "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" }, { - "name": "destination", - "isMut": true, - "isSigner": false + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" }, { - "name": "associatedTokenProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" }, { - "name": "tokenProgram", - "isMut": false, - "isSigner": false + "name": "token_program", + "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "proxy_config", + "optional": true } ], "args": [ { "name": "args", "type": { - "defined": "WithdrawArgsV0" + "defined": { + "name": "InitializeRegistrarArgsV0" + } } } ] }, { - "name": "closePositionV0", + "name": "ledger_transfer_position_v0", + "discriminator": [ + 6, + 11, + 51, + 147, + 93, + 231, + 39, + 35 + ], "accounts": [ { - "name": "solDestination", - "isMut": true, - "isSigner": false + "name": "payer", + "writable": true, + "signer": true }, { "name": "position", - "isMut": true, - "isSigner": false, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "position" + "value": [ + 112, + 111, + 115, + 105, + 116, + 105, + 111, + 110 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "mint" } ] - }, - "relations": [ - "mint", - "registrar" - ] - }, - { - "name": "registrar", - "isMut": false, - "isSigner": false + } }, { "name": "mint", - "isMut": true, - "isSigner": false - }, - { - "name": "positionTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "positionAuthority", - "isMut": false, - "isSigner": true - }, - { - "name": "tokenProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "tokenMetadataProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [] - }, - { - "name": "resetLockupV0", - "accounts": [ - { - "name": "registrar", - "isMut": false, - "isSigner": false + "writable": true, + "relations": [ + "position" + ] }, { - "name": "positionUpdateAuthority", - "isMut": false, - "isSigner": true + "name": "from_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "from" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "position", - "isMut": true, - "isSigner": false, + "name": "to_token_account", + "writable": true, "pda": { "seeds": [ + { + "kind": "account", + "path": "to" + }, { "kind": "const", - "type": "string", - "value": "position" + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "mint" } - ] - }, - "relations": [ - "registrar", - "mint" - ] + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "mint", - "isMut": false, - "isSigner": false + "name": "from", + "signer": true }, { - "name": "positionTokenAccount", - "isMut": false, - "isSigner": false + "name": "to", + "signer": true }, { - "name": "positionAuthority", - "isMut": false, - "isSigner": true - } - ], - "args": [ + "name": "approver", + "signer": true + }, { - "name": "args", - "type": { - "defined": "ResetLockupArgsV0" - } + "name": "system_program", + "address": "11111111111111111111111111111111" + }, + { + "name": "token_program", + "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" + }, + { + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" } - ] + ], + "args": [] }, { - "name": "transferV0", + "name": "proxied_relinquish_vote_v0", + "discriminator": [ + 233, + 48, + 26, + 36, + 62, + 170, + 79, + 158 + ], "accounts": [ { - "name": "registrar", - "isMut": false, - "isSigner": false - }, - { - "name": "positionUpdateAuthority", - "isMut": false, - "isSigner": true + "name": "rent_refund", + "writable": true, + "relations": [ + "marker" + ] }, { - "name": "sourcePosition", - "isMut": true, - "isSigner": false, + "name": "marker", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "position" + "value": [ + 109, + 97, + 114, + 107, + 101, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Mint", "path": "mint" + }, + { + "kind": "account", + "path": "proposal" } ] - }, + } + }, + { + "name": "registrar", + "writable": true, "relations": [ - "registrar", - "mint" + "marker", + "position" ] }, { - "name": "mint", - "isMut": false, - "isSigner": false + "name": "voter", + "signer": true, + "relations": [ + "proxy_assignment" + ] }, { - "name": "positionTokenAccount", - "isMut": false, - "isSigner": false + "name": "proxy_assignment" }, { - "name": "positionAuthority", - "isMut": false, - "isSigner": true + "name": "position", + "writable": true }, { - "name": "targetPosition", - "isMut": true, - "isSigner": false, + "name": "mint", "relations": [ - "registrar" + "marker", + "position" ] }, { - "name": "depositMint", - "isMut": false, - "isSigner": false + "name": "proposal", + "writable": true + }, + { + "name": "proposal_config", + "relations": [ + "proposal" + ] }, { - "name": "sourceVault", - "isMut": true, - "isSigner": false + "name": "state_controller", + "writable": true, + "relations": [ + "proposal_config" + ] }, { - "name": "targetVault", - "isMut": true, - "isSigner": false + "name": "on_vote_hook", + "relations": [ + "proposal_config" + ] }, { - "name": "tokenProgram", - "isMut": false, - "isSigner": false + "name": "proposal_program" }, { - "name": "associatedTokenProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" } ], "args": [ { "name": "args", "type": { - "defined": "TransferArgsV0" + "defined": { + "name": "RelinquishVoteArgsV1" + } } } ] }, { - "name": "setTimeOffsetV0", - "accounts": [ - { - "name": "registrar", - "isMut": true, - "isSigner": false, - "relations": [ - "realm_authority" - ] - }, - { - "name": "realmAuthority", - "isMut": false, - "isSigner": true - } + "name": "proxied_relinquish_vote_v1", + "discriminator": [ + 68, + 205, + 48, + 30, + 164, + 62, + 0, + 70 ], - "args": [ - { - "name": "timeOffset", - "type": "i64" - } - ] - }, - { - "name": "ledgerTransferPositionV0", "accounts": [ { - "name": "payer", - "isMut": true, - "isSigner": true - }, - { - "name": "position", - "isMut": false, - "isSigner": false, + "name": "marker", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "position" + "value": [ + 112, + 114, + 111, + 120, + 121, + 95, + 109, + 97, + 114, + 107, + 101, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Mint", - "path": "mint" + "path": "voter" + }, + { + "kind": "account", + "path": "proposal" } ] - }, - "relations": [ - "mint" - ] - }, - { - "name": "mint", - "isMut": true, - "isSigner": false - }, - { - "name": "fromTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "toTokenAccount", - "isMut": true, - "isSigner": false - }, - { - "name": "from", - "isMut": false, - "isSigner": true - }, - { - "name": "to", - "isMut": false, - "isSigner": true - }, - { - "name": "approver", - "isMut": false, - "isSigner": true - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false + } }, { - "name": "tokenProgram", - "isMut": false, - "isSigner": false + "name": "voter", + "signer": true }, { - "name": "associatedTokenProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [] - }, - { - "name": "updateRegistrarAuthorityV0", - "accounts": [ - { - "name": "registrar", - "isMut": true, - "isSigner": false, - "relations": [ - "realm_authority" - ] + "name": "proposal", + "writable": true }, { - "name": "realmAuthority", - "isMut": false, - "isSigner": true + "name": "system_program", + "address": "11111111111111111111111111111111" } ], "args": [ { "name": "args", "type": { - "defined": "UpdateRegistrarAuthorityArgsV0" + "defined": { + "name": "VoteArgsV0" + } } } ] }, { - "name": "voteV0", + "name": "proxied_vote_v0", + "discriminator": [ + 138, + 145, + 60, + 51, + 185, + 167, + 162, + 158 + ], "accounts": [ { "name": "payer", - "isMut": true, - "isSigner": true + "writable": true, + "signer": true }, { "name": "marker", - "isMut": true, - "isSigner": false, + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "marker" + "value": [ + 109, + 97, + 114, + 107, + 101, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Mint", - "path": "mint" + "path": "position.mint", + "account": "PositionV0" }, { "kind": "account", - "type": "publicKey", - "account": "ProposalV0", "path": "proposal" } ] @@ -997,1292 +1728,1533 @@ }, { "name": "registrar", - "isMut": false, - "isSigner": false + "writable": true, + "relations": [ + "position" + ] }, { "name": "voter", - "isMut": false, - "isSigner": true - }, - { - "name": "position", - "isMut": true, - "isSigner": false, + "signer": true, "relations": [ - "mint", - "registrar" + "proxy_assignment" ] }, { - "name": "mint", - "isMut": false, - "isSigner": false + "name": "position", + "writable": true }, { - "name": "tokenAccount", - "isMut": false, - "isSigner": false + "name": "proxy_assignment" }, { "name": "proposal", - "isMut": true, - "isSigner": false, - "relations": [ - "proposal_config" - ] + "writable": true }, { - "name": "proposalConfig", - "isMut": false, - "isSigner": false, + "name": "proposal_config", "relations": [ - "on_vote_hook", - "state_controller" + "proposal" ] }, { - "name": "stateController", - "isMut": true, - "isSigner": false + "name": "state_controller", + "writable": true, + "relations": [ + "proposal_config" + ] }, { - "name": "onVoteHook", - "isMut": false, - "isSigner": false + "name": "on_vote_hook", + "relations": [ + "proposal_config" + ] }, { - "name": "proposalProgram", - "isMut": false, - "isSigner": false + "name": "proposal_program" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" } ], "args": [ { "name": "args", "type": { - "defined": "VoteArgsV0" + "defined": { + "name": "VoteArgsV0" + } } } ] }, { - "name": "relinquishVoteV1", + "name": "proxied_vote_v1", + "discriminator": [ + 190, + 176, + 85, + 200, + 29, + 248, + 0, + 127 + ], "accounts": [ + { + "name": "payer", + "writable": true, + "signer": true + }, { "name": "marker", - "isMut": true, - "isSigner": false, + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "marker" + "value": [ + 112, + 114, + 111, + 120, + 121, + 95, + 109, + 97, + 114, + 107, + 101, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "account": "Mint", - "path": "mint" + "path": "voter" }, { "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": "position", - "isMut": true, - "isSigner": false, - "relations": [ - "mint", - "registrar" - ] + "signer": true }, { - "name": "mint", - "isMut": false, - "isSigner": false + "name": "proposal" }, { - "name": "tokenAccount", - "isMut": false, - "isSigner": false - }, + "name": "system_program", + "address": "11111111111111111111111111111111" + } + ], + "args": [ { - "name": "proposal", - "isMut": true, - "isSigner": false, - "relations": [ - "proposal_config" - ] - }, + "name": "args", + "type": { + "defined": { + "name": "VoteArgsV0" + } + } + } + ] + }, + { + "name": "relinquish_expired_proxy_vote_v0", + "discriminator": [ + 171, + 115, + 190, + 138, + 152, + 254, + 238, + 148 + ], + "accounts": [ { - "name": "proposalConfig", - "isMut": false, - "isSigner": false, + "name": "rent_refund", + "writable": true, "relations": [ - "on_vote_hook", - "state_controller" + "marker" ] }, { - "name": "stateController", - "isMut": true, - "isSigner": false - }, - { - "name": "onVoteHook", - "isMut": false, - "isSigner": false - }, - { - "name": "proposalProgram", - "isMut": false, - "isSigner": false + "name": "marker", + "writable": true }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "proposal", + "relations": [ + "marker" + ] }, { - "name": "rentRefund", - "isMut": true, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" } ], - "args": [ - { - "name": "args", - "type": { - "defined": "RelinquishVoteArgsV1" - } - } - ] + "args": [] }, { - "name": "relinquishExpiredVoteV0", + "name": "relinquish_expired_vote_v0", + "discriminator": [ + 202, + 184, + 88, + 82, + 245, + 20, + 104, + 178 + ], "accounts": [ { - "name": "rentRefund", - "isMut": true, - "isSigner": false + "name": "rent_refund", + "writable": true }, { "name": "marker", - "isMut": true, - "isSigner": false, - "pda": { - "seeds": [ - { - "kind": "const", - "type": "string", - "value": "marker" - }, - { - "kind": "account", - "type": "publicKey", - "account": "VoteMarkerV0", - "path": "marker.mint" - }, - { - "kind": "account", - "type": "publicKey", - "account": "ProposalV0", - "path": "proposal" - } - ] - }, - "relations": [ - "proposal", - "rent_refund" - ] + "writable": true }, { "name": "position", - "isMut": true, - "isSigner": false + "writable": true }, { - "name": "proposal", - "isMut": false, - "isSigner": false + "name": "proposal" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" } ], "args": [] }, { - "name": "proxiedRelinquishVoteV0", + "name": "relinquish_vote_v1", + "discriminator": [ + 142, + 201, + 65, + 226, + 112, + 136, + 248, + 102 + ], "accounts": [ - { - "name": "rentRefund", - "isMut": true, - "isSigner": false - }, { "name": "marker", - "isMut": true, - "isSigner": false, + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "marker" + "value": [ + 109, + 97, + 114, + 107, + 101, + 114 + ] }, { "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 + "writable": true, + "relations": [ + "marker", + "position" + ] }, { "name": "voter", - "isMut": false, - "isSigner": true + "signer": true }, { - "name": "proxyAssignment", - "isMut": false, - "isSigner": false, - "relations": [ - "voter" - ] + "name": "position", + "writable": true }, { - "name": "position", - "isMut": true, - "isSigner": false, + "name": "mint", "relations": [ - "mint", - "registrar" + "position" ] }, { - "name": "mint", - "isMut": false, - "isSigner": false + "name": "token_account", + "pda": { + "seeds": [ + { + "kind": "account", + "path": "voter" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { "name": "proposal", - "isMut": true, - "isSigner": false, + "writable": true + }, + { + "name": "proposal_config", "relations": [ - "proposal_config" + "proposal" ] }, { - "name": "proposalConfig", - "isMut": false, - "isSigner": false, + "name": "state_controller", + "writable": true, "relations": [ - "on_vote_hook", - "state_controller" + "proposal_config" ] }, { - "name": "stateController", - "isMut": true, - "isSigner": false + "name": "on_vote_hook", + "relations": [ + "proposal_config" + ] }, { - "name": "onVoteHook", - "isMut": false, - "isSigner": false + "name": "proposal_program" }, { - "name": "proposalProgram", - "isMut": false, - "isSigner": false + "name": "system_program", + "address": "11111111111111111111111111111111" }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "rent_refund", + "writable": true, + "relations": [ + "marker" + ] } ], "args": [ { "name": "args", "type": { - "defined": "RelinquishVoteArgsV1" + "defined": { + "name": "RelinquishVoteArgsV1" + } } } ] }, { - "name": "proxiedVoteV0", + "name": "reset_lockup_v0", + "discriminator": [ + 163, + 196, + 86, + 249, + 96, + 116, + 236, + 194 + ], "accounts": [ { - "name": "payer", - "isMut": true, - "isSigner": true + "name": "registrar", + "relations": [ + "position" + ] }, { - "name": "marker", - "isMut": true, - "isSigner": false, + "name": "position_update_authority", + "signer": true + }, + { + "name": "position", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "marker" - }, - { - "kind": "account", - "type": "publicKey", - "account": "PositionV0", - "path": "position.mint" + "value": [ + 112, + 111, + 115, + 105, + 116, + 105, + 111, + 110 + ] }, { "kind": "account", - "type": "publicKey", - "account": "ProposalV0", - "path": "proposal" + "path": "mint" } ] } }, { - "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, + "name": "mint", "relations": [ - "on_vote_hook", - "state_controller" + "position" ] }, { - "name": "stateController", - "isMut": true, - "isSigner": false - }, - { - "name": "onVoteHook", - "isMut": false, - "isSigner": false + "name": "position_token_account" }, { - "name": "proposalProgram", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "position_authority", + "signer": true } ], "args": [ { "name": "args", "type": { - "defined": "VoteArgsV0" + "defined": { + "name": "ResetLockupArgsV0" + } } } ] }, { - "name": "updateRegistrarV0", + "name": "set_time_offset_v0", + "discriminator": [ + 173, + 231, + 217, + 226, + 178, + 247, + 144, + 87 + ], "accounts": [ { "name": "registrar", - "isMut": true, - "isSigner": false, - "relations": [ - "realm_authority" - ] - }, - { - "name": "realmAuthority", - "isMut": false, - "isSigner": true + "writable": true }, { - "name": "proxyConfig", - "isMut": false, - "isSigner": false, - "isOptional": true + "name": "realm_authority", + "signer": true, + "relations": [ + "registrar" + ] } ], - "args": [] + "args": [ + { + "name": "time_offset", + "type": "i64" + } + ] }, { - "name": "tempReleasePositionV0", + "name": "temp_release_position_v0", + "discriminator": [ + 18, + 41, + 232, + 50, + 253, + 184, + 27, + 43 + ], "accounts": [ { "name": "authority", - "isMut": false, - "isSigner": true + "signer": true, + "address": "hprdnjkbziK8NqhThmAn5Gu4XqrBbctX8du4PfJdgvW" }, { "name": "position", - "isMut": true, - "isSigner": false + "writable": true } ], "args": [] }, { - "name": "relinquishExpiredProxyVoteV0", + "name": "transfer_v0", + "discriminator": [ + 162, + 182, + 193, + 97, + 102, + 85, + 127, + 189 + ], "accounts": [ { - "name": "rentRefund", - "isMut": true, - "isSigner": false - }, - { - "name": "marker", - "isMut": true, - "isSigner": false, + "name": "registrar", "relations": [ - "proposal", - "rent_refund" + "source_position", + "target_position" ] }, { - "name": "proposal", - "isMut": false, - "isSigner": false - }, - { - "name": "systemProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [] - }, - { - "name": "countProxyVoteV0", - "accounts": [ - { - "name": "payer", - "isMut": true, - "isSigner": true + "name": "position_update_authority", + "signer": true }, { - "name": "marker", - "isMut": true, - "isSigner": false, + "name": "source_position", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "marker" - }, - { - "kind": "account", - "type": "publicKey", - "account": "PositionV0", - "path": "position.mint" + "value": [ + 112, + 111, + 115, + 105, + 116, + 105, + 111, + 110 + ] }, { "kind": "account", - "type": "publicKey", - "account": "ProposalV0", - "path": "proposal" + "path": "mint" } ] } }, { - "name": "registrar", - "isMut": true, - "isSigner": false + "name": "mint", + "relations": [ + "source_position" + ] }, { - "name": "voter", - "isMut": false, - "isSigner": false + "name": "position_token_account" + }, + { + "name": "position_authority", + "signer": true + }, + { + "name": "target_position", + "writable": true + }, + { + "name": "deposit_mint" }, { - "name": "proxyMarker", - "isMut": false, - "isSigner": false, + "name": "source_vault", + "writable": true, "pda": { "seeds": [ + { + "kind": "account", + "path": "source_position" + }, { "kind": "const", - "type": "string", - "value": "proxy_marker" + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] }, { "kind": "account", - "type": "publicKey", - "path": "voter" + "path": "deposit_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } + }, + { + "name": "target_vault", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "target_position" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] }, { "kind": "account", - "type": "publicKey", - "account": "ProposalV0", - "path": "proposal" + "path": "deposit_mint" } - ] - }, - "relations": [ - "voter", - "proposal" - ] + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "position", - "isMut": true, - "isSigner": false, - "relations": [ - "registrar" - ] + "name": "token_program", + "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" }, { - "name": "proxyAssignment", - "isMut": false, - "isSigner": false, - "relations": [ - "voter" - ] - }, + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" + } + ], + "args": [ { - "name": "proposal", - "isMut": true, - "isSigner": false, - "relations": [ - "proposal_config" - ] + "name": "args", + "type": { + "defined": { + "name": "TransferArgsV0" + } + } + } + ] + }, + { + "name": "update_registrar_authority_v0", + "discriminator": [ + 121, + 25, + 97, + 199, + 89, + 77, + 38, + 40 + ], + "accounts": [ + { + "name": "registrar", + "writable": true }, { - "name": "proposalConfig", - "isMut": false, - "isSigner": false, + "name": "realm_authority", + "signer": true, "relations": [ - "on_vote_hook", - "state_controller" + "registrar" ] - }, + } + ], + "args": [ { - "name": "stateController", - "isMut": true, - "isSigner": false - }, + "name": "args", + "type": { + "defined": { + "name": "UpdateRegistrarAuthorityArgsV0" + } + } + } + ] + }, + { + "name": "update_registrar_v0", + "discriminator": [ + 74, + 102, + 193, + 203, + 108, + 169, + 140, + 97 + ], + "accounts": [ { - "name": "onVoteHook", - "isMut": false, - "isSigner": false + "name": "registrar", + "writable": true }, { - "name": "proposalProgram", - "isMut": false, - "isSigner": false + "name": "realm_authority", + "signer": true, + "relations": [ + "registrar" + ] }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "proxy_config", + "optional": true } ], "args": [] }, { - "name": "proxiedVoteV1", + "name": "vote_v0", + "discriminator": [ + 82, + 47, + 20, + 22, + 108, + 59, + 245, + 115 + ], "accounts": [ { "name": "payer", - "isMut": true, - "isSigner": true + "writable": true, + "signer": true }, { "name": "marker", - "isMut": true, - "isSigner": false, + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "proxy_marker" + "value": [ + 109, + 97, + 114, + 107, + 101, + 114 + ] }, { "kind": "account", - "type": "publicKey", - "path": "voter" + "path": "mint" }, { "kind": "account", - "type": "publicKey", - "account": "ProposalV0", "path": "proposal" } ] } }, { - "name": "voter", - "isMut": false, - "isSigner": true + "name": "registrar", + "writable": true, + "relations": [ + "position" + ] }, { - "name": "proposal", - "isMut": false, - "isSigner": false + "name": "voter", + "signer": true }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false - } - ], - "args": [ + "name": "position", + "writable": true + }, { - "name": "args", - "type": { - "defined": "VoteArgsV0" - } - } - ] - }, - { - "name": "proxiedRelinquishVoteV1", - "accounts": [ + "name": "mint", + "relations": [ + "position" + ] + }, { - "name": "marker", - "isMut": true, - "isSigner": false, + "name": "token_account", "pda": { "seeds": [ - { - "kind": "const", - "type": "string", - "value": "proxy_marker" - }, { "kind": "account", - "type": "publicKey", "path": "voter" }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, { "kind": "account", - "type": "publicKey", - "account": "ProposalV0", - "path": "proposal" + "path": "mint" } - ] + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } } }, { - "name": "voter", - "isMut": false, - "isSigner": true + "name": "proposal", + "writable": true }, { - "name": "proposal", - "isMut": true, - "isSigner": false + "name": "proposal_config", + "relations": [ + "proposal" + ] + }, + { + "name": "state_controller", + "writable": true, + "relations": [ + "proposal_config" + ] + }, + { + "name": "on_vote_hook", + "relations": [ + "proposal_config" + ] }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "proposal_program" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" } ], "args": [ { "name": "args", "type": { - "defined": "VoteArgsV0" + "defined": { + "name": "VoteArgsV0" + } } } ] }, { - "name": "tempBackfillProxyMarker", + "name": "withdraw_v0", + "discriminator": [ + 240, + 127, + 207, + 228, + 69, + 25, + 253, + 97 + ], "accounts": [ { - "name": "payer", - "isMut": true, - "isSigner": true + "name": "position_authority", + "writable": true, + "signer": true }, { - "name": "marker", - "isMut": true, - "isSigner": false, + "name": "registrar", + "relations": [ + "position" + ] + }, + { + "name": "position", + "writable": true, "pda": { "seeds": [ { "kind": "const", - "type": "string", - "value": "proxy_marker" + "value": [ + 112, + 111, + 115, + 105, + 116, + 105, + 111, + 110 + ] }, { "kind": "account", - "type": "publicKey", - "path": "voter" + "path": "mint" + } + ] + } + }, + { + "name": "mint", + "relations": [ + "position" + ] + }, + { + "name": "position_token_account", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "position_authority" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] }, { "kind": "account", - "type": "publicKey", - "account": "ProposalV0", - "path": "proposal" + "path": "mint" } - ] + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } } }, { - "name": "voter", - "isMut": false, - "isSigner": false + "name": "vault", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "position" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "deposit_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "authority", - "isMut": false, - "isSigner": true + "name": "deposit_mint" }, { - "name": "proposal", - "isMut": false, - "isSigner": false + "name": "destination", + "writable": true, + "pda": { + "seeds": [ + { + "kind": "account", + "path": "position_authority" + }, + { + "kind": "const", + "value": [ + 6, + 221, + 246, + 225, + 215, + 101, + 161, + 147, + 217, + 203, + 225, + 70, + 206, + 235, + 121, + 172, + 28, + 180, + 133, + 237, + 95, + 91, + 55, + 145, + 58, + 140, + 245, + 133, + 126, + 255, + 0, + 169 + ] + }, + { + "kind": "account", + "path": "deposit_mint" + } + ], + "program": { + "kind": "const", + "value": [ + 140, + 151, + 37, + 143, + 78, + 36, + 137, + 241, + 187, + 61, + 16, + 41, + 20, + 142, + 13, + 131, + 11, + 90, + 19, + 153, + 218, + 255, + 16, + 132, + 4, + 142, + 123, + 216, + 219, + 233, + 248, + 89 + ] + } + } }, { - "name": "systemProgram", - "isMut": false, - "isSigner": false + "name": "associated_token_program", + "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL" + }, + { + "name": "token_program", + "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" + }, + { + "name": "system_program", + "address": "11111111111111111111111111111111" } ], "args": [ { "name": "args", "type": { - "defined": "VoteArgsV0" + "defined": { + "name": "WithdrawArgsV0" + } } } ] } ], "accounts": [ + { + "name": "PositionV0", + "discriminator": [ + 152, + 131, + 154, + 46, + 158, + 42, + 31, + 233 + ] + }, + { + "name": "ProposalConfigV0", + "discriminator": [ + 162, + 41, + 210, + 200, + 205, + 177, + 228, + 11 + ] + }, + { + "name": "ProposalV0", + "discriminator": [ + 254, + 194, + 16, + 171, + 214, + 20, + 192, + 81 + ] + }, + { + "name": "ProxyAssignmentV0", + "discriminator": [ + 196, + 152, + 78, + 155, + 132, + 136, + 147, + 55 + ] + }, + { + "name": "ProxyConfigV0", + "discriminator": [ + 187, + 22, + 143, + 173, + 201, + 68, + 34, + 64 + ] + }, + { + "name": "ProxyMarkerV0", + "discriminator": [ + 83, + 225, + 185, + 120, + 185, + 31, + 200, + 178 + ] + }, + { + "name": "Registrar", + "discriminator": [ + 193, + 202, + 205, + 51, + 78, + 168, + 150, + 128 + ] + }, { "name": "VoteMarkerV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "voter", - "type": "publicKey" - }, - { - "name": "registrar", - "type": "publicKey" - }, - { - "name": "proposal", - "type": "publicKey" - }, - { - "name": "mint", - "type": "publicKey" - }, - { - "name": "choices", - "type": { - "vec": "u16" - } - }, - { - "name": "weight", - "type": "u128" - }, - { - "name": "bumpSeed", - "type": "u8" - }, - { - "name": "deprecatedRelinquished", - "docs": [ - "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" - } - ] - } - }, - { - "name": "ProxyMarkerV0", - "docs": [ - "Marker to indicate that a proxy intends to vote this way on a proposal,", - "all votes of proxies are permissionless based on this marker" - ], - "type": { - "kind": "struct", - "fields": [ - { - "name": "voter", - "type": "publicKey" - }, - { - "name": "proposal", - "type": "publicKey" - }, - { - "name": "choices", - "type": { - "vec": "u16" - } - }, - { - "name": "bumpSeed", - "type": "u8" - }, - { - "name": "rentRefund", - "type": "publicKey" - } - ] - } - }, - { - "name": "PositionV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "registrar", - "type": "publicKey" - }, - { - "name": "mint", - "type": "publicKey" - }, - { - "name": "lockup", - "type": { - "defined": "Lockup" - } - }, - { - "name": "amountDepositedNative", - "type": "u64" - }, - { - "name": "votingMintConfigIdx", - "type": "u8" - }, - { - "name": "numActiveVotes", - "type": "u16" - }, - { - "name": "genesisEnd", - "type": "i64" - }, - { - "name": "bumpSeed", - "type": "u8" - }, - { - "name": "voteController", - "type": "publicKey" - } - ] - } - }, - { - "name": "Registrar", - "type": { - "kind": "struct", - "fields": [ - { - "name": "governanceProgramId", - "type": "publicKey" - }, - { - "name": "realm", - "type": "publicKey" - }, - { - "name": "realmGoverningTokenMint", - "type": "publicKey" - }, - { - "name": "realmAuthority", - "type": "publicKey" - }, - { - "name": "timeOffset", - "type": "i64" - }, - { - "name": "positionUpdateAuthority", - "type": { - "option": "publicKey" - } - }, - { - "name": "collection", - "type": "publicKey" - }, - { - "name": "bumpSeed", - "type": "u8" - }, - { - "name": "collectionBumpSeed", - "type": "u8" - }, - { - "name": "reserved1", - "type": { - "array": [ - "u8", - 4 - ] - } - }, - { - "name": "reserved2", - "type": { - "array": [ - "u64", - 3 - ] - } - }, - { - "name": "proxyConfig", - "type": "publicKey" - }, - { - "name": "votingMints", - "type": { - "vec": { - "defined": "VotingMintConfigV0" - } - } - } - ] - } - } - ], - "types": [ - { - "name": "ConfigureVotingMintArgsV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "idx", - "type": "u16" - }, - { - "name": "baselineVoteWeightScaledFactor", - "type": "u64" - }, - { - "name": "maxExtraLockupVoteWeightScaledFactor", - "type": "u64" - }, - { - "name": "genesisVotePowerMultiplier", - "type": "u8" - }, - { - "name": "genesisVotePowerMultiplierExpirationTs", - "type": "i64" - }, - { - "name": "lockupSaturationSecs", - "type": "u64" - } - ] - } - }, - { - "name": "DepositArgsV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "amount", - "type": "u64" - } - ] - } - }, - { - "name": "InitializePositionArgsV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "kind", - "type": { - "defined": "LockupKind" - } - }, - { - "name": "periods", - "type": "u32" - } - ] - } - }, - { - "name": "InitializeRegistrarArgsV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "positionUpdateAuthority", - "type": { - "option": "publicKey" - } - } - ] - } - }, - { - "name": "RelinquishVoteArgsV1", - "type": { - "kind": "struct", - "fields": [ - { - "name": "choice", - "type": "u16" - } - ] - } - }, - { - "name": "ResetLockupArgsV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "kind", - "type": { - "defined": "LockupKind" - } - }, - { - "name": "periods", - "type": "u32" - } - ] - } - }, - { - "name": "TransferArgsV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "amount", - "type": "u64" - } - ] - } - }, - { - "name": "UpdateRegistrarAuthorityArgsV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "authority", - "type": "publicKey" - } - ] - } - }, - { - "name": "VoteArgsV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "choice", - "type": "u16" - } - ] - } - }, - { - "name": "WithdrawArgsV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "amount", - "type": "u64" - } - ] - } - }, - { - "name": "Lockup", - "type": { - "kind": "struct", - "fields": [ - { - "name": "startTs", - "type": "i64" - }, - { - "name": "endTs", - "type": "i64" - }, - { - "name": "kind", - "type": { - "defined": "LockupKind" - } - } - ] - } - }, - { - "name": "VotingMintConfigV0", - "type": { - "kind": "struct", - "fields": [ - { - "name": "mint", - "type": "publicKey" - }, - { - "name": "baselineVoteWeightScaledFactor", - "type": "u64" - }, - { - "name": "maxExtraLockupVoteWeightScaledFactor", - "type": "u64" - }, - { - "name": "genesisVotePowerMultiplier", - "type": "u8" - }, - { - "name": "genesisVotePowerMultiplierExpirationTs", - "type": "i64" - }, - { - "name": "lockupSaturationSecs", - "type": "u64" - }, - { - "name": "reserved", - "type": "i8" - } - ] - } - }, - { - "name": "LockupKind", - "type": { - "kind": "enum", - "variants": [ - { - "name": "None" - }, - { - "name": "Cliff" - }, - { - "name": "Constant" - } - ] - } + "discriminator": [ + 83, + 205, + 59, + 215, + 144, + 234, + 43, + 70 + ] } ], "errors": [ @@ -2492,102 +3464,857 @@ "msg": "" }, { - "code": 6041, - "name": "InvalidMintAmount", - "msg": "" + "code": 6041, + "name": "InvalidMintAmount", + "msg": "" + }, + { + "code": 6042, + "name": "DuplicatedNftDetected", + "msg": "" + }, + { + "code": 6043, + "name": "InvalidTokenOwnerForVoterWeightRecord", + "msg": "" + }, + { + "code": 6044, + "name": "NftAlreadyVoted", + "msg": "" + }, + { + "code": 6045, + "name": "InvalidProposalForNftVoteRecord", + "msg": "" + }, + { + "code": 6046, + "name": "InvalidTokenOwnerForNftVoteRecord", + "msg": "" + }, + { + "code": 6047, + "name": "UninitializedAccount", + "msg": "" + }, + { + "code": 6048, + "name": "PositionNotWritable", + "msg": "" + }, + { + "code": 6049, + "name": "InvalidVoteRecordForNftVoteRecord", + "msg": "" + }, + { + "code": 6050, + "name": "VoteRecordMustBeWithdrawn", + "msg": "" + }, + { + "code": 6051, + "name": "VoterWeightRecordMustBeExpired", + "msg": "" + }, + { + "code": 6052, + "name": "InvalidMintForPosition", + "msg": "" + }, + { + "code": 6053, + "name": "InvalidOwner", + "msg": "" + }, + { + "code": 6054, + "name": "NoDepositOnGenesisPositions", + "msg": "You may not deposit additional tokens on a position created during the genesis period that still has the genesis multiplier" + }, + { + "code": 6055, + "name": "ActiveVotesExist", + "msg": "Cannot change a position while active votes exist" + }, + { + "code": 6056, + "name": "UnauthorizedPositionUpdateAuthority", + "msg": "Position update authority must sign off on this transaction" + }, + { + "code": 6057, + "name": "SamePosition", + "msg": "Cannot transfer to the same position" + }, + { + "code": 6058, + "name": "MaxChoicesExceeded" + }, + { + "code": 6059, + "name": "NoVoteForThisChoice" + }, + { + "code": 6060, + "name": "NoChangesToCount", + "msg": "No changes to count" + } + ], + "types": [ + { + "name": "Choice", + "type": { + "kind": "struct", + "fields": [ + { + "name": "weight", + "type": "u128" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "uri", + "type": { + "option": "string" + } + } + ] + } + }, + { + "name": "ClearRecentProposalsArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "ts", + "type": "i64" + }, + { + "name": "dao_bump", + "type": "u8" + } + ] + } + }, + { + "name": "ConfigureVotingMintArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "idx", + "type": "u16" + }, + { + "name": "baseline_vote_weight_scaled_factor", + "type": "u64" + }, + { + "name": "max_extra_lockup_vote_weight_scaled_factor", + "type": "u64" + }, + { + "name": "genesis_vote_power_multiplier", + "type": "u8" + }, + { + "name": "genesis_vote_power_multiplier_expiration_ts", + "type": "i64" + }, + { + "name": "lockup_saturation_secs", + "type": "u64" + } + ] + } + }, + { + "name": "DepositArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "amount", + "type": "u64" + } + ] + } + }, + { + "name": "InitializePositionArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "kind", + "type": { + "defined": { + "name": "LockupKind" + } + } + }, + { + "name": "periods", + "type": "u32" + } + ] + } + }, + { + "name": "InitializeRegistrarArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "position_update_authority", + "type": { + "option": "pubkey" + } + } + ] + } + }, + { + "name": "Lockup", + "type": { + "kind": "struct", + "fields": [ + { + "name": "start_ts", + "type": "i64" + }, + { + "name": "end_ts", + "type": "i64" + }, + { + "name": "kind", + "type": { + "defined": { + "name": "LockupKind" + } + } + } + ] + } }, { - "code": 6042, - "name": "DuplicatedNftDetected", - "msg": "" + "name": "LockupKind", + "repr": { + "kind": "rust" + }, + "type": { + "kind": "enum", + "variants": [ + { + "name": "None" + }, + { + "name": "Cliff" + }, + { + "name": "Constant" + } + ] + } }, { - "code": 6043, - "name": "InvalidTokenOwnerForVoterWeightRecord", - "msg": "" + "name": "PositionV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "registrar", + "type": "pubkey" + }, + { + "name": "mint", + "type": "pubkey" + }, + { + "name": "lockup", + "type": { + "defined": { + "name": "Lockup" + } + } + }, + { + "name": "amount_deposited_native", + "type": "u64" + }, + { + "name": "voting_mint_config_idx", + "type": "u8" + }, + { + "name": "num_active_votes", + "type": "u16" + }, + { + "name": "genesis_end", + "type": "i64" + }, + { + "name": "bump_seed", + "type": "u8" + }, + { + "name": "vote_controller", + "type": "pubkey" + }, + { + "name": "registrar_paid_rent", + "type": "u64" + }, + { + "name": "recent_proposals", + "type": { + "vec": { + "defined": { + "name": "RecentProposal" + } + } + } + } + ] + } }, { - "code": 6044, - "name": "NftAlreadyVoted", - "msg": "" + "name": "ProposalConfigV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "vote_controller", + "type": "pubkey" + }, + { + "name": "state_controller", + "type": "pubkey" + }, + { + "name": "on_vote_hook", + "type": "pubkey" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "bump_seed", + "type": "u8" + } + ] + } }, { - "code": 6045, - "name": "InvalidProposalForNftVoteRecord", - "msg": "" + "name": "ProposalState", + "type": { + "kind": "enum", + "variants": [ + { + "name": "Draft" + }, + { + "name": "Cancelled" + }, + { + "name": "Voting", + "fields": [ + { + "name": "start_ts", + "type": "i64" + } + ] + }, + { + "name": "Resolved", + "fields": [ + { + "name": "choices", + "type": { + "vec": "u16" + } + }, + { + "name": "end_ts", + "type": "i64" + } + ] + }, + { + "name": "Custom", + "fields": [ + { + "name": "name", + "type": "string" + }, + { + "name": "bin", + "type": "bytes" + } + ] + } + ] + } }, { - "code": 6046, - "name": "InvalidTokenOwnerForNftVoteRecord", - "msg": "" + "name": "ProposalV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "namespace", + "type": "pubkey" + }, + { + "name": "owner", + "type": "pubkey" + }, + { + "name": "state", + "type": { + "defined": { + "name": "ProposalState" + } + } + }, + { + "name": "created_at", + "type": "i64" + }, + { + "name": "proposal_config", + "type": "pubkey" + }, + { + "name": "max_choices_per_voter", + "type": "u16" + }, + { + "name": "seed", + "type": "bytes" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "uri", + "type": "string" + }, + { + "name": "tags", + "type": { + "vec": "string" + } + }, + { + "name": "choices", + "type": { + "vec": { + "defined": { + "name": "Choice" + } + } + } + }, + { + "name": "bump_seed", + "type": "u8" + } + ] + } }, { - "code": 6047, - "name": "UninitializedAccount", - "msg": "" + "name": "ProxyAssignmentV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "voter", + "type": "pubkey" + }, + { + "name": "proxy_config", + "type": "pubkey" + }, + { + "name": "asset", + "type": "pubkey" + }, + { + "name": "index", + "type": "u16" + }, + { + "name": "next_voter", + "type": "pubkey" + }, + { + "name": "rent_refund", + "type": "pubkey" + }, + { + "name": "expiration_time", + "type": "i64" + }, + { + "name": "bump_seed", + "type": "u8" + } + ] + } }, { - "code": 6048, - "name": "PositionNotWritable", - "msg": "" + "name": "ProxyConfigV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "authority", + "type": "pubkey" + }, + { + "name": "name", + "type": "string" + }, + { + "name": "max_proxy_time", + "type": "i64" + }, + { + "name": "seasons", + "type": { + "vec": { + "defined": { + "name": "SeasonV0" + } + } + } + } + ] + } }, { - "code": 6049, - "name": "InvalidVoteRecordForNftVoteRecord", - "msg": "" + "name": "ProxyMarkerV0", + "docs": [ + "Marker to indicate that a proxy intends to vote this way on a proposal,", + "all votes of proxies are permissionless based on this marker" + ], + "type": { + "kind": "struct", + "fields": [ + { + "name": "voter", + "type": "pubkey" + }, + { + "name": "proposal", + "type": "pubkey" + }, + { + "name": "choices", + "type": { + "vec": "u16" + } + }, + { + "name": "bump_seed", + "type": "u8" + }, + { + "name": "rent_refund", + "type": "pubkey" + } + ] + } }, { - "code": 6050, - "name": "VoteRecordMustBeWithdrawn", - "msg": "" + "name": "RecentProposal", + "type": { + "kind": "struct", + "fields": [ + { + "name": "proposal", + "type": "pubkey" + }, + { + "name": "ts", + "type": "i64" + } + ] + } }, { - "code": 6051, - "name": "VoterWeightRecordMustBeExpired", - "msg": "" + "name": "Registrar", + "type": { + "kind": "struct", + "fields": [ + { + "name": "governance_program_id", + "type": "pubkey" + }, + { + "name": "realm", + "type": "pubkey" + }, + { + "name": "realm_governing_token_mint", + "type": "pubkey" + }, + { + "name": "realm_authority", + "type": "pubkey" + }, + { + "name": "time_offset", + "type": "i64" + }, + { + "name": "position_update_authority", + "type": { + "option": "pubkey" + } + }, + { + "name": "collection", + "type": "pubkey" + }, + { + "name": "bump_seed", + "type": "u8" + }, + { + "name": "collection_bump_seed", + "type": "u8" + }, + { + "name": "reserved1", + "type": { + "array": [ + "u8", + 4 + ] + } + }, + { + "name": "reserved2", + "type": { + "array": [ + "u64", + 3 + ] + } + }, + { + "name": "proxy_config", + "type": "pubkey" + }, + { + "name": "voting_mints", + "type": { + "vec": { + "defined": { + "name": "VotingMintConfigV0" + } + } + } + } + ] + } }, { - "code": 6052, - "name": "InvalidMintForPosition", - "msg": "" + "name": "RelinquishVoteArgsV1", + "type": { + "kind": "struct", + "fields": [ + { + "name": "choice", + "type": "u16" + } + ] + } }, { - "code": 6053, - "name": "InvalidOwner", - "msg": "" + "name": "ResetLockupArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "kind", + "type": { + "defined": { + "name": "LockupKind" + } + } + }, + { + "name": "periods", + "type": "u32" + } + ] + } }, { - "code": 6054, - "name": "NoDepositOnGenesisPositions", - "msg": "You may not deposit additional tokens on a position created during the genesis period that still has the genesis multiplier" + "name": "SeasonV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "start", + "type": "i64" + }, + { + "name": "end", + "type": "i64" + } + ] + } }, { - "code": 6055, - "name": "ActiveVotesExist", - "msg": "Cannot change a position while active votes exist" + "name": "TransferArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "amount", + "type": "u64" + } + ] + } }, { - "code": 6056, - "name": "UnauthorizedPositionUpdateAuthority", - "msg": "Position update authority must sign off on this transaction" + "name": "UpdateRegistrarAuthorityArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "authority", + "type": "pubkey" + } + ] + } }, { - "code": 6057, - "name": "SamePosition", - "msg": "Cannot transfer to the same position" + "name": "VoteArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "choice", + "type": "u16" + } + ] + } }, { - "code": 6058, - "name": "MaxChoicesExceeded" + "name": "VoteMarkerV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "voter", + "type": "pubkey" + }, + { + "name": "registrar", + "type": "pubkey" + }, + { + "name": "proposal", + "type": "pubkey" + }, + { + "name": "mint", + "type": "pubkey" + }, + { + "name": "choices", + "type": { + "vec": "u16" + } + }, + { + "name": "weight", + "type": "u128" + }, + { + "name": "bump_seed", + "type": "u8" + }, + { + "name": "_deprecated_relinquished", + "docs": [ + "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": "proxy_index", + "type": "u16" + }, + { + "name": "rent_refund", + "type": "pubkey" + } + ] + } }, { - "code": 6059, - "name": "NoVoteForThisChoice" + "name": "VotingMintConfigV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "mint", + "type": "pubkey" + }, + { + "name": "baseline_vote_weight_scaled_factor", + "type": "u64" + }, + { + "name": "max_extra_lockup_vote_weight_scaled_factor", + "type": "u64" + }, + { + "name": "genesis_vote_power_multiplier", + "type": "u8" + }, + { + "name": "genesis_vote_power_multiplier_expiration_ts", + "type": "i64" + }, + { + "name": "lockup_saturation_secs", + "type": "u64" + }, + { + "name": "reserved", + "type": "i8" + } + ] + } }, { - "code": 6060, - "name": "NoChangesToCount", - "msg": "No changes to count" + "name": "WithdrawArgsV0", + "type": { + "kind": "struct", + "fields": [ + { + "name": "amount", + "type": "u64" + } + ] + } } ] } \ No newline at end of file diff --git a/programs/voter-stake-registry/Cargo.toml b/programs/voter-stake-registry/Cargo.toml index a54888b..3ae65a6 100644 --- a/programs/voter-stake-registry/Cargo.toml +++ b/programs/voter-stake-registry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "voter-stake-registry" -version = "0.4.0" +version = "0.4.6" edition = "2021" authors = ["Louis Thiery "] license = "Apache-2.0"