generated from metaplex-foundation/solana-project-template
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
304 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
use mpl_utils::assert_signer; | ||
use solana_program::{ | ||
account_info::AccountInfo, entrypoint::ProgramResult, program::invoke, | ||
program_memory::sol_memcpy, rent::Rent, system_instruction, system_program, sysvar::Sysvar, | ||
}; | ||
|
||
use crate::{ | ||
error::MplAssetError, | ||
instruction::accounts::CreateAccounts, | ||
state::{Asset, Compressible, DataState, HashedAsset, Key}, | ||
}; | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub enum MigrationLevel { | ||
MigrateOnly, | ||
MigrateAndBurn, | ||
} | ||
|
||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub struct BurnArgs {} | ||
|
||
pub(crate) fn burn<'a>(accounts: &'a [AccountInfo<'a>], args: BurnArgs) -> ProgramResult { | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
use mpl_utils::assert_signer; | ||
use solana_program::{ | ||
account_info::AccountInfo, entrypoint::ProgramResult, program::invoke, | ||
program_memory::sol_memcpy, rent::Rent, system_instruction, system_program, sysvar::Sysvar, | ||
}; | ||
|
||
use crate::{ | ||
error::MplAssetError, | ||
instruction::accounts::CreateAccounts, | ||
state::{Asset, Compressible, DataState, HashedAsset, Key}, | ||
}; | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub enum MigrationLevel { | ||
MigrateOnly, | ||
MigrateAndBurn, | ||
} | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub struct CompressArgs {} | ||
|
||
pub(crate) fn compress<'a>(accounts: &'a [AccountInfo<'a>], args: CompressArgs) -> ProgramResult { | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
use mpl_utils::assert_signer; | ||
use solana_program::{ | ||
account_info::AccountInfo, entrypoint::ProgramResult, program::invoke, | ||
program_memory::sol_memcpy, rent::Rent, system_instruction, system_program, sysvar::Sysvar, | ||
}; | ||
|
||
use crate::{ | ||
error::MplAssetError, | ||
instruction::accounts::CreateAccounts, | ||
state::{Asset, Compressible, DataState, HashedAsset, Key}, | ||
}; | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub enum MigrationLevel { | ||
MigrateOnly, | ||
MigrateAndBurn, | ||
} | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub struct DecompressArgs {} | ||
|
||
pub(crate) fn decompress<'a>( | ||
accounts: &'a [AccountInfo<'a>], | ||
args: DecompressArgs, | ||
) -> ProgramResult { | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
use mpl_utils::assert_signer; | ||
use solana_program::{ | ||
account_info::AccountInfo, entrypoint::ProgramResult, program::invoke, | ||
program_memory::sol_memcpy, rent::Rent, system_instruction, system_program, sysvar::Sysvar, | ||
}; | ||
|
||
use crate::{ | ||
error::MplAssetError, | ||
instruction::accounts::CreateAccounts, | ||
state::{Asset, Compressible, DataState, HashedAsset, Key}, | ||
}; | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub enum MigrationLevel { | ||
MigrateOnly, | ||
MigrateAndBurn, | ||
} | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub struct DelegateArgs {} | ||
|
||
pub(crate) fn delegate<'a>(accounts: &'a [AccountInfo<'a>], args: DelegateArgs) -> ProgramResult { | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
use mpl_utils::assert_signer; | ||
use solana_program::{ | ||
account_info::AccountInfo, entrypoint::ProgramResult, program::invoke, | ||
program_memory::sol_memcpy, rent::Rent, system_instruction, system_program, sysvar::Sysvar, | ||
}; | ||
|
||
use crate::{ | ||
error::MplAssetError, | ||
instruction::accounts::CreateAccounts, | ||
state::{Asset, Compressible, DataState, HashedAsset, Key}, | ||
}; | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub enum MigrationLevel { | ||
MigrateOnly, | ||
MigrateAndBurn, | ||
} | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub struct FreezeArgs {} | ||
|
||
pub(crate) fn freeze<'a>(accounts: &'a [AccountInfo<'a>], args: FreezeArgs) -> ProgramResult { | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
use mpl_utils::assert_signer; | ||
use solana_program::{ | ||
account_info::AccountInfo, entrypoint::ProgramResult, program::invoke, | ||
program_memory::sol_memcpy, rent::Rent, system_instruction, system_program, sysvar::Sysvar, | ||
}; | ||
|
||
use crate::{ | ||
error::MplAssetError, | ||
instruction::accounts::CreateAccounts, | ||
state::{Asset, Compressible, DataState, HashedAsset, Key}, | ||
}; | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub enum MigrationLevel { | ||
MigrateOnly, | ||
MigrateAndBurn, | ||
} | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub struct MigrateArgs { | ||
pub data_state: DataState, | ||
pub level: MigrationLevel, | ||
} | ||
|
||
pub(crate) fn migrate<'a>(accounts: &'a [AccountInfo<'a>], args: MigrateArgs) -> ProgramResult { | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
use mpl_utils::assert_signer; | ||
use solana_program::{ | ||
account_info::AccountInfo, entrypoint::ProgramResult, program::invoke, | ||
program_memory::sol_memcpy, rent::Rent, system_instruction, system_program, sysvar::Sysvar, | ||
}; | ||
|
||
use crate::{ | ||
error::MplAssetError, | ||
instruction::accounts::CreateAccounts, | ||
state::{Asset, Compressible, DataState, HashedAsset, Key}, | ||
}; | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub enum MigrationLevel { | ||
MigrateOnly, | ||
MigrateAndBurn, | ||
} | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub struct ThawArgs {} | ||
|
||
pub(crate) fn thaw<'a>(accounts: &'a [AccountInfo<'a>], args: ThawArgs) -> ProgramResult { | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use borsh::{BorshDeserialize, BorshSerialize}; | ||
use mpl_utils::assert_signer; | ||
use solana_program::{ | ||
account_info::AccountInfo, entrypoint::ProgramResult, program::invoke, | ||
program_memory::sol_memcpy, rent::Rent, system_instruction, system_program, sysvar::Sysvar, | ||
}; | ||
|
||
use crate::{ | ||
error::MplAssetError, | ||
instruction::accounts::CreateAccounts, | ||
state::{Asset, Compressible, DataState, HashedAsset, Key}, | ||
}; | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub enum MigrationLevel { | ||
MigrateOnly, | ||
MigrateAndBurn, | ||
} | ||
|
||
#[repr(C)] | ||
#[derive(BorshSerialize, BorshDeserialize, PartialEq, Eq, Debug, Clone)] | ||
pub struct TransferArgs {} | ||
|
||
pub(crate) fn transfer<'a>(accounts: &'a [AccountInfo<'a>], args: TransferArgs) -> ProgramResult { | ||
Ok(()) | ||
} |
Oops, something went wrong.