Skip to content

Commit

Permalink
separate contracts and sdk; tidy up (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-kyu committed Jul 7, 2023
1 parent 9e27033 commit d39f136
Show file tree
Hide file tree
Showing 811 changed files with 31,074 additions and 136,488 deletions.
14 changes: 8 additions & 6 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export OWNER_PK=<contract owner private key; example local foundry node key - 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80>
RPC_URL=http://127.0.0.1:8545
RPC_PROVIDER_URL=<rpc provider url - for example infura>
NETWORK_ID=31337
REFUNDER_ADDRESS=
ORACLE_ADDRESS=<oracle contract address>
export WALLET_PK=<contract owner private key; example local foundry node key - 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80>

L1_RPC_PROVIDER_URL=<rpc provider url - for example infura>
L2_RPC_PROVIDER_URL=<rpc provider url - for example infura>
L2_NETWORK_ID=31337

ORACLE_ADDRESS=<TrustedOracle contract address>
INCLUSION_PROVER_ADDRESS=<TransactionInclusionProver contract address>
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,4 @@ node_modules
.DS_Store
Thumbs.db
dist
contracts/cache
contracts/out
contracts/broadcast
.vscode
src/types/typechain
.vscode
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

26 changes: 4 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,15 @@
## Instalation
## Installation

```
npm install
```

## Start local node
## Make sure you have needed variables in the .env file

```
anvil
```

## Deploy contracts to local node

In another terminal execute:

```
npm run deploy-contracts
```

\*Make sure the OWNER_PK env variable has the 'export' word in the line start

## Generate typechain types for TypeScript usage

```
npm run postinstall
```
Use .env.template for reference

## Run script

```
npm start
npm start -- your_transaction_hash
```
34 changes: 0 additions & 34 deletions contracts/.github/workflows/test.yml

This file was deleted.

9 changes: 0 additions & 9 deletions contracts/.gitmodules

This file was deleted.

11 changes: 0 additions & 11 deletions contracts/foundry.toml

This file was deleted.

6 changes: 0 additions & 6 deletions contracts/hardhat.config.js

This file was deleted.

1 change: 0 additions & 1 deletion contracts/lib/Solidity-RLP
Submodule Solidity-RLP deleted from 0212f8
92 changes: 0 additions & 92 deletions contracts/lib/forge-std/.github/workflows/ci.yml

This file was deleted.

29 changes: 0 additions & 29 deletions contracts/lib/forge-std/.github/workflows/sync.yml

This file was deleted.

4 changes: 0 additions & 4 deletions contracts/lib/forge-std/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions contracts/lib/forge-std/.gitmodules

This file was deleted.

Loading

0 comments on commit d39f136

Please sign in to comment.