-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.brick
9 lines (9 loc) · 2.61 KB
/
test.brick
1
2
3
4
5
6
7
8
9
inject ac 1000000
deploy ac 0 mc ./multicall.lua
# aggregate
query mc aggregate `[["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getBlockheight"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","isContract","Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getAergoBalance","Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c"]]` `[2,true,"0"]`
query mc aggregate `[[["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getBlockheight"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","isContract","Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getAergoBalance","AmhoHnoaVDWG34YTpTuNjom2xmmSnA3scHo3XKrzMZ7GRe9mnrRi"]]]` `[2,true,"890261"]`
# force_aggregate
query mc force_aggregate `[["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getBlockheight"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","isContract","Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getAergoBalance","AmhoHnoaVDWG34YTpTuNjom2xmmSnA3scHo3XKrzMZ7GRe9mnrRi"]]` `[[true,2],[true,true],[true,"890261"]]`
query mc force_aggregate `[["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","x"],["","test"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getBlockheight"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","isContract","Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getAergoBalance","Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55d"]]` `[[false,"[Contract.LuaCallContract] call err: not found function: x"],[false,"[Contract.LuaCallContract] invalid contractId: invalid account length:"],[true,2],[true,true],[false,"[Contract.LuaCallContract] call err: [Contract.LuaGetBalance] invalid contractId: Data and checksum don't match"]]`
query mc force_aggregate `[[["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","x"],["","test"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getBlockheight"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","isContract","Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c"],["Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55c","getAergoBalance","Amgm8CJTPmTogJ7cij3QQKNgUeNV5UTz2N2nn1D6uBBG6pgzd55d"]]]` `[[false,"[Contract.LuaCallContract] call err: not found function: x"],[false,"[Contract.LuaCallContract] invalid contractId: invalid account length:"],[true,2],[true,true],[false,"[Contract.LuaCallContract] call err: [Contract.LuaGetBalance] invalid contractId: Data and checksum don't match"]]`