Skip to content

Solidity ร— ๐™–๐™ฃ๐™ฎ ๐™ก๐™–๐™ฃ๐™œ๐™ช๐™–๐™œ๐™š transpiler for Foundry tests & scripts.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

ZeroEkkusu/solx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SOLX

Write Solidity AND any other programming language at the same time in Foundry tests and scripts!

Usage

Caution

This is an experimental proof of concept. Do not use in development or production environments. SOLX is designed to work exclusively in Foundry's local EVM and cannot be used for actual smart contracts.

I have read and understood the above warning. Show me the usage instructions.

Clone

git clone https://github.com/ZeroEkkusu/solx

Install

soldeer install & bun install

Hook

source solx/hooks.sh

Build

forge build

Test

forge test

Experiment

Playground โ†—

Sync variables between Solidity and TypeScript:

uint256 a;
// @typescript-start (uint256 a)
a++;
// @typescript-end ()
assertEq(a, 1);

Clone variables from TypeScript:

uint256 a = 1;
// @typescript-start ()
const b = 1;
// @typescript-end (uint256 b)
assertEq(a, b);

console.log in TypeScript:

// @typescript-start ()
console.log("solx");
// @typescript-end ()

Only TypeScript is supported currently.

License

โ€‹ Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


ยฉ 2024 Zero Ekkusu

About

Solidity ร— ๐™–๐™ฃ๐™ฎ ๐™ก๐™–๐™ฃ๐™œ๐™ช๐™–๐™œ๐™š transpiler for Foundry tests & scripts.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks