From 8f09c19292c92ae4e8f77e65b24a98fd47b32f47 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 8 Apr 2024 14:07:31 +0200 Subject: [PATCH] More tests! These are based on: https://gitlab.com/partisiablockchain/language/example-contracts --- .../example-contract-access_control.abi | Bin 0 -> 777 bytes .../example-contract-average_salary.abi | Bin 0 -> 402 bytes test/example-abis/example-contract-mia_game.abi | Bin 0 -> 926 bytes .../example-contract-multi_voting_contract.abi | Bin 0 -> 619 bytes test/example-abis/example-contract-nickname.abi | Bin 0 -> 257 bytes test/example-abis/example-contract-petition.abi | Bin 0 -> 234 bytes .../example-contract-ping_contract.abi | Bin 0 -> 292 bytes test/example-abis/example-contract-voting.abi | Bin 0 -> 335 bytes .../example-contract-zk_immediate_open.abi | Bin 0 -> 353 bytes .../example-contract-zk_multi_functional.abi | Bin 0 -> 357 bytes .../example-contract-zk_second_price.abi | Bin 0 -> 582 bytes .../example-contract-zk_statistics.abi | Bin 0 -> 696 bytes .../example-contract-zk_struct_open.abi | Bin 0 -> 574 bytes .../example-contract-zk_voting_simple.abi | Bin 0 -> 436 bytes ...pc_token.abi => system-contract-mpc_token.abi} | Bin test/test_parse_abi.py | 4 ++-- 16 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 test/example-abis/example-contract-access_control.abi create mode 100644 test/example-abis/example-contract-average_salary.abi create mode 100644 test/example-abis/example-contract-mia_game.abi create mode 100644 test/example-abis/example-contract-multi_voting_contract.abi create mode 100644 test/example-abis/example-contract-nickname.abi create mode 100644 test/example-abis/example-contract-petition.abi create mode 100644 test/example-abis/example-contract-ping_contract.abi create mode 100644 test/example-abis/example-contract-voting.abi create mode 100644 test/example-abis/example-contract-zk_immediate_open.abi create mode 100644 test/example-abis/example-contract-zk_multi_functional.abi create mode 100644 test/example-abis/example-contract-zk_second_price.abi create mode 100644 test/example-abis/example-contract-zk_statistics.abi create mode 100644 test/example-abis/example-contract-zk_struct_open.abi create mode 100644 test/example-abis/example-contract-zk_voting_simple.abi rename test/example-abis/{mpc_token.abi => system-contract-mpc_token.abi} (100%) diff --git a/test/example-abis/example-contract-access_control.abi b/test/example-abis/example-contract-access_control.abi new file mode 100644 index 0000000000000000000000000000000000000000..385286c93adea522b49a8f5511e2432db802e290 GIT binary patch literal 777 zcmaKq-%r9Y5XZ|HKV&Whc=6T5H~)%(Jdj8vA^N(M^`bSSU2YwS|GeInVbBqqZ0UXb z>G!VJuBNkOx)=na6ABvF0sTg6$STzC@CZA|7uzByk(OI65d@;$7GaBoPNKHj&_r-F zSXu=royDXnO;1wzTmqhgyA@gonFIA8oowV>JJjZtU@obXb1A%2go@~hbKd`N@KiW$ zO`;S+SrUH9XB@N9ZIWfg%&c)}^Q9~r#Sp|`dn=1!e4NJ~mzi5T>3|pM8%Xbz5+`~T zM+(XewXZ~UNElIP5sb?Z=^NxK-5f-hog+$#;9evy6oo8xQSMW%+B~1kceH6;ZGPPT zVtvMj^A87TWbW|>LPU?Tfi~J{nd?vZqA?_i}sM(O79fCQZ$-w?x_k6su zh<2aa%{$#IJNTx@bg&9dEpwZ^eA9GK{WbGToiA?YtGuU92a03R<6*Q2o+6aACLmN*0`b!ac{Bk-8EN#vJ;+7RE75U0>Szx}mIKQgll~ zqg#j;HV$`R&-+~D6VA&rRIH-@{eO8@O*viIZ}I>D literal 0 HcmV?d00001 diff --git a/test/example-abis/example-contract-mia_game.abi b/test/example-abis/example-contract-mia_game.abi new file mode 100644 index 0000000000000000000000000000000000000000..d5d54a36a4cce3faa98f2bcc6948eb40b844a1e1 GIT binary patch literal 926 zcmZWoU2fAr5MC#-<2Z3b(n?4?a0fU6X;W2wK&l$V>uT*Cnw2(dYj^DePuzo3aEz+F za0#x!3sRX`C)9$KCiZ;u`J11eT%Vn<&#tBsi$@I4Ji?#JMwRexXRAAO24wOT;RE?P zqUY*H7+LMlE90#y8m}tzL`*tjLf=g;#U8GA!T~yC#)c6a4Ol#6$%u_(mL_aMdhyl^ z>+yw=m#?Ml5*Tpqh{nfy0w-M?Q#Ga}-2fyTD3yG2Z=eOCkI~VlGJj*~TO}}|Ct!y5 z(pX-7;5PI`DS6pz%ngz9qNCJWd;;sZ@Z9f!JF1$(i!Oj5j!czZdpOq5`E$thmE0cukC*T(n^Pwkcd`RZVyNFD(rfUVQXmjnIMq z9|eUnqGie`uY^{g;StXQA%d4eN^H)7<5(y4KhJ4e(=aV=@s1_&*mE)@_pb@R2ra%L z0-l)*4RK}a#CC*z68vaJwnH+oX8*O?(Cs!H4h(^gRU8 znHWT)cyVFF?msi%O#Z!?ot@4Wqh1h&0j+S4K9lpU_P8uPnpNh72hs+#qp~(&6FQ}! zafOA3yed6dH)e4{XR63$X}lHEyEHsx{ivhowQ%b(H=1@MqQE8)7ibjN9MzEX_A`(c z{8HG3qAN=SD{2b&8_c`{exj;Vux`%5)rJP>*sN?eg+*OP>GyLh1w#Y!IsVX-CDTU)CBV07c&~JrprxR8kq+3 ztL;QfiwC1M&@K9(;*2FNCPPfn(F@Hq)$ literal 0 HcmV?d00001 diff --git a/test/example-abis/example-contract-petition.abi b/test/example-abis/example-contract-petition.abi new file mode 100644 index 0000000000000000000000000000000000000000..6fe7a2618c0f4ac8b13e7ced5e7fa14380119076 GIT binary patch literal 234 zcmZXO-3r1m425T{GFQd~pJ*Gq*xjJu?daAZfl;N4zb~(e7lL{qAvyU1r>p9+YBQCr zbi&dLZg~fUgvVgX5wM}SHZvXq_>EXtaWtP9{p10 xU2}mz_B?#Pez8=rqPY>o;HEeJhcKZ8%P??2H{k=Gtb#4Ezd}i9EurPYdI9t6I0XOz literal 0 HcmV?d00001 diff --git a/test/example-abis/example-contract-ping_contract.abi b/test/example-abis/example-contract-ping_contract.abi new file mode 100644 index 0000000000000000000000000000000000000000..ad68e4b1790eaa5a55cf89c3a7c4f715bae9e450 GIT binary patch literal 292 zcmaKmO$&lR5QZ%+LJ_TgQHlp|g3wjQb%~*6SJvr+{(Q|yT?%>+3;RCL>`qgZhoX*` z!72(k(Sna{gZ5N9OCA)p1f&HCNm{MErX%=zcvou=w+@F;@V>fgOYNnfl*f_K*>7zl zT2|djdkbdPe-t+6HDa_#2nHYe$;r46mI6m!Pu`JBGU$oWf_#<=RBobOBq$fJv#wKM UOb_ZT<)4|5aXQa@26ApVFVjXvIRF3v literal 0 HcmV?d00001 diff --git a/test/example-abis/example-contract-voting.abi b/test/example-abis/example-contract-voting.abi new file mode 100644 index 0000000000000000000000000000000000000000..9132cb07c8d8f234306f66cb2a0f35ad025ad583 GIT binary patch literal 335 zcmZ{fO$)*>42J#KhSTZ9{URqGya@xZqjot2YCGC=iho{{9hC)A-h?Mf-)nt3)|d5S zmL@ZfWX?~1a|8`30xnX{P48Xrf-)_3f@K2(KJ2%ws}59W&_WwYw+}Q1LoRc|gmPO5 z?;%7(heEb*8qgl-ru?PjQd*f;PhPzgU7ZK8)Wmzx9(zJ(f3cNd<@v>5u*!`1AHu}A nZH*QQmBBZBI7;brP8ixv8d~sBB97#?4g1bZLKH&C#%wD2W_G(wy? z&q5vexA^Ag-+%XRzPO#QMm=-ZH!}U692bk=IfCPyfl)vULxmm-OTMZ(jWcDV99=|S zLtGV|Z4hB+sW{d3blITiyxt@isbUKLudPj)EccAjL)qH@StMwnX+!eF1SQ?$QD!2@ zoQTE|6S8$(XT|1Pbe`IB--U0K%KU=am5|F&v%JVQ5D7LVrpM#!o93FSXy(FJwxH$Z gifvUQcxe3{NXPG=9(MconSJwegy&~r5l9;4FOph6&n%^OE`LfOV(vIZm9%4N9j za<6VcN5Cf)7v_NXquNMoN_#wCgU2Q>la97U8~iC&@s#0wix9nX1^~{l!0+6}X31 z%?B2CQq$E_uivYBeK#5pN7HsKXdDN;PHOxKM`#SVso`ACM`%LXyTdFdOzjMOmXH)U znp?CM9A`n$_YkMns1+_(;7KjYi)S-fq9<@*3Tnp6-4+8_NTDdPxHiUt_uX7uGTpk>6W#+ob}zFQe>FLM>%JtizXE_ahLs|CT#6F#180QAEs(Ly=CRPln0Xy zSej=GA3I#jjQinBSZ+XX^2kG2o#gO;5GKm~J4K6xI>9IS<<;Z=d279@=d$CQ^8dkx zP$()FuF8X;Z#kFMVTXARg?61$C>};}`oKA;;vHm~V8C%*`B2qmPk`Y4>vPu<)H%mR ox(2H%=teu#iv)HbKW~vhE;;r@g`r+)B7R&j&o8gv9YF>4KL#b69{>OV literal 0 HcmV?d00001 diff --git a/test/example-abis/example-contract-zk_statistics.abi b/test/example-abis/example-contract-zk_statistics.abi new file mode 100644 index 0000000000000000000000000000000000000000..4580f2143932c7337e5db258ba0121087c70994c GIT binary patch literal 696 zcmZWnO-~y!5H(FU+I%1?2;y&~Ur4aL6f$ymei+~mMSl-&!G8@;{g!DR` zLluF}O+2*>h3Z9frO{?j_hy&iY2GYS6|p7^{;e!Gu`~Nk5WR6({!YS43&}h{kA%kI zA9&)m^S|K!3Z28GdEV&srs3`ZAD6~jZ4H?p3}lT`zOP1KH>3)&XtxS02B1^>nxvT8 u<2_!V@hc0SpUg4bo64$VT`4ZG71z5Ap52MXRidhkyOUW7W6 z#%~ZDm}T@p&0l%`@<&H694!kx(sw z+ffdBkzxcr=_#u`+CdBVeoLu=5f45z4&6&T!iwW4o}fPwZDG6(qA7B%HRyM(0t zb(eH^%eivndA&*G)LQC!$V>D_D=;`+&V1%{$!`3lRbF*Q8w6)mQPF=DLMpI)~57!K-Eh@h@r zBB{uga$3y_@Hg9sNB*UvN7>Kp1$7laPI6rU!tL|Zb`G0FIRWV&18_Imx)9=kmqXa86PlqH47R_jt{~_^XP-3{Dfc+~Qrt3WN2cYke}+Ggt~#^9jt?f)#|I9*MSn4qR-{Fayruif+WH*FU{ zSC}RaZ-mdlT0H@81!zoT|5-z>?Kry-ricuIdy}br=k#11nG}-Ozl=ytTO;H9$JbHS Zg{r