MCPcopy Create free account

hub / github.com/Access-Labs-Inc/access-protocol / functions

Functions476 in github.com/Access-Labs-Inc/access-protocol

↓ 98 callersFunctioncheck_account_owner
( account: &AccountInfo, owner: &Pubkey, error: AccessError, )
smart-contract/program/src/utils.rs:117
↓ 83 callersFunctioncheck_account_key
(account: &AccountInfo, key: &Pubkey, error: AccessError)
smart-contract/program/src/utils.rs:109
↓ 78 callersMethodcreate_user_with_ata
(&mut self)
smart-contract/program/tests/common/test_runner.rs:239
↓ 77 callersFunctionsign_send_instructions
Utils todo maybe don't sign everything with an authority here
smart-contract/program/tests/common/utils.rs:15
↓ 71 callersMethodsleep
(&mut self, duration: u64)
smart-contract/program/tests/common/test_runner.rs:458
↓ 66 callersMethodstaker_stats
( &mut self, staker_key: Pubkey, )
smart-contract/program/tests/common/test_runner.rs:734
↓ 64 callersMethodgetKey
* This method can be used to derive the stake pool key * @param programId The ACCESS program ID * @param owner The owner of the stake pool *
smart-contract/js/src/state.ts:159
↓ 63 callersMethodcrank_pool
( &mut self, stake_pool_owner_key: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:524
↓ 58 callersMethodpool_stats
( &mut self, stake_pool_owner: Pubkey, )
smart-contract/program/tests/common/test_runner.rs:766
↓ 54 callersMethodretrieve
* This method can be used to retrieve the state of a stake pool * @param connection The Solana RPC connection * @param key The key of the stake
smart-contract/js/src/state.ts:145
↓ 50 callersMethodfrom
(e: AccessError)
smart-contract/program/src/error.rs:140
↓ 39 callersMethodcreate_pool
( &mut self, pool_owner: &Keypair, minimum_stake_amount: u64, )
smart-contract/program/tests/common/test_runner.rs:351
↓ 38 callersMethodactivate_stake_pool
( &mut self, stake_pool_owner: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:388
↓ 38 callersMethodgetInstruction
( programId: PublicKey, centralState: PublicKey, stakeAccount: PublicKey, stakePool: PublicKey
smart-contract/js/src/raw_instructions.ts:1086
↓ 36 callersMethodcentral_state_stats
(&mut self)
smart-contract/program/tests/common/test_runner.rs:858
↓ 36 callersMethodstake
( &mut self, stake_pool_owner_key: &Pubkey, staker: &Keypair, token_amount: u6
smart-contract/program/tests/common/test_runner.rs:471
↓ 34 callersMethodassert_instruction_allowed
Check if the instruction is not frozen or renounced. AdminFreezeProgram instruction is allowed to be called even if frozen so that the program can be
smart-contract/program/src/state.rs:593
↓ 33 callersMethodsave
(&self, mut dst: &mut [u8])
smart-contract/program/src/state.rs:369
↓ 29 callersMethodmint
( &mut self, destination: &Pubkey, amount: u64, )
smart-contract/program/tests/common/test_runner.rs:313
↓ 28 callersFunctioncheck_signer
(account: &AccountInfo, error: AccessError)
smart-contract/program/src/utils.rs:129
↓ 25 callersMethodclaim_staker_rewards
( &mut self, stake_pool_owner: &Pubkey, staker: &Keypair, )
smart-contract/program/tests/common/test_runner.rs:594
↓ 24 callersMethodclaim_pool_rewards
( &mut self, stake_pool_owner: &Keypair, )
smart-contract/program/tests/common/test_runner.rs:541
↓ 24 callersMethodget_pool_pda
(&mut self, stake_pool_owner: &Pubkey)
smart-contract/program/tests/common/test_runner.rs:421
↓ 23 callersMethodcreate_stake_account
( &mut self, stake_pool_owner_key: &Pubkey, staker_key: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:429
↓ 21 callersMethodclaim_bond_rewards
( &mut self, stake_pool_owner: &Pubkey, bond_owner: &Keypair, )
smart-contract/program/tests/common/test_runner.rs:1195
↓ 20 callersMethodtoBuffer
* Convert to Buffer representation
smart-contract/js/src/u64.ts:16
↓ 18 callersMethodunlock_bond
( &mut self, stake_pool_owner: &Pubkey, bond_owner: &Keypair, )
smart-contract/program/tests/common/test_runner.rs:1164
↓ 17 callersMethodcreate_bond
( &mut self, stake_pool_owner: &Pubkey, bond_owner: &Pubkey, total_amount: u64
smart-contract/program/tests/common/test_runner.rs:910
↓ 16 callersFunctionsignAndSendTransactionInstructions
( // sign and send transaction connection: Connection, signers: Array<Keypair> | undefined, feePayer:
smart-contract/js/tests/utils.ts:104
↓ 15 callersMethodclaim_bond
( &mut self, stake_pool_owner: &Pubkey, bond_owner: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:971
↓ 13 callersMethodunstake
( &mut self, stake_pool_owner: &Pubkey, staker: &Keypair, token_amount: u64,
smart-contract/program/tests/common/test_runner.rs:703
↓ 11 callersMethodget_current_offset
(&self)
smart-contract/program/src/state.rs:482
↓ 9 callersMethodfreeze_program
(&mut self, ix_gate: u128, authority: Option<&Keypair>)
smart-contract/program/tests/common/test_runner.rs:879
↓ 9 callersMethodtoken_stats
(&mut self)
smart-contract/program/tests/common/test_runner.rs:1417
↓ 8 callersMethodbond_stats
bond stats
smart-contract/program/tests/common/test_runner.rs:806
↓ 8 callersMethoddeserialize
(data: Buffer)
smart-contract/js/src/state.ts:135
↓ 8 callersMethodserialize
()
smart-contract/js/src/raw_instructions.ts:1082
↓ 7 callersMethodchange_inflation
(&mut self, new_inflation: u64)
smart-contract/program/tests/common/test_runner.rs:1297
↓ 7 callersFunctionget_freeze_mask
(instructions: Vec<ProgramInstruction>)
smart-contract/program/src/utils.rs:83
↓ 7 callersMethodsetup_fee_split
( &mut self, recipients: Vec<FeeRecipient>, )
smart-contract/program/tests/common/test_runner.rs:1313
↓ 6 callersMethoddistribute_fees
(&mut self)
smart-contract/program/tests/common/test_runner.rs:502
↓ 6 callersMethodfee_payer_sol_balance
(&mut self)
smart-contract/program/tests/common/test_runner.rs:848
↓ 6 callersMethodparse
( accounts: &'a [AccountInfo<'b>], program_id: &Pubkey, )
smart-contract/program/src/processor/crank.rs:38
↓ 6 callersMethodstake_account_stats
( &mut self, staker: Pubkey, stake_pool_owner: Pubkey, )
smart-contract/program/tests/common/test_runner.rs:747
↓ 5 callersMethodadd_to_bond_v2
( &mut self, from: &Keypair, to: &Pubkey, pool_owner: &Pubkey, bond_am
smart-contract/program/tests/common/test_runner.rs:1093
↓ 5 callersMethodbond_v2_stats
bond v2 stats
smart-contract/program/tests/common/test_runner.rs:827
↓ 5 callersFunctioncrank
( stakePoolAccount: PublicKey, programId = ACCESS_PROGRAM_ID, )
smart-contract/js/src/bindings.ts:251
↓ 5 callersMethodget_stake_account_pda
( &mut self, stake_pool_key: &Pubkey, staker_key: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:405
↓ 5 callersMethodunlock_bond_v2_tokens
( &mut self, owner: &Keypair, stake_pool_owner: &Pubkey, unlock_date: Option<i
smart-contract/program/tests/common/test_runner.rs:669
↓ 5 callersMethodwithdraw
(&mut self, amount: u64)
smart-contract/program/src/state.rs:298
↓ 4 callersFunctionairdropPayer
(connection: Connection, key: PublicKey)
smart-contract/js/tests/utils.ts:87
↓ 4 callersFunctioncalc_reward_fp32
Cumulate the claimable rewards from the last claimed day to the present. Result is in FP32 format. `staker` Compute the reward for a staker or a pool
smart-contract/program/src/utils.rs:19
↓ 4 callersMethodchange_pool_multiplier
( &mut self, stake_pool_owner: &Keypair, new_multiplier: u64, )
smart-contract/program/tests/common/test_runner.rs:1273
↓ 4 callersFunctionclaimRewards
( connection: Connection, user: PublicKey, pool: PublicKey, programId = ACCESS_PROGRAM_ID, )
smart-contract/js/src/bindings.ts:201
↓ 4 callersMethodclaim_bond_v2_rewards
( &mut self, owner: &Keypair, stake_pool_owner: &Pubkey, unlock_date: Option<i
smart-contract/program/tests/common/test_runner.rs:630
↓ 4 callersMethodclose
(&mut self)
smart-contract/program/src/state.rs:286
↓ 4 callersFunctioncrank
( program_id: Pubkey, accounts: crank::Accounts<Pubkey>, params: crank::Params, )
smart-contract/program/src/instruction.rs:479
↓ 4 callersFunctioncreate_bond
( program_id: Pubkey, accounts: create_bond::Accounts<Pubkey>, params: create_bond::Params, )
smart-contract/program/src/instruction.rs:523
↓ 4 callersMethoddeposit
(&mut self, amount: u64)
smart-contract/program/src/state.rs:290
↓ 4 callersMethodget_current_time
(&mut self)
smart-contract/program/tests/common/test_runner.rs:1233
↓ 4 callersFunctionmust_load_keypair
(file_path: &str)
smart-contract/program/tests/devnet.rs:215
↓ 4 callersMethodrenounce
(&mut self, ix: ProgramInstruction)
smart-contract/program/tests/common/test_runner.rs:898
↓ 3 callersFunctionactivate_stake_pool
( program_id: Pubkey, accounts: activate_stake_pool::Accounts<Pubkey>, params: activate_stake_pool
smart-contract/program/src/instruction.rs:658
↓ 3 callersFunctionadmin_freeze
( program_id: Pubkey, accounts: admin_freeze::Accounts<Pubkey>, params: admin_freeze::Params, )
smart-contract/program/src/instruction.rs:649
↓ 3 callersFunctionadmin_mint
( program_id: Pubkey, accounts: admin_mint::Accounts<Pubkey>, params: admin_mint::Params, )
smart-contract/program/src/instruction.rs:640
↓ 3 callersFunctionassert_no_close_or_delegate
(token_account: &Account)
smart-contract/program/src/utils.rs:217
↓ 3 callersMethodcalculate_royalty_amount
(&self, amount: u64)
smart-contract/program/src/state.rs:937
↓ 3 callersMethodchange_pool_minimum
( &mut self, stake_pool_owner: &Keypair, new_minimum: u64, )
smart-contract/program/tests/common/test_runner.rs:1249
↓ 3 callersFunctionclaim_bond
( program_id: Pubkey, accounts: claim_bond::Accounts<Pubkey>, params: claim_bond::Params, )
smart-contract/program/src/instruction.rs:600
↓ 3 callersFunctionclaim_bond_rewards
( program_id: Pubkey, accounts: claim_bond_rewards::Accounts<Pubkey>, params: claim_bond_rewards::
smart-contract/program/src/instruction.rs:609
↓ 3 callersFunctionclaim_rewards
( program_id: Pubkey, accounts: claim_rewards::Accounts<Pubkey>, params: claim_rewards::Params,
smart-contract/program/src/instruction.rs:464
↓ 3 callersFunctioncreateStakeAccount
( stakePool: PublicKey, owner: PublicKey, feePayer: PublicKey, programId = ACCESS_PROGRAM_ID, )
smart-contract/js/src/bindings.ts:299
↓ 3 callersFunctioncreate_ata
( connection: &RpcClient, owner: Pubkey, fee_payer: &Keypair, mint: Pubkey, )
smart-contract/program/tests/devnet.rs:367
↓ 3 callersMethodcreate_bond_v2
( &mut self, owner: &Pubkey, pool_owner: &Pubkey, unlock_date: Option<i64>,
smart-contract/program/tests/common/test_runner.rs:1066
↓ 3 callersMethodcreate_royalty
( &mut self, royalty_payer: &Keypair, royalty_recipient: &Pubkey, royalty_basi
smart-contract/program/tests/common/test_runner.rs:261
↓ 3 callersFunctioncreate_stake_account
( program_id: Pubkey, accounts: create_stake_account::Accounts<Pubkey>, params: create_stake_accou
smart-contract/program/src/instruction.rs:415
↓ 3 callersFunctioncreate_stake_pool
( program_id: Pubkey, accounts: create_stake_pool::Accounts<Pubkey>, params: create_stake_pool::Pa
smart-contract/program/src/instruction.rs:402
↓ 3 callersFunctionget_unfreeze_mask
(instructions: Vec<ProgramInstruction>)
smart-contract/program/src/utils.rs:96
↓ 3 callersFunctionretrieve_royalty_account
This function checks if there is an existing royalty account. Checks the relationship between the appropriate royalty account and the royalty ATA Retu
smart-contract/program/src/utils.rs:228
↓ 3 callersFunctionstake
( connection: Connection, user: PublicKey, pool: PublicKey, amount: number, programId = ACCESS_PROGR
smart-contract/js/src/bindings.ts:391
↓ 3 callersFunctionstake
( program_id: Pubkey, accounts: stake::Accounts<Pubkey>, params: stake::Params, )
smart-contract/program/src/instruction.rs:428
↓ 2 callersFunctionaddToBondV2
( connection: Connection, owner: PublicKey, from: PublicKey, pool: PublicKey, amount: BN, unlockTi
smart-contract/js/src/bindings.ts:621
↓ 2 callersFunctionadminMint
( connection: Connection, amount: number, destinationToken: PublicKey, programId = ACCESS_PROGRAM_ID,
smart-contract/js/src/v1_bindings.ts:208
↓ 2 callersFunctionadmin_setup_fee_split
( program_id: Pubkey, accounts: admin_setup_fee_split::Accounts<Pubkey>, params: admin_setup_fee_s
smart-contract/program/src/instruction.rs:706
↓ 2 callersFunctionassert_authorized_seller
(seller: &AccountInfo, seller_index: usize)
smart-contract/program/src/utils.rs:182
↓ 2 callersFunctionassert_bond_derivation
( account: &AccountInfo, owner: &Pubkey, total_amount_sold: u64, program_id: &Pubkey, )
smart-contract/program/src/utils.rs:193
↓ 2 callersFunctionassert_valid_fee
(account: &AccountInfo, owner: &Pubkey)
smart-contract/program/src/utils.rs:205
↓ 2 callersFunctionassert_valid_vault
(account: &AccountInfo, vault_signer: &Pubkey)
smart-contract/program/src/utils.rs:155
↓ 2 callersMethodcalculate_fee
Calculate the protocol fee for a given amount
smart-contract/program/src/state.rs:605
↓ 2 callersFunctionchange_central_state_authority
( program_id: Pubkey, accounts: change_central_state_authority::Accounts<Pubkey>, params: change_c
smart-contract/program/src/instruction.rs:684
↓ 2 callersFunctionchange_inflation
()
smart-contract/program/tests/basic_functionality.rs:11
↓ 2 callersFunctionchange_pool_minimum
( program_id: Pubkey, accounts: change_pool_minimum::Accounts<Pubkey>, params: change_pool_minimum
smart-contract/program/src/instruction.rs:627
↓ 2 callersFunctionchange_pool_multiplier
( program_id: Pubkey, accounts: change_pool_multiplier::Accounts<Pubkey>, params: change_pool_mult
smart-contract/program/src/instruction.rs:671
↓ 2 callersMethodchange_protocol_fee
( &mut self, new_fee: u16, )
smart-contract/program/tests/common/test_runner.rs:1333
↓ 2 callersFunctionclaim_pool_rewards
( program_id: Pubkey, accounts: claim_pool_rewards::Accounts<Pubkey>, params: claim_pool_rewards::
smart-contract/program/src/instruction.rs:446
↓ 2 callersMethodclaim_pool_rewards_advanced
( &mut self, stake_pool_owner: &Keypair, owner_must_sign: bool, )
smart-contract/program/tests/common/test_runner.rs:555
↓ 2 callersFunctioncreateBondV2
( owner: PublicKey, feePayer: PublicKey, pool: PublicKey, unlockTimestamp: BN | null, programId = AC
smart-contract/js/src/bindings.ts:587
↓ 2 callersFunctioncreateCentralState
( dailyInflation: number, authority: PublicKey, mint: PublicKey, programId: PublicKey, )
smart-contract/js/src/bindings.ts:271
↓ 2 callersFunctioncreateStakePool
( connection: Connection, owner: PublicKey, minimumStakeAmount: number, feePayer: PublicKey, program
smart-contract/js/src/bindings.ts:334
↓ 2 callersFunctioncreate_central_state
( program_id: Pubkey, accounts: create_central_state::Accounts<Pubkey>, params: create_central_sta
smart-contract/program/src/instruction.rs:389
next →1–100 of 476, ranked by callers