-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from fqliao/release-1.0.1
Release 1.0.1
- Loading branch information
Showing
17 changed files
with
966 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# safelist | ||
branches: | ||
only: | ||
- master | ||
only: | ||
- /.*/ | ||
|
||
language: java | ||
jdk: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
### v1.0.1 | ||
|
||
(2019-04-02) | ||
|
||
* Add | ||
|
||
1. 提供`getDeployLog`(查询部署的合约地址),`exit`(退出控制台)命令。 | ||
2. 提供下载控制台脚本`download_console.sh`。 | ||
3. `start.sh`脚本中增加对Java版本检测。 | ||
|
||
* Update | ||
1. 支持合约引入Solidity library库。 | ||
2. 支持合约地址可以省略0x以及前缀0。例如,0x000ac78可以简写成0xac78或ac78。 | ||
3. 优化命令的帮助信息。 | ||
|
||
### v1.0.0 | ||
|
||
(2019-03-18) | ||
|
||
* Add | ||
|
||
1. 提供区块链状态查询命令 | ||
2. 提供管理区块链节点的命令 | ||
3. 提供简单易用的部署和调用合约命令 | ||
4. 提供合约编译工具将solidity合约文件编译为java合约文件 | ||
1. 提供区块链状态查询命令。 | ||
2. 提供管理区块链节点的命令。 | ||
3. 提供简单易用的部署和调用合约命令。 | ||
4. 提供合约编译工具将Solidity合约文件编译为Java合约文件。 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
pragma solidity ^0.4.24; | ||
contract Ok{ | ||
|
||
struct Account{ | ||
address account; | ||
uint balance; | ||
} | ||
|
||
struct Translog { | ||
string time; | ||
address from; | ||
address to; | ||
uint amount; | ||
} | ||
|
||
Account from; | ||
Account to; | ||
event TransEvent(uint num); | ||
Translog[] log; | ||
|
||
function Ok(){ | ||
from.account=0x1; | ||
from.balance=10000000000; | ||
to.account=0x2; | ||
to.balance=0; | ||
|
||
} | ||
|
||
function get()constant returns(uint){ | ||
return to.balance; | ||
} | ||
|
||
function trans(uint num){ | ||
if (from.balance < num || to.balance + num < to.balance) | ||
return; // Deny overflow | ||
|
||
from.balance=from.balance-num; | ||
to.balance+=num; | ||
TransEvent(num); | ||
log.push(Translog("20170413",from.account,to.account,num)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.