yushuohuanxiu / onechance Goto Github PK
View Code? Open in Web Editor NEW基于以太坊的一元夺宝实现
基于以太坊的一元夺宝实现
怎么可以不考虑……
后期再考虑的话,现在让人家怎么部署……
请在Readme中详细说明风险……
可以联系你吗?有些问题需要咨询的
您好,先感谢分享,有一个疑问请教下:
在geth-test里的deploy.js中执行前是不是有什么操作,比如使用OneChance.sol创建合约账户?
还有这个data数据是怎么生成的?
`var addresscompress = addresscompressContract.new(
{
from: web3.eth.accounts[0],
data: '6060604052610169806100126000396000f3606060405260e060020a60003504630b688f40811461003f5780631d0cce4c14610062578063db13970514610095578063ff776f55146100a9575b610002565b34610002576100eb60043560006020819052908152604090205463ffffffff1681565b346100025761010560043560016020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b34610002576100eb60025463ffffffff1681565b34610002576100eb60043573ffffffffffffffffffffffffffffffffffffffff811660009081526020819052604081205463ffffffff16811461010f57610002565b6040805163ffffffff929092168252519081900360200190f35b6060908152602090f35b60408082206002805463ffffffff1980821663ffffffff928316600190810191821790945584549091168117909355821684526020529120805473ffffffffffffffffffffffffffffffffffffffff19168317905591905056',
gas: 4700000
}, function (e, contract){
console.log(e, contract);
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
}
});`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.