...类型声明如下
```move
/// Capability allowing the bearer to mint and burn
/// coins of type `T`. Transferable
struct TreasuryCap has key, store {
id: UID,
total_supply: Supply
}
/// A Supply of T. Used for minting and burning.
/// Wrapped into a `TreasuryCap` in the `...
... return amount; // ends function and returns
}
function sell(uint amount) returns (uint revenue){
require(balanceOf[msg.sender] >= amount); // checks if the sender has enough to sell
balanceOf[this] += amount; ...
...inary (application) `solfeecalc` package
note: see more `Cargo.toml` keys and their definitions at *******************************************************
cd solfeecalc
ls
Cargo.toml src
cargo run
Compiling solfeecalc v0.1.0 (/Users/qiaopengjun/Code/Solana/SolanaSandbox/solfeecalc)
F...