openmina / mina-load-generator

Sample Mina zkApp
Apache License 2.0
0 stars 0 forks source link

Build Status

Mina zkapp transactions generator

Building

$ npm install
$ npm run build

Sending a Transaction

Account Update with Proofs and Signatures

$ node build/src/main.js run --node http://1.k8.openmina.com:31355/node1/graphql --key EKE5WXywUNqyPoNpU8D9682z6fxcnUdDMQaQN4x6K1wmC8sYXWa1 -- sign-proof-x3

Account update zkApp code

Transaction body

Sending Many Transactions in A Cluster

!!!OUTDATED!!!

The following commands will deploy the parallel job instances that generate zkapp calls, follow the log of one of them, and then delete the deploymen, freeing resources. Namespace can be like testnet-unoptimized.

$ helm --namespace=<NAMESPACE> install zkapps .
$ kubectl --namespace=<NAMESPACE> logs job/send-zkapps --follow
$ helm --namespace=<NAMESPACE> delete zkapps

GraphQL Queries

graphql.md

Testing Simple zkApp Transactions

To run a single simple zkApp transaction containing just a pair of account updates, use the following command:

$ node build/src/main.js test-tx --node <graphql URL> --sender <sender private key> --receiver <receiver public key> --amount 10 --fee 2

License

Apache-2.0