码迷,mamicode.com
首页 >  
搜索关键字:contract    ( 509个结果
Linsheng-Size Parameters Of Air Compressor
Air compressors come in various shapes and sizes. They range from 12-volt miniature batteries (used to inflate car tires) as part of emergency start p ...
分类:其他好文   时间:2020-03-06 13:06:03    阅读次数:61
实现代币ERC721功能
首先ERC721的标准: contract ERC721 { event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); event Approval(address indexed _owner, ad ...
分类:其他好文   时间:2020-03-05 22:13:07    阅读次数:104
[Contract] web3.eth.getAccounts, web3.eth.getCoinbase 使用场景区别
web3.eth.getAccounts() 返回节点控制的账号列表(Promise returns Array) web3.eth.getCoinbase() 返回挖矿奖励所归集的地址(Promise returns String) 根据字面意思很难知道 两个函数 分别用在哪块,下面给出具体解释: ...
分类:Web程序   时间:2020-03-02 09:16:10    阅读次数:191
智能合约交互
当合约需要和区块链上的其他合约交互的时候: 需要先定义一个interface(接口) 定义: contract Number{ function getNum(address _myAddress) public view returns (uint); } 这里虽然看着像一个合约并且内部定义了一个 ...
分类:其他好文   时间:2020-02-28 00:55:58    阅读次数:50
[Contract] Solidity 变量类型的默认值
变量的默认值一般都代表 “零值”。 比如 bool 就是 false,uint、int 就是 0,string 就是空字符串。 其它组合的参考 Solidity 判断 mapping 值的存在 Ref:https://solidity.readthedocs.io/en/v0.6.3/control ...
分类:其他好文   时间:2020-02-26 17:15:31    阅读次数:81
[Contract] Solidity 遍历 mapping 的一种方式
思路:为需要遍历的 mapping 再准备一个 list,之后通过 for 循环遍历 list 取得 mapping 的 key。 mapping (address => uint) usersValue mapping (uint => address) list uint length = xx ...
分类:移动开发   时间:2020-02-25 23:15:28    阅读次数:188
[Contract] Solidity 判断 mapping 值的存在
比如 mapping(address => uint) tester,只需要判断 mapping 是否为默认值 0, tester[msg.sender] == 0 "You can think of mappings as hash tables, which are virtually init ...
分类:移动开发   时间:2020-02-25 17:30:10    阅读次数:131
[FAQ] Member "address" not found or not visible after argument-dependent lookup in address payable.
顾名思义,address 属性不存在,请检查调用方。 比如:msg.sender.address 会有此提示,在 Solidity Contract 中,msg.sender.balance 是存在的,地址直接使用 msg.sender Link:https://www.cnblogs.com/fa ...
分类:其他好文   时间:2020-02-24 18:34:54    阅读次数:96
mybatis中的动态语句中多条件or如何书写
1.说明 sql如下: SELECT COUNT(DISTINCT t.contract_id) FROM `plm`.`t_plm_contract_monitor` t WHERE 1=1 ANd (t.whole_id_one in ( 77 ) or t.whole_id_five in ( ...
分类:其他好文   时间:2020-02-21 19:56:22    阅读次数:350
[Contract] Truffle 使用流程
Installation $ npm install -g truffle Choose ethereum client (Ganache OR truffle build in `truffle develop`) https://www.trufflesuite.com/docs/truffle ...
分类:其他好文   时间:2020-02-18 14:43:23    阅读次数:86
509条   上一页 1 2 3 4 5 6 ... 51 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!