Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composable Transactions #182

Merged
merged 57 commits into from
Aug 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
b4540a0
[contract] composable transactions
kroggen Jun 15, 2022
7c3cff7
[brick] add multicall command
kroggen Jun 16, 2022
001cac1
[contract] add tests for composable transactions
kroggen Jun 16, 2022
67322af
[brick] update multicall command
kroggen Jun 24, 2022
08da940
[contract] update composable transactions
kroggen Jun 25, 2022
e973975
[contract] add functions to composable transactions
kroggen Jul 27, 2022
5c1def2
[contract] add 'break if' to composable transactions
kroggen Jul 27, 2022
1f12e79
[contract] new test cases for composable transactions
kroggen Aug 7, 2022
a3e3ca4
[contract] fix error messages on multicall code
kroggen Aug 15, 2022
cb4344a
[chain] fix recipient handling for multicall
kroggen Aug 16, 2022
14c6586
Merge branch 'develop' into feature/composable-transactions
kroggen Nov 25, 2023
fb5c39e
fix build
kroggen Nov 25, 2023
b27419d
use separate lua test file
kroggen Nov 25, 2023
54e792a
fix test
kroggen Nov 25, 2023
02a23d4
Merge branch 'topic/hardfork-v4' into feature/composable-transactions
kroggen Nov 25, 2023
cd2700f
update test
kroggen Nov 25, 2023
50066a6
Merge branch 'topic/hardfork-v4' into feature/composable-transactions
kroggen Dec 13, 2023
10ba464
fix build after state refactoring
kroggen Dec 13, 2023
713d0de
compile the multicall code on demand
kroggen Dec 14, 2023
dca3d14
add MULTICALL to aergo-protobuf
kroggen Dec 16, 2023
1848b80
aergocli: add multicall command
kroggen Dec 17, 2023
2326e1c
aergocli: compute nonce on shared function
kroggen Dec 17, 2023
05e6b7a
Merge branch 'topic/hardfork-v4' into feature/composable-transactions
kroggen Dec 18, 2023
482a116
fix segfault
kroggen Dec 18, 2023
b318de2
rename variables
kroggen Dec 18, 2023
0bb3a85
multicall: add integration tests
kroggen Dec 20, 2023
51d81fc
Merge branch 'topic/hardfork-v4' into feature/composable-transactions
kroggen Jan 30, 2024
345092f
Merge branch 'topic/hardfork-v4' into feature/composable-transactions
kroggen Jan 30, 2024
52f1ab8
Merge branch 'topic/hardfork-v4' into feature/composable-transactions
kroggen Feb 7, 2024
d54ca44
fix integration test
kroggen Feb 8, 2024
f406be7
Merge branch 'topic/hardfork-v4' into feature/composable-transactions
kroggen Jul 9, 2024
db125ad
fix use of pcall on multicall script
kroggen Jul 9, 2024
0a4be26
rename multicall commands for better understanding
kroggen Jul 10, 2024
8dfd84e
store -> store result as
kroggen Jul 10, 2024
02a469d
add 'in' on 'for each' command
kroggen Jul 10, 2024
8ec2915
add variable '%my aergo balance%'
kroggen Jul 13, 2024
19db28f
convert amount without decimal separator to bignum
kroggen Jul 13, 2024
5d86e63
convert amount to bignum on assertion
kroggen Jul 13, 2024
fa935a6
store result of try call on call_succeeded variable
kroggen Jul 13, 2024
b37b843
fix integration test
kroggen Jul 14, 2024
c6c184a
rename 'pow' and 'sqrt'
kroggen Jul 14, 2024
f14bbd9
add '%my account address%' variable
kroggen Jul 14, 2024
7d832a2
accept single boolean on if and assert
kroggen Jul 14, 2024
bbfe8c0
conversion functions without arg: use last_result
kroggen Jul 14, 2024
05cc7e3
%last_result% -> %last result%
kroggen Jul 14, 2024
e8c7224
fix skip setting last result
kroggen Jul 15, 2024
4090a6e
remove 'get keys', exponentiate and 'square root'
kroggen Jul 16, 2024
584e0c1
fix integration tests for dpos and raft
kroggen Jul 17, 2024
4e4dd8c
end -> end if
kroggen Jul 17, 2024
2d445a1
test state rollback on multicall txns
kroggen Jul 21, 2024
38e8116
test state rollback on integration test
kroggen Jul 21, 2024
158c14a
get balance -> get aergo balance
kroggen Jul 21, 2024
c91e7b2
fix integration test
kroggen Jul 21, 2024
4ebaf9d
add new integration tests
kroggen Jul 22, 2024
dde3772
let contracts use multicall scripts
kroggen Jul 22, 2024
cd4ce33
test state recovery on contract multicall
kroggen Jul 22, 2024
9657eb8
integration tests for contract multicall
kroggen Jul 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[contract] fix error messages on multicall code
  • Loading branch information
kroggen committed Aug 15, 2022
commit a3e3ca488f63c27f06db239fd779144ebccdb930
6 changes: 5 additions & 1 deletion contract/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,11 @@ func vmAutoload(L *LState, funcName string) bool {
func (ce *executor) vmLoadCode(id []byte) {
var chunkId *C.char
if HardforkConfig.IsV3Fork(ce.ctx.blockInfo.No) {
chunkId = C.CString("@" + types.EncodeAddress(id))
if ce.ctx.isMultiCall {
chunkId = C.CString("@multicall")
} else {
chunkId = C.CString("@" + types.EncodeAddress(id))
}
} else {
chunkId = C.CString(hex.EncodeToString(id))
}
Expand Down