简体   繁体   English

Ride4dApps中的前三行是什么意思?

[英]What does the first three lines in Ride4dApps mean?

I start writhing my first dApp on RIDE language and I noticed that in smart account these 3 lines of code 我开始用RIDE语言编写我的第一个dApp,我注意到在智能帐户中,这3行代码

{-# STDLIB_VERSION 2 #-}
{-# CONTENT_TYPE EXPRESSION #-}
{-# SCRIPT_TYPE ACCOUNT #-}

are different in ride4dapps code example in the IDE IDE中的ride4dapps代码示例不同

{-# STDLIB_VERSION 3 #-}
{-# CONTENT_TYPE DAPP #-}
{-# SCRIPT_TYPE ACCOUNT #-}

what are these 3 lines for? 这3条线是做什么用的?

this line {-# STDLIB_VERSION 2 #-} stands for the standard library version(the latest version is STDLIB_VERSION 3) which is important to include ride4dapps standard functionality(built-in functions) and the Postfix notation. 此行{-# STDLIB_VERSION 2 #-}代表标准库版本(最新版本为STDLIB_VERSION 3),这对于包含ride4dapps标准功能(内置函数)和Postfix表示法非常重要。

this line {-# CONTENT_TYPE EXPRESSION #-} represents the type of a contract which is 此行{-# CONTENT_TYPE EXPRESSION #-}代表合同的类型,即

  • EXPRESSION for smart accounts and smart assets. 智能帐户和智能资产的表达
  • DAPP for ride4dApps. 适用于ride4dApps的DAPP

The last line {-# SCRIPT_TYPE ACCOUNT #-} represents the script type, which is: 最后一行{-# SCRIPT_TYPE ACCOUNT #-}表示脚本类型,即:

  • ASSET for smart assets script. 用于智能资产脚本的ASSET。
  • ACCOUNT for smart accounts and ride4dApps scripts. 用于智能帐户和ride4dApps脚本的ACCOUNT。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 参数“i”在Ride4dApps中的可调用函数中表示什么? - What does the parameter “i” represent in the callable functions in Ride4dApps? Ride4dApps 中的 WriteSet、TransferSet 和 ContractResult 之间的主要区别是什么? - What is the main difference between WriteSet, TransferSet and ContractResult in Ride4dApps? 在Ride4dApps中,充提dApp(Waves IDE中的例子)是如何处理延迟问题的? - In Ride4dApps, how does the deposit and withdraw dApp(the example in Waves IDE) handle the delay issue? Ride4Dapps:TypeError 无法读取 invokeScript 中未定义的属性“长度” - Ride4Dapps: TypeError Cannot read property 'length' of undefined in invokeScript 什么是 dapp? 洪流客户端可以被视为 dapps 吗? - What are dapps? Can torrent clients be considered as dapps? 这个错误是什么意思 ? 无法处理带有脚本帐户签名的交易。 我在 Waves 平台上使用 RIDE - what does this error mean ? Can't process transaction with signature from scripted account. I'm using RIDE on Waves platform 是什么! 意味着团结? - What does ! mean in Solidity? 区块链中的“交易”是什么意思? - What does one mean by a 'transaction' in blockchain? 什么意思表达“变量名;” 在 Solidity 中? - What does mean expression "variableName;" in Solidity? 如何编写复杂的 dapp - How to write complex dapps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM