Skip to content

Commit

Permalink
code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhong solar authored and zhong solar committed Nov 9, 2018
1 parent 4b1f39b commit 7e9f45f
Show file tree
Hide file tree
Showing 21 changed files with 85,770 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# EOS.Win - 纯链上去中心化游戏平台

我们很高兴开源所有的合约代码,包括骰子、彩票、21点以及jackpot,为EOS的生态贡献自己的力量。
正如我们之前一直强调的,EOS.Win没有服务器,所有的随机数都是在链上生成的。

#### 正如我们之前一直强调的,EOS.Win没有服务器,所有的随机数都是在链上生成的。

对于将来的每一次合约更新,我们将在更新合约之后:
1. 同步更新eospark的代码验证。
Expand All @@ -24,8 +25,8 @@ $ bc2d73d0eb6f22d8a5bf3bde6464e245df5f4977c07822bf1a189bc204549b33 dice.wasm
```sh
$ cleos push action eosluckydice verify '["your_receipt_seed"]' -p youraccount
```

#### 骰子幸运抽奖随机数验证:
```sh
$ cleos push action eosluckydice luckreceipt '["your_receipt_seed"]' -p youraccount
```
当然这些操作也可以在bloks(https://bloks.io/account/eosluckydice)上完成
Binary file added dice/.DS_Store
Binary file not shown.
28 changes: 28 additions & 0 deletions dice/config.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#pragma once

#define TEAM_ACCOUNT N(luckyaddress)
#define DIVI_ACCOUNT N(eoswinbonus1)
#define JACKPOT_ACCOUNT N(winjackpot11)
#define TOKEN_CONTRACT N(eosio.token)
#define GAME_TOKEN_CONTRACT N(eoslucktoken)
#define ADD_CONTRACT N(eosadddddddd)
#define ATD_CONTRACT N(eosatidiumio)
#define DAC_CONTRACT N(eosdactokens)
#define HORUS_CONTRACT N(horustokenio)
#define IQ_CONTRACT N(everipediaiq)
#define KARMA_CONTRACT N(therealkarma)
#define TP_CONTRACT N(eosiotptoken)
#define MEET_CONTRACT N(eosiomeetone)
#define BLACK_CONTRACT N(eosblackteam)

#define EOS_SYMBOL S(4, EOS)
#define GAME_SYMBOL S(4, LUCKY)
#define ADD_SYMBOL S(4, ADD)
#define ATD_SYMBOL S(4, ATD)
#define DAC_SYMBOL S(4, EOSDAC)
#define HORUS_SYMBOL S(4, HORUS)
#define IQ_SYMBOL S(4, IQ)
#define KARMA_SYMBOL S(4, KARMA)
#define TP_SYMBOL S(4, TPT)
#define MEET_SYMBOL S(4, MEETONE)
#define BLACK_SYMBOL S(4, BLACK)
Loading

0 comments on commit 7e9f45f

Please sign in to comment.