The universal credit system supports the creation and use of tokens, here so called ‘assets’.
Assets can be fungible or non-fungible. All assets are stored under ~/assets/. The main difference between the currency UCC and assets is that there is no scoring done when transferring assets.
Fungible assets are assets that can be converted by all users.
This means, that every user can exchange his balance to this asset. The exchange of fungible assets is unlimited; there is no maximum amount that can be exchanged/converted. Below is an example of a fictitous fungible asset ‘TestFungibleToken’ having the asset-symbol ‘TFT.1655676000’ :
asset_description is the description of the assets, asset_price is the price per unit in UCC. asset_fungible=1 defines that this is a fungible asset. The import of fungible assets that other users have created is disabled per default. To enable the auto-import of fungible assets you have to modify the file control/config.conf and set
Non-fungible assets are asset that cannot be converted/exchanged.
To posess such a asset you either have to receive it from a owner or you have to be the initial owner yourself. The total amount of a non-fungible asset is defined as value asset_quantity. Below is an example of a fictitous non-fungible asset ‘TestNonFungibleToken’ having the asset-symbol ‘TNFT.1655676000’:
asset_description is the description of the assets, asset_owner is the initial owner, asset_quantity is the number of tokens. asset_fungible=0 defines, that this is a non-fungible asset. The import of fungible assets that other users have created is disabled per default. To enable the auto-import of fungible assets you have to modify the file control/config.conf and and set