Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FOMO3D
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
RichardW
FOMO3D
Commits
fc4f7ddc
Commit
fc4f7ddc
authored
Jul 31, 2018
by
wq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
^_^
parent
22f15da0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
README.md
README.md
+20
-1
No files found.
README.md
View file @
fc4f7ddc
...
...
@@ -7,8 +7,12 @@
#### 部署合约:
```
npm install ganache-cli -g
ganache-cli -l 471238800 -g 1 # 开启 testrpc 同时设定 gasLimit 和 gasPrice
truffle compile
truffle migrate --reset # 执行后 复制 fomo3dLong 后跟的地址
truffle migrate --reset # 执行后, 复制 FoMo3Dlong: 后跟的地址
#直接输出最终合约地址, 将不会打印编译过程
truffle migrate --reset | grep 'FoMo3Dlong: 0x' | awk '{ print $2 }'
```
#### 部署前端:
...
...
@@ -20,4 +24,18 @@ cd ../../
npm install & npm run dev
```
#### 游戏激活(不激活就处于 ICO 中? 不懂...)
```
npm install remix-ide -g # 安装个本地的 remix-ide
remix-ide #注意此时处于项目根目录
```
> OK, 浏览器访问 [remix-ide](localhost:8080), 点击左上角第6个图标( Connect to localhost ), 弹框继续 connect
>
> 左边多出 localhost, 点击 contracts 下的 FoMo3Dlong.sol 文件, ctrl + s , 触发编译 , 下一步
>
> 点击右边的上边的 Run, 选择 web3 provider, 如端口不变, 一路 next, ok, 往下看, 有个选择 合约的 select, 选中 FoMo3Dlong, 然后在 输入框中输入 migrate 得到的合约地址, 然后点击 At Address
>
> 最后点下 合约的 activate 方法
>PS: 前端路径 由于没有 采用专业的后端服务器, 所以 /play /xxx 直接访问均报错, 请再访问出错后, 删除后缀, 重新载入, 等待 loading
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment