synapsecns/sanguine

View on GitHub
agents/testutil/agentstestcontract/agentstestcontract.contractinfo.json

Summary

Maintainability
Test Coverage
{"solidity/AgentsTestContract.sol:AgentsTestContract":{"code":"0x60806040526000805534801561001457600080fd5b5061059e806100246000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80639bfa08a01161005b5780639bfa08a0146100b2578063a87d942c146100c5578063e4d16d62146100da578063f5c5ad83146100ed57600080fd5b80635b34b966146100825780637a8f94ca1461008c5780639033a74b1461009f575b600080fd5b61008a6100f5565b005b61008a61009a36600461025a565b61010e565b61008a6100ad366004610360565b61014a565b61008a6100c036600461025a565b6101a1565b60005460405190815260200160405180910390f35b61008a6100e83660046103c7565b6101f8565b61008a610248565b60016000808282546101079190610468565b9091555050565b6101198383836101a1565b6101458360405160200161012f91815260200190565b604051602081830303815290604052838361014a565b505050565b3373ffffffffffffffffffffffffffffffffffffffff167f6035db97cdd53d64e2d649d14852dd02182d8df440dc9e9ec01734debbae43ed848484604051610194939291906104f4565b60405180910390a2505050565b81833373ffffffffffffffffffffffffffffffffffffffff167f8304c3213cbf0d9583777ae3722ed0a3f56cf936c28af4984586b61735f28492846040516101eb91815260200190565b60405180910390a4505050565b8363ffffffff168563ffffffff167f08add9b76c46d1f24d8316c1a0ac8d055490d07289f5ed084ef5022cd81cec8185858560405161023993929190610519565b60405180910390a35050505050565b60016000808282546101079190610541565b60008060006060848603121561026f57600080fd5b505081359360208301359350604090920135919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126102c657600080fd5b813567ffffffffffffffff808211156102e1576102e1610286565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561032757610327610286565b8160405283815286602085880101111561034057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561037557600080fd5b833567ffffffffffffffff81111561038c57600080fd5b610398868287016102b5565b9660208601359650604090950135949350505050565b803563ffffffff811681146103c257600080fd5b919050565b600080600080600060a086880312156103df57600080fd5b6103e8866103ae565b94506103f6602087016103ae565b93506040860135925060608601359150608086013567ffffffffffffffff81111561042057600080fd5b61042c888289016102b5565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201828112600083128015821682158216171561048857610488610439565b505092915050565b6000815180845260005b818110156104b65760208185018101518683018201520161049a565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6060815260006105076060830186610490565b60208301949094525060400152919050565b8381528260208201526060604082015260006105386060830184610490565b95945050505050565b818103600083128015838313168383128216171561056157610561610439565b509291505056fea2646970667358221220e12ea28fac342a78b1a72277b7233f13f301ce96ea06b1075e229359e3a8a70564736f6c63430008110033","runtime-code":"0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80639bfa08a01161005b5780639bfa08a0146100b2578063a87d942c146100c5578063e4d16d62146100da578063f5c5ad83146100ed57600080fd5b80635b34b966146100825780637a8f94ca1461008c5780639033a74b1461009f575b600080fd5b61008a6100f5565b005b61008a61009a36600461025a565b61010e565b61008a6100ad366004610360565b61014a565b61008a6100c036600461025a565b6101a1565b60005460405190815260200160405180910390f35b61008a6100e83660046103c7565b6101f8565b61008a610248565b60016000808282546101079190610468565b9091555050565b6101198383836101a1565b6101458360405160200161012f91815260200190565b604051602081830303815290604052838361014a565b505050565b3373ffffffffffffffffffffffffffffffffffffffff167f6035db97cdd53d64e2d649d14852dd02182d8df440dc9e9ec01734debbae43ed848484604051610194939291906104f4565b60405180910390a2505050565b81833373ffffffffffffffffffffffffffffffffffffffff167f8304c3213cbf0d9583777ae3722ed0a3f56cf936c28af4984586b61735f28492846040516101eb91815260200190565b60405180910390a4505050565b8363ffffffff168563ffffffff167f08add9b76c46d1f24d8316c1a0ac8d055490d07289f5ed084ef5022cd81cec8185858560405161023993929190610519565b60405180910390a35050505050565b60016000808282546101079190610541565b60008060006060848603121561026f57600080fd5b505081359360208301359350604090920135919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f8301126102c657600080fd5b813567ffffffffffffffff808211156102e1576102e1610286565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561032757610327610286565b8160405283815286602085880101111561034057600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561037557600080fd5b833567ffffffffffffffff81111561038c57600080fd5b610398868287016102b5565b9660208601359650604090950135949350505050565b803563ffffffff811681146103c257600080fd5b919050565b600080600080600060a086880312156103df57600080fd5b6103e8866103ae565b94506103f6602087016103ae565b93506040860135925060608601359150608086013567ffffffffffffffff81111561042057600080fd5b61042c888289016102b5565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808201828112600083128015821682158216171561048857610488610439565b505092915050565b6000815180845260005b818110156104b65760208185018101518683018201520161049a565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6060815260006105076060830186610490565b60208301949094525060400152919050565b8381528260208201526060604082015260006105386060830184610490565b95945050505050565b818103600083128015838313168383128216171561056157610561610439565b509291505056fea2646970667358221220e12ea28fac342a78b1a72277b7233f13f301ce96ea06b1075e229359e3a8a70564736f6c63430008110033","info":{"source":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.17;\n\ncontract AgentsTestContract {\n  int256 internal count = 0;\n\n  event AgentsEventA(\n    address indexed sender,\n    uint256 indexed valueA,\n    uint256 indexed valueB,\n    uint256 valueC\n  );\n  event AgentsEventB(\n    address indexed sender,\n    bytes valueA,\n    uint256 valueB,\n    uint256 valueC\n  );\n\n  event IMessageReceipientHandleEvent(\n    uint32 indexed _origin,\n    uint32 indexed _nonce,\n    bytes32 _sender,\n    uint256 _rootSubmittedAt,\n    bytes _message\n  );\n\n  function emitAgentsEventA(\n    uint256 valueA,\n    uint256 valueB,\n    uint256 valueC\n  ) public {\n    emit AgentsEventA(msg.sender, valueA, valueB, valueC);\n  }\n\n  function emitAgentsEventB(\n    bytes memory valueA,\n    uint256 valueB,\n    uint256 valueC\n  ) public {\n    emit AgentsEventB(msg.sender, valueA, valueB, valueC);\n  }\n\n  function emitAgentsEventAandB(\n    uint256 valueA,\n    uint256 valueB,\n    uint256 valueC\n  ) public {\n    emitAgentsEventA(valueA, valueB, valueC);\n    emitAgentsEventB(abi.encodePacked(valueA), valueB, valueC);\n  }\n\n  function handle(\n    uint32 _origin,\n    uint32 _nonce,\n    bytes32 _sender,\n    uint256 _rootSubmittedAt,\n    bytes memory _message\n  ) external {\n    emit IMessageReceipientHandleEvent(\n      _origin,\n      _nonce,\n      _sender,\n      _rootSubmittedAt,\n      _message\n    );\n  }\n\n  function incrementCounter() public {\n    count += 1;\n  }\n\n  function decrementCounter() public {\n    count -= 1;\n  }\n\n  function getCount() external view returns (int256) {\n    return count;\n  }\n}\n","language":"Solidity","languageVersion":"0.8.17","compilerVersion":"0.8.17","compilerOptions":"--combined-json bin,bin-runtime,srcmap,srcmap-runtime,abi,userdoc,devdoc,metadata,hashes --optimize --optimize-runs 10000 --allow-paths ., ./, ../","srcMap":"57:1511:0:-:0;;;113:1;89:25;;57:1511;;;;;;;;;;;;;;;;","srcMapRuntime":"57:1511:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1372:56;;;:::i;:::-;;867:216;;;;;;:::i;:::-;;:::i;697:166::-;;;;;;:::i;:::-;;:::i;532:161::-;;;;;;:::i;:::-;;:::i;1492:74::-;1535:6;1556:5;1492:74;;1911:25:1;;;1899:2;1884:18;1492:74:0;;;;;;;1087:281;;;;;;:::i;:::-;;:::i;1432:56::-;;;:::i;1372:::-;1422:1;1413:5;;:10;;;;;;;:::i;:::-;;;;-1:-1:-1;;1372:56:0:o;867:216::-;974:40;991:6;999;1007;974:16;:40::i;:::-;1020:58;1054:6;1037:24;;;;;;3261:19:1;;3305:2;3296:12;;3132:182;1037:24:0;;;;;;;;;;;;;1063:6;1071;1020:16;:58::i;:::-;867:216;;;:::o;697:166::-;823:10;810:48;;;835:6;843;851;810:48;;;;;;;;:::i;:::-;;;;;;;;697:166;;;:::o;532:161::-;673:6;665;653:10;640:48;;;681:6;640:48;;;;1911:25:1;;1899:2;1884:18;;1767:175;640:48:0;;;;;;;;532:161;;;:::o;1087:281::-;1296:6;1244:119;;1281:7;1244:119;;;1310:7;1325:16;1349:8;1244:119;;;;;;;;:::i;:::-;;;;;;;;1087:281;;;;;:::o;1432:56::-;1482:1;1473:5;;:10;;;;;;;:::i;14:316:1:-;91:6;99;107;160:2;148:9;139:7;135:23;131:32;128:52;;;176:1;173;166:12;128:52;-1:-1:-1;;199:23:1;;;269:2;254:18;;241:32;;-1:-1:-1;320:2:1;305:18;;;292:32;;14:316;-1:-1:-1;14:316:1:o;335:184::-;387:77;384:1;377:88;484:4;481:1;474:15;508:4;505:1;498:15;524:777;566:5;619:3;612:4;604:6;600:17;596:27;586:55;;637:1;634;627:12;586:55;673:6;660:20;699:18;736:2;732;729:10;726:36;;;742:18;;:::i;:::-;876:2;870:9;938:4;930:13;;781:66;926:22;;;950:2;922:31;918:40;906:53;;;974:18;;;994:22;;;971:46;968:72;;;1020:18;;:::i;:::-;1060:10;1056:2;1049:22;1095:2;1087:6;1080:18;1141:3;1134:4;1129:2;1121:6;1117:15;1113:26;1110:35;1107:55;;;1158:1;1155;1148:12;1107:55;1222:2;1215:4;1207:6;1203:17;1196:4;1188:6;1184:17;1171:54;1269:1;1262:4;1257:2;1249:6;1245:15;1241:26;1234:37;1289:6;1280:15;;;;;;524:777;;;;:::o;1306:456::-;1392:6;1400;1408;1461:2;1449:9;1440:7;1436:23;1432:32;1429:52;;;1477:1;1474;1467:12;1429:52;1517:9;1504:23;1550:18;1542:6;1539:30;1536:50;;;1582:1;1579;1572:12;1536:50;1605:49;1646:7;1637:6;1626:9;1622:22;1605:49;:::i;:::-;1595:59;1701:2;1686:18;;1673:32;;-1:-1:-1;1752:2:1;1737:18;;;1724:32;;1306:456;-1:-1:-1;;;;1306:456:1:o;1947:163::-;2014:20;;2074:10;2063:22;;2053:33;;2043:61;;2100:1;2097;2090:12;2043:61;1947:163;;;:::o;2115:602::-;2217:6;2225;2233;2241;2249;2302:3;2290:9;2281:7;2277:23;2273:33;2270:53;;;2319:1;2316;2309:12;2270:53;2342:28;2360:9;2342:28;:::i;:::-;2332:38;;2389:37;2422:2;2411:9;2407:18;2389:37;:::i;:::-;2379:47;;2473:2;2462:9;2458:18;2445:32;2435:42;;2524:2;2513:9;2509:18;2496:32;2486:42;;2579:3;2568:9;2564:19;2551:33;2607:18;2599:6;2596:30;2593:50;;;2639:1;2636;2629:12;2593:50;2662:49;2703:7;2694:6;2683:9;2679:22;2662:49;:::i;:::-;2652:59;;;2115:602;;;;;;;;:::o;2722:184::-;2774:77;2771:1;2764:88;2871:4;2868:1;2861:15;2895:4;2892:1;2885:15;2911:216;2975:9;;;3003:11;;;2950:3;3033:9;;3061:10;;3057:19;;3086:10;;3078:19;;3054:44;3051:70;;;3101:18;;:::i;:::-;3051:70;;2911:216;;;;:::o;3319:481::-;3360:3;3398:5;3392:12;3425:6;3420:3;3413:19;3450:1;3460:162;3474:6;3471:1;3468:13;3460:162;;;3536:4;3592:13;;;3588:22;;3582:29;3564:11;;;3560:20;;3553:59;3489:12;3460:162;;;3464:3;3667:1;3660:4;3651:6;3646:3;3642:16;3638:27;3631:38;3789:4;3719:66;3714:2;3706:6;3702:15;3698:88;3693:3;3689:98;3685:109;3678:116;;;3319:481;;;;:::o;3805:359::-;4008:2;3997:9;3990:21;3971:4;4028:44;4068:2;4057:9;4053:18;4045:6;4028:44;:::i;:::-;4103:2;4088:18;;4081:34;;;;-1:-1:-1;4146:2:1;4131:18;4124:34;4020:52;3805:359;-1:-1:-1;3805:359:1:o;4351:::-;4554:6;4543:9;4536:25;4597:6;4592:2;4581:9;4577:18;4570:34;4640:2;4635;4624:9;4620:18;4613:30;4517:4;4660:44;4700:2;4689:9;4685:18;4677:6;4660:44;:::i;:::-;4652:52;4351:359;-1:-1:-1;;;;;4351:359:1:o;4715:200::-;4781:9;;;4754:4;4809:9;;4837:10;;4849:12;;;4833:29;4872:12;;;4864:21;;4830:56;4827:82;;;4889:18;;:::i;:::-;4827:82;4715:200;;;;:::o","abiDefinition":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"valueA","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"valueB","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"valueC","type":"uint256"}],"name":"AgentsEventA","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"bytes","name":"valueA","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"valueB","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"valueC","type":"uint256"}],"name":"AgentsEventB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint32","name":"_origin","type":"uint32"},{"indexed":true,"internalType":"uint32","name":"_nonce","type":"uint32"},{"indexed":false,"internalType":"bytes32","name":"_sender","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_rootSubmittedAt","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"_message","type":"bytes"}],"name":"IMessageReceipientHandleEvent","type":"event"},{"inputs":[],"name":"decrementCounter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"valueA","type":"uint256"},{"internalType":"uint256","name":"valueB","type":"uint256"},{"internalType":"uint256","name":"valueC","type":"uint256"}],"name":"emitAgentsEventA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"valueA","type":"uint256"},{"internalType":"uint256","name":"valueB","type":"uint256"},{"internalType":"uint256","name":"valueC","type":"uint256"}],"name":"emitAgentsEventAandB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"valueA","type":"bytes"},{"internalType":"uint256","name":"valueB","type":"uint256"},{"internalType":"uint256","name":"valueC","type":"uint256"}],"name":"emitAgentsEventB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getCount","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_origin","type":"uint32"},{"internalType":"uint32","name":"_nonce","type":"uint32"},{"internalType":"bytes32","name":"_sender","type":"bytes32"},{"internalType":"uint256","name":"_rootSubmittedAt","type":"uint256"},{"internalType":"bytes","name":"_message","type":"bytes"}],"name":"handle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"incrementCounter","outputs":[],"stateMutability":"nonpayable","type":"function"}],"userDoc":{"kind":"user","methods":{},"version":1},"developerDoc":{"kind":"dev","methods":{},"version":1},"metadata":"{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"valueA\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"valueB\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"valueC\",\"type\":\"uint256\"}],\"name\":\"AgentsEventA\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"valueA\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"valueB\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"valueC\",\"type\":\"uint256\"}],\"name\":\"AgentsEventB\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"_origin\",\"type\":\"uint32\"},{\"indexed\":true,\"internalType\":\"uint32\",\"name\":\"_nonce\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"_sender\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_rootSubmittedAt\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"}],\"name\":\"IMessageReceipientHandleEvent\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"decrementCounter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"valueA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"valueB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"valueC\",\"type\":\"uint256\"}],\"name\":\"emitAgentsEventA\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"valueA\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"valueB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"valueC\",\"type\":\"uint256\"}],\"name\":\"emitAgentsEventAandB\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"valueA\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"valueB\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"valueC\",\"type\":\"uint256\"}],\"name\":\"emitAgentsEventB\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCount\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_origin\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"_nonce\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"_sender\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_rootSubmittedAt\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_message\",\"type\":\"bytes\"}],\"name\":\"handle\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"incrementCounter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"solidity/AgentsTestContract.sol\":\"AgentsTestContract\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"solidity/AgentsTestContract.sol\":{\"keccak256\":\"0x3f04a89121bade4871a7bde668bdc3644ed01405072199d1294854c1da43fc31\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0e427016e9c4dc62245c68a04056e977f315940aaf98a425fe8fa03db3148245\",\"dweb:/ipfs/Qmd6KJRf5jzBXHscwk1CJTmgKDMCVLb5qWzJuwtBtzbsBa\"]}},\"version\":1}"},"hashes":{"decrementCounter()":"f5c5ad83","emitAgentsEventA(uint256,uint256,uint256)":"9bfa08a0","emitAgentsEventAandB(uint256,uint256,uint256)":"7a8f94ca","emitAgentsEventB(bytes,uint256,uint256)":"9033a74b","getCount()":"a87d942c","handle(uint32,uint32,bytes32,uint256,bytes)":"e4d16d62","incrementCounter()":"5b34b966"}}}