MCPcopy Create free account

hub / github.com/Ackee-Blockchain/Solana-Auditors-Bootcamp / functions

Functions216 in github.com/Ackee-Blockchain/Solana-Auditors-Bootcamp

↓ 8 callersMethodexit
( &self, program_id: &anchor_lang::solana_program::pubkey::Pubkey,
Lesson-1/anchor_solana-expanded.rs:624
↓ 6 callersMethodclone
(&self)
Lesson-1/anchor_solana-expanded.rs:169
↓ 6 callersFunctiongetMetadataAccountAddress
( creator: web3.PublicKey, programId: web3.PublicKey )
Lesson-6/pda-privileges/tests/pda-privileges.ts:161
↓ 6 callersFunctiongetVaultAddress
( creator: web3.PublicKey, mint: web3.PublicKey )
Lesson-6/pda-privileges/tests/pda-privileges.ts:171
↓ 6 callersMethodto_account_metas
( &self, is_signer: Option<bool>, )
Lesson-1/anchor_solana-expanded.rs:606
↓ 5 callersFunctionderiveSecretAddress
(creator: web3.PublicKey, programId: web3.PublicKey)
Lesson-6/arbitrary-cpi/tests/arbitrary-cpi.ts:125
↓ 4 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/duplicate-mutable-accounts/tests/duplicate-mutable-accounts.ts:131
↓ 4 callersFunctionbuild_ix
Function to build the actual Solana instruction using the program ID, accounts, and data.
Lesson-2/rust-tests/programs/rust-tests/tests/rust-tests.rs:191
↓ 4 callersFunctionderiveVaultAddress
(creator: web3.PublicKey, programId: web3.PublicKey)
Lesson-6/duplicate-mutable-accounts/tests/duplicate-mutable-accounts.ts:143
↓ 4 callersFunctiongenerate_signer
Function to generate a new keypair for signing transactions.
Lesson-2/rust-tests/programs/rust-tests/tests/utils.rs:27
↓ 4 callersFunctiongetEscrowAddress
(programId: web3.PublicKey)
Lesson-6/signer-authorization/tests/signer-authorization.ts:111
↓ 4 callersFunctionget_metadata_addresses
( signer: anchor.web3.PublicKey, program_id: anchor.web3.PublicKey, )
Lesson-6/account-reloading/tests/account-reloading.ts:108
↓ 4 callersFunctionmath_function
Define a public function named `math_function` that takes an input of type u8 and returns a u8.
Lesson-2/rust-unit-tests/programs/rust-unit-tests/src/instructions/utils.rs:5
↓ 4 callersFunctionprocess_instruction
Function to process an instruction in the program test context and ensure it is finalized.
Lesson-2/rust-tests/programs/rust-tests/tests/utils.rs:50
↓ 3 callersFunctionderiveFeeVaultAddress
(programId: web3.PublicKey)
Lesson-6/duplicate-mutable-accounts/tests/duplicate-mutable-accounts.ts:151
↓ 3 callersFunctionget_config_addresses
( program_id: anchor.web3.PublicKey, )
Lesson-6/initialization-frontrunning/tests/initialization-frontrunning.ts:87
↓ 2 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/arbitrary-cpi/tests/arbitrary-cpi.ts:114
↓ 2 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/pda-privileges/tests/pda-privileges.ts:150
↓ 2 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/revival-attack/tests/revival-attack.ts:76
↓ 2 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/signer-authorization/tests/signer-authorization.ts:100
↓ 2 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/type-cosplay/tests/type-cosplay.ts:38
↓ 2 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/re-initialization/tests/re-initialization.ts:82
↓ 2 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/ownership-check/tests/ownership-check.ts:38
↓ 2 callersFunctionairdrop
(connection: any, address: any, amount = 1000000000)
Capture-the-Flag/level-2/tests/exploit.ts:79
↓ 2 callersFunctionairdrop
Function to add an account with the specified amount of lamports to the program test.
Lesson-2/rust-tests/programs/rust-tests/tests/utils.rs:42
↓ 2 callersFunctionget_program_data_addresses
( program_id: anchor.web3.PublicKey, )
Lesson-6/initialization-frontrunning/tests/initialization-frontrunning.ts:101
↓ 2 callersFunctionget_vault_address
Function to get the vault address associated with the signer and mint.
Lesson-2/rust-tests/programs/rust-tests/tests/utils.rs:32
↓ 2 callersFunctioninitialize_data
Function to define the data for the Initialize instruction.
Lesson-2/rust-tests/programs/rust-tests/tests/instructions/initialize.rs:24
↓ 2 callersFunctioninitialize_metas
Function to define the account metas needed for the Initialize instruction.
Lesson-2/rust-tests/programs/rust-tests/tests/instructions/initialize.rs:4
↓ 2 callersFunctionread_data
Function to define the data for the Read instruction.
Lesson-2/rust-tests/programs/rust-tests/tests/instructions/read.rs:16
↓ 2 callersFunctionread_metas
Function to define the account metas needed for the Read instruction.
Lesson-2/rust-tests/programs/rust-tests/tests/instructions/read.rs:4
↓ 2 callersMethodtrailing_data_mut
(self)
Lesson-1/anchor_solana-expanded.rs:2291
↓ 2 callersMethodtry_serialize
( &self, writer: &mut W, )
Lesson-1/anchor_solana-expanded.rs:395
↓ 2 callersFunctionupdate
(ctx: Context<Update>, input: u8)
Lesson-6/account-reloading/programs/update-account/src/lib.rs:18
↓ 2 callersFunctionverify_pin
( ctx: Context<VerifyPin>, _pin1: u8, _pin2: u8, _pin3: u8, _pin4: u8,
Lesson-6/arbitrary-cpi/programs/arbitrary-cpi-hacked/src/lib.rs:9
↓ 1 callersFunction__idl_close_account
( program_id: &Pubkey, accounts: &mut IdlCloseAccount, )
Lesson-1/anchor_solana-expanded.rs:2391
↓ 1 callersFunction__idl_create_account
( program_id: &Pubkey, accounts: &mut IdlCreateAccounts, data_len: u64,
Lesson-1/anchor_solana-expanded.rs:2297
↓ 1 callersFunction__idl_create_buffer
( program_id: &Pubkey, accounts: &mut IdlCreateBuffer, )
Lesson-1/anchor_solana-expanded.rs:2399
↓ 1 callersFunction__idl_dispatch
( program_id: &Pubkey, accounts: &'info [AccountInfo<'info>], idl_ix_data:
Lesson-1/anchor_solana-expanded.rs:230
↓ 1 callersFunction__idl_resize_account
( program_id: &Pubkey, accounts: &mut IdlResizeAccount, data_len: u64,
Lesson-1/anchor_solana-expanded.rs:2349
↓ 1 callersFunction__idl_set_authority
( program_id: &Pubkey, accounts: &mut IdlAccounts, new_authority: Pubkey,
Lesson-1/anchor_solana-expanded.rs:2454
↓ 1 callersFunction__idl_set_buffer
( program_id: &Pubkey, accounts: &mut IdlSetBuffer, )
Lesson-1/anchor_solana-expanded.rs:2464
↓ 1 callersFunction__idl_write
( program_id: &Pubkey, accounts: &mut IdlAccounts, idl_data: Vec<u8>,
Lesson-1/anchor_solana-expanded.rs:2409
↓ 1 callersFunction_battle_monster
Battles a monster and reduces explorer's health, increases experience if not dead
Capture-the-Flag/level-2/src-fragment/instructions/battle_monster.rs:9
↓ 1 callersFunction_dummy_ix
(_ctx: Context<DummyContext>)
Lesson-4/trident-lesson-part-ii/programs/trident-lesson-part-ii/src/instructions/dummy.rs:3
↓ 1 callersFunction_heal_ally
Heal another explorer using your mana and gain experience
Capture-the-Flag/level-2/src-fragment/instructions/heal_ally.rs:8
↓ 1 callersFunction_init_explorer
Initializes a new explorer
Capture-the-Flag/level-2/src-fragment/instructions/init_explorer.rs:6
↓ 1 callersFunction_init_vesting
( ctx: Context<InitVesting>, recipient: Pubkey, amount: u64, start_at: u64, end_at: u64,
Capture-the-Flag/level-4/src-fragment/instructions/init_vesting.rs:12
↓ 1 callersFunction_initialize
( ctx: Context<Initialize>, guardian_set_index: u32, signatures_number: u8, expiration_time: i
Capture-the-Flag/level-5/src-fragment/level-5/src/instructions/initialize.rs:8
↓ 1 callersFunction_initialize
( ctx: Context<Initialize>, guardian_set_index: u32, _signatures_number: u8, signatures: Vec<u
Capture-the-Flag/level-5/src-fragment/verification_program/src/instructions/initialize.rs:7
↓ 1 callersFunction_initialize
( ctx: Context<Initialize>, open_time: i64, input: u8, mint_parameters: MintParameters, )
Lesson-2/rust-unit-tests/programs/rust-unit-tests/src/instructions/initialize.rs:17
↓ 1 callersFunction_initialize
( ctx: Context<Initialize>, open_time: i64, input: u8, mint_parameters: MintParameters, )
Lesson-2/rust-tests/programs/rust-tests/src/instructions/initialize.rs:17
↓ 1 callersFunction_initialize
( ctx: Context<Initialize>, open_time: i64, input: u8, mint_parameters: MintParameters, )
Lesson-2/anchor-tests/programs/anchor-tests/src/instructions/initialize.rs:17
↓ 1 callersFunction_initialize
( ctx: Context<Initialize>, open_time: i64, input: u8, mint_parameters: MintParameters, )
Lesson-2/bankrun-tests/programs/bankrun-tests/src/instructions/initialize.rs:17
↓ 1 callersFunction_initialize_faction
( ctx: Context<InitializeFaction>, name: String, symbol: String, )
Capture-the-Flag/level-3/src-fragment/instructions/initialize_faction.rs:7
↓ 1 callersFunction_initialize_ix
(ctx: Context<InitializeContext>)
Lesson-4/trident-lesson-part-ii/programs/trident-lesson-part-ii/src/instructions/initialize.rs:7
↓ 1 callersFunction_initialize_ix
( ctx: Context<InitializeContext>, input1: u8, input2: u8, name: String, symbol: String,
Lesson-3/trident-lesson-part-i/programs/trident-lesson-part-i/src/instructions/initialize.rs:15
↓ 1 callersFunction_obtain_faction_token
(ctx: Context<ObtainFactionToken>)
Capture-the-Flag/level-3/src-fragment/instructions/obtain_token.rs:10
↓ 1 callersFunction_read
(ctx: Context<Read>)
Lesson-2/rust-unit-tests/programs/rust-unit-tests/src/instructions/read.rs:8
↓ 1 callersFunction_read
(ctx: Context<Read>)
Lesson-2/rust-tests/programs/rust-tests/src/instructions/read.rs:8
↓ 1 callersFunction_read
(ctx: Context<Read>)
Lesson-2/anchor-tests/programs/anchor-tests/src/instructions/read.rs:8
↓ 1 callersFunction_read
(ctx: Context<Read>)
Lesson-2/bankrun-tests/programs/bankrun-tests/src/instructions/read.rs:8
↓ 1 callersFunction_update_ix
(ctx: Context<UpdateContext>, input1: u8, input2: u8)
Lesson-4/trident-lesson-part-ii/programs/trident-lesson-part-ii/src/instructions/update.rs:7
↓ 1 callersFunction_verify_passcode
(ctx: Context<Verify>, passphrase: Vec<u64>)
Capture-the-Flag/level-5/src-fragment/verification_program/src/instructions/verify.rs:7
↓ 1 callersFunction_withdraw
(ctx: Context<Withdraw>, passphrase: Vec<u64>)
Capture-the-Flag/level-5/src-fragment/level-5/src/instructions/withdraw.rs:11
↓ 1 callersFunction_withdraw_unlocked
(ctx: Context<WithdrawUnlocked>)
Capture-the-Flag/level-4/src-fragment/instructions/withdraw_unlocked.rs:9
↓ 1 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/account-reloading/tests/account-reloading.ts:97
↓ 1 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-6/initialization-frontrunning/tests/initialization-frontrunning.ts:76
↓ 1 callersFunctionairdrop
(connection: any, address: any, amount = 1000000000)
Capture-the-Flag/level-5/tests/exploit.ts:85
↓ 1 callersFunctionairdrop
(connection: any, address: any, amount = 10_000_000_000)
Capture-the-Flag/level-3/tests/exploit.ts:57
↓ 1 callersFunctionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Capture-the-Flag/level-1/tests/exploit.ts:43
↓ 1 callersFunctionairdrop
(connection: any, address: any, amount = 1000000000)
Capture-the-Flag/level-4/tests/exploit.ts:80
↓ 1 callersMethodamount_unlocked
(&self, now: u64)
Capture-the-Flag/level-4/src-fragment/state.rs:17
↓ 1 callersFunctionbuggy_math_function
(input1: u8, input2: u8)
Lesson-4/trident-lesson-part-ii/programs/trident-lesson-part-ii/src/instructions/update.rs:14
↓ 1 callersFunctionbuggy_math_function
(input1: u8, input2: u8)
Lesson-3/trident-lesson-part-i/programs/trident-lesson-part-i/src/instructions/initialize.rs:33
↓ 1 callersMethodcontains
(logs, error)
Lesson-2/anchor-tests/tests/utils.ts:17
↓ 1 callersMethodcreate_metadata
(&self, name: String, symbol: String, uri: String)
Lesson-3/trident-lesson-part-i/programs/trident-lesson-part-i/src/instructions/initialize.rs:67
↓ 1 callersMethodcreate_metadata
(&self, name: String, symbol: String, uri: String)
Lesson-2/rust-unit-tests/programs/rust-unit-tests/src/instructions/initialize.rs:84
↓ 1 callersMethodcreate_metadata
(&self, name: String, symbol: String, uri: String)
Lesson-2/rust-tests/programs/rust-tests/src/instructions/initialize.rs:84
↓ 1 callersMethodcreate_metadata
(&self, name: String, symbol: String, uri: String)
Lesson-2/anchor-tests/programs/anchor-tests/src/instructions/initialize.rs:84
↓ 1 callersMethodcreate_metadata
(&self, name: String, symbol: String, uri: String)
Lesson-2/bankrun-tests/programs/bankrun-tests/src/instructions/initialize.rs:84
↓ 1 callersFunctiondispatch
Performs method dispatch. Each method in an anchor program is uniquely defined by a namespace and a rust identifier (i.e., the name given to the meth
Lesson-1/anchor_solana-expanded.rs:194
↓ 1 callersFunctionentry
The Anchor codegen exposes a programming model where a user defines a set of methods inside of a `#[program]` module in a way similar to writing RPC r
Lesson-1/anchor_solana-expanded.rs:137
↓ 1 callersFunctionforward_time
Function to forward the program test context time by a specified number of seconds.
Lesson-2/rust-tests/programs/rust-tests/tests/utils.rs:73
↓ 1 callersFunctiongetTx
(signature: string, connection: web3.Connection)
Lesson-6/duplicate-mutable-accounts/tests/duplicate-mutable-accounts.ts:159
↓ 1 callersFunctiongetTx
(signature: string, connection: web3.Connection)
Lesson-6/arbitrary-cpi/tests/arbitrary-cpi.ts:134
↓ 1 callersFunctioninitEnviroment
(test_env: Environment)
Lesson-2/anchor-tests/tests/init-environment.ts:8
↓ 1 callersFunctioninitEnviroment
(test_env: Environment)
Lesson-2/bankrun-tests/tests/init-environment.ts:11
↓ 1 callersFunctioninitialize
( __program_id: &Pubkey, __accounts: &'info [AccountInfo<'info>], __ix_dat
Lesson-1/anchor_solana-expanded.rs:2505
↓ 1 callersFunctioninitialize
( ctx: Context<Initialize>, guardian_set_index: u32, signatures_number: u8, ex
Capture-the-Flag/level-5/src-fragment/level-5/src/lib.rs:27
↓ 1 callersFunctionload_keypair
(name: string)
Capture-the-Flag/level-5/tests/exploit.ts:89
↓ 1 callersFunctionload_keypair
(name: string)
Capture-the-Flag/level-4/tests/exploit.ts:84
↓ 1 callersMethodremove_metadata
(&mut self)
Lesson-6/revival-attack/programs/revival-attack/src/lib.rs:118
↓ 1 callersMethodtrailing_data
(self)
Lesson-1/anchor_solana-expanded.rs:2287
↓ 1 callersFunctiontry_entry
( program_id: &Pubkey, accounts: &'info [AccountInfo<'info>], data: &[u8], )
Lesson-1/anchor_solana-expanded.rs:148
↓ 1 callersFunctionverify_passcode
(ctx: Context<Verify>, passphrase: Vec<u64>)
Capture-the-Flag/level-5/src-fragment/verification_program/src/lib.rs:32
↓ 1 callersMethodverify_pin
(&self, pin1: u8, pin2: u8, pin3: u8, pin4: u8)
Lesson-6/arbitrary-cpi/programs/arbitrary-cpi-expected/src/lib.rs:84
Methodaddress
(program_id: &Pubkey)
Lesson-1/anchor_solana-expanded.rs:457
Functionairdrop
( connection: any, address: any, amount = 500_000_000_000 )
Lesson-2/anchor-tests/tests/utils.ts:4
Functionbattle_monster
Battles a monster and reduces explorer's health, increases experience if not dead
Capture-the-Flag/level-2/src-fragment/lib.rs:39
next →1–100 of 216, ranked by callers