0.7.0 • Published 4 years ago
@cryptoeconomicslab/ovm-ethereum-generator v0.7.0
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
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
5 years ago
0.4.1-alpha.20
5 years ago
0.4.1-alpha.1
5 years ago
0.4.1-alpha.19
5 years ago
0.4.1-alpha.0
5 years ago
0.4.0
5 years ago
0.3.6
5 years ago
0.3.5
5 years ago
0.3.4
5 years ago
0.3.0
5 years ago
0.2.13
5 years ago
0.2.12
5 years ago
0.2.11
5 years ago
0.2.10
5 years ago
0.2.9
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago