LOADING...
LOADING...
LOADING...
当前位置:主页 > 知识列表 >

String(以太坊)

1. 科普 | 什么是Soilidity?

...contract Example {// This will be stored permanently in the blockchainuint myUnsignedInteger = 100;string name = "vivek"}Uint数据类型是一个无符号整数。它应该是非负的。数据类型值类型:Boolean(true / false),Integers(int / uint), Address(以太坊地址的大小),String, enum引用类型:数组、结构、映射数学运算Addition: x + ySubtraction: x ...

知识:区块链,Solidity

2. PDXUtopia区块链协议栈使用Solidity调用wasm智能合约

...ity ^0.5.3;contract hello_wasm_abi {function getcounter() public view returns(uint256);function get(string memory key) public view returns(string memory);function put(string memory key,string memory val) public payable;}```### JSON ABI编译合约接口可以得到对应的 `ABI JSON` 描述,提供合约地址和此 `JSON ABI` 文档,`DAPP` 开发者即可实例化 `hello_wasm_abi` 合约,...

知识:合约,合约地址,智能合约,创建区块

3. Rust 和 Elixir 如何读取以太坊和其他 EVM 智能合约:函数式编程和区块链

...ot;: "get", "outputs": [{"name": "","type": "string"} ], "payable": false, "stateMutability": "view", "type": "function"}]Ethereumex 的配置首先,让我们将 Ethereumex 添加到 mix.exs 中的 depsand 应用领域!# mix.exs:def application do[mod: {TaiShang.Application, []},extra_...

知识:以太坊,Rust,EVM

4. 以太坊上简单实现Oracle预言机链接

.../ defines a general api request struct Request { uint id; //request id string urlToQuery; //API url string attributeToFetch; //json attribute (key) to retrieve in the response string agreedValue; //value from key mapping(uint => string) anwers; //answers provided by the oracles mapping(address => uint) quorum; //or...

知识:合约,以太坊,区块链

5. 2020年最硬核DeFi项目String

...一定会催生新的金融产品,今天就让我们一起来谈谈2020年DeFi圈的黑马——String。String是什么?String中文名称“弦”,出自物理的一个分支学科——弦理论,同样也是String团队常年对DeFi生态研究中洞察得到的。弦理论的一个基本观点就是,自然界的基本单元不是电子、光子、中微子和夸克之类的点状粒...

知识:跨链,代币,去中心化,通证

6. PDXUtopia区块链协议栈支持WASM合约与Solidity之间互相调用

...contract?hello_wasm_abi?{??? ??function?getcounter()?public?view?returns(uint256);?? function?get(string?memory?key)?public?view?returns(string?memory);??? ?????????????????????????function?put(string?memory?key,string?memory?val)?public?payable;调用 solidity 合约的 get 方法 :function?solget(address?addr,?string?memory?key)?public?view?returns(string?memory);调用 solidity 合约的 put ...

知识:合约,合约地址,智能合约,区块链协议

7. 智能合约变量储存机制详解

...yte[1]/bytes[1]) 定义数组时定义长度引用类型不定长字节数组类型 (bytes[]/byte[],string,uint[]....)结构体 (struct)映射 (mapping)简单分析写一个简单值类型的合约pragma solidity ^0.4.25;contract TEST{bool a=false;bool b=true;int16 c=32767;uint16 d=0x32;byte e=10;bytes1 f=11;bytes2 g=22;uint h=0x1; //uint是uint256的简称address i=0xbc6581e11c216B17aDf5192E209a7...

知识:智能合约,以太坊,合约,类型

8. Solidity编写的智能合约的异步交易模式

...nder, uint Points); event GetPoints_Pending(address Sender); event GetPoints_Failed(address Sender, string ErrorMsg); 函数 以太坊的默认模式是每个用户调用一个合约函数,并支付在一个同步事务环境中执行代码所需的GAS。 但现在我们有了一个异步事务环境, 这意味着在同步函数调用终止后将需要额外的气体。 因此,您的函...

知识:合约,以太坊,函数

9. 如何利用OpenZeppelin编写可升级的智能合约?

...个名为TodoList的合同。// contracts/TodoList.solpragma solidity ^0.6.3;contract TodoList { ? ?string[] private list; ? ?// Emitted when the storeda new item is added to the list ? ?event ItemAdded(string item); ? ?// Adds a new item in the list ? ?function addItem(string memory newItem) public { ? ? ? ?list.push(newItem); ? ? ? ?emit ItemAdded(newItem); ? ?} ? ?// Gets the item from the list...

知识:合约,智能合约,合同,以太币被盗

10. ETH(以太坊)充值转账API接口文档.

...eate】请求方式POST1.2.2 参数1.2.2.1 参数说明参数类型是否必填说明备注timestampString是时间戳见?验签说明nonceString是随机数见?验签说明signString是签名见?验签说明bodyString是消息内容json字符串,格式如下[{"merchantId":"300015","coinType":520,"callUrl":"http://localhost:8080/callBack"}]1.2.2.2 body参数字段body参数名类型是否必填...

知识:币种,提币,以太坊,钱包

11. ETH(以太坊)充值转账API接口文档

...eate】请求方式POST1.2.2 参数1.2.2.1 参数说明参数类型是否必填说明备注timestampString是时间戳见?验签说明nonceString是随机数见?验签说明signString是签名见?验签说明bodyString是消息内容json字符串,格式如下[{"merchantId":"300015","coinType":520,"callUrl":"http://localhost:8080/callBack"}]1.2.2.2 body参数字段body参数名类型是否必填...

知识:币种,提币,以太坊,钱包

12. 使用Ethers.js构建以太坊DApp

...ng (bytes32 => uint256) public votesReceived; /* Solidity doesn't let you pass in an array of strings in the constructor (yet). We will use an array of bytes32 instead to store the list of candidates */ bytes32[] public candidateList; /* This is the constructor which will be called once when you deploy the contract to the blockchain. When we deploy the contract, we will pass an...

知识:区块链,合约,钱包

13. 通过区块链和加密技术确保更绿色的未来

...运输是目前正在开发的 SmartWorld 计划的第一个也是最重要的阶段。 在Unitsky String Transport的帮助下,它提供了一种全新的人员和货物运输方式。 包含通信通道和位于地面上方的悬挂车辆的串轨可以以 500 公里/小时的速度自主运输乘客和货物。 未来,乘客将能够以1200公里/小时的速度行驶。阿拉伯联合酋...

知识:代币,区块链技术,基于以太坊的,区块链

14. 使用BSN开发区块链应用智能合约-golang篇

...的状态;peer.Response:封装的响应信息???链码方法介绍◆?GetFunctionAndParameters() (string, []string)返回一个方法调用描述对象,第一个值调用的链码方法名,第二个值要传入目标方法的参数对象。◆?GetArgs() [][]byte从链码调用请求中返回参数字符串数组,等价getStringArgs()。◆?GetStringArgs() []string返回链码调用请求...

知识:智能合约,跨链,有链,方法

15. 使用BSN开发区块链应用智能合约-golang篇

...本的状态;peer.Response:封装的响应信息?链码方法介绍◆GetFunctionAndParameters() (string, []string)返回一个方法调用描述对象,第一个值调用的链码方法名,第二个值要传入目标方法的参数对象。◆GetArgs() [][]byte从链码调用请求中返回参数字符串数组,等价getStringArgs()。◆GetStringArgs() []string返回链码调用请求中...

知识:区块链,golang,技术篇,火星技术帖,火星号精选