0.7.0 • Published 4 years ago

@cryptoeconomicslab/ovm-ethereum-generator v0.7.0

Weekly downloads
41
License
Apache-2.0
Repository
-
Last release
4 years ago

ovm-ethereum-generator

Usage

npm i @cryptoeconomicslab/ovm-ethereum-generator
import { Parser } from '@cryptoeconomicslab/ovm-parser'
import { transpile } from '@cryptoeconomicslab/ovm-transpiler'
import { generateEVMByteCode } from '@cryptoeconomicslab/ovm-ethereum-generator'

const parser = new Parser()
const generator = new SolidityCodeGenerator()
const compiledPredicates = transpile(
  parser.parse(
    'def ownership(owner) := with Tx(su) as tx { SignedBy(tx, owner) }' +
      'def SignedBy(message, owner) := with Bytes() as signature {IsValidSignature(message, owner, signature)}'
  )
)
const result = generateEVMByteCode(compiledPredicates)
console.log(result)

Online Demo

https://ovm-compiler.netlify.app

0.7.0

4 years ago

0.6.0

4 years ago

0.6.0-alpha.0

4 years ago

0.5.2-alpha.3

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.1-alpha.2

4 years ago

0.4.1-alpha.20

4 years ago

0.4.1-alpha.1

4 years ago

0.4.1-alpha.19

4 years ago

0.4.1-alpha.0

4 years ago

0.4.0

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.0

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago