You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

https://github.com/hyperledger/iroha/blob/iroha2-dev/iroha_2_whitepaper.md

CategoryFunctionInputOutputDescription
AccountsRegister

domain:String,

name:String

Account

UnRegisterAccountNone

AddSignatory



RemoveSignatory



SetSignatoryQuorum


AssetsRegister

domain:String,

name:String,

quantity:Number,

fees:Fees,

permissions:Permissions

Asset

UnRegisterAssetNone

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


GroupAssetsAsset...AssetGroup

UngroupAssetsAssetGroupAsset...

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:AssetAutomatically does pathfinding through the XYKExchangePairs to find the optimal path from input asset to output asset, potentially with multiple trades in between.
BatchesBatch

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.
DomainsRegistername:StringDomain
MathAddNumber...NumberTakes 2 or more numbers and adds them together

SubtractNumber1, Number2NumberSubtracts a number from another

MultiplyNumber...NumberMultiplies 2 or more numbers together

DivideNumber1, Number2NumberDivides one number by another one

RaisedToNumberBase, NumberPowNumberRaises one number to another number

ModNumber1, Number2NumberTakes the modulo of one number by another one
ConditionalsIf



IfNot



ElseIf



ElseIfNot



Else


DataStoreBlob

name:String,

data:Bytes


Stores arbitrary data
EventsOnBlockHeight



OnTime



OnCondition


PeersAddValidatingPeer



RemoveValidatingPeer


Permissions



Queries








Resources

Code blocks visualization:

  • No labels