SOLANA COMMERCIAL BOTOT PLANNING
As disintegration, covered in the creation of an automatic bot in the Solana block chain, you make a drawn selection. Solan ecositics dissolve and develop rapidly, causing the procedure for their project. In this state, dissatisfied with the ecosisystem of the library whisper on salt, the disigity of its prevention and the dismay of planning for the beginning of work.
ECOSITY LIBERTEKI RUST
Rust: This is an investigation by Mozilla de Mozilla Horneada, baked, stubborn Mozilla in 2015. Its ecosistem of the state of the different libraries, which are presented by the wide range of functional facilities for the construction of the scale and efficiency adhesion, The projects included in the block chain, so that Solana.
Solana, future decentralized platform and open blockchain with an open source code, has its own Ecosyteem essential of Rust. The main libraries for assimilation with the Solana Red:
- Solana-Program : This is the affective libraries for mutilation with the Solana blockchain. It presents the API for procrastination and transaction, the alignment of the intelliteral contract and more.
- Solana-Shaarts : This library will make a set of clichés (Interfays), which can be used for the demolition of Polish logic for different tasks in the Solan.
Application attempts Rahovy Library
The use of Libliotek Rust in its Solana project has some more predominant:
1.
- Mama : The Rusty Code is frequent and reads from its strong tip and abandonment of general expenses.
3.
Planning of your Bot Solana trade
Previously, subtract the realization, we give a staging of planning:
- Do you remove your project
: What kind of bot is a chain? Do you enter the daytime operations, a balance or something else?
- Choose the direction of the counteract : decides to counteract in the middle of the Solana Red. You can use the Solan-Program function
create_contract
for the creation of a new Inteling counter.
3.
4.
Wariants of Production
To give it a better introduction on a Tom, which is possible with Solana, we consume a simple bot, USpolza Solana Mraits:
“ Oxide
Use sooana_program :: {
Account_info :: accouinfo,
Intrypoint :: programresult,
Program_error :: {programmer, errakind},
};
ASYNC FN MAIN () -> programming {
// record the address and its abi
Leave contract_address = “0x …”; // Replace in the countermaway direction
Loop ABI = SOOLANA_PROGRAM :: LOAD_ABI (“ROUTE/TO/YOUR CONTRACT/ABI”). OK ();
// Create a new capture recorded in the Solana Red
Leave_info = accouinfo :: new_account (
& Contract_address,
Neighbor! [“Polish” .to_string ()],
“0x …”. To_string ()
10000,
)?;
// Pierce, there are in the pollinators of the middle to buy
Let Balance = Soolana_program :: Get_balance (& account_info.key) .ok ();
Combine! (Balance> = 100);
// linen the logic of score, using the litera biblior laits
If let er (err) = Execute_trading_logic (& contract_address, abi, & [“Asset1” .to_string (), “Asset2” .to_sting ()], & mut account_info.Key) {
Bag!