[−][src]Module damn_vuln_blockchain::asset
Assets are objects that can be transacted on the blockchain
The easiest way to manage Asset with te AssetLedger actor
AssetLedger Messages:
- ChangeAssetOwner: Changes an asset's owner
- InitNetwork: Initializes assets to peers in the network
- GetAssetInfo: Get an asset's info
- DumpLedger: Dump the entire asset ledger
- ReplaceLedger: Replace the current ledger with another ledger, useful when
- ChooseValidator: Choose validator based on coinage
- GetPeerAssets: Get all the assets belonging to a peer
- SetLastTransation: Set last transaction in which the asset was used
- SetStake: Set stake for a block creation
- GetStake: Get stake for a block ID synchronising state
Structs
| Asset | /// Assets are objects that can be transacted on the blockchain |
| AssetLedger | represents the world(full network) state of Asset |
| ChangeAssetOwner | Changes owner of asset |
| ChangeAssetOwnerBuilder | Builder for |
| ChooseValidator | Get asset info of |
| DumpLedger | Dumps entire ledger |
| GetAssetInfo | Get asset info of |
| GetPeerAssets | Get assets belonging to a peer |
| GetStake | Get stake for a block ID |
| InitNetwork | Initializes assets to peers in the network AssetLedger` will automatically devide available assets please note that this call will result in error if it's called after all the assets' owners are changed from None to Some(val) |
| InitNetworkBuilder | Builder for |
| ReplaceLedger | Replaces asset ledger Useful when forking |
| SetLastTransation | Set last transaction ID in which asset was modified |
| SetLastTransationBuilder | Builder for |
| SetStake | Set stake for a block ID |
| SetStakeBuilder | Builder for |
| Stake | represents the stake each peer is willing to send for every block creation. |
| StakeBuilder | Builder for |