@evmts/babel-plugin-sol
v0.0.1
Published
A babel plugin for evmts
Readme
babel-plugin-sol
A babel plugin for transpiling template string solidity from evmts
Usage
Install this package
Currently not published to npm
pnpm i @evmts/babel-plugin-solAdd to babel.config.js
export default (api) => {
return {
plugins: ['@evmts/babel-plugin-sol'],
}
}Now you can write solidity with evmts
evmts contains the code that runs at runtime
pnpm i @evmts/coreimport { run, tsSol } from '@evmts/core'
import { useState } from 'react'
const forgeScript = tsSol`
contract Script {
function run() external returns (string memory) {
return "Hello, World!";
}
}
`
const sayHello = (): Promise<string> => run(forgeScript)