MCPcopy Create free account

hub / github.com/cutupdev/Solana-Token-Presale-Smart-Contract / functions

Functions49 in github.com/cutupdev/Solana-Token-Presale-Smart-Contract

↓ 8 callersFunctiongetAssociatedTokenAccount
( ownerPubkey: PublicKey, mintPk: PublicKey )
lib/util.ts:21
↓ 5 callersFunctionexecTx
( transaction: Transaction | VersionedTransaction, connection: Connection, payer: NodeWallet )
lib/util.ts:148
↓ 5 callersFunctionprogramCommand
(name: string)
cli/command.ts:110
↓ 5 callersFunctionsetClusterConfig
( cluster: web3.Cluster, keypair: string, rpc?: string )
cli/scripts.ts:29
↓ 4 callersFunctiongetAssociatedTokenAccount
( ownerPubkey: PublicKey, mintPk: PublicKey )
tests/utils.ts:9
↓ 2 callersFunctionairdropToken
(mintKp: Keypair, authority: Keypair, payer: Signer, user: PublicKey, amount: number)
tests/airdrop-tokens.ts:10
↓ 2 callersFunctioncreateAssociatedTokenAccountInstruction
( associatedTokenAddress: PublicKey, payer: PublicKey, walletAddress: PublicKey, splTokenMintA
lib/util.ts:78
↓ 2 callersFunctioncreateMintAcct
(mintKp: Keypair, payer: Signer, authorityToAssign: PublicKey)
tests/create-mints.ts:43
↓ 1 callersFunctionbuild_bundle
( search: SearcherClient, bundleTransactionLimit: number, txs: VersionedTransaction[], keypair
lib/executor.ts:121
↓ 1 callersFunctionbull_dozer
( txs: VersionedTransaction[], keypair: Keypair, connection: Connection )
lib/executor.ts:55
↓ 1 callersFunctioncreateDepositPresaleToken
( admin: PublicKey, token: PublicKey, amount: number, program: Program<Presale> )
lib/scripts.ts:86
↓ 1 callersFunctioncreateInitializeTx
( admin: PublicKey, token: PublicKey, program: Program<Presale> )
lib/scripts.ts:14
↓ 1 callersFunctioncreateMints
(payer: Keypair)
tests/create-mints.ts:10
↓ 1 callersFunctioncreateSetStageTx
( admin: PublicKey, stageNum: number, program: Program<Presale> )
lib/scripts.ts:159
↓ 1 callersFunctioncreateSetVaultAddressTx
( admin: PublicKey, vault: PublicKey, program: Program<Presale> )
lib/scripts.ts:48
↓ 1 callersFunctioncreateStartPresaleTx
( admin: PublicKey, token: PublicKey, program: Program<Presale> )
lib/scripts.ts:125
↓ 1 callersFunctiondepositPresaleToken
( token: PublicKey, amount: number )
cli/scripts.ts:87
↓ 1 callersFunctioninitProject
( token: PublicKey )
cli/scripts.ts:67
↓ 1 callersFunctionprocess_change_admin
(ctx: Context<ChangeAdmin>, new_admin: Pubkey)
programs/presale/src/instructions/change_admin.rs:21
↓ 1 callersFunctionsetStage
( stageNum: number )
cli/scripts.ts:108
↓ 1 callersFunctionsetVaultAddress
( vault: PublicKey )
cli/scripts.ts:77
↓ 1 callersFunctionsol_transfer_user
transfer sol from user
programs/presale/src/util.rs:19
↓ 1 callersFunctionstartPresale
( token: PublicKey )
cli/scripts.ts:98
↓ 1 callersFunctiontoken_transfer_user
transfer token from user
programs/presale/src/util.rs:32
↓ 1 callersMethodupdate_remain_tokens
Function to update remain_tokens from STAGES
programs/presale/src/state.rs:36
Functionbundle
( txs: VersionedTransaction[], keypair: Keypair, connection: Connection )
lib/executor.ts:24
Functionbuy
Buy with SOL
programs/presale/src/lib.rs:72
Functionbuy_with_stable_coin
Buy with USDC/USDT
programs/presale/src/lib.rs:80
Functionchange_admin
Admin can hand over admin role
programs/presale/src/lib.rs:29
FunctiongetATokenAccountsNeedCreate
( connection: Connection, walletAddress: PublicKey, owner: PublicKey, nfts: PublicKey[], )
lib/util.ts:108
FunctiongetAdressLookupTableAccounts
( keys: string[], connection: Connection )
lib/util.ts:37
Functioninit_user
Initialize user state
programs/presale/src/lib.rs:65
Functioninitialize
called by contract deployer only 1 time to initialize global values send SOL to global_account and initialize the global states
programs/presale/src/lib.rs:22
FunctioninstructionDataToTransactionInstruction
( instructionPayload: any )
lib/util.ts:60
FunctiononBundleResult
( c: SearcherClient, txSig: string, targetBundleId: string, connection: Connection)
lib/executor.ts:164
Methodprocess_instruction
(ctx: Context<Self>, mut sol_amount: u64)
programs/presale/src/instructions/buy.rs:45
Methodprocess_instruction
(ctx: Context<Self>)
programs/presale/src/instructions/set_vault_address.rs:72
Methodprocess_instruction
(ctx: Context<Self>)
programs/presale/src/instructions/init_user.rs:23
Methodprocess_instruction
(ctx: Context<Self>)
programs/presale/src/instructions/start_presale.rs:21
Methodprocess_instruction
(ctx: Context<Self>, live: bool)
programs/presale/src/instructions/set_live.rs:21
Methodprocess_instruction
(ctx: Context<Self>)
programs/presale/src/instructions/initialize.rs:23
Methodprocess_instruction
(ctx: Context<Self>, stage: u8)
programs/presale/src/instructions/set_stage.rs:21
Methodprocess_instruction
(ctx: Context<Self>, mut stable_coin_amount: u64)
programs/presale/src/instructions/buy_with_stable_coin.rs:61
Functionset_live
Admin can start the pause/resume presale @param - live: pause presale if true, resume presale
programs/presale/src/lib.rs:49
Functionset_stage
Admin can set the stage number
programs/presale/src/lib.rs:57
Functionset_vault_address
Admin can set the vault address
programs/presale/src/lib.rs:34
Functionsol_transfer_with_signer
transfer sol from PDA
programs/presale/src/util.rs:6
Functionstart_presale
Admin can start the presale
programs/presale/src/lib.rs:41
Functiontoken_transfer_with_signer
transfer token from PDA
programs/presale/src/util.rs:53