mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-16 15:10:20 +00:00
cleanup ix names
This commit is contained in:
@@ -5,7 +5,7 @@ use solana_program::{
|
||||
|
||||
use crate::{loaders::*, state::Proof, utils::AccountDeserialize};
|
||||
|
||||
/// Deregister closes a proof account and returns the rent to the owner. Its responsibilities include:
|
||||
/// Close closes a proof account and returns the rent to the owner. Its responsibilities include:
|
||||
/// 1. Realloc proof account size to 0.
|
||||
/// 2. Transfer lamports to the owner.
|
||||
///
|
||||
@@ -13,7 +13,7 @@ use crate::{loaders::*, state::Proof, utils::AccountDeserialize};
|
||||
/// - Deregister is a permissionless instruction and can be invoked by any singer.
|
||||
/// - Can only succeed if the provided proof acount PDA is valid (associated with the signer).
|
||||
/// - The provided system program must be valid.
|
||||
pub fn process_deregister<'a, 'info>(
|
||||
pub fn process_close<'a, 'info>(
|
||||
_program_id: &Pubkey,
|
||||
accounts: &'a [AccountInfo<'info>],
|
||||
_data: &[u8],
|
||||
@@ -1,17 +1,17 @@
|
||||
mod claim;
|
||||
mod deregister;
|
||||
mod close;
|
||||
mod initialize;
|
||||
mod mine;
|
||||
mod register;
|
||||
mod open;
|
||||
mod reset;
|
||||
mod stake;
|
||||
mod upgrade;
|
||||
|
||||
pub use claim::*;
|
||||
pub use deregister::*;
|
||||
pub use close::*;
|
||||
pub use initialize::*;
|
||||
pub use mine::*;
|
||||
pub use register::*;
|
||||
pub use open::*;
|
||||
pub use reset::*;
|
||||
pub use stake::*;
|
||||
pub use upgrade::*;
|
||||
|
||||
@@ -13,7 +13,7 @@ use solana_program::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
instruction::RegisterArgs,
|
||||
instruction::OpenArgs,
|
||||
loaders::*,
|
||||
state::Proof,
|
||||
utils::AccountDeserialize,
|
||||
@@ -30,13 +30,13 @@ use crate::{
|
||||
/// - Can only succeed if the provided proof acount PDA is valid (associated with the signer).
|
||||
/// - Can only succeed if the user does not already have a proof account.
|
||||
/// - The provided system program must be valid.
|
||||
pub fn process_register<'a, 'info>(
|
||||
pub fn process_open<'a, 'info>(
|
||||
_program_id: &Pubkey,
|
||||
accounts: &'a [AccountInfo<'info>],
|
||||
data: &[u8],
|
||||
) -> ProgramResult {
|
||||
// Parse args
|
||||
let args = RegisterArgs::try_from_bytes(data)?;
|
||||
let args = OpenArgs::try_from_bytes(data)?;
|
||||
|
||||
// Load accounts
|
||||
let [signer, proof_info, system_program, slot_hashes_info] = accounts else {
|
||||
Reference in New Issue
Block a user