0.0.1 • Published 1 year ago
@evmts/babel-plugin-sol v0.0.1
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-sol
Add 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/core
import { 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)
0.0.1
1 year ago