Skip to content

Commit

Permalink
Update import path
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekay committed Dec 17, 2023
1 parent 9e0b39d commit fd08c47
Show file tree
Hide file tree
Showing 485 changed files with 2,007 additions and 2,002 deletions.
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# ref. https://goreleaser.com/customization/build/
builds:
- id: subnet-evm
- id: evm
main: ./plugin
binary: subnet-evm
binary: evm
flags:
- -v
ldflags: -X github.com/luxdefi/subnet-evm/plugin/evm.Version=v{{.Version}}
ldflags: -X github.com/luxdefi/evm/plugin/evm.Version=v{{.Version}}
goos:
- linux
- darwin
Expand Down Expand Up @@ -34,4 +34,4 @@ release:
# Default is extracted from the origin remote URL or empty if its private hosted.
github:
owner: luxdefi
name: subnet-evm
name: evm
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Subnet EVM
# EVM

[![Build + Test + Release](https://github.com/luxdefi/subnet-evm/actions/workflows/lint-tests-release.yml/badge.svg)](https://github.com/luxdefi/subnet-evm/actions/workflows/lint-tests-release.yml)
[![CodeQL](https://github.com/luxdefi/subnet-evm/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/luxdefi/subnet-evm/actions/workflows/codeql-analysis.yml)
[![Build + Test + Release](https://github.com/luxdefi/evm/actions/workflows/lint-tests-release.yml/badge.svg)](https://github.com/luxdefi/evm/actions/workflows/lint-tests-release.yml)
[![CodeQL](https://github.com/luxdefi/evm/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/luxdefi/evm/actions/workflows/codeql-analysis.yml)

[Lux](https://docs.lux.network/overview/getting-started/lux-platform) is a network composed of multiple blockchains.
Each blockchain is an instance of a Virtual Machine (VM), much like an object in an object-oriented language is an instance of a class.
That is, the VM defines the behavior of the blockchain.

Subnet EVM is the [Virtual Machine (VM)](https://docs.lux.network/learn/lux/virtual-machines) that defines the Subnet Contract Chains. Subnet EVM is a simplified version of [Coreth VM (C-Chain)](https://github.com/luxdefi/coreth).
EVM is the [Virtual Machine (VM)](https://docs.lux.network/learn/lux/virtual-machines) that defines the Subnet Contract Chains. EVM is a simplified version of [Coreth VM (C-Chain)](https://github.com/luxdefi/coreth).

This chain implements the Ethereum Virtual Machine and supports Solidity smart contracts as well as most other Ethereum client functionality.

## Building

The Subnet EVM runs in a separate process from the main Luxd process and communicates with it over a local gRPC connection.
The EVM runs in a separate process from the main Luxd process and communicates with it over a local gRPC connection.

### Luxd Compatibility

Expand Down Expand Up @@ -59,31 +59,31 @@ The Subnet EVM runs in a separate process from the main Luxd process and communi

## API

The Subnet EVM supports the following API namespaces:
The EVM supports the following API namespaces:

- `eth`
- `personal`
- `txpool`
- `debug`

Only the `eth` namespace is enabled by default.
Subnet EVM is a simplified version of [Coreth VM (C-Chain)](https://github.com/luxdefi/coreth).
EVM is a simplified version of [Coreth VM (C-Chain)](https://github.com/luxdefi/coreth).
Full documentation for the C-Chain's API can be found [here](https://docs.lux.network/apis/node/apis/c-chain).

## Compatibility

The Subnet EVM is compatible with almost all Ethereum tooling, including [Remix](https://docs.lux.network/build/dapp/smart-contracts/remix-deploy), [Metamask](https://docs.lux.network/build/dapp/chain-settings), and [Foundry](https://docs.lux.network/build/dapp/smart-contracts/toolchains/foundry).
The EVM is compatible with almost all Ethereum tooling, including [Remix](https://docs.lux.network/build/dapp/smart-contracts/remix-deploy), [Metamask](https://docs.lux.network/build/dapp/chain-settings), and [Foundry](https://docs.lux.network/build/dapp/smart-contracts/toolchains/foundry).

## Differences Between Subnet EVM and Coreth
## Differences Between EVM and Coreth

- Added configurable fees and gas limits in genesis
- Merged Lux hardforks into the single "Subnet EVM" hardfork
- Merged Lux hardforks into the single "EVM" hardfork
- Removed Atomic Txs and Shared Memory
- Removed Multicoin Contract and State

## Block Format

To support these changes, there have been a number of changes to the SubnetEVM block format compared to what exists on the C-Chain and Ethereum. Here we list the changes to the block format as compared to Ethereum.
To support these changes, there have been a number of changes to the EVM block format compared to what exists on the C-Chain and Ethereum. Here we list the changes to the block format as compared to Ethereum.

### Block Header

Expand All @@ -100,23 +100,23 @@ Set `$GOPATH` environment variable properly for Go to look for Go Workspaces. Pl

As a few software will be installed into `$GOPATH/bin`, please make sure that `$GOPATH/bin` is in your `$PATH`, otherwise, you may get error running the commands below.

Download the `subnet-evm` repository into your `$GOPATH`:
Download the `evm` repository into your `$GOPATH`:

```sh
cd $GOPATH
mkdir -p src/github.com/luxdefi
cd src/github.com/luxdefi
git clone git@github.com:luxdefi/subnet-evm.git
cd subnet-evm
git clone git@github.com:luxdefi/evm.git
cd evm
```

This will clone and checkout to `master` branch.

### Run Local Network

To run a local network, it is recommended to use the [lux-cli](https://github.com/luxdefi/lux-cli#lux-cli) to set up an instance of Subnet-EVM on an local Lux Network.
To run a local network, it is recommended to use the [lux-cli](https://github.com/luxdefi/lux-cli#lux-cli) to set up an instance of EVM on an local Lux Network.

There are two options when using the Lux-CLI:

1. Use an official Subnet-EVM release: https://docs.lux.network/subnets/build-first-subnet
2. Build and deploy a locally built (and optionally modified) version of Subnet-EVM: https://docs.lux.network/subnets/create-custom-subnet
1. Use an official EVM release: https://docs.lux.network/subnets/build-first-subnet
2. Build and deploy a locally built (and optionally modified) version of EVM: https://docs.lux.network/subnets/create-custom-subnet
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ Please refer to the [Bug Bounty Page](https://hackenproof.com/lux) for the most

## Supported Versions

Please use the [most recently released version](https://github.com/luxdefi/subnet-evm/releases/latest) to perform testing and to validate security issues.
Please use the [most recently released version](https://github.com/luxdefi/evm/releases/latest) to perform testing and to validate security issues.
8 changes: 4 additions & 4 deletions accounts/abi/bind/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import (
"io"
"math/big"

"github.com/luxdefi/subnet-evm/accounts"
"github.com/luxdefi/subnet-evm/accounts/external"
"github.com/luxdefi/subnet-evm/accounts/keystore"
"github.com/luxdefi/subnet-evm/core/types"
"github.com/luxdefi/evm/accounts"
"github.com/luxdefi/evm/accounts/external"
"github.com/luxdefi/evm/accounts/keystore"
"github.com/luxdefi/evm/core/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/bind/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
"errors"
"math/big"

"github.com/luxdefi/subnet-evm/core/types"
"github.com/luxdefi/subnet-evm/interfaces"
"github.com/luxdefi/evm/core/types"
"github.com/luxdefi/evm/interfaces"
"github.com/ethereum/go-ethereum/common"
)

Expand Down
36 changes: 18 additions & 18 deletions accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ import (
"sync"
"time"

"github.com/luxdefi/subnet-evm/eth"
"github.com/luxdefi/subnet-evm/vmerrs"

"github.com/luxdefi/subnet-evm/accounts/abi"
"github.com/luxdefi/subnet-evm/accounts/abi/bind"
"github.com/luxdefi/subnet-evm/consensus/dummy"
"github.com/luxdefi/subnet-evm/core"
"github.com/luxdefi/subnet-evm/core/bloombits"
"github.com/luxdefi/subnet-evm/core/rawdb"
"github.com/luxdefi/subnet-evm/core/state"
"github.com/luxdefi/subnet-evm/core/types"
"github.com/luxdefi/subnet-evm/core/vm"
"github.com/luxdefi/subnet-evm/eth/filters"
"github.com/luxdefi/subnet-evm/ethdb"
"github.com/luxdefi/subnet-evm/interfaces"
"github.com/luxdefi/subnet-evm/params"
"github.com/luxdefi/subnet-evm/rpc"
"github.com/luxdefi/evm/eth"
"github.com/luxdefi/evm/vmerrs"

"github.com/luxdefi/evm/accounts/abi"
"github.com/luxdefi/evm/accounts/abi/bind"
"github.com/luxdefi/evm/consensus/dummy"
"github.com/luxdefi/evm/core"
"github.com/luxdefi/evm/core/bloombits"
"github.com/luxdefi/evm/core/rawdb"
"github.com/luxdefi/evm/core/state"
"github.com/luxdefi/evm/core/types"
"github.com/luxdefi/evm/core/vm"
"github.com/luxdefi/evm/eth/filters"
"github.com/luxdefi/evm/ethdb"
"github.com/luxdefi/evm/interfaces"
"github.com/luxdefi/evm/params"
"github.com/luxdefi/evm/rpc"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/common/math"
Expand Down Expand Up @@ -650,7 +650,7 @@ func (b *SimulatedBackend) callContract(ctx context.Context, call interfaces.Cal
return nil, errors.New("both gasPrice and (maxFeePerGas or maxPriorityFeePerGas) specified")
}
head := b.blockchain.CurrentHeader()
if !b.blockchain.Config().IsSubnetEVM(head.Time) {
if !b.blockchain.Config().IsEVM(head.Time) {
// If there's no basefee, then it must be a non-1559 execution
if call.GasPrice == nil {
call.GasPrice = new(big.Int)
Expand Down
14 changes: 7 additions & 7 deletions accounts/abi/bind/backends/simulated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ import (
"testing"
"time"

"github.com/luxdefi/subnet-evm/accounts/abi"
"github.com/luxdefi/subnet-evm/accounts/abi/bind"
"github.com/luxdefi/subnet-evm/core"
"github.com/luxdefi/subnet-evm/core/types"
"github.com/luxdefi/subnet-evm/interfaces"
"github.com/luxdefi/subnet-evm/params"
"github.com/luxdefi/evm/accounts/abi"
"github.com/luxdefi/evm/accounts/abi/bind"
"github.com/luxdefi/evm/core"
"github.com/luxdefi/evm/core/types"
"github.com/luxdefi/evm/interfaces"
"github.com/luxdefi/evm/params"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
)
Expand Down Expand Up @@ -1225,7 +1225,7 @@ Example contract to test event emission:
function Call() public { emit Called(); }
}
*/
// The fork tests are commented out because transactions are not indexed in subnet-evm until they are marked
// The fork tests are commented out because transactions are not indexed in evm until they are marked
// as accepted, which breaks the logic of these tests.
// const callableAbi = "[{\"anonymous\":false,\"inputs\":[],\"name\":\"Called\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"Call\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"

Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ import (
"strings"
"sync"

"github.com/luxdefi/subnet-evm/accounts/abi"
"github.com/luxdefi/subnet-evm/core/types"
"github.com/luxdefi/subnet-evm/interfaces"
"github.com/luxdefi/evm/accounts/abi"
"github.com/luxdefi/evm/core/types"
"github.com/luxdefi/evm/interfaces"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/event"
Expand Down
8 changes: 4 additions & 4 deletions accounts/abi/bind/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import (
"strings"
"testing"

"github.com/luxdefi/subnet-evm/accounts/abi"
"github.com/luxdefi/subnet-evm/accounts/abi/bind"
"github.com/luxdefi/subnet-evm/core/types"
"github.com/luxdefi/subnet-evm/interfaces"
"github.com/luxdefi/evm/accounts/abi"
"github.com/luxdefi/evm/accounts/abi/bind"
"github.com/luxdefi/evm/core/types"
"github.com/luxdefi/evm/interfaces"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/crypto"
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/bind/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
"text/template"
"unicode"

"github.com/luxdefi/subnet-evm/accounts/abi"
"github.com/luxdefi/evm/accounts/abi"
"github.com/ethereum/go-ethereum/log"
)

Expand Down
Loading

0 comments on commit fd08c47

Please sign in to comment.