var ballotContract = web3.eth.contract([{"constant":false,"inputs":[{"name":"content","type":"string"},{"name":"option","type":"string[]"},{"name":"Validity","type":"uint256"},{"name":"addr","type":"address"}],"name":"InitiateEvent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPlayer","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"uint256"}],"name":"Reward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"uint256"}],"name":"getVote","outputs":[{"components":[{"name":"Voted","type":"bool"},{"name":"Option","type":"uint256"},{"name":"Finance","type":"uint256"},{"name":"Reward","type":"bool"}],"name":"","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getTotalEvent","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"uint256"},{"name":"option","type":"uint256"}],"name":"Report","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"uint256"},{"name":"option","type":"uint256"},{"name":"finance","type":"uint256"}],"name":"Vote","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"uint256"}],"name":"getEvent","outputs":[{"components":[{"name":"ID","type":"uint256"},{"name":"Sponsor","type":"address"},{"name":"Content","type":"string"},{"name":"Option","type":"string[]"},{"name":"Reporter","type":"address"},{"name":"StartDate","type":"uint256"},{"name":"Deadline","type":"uint256"},{"name":"Voters","type":"address[]"},{"name":"PrizePool","type":"uint256"},{"name":"Report","type":"bool"},{"name":"Result","type":"uint256"}],"name":"","type":"tuple"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"uint256"},{"name":"option","type":"uint256"}],"name":"getEventOptionInfo","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"CreatePlayer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]);
var ballot = ballotContract.new(
{
from: web3.eth.accounts[0],
data: '0x608060405234801561001057600080fd5b50612b11806100206000396000f3006080604052600436106100a4576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806331f46380146100a95780633308f42d146100d25780633ac0594a146100fe5780635a55c1f0146101275780635cb9c5f2146101645780636756f6601461018f5780636bbb2afb146101b85780636d1884e0146101e1578063ab05f2ce1461021e578063ca4571e81461025b575b600080fd5b3480156100b557600080fd5b506100d060048036036100cb9190810190611f93565b610272565b005b3480156100de57600080fd5b506100e761061b565b6040516100f59291906128cd565b60405180910390f35b34801561010a57600080fd5b5061012560048036036101209190810190612026565b6106fe565b005b34801561013357600080fd5b5061014e60048036036101499190810190612026565b610bb7565b60405161015b9190612897565b60405180910390f35b34801561017057600080fd5b50610179610c6f565b60405161018691906128b2565b60405180910390f35b34801561019b57600080fd5b506101b660048036036101b1919081019061204f565b610c7b565b005b3480156101c457600080fd5b506101df60048036036101da919081019061208b565b610f16565b005b3480156101ed57600080fd5b5061020860048036036102039190810190612026565b611563565b6040516102159190612875565b60405180910390f35b34801561022a57600080fd5b506102456004803603610240919081019061204f565b6118ae565b60405161025291906128b2565b60405180910390f35b34801561026757600080fd5b506102706118e0565b005b60006060600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033f906126d5565b60405180910390fd5b6101f4600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015410156103cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103c690612795565b60405180910390fd5b6101f4600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001016000828254039250508190555060008054905091506000610160604051908101604052808481526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018881526020018781526020018573ffffffffffffffffffffffffffffffffffffffff16815260200142815260200186420181526020018381526020016000815260200160001515815260200160638152509080600181540180825580915050906001820390600052602060002090600b0201600090919290919091506000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506040820151816002019080519060200190610543929190611b00565b506060820151816003019080519060200190610560929190611b80565b5060808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060a0820151816005015560c0820151816006015560e08201518160070190805190602001906105d8929190611be0565b5061010082015181600801556101208201518160090160006101000a81548160ff02191690831515021790555061014082015181600a0155505050505050505050565b60006060600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600201808054806020026020016040519081016040528092919081815260200182805480156106ef57602002820191906000526020600020905b8154815260200190600101908083116106db575b50505050509050915091509091565b600060011515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301600084815260200190815260200160002060000160009054906101000a900460ff1615151415156107ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107a390612755565b60405180910390fd5b600115156000838154811015156107bf57fe5b90600052602060002090600b020160090160009054906101000a900460ff161515141515610822576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081990612855565b60405180910390fd5b60008281548110151561083157fe5b90600052602060002090600b0201600a0154600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206003016000848152602001908152602001600020600101541415156108dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108d3906127b5565b60405180910390fd5b60001515600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600301600084815260200190815260200160002060030160009054906101000a900460ff161515141515610988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097f90612715565b60405180910390fd5b60016000838152602001908152602001600020600001600080848154811015156109ae57fe5b90600052602060002090600b0201600a015481526020019081526020016000205460016000848152602001908152602001600020600001600080858154811015156109f557fe5b90600052602060002090600b0201600a0154815260200190815260200160002054600084815481101515610a2557fe5b90600052602060002090600b02016008015403600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060030160008581
没有合适的资源?快使用搜索试试~ 我知道了~
Prophet-master.zip
共71个文件
js:18个
png:12个
vue:10个
0 下载量 92 浏览量
2022-12-18
09:35:35
上传
评论
收藏 5.43MB ZIP 举报
温馨提示
基于以太坊区块链智能合约技术和Vue框架开发的去中心化投票预测平台。实现用户在有成本制约条件下,整体投票结果对预测事件未来走向具有良好的参考价值。同时采用区块链技术,避免开发人员篡改数据的可能,保证了投票数据安全可靠,增强了平台可信度。
资源推荐
资源详情
资源评论
收起资源包目录
Prophet-master.zip (71个子文件)
Prophet-master
babel.config.js 53B
src
App.vue 814B
assets
Prophet.png 81KB
logo.png 7KB
ethereum-hero-light.mp4 1.08MB
mm-logo.svg 12KB
main.js 1KB
api
test.js 133B
utils
request.js 1KB
FormatTime.js 891B
Deduplication.js 240B
getWeb3.js 6KB
store.js 709B
components
Event.vue 3KB
Solidity
WEB3DEPLOY.txt 24KB
Ballot.sol 7KB
views
EventInfo.vue 17KB
Hello.vue 6KB
UserInfo.vue 4KB
AllEvent.vue 4KB
404.vue 211B
Oneself.vue 4KB
Home.vue 9KB
Initiate.vue 9KB
router.js 2KB
LICENSE 1KB
dist
assets
media
ethereum-hero-light.efd5434a.mp4 1.08MB
js
chunk-9bf7590a.3b83d8f7.js 3KB
app.81acf006.js 18KB
chunk-49718590.23e4388e.js 6KB
chunk-285b042c.95db52e6.js 3KB
chunk-4b8a5e2e.c65b3819.js 5KB
chunk-vendors.63a219f9.js 1.79MB
chunk-2d0d3dbd.4fb4bec4.js.map 36KB
chunk-49718590.23e4388e.js.map 20KB
chunk-9bf7590a.3b83d8f7.js.map 11KB
chunk-vendors.63a219f9.js.map 6.3MB
chunk-8721c828.6a5b065d.js 3KB
chunk-4b8a5e2e.c65b3819.js.map 22KB
chunk-8721c828.6a5b065d.js.map 14KB
chunk-285b042c.95db52e6.js.map 12KB
chunk-2d0d3dbd.4fb4bec4.js 9KB
app.81acf006.js.map 74KB
img
mm-logo.51bcea26.svg 12KB
logo.82b9c7a5.png 7KB
Prophet.77f48914.png 81KB
css
chunk-8721c828.e8983b05.css 204B
app.3508f1f5.css 3KB
chunk-49718590.9acdc05b.css 69B
chunk-vendors.fe9ebc01.css 228KB
chunk-4b8a5e2e.f42e92fa.css 176B
fonts
element-icons.535877f5.woff 28KB
element-icons.732389de.ttf 55KB
data.json 1KB
Prophet.ico 81KB
index.html 1KB
img
概览.png 121KB
简略个人信息.png 22KB
交易1.png 139KB
交易.png 66KB
个人事件.png 70KB
个人详情信息.png 112KB
创建事件.png 68KB
事件详情信息.png 74KB
package.json 1KB
public
data.json 1KB
Prophet.ico 81KB
index.html 596B
package-lock.json 520KB
vue.config.js 2KB
.gitignore 214B
共 71 条
- 1
资源评论
m0_72731342
- 粉丝: 4
- 资源: 1829
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功