0.0.13 • Published 2 years ago

@swp0x0/warp v0.0.13

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Warp

Warp brings Solidity to StarkNet, making it possible to transpile Ethereum smart contracts to Cairo, and use them on StarkNet.

Installation :gear:

To get the dependencies:

yarn

Additionally, solc 0.8.11 must be installed and usable via 'solc' Instructions can be found at https://docs.soliditylang.org/en/v0.8.11/installing-solidity.html

Compile the project:

yarn tsc

Usage :computer:

To transpile a contract:

bin/warp transpile example_contracts/ERC20.sol

Testing

To test run warp on all example contracts:

bin/warp test

For this to work, you must be able to run

starknet-compile

Instructions to set this up can be found at https://www.cairo-lang.org/docs/quickstart.html

To examine a solidity file in unwarped AST form:

bin/warp analyse example_contracts/ERC20.sol

---New tests--- The old tests check for successfully compiling cairo code The new tests check for correctly running cairo code

First run the setup script:

tests/behaviour/setup.sh

Second, in a separate terminal, start a starknet-testnet server:

yarn testnet

then to run the tests:

yarn test

Contribution :hammer_and_pick:

Contributions are welcome but please reach out to the team before attempting any large modifications to the source. You can get an overview of the project's progress on our notion board along with good starting issues and descriptions of the intended solutions for a number of others.

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago