... = "training_code"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tokio = { version = "1.29.1", features = ["sync"] }
```
### lib.rs
```rust
pub mod ticket;
```
### tick...
...更多请求,请求该 MPT 节点的每个子节点。
```
// Create and schedule a request for all the children nodes
requests, err := s.children(request, node)
if err != nil {
return committed, i, err
}
if len(requests) == 0 && request.deps ==...
...n
function flashBorrow() external {
// send borrower 1 ether and call borrower's function `onFlashLoan()`
bytes32 ret = FlashBorrower(msg.sender).onFlashLoan{value: 1 ether}(bal);
// expect it back in the same transaction
require(ret == keccak256("BorrowMon...
...b mod solana_business_card {
use super::*;
// Our instruction handler! It sets the user's favorite number and color
pub fn set_favorites(
context: Context,
number: u64,
color: String,
hobbies: Vec,
) -> Result {
let user_public_key =...