Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0xekez/simple-solana-program
/ functions
Functions
17 in github.com/0xekez/simple-solana-program
⨍
Functions
17
◇
Types & classes
3
↓ 3 callers
Function
get_greeting_data_size
Determines and reports the size of greeting data.
client/src/utils.rs:86
↓ 3 callers
Function
get_greeting_public_key
Derives and returns the greeting account public key for a given PLAYER, PROGRAM combination.
client/src/utils.rs:77
↓ 2 callers
Function
get_config
Parses and returns the Solana yaml config on the system.
client/src/utils.rs:15
↓ 2 callers
Function
get_greeting_seed
Gets the seed used to generate greeting accounts. If you'd like to force this program to generate a new greeting account and thus restart the counter
client/src/utils.rs:71
↓ 1 callers
Function
create_greeting_account
On Solana accounts are ways to store data. In order to use our greeting counter smart contract we need some way to store the number of times we have s
client/src/client.rs:96
↓ 1 callers
Function
establish_connection
Establishes a RPC connection with the solana cluster configured by `solana config set --url <URL>`. Information about what cluster has been configured
client/src/client.rs:15
↓ 1 callers
Function
get_balance_requirement
Determines the amount of lamports that will be required to execute this smart contract. The minimum balance is calculated assuming that the user would
client/src/client.rs:29
↓ 1 callers
Function
get_greeting_count
Deserializes a greeting account and reports the value of its greeting counter.
client/src/utils.rs:95
↓ 1 callers
Function
get_player
Gets the "player" or local solana wallet that has been configured on the machine.
client/src/utils.rs:53
↓ 1 callers
Function
get_player_balance
Gets the balance of PLAYER in lamports via a RPC call over CONNECTION.
client/src/client.rs:41
↓ 1 callers
Function
get_program
Loads keypair information from the file located at KEYPAIR_PATH and then verifies that the loaded keypair information corresponds to an executable acc
client/src/client.rs:65
↓ 1 callers
Function
get_rpc_url
Gets the RPC url for the cluster that this machine is configured to communicate with.
client/src/utils.rs:41
↓ 1 callers
Function
request_airdrop
Requests that AMOUNT lamports are transfered to PLAYER via a RPC call over CONNECTION. Airdrops are only avaliable on test networks.
client/src/client.rs:49
↓ 1 callers
Function
say_hello
Sends an instruction from PLAYER to PROGRAM via CONNECTION. The instruction contains no data but does contain the address of our previously generated
client/src/client.rs:146
Function
count_greetings
Pulls down the greeting account data and the value of its counter which ought to track how many times the `say_hello` method has been run.
client/src/client.rs:170
Function
main
()
client/src/main.rs:3
Function
process_instruction
Logic that runs when the program is executed. This program expects a single account that is owned by the program as an argument and no instructions.
program/src/lib.rs:29