OSDN Git Service

bytom/equity.git
4 years agodelete amount checking for unlock statement (#37) master
oysheng [Tue, 17 Sep 2019 02:46:56 +0000 (10:46 +0800)]
delete amount checking for unlock statement (#37)

5 years ago optimise equity commandline (#36) v0.1.1
oysheng [Fri, 15 Mar 2019 06:58:29 +0000 (14:58 +0800)]
 optimise equity commandline  (#36)

* optimise equity commandline

* modify instance contract sentence

* optimise test

* optimise Makefile

5 years agoadd release version (#35)
oysheng [Fri, 15 Mar 2019 05:45:50 +0000 (13:45 +0800)]
add release version (#35)

* add release version

* Makefile add release

5 years agoadd commandline option AST for equity tool (#34)
oysheng [Fri, 28 Dec 2018 02:31:55 +0000 (10:31 +0800)]
add commandline option AST for equity tool (#34)

5 years agoadd the replacement of defined variable for AST and adjusting the structural format...
oysheng [Thu, 27 Dec 2018 08:23:17 +0000 (16:23 +0800)]
add the replacement of defined variable for AST and adjusting the structural format (#33)

* add paramenters for function argment expression

* modify struct

* optimise

* replace the temporary variable for its expression

* optimise

* optimise code for expression

* adjusting syntactic format

* optimise lock statements expression

* fix the assign expression

* optimise equitycmd

* modify json name for blockheight

5 years agoadd AST for if-else statement which contains lock or unlock statement (#32)
oysheng [Thu, 20 Dec 2018 10:24:21 +0000 (18:24 +0800)]
add AST for if-else statement which contains lock or unlock statement  (#32)

* add expression for lock/unlock statement which included by if-else body

* add AST for if-else statement which contains lock or unlock statement

* delete redundant role

5 years agoadd contract LockPosition (#29)
oysheng [Tue, 11 Dec 2018 06:53:16 +0000 (14:53 +0800)]
add contract LockPosition  (#29)

* deposit contract FixedLimitCollect and FixedLimitProfit

* add contract LockPosition

* optimise

5 years agodeposit contract FixedLimitCollect and FixedLimitProfit (#28)
oysheng [Tue, 11 Dec 2018 05:57:43 +0000 (13:57 +0800)]
deposit contract FixedLimitCollect and FixedLimitProfit (#28)

5 years agoadd the argument type "Sign" to support checking signature for message (#27)
oysheng [Mon, 26 Nov 2018 07:57:38 +0000 (15:57 +0800)]
add the argument type "Sign" to support checking signature for message (#27)

add buildin function checkMsgSig

5 years agothe other statements support to operate contract value besides lock/unlock statement...
oysheng [Wed, 21 Nov 2018 08:48:35 +0000 (16:48 +0800)]
the other statements support to operate contract value besides lock/unlock statement (#26)

* the other statements support contract value besides lock/unlock statement

* optimise

* fix counts for reference variables

5 years agoadd import function (#25)
oysheng [Tue, 20 Nov 2018 08:07:12 +0000 (16:07 +0800)]
add import function  (#25)

* add import function

* modify scan string with '' and ""

* add check for empty path

* modify name

* add test

* add import unit test
modify compile test

* modify loan collateral and repay collateral

* optimise

5 years ago modify compiler documents (#24)
oysheng [Tue, 6 Nov 2018 08:52:50 +0000 (16:52 +0800)]
 modify compiler documents  (#24)

* modify compiler documents

* optimise defime

5 years agodelete check that the lock value disposed of once (#23)
oysheng [Wed, 31 Oct 2018 06:13:16 +0000 (14:13 +0800)]
delete check that the lock value disposed of once  (#23)

* modify check for amountType and intType

* delete check that the locks's value disposed once

5 years agofix contract exceptd check (#22)
oysheng [Thu, 25 Oct 2018 09:05:10 +0000 (17:05 +0800)]
fix contract exceptd check (#22)

5 years agoadd tool into Makefile and optimise cmd tips (#20)
oysheng [Tue, 23 Oct 2018 11:05:50 +0000 (19:05 +0800)]
add tool into Makefile and optimise cmd tips (#20)

5 years agoadd README with equity compiler tool (#21)
oysheng [Tue, 23 Oct 2018 11:05:19 +0000 (19:05 +0800)]
add README with equity compiler tool  (#21)

* add README with equity compiler tool

* add readme

* change directory

5 years agoequity compiler tool (#18)
oysheng [Tue, 16 Oct 2018 07:26:58 +0000 (15:26 +0800)]
equity compiler tool (#18)

* add equity compiler tool

* add go vendor

* adjust print

5 years agofix the operation for binary operator with the same variable (#16)
oysheng [Mon, 15 Oct 2018 07:54:30 +0000 (15:54 +0800)]
fix the operation for binary operator with the same variable (#16)

5 years agooptimise count of value (#17)
oysheng [Mon, 15 Oct 2018 07:51:23 +0000 (15:51 +0800)]
optimise count of value (#17)

5 years agooptimise code format (#15)
oysheng [Tue, 9 Oct 2018 02:30:55 +0000 (10:30 +0800)]
optimise code format (#15)

5 years agoifstatement add nop instruction to differ with clause selector for JUMPIF instruction...
oysheng [Tue, 9 Oct 2018 02:29:58 +0000 (10:29 +0800)]
ifstatement add nop instruction to differ with clause selector for JUMPIF instruction (#14)

5 years agooptimise ifstatements jumpif condition check (#13)
oysheng [Mon, 8 Oct 2018 03:05:54 +0000 (11:05 +0800)]
optimise ifstatements jumpif condition check  (#13)

* optimise ifstatements jumpif condition check

* fix unit test

* restore

5 years agosupport BytesLiteral true/false and operator && / || / ! (#12)
oysheng [Sat, 29 Sep 2018 06:04:50 +0000 (14:04 +0800)]
support BytesLiteral true/false and operator && / || / ! (#12)

* modify to support BytesLiteral

* optimise

* fix string literal and add escape character

* add unit test for constant

* add boolean literal true/false

* delete boolean check

* modify keywords

* add unit test

* support ! operator

* support boolean or / and operator

5 years agofix StrLiteral and BytesLiteral to support constant (#11)
oysheng [Fri, 28 Sep 2018 11:25:26 +0000 (19:25 +0800)]
fix StrLiteral and BytesLiteral to support constant  (#11)

* modify to support BytesLiteral

* optimise

* fix string literal and add escape character

* add unit test for constant

5 years agooptimise lockstatement value (#10)
oysheng [Fri, 28 Sep 2018 11:24:29 +0000 (19:24 +0800)]
optimise lockstatement value (#10)

5 years ago add assgin statement and modify defined statement to support declaration (#9)
oysheng [Tue, 18 Sep 2018 07:31:55 +0000 (15:31 +0800)]
 add assgin statement and modify defined statement to support declaration (#9)

* modify define statement

* add assgin statement

* optimise assign statement

* modify print

* add assign statement unit test

* not support that the variable was been used in assign statement when it's not defined

* check whether the defined variable is used or not

5 years agofix related check to support that if-else statement include lock/unlock statement...
oysheng [Thu, 13 Sep 2018 09:11:35 +0000 (17:11 +0800)]
fix related check to support that if-else statement include lock/unlock statement (#8)

* fix Hash Type check

* optimise lock statement

* add if-else check

* optimise check value

* modify value used count

* add statement result check for if-else

* fix check index for if-else statement

* modify test name

* add recursive contract

5 years agoadd if-else statement (#7)
oysheng [Mon, 10 Sep 2018 08:09:52 +0000 (16:09 +0800)]
add if-else statement (#7)

* add define statement for equity

* add test

* add if-else statement

* handle with stack

* optimise parameter reference check

* optimise else label

* optimise ifbody stack

* optimse compile if else statement

* check math for count

* add unit test

* optimise parse ifstatement

* after endif support add statements

* add sequese for ifstatement

* add test

* rm redundant modify

5 years ago add define statement for equity (#6)
oysheng [Fri, 31 Aug 2018 09:51:22 +0000 (17:51 +0800)]
 add define statement for equity  (#6)

* add define statement for equity

* add test

5 years agoadd Makefile and ci (#5)
oysheng [Fri, 24 Aug 2018 05:22:35 +0000 (13:22 +0800)]
add Makefile and ci (#5)

5 years agomodify unit test for check_test (#4)
oysheng [Fri, 24 Aug 2018 02:31:38 +0000 (10:31 +0800)]
modify unit test for check_test (#4)

5 years agoadd test case (#3)
Paladz [Fri, 24 Aug 2018 02:26:25 +0000 (10:26 +0800)]
add test case (#3)

* add test case

* edit for code review

5 years ago add value calculate with lock statement (#2)
oysheng [Thu, 23 Aug 2018 14:44:50 +0000 (22:44 +0800)]
 add value calculate with lock statement  (#2)

* add value calculate with lock statement

* remove redundant require code

* optimise style

* delete redundant function

5 years agoMerge pull request #1 from Bytom/dev
Paladz [Thu, 23 Aug 2018 06:55:31 +0000 (14:55 +0800)]
Merge pull request #1 from Bytom/dev

modify equitycmd from commandline to filename

5 years agomodify equitycmd from commandline to filename
oysheng [Tue, 21 Aug 2018 06:05:29 +0000 (14:05 +0800)]
modify equitycmd from commandline to filename

5 years agocp code from bytom repo
paladz [Mon, 20 Aug 2018 08:43:12 +0000 (16:43 +0800)]
cp code from bytom repo