LOADING...
LOADING...
LOADING...
当前位置: 玩币族首页 > 币圈百科 > 重点|《WisdomChain文档知识库》之资产定义

重点|《WisdomChain文档知识库》之资产定义

2020-09-07 WisdomChain中文社区 来源:区块链网络

English

Asset Definition of Wisdom Chain Document Knowledge Base

This article comes from the official Twitter of Wisdom Chain

URL:

https://twitter.com/Wisdom_Chain/status/1301693246767337472?s=20

In the previous chapter, we talked about the problem of verifying programming in Wisdom Chain Document Knowledge Base. Today, we will talk about asset definition in verifying programming.

Token is a custom asset or equity.As the bottom public chain of the block chain, Wisdom Chain supports users to publish and customize Token, and provides powerful management functions and a convenient management interface.

Users can manage their own digital assets on the Wisdom Chain network and keep their rights and interests records untouched. As with ERC20, all project parties and ordinary investors are free to participate.

For this reason, Wisdom Chain specially designed grammar rules, rules grammar design, is very simple and easy to understand;

<Rule?Type>{??//Attribute?value?definition??//Rule?function}

I. Attribute value definition refers to the attribute definition related to the asset definition. Attribute value is equivalent to the state quantity and needs to be stored in the node account book.

1

Rule function

II. Rule functions are a set of validation rules that determine the call of a transaction and the validation point. After validation, a series of write updates are made according to the rules.

2

Attribute value

Rule types have a fixed rule definition format, so users actually need to fill in their own attribute values and dynamic values in rules, and use template engines to implement their own rules.The process of deploying rules is to write the user's own rules to a block, through a special transaction.

An example of an asset definition rule is as follows:

{????"ASSET_RULE":?{????????"code":?"wdcc",????????"offering":?10000,????????"totalamount":10000,????????"create":?"xxxx",????????"owner":?"yyyy",????????"allowincrease":?0????????"info":{}?????}}

The above defines an asset coded wdcc, initially 10000.There are three main rule functions, changeowner, transfer, and increased.

Through the function of asset definition, both enterprises and individuals can achieve fast token issue. For enterprises, asset definition greatly reduces the operating costs of enterprises, quickly realizes the assets licensing, speeds up the flow of assets, and shares and bonuses of enterprises can be divided directly by the number of tokens held.

For an individual, the asset definition function can also realize the quick realization of personal value. Assuming you are a content creator, you can give token to his fans and friends.

When your content is approved by the market or fans, your token starts to flow, just like dandelion seed, the more seeds you spread, the more true value you have, this value is related to the content, the number of fans.This reduces the intermediate links and maximizes the interests of content creators and fans.

Of course, there are many scenarios where asset definition functions can be applied in the future, whether for an enterprise or an individual.

简体中文

本文来自Wisdom Chain官方Twitter

URL:

https://twitter.com/Wisdom_Chain/status/1301693246767337472?s=20

上章我们讲了《Wisdom Chain文档知识库》的验证式编程问题,今天我们就来聊一聊验证式编程中的资产定义问题。

Token是一种自定义的资产或者权益。作为区块链底层公链,Wisdom Chain支持用户发行并自定义Token,并提供强大的管理功能和便捷的管理界面。用户可以在Wisdom Chain网络上管理自己的多项数字资产并保证权益记录不被篡改,就像在以太坊上发行ERC20一样,所有项目方和普通投资者,都可以自由参与。

为此,Wisdom Chain专门设计了语法规则,规则语法设计,是很简洁易懂的;

<规则类型>{??//属性值定义??//规则函数}

1

属性值定义

属性值定义是指与资产定义相关的属性定义,属性值相当于就是状态量,是需要被存储到节点账本中的。

2

规则函数

规则函数是一组验证规则,决定事务的调用以及验证点,符合规则验证后,会根据规则进行一系列的写入更新。

规则类型拥有固定的规则定义格式,因此,用户实际上只需要填充自己的属性值和规则中的动态的值,使用模板引擎的方式实现自己的规则。部署规则的过程也就是将用户自己的规则写入到区块,是通过一条特殊的事务来实现。

其中资产定义规则示例如下:

{????"ASSET_RULE":?{????????"code":?"wdcc",????????"offering":?10000,????????"totalamount":10000,????????"create":?"xxxx",????????"owner":?"yyyy",????????"allowincrease":?0????????"info":{}?????}}

以上定义了一个代码为wdcc的资产, 初始为10000。并且具备3个主要是规则函数,分别是changeowner、transfer以及increased。

通过资产定义功能,不管是企业还是个人,都可以实现快速发币,对于企业而言,资产定义极大的减少了企业运营成本,快速实现资产通证化,加速企业资产流动,并且企业股份、奖金都可以直接通过持币的数量来进行划分。

对于个人而言,资产定义功能,也能实现个人价值的快速变现,假设你一位内容创作者,那么他可以将币送给自己的粉丝和朋友,当你的内容受到市场认可或者粉丝认可,那么你的币就开始流动起来,这就好比蒲公英撒种一样,当你的蒲公英种子撒的越多,落地生根就有了真实的价值,这个价值就和内容、粉丝量相关。这样减少了中间环节,同时还能实现内容创作者与粉丝的利益最大化。

当然不管是企业还是个人,资产定义功能,在未来还有很多适用场景。

关注Wisdom Chain动态

Twitter:Wisdom_Chain

微博:WisdomChain

知乎:智慧链技术社区

Facebook:WisdomChain

Telegram:WisdomPublicChain

Medium:Wisdom_Chain

相关资源

WIsdom Chain公链文档知识库:

https://docs.wisdchain.com/#/

Wisdom Chain官网:

https://wisdchain.io/

Wisdom Chain技术论坛:

http://tech.wisdchain.io/

Wisdom Chain开源代码库:

https://github.com/WisedomChainGroup

Wisdom Chain区块浏览器:

https://scan.wisdchain.com

—-

编译者/作者:WisdomChain中文社区

玩币族申明:玩币族作为开放的资讯翻译/分享平台,所提供的所有资讯仅代表作者个人观点,与玩币族平台立场无关,且不构成任何投资理财建议。文章版权归原作者所有。

LOADING...
LOADING...