...
https://github.com/hyperledger/iroha/blob/iroha2-dev/iroha_2_whitepaper.md
Actions | Domain | Account | Asset |
---|---|---|---|
Register | Account, Asset | ||
Unregister | Account, Asset | ||
Add | Signatory | Quantity | |
Remove | Signatory | ||
Transfer | |||
Event |
Category | Function | Input | Output | Description |
---|---|---|---|---|
Accounts | Register | domain:String, name:String | Account | |
UnRegister | Account | None | ||
AddSignatory | ||||
RemoveSignatory | ||||
SetSignatoryQuorum | ||||
Assets | Register | domain:String, name:String, quantity:Number, fees:Fees, permissions:Permissions | Asset | |
UnRegister | Asset | None | Removes registration of an asset. | |
Mint | Asset, Account, Quantity | Asset | Adds Quantity newly minted units of Asset to an Account. Note: Permissions must allow this. | |
Demint | Asset, Account, Quantity | Asset | Deletes Quantity of Asset from an Account. Note: Permissions must allow this | |
GroupAssets | Asset... | AssetGroup | ||
UngroupAssets | AssetGroup | Asset... | ||
Transfer | ||||
SwapAssets | asset1:Asset, asset2:Asset | asset2:Asset, asset1:Asset | ||
CreateXYKExchange | name:Domain, name:Exchange, fees:Fees, permissions:Permissions | |||
RegisterXYKExchangePair | ||||
AddXYKExchangeLiquidity | ||||
XYKExchangeTrade | ||||
AddOraclizedExchangePair | ||||
ChainedXYKExchangeTrade | input:Asset, target:Asset | tradeOutput:Asset | Automatically does pathfinding through the XYKExchangePairs to find the optimal path from input asset to output asset, potentially with multiple trades in between. | |
Batches | Batch | Batches commands with the constraint that within the batch, no new assets are created and units of an asset are not added. | ||
BatchUnconserved | Batches commands, allowing new assets and units of an asset to be added. | |||
Domains | Register | name:String | Domain | |
Math | Add | Number... | Number | Takes 2 or more numbers and adds them together |
Subtract | Number1, Number2 | Number | Subtracts a number from another | |
Multiply | Number... | Number | Multiplies 2 or more numbers together | |
Divide | Number1, Number2 | Number | Divides one number by another one | |
RaisedTo | NumberBase, NumberPow | Number | Raises one number to another number | |
Mod | Number1, Number2 | Number | Takes the modulo of one number by another one | |
Conditionals | If | |||
IfNot | ||||
ElseIf | ||||
ElseIfNot | ||||
Else | ||||
Data | StoreBlob | name:String, data:Bytes | Stores arbitrary data | |
Events | OnBlockHeight | |||
OnTime | ||||
OnCondition | ||||
Peers | AddValidatingPeer | |||
RemoveValidatingPeer | ||||
Permissions | ||||
Queries | ||||
...