会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
huahuayu's notes
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
10
下一页
2018年4月21日
关于oraclize使用最好的一篇文章
摘要: https://medium.com/@msolomon44/using-apis-in-your-ethereum-smart-contract-with-oraclize-95656434292e 作者在写这篇文章之前和我在gitter上有过交流,我特地提到加上本地链 + oraclize br
阅读全文
posted @ 2018-04-21 10:19 huahuayu
阅读(1190)
评论(1)
推荐(0)
2018年4月19日
智能合约生成随机数
摘要: 1. oraclize官方提供的方法 https://github.com/oraclize/ethereum-examples/blob/master/solidity/random-datasource/randomExample.sol 可靠性证明白皮书: http://www.oracliz
阅读全文
posted @ 2018-04-19 16:39 huahuayu
阅读(2376)
评论(0)
推荐(0)
2018年4月8日
Solidity oraclize解析Json格式数据
摘要: solidity虽然不能解析json数据但是oraclize_query可以直接处理: 查询获得的Json数据(http://api.k780.com/?app=finance.globalindex&inxno=000001&appkey=10003&sign=b59bc3ef6191eb9f74
阅读全文
posted @ 2018-04-08 15:39 huahuayu
阅读(3059)
评论(0)
推荐(0)
2018年4月5日
Solidity safesub防止溢出
摘要: 在Solidity中两个无符号整型数字相减结果如果为负则会溢出,很严重的问题。所以在做数字运算时可以用DSSafeAddSub来保证运算的安全。
阅读全文
posted @ 2018-04-05 00:32 huahuayu
阅读(766)
评论(0)
推荐(0)
2018年4月3日
Solidity字符串拼接实现oraclize动态查询
摘要: solidity本身没有字符串拼接功能,但是如果你恰巧要用oraclize api,那么可以使用oraclize api中的字符串拼接方法(strConcat)。之所以oraclize api里会有strConcat方法,我想是因为方便用户实现动态查询。
阅读全文
posted @ 2018-04-03 10:40 huahuayu
阅读(1031)
评论(0)
推荐(0)
2018年3月31日
Solidity mapping循环
摘要: https://medium.com/@blockchain101/looping-in-solidity-32c621e05c22
阅读全文
posted @ 2018-03-31 17:54 huahuayu
阅读(804)
评论(0)
推荐(0)
2018年3月29日
Solidity 合约调用合约
摘要: 原文地址:https://medium.com/@k3no/making-a-birthday-contract-858fd3f63618 先将datetime合约部署:https://github.com/pipermerriam/ethereum-datetime 然后获取datetime ut
阅读全文
posted @ 2018-03-29 15:44 huahuayu
阅读(5757)
评论(0)
推荐(0)
Solidity string to uint
摘要: oraclize result以string格式返回,solidity没有uint(string)这样的强制转换功能,如果要解析其中的数字,可以用oraclize提供的parseInt方法:
阅读全文
posted @ 2018-03-29 11:39 huahuayu
阅读(2143)
评论(0)
推荐(0)
2018年3月28日
Solidity智能合约升级解决方案
摘要: https://blog.zeppelin.solutions/proxy-libraries-in-solidity-79fbe4b970fd
阅读全文
posted @ 2018-03-28 18:24 huahuayu
阅读(765)
评论(0)
推荐(0)
Solidity部署问题
摘要: Solidity是一个有诸多限制的语言,部署智能合约以及运行都需要gas。 部署的时候如果程序太大,所需要的gas会超过一个区块的上限,这样就没法部署合约。如果用metamask测试的话会弹出以下警告,强行执行部署交易也没用: Gas estimation errored with the foll
阅读全文
posted @ 2018-03-28 16:44 huahuayu
阅读(3233)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
10
下一页
公告