Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Access-Labs-Inc/access-protocol
/ functions
Functions
476 in github.com/Access-Labs-Inc/access-protocol
⨍
Functions
476
◇
Types & classes
190
↓ 98 callers
Function
check_account_owner
( account: &AccountInfo, owner: &Pubkey, error: AccessError, )
smart-contract/program/src/utils.rs:117
↓ 83 callers
Function
check_account_key
(account: &AccountInfo, key: &Pubkey, error: AccessError)
smart-contract/program/src/utils.rs:109
↓ 78 callers
Method
create_user_with_ata
(&mut self)
smart-contract/program/tests/common/test_runner.rs:239
↓ 77 callers
Function
sign_send_instructions
Utils todo maybe don't sign everything with an authority here
smart-contract/program/tests/common/utils.rs:15
↓ 71 callers
Method
sleep
(&mut self, duration: u64)
smart-contract/program/tests/common/test_runner.rs:458
↓ 66 callers
Method
staker_stats
( &mut self, staker_key: Pubkey, )
smart-contract/program/tests/common/test_runner.rs:734
↓ 64 callers
Method
getKey
* 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 callers
Method
crank_pool
( &mut self, stake_pool_owner_key: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:524
↓ 58 callers
Method
pool_stats
( &mut self, stake_pool_owner: Pubkey, )
smart-contract/program/tests/common/test_runner.rs:766
↓ 54 callers
Method
retrieve
* 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 callers
Method
from
(e: AccessError)
smart-contract/program/src/error.rs:140
↓ 39 callers
Method
create_pool
( &mut self, pool_owner: &Keypair, minimum_stake_amount: u64, )
smart-contract/program/tests/common/test_runner.rs:351
↓ 38 callers
Method
activate_stake_pool
( &mut self, stake_pool_owner: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:388
↓ 38 callers
Method
getInstruction
( programId: PublicKey, centralState: PublicKey, stakeAccount: PublicKey, stakePool: PublicKey
smart-contract/js/src/raw_instructions.ts:1086
↓ 36 callers
Method
central_state_stats
(&mut self)
smart-contract/program/tests/common/test_runner.rs:858
↓ 36 callers
Method
stake
( &mut self, stake_pool_owner_key: &Pubkey, staker: &Keypair, token_amount: u6
smart-contract/program/tests/common/test_runner.rs:471
↓ 34 callers
Method
assert_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 callers
Method
save
(&self, mut dst: &mut [u8])
smart-contract/program/src/state.rs:369
↓ 29 callers
Method
mint
( &mut self, destination: &Pubkey, amount: u64, )
smart-contract/program/tests/common/test_runner.rs:313
↓ 28 callers
Function
check_signer
(account: &AccountInfo, error: AccessError)
smart-contract/program/src/utils.rs:129
↓ 25 callers
Method
claim_staker_rewards
( &mut self, stake_pool_owner: &Pubkey, staker: &Keypair, )
smart-contract/program/tests/common/test_runner.rs:594
↓ 24 callers
Method
claim_pool_rewards
( &mut self, stake_pool_owner: &Keypair, )
smart-contract/program/tests/common/test_runner.rs:541
↓ 24 callers
Method
get_pool_pda
(&mut self, stake_pool_owner: &Pubkey)
smart-contract/program/tests/common/test_runner.rs:421
↓ 23 callers
Method
create_stake_account
( &mut self, stake_pool_owner_key: &Pubkey, staker_key: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:429
↓ 21 callers
Method
claim_bond_rewards
( &mut self, stake_pool_owner: &Pubkey, bond_owner: &Keypair, )
smart-contract/program/tests/common/test_runner.rs:1195
↓ 20 callers
Method
toBuffer
* Convert to Buffer representation
smart-contract/js/src/u64.ts:16
↓ 18 callers
Method
unlock_bond
( &mut self, stake_pool_owner: &Pubkey, bond_owner: &Keypair, )
smart-contract/program/tests/common/test_runner.rs:1164
↓ 17 callers
Method
create_bond
( &mut self, stake_pool_owner: &Pubkey, bond_owner: &Pubkey, total_amount: u64
smart-contract/program/tests/common/test_runner.rs:910
↓ 16 callers
Function
signAndSendTransactionInstructions
( // sign and send transaction connection: Connection, signers: Array<Keypair> | undefined, feePayer:
smart-contract/js/tests/utils.ts:104
↓ 15 callers
Method
claim_bond
( &mut self, stake_pool_owner: &Pubkey, bond_owner: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:971
↓ 13 callers
Method
unstake
( &mut self, stake_pool_owner: &Pubkey, staker: &Keypair, token_amount: u64,
smart-contract/program/tests/common/test_runner.rs:703
↓ 11 callers
Method
get_current_offset
(&self)
smart-contract/program/src/state.rs:482
↓ 9 callers
Method
freeze_program
(&mut self, ix_gate: u128, authority: Option<&Keypair>)
smart-contract/program/tests/common/test_runner.rs:879
↓ 9 callers
Method
token_stats
(&mut self)
smart-contract/program/tests/common/test_runner.rs:1417
↓ 8 callers
Method
bond_stats
bond stats
smart-contract/program/tests/common/test_runner.rs:806
↓ 8 callers
Method
deserialize
(data: Buffer)
smart-contract/js/src/state.ts:135
↓ 8 callers
Method
serialize
()
smart-contract/js/src/raw_instructions.ts:1082
↓ 7 callers
Method
change_inflation
(&mut self, new_inflation: u64)
smart-contract/program/tests/common/test_runner.rs:1297
↓ 7 callers
Function
get_freeze_mask
(instructions: Vec<ProgramInstruction>)
smart-contract/program/src/utils.rs:83
↓ 7 callers
Method
setup_fee_split
( &mut self, recipients: Vec<FeeRecipient>, )
smart-contract/program/tests/common/test_runner.rs:1313
↓ 6 callers
Method
distribute_fees
(&mut self)
smart-contract/program/tests/common/test_runner.rs:502
↓ 6 callers
Method
fee_payer_sol_balance
(&mut self)
smart-contract/program/tests/common/test_runner.rs:848
↓ 6 callers
Method
parse
( accounts: &'a [AccountInfo<'b>], program_id: &Pubkey, )
smart-contract/program/src/processor/crank.rs:38
↓ 6 callers
Method
stake_account_stats
( &mut self, staker: Pubkey, stake_pool_owner: Pubkey, )
smart-contract/program/tests/common/test_runner.rs:747
↓ 5 callers
Method
add_to_bond_v2
( &mut self, from: &Keypair, to: &Pubkey, pool_owner: &Pubkey, bond_am
smart-contract/program/tests/common/test_runner.rs:1093
↓ 5 callers
Method
bond_v2_stats
bond v2 stats
smart-contract/program/tests/common/test_runner.rs:827
↓ 5 callers
Function
crank
( stakePoolAccount: PublicKey, programId = ACCESS_PROGRAM_ID, )
smart-contract/js/src/bindings.ts:251
↓ 5 callers
Method
get_stake_account_pda
( &mut self, stake_pool_key: &Pubkey, staker_key: &Pubkey, )
smart-contract/program/tests/common/test_runner.rs:405
↓ 5 callers
Method
unlock_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 callers
Method
withdraw
(&mut self, amount: u64)
smart-contract/program/src/state.rs:298
↓ 4 callers
Function
airdropPayer
(connection: Connection, key: PublicKey)
smart-contract/js/tests/utils.ts:87
↓ 4 callers
Function
calc_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 callers
Method
change_pool_multiplier
( &mut self, stake_pool_owner: &Keypair, new_multiplier: u64, )
smart-contract/program/tests/common/test_runner.rs:1273
↓ 4 callers
Function
claimRewards
( connection: Connection, user: PublicKey, pool: PublicKey, programId = ACCESS_PROGRAM_ID, )
smart-contract/js/src/bindings.ts:201
↓ 4 callers
Method
claim_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 callers
Method
close
(&mut self)
smart-contract/program/src/state.rs:286
↓ 4 callers
Function
crank
( program_id: Pubkey, accounts: crank::Accounts<Pubkey>, params: crank::Params, )
smart-contract/program/src/instruction.rs:479
↓ 4 callers
Function
create_bond
( program_id: Pubkey, accounts: create_bond::Accounts<Pubkey>, params: create_bond::Params, )
smart-contract/program/src/instruction.rs:523
↓ 4 callers
Method
deposit
(&mut self, amount: u64)
smart-contract/program/src/state.rs:290
↓ 4 callers
Method
get_current_time
(&mut self)
smart-contract/program/tests/common/test_runner.rs:1233
↓ 4 callers
Function
must_load_keypair
(file_path: &str)
smart-contract/program/tests/devnet.rs:215
↓ 4 callers
Method
renounce
(&mut self, ix: ProgramInstruction)
smart-contract/program/tests/common/test_runner.rs:898
↓ 3 callers
Function
activate_stake_pool
( program_id: Pubkey, accounts: activate_stake_pool::Accounts<Pubkey>, params: activate_stake_pool
smart-contract/program/src/instruction.rs:658
↓ 3 callers
Function
admin_freeze
( program_id: Pubkey, accounts: admin_freeze::Accounts<Pubkey>, params: admin_freeze::Params, )
smart-contract/program/src/instruction.rs:649
↓ 3 callers
Function
admin_mint
( program_id: Pubkey, accounts: admin_mint::Accounts<Pubkey>, params: admin_mint::Params, )
smart-contract/program/src/instruction.rs:640
↓ 3 callers
Function
assert_no_close_or_delegate
(token_account: &Account)
smart-contract/program/src/utils.rs:217
↓ 3 callers
Method
calculate_royalty_amount
(&self, amount: u64)
smart-contract/program/src/state.rs:937
↓ 3 callers
Method
change_pool_minimum
( &mut self, stake_pool_owner: &Keypair, new_minimum: u64, )
smart-contract/program/tests/common/test_runner.rs:1249
↓ 3 callers
Function
claim_bond
( program_id: Pubkey, accounts: claim_bond::Accounts<Pubkey>, params: claim_bond::Params, )
smart-contract/program/src/instruction.rs:600
↓ 3 callers
Function
claim_bond_rewards
( program_id: Pubkey, accounts: claim_bond_rewards::Accounts<Pubkey>, params: claim_bond_rewards::
smart-contract/program/src/instruction.rs:609
↓ 3 callers
Function
claim_rewards
( program_id: Pubkey, accounts: claim_rewards::Accounts<Pubkey>, params: claim_rewards::Params,
smart-contract/program/src/instruction.rs:464
↓ 3 callers
Function
createStakeAccount
( stakePool: PublicKey, owner: PublicKey, feePayer: PublicKey, programId = ACCESS_PROGRAM_ID, )
smart-contract/js/src/bindings.ts:299
↓ 3 callers
Function
create_ata
( connection: &RpcClient, owner: Pubkey, fee_payer: &Keypair, mint: Pubkey, )
smart-contract/program/tests/devnet.rs:367
↓ 3 callers
Method
create_bond_v2
( &mut self, owner: &Pubkey, pool_owner: &Pubkey, unlock_date: Option<i64>,
smart-contract/program/tests/common/test_runner.rs:1066
↓ 3 callers
Method
create_royalty
( &mut self, royalty_payer: &Keypair, royalty_recipient: &Pubkey, royalty_basi
smart-contract/program/tests/common/test_runner.rs:261
↓ 3 callers
Function
create_stake_account
( program_id: Pubkey, accounts: create_stake_account::Accounts<Pubkey>, params: create_stake_accou
smart-contract/program/src/instruction.rs:415
↓ 3 callers
Function
create_stake_pool
( program_id: Pubkey, accounts: create_stake_pool::Accounts<Pubkey>, params: create_stake_pool::Pa
smart-contract/program/src/instruction.rs:402
↓ 3 callers
Function
get_unfreeze_mask
(instructions: Vec<ProgramInstruction>)
smart-contract/program/src/utils.rs:96
↓ 3 callers
Function
retrieve_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 callers
Function
stake
( connection: Connection, user: PublicKey, pool: PublicKey, amount: number, programId = ACCESS_PROGR
smart-contract/js/src/bindings.ts:391
↓ 3 callers
Function
stake
( program_id: Pubkey, accounts: stake::Accounts<Pubkey>, params: stake::Params, )
smart-contract/program/src/instruction.rs:428
↓ 2 callers
Function
addToBondV2
( connection: Connection, owner: PublicKey, from: PublicKey, pool: PublicKey, amount: BN, unlockTi
smart-contract/js/src/bindings.ts:621
↓ 2 callers
Function
adminMint
( connection: Connection, amount: number, destinationToken: PublicKey, programId = ACCESS_PROGRAM_ID,
smart-contract/js/src/v1_bindings.ts:208
↓ 2 callers
Function
admin_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 callers
Function
assert_authorized_seller
(seller: &AccountInfo, seller_index: usize)
smart-contract/program/src/utils.rs:182
↓ 2 callers
Function
assert_bond_derivation
( account: &AccountInfo, owner: &Pubkey, total_amount_sold: u64, program_id: &Pubkey, )
smart-contract/program/src/utils.rs:193
↓ 2 callers
Function
assert_valid_fee
(account: &AccountInfo, owner: &Pubkey)
smart-contract/program/src/utils.rs:205
↓ 2 callers
Function
assert_valid_vault
(account: &AccountInfo, vault_signer: &Pubkey)
smart-contract/program/src/utils.rs:155
↓ 2 callers
Method
calculate_fee
Calculate the protocol fee for a given amount
smart-contract/program/src/state.rs:605
↓ 2 callers
Function
change_central_state_authority
( program_id: Pubkey, accounts: change_central_state_authority::Accounts<Pubkey>, params: change_c
smart-contract/program/src/instruction.rs:684
↓ 2 callers
Function
change_inflation
()
smart-contract/program/tests/basic_functionality.rs:11
↓ 2 callers
Function
change_pool_minimum
( program_id: Pubkey, accounts: change_pool_minimum::Accounts<Pubkey>, params: change_pool_minimum
smart-contract/program/src/instruction.rs:627
↓ 2 callers
Function
change_pool_multiplier
( program_id: Pubkey, accounts: change_pool_multiplier::Accounts<Pubkey>, params: change_pool_mult
smart-contract/program/src/instruction.rs:671
↓ 2 callers
Method
change_protocol_fee
( &mut self, new_fee: u16, )
smart-contract/program/tests/common/test_runner.rs:1333
↓ 2 callers
Function
claim_pool_rewards
( program_id: Pubkey, accounts: claim_pool_rewards::Accounts<Pubkey>, params: claim_pool_rewards::
smart-contract/program/src/instruction.rs:446
↓ 2 callers
Method
claim_pool_rewards_advanced
( &mut self, stake_pool_owner: &Keypair, owner_must_sign: bool, )
smart-contract/program/tests/common/test_runner.rs:555
↓ 2 callers
Function
createBondV2
( owner: PublicKey, feePayer: PublicKey, pool: PublicKey, unlockTimestamp: BN | null, programId = AC
smart-contract/js/src/bindings.ts:587
↓ 2 callers
Function
createCentralState
( dailyInflation: number, authority: PublicKey, mint: PublicKey, programId: PublicKey, )
smart-contract/js/src/bindings.ts:271
↓ 2 callers
Function
createStakePool
( connection: Connection, owner: PublicKey, minimumStakeAmount: number, feePayer: PublicKey, program
smart-contract/js/src/bindings.ts:334
↓ 2 callers
Function
create_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