GithubHelp home page GithubHelp logo

atomkraft-json's Introduction

Atomkraft JSON

Just show me some JSON

git clone https://github.com/rnbguy/atomkraft-json
cat atomkraft-json/reports/*/log.txt  | grep -v "INFO" | jq -s

I saved one output here.

Install Atomkraft

Requires pip (from Python 3.10 and with latest setuptools), git and java.

Check pip's python version

pip -V # should print ... (python 3.10)

I modified a method to have access to the prepared transaction. So use my special branch.

pip install -U git+https://github.com/informalsystems/atomkraft@rano/tx-json

Verify

atomkraft version

Run following to setup Apalache

atomkraft model apalache get

Setting up

Clone this project. It comes with a simple model for bank token transfer.

git clone https://github.com/rnbguy/atomkraft-json
cd atomkraft-json

Build simd from cosmos-sdk source. Requires make, go, gcc.

git submodule update --init --recursive
(cd cosmos-sdk; make build)

The reactor is responsible to execute each ITF step on a SUT.

I modified it to print signed valid transactions in pretty JSON format. You can use these JSON objects in simd tx broadcast ....

Feel free to edit this file as you like.

Executing

atomkraft test model --model models/transfer.tla --reactor reactors/reactor.py --keypath action.tag
  • It will generate traces in traces/ directory.
  • Print INFO logs to the console.
  • Also, the INFO logs are stored at reports/<LAST_RUN>/log.txt

For now, the JSON dump is very hacky. Please, update the code as you like.

For the current setup, you may run this to produce a valid JSON list of executed transactions. Requires jq (or yq)

cat reports/<LAST_RUN>/log.txt  | grep -v "INFO" | jq -s

atomkraft-json's People

Contributors

rnbguy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.