{"_id":"@massalabs/massa-proto-cli","_rev":"73-dcbb655c62ab05a58366ee479090b693","name":"@massalabs/massa-proto-cli","dist-tags":{"latest":"0.1.1","dev":"0.1.2-dev.20230920132406","buildnet-dev":"0.1.2-dev.20230920163101"},"versions":{"0.0.2-dev.20230628070115":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230628070115","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230628070115","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"02ac33572394233bb8d6b3537b85b3f88e175c5a","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230628070115.tgz","fileCount":10,"integrity":"sha512-OxoAOMnG2HY7OpZgWCz7SxMvUMUbuHxjwKlf2QytbKF3pCd56HiNcOaa44NduDjyvjmXEdr6h4QDB1Ezr/fspQ==","signatures":[{"sig":"MEUCIQCu+PGkCMarHMLZaZQNxMDqSLorCAira15eH1gvhFFHqwIgHS2ChFOddXvdQBZZ+LCQ6RFEx9LLd7kYHtqUVOnRF7Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28825},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","gitHead":"fabd6e5bdaf4deb98f14fe6d464f4bf838783b69","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.0","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.1-dev.20230622134858","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230628070115_1687935676366_0.7561965899679619","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230628084446":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230628084446","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230628084446","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"d20622fe32ccfc04ce8d8b9d3c53e744e850d52a","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230628084446.tgz","fileCount":10,"integrity":"sha512-8xlTtJg8Kehh4ZpM+D9IhmoTVwmv6oJuhwdv77nnafvPI4vvqJtJBWpDpVJp9Y3yrukHfZwKMHMw8s7eFWGgbw==","signatures":[{"sig":"MEUCIBBfumBR649lZTSTNxuJgcPVrlZZOHgxKMbvggIslEn4AiEA4sE51vL2vDiJiBy14+25DUq/XuJyZ3fnE4ZlM4bj7rA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29149},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"fddc866f21e62b7f6b3b63025739a74c431ca0c9","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.0","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.1-dev.20230622134858","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230628084446_1687941887934_0.6164419278013238","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230628084912":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230628084912","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230628084912","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"0755c427bd66956ad6a63ec8f1cfcb7b673e2d96","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230628084912.tgz","fileCount":10,"integrity":"sha512-OmEqW0gNn10rTDtjKc3gmBXbH3QfqqNdIHCfev7MHhzu/mFRtbSMpjX3UPXwMEBPTQQKgjIiCj0syZyEyV/50g==","signatures":[{"sig":"MEYCIQCZjTEI4z9s5ip6WNGecG31bedswfDTdmyRLcE0Tb53ugIhAOh770cTeBeb7JRTDKV7GXT9sSFzSLLDaR32aJmFWd1Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31585},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"40de8ab43fc1bf56f43345b8a2b1bb897428f85a","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.0","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.1-dev.20230622134858","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230628084912_1687942153444_0.6377782696698955","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230630070041":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230630070041","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230630070041","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"4c5e0a2cb467f5ed53a13fac6bd981cf8f68b782","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230630070041.tgz","fileCount":10,"integrity":"sha512-EYdYTzTj46sg2+wFT/gKC3LrYltKgqVFq5YLgLpzTaSFCjDOkwQjDfM20BiLo9DnkvDVAFq1+Eoe+pmaqZT4vg==","signatures":[{"sig":"MEUCICs+M6AZ0W3n3KVe4QBKoWdjfwKURGod4lekmMzeRXRUAiEA/HCo/yxeDqCfx1ZJoYj51Xfqdc1gt66KThjZpwnVGGI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32962},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"d9ddc5aefe8c8b6fcd80b0594f74710006b066dd","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.1-dev.20230622134858","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230630070041_1688108443073_0.5547190836885847","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230703122854":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230703122854","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230703122854","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"3404f40037ec1ff667a04a1b9b79b96206665e92","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230703122854.tgz","fileCount":10,"integrity":"sha512-ASIcnLzOMPqJ1AAr4mn7yiljSEwdxraGx2hD60IGHBg29HnJ9Tx1ipL2vByUyl7p1IN3uj+L0y5OQCcLbOSejg==","signatures":[{"sig":"MEUCIFH3Ree0lgWGy7r89wn8KJAOUeyGnAZZJrnz18E3ErTKAiEAsJPGMGhPllFnk7r8RaVTQtxtSSqImN6t4ItMb5hrLlw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33523},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"13b919625d7870e648f108ddb1dc8919506339da","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.1-dev.20230622134858","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230703122854_1688387335451_0.3433257276385475","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230703132742":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230703132742","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230703132742","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"8e95deafd878b2e1c9c217b96433ae1112218f60","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230703132742.tgz","fileCount":10,"integrity":"sha512-w+WltsScfkOAq/oqT+ZsDCnH0ssjVFenmQS5Jzekx1y8KJe2rVqLgMhuPdvIB9KhhT/t8EQuRksmTACcNdI9CA==","signatures":[{"sig":"MEQCIFUXxUsE1REBKbepaXL+RIK6Fq4eweltHi3TFqCjsDo+AiBg5XHI5oabeyF9POJOWfmWRpVWQDk/TYv0aSnWDjBCdQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33523},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"54f0b6a8d9bc12704c456765bdc656b24cd66c46","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.1-dev.20230622134858","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230703132742_1688390863462_0.8558150079073914","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230703142919":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230703142919","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230703142919","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"006d83cff7e10bd92774ad08a943a698364c1f66","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230703142919.tgz","fileCount":10,"integrity":"sha512-/6WYQkyFlXepCRR5BcXQXtFwpCaVoIGh1tXUVTXwF0QSwdMOCWvWeRaV0mUvlssiD/5vX1dNnmdcnHqYv0274Q==","signatures":[{"sig":"MEUCIQCmnad1ygRFqXnx/EMTHHGHv4RaGJ+3rEnrj4FgO7xSuwIgE7r6avvcqD+UbsRvOW4frFLN5lGBcpZeyYasfvfk29Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33523},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"0d21b287d1f50a578b9d0379ea35da627c97dadb","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.1-dev.20230622134858","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230703142919_1688394560536_0.4618145419657611","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230703150702":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230703150702","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230703150702","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"44ac18f17aae98bd58b459e1bd58f5b90603c1f0","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230703150702.tgz","fileCount":11,"integrity":"sha512-tlqhcC+sYfhXAcMzmVReLUWvnRui/DMO4CjhasDC2Ptwfe22LH20qx/FVhL6FbTEIh1MuceCE6l1IcBifXC6og==","signatures":[{"sig":"MEQCIH6eBMoPtUghPy9UEKDJa7lJHDbrlvwzJ1l9yhcQ26DGAiAMyJTgpCSpNhvhA9etbdpD7NpcAsuAW/foawBtYbuV3A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32413},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"5344c152567c867832fb10f24e6b1f9e73741012","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230703070432","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230703150702_1688396825394_0.4424048999998931","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230704135037":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230704135037","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230704135037","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"459190790286c2b9cf95d92b4b7fdd007bfd92a9","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230704135037.tgz","fileCount":11,"integrity":"sha512-BkEDfAQlyMjs+woFc6l21bli3xRqJY52kxPHpP0ooCinSk15z49NDNMr4TALlAuql+2yjL/8qU8qCmbbxfRDOQ==","signatures":[{"sig":"MEUCIAMq3Pj0nJJjkQwvzMft0UJFXjXMeaENHTJwWb3oVQP8AiEA9a8WapG9KIftZ+IPomcm9MGBSnKkBbGzh7G5iQlaWF8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32606},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"6f299ae01bab2d349bfab2a56db283cc0226e235","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230703070432","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230704135037_1688478638712_0.8401461689121066","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230704163421":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230704163421","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230704163421","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"e475101cf158ed9cfe9a8691dffdfb896a515884","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230704163421.tgz","fileCount":11,"integrity":"sha512-L+o1WvgSCfVCXiMCI4AcpVlEaVQ87IFzFgU93rSmA5q+NqPzg1lWZ4ZsTMWNi3tjCGTyZahoeSET2Z6AQ4l6Vg==","signatures":[{"sig":"MEUCIQCWz6bQnK6xTrnIbMWj6DioojpJpmV28xSRadLaEe+ZkwIgJAelfDxbAb3yqMHYKXhodEbtyXKN7GAOU/vPB6A+nHk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32692},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"41d87742ecb17d5eade94fd847d4a3b3ef9bb28c","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"ts-proto":"^1.149.0","commander":"^11.0.0","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","protoc-gen-ts":"^0.8.6","ts-protoc-gen":"^0.15.0","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@protobuf-ts/protoc":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230704163421_1688488462363_0.9211051714485718","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230705122746":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230705122746","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230705122746","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"92487e3b96e163f9ddd7db4bdc0a85e6dd41cf56","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230705122746.tgz","fileCount":11,"integrity":"sha512-xNdPxaFWBn/FtU18yKOq9AjvrgAR9qrP0VYt+s/yuyBpjc1/Xn8v2fjKeaU+wGy8tAtoSLqXdOaBNRC9JZZA2w==","signatures":[{"sig":"MEQCIFgj0gqxItD2q8k8LkCQRBDu1WqIruYimAsGjaqj91l1AiA7ulaWF96z9pJBwxH26WwANqYfoXHrANpG402ROW1/Pg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31719},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"ad73953afd9338dc9709eac292c9186db01dc1ef","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230705122746_1688560068256_0.30179243217926555","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230707102623":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230707102623","author":{"name":"0xSwapFeeder"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230707102623","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"8e218d308551686d80e2eb2a180767e18044f01e","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230707102623.tgz","fileCount":11,"integrity":"sha512-8L4c2Kuk5A4i9CG1/7PhLO7G3Ui3qiPc2A4lxbCIsjEq44MJf+RwMZFiTZeaFnZjLVlCeRMZ8apfytMyWjrHvA==","signatures":[{"sig":"MEUCIA3q0HCicr/wtrtlNoZat8Ut8x+koE+SfBw2QUV6LPryAiEAr73vil8DuiH+1G8uCY7By1s2Y6I8bS8zwzadFW/3Q1U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31719},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"ERROR: No README data found!","gitHead":"7ba6fb72f76022beff1f0dadf15eefc5507e66d9","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230707102623_1688725584773_0.276750180018676","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230713123226":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230713123226","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230713123226","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"1d5089b7418c28aad5f64cf87e2743733b982883","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230713123226.tgz","fileCount":12,"integrity":"sha512-KWUmeMLpw9h1UKao98oCnfq1t34DlBP96Z29/m4xIGoFPVOpa8MC4gVFGGUEP6gSMl8fo5g5Jy+jno2yf0cXHA==","signatures":[{"sig":"MEUCIEPpxChUPw3BOrkuUNn5bGvXuYUB7IxJ5PEdmeYUYGBwAiEAngWGANORE0nOtKYPSoiTTXwL7RXIpMeKKJLQfqJLK/Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35107},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a tool designed to generate callable functions for smart contract methods in TypeScript and AssemblyScript.\nThese generated functions can be seamlessly integrated within your smart contracts from TypeScript or AssemblyScript projects.\n\n## Getting Started\n\n### Prerequisites\n<!-- You should add that people should be familirized with:\n\n- massa smart contract dev and deployment\n- Protobuf transformer -->\nTo use Massa-Proto-CLI, you should be familiar with:\n- [Massa smart contract development and deployment](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html)\n- [Protobuf transformer](https://protobuf.dev/)\n\nEnsure you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, run:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\nThen: \n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nFirstly, create a .env file in your node project with the following variables:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\nYou can use either of the following:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own node\n\n### Running the CLI\nTo see the list of available commands, use:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address you wish to generate your callers for.\n- `--gen` should be followed by the generation mode: `sc` for contract-to-contract callers and `web3` for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory in which the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript offer a simple interface for interacting with your smart contract methods.\n\nThis is demonstrated through the example of a simple smart contract having only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\nNote:\n- Make sure to set the --out argument to a directory inside `/assembly/contracts/`\n- In the package.json file, add the \"-r\" option after the compiler command for the \"build\" script \n\n## Contributing\nContributions are always welcome! If you would like to contribute to Massa-Proto-cli, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md).","gitHead":"35f2584012e681d6cb03ab967bf67c72dca495c9","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230713123226_1689251547946_0.4483623649342072","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230713131442":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230713131442","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230713131442","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"cb283b48a4d75179acd9d7b9665a510e8a59e283","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230713131442.tgz","fileCount":12,"integrity":"sha512-Pbth41XyXpcMa+5TVRxkD4Y272zXqAmMXHidgjcfCtfkAcV3FZLBQAsaXHeIq2Ko5q31AQhASPb0GH2cXLQkaw==","signatures":[{"sig":"MEQCICtsY5F4d+jHvPYVN0uws8kQAAJXpmvyTKzFkT/g4EPDAiA12m9Px0xmv5rMqj64RICBTlWzu4OEU118dc6iWIeS6Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38623},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a tool designed to generate callable functions for smart contract methods in TypeScript and AssemblyScript.\nThese generated functions can be seamlessly integrated within your smart contracts from TypeScript or AssemblyScript projects.\n\n## Getting Started\n\n### Prerequisites\n<!-- You should add that people should be familirized with:\n\n- massa smart contract dev and deployment\n- Protobuf transformer -->\nTo use Massa-Proto-CLI, you should be familiar with:\n- [Massa smart contract development and deployment](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html)\n- [Protobuf transformer](https://protobuf.dev/)\n\nEnsure you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, run:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\nThen: \n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nFirstly, create a .env file in your node project with the following variables:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\nYou can use either of the following:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own node\n\n### Running the CLI\nTo see the list of available commands, use:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address you wish to generate your callers for.\n- `--gen` should be followed by the generation mode: `sc` for contract-to-contract callers and `web3` for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory in which the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript offer a simple interface for interacting with your smart contract methods.\n\nThis is demonstrated through the example of a simple smart contract having only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\nNote:\n- Make sure to set the --out argument to a directory inside `/assembly/contracts/`\n- In the package.json file, add the \"-r\" option after the compiler command for the \"build\" script \n\n## Contributing\nContributions are always welcome! If you would like to contribute to Massa-Proto-cli, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md).","gitHead":"31d0d693b177cf266f47f632f3d8cda3c25976a3","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230713131442_1689254083272_0.7129669514273351","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230718072747":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230718072747","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230718072747","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"df693c7987a6a8d352dbe656310552ef90ebd6e6","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230718072747.tgz","fileCount":12,"integrity":"sha512-67jg9cAa5pxYKdH7V95KaM30UNi84vvguZZpgdl6WxvSSC3ncazy4PeEV8RxOdVUw1F1DNVRFtjr5rhBerXL3Q==","signatures":[{"sig":"MEUCIChvzOzNNzPfGYkts90cAdUHRm24Vb18YraXQC2U5a7oAiEAy+Fa1sAVQUCWcm9qzb7egZGSCLHHshVP15HhKRavM0c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38821},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"338eeed79dcf641347989366c43634a8b5d8914c","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230718072747_1689665268765_0.5401558828019732","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230718072842":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230718072842","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230718072842","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"e2a1b728dec97a0ec83024afcdc8fe0548ca95bd","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230718072842.tgz","fileCount":12,"integrity":"sha512-1vKv3jQObFjSYH5r19jBgQzGq1So3n4B2uR/tPGy5sxALCVTu6YyCxqBip8ZHvdFdLne/QEJ+kqleifwZigOTw==","signatures":[{"sig":"MEYCIQCBnbrpdpgwBBPH5z0xjEiabaer8BgAPCUAgY/jOLDW7gIhAKsNdeQA1XrgaTKcwVqDPMZgGuqMyW2wh80yiQAeXPy4","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39236},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"52e3eb7789ecf89f1173dc1494384c66b26d3e27","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230718072842_1689665323114_0.7130453852175851","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230718081903":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230718081903","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230718081903","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"7282fc986fa1b16531ea8479aa18d292917daeab","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230718081903.tgz","fileCount":12,"integrity":"sha512-kSyVooqNTdQZ3ca+R42U2Hd4dSKyZ0IODJgNn21NDuLsxnTzBxNjVuz/qTwTgOyVWCT7No11ap8TkjIwe6kO9A==","signatures":[{"sig":"MEUCIHUTJjZQBD3w6wpLVDLbRDdRwF3INqZh7apCdi9B+T5HAiEA8av7ycuhVudv+qtln0vOk/ZwuPyHEzzTrBo0OqPY1YY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42142},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"49484b248c495427885807a89182808584cde58a","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.0","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230718081903_1689668344900_0.05797370817635894","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230718140250":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230718140250","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230718140250","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"15ad001a62e5f934cee249945423eb194d05a180","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230718140250.tgz","fileCount":12,"integrity":"sha512-hmMzORr8QZwgxY9fm/5DI6k3HmZ9JwwDFTFXtoPwugPKAwgf7wLCX06B4nlMt6kXHZwjtvM5k91r7FIU5eOvBw==","signatures":[{"sig":"MEQCICdx8D9o+GIvkDu9hQqVGOWjHn7P/sdzAuMjSDfGxCxIAiB8nMQBXH6C2mYzCGinea+CTIOKKgBW3LnAN+/50U5pIg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":42142},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"d4f419dd3769bd5e88448d0a86b7ee49eca65f73","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230718140250_1689688971313_0.41323665565278644","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230718140305":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230718140305","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230718140305","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"136866cd4d1c804c92af71866caab11185716ab6","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230718140305.tgz","fileCount":13,"integrity":"sha512-AhtMefy0spnjzPrGJ/DH+qbUMY4RVx4z50/tXtBE2fzks4qO6QRrZKCgBc8/grz/tAlEKLhHPFfuFYFmKuIq6A==","signatures":[{"sig":"MEQCIQC9LAcgEaewxqEv32tr+55fZkmzuc7SHdJd0tWre4acLQIfBd0Q1Co4OYxEFbJ1fgouDXMDddLVM0XNN9ePbmpMqQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43203},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"5bd9f6cc177b5c44d8ff1fb9694324cfb8cdf601","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230718140305_1689688986979_0.6861463547196909","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230718140630":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230718140630","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230718140630","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"6543e00e0c404513b3d8362452517affc5e18b72","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230718140630.tgz","fileCount":13,"integrity":"sha512-O+6pcpiIUxtSQKNrwpHdsVWR0NK3W8WwBHg9Fv311HRyLxrUfnAECrHIrSMw4wXnubWKWTOMZd2jeZ+NfEHaJw==","signatures":[{"sig":"MEUCIA+C3aZp5NN/IDQdmImdD3ABePiCTCOhbIRzgG8AlnQRAiEAzwQ8elxFskozweMoNaqRqqJ7j4eVv0RxlbCOxImidvw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43203},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"4cff2b5b160722242e09161636c687c07862a498","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230718140630_1689689191187_0.567638649444534","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230719102435":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230719102435","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230719102435","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"e5a09d38c0220775b7f3a3c021442b5389f8078e","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230719102435.tgz","fileCount":13,"integrity":"sha512-7mZf3XpU36VP0Ml0ALVlsr8Z/AVBZS21LXEfw7j/zzE8vHvYLgiUzFyAWd3GjaHYz5xzQrL4rezri0WMQG9IUw==","signatures":[{"sig":"MEYCIQDphUTi/z2QbUdP/VAMmiNSbSQyA4757W6dJJMo9mf+tAIhAOQSITHrMZqp+QZYqxnvLdR4rrax/Yns8i3mcUWGNZmZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43240},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"057f94d7ae370040ac97525e0b2c5a56e9510f8a","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230719102435_1689762276350_0.2269995719621234","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230720103016":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230720103016","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230720103016","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"1cb5c07e5ae945e6ed75abed1dc67865f2fbb10f","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230720103016.tgz","fileCount":13,"integrity":"sha512-ENMC1l2mrBMIeyBKA4/49Qy9kSkudB29LenLKt282rmIlA+Drf5Tvh1qckEQQvU2Zs731YmZMNuSH7bWA/Hp4A==","signatures":[{"sig":"MEQCIFIkIrwh6GMf/Jli3gk5JUPxh1yriE6N2yAADSRfQCvXAiBKEpWrlREF7Y7Qp4hOw+nc7V4Df3hw2k4YM2PCmGYJkQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43240},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"ce9215d0de22034308fe3645d860b4116900f8bf","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230720103016_1689849017885_0.5670564469555557","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230720105707":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230720105707","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230720105707","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"12ceb76a332a80a974fb9b5be14ebf37c948cab3","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230720105707.tgz","fileCount":13,"integrity":"sha512-B/wanv0/x2jFhK2KjlJv4Xcfed2N56cPn32XsKMFCd4sA/0hWnu1IHx2DCKi18vLIDA0nyHbF8Xw4P/0oXw0oA==","signatures":[{"sig":"MEQCIGwsc4CX/cJlra3oOkffby7UcDC7Qzzl25sAdWNm/9bPAiAews5KG4lKg+7Mm7nUP2Z1rna4Hvm0Xh2h2NtJ5IPEEQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43240},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"dda19c94a563c25b3f4f2a73ed531cdf135ad95e","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230720105707_1689850628758_0.6467820924974037","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230720112133":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230720112133","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230720112133","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"821f08c4fb76a6910c55afc99528352bc082b24f","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230720112133.tgz","fileCount":17,"integrity":"sha512-HcajDTBT+1uhZHlejkiMvYmLro7e6rQ7B7tBQNtXROajSEy6fxq54fl9HQlAkGrA8otM5kJtdQublJ7GIm1oHg==","signatures":[{"sig":"MEUCIQC3ka8Xld6L7B7PAcNEZdF26POOyspM1tAgmpdhTDug2wIgQFsON5Ow/5sXFUiRLgarWNqCxSBnY6oXMAEnZ5cfe4U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49454},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"7adff6c703e434ea28b3ded76e28a6098200e57c","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230720112133_1689852095248_0.9933300301363874","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230720112701":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230720112701","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230720112701","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"04783828f59a13d6d2dac00804534ca697ea4006","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230720112701.tgz","fileCount":17,"integrity":"sha512-Fqv8OkrGz1w4y521Om1Is6axf4cg+5d/r2blmKx8pcpz25xVS9B1uer2CrjgNO1JHut8B+5o9aKFbRESb8xd8g==","signatures":[{"sig":"MEUCIAnA1lUXvVDy+xlli9eJNo6tCZAizsGiyRbqXH9vR2pZAiEAy0WGrFkrP14xwxcIBCICaYKjvyHSrlDx6uNc4M4/t2M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"2f334fd34b78484107dad074081e4a2e01bdf752","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230720112701_1689852422640_0.1691502284861548","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230720125133":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230720125133","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230720125133","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"f372db282d3085d90cc9ade7f4a4348eeb41f097","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230720125133.tgz","fileCount":17,"integrity":"sha512-HdxJFb5umi+YHtlAn44DQz8f9k6s3uxuicIzY3KnMojSZevDJUKLdU2VBjlliWAZxEvmljgIxQ2JwcYcSmDy/g==","signatures":[{"sig":"MEUCIQDwp/GQOUvs/BetLwzdE+VqOj4LovsmLs6loesxBvYXYgIgDl+xi4QO/378qEqYelmnYpIkkgdd3vjboNHRqoUZsf8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"569a983532cb92bd2fb997e78819000615f96d21","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230720125133_1689857494604_0.7537714372647601","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230720140348":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230720140348","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230720140348","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"4f05b03d4960a9a9b7dea6ddb2d858cb9093617d","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230720140348.tgz","fileCount":17,"integrity":"sha512-1OFYOjATwXbpgRxsNGlhp1TTZHDSM9u1tN7Tpk53ZoBi3bTmjhOSMElyVvRgK53puz+CRJ/2EA/FdVJdDrSurQ==","signatures":[{"sig":"MEUCIQCcpkKPh1ItHiIp0WqZb8l8lRd/g1My22p3aaRnDzEugAIgQw9p5lHdVK/99mxyxrOaQRNgPdN0iCQLJzZGWYXi/HM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"5279fbd8a50a55b85a24b00336a604ec89d22165","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230720140348_1689861829430_0.4628268759498235","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230720205708":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230720205708","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230720205708","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"515e1707f4eedbcd0d1da3388913ebe5dcd8d30d","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230720205708.tgz","fileCount":17,"integrity":"sha512-Z0+Zk83DG0j1wiiugoPYRRqqGQF3sSK4FWDmvkkNYX9eMWbt3fwRFQrbvjGI36faCUpJjc85ftlkST9qKgSBSQ==","signatures":[{"sig":"MEUCIQDmXZ4aJJJq8EKCDWmGFDGL8LXSaCRbKywVcsynS2iq4QIgFAPzSSLfvDufeqVEvCFF7Xtnl3Vt1eYQ8zfYhSmGFw4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"53f8bd6db56ed6c2f250f084f99de412f62c3d6f","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230720205708_1689886629370_0.8660928625952082","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230721045318":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230721045318","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230721045318","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"470068e5c9d26aeeb801983b66afdfc67368d9c5","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230721045318.tgz","fileCount":17,"integrity":"sha512-GuuAuAebt3dvatL/CWFgAOMz4qNsD++JlpnthDbitCTq+RB8ZBkwj9XfzX1rO49G/ZxwOzcM7IYjOMUzcsKLqA==","signatures":[{"sig":"MEYCIQCxAhDPGFT7QGitMP+45LKC/uG1ivNLXTVCoTJ22Z4EegIhANKb3Kh3Xu3sg4S5P290Os2yGzscEZnj1jpM8aQW9EMb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49454},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"78a6e64169a44ebd1542d5f129e679e8521bbf13","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230721045318_1689915199340_0.1836582976747616","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230721102302":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230721102302","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230721102302","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"e6edc22723c064465bc52847873e10e6b59a7a51","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230721102302.tgz","fileCount":17,"integrity":"sha512-CIO7T4+kvUXH3Wpd/ydJ3W08M5F8lIbMnk6oUTRb/ud/wKqe4wiLcfxQWGZwlnySB4Zf+xwaB21gZEZbLovzoQ==","signatures":[{"sig":"MEUCIQD69z+9bJMk0s3c+P5qm6edfwci9swy8eaf54Ul1cjHMAIgQDWAKPYfM+13aFHrALMjiya8up7Q5mvnXzk7Bm3v0ZQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49454},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"c96dd6f34d5e6e6528e37ccf880dc683ff721201","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230721102302_1689934984044_0.23452251782678446","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230721113820":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230721113820","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230721113820","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"154b492edbe54fb222a747d09ff25472833be6ad","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230721113820.tgz","fileCount":17,"integrity":"sha512-6gUu2ZlmSuip/jUNK1ieVYuOR8gMeDD2FT8pZNaFEJ+JqJrS1Netr4LJZiXbsABvbR7ndMIBmPkJ+dkUm1mMSQ==","signatures":[{"sig":"MEQCIDQtI2FeSRcophI+sbK6oERYexNzx7/0EScWEVVjlwLiAiALZ1YmyYnz5onI9/q/hqWtr8vzPZDK21Q9qoqx5S4NKQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49454},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"2e208a2cf5f739786b11fd61f4c1278e015eabe3","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230721113820_1689939501613_0.6712619357616645","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230721114326":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230721114326","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230721114326","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"ce16659f3eefc5d1bb6af0404b134795198d2d3f","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230721114326.tgz","fileCount":17,"integrity":"sha512-utgtAXZs45CIz9in9IdjGRfPo//sFvMKv0Dzlg7RrWSbzhBFFOME8SEuSAAqx0rvZWFglEtCwO/OqIex0PSZcA==","signatures":[{"sig":"MEYCIQCnR+VCZeXWg+KhJlm1tLz7oJB4klLKB+3tDM5Gs6aNfAIhAKfvntM8URPGeZ8M0acguHn9c2Upo6bvw75rjqP/b8CR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49454},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"8da6497681b74cdecec6d517afa3298b8bc35f64","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230721114326_1689939807174_0.9430425276755254","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230721115316":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230721115316","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230721115316","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"d014faf7363e499cc0aa11afd33c34dc3ef88cb4","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230721115316.tgz","fileCount":17,"integrity":"sha512-v52pVAZLU6M1SpIPQV57nRQsiMoA6LkxZPHN/9ZIAYgA2w4q4nMJj7NJjNwPbmg3RKoswRJcrnM1Z5JWq1/gqw==","signatures":[{"sig":"MEYCIQDFK5xLDdVObhgNPjDGoMF2O24eGFeTSmWPjtBe8bOmGAIhAOHuAZolmWS6EkeczWHFzphCJdIn9Y78ZIyWDomHI8DF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"17a17920682dbce5c3dcfcb0a48d59c0656d08a4","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230721115316_1689940397512_0.5434414154611249","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230721115849":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230721115849","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230721115849","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"e4efbb140eb71fc01f9073e8b295d7cc183de251","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230721115849.tgz","fileCount":17,"integrity":"sha512-k7Fcg554Blxc0jonMg5nF2XGWASR0pJwm3hWS4SeLCg/6mEMI29HG77LQj8BAVxKnmPUjEyd2slmHNwSyNyu2A==","signatures":[{"sig":"MEUCIHp1gmJSw37VDR0Xep7cJwnjX6tCpoR1EjiotvcZf3KXAiEA3fRCxmIRQVV/1x72cLM5clr6eE+6w7nnMwgdf10DUvQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"ac3dbd5e8d482b201b9722ca6696ab97b36e3276","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230721115849_1689940731144_0.7024339953173961","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230721125527":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230721125527","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230721125527","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"594f944059ebf09e4be8ab5c2c99843b117c00b0","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230721125527.tgz","fileCount":17,"integrity":"sha512-cYv0e4C4ClFLc6qXJPh/TDf1COgCaNUtGStA6risbrkw4bD/mUy/4kuU3RgFtyvgMqPuOgQdyDrCJKUi2fd46w==","signatures":[{"sig":"MEYCIQClsOimQFoEBYyO+nqy+XvHNsqxIDBe7Y4qOVg/36PvWAIhANBokCvxDNudUv+ScOHKJWiD+nNHBDf2dX/mUUvgB+HW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"a756a89f2aec25e58a313f492c2320e2e4c1dfd1","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230721125527_1689944129494_0.3185628677873731","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230721150653":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230721150653","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230721150653","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"d0dbbb6de60dcafa0fa145385e49d6ac7af9f067","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230721150653.tgz","fileCount":17,"integrity":"sha512-lT4RvlNkFrOK3KRC+ToaxGRMlrRVQtoXLl1FLfoW43BtFq797P5jugiabUNnuFepmSkljQKkauicgtg47wb71g==","signatures":[{"sig":"MEUCIQCYhlLIimhkz6ale6js7LiKVCw4G2b5/IUzUIfbwgCH8wIgDHHq2pjLoxn8o7eTEKzAXWqnan1PypxFU3SqQofAeJY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"6439eeca8a6af5e57f0840579268d1aca6878aa4","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230721150653_1689952014632_0.1603556950770182","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230721151809":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230721151809","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230721151809","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"803d28cb9126b4b5f154241c2dcf5e9f928855e1","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230721151809.tgz","fileCount":17,"integrity":"sha512-HR2gR/yRHYdEgedTrARATMebOtKw1U7e/sdRdBP93CDd/aiZjn2uhvrHueG6cGVS2rn8wZKOPNIzVjsxrhBt9g==","signatures":[{"sig":"MEUCIFPR5v732g+RFe3j37cmQJRNK7nj0V0bhfzMRt5gTyHpAiEAoSjgu4vJ8VgjmVg43lvF5TvW3qyYcFmn3WKBymA72W0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"35e97d2512fc28a71779f8967cf517365aa74b1b","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230721151809_1689952690098_0.8392096511792384","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230725145805":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230725145805","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230725145805","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"d736a717edbcc27f751999be68f253718642e61f","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230725145805.tgz","fileCount":17,"integrity":"sha512-iAG8stcqZjD+GtBKwcbddyxNGXbYKkRfHzwKq5SCGbEc0ZqacrONZLTHceF1oSMFalt3uWRwjgBljkdy7obOKg==","signatures":[{"sig":"MEUCIQCSgW87O+DcE+WQpvv6KKfH1USPQxaMyHVCNS+LDTnAcgIgeB15zP9Ow65TEQTU0uuFEH0LkhPeACG04SuGXeYbdhc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49454},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"ed47485b90853c9163dd25eb9be87729051a8c2e","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230725145805_1690297086902_0.22610932673975714","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230725153756":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230725153756","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230725153756","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"5f7e4ca4049ef0e1b4942cbcdd0e6a51a6436d6a","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230725153756.tgz","fileCount":17,"integrity":"sha512-f0m17QiR2ZlmY976OClzuCCJULPVB4xusL4nQY+Bn6KyZxGa/GvsqpexkSRpC2N2viwASNvz/9tueGWKDY7uxg==","signatures":[{"sig":"MEUCIFLOTn5QiSZzewy6jKqeZvRLFSvwrshjQf525O0qYtHFAiEAya+zOQ+J7G00XIzLat0yG9CrNwGR0hROVm4ridMGq0s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54673},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"8d13aae58b1bc53cd6d9e003ed09c5a87dd8807e","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230725153756_1690299477491_0.6320984573506803","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230725190736":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230725190736","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230725190736","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"6f736cdf8864f00eeb387d7fd296029cb65565ef","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230725190736.tgz","fileCount":17,"integrity":"sha512-3JAMUyjnLHmKnvuh/fYZNuQdk3dOXSqO5czq+2I1li0ftae1bgkN3Ve7iDayo5qATx56lKdsi/snbgtmsiiRfA==","signatures":[{"sig":"MEQCIB9HmlKSPB4yTSWZY4jIOrvZMdYhUOeOWpn1t+WffQduAiAcKeAoNmdE1TIdrGk2j/Yk9L7/5tXpUVte3QENSqrcWw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":49435},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"a4b39a44538a252b3333c9e884d13bc04681fb4a","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230725190736_1690312058336_0.24074159798568973","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230725190813":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230725190813","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230725190813","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"13c421a6998d8c6d3705c542fa6336f88ec4862a","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230725190813.tgz","fileCount":17,"integrity":"sha512-1fqjf/wFJ175RM6bq0gI9Z4z5ULKcTbNgNxy+wPxneYtnzNp0yMOeHTYUib+eyFnXElNaAwqjfEROyDXxpv9YQ==","signatures":[{"sig":"MEUCIQDktNCtEcZwaii4QJBGTcWCPUyLIIlQyyn74FbjiV59tQIgReesM6/73g9hXrvaIISPFWwEQMEXNa71GvqNct7ucGk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54654},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"48c93a307cecb5518e9916d4c4d3a5e8ea4d9e3c","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230725190813_1690312094773_0.5039721155919121","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230726051532":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230726051532","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230726051532","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"e573ebd941fd47b70015d50c688a4ef18f528d73","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230726051532.tgz","fileCount":17,"integrity":"sha512-xJ9YyuDrQiPbIt7SAMIZnay4lv/t4V8W0+IKtz7MAgBVS0BQK+vx+IcPWJqBwL2iiyUyDsdP3EbaXXHzgM9HAg==","signatures":[{"sig":"MEUCIQDparIeqEiqPyF24mJ/j3aSBv6b/SfAAu3lIvkGtzrsNgIgeu8GokQ9h/v47Nef2hcpxcAZ63vBLozyCM974LvWxtA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54673},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"e0fc1ba230393dbd7e50ec74b3cad716ffd81f53","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230726051532_1690348534556_0.6609027023544727","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230726051623":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230726051623","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230726051623","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"b559287be008a62b713d41bfcd4aa0e26eb0d588","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230726051623.tgz","fileCount":17,"integrity":"sha512-J1hA1ZlSrkKWNeAqBRE/zNo+mho6mvSDwyhVAWVRF6ZJv8AvZwQN746yQ9hpmwttnaJ5dWKjSo7+51AgR5nUNQ==","signatures":[{"sig":"MEUCIFqmKnJVSTR42KesMbalfKCLuNIof0EG5sRCZ6068qofAiEAlrV+u72sCIKs2PmrmX6QyoXzkJHPg+aPSvG23d13/tI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54654},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"487c2074eeddb8cd8bb2cdcf829879f402b59ecc","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230726051623_1690348586998_0.2765687792597613","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230727154648":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230727154648","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230727154648","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"fe9a824af6dbdec90b79a28e2e151f71b206792e","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230727154648.tgz","fileCount":17,"integrity":"sha512-iXXe9V/aKhV1gxiOLBJBmWFabKvKKfYemFSiLpWUBGqFXV7Mmf1HSClKW8ihDOxwu9GjCwGEq+pN+sJTuHk7KA==","signatures":[{"sig":"MEYCIQDkYyjpT1kN2B6eqmZw30pVpMip28y/PTFDlLBbdcqKKAIhAMXWETczsCH7Yf/oWzgTyu9SfAJ22+VkjXQmJnuEjG7q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54673},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"a1bea034031f9a692f4bed01157cb87455474d0f","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230727154648_1690472809478_0.51387099318376","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230727155819":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230727155819","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230727155819","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"5a91ce5f4ab2393232136bce33f77e4d53717327","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230727155819.tgz","fileCount":17,"integrity":"sha512-0w23BjZl6BdtGsGfTykSj8xiUrhAeTOSNs5TU1JSB1uXV6oAdsgpOjmSK3ozAFivqAjSTIb6h+y4iNu8WM8rrA==","signatures":[{"sig":"MEUCIFGcnyF6vY1LD6cI34dLMAu45y1b9Ml23OfSmXRUO6t+AiEAjCHi8fMQaEQe2Y8O2JP2vJ0Ez3GrFzRZP+1mG07Qsfs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54673},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"97bcc73556bd3b26a274c1b97eade9c8df18e73e","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230727155819_1690473500693_0.1698341260725933","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230727160919":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230727160919","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230727160919","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"2ac540b0d425d76bf578befe3d531af7f4ab5fb9","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230727160919.tgz","fileCount":17,"integrity":"sha512-N9wwcXLTO0WFxpL3zaZymqeJfGa6jUBKbFz6GGUSKI4U0WdAmR+U1weuQaHqjuSeMNSJMiMJGlW1L/zypMHiXQ==","signatures":[{"sig":"MEQCIBLOSDyHaVqJSkibonL7HTSsyW82RCu55Tuvv1XLOD5EAiBrU95BpQ6IFgo5Cdh951+PJw9hxDnHuBs7NCD2iUagAg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54654},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"e24c5f6dbc49f9d9d40f37ae53892ad0deb2cafe","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230727160919_1690474160659_0.1889303856115392","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230727162020":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230727162020","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230727162020","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"567647f94ca1c257baafa01387f58e044f8ba48d","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230727162020.tgz","fileCount":17,"integrity":"sha512-NamLRd6niOaZEMr2bzgi5qLUBHlwf8oMpqBQ9xlpFh+GDxQurZ00TP7fXpCqnGyZOMTu7OvGjGy/jh0E7vnUMA==","signatures":[{"sig":"MEQCIATIMU0ZKz8jvq1AZ0nQCboUfFMP4zA/UZFQFORXnJCwAiAExtK1CG+t38I8L3wFDaioddAhtlneF3fEAvl3aHjqeA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54654},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"7584ab300eb062c8b0b589031f702cd9765664bc","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230727162020_1690474824420_0.4616887856080807","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230728085328":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230728085328","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230728085328","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"5b82644b9ddbc403d843083799406d18335807c3","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230728085328.tgz","fileCount":17,"integrity":"sha512-D2CpcM1DGsfU7WkRD4uZDyzLFGLVD+YVZcmcC8Hkwh2CPf7lTWzo6hbzcKEwzpoBxEgtcEPrUsI7Ig8Zk6sTkw==","signatures":[{"sig":"MEQCIBulUwmFndznl3xEUaq3hgbw5qHoGv/KG+D1WCCdSNcQAiBgnvH9GRNwW1R6rTjo7S4a0nsR9RLs4JE93acrkSLDgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56915},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"6d49094219a49436195f1adf3c2f0d2b2b2b18f3","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230728085328_1690534409633_0.04825952988040205","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230803164653":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230803164653","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230803164653","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"0b7dd1b353257906536896009ab2fb1de4bc65d0","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230803164653.tgz","fileCount":17,"integrity":"sha512-u55GcYRkSp0gU+b3BVM3yI/L9N8Zr1e61Z6w5sR19sLZ5FdlA/toZCjFLUEIFpY7Fyrez1yjonBNLuRP0iKo2A==","signatures":[{"sig":"MEYCIQCq4IHibqGBCpbk/2BTdUyfNSh6dMgJt1PVfbRJ5s7qRgIhAPhgy2jF6gtDeg9ymzipQqWprCXfi8Z1dHLaUdI+ykxP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":63336},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"566d58d6d1afee5118dfb75ea7a81fa2e022d16f","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0","@massalabs/as-transformer":"^0.2.2-dev.20230731125944"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230803164653_1691081214046_0.5313736780276122","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230808121335":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230808121335","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230808121335","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"abbff72d890c13b495b471ad687b16b6c7a175e6","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230808121335.tgz","fileCount":26,"integrity":"sha512-HngqU1Muum1Ui8alxIpMzKXRRCJ0MBFJrSa4SQAiQxqa1ovDrvA9XG46X09wTI76RWBAKBnZVm8nKgvszEhFpw==","signatures":[{"sig":"MEYCIQCQXUxj4wPyAKG/Rpt+SCYAz9yrJCMsdw1FLUe8PUO22wIhAO2OsfCdGT9CgYDloPFhUmqeoQll/KHxVIt81HuJbbDN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":157168},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"ed6669e9bffa990a9788b5d22fed195bbdd39f67","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0","@massalabs/as-transformer":"^0.2.2-dev.20230731125944","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230808121335_1691496819345_0.5735983681159333","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230809150423":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230809150423","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230809150423","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"4c5f21ae547e5e0be6217b8e9757fd5d8f5068ff","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230809150423.tgz","fileCount":26,"integrity":"sha512-LenFGRDpM3N+IXkrKLxErR3Qp8+QALm8GBGrxw4sxNAfxOq51WUolULIX7fXaDjAujS54631o+pqVJhkW8xZKw==","signatures":[{"sig":"MEUCIQCY+eUlaN7kKXTYUTci/uOFFti6U2fdbBFlIXyQlu4t1AIgE0PKSEBfaH3WMPvI0ybtQb12YKyqOYG4Dqpy1X6LubQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":157168},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"94e7bb8faa973f7f634c618cd1e2795ea26c0f5f","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.19.2-dev.20230704134830","@massalabs/massa-as-sdk":"^2.1.0","@massalabs/as-transformer":"^0.2.2-dev.20230731125944","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230809150423_1691593464857_0.09768331592564627","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230809150523":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230809150523","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230809150523","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"6024a46632f3ac0c8f4d10414adfb6a37213fa67","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230809150523.tgz","fileCount":17,"integrity":"sha512-EEEhalGW26qFJF5Z0W3hBFOC2Mmp3RbRid8/7MLgW1DEvmdZeudxKtXoGXoqef/9sYz8Z6RTmK1it8PkZ2+5Gw==","signatures":[{"sig":"MEUCIAWjEKbb5a5VTzSGULQGu4+eC/Nhxb3cZQHWkU4A65xOAiEAx83YEJzvsjnDvOK5rjN/IjzhZAEl05uk5Uf6mBaALUY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54654},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"a483113e5e89261ae41bb2f1acad10b693e183f2","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230809150523_1691593524506_0.7958489407830764","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230814085531":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230814085531","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230814085531","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"2b3f6c6f7f774c5659fe4c895a52885c75e601db","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230814085531.tgz","fileCount":17,"integrity":"sha512-36EzOXXtauK/y8Zd3Rif80dhXkjWHomHkIfGdq8CINywhfMinPQNNGXgggDVcHa/ySij7ZBYCPjJ+6jicW1K5w==","signatures":[{"sig":"MEUCIQDrO/yERRKa1A3rA6Jj1UJD0PMhkq6FR0eOO8qr8pWESgIgVLRGO1PlRdfkI7Kq7qifBEatl3vpuNlo3nRZmIvKNFU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54654},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"f26a17daff0caea6a5bd1b0f0e917a4676470ae3","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230814085531_1692003333046_0.08365443806658446","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230818075611":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230818075611","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230818075611","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"dff9b26d9e4a4eb9fe3de1a57b85f9f9434ceef9","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230818075611.tgz","fileCount":26,"integrity":"sha512-0AgxIoNX1mi0jjRPeuxwfvPLb/om0lhVA5uomWuplzlVxHDasV3vBW17r2mUTKw/V+Po4eBLecieDOdlN7+iaQ==","signatures":[{"sig":"MEYCIQCXwo+UsXcS+NzQc7ZuJeA4eCpvRdu20lkvdybVNGcjDgIhANqo/A/x7yQj6BU4I++9edCPHQ7JfYF5iuWppZqRjVQG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":168507},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"c89334f7182e4198996bd3fcb6f27fbe63f8ba73","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.1","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.2.2-dev.20230810150029","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230818075611_1692345373647_0.29039658246732003","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230821143728":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230821143728","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230821143728","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"d6574a0e419588bb30130d3437173c0d934da8ef","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230821143728.tgz","fileCount":26,"integrity":"sha512-VpUrqp0z5GuvEZpriFBPuX5g7iw/eAuJy/UWn8WMHg6kiM1d8yYkJHKdpXd521jlyLbnG2ZBL2x3IHZ8nJMljg==","signatures":[{"sig":"MEUCIFmtdLMHdtXOtcQfgDqwm0inDCRWXAG1cp4IJ4HlfoYkAiEAr2tCN00lKZVk1Ekn14izbHBXqXgxAgHssRgPq3bCAwY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":170043},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"fafb1dda5de9816e2586daaf0ed5f2aba89fd482","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.2.2-dev.20230810150029","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230821143728_1692628651039_0.275910008447358","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230823114640":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230823114640","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230823114640","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"cd376fddecfd5afaf4256e4075c89cf97e2778db","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230823114640.tgz","fileCount":26,"integrity":"sha512-tZ2oQe3PTNY7dDyGBFwb5qHsfG0Efjl76/BE8z3AjGRjb5mCsjsPsZL2mVbUtU+MgGQE/GTn0PbTNUYP0Uhp0A==","signatures":[{"sig":"MEUCIQDJXeIhwfjgPbOJ0Q8+GcpwNfWqq2BJ5GTxpY9OZ4nhXAIgaOey6bLAj9SwrplIyObHFw+vX0J9RSerNIbmCUyAC6A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":170024},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"9543ddc7511082f6986b23b47a8e80599cd996dc","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230823114640_1692791201593_0.7882373745498752","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230823124754":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230823124754","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230823124754","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"5d11781bc824d11a9b42f96fd0f1d9350f458c39","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230823124754.tgz","fileCount":26,"integrity":"sha512-rgCsAamvgqx9Vfwx9aCf6uErGEa7HPdmcnMcb0gUhvv9cZWysrKFeLQBDhizlg+AFcSQdRxdka7M7cugRWVVfg==","signatures":[{"sig":"MEYCIQCkDj/FqJ/Hffy/640egxTclqRSuEn9vbE5uDVi608hmgIhAPp3FUI1CDXdkNHrt2qGqLG0CAECWwelV4jqJ1Jzqfkq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166729},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"ff8db97a5deeed969489bb84530b9bc5e18b6005","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230823124754_1692794875925_0.522793602590333","host":"s3://npm-registry-packages"}},"0.1.1-dev.20230823130512":{"name":"@massalabs/massa-proto-cli","version":"0.1.1-dev.20230823130512","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.1-dev.20230823130512","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"32be8cd78e15aa3a8326ad3874901e72ace608d8","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.1-dev.20230823130512.tgz","fileCount":26,"integrity":"sha512-D5mYbXYLyzBhMMZOE7EpLDazHbNCjB5xpRvACfGHpbaUgzi2CxdBKjP3YwnstBTxkdbUgvzQGuuKLOFVN8sn/A==","signatures":[{"sig":"MEYCIQCtuzTRwcX2KFPr/mCSVzjFPS62/j75ld28A97bJe643gIhAPhaucmHRulG5DABQKX0dWRgL/6WkBBGhUaW2sfhlRuc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166729},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"04ddd1fa0e8f6f2d30afc503ecb8046432ec623f","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.1-dev.20230823130512_1692795916478_0.9469764689417197","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@massalabs/massa-proto-cli","version":"0.1.0","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.0","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"57311de07d4e8395cfddce486929a1cd93894090","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.0.tgz","fileCount":26,"integrity":"sha512-ePczljm/oDEJbnLylOoIcwNXybd+Q/UrpyITuXwveeqmJQMYPHG7kMx7CJ0OHScWqL0fK7ctT6SSLBo0k8Fr6w==","signatures":[{"sig":"MEQCIDWKkLrjqMTNULHTme3n/wLRUQz8WVYGwocGIrgF+xVzAiBkWiGJoTe9dAtU97BWbABT2GbPhekzlO8K8lJP2WtwKw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166710},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"04ddd1fa0e8f6f2d30afc503ecb8046432ec623f","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.0_1692796003173_0.583312324029936","host":"s3://npm-registry-packages"}},"0.1.1-dev.20230824091451":{"name":"@massalabs/massa-proto-cli","version":"0.1.1-dev.20230824091451","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.1-dev.20230824091451","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"2425142ac392599b914749fe0ec4d5bbaadb28ee","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.1-dev.20230824091451.tgz","fileCount":26,"integrity":"sha512-IKcB7dGYul/UPMsUbbde5cP8caSkCj4CK/A66jdMddcHf5bKpToGwg8xdYyHqRitjwANpJ/SRpar0/sqT4zb8A==","signatures":[{"sig":"MEUCIAaarcQ4cxOYUaVFFvUsLzurUOYVwCY0dtfKpW2eaA4AAiEAvDneLCn/rsK/HSBfSDF1XTERNL6m1whDnj/d4h1/xQc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166886},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"9ac2a33136e482d650270a351af7fd5ce4f7efd1","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.1-dev.20230824091451_1692868492382_0.7043565089616932","host":"s3://npm-registry-packages"}},"0.1.1-dev.20230824093016":{"name":"@massalabs/massa-proto-cli","version":"0.1.1-dev.20230824093016","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.1-dev.20230824093016","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"92b324b3a36658ee77e05a7fa27d1e05e54458d9","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.1-dev.20230824093016.tgz","fileCount":26,"integrity":"sha512-U+9kLV6Kzl7s6fG3vmXsiuJnJ2hc6DjPb7EUMorsJtIKtNMNED32s6wLkk5QNiFdig1xXBLFcdCnE0iaNxq56Q==","signatures":[{"sig":"MEUCIQDYC9oEUbfAyabbJsJSxoTavfKbeW57vHL+pQ5ThCOiHwIgXwdJPD9sbzEM1dmdj2P+9lVk/MBhT3jeKI2ZSC8HYns=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166886},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"8bef7fc895a5ef8021dd43a9fad7e07c700b168d","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.1-dev.20230824093016_1692869417844_0.6234388054701485","host":"s3://npm-registry-packages"}},"0.1.2-dev.20230824134726":{"name":"@massalabs/massa-proto-cli","version":"0.1.2-dev.20230824134726","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.2-dev.20230824134726","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"ec848ab88c0fc78e090004f0eae0d0134e25f267","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.2-dev.20230824134726.tgz","fileCount":26,"integrity":"sha512-eEEbPvqr2IiU/iFBOnF33MPgLjHjsRRwH+9YBVmXh0G6cRBaimsNx6O+FEicE/ThkuWab1z/IY4VgK+4CHS2Og==","signatures":[{"sig":"MEYCIQC1HzvY7ReMWHeLY2Uh4NICa61PuNCDEecRm81mUcrhlQIhAPR3VZRrhz+EopIV6mV6uA1qObJ3eNeZydBPadGJ+Y/m","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166886},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"e55b243fe167ed329399e6faee800437a2733b76","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.2-dev.20230824134726_1692884847748_0.9205018888975725","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@massalabs/massa-proto-cli","version":"0.1.1","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.1","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"9084c621ece6892d21dbe331f75f76a2c55c1456","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.1.tgz","fileCount":26,"integrity":"sha512-G3C90ARjiuekkk8T0a36YNS+1YZWi8ySEd5X1j+1gNhm0PUOZjqRU17sUAKhg3YN9GETdrMCoECqkYuEhzzb1Q==","signatures":[{"sig":"MEUCIC9PrcKqcMFNnEiaK0E3v1ch3e4FkTyZBvVm8AqTSbUvAiEA2ZscfXIgWDBXdixDw+cFPFXJ+L0qyb4UJdRYEPWMCoQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":166867},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","gitHead":"e55b243fe167ed329399e6faee800437a2733b76","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.1_1692884884642_0.16513274557697533","host":"s3://npm-registry-packages"}},"0.1.2-dev.20230904145910":{"name":"@massalabs/massa-proto-cli","version":"0.1.2-dev.20230904145910","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.2-dev.20230904145910","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"f07395183b07e942c6ed3fec445d5b0d187c63af","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.2-dev.20230904145910.tgz","fileCount":26,"integrity":"sha512-+MCLPxcv4jl8WpPHse8GnKoIqIK5ZA/7YNS8fC2U1zVL8HS+L1vny85qvWM9F/2zoT/fImcctxcuB2CNY1YGYg==","signatures":[{"sig":"MEUCIHCdqX32rvfPwu8hcPUSazpFXS4BZQlGJoeasYdvxaiyAiEArLwQ5HAmpIMYc1hM9XQ4Wqk4ygazSdaMmxAj8kFtZEo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167502},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"50697600902ef7922dcaf0d8f26be55f7c0c305e","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.2-dev.20230904145910_1693839552524_0.21290106565011402","host":"s3://npm-registry-packages"}},"0.0.2-dev.20230908110329":{"name":"@massalabs/massa-proto-cli","version":"0.0.2-dev.20230908110329","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.0.2-dev.20230908110329","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"c167b5f91d525717e91c7d5e5dce78250004d5bf","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.0.2-dev.20230908110329.tgz","fileCount":17,"integrity":"sha512-xSOYkACX3iN69sWKJopTSHnW9OGcnlyDOjIY2h/loDlPzVGmiuPASqKmwkUOqxy5t01X7ASEC2u4FgIGqS+QeA==","signatures":[{"sig":"MEYCIQC0NZH7d8DxF8/PBplu0owkPDDLNA3XwUWUK5pD/ESpqQIhAMJKR5d7YV5sfe30ZnEX9FC7I0dgyUBBxxZHtR+8TzUm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":54654},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"c1225400d50728ec514b765e3eff26eca12554e7","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^18.6.0","as-proto-gen":"^1.3.0","child_process":"^1.0.2","assemblyscript":"^0.25.2","google-protobuf":"^3.21.2","@massalabs/as-types":"^1.0.0","@protobuf-ts/plugin":"^2.9.0","@massalabs/massa-web3":"^1.21.0","@massalabs/massa-as-sdk":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^4.4.4"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.0.2-dev.20230908110329_1694171010931_0.843089707780236","host":"s3://npm-registry-packages"}},"0.1.2-dev.20230915052404":{"name":"@massalabs/massa-proto-cli","version":"0.1.2-dev.20230915052404","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.2-dev.20230915052404","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"5f139d9bc572401caaa344ace555bc04fc9ef00b","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.2-dev.20230915052404.tgz","fileCount":26,"integrity":"sha512-tZtz9mKtjHW7Vf0uhoXFlCl6FXsxrKpQTU8H3ea6x6hIino7AQ5/lyU4m77lJ66t8BIbJF2FPgKKAO17cCWt2w==","signatures":[{"sig":"MEUCIFMzLFpqb6gWqklxGHu1O811LnVaWtjImtyE/BfPxoO5AiEAlMAX09ZK+WC6VQwfAg3CVJiXKXyhVQlEJlkb1kBfTkE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167502},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"a7c9c0e3671d3e714058606826edf41c72f5f060","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.2-dev.20230915052404_1694755445585_0.614136896073993","host":"s3://npm-registry-packages"}},"0.1.2-dev.20230920105604":{"name":"@massalabs/massa-proto-cli","version":"0.1.2-dev.20230920105604","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.2-dev.20230920105604","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"0037ea5add92de21573df95ff867d2253067cdac","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.2-dev.20230920105604.tgz","fileCount":26,"integrity":"sha512-FvdwgFTLhS7/68I+Y1d9SXCTPqhackEXeyH5C1Eb97Jg30JhZAatWyHEmedc3pn2eU+A8AZGBmr9oOo/P0YjoQ==","signatures":[{"sig":"MEUCIQCURhmJmQFaOIV56Ufa0sq3zVLbSPpNspOSOieDEMR1bgIgeuOx3qsApL1tmCixH9DABofdjNEbDx3xK+w43xivd8g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167502},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"e3d41b7940bfa9a6291e7d9ecfdb75768bdd80f7","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.2-dev.20230920105604_1695207370809_0.2593287745321615","host":"s3://npm-registry-packages"}},"0.1.2-dev.20230920124657":{"name":"@massalabs/massa-proto-cli","version":"0.1.2-dev.20230920124657","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.2-dev.20230920124657","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"4f7b2118a634ad761eaa5d26da4015e033623e17","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.2-dev.20230920124657.tgz","fileCount":26,"integrity":"sha512-P8g2r2JamyMx6d14DDHTRRoEma5IcxcfNKSbVH55Fl/W5qn2jT6JV1XXleObSQuQhuBPu9MQ+xc2RXsv40AwKg==","signatures":[{"sig":"MEYCIQDF6WNwhMqADh8kZrXbYwmnKzurDLn7I2zQDTWrvw1MYwIhAKIJK13pc+IKC29G2Z2bC4kOqHNEiGwsAmeiMKhZI9bc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167502},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"36e0a606e3e6b982f5a18a0e8d93a9636c0b46ff","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.2-dev.20230920124657_1695214018834_0.15775771303501473","host":"s3://npm-registry-packages"}},"0.1.2-dev.20230920132406":{"name":"@massalabs/massa-proto-cli","version":"0.1.2-dev.20230920132406","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.2-dev.20230920132406","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"b17a5d71bd5d121812e0b9f8d038783d8fab793a","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.2-dev.20230920132406.tgz","fileCount":26,"integrity":"sha512-8je7UKqBKJK0J2+eXorBoee57S3F+lBN+1bUHMe1fFDe8qlRxkVFzf++zmgzIaY5HUjg+Kl48B2/l/NuvTDjDA==","signatures":[{"sig":"MEQCIBjt/Fw9dVtKlgq1K8REoX9kQ3fad2D+8V/S2tBNF2E6AiBF2g2G67pqnoeLXE3Lvuv6xda9V1Fa4GhPZgLNHb9Y+g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167502},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"bfaa77f200077727a2efac5b79f46c0909fdd021","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.2-dev.20230920132406_1695216248297_0.5692512299613341","host":"s3://npm-registry-packages"}},"0.1.2-dev.20230920142411":{"name":"@massalabs/massa-proto-cli","version":"0.1.2-dev.20230920142411","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.2-dev.20230920142411","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"630a6e5e1874717547e0f40deb0412898be51de7","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.2-dev.20230920142411.tgz","fileCount":26,"integrity":"sha512-yk5qzeuQj7fgcAIhfsQP90TMv3AJ5Ep0Lbqbv7O/VqZZGeOspGfTfff0/aja0+5DnyWF2JYa25Qf+4eCUh4npg==","signatures":[{"sig":"MEYCIQD4gg83rDS7CC0FRRNm+y0hS/O5TdUzhzzWCrJR3/um9QIhAJjZ88V9hVOsBpUoa1wzGBG/qDZPbNaKWtkTTONrUU+i","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167502},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"e2ed3da403ca3855d3ca06fce7395df042b8bb11","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.2-dev.20230920142411_1695219870673_0.40620617272633197","host":"s3://npm-registry-packages"}},"0.1.2-dev.20230920161828":{"name":"@massalabs/massa-proto-cli","version":"0.1.2-dev.20230920161828","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.2-dev.20230920161828","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"42ac1ed801358f3457c4cad7716ad1800cc6747b","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.2-dev.20230920161828.tgz","fileCount":26,"integrity":"sha512-PSdOG1XbL9MSQsMsp/NiRPaclhHVQJzsqDYX6HaKfKQBqjcHpRS6hLPX3rwqBNWhYTDZzr6zHzbrYfsMqyzOpw==","signatures":[{"sig":"MEQCICrAgRvXHebZfHiTZqkSeF1Kb9I2LQDMDU7fCb9XdcpxAiA07Z323a/0MEC5q00xQKbjDYVI5N3DBj4u3x0sVfLh4Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167502},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"e2ed3da403ca3855d3ca06fce7395df042b8bb11","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.2-dev.20230920161828_1695226709240_0.42707955656894847","host":"s3://npm-registry-packages"}},"0.1.2-dev.20230920163101":{"name":"@massalabs/massa-proto-cli","version":"0.1.2-dev.20230920163101","author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","_id":"@massalabs/massa-proto-cli@0.1.2-dev.20230920163101","maintainers":[{"name":"glibert","email":"libertgregory@gmail.com"},{"name":"aurelienft","email":"aurefook@gmail.com"},{"name":"damip","email":"damipator@gmail.com"},{"name":"evgenip","email":"evgeni.pirianov@gmail.com"},{"name":"qdr","email":"l.neirda@gmail.com"}],"bin":{"massa-proto":"dist/index.js"},"dist":{"shasum":"ab958226283d67dd40118a1907e8e99846ea448e","tarball":"https://registry.npmjs.org/@massalabs/massa-proto-cli/-/massa-proto-cli-0.1.2-dev.20230920163101.tgz","fileCount":26,"integrity":"sha512-cWmNr9dtSJy0CMzMtmMk0vewFusBh/pieOnoA9pMcU0HMMeGsSC4iCSAeFzKZEDXk/nqA0/VNdzV5aMXl5lTjA==","signatures":[{"sig":"MEUCIQC4CA9bj98+nOLNoht8MHJeeYzT+Kc+60gFTTU/IIbQmgIgFYghtm1Qm9I4SGb5xxf9FCwAck0114iw64lyFg3vuEU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":167502},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","readme":"# Massa-Proto-CLI\n\nMassa-Proto-CLI is a powerful tool that automates the generation of callable functions for smart contract methods in TypeScript and AssemblyScript. These generated functions can be seamlessly integrated into your smart contracts from TypeScript or AssemblyScript projects, saving you time and effort.\n\n## Getting Started\n\n### Prerequisites\nBefore using Massa-Proto-CLI, make sure you meet the following prerequisites:\n\n- Familiarity with Massa smart contract development and deployment. You can refer to the [Massa smart contract documentation](https://docs.massa.net/en/latest/web3-dev/smart-contracts.html) for guidance.\n\n- Understanding of the [Protobuf transformer](https://protobuf.dev/).\n\n\nAdditionally, ensure that you have npm installed on your machine to run the necessary commands.\n\n### Installation\n\nTo install Massa-Proto-CLI, open your terminal and run the following command:\n\n```bash\nnpm i -g @massalabs/massa-proto-cli\n```\n\nDepending on whether you're using AssemblyScript (AS) or TypeScript (TS) for smart contract caller generation, you'll need to install the corresponding dependencies:\n\n- For AssemblyScript (AS) smart contract caller generation, run:\n\n```bash\nnpm i as-proto as-proto-gen @massalabs/massa-as-sdk @massalabs/as-types @massalabs/as-transformer\n```\n\n- For TypeScript (TS) web3 caller generation, run:\n\n```bash\nnpm i @protobuf-ts/plugin\n```\n\n### Setup\nAfter installation, create a .env file in your node project with the following variable:\n\n```toml\nJSON_RPC_URL_PUBLIC=your_node_url\n```\n\nYou can use one of the following URLs:\n\n- Buildnet: `https://buildnet.massa.net/api/v2:33035`\n- Testnet: `https://testnet.massa.net/api/v2:33035`\n- Your own custom node URL\n\n### Running the CLI\nTo view the list of available commands, use the following command:\n\n```bash\nnpx massa-proto --help\n```\n\nTo generate callers, use the following command:\n\n```bash\nnpx massa-proto --addr=the_contract_address --gen=mode --out=outputDirectory\n```\n\n- `--addr` should be followed by the contract address for which you want to generate callers.\n- `--gen` should be followed by the generation mode: sc for contract-to-contract callers and web3 for TypeScript to contract generation.\n- `--out` should be followed by the path to the directory where the callers will be generated.\n\n### Utilizing Generated Callers\nThe generated callers for TypeScript and AssemblyScript provide a simple interface for interacting with your smart contract methods. \nLet's consider an example with a simple smart contract containing only one function:\n\n```protobuf\nsyntax = \"proto3\";\n\nmessage sumHelper {\n  int64 a = 1;\n  int64 b = 2;\n}\n\nmessage sumRHelper {\n  int64 value = 1;\n}\n\n```\n\n#### TypeScript\nTo use the generated caller in TypeScript, import the function and call it as shown below:\n\n```typescript\nimport { sum } from \"./sumCaller.ts\"\n\n// Assume that you've already set up your callSC method in the caller using massa-web3 or the wallet-provider\nconsole.log(\"a + b = \", await sum(a, b, coins));\n```\n\n#### AssemblyScript\n\nTo use the generated caller in AssemblyScript, import the function and call it as shown below:\n\n```assemblyscript\nimport { sum } from \"./sumCaller.ts\"\nimport { generateEvent } from '@massalabs/massa-as-sdk';\n\nexport function main(_: StaticArray<u8>): void {\n  generateEvent(`2 + 3 = {sum(2, 3)}`);\n}\n```\n\n## Contributing\nContributions to Massa-Proto-CLI are always welcome! If you would like to contribute, please read our [Contributing Guidelines](https://github.com/massalabs/massa-sc-toolkit/blob/main/CONTRIBUTING.md)for more information.","gitHead":"7a86eb9fdf7557a539c8666516c8e9ac27c1da80","scripts":{"build":"tsc && npm run chmod","chmod":"chmod u+x ./dist/index.js","start":"node dist/index.js","prebuild":"rimraf dist"},"_npmUser":{"name":"qdr","email":"l.neirda@gmail.com"},"_npmVersion":"8.19.4","description":"A cli for easy work with smart contract proto files","directories":{},"_nodeVersion":"16.20.2","dependencies":{"mkdirp":"^3.0.1","rimraf":"^5.0.1","commander":"^11.0.0","protobufjs":"^7.2.4","@types/node":"^20.4.7","as-proto-gen":"^1.3.0","child_process":"^1.0.2","@massalabs/as-types":"^1.0.1","@protobuf-ts/plugin":"^2.9.1","@massalabs/massa-web3":"^2.1.0","@massalabs/massa-as-sdk":"^2.4.0","@massalabs/as-transformer":"^0.3.0","@massalabs/prettier-config-as":"^0.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"typescript":"^5.1.6"},"_npmOperationalInternal":{"tmp":"tmp/massa-proto-cli_0.1.2-dev.20230920163101_1695227462531_0.26287433042500963","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-06-28T07:01:16.298Z","modified":"2024-11-07T14:14:00.442Z","0.0.2-dev.20230628070115":"2023-06-28T07:01:16.538Z","0.0.2-dev.20230628084446":"2023-06-28T08:44:48.231Z","0.0.2-dev.20230628084912":"2023-06-28T08:49:13.591Z","0.0.2-dev.20230630070041":"2023-06-30T07:00:43.279Z","0.0.2-dev.20230703122854":"2023-07-03T12:28:55.633Z","0.0.2-dev.20230703132742":"2023-07-03T13:27:43.682Z","0.0.2-dev.20230703142919":"2023-07-03T14:29:20.714Z","0.0.2-dev.20230703150702":"2023-07-03T15:07:05.684Z","0.0.2-dev.20230704135037":"2023-07-04T13:50:38.889Z","0.0.2-dev.20230704163421":"2023-07-04T16:34:22.608Z","0.0.2-dev.20230705122746":"2023-07-05T12:27:48.508Z","0.0.2-dev.20230707102623":"2023-07-07T10:26:25.042Z","0.0.2-dev.20230713123226":"2023-07-13T12:32:28.269Z","0.0.2-dev.20230713131442":"2023-07-13T13:14:43.494Z","0.0.2-dev.20230718072747":"2023-07-18T07:27:48.914Z","0.0.2-dev.20230718072842":"2023-07-18T07:28:43.357Z","0.0.2-dev.20230718081903":"2023-07-18T08:19:05.094Z","0.0.2-dev.20230718140250":"2023-07-18T14:02:51.481Z","0.0.2-dev.20230718140305":"2023-07-18T14:03:07.168Z","0.0.2-dev.20230718140630":"2023-07-18T14:06:31.366Z","0.0.2-dev.20230719102435":"2023-07-19T10:24:36.555Z","0.0.2-dev.20230720103016":"2023-07-20T10:30:18.093Z","0.0.2-dev.20230720105707":"2023-07-20T10:57:08.979Z","0.0.2-dev.20230720112133":"2023-07-20T11:21:35.396Z","0.0.2-dev.20230720112701":"2023-07-20T11:27:02.838Z","0.0.2-dev.20230720125133":"2023-07-20T12:51:34.818Z","0.0.2-dev.20230720140348":"2023-07-20T14:03:49.627Z","0.0.2-dev.20230720205708":"2023-07-20T20:57:09.594Z","0.0.2-dev.20230721045318":"2023-07-21T04:53:19.559Z","0.0.2-dev.20230721102302":"2023-07-21T10:23:04.360Z","0.0.2-dev.20230721113820":"2023-07-21T11:38:21.773Z","0.0.2-dev.20230721114326":"2023-07-21T11:43:27.374Z","0.0.2-dev.20230721115316":"2023-07-21T11:53:17.726Z","0.0.2-dev.20230721115849":"2023-07-21T11:58:51.314Z","0.0.2-dev.20230721125527":"2023-07-21T12:55:29.791Z","0.0.2-dev.20230721150653":"2023-07-21T15:06:54.860Z","0.0.2-dev.20230721151809":"2023-07-21T15:18:10.282Z","0.0.2-dev.20230725145805":"2023-07-25T14:58:07.077Z","0.0.2-dev.20230725153756":"2023-07-25T15:37:57.670Z","0.0.2-dev.20230725190736":"2023-07-25T19:07:38.501Z","0.0.2-dev.20230725190813":"2023-07-25T19:08:14.966Z","0.0.2-dev.20230726051532":"2023-07-26T05:15:34.798Z","0.0.2-dev.20230726051623":"2023-07-26T05:16:27.241Z","0.0.2-dev.20230727154648":"2023-07-27T15:46:49.647Z","0.0.2-dev.20230727155819":"2023-07-27T15:58:20.917Z","0.0.2-dev.20230727160919":"2023-07-27T16:09:20.813Z","0.0.2-dev.20230727162020":"2023-07-27T16:20:24.583Z","0.0.2-dev.20230728085328":"2023-07-28T08:53:29.833Z","0.0.2-dev.20230803164653":"2023-08-03T16:46:54.233Z","0.0.2-dev.20230808121335":"2023-08-08T12:13:39.562Z","0.0.2-dev.20230809150423":"2023-08-09T15:04:25.110Z","0.0.2-dev.20230809150523":"2023-08-09T15:05:24.709Z","0.0.2-dev.20230814085531":"2023-08-14T08:55:33.199Z","0.0.2-dev.20230818075611":"2023-08-18T07:56:13.916Z","0.0.2-dev.20230821143728":"2023-08-21T14:37:31.223Z","0.0.2-dev.20230823114640":"2023-08-23T11:46:41.777Z","0.0.2-dev.20230823124754":"2023-08-23T12:47:56.162Z","0.1.1-dev.20230823130512":"2023-08-23T13:05:16.849Z","0.1.0":"2023-08-23T13:06:43.393Z","0.1.1-dev.20230824091451":"2023-08-24T09:14:52.729Z","0.1.1-dev.20230824093016":"2023-08-24T09:30:18.047Z","0.1.2-dev.20230824134726":"2023-08-24T13:47:28.068Z","0.1.1":"2023-08-24T13:48:04.948Z","0.1.2-dev.20230904145910":"2023-09-04T14:59:12.760Z","0.0.2-dev.20230908110329":"2023-09-08T11:03:31.149Z","0.1.2-dev.20230915052404":"2023-09-15T05:24:05.818Z","0.1.2-dev.20230920105604":"2023-09-20T10:56:11.024Z","0.1.2-dev.20230920124657":"2023-09-20T12:46:59.011Z","0.1.2-dev.20230920132406":"2023-09-20T13:24:08.540Z","0.1.2-dev.20230920142411":"2023-09-20T14:24:30.851Z","0.1.2-dev.20230920161828":"2023-09-20T16:18:29.495Z","0.1.2-dev.20230920163101":"2023-09-20T16:31:02.762Z"},"author":{"name":"0xSwapFeeder & Elli610"},"license":"MIT","description":"A cli for easy work with smart contract proto files","maintainers":[{"email":"damipator@gmail.com","name":"damip"},{"email":"l.neirda@gmail.com","name":"qdr"}],"readme":"","readmeFilename":""}