Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bonfida/token-vesting
/ functions
Functions
59 in github.com/Bonfida/token-vesting
⨍
Functions
59
◇
Types & classes
19
↓ 14 callers
Method
from
(e: VestingError)
program/src/error.rs:14
↓ 7 callers
Method
pack_into_slice
(&self, target: &mut [u8])
program/src/state.rs:26
↓ 5 callers
Method
pack
(&self)
program/src/instruction.rs:196
↓ 4 callers
Function
change_destination
( vesting_program_id: &Pubkey, vesting_account_key: &Pubkey, current_destination_token_account_own
program/src/instruction.rs:322
↓ 4 callers
Function
create_token_account
( payer: &Keypair, mint:&Keypair, recent_blockhash: Hash, token_account:&Keypair, token_
program/tests/functional.rs:236
↓ 4 callers
Method
toBuffer
()
js/src/state.ts:14
↓ 3 callers
Function
create
Creates a `CreateSchedule` instruction
program/src/instruction.rs:264
↓ 3 callers
Function
create_fuzzinstruction
A correct vesting create fuzz instruction
program/fuzz/src/vesting_fuzz.rs:470
↓ 3 callers
Method
fromBuffer
(buf: Buffer)
js/src/state.ts:18
↓ 3 callers
Function
unlock
Creates an `Unlock` instruction
program/src/instruction.rs:298
↓ 3 callers
Function
unpack_schedules
(input: &[u8])
program/src/state.rs:91
↓ 2 callers
Function
create
( connection: Connection, programId: PublicKey, seedWord: Buffer | Uint8Array, payer: PublicKey, sou
js/src/main.ts:43
↓ 2 callers
Function
getContractInfo
( connection: Connection, vestingAccountKey: PublicKey, )
js/src/main.ts:171
↓ 2 callers
Function
init
Creates a `Init` instruction to create and initialize the vesting token account.
program/src/instruction.rs:236
↓ 1 callers
Function
checks
()
js/src/example.ts:68
↓ 1 callers
Function
command_change_destination
( rpc_client: RpcClient, program_id: Pubkey, destination_token_account_owner: Keypair, opt_new
cli/src/main.rs:150
↓ 1 callers
Function
command_create_svc
Lock the vesting contract
cli/src/main.rs:24
↓ 1 callers
Function
command_info
( rpc_client: RpcClient, rpc_url: String, program_id: Pubkey, vesting_seed: [u8; 32], )
cli/src/main.rs:196
↓ 1 callers
Function
command_unlock_svc
( rpc_client: RpcClient, program_id: Pubkey, vesting_seed: [u8; 32], payer: Keypair, )
cli/src/main.rs:114
↓ 1 callers
Function
createChangeDestinationInstruction
( vestingProgramId: PublicKey, vestingAccountKey: PublicKey, currentDestinationTokenAccountOwner: Public
js/src/instructions.ts:162
↓ 1 callers
Function
createCreateInstruction
( vestingProgramId: PublicKey, tokenProgramId: PublicKey, vestingAccountKey: PublicKey, vestingTokenAc
js/src/instructions.ts:56
↓ 1 callers
Function
createInitInstruction
( systemProgramId: PublicKey, vestingProgramId: PublicKey, payerKey: PublicKey, vestingAccountKey: Pub
js/src/instructions.ts:10
↓ 1 callers
Function
createUnlockInstruction
( vestingProgramId: PublicKey, tokenProgramId: PublicKey, clockSysvarId: PublicKey, vestingAccountKey:
js/src/instructions.ts:114
↓ 1 callers
Function
generateRandomSeed
()
js/src/utils.ts:3
↓ 1 callers
Function
lock
()
js/src/example.ts:87
↓ 1 callers
Function
mint_init_instruction
Helper functions
program/fuzz/src/vesting_fuzz.rs:548
↓ 1 callers
Function
mint_init_transaction
( payer: &Keypair, mint:&Keypair, mint_authority: &Keypair, recent_blockhash: Hash)
program/tests/functional.rs:200
↓ 1 callers
Function
pack_schedules_into_slice
(schedules: Vec<VestingSchedule>, target: &mut [u8])
program/src/state.rs:104
↓ 1 callers
Function
run_fuzz_instruction
( token_vesting_testenv: &TokenVestingEnv, fuzz_instruction: &FuzzInstruction, correct_payer: &Key
program/fuzz/src/vesting_fuzz.rs:204
↓ 1 callers
Function
unlock
( connection: Connection, programId: PublicKey, seedWord: Buffer | Uint8Array, mintAddress: PublicKey,
js/src/main.ts:129
Method
arbitrary
(u: &mut arbitrary::Unstructured<'_>)
program/src/instruction.rs:18
Function
changeDestination
( connection: Connection, programId: PublicKey, currentDestinationTokenAccountPublicKey: PublicKey, ne
js/src/main.ts:200
Function
clone_keypair
(keypair: &Keypair)
program/fuzz/src/vesting_fuzz.rs:572
Method
constructor
(releaseTime: Numberu64, amount: Numberu64)
js/src/state.ts:9
Method
constructor
( destinationAddress: PublicKey, mintAddress: PublicKey, isInitialized: boolean, )
js/src/state.ts:30
Method
constructor
( destinationAddress: PublicKey, mintAddress: PublicKey, schedules: Array<Schedule>, )
js/src/state.ts:58
Method
fromBuffer
* Construct a Numberu64 from Buffer representation
js/src/utils.ts:34
Method
fromBuffer
* Construct a Numberu32 from Buffer representation
js/src/utils.ts:71
Method
fromBuffer
(buf: Buffer)
js/src/state.ts:40
Method
fromBuffer
(buf: Buffer)
js/src/state.ts:68
Method
is_initialized
(&self)
program/src/state.rs:86
Function
main
()
cli/src/main.rs:233
Function
main
()
program/fuzz/src/vesting_fuzz.rs:51
Method
print
(&self)
program/src/processor.rs:365
Method
process_change_destination
( program_id: &Pubkey, accounts: &[AccountInfo], seeds: [u8; 32], )
program/src/processor.rs:270
Method
process_create
( program_id: &Pubkey, accounts: &[AccountInfo], seeds: [u8; 32], mint_address
program/src/processor.rs:72
Method
process_init
( program_id: &Pubkey, accounts: &[AccountInfo], seeds: [u8; 32], schedules: u
program/src/processor.rs:28
Function
process_instruction
( program_id: &Pubkey, accounts: &[AccountInfo], instruction_data: &[u8], )
program/src/entrypoint.rs:10
Method
process_instruction
( program_id: &Pubkey, accounts: &[AccountInfo], instruction_data: &[u8], )
program/src/processor.rs:320
Method
process_unlock
( program_id: &Pubkey, _accounts: &[AccountInfo], seeds: [u8; 32], )
program/src/processor.rs:185
Function
run_fuzz_instructions
( token_vesting_testenv: &TokenVestingEnv, banks_client: &mut BanksClient, fuzz_instructions: Vec<
program/fuzz/src/vesting_fuzz.rs:86
Function
test_instruction_packing
()
program/src/instruction.rs:349
Function
test_state_packing
()
program/src/state.rs:118
Function
test_token_vesting
()
program/tests/functional.rs:17
Method
toBuffer
* Convert to Buffer representation
js/src/utils.ts:16
Method
toBuffer
* Convert to Buffer representation
js/src/utils.ts:53
Method
type_of
()
program/src/error.rs:20
Method
unpack
(input: &[u8])
program/src/instruction.rs:118
Method
unpack_from_slice
(src: &[u8])
program/src/state.rs:40