Skip to content

Commit 455887d

Browse files
authored
bump subnet-evm to v0.5.6 (#43)
* bump subnet-evm to v0.5.6 * bump avalanchego to v.10.11 * bump subnet-evm-contracts npm package * bump avalanchego version in devcontainer dockerfile
1 parent 197588c commit 455887d

File tree

11 files changed

+52
-28
lines changed

11 files changed

+52
-28
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV AVALANCHEGO_PLUGIN_PATH=$GOPATH/src/github.com/ava-labs/avalanchego/build/pl
1111
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
1212

1313
# Clone the avalanchego repository
14-
RUN git clone -b v1.10.5 https://github.com/ava-labs/avalanchego.git $GOPATH/src/github.com/ava-labs/avalanchego
14+
RUN git clone -b v1.10.11 https://github.com/ava-labs/avalanchego.git $GOPATH/src/github.com/ava-labs/avalanchego
1515

1616
# Set the working directory to the cloned repository
1717
WORKDIR $GOPATH/src/github.com/ava-labs/avalanchego

.github/workflows/lint-tests-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v3
1717
- uses: actions/setup-go@v3
1818
with:
19-
go-version: '~1.19.12'
19+
go-version: '~1.20.8'
2020
check-latest: true
2121
- name: golangci-lint
2222
uses: golangci/golangci-lint-action@v3
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v3
3333
- uses: actions/setup-go@v3
3434
with:
35-
go-version: '~1.19.12'
35+
go-version: '~1.20.8'
3636
check-latest: true
3737
- run: go mod download
3838
shell: bash
@@ -54,7 +54,7 @@ jobs:
5454
- name: Set up Go
5555
uses: actions/setup-go@v3
5656
with:
57-
go-version: '~1.19.12'
57+
go-version: '~1.20.8'
5858
check-latest: true
5959
- name: Use Node.js
6060
uses: actions/setup-node@v3

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Precompile-EVM is a repository for registering precompiles to Subnet-EVM without
55
## Environment Setup
66

77
To effectively build, run, and test Precompile-EVM, the following is a (non-exhaustive) list of dependencies that you will need:
8+
89
- Golang
910
- Node.js
1011
- [AvalancheGo](https://github.com/ava-labs/avalanchego)
@@ -16,7 +17,7 @@ To get started easily, we provide a Dev Container specification, that can be use
1617

1718
Codespaces is a development environment service offered by GitHub that allows developers to write, run, test, and debug their code directly on a cloud machine provided by GitHub. The developer can edit the code through a VS Code running in the browser or locally.
1819

19-
To run a Codespace click on the **Code** and switch to the **Codespaces** tab. There, click **Create Codespace on branch [...]**.
20+
To run a Codespace click on the **Code** and switch to the **Codespaces** tab. There, click **Create Codespace on branch [...]**.
2021

2122
### Local Dev Container
2223

@@ -59,5 +60,6 @@ In order to upgrade the Subnet-EVM version, you need to change the version in `g
5960
```text
6061
[v0.1.0-v0.1.1] [email protected] (Protocol Version: 26)
6162
[v0.1.2] [email protected] (Protocol Version: 27)
62-
[v0.1.3] [email protected] (Protocol Version: 28)
63+
[v0.1.3] [email protected] (Protocol Version: 28)
64+
[v0.1.4] [email protected] (Protocol Version: 28)
6365
```

compatibility.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"rpcChainVMProtocolVersion": {
3+
"v0.1.4": 28,
34
"v0.1.3": 28,
45
"v0.1.2": 27,
56
"v0.1.1": 26,

contracts/package-lock.json

Lines changed: 28 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"types": "dist/index.d.ts",
1414
"module": "dist/index.js",
1515
"dependencies": {
16-
"@avalabs/subnet-evm-contracts": "^1.0.0",
16+
"@avalabs/subnet-evm-contracts": "^1.1.0",
1717
"@nomiclabs/hardhat-ethers": "^2.2.3",
1818
"@nomiclabs/hardhat-waffle": "^2.0.6",
1919
"@types/node": "^16.7.1",

go.mod

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module github.com/ava-labs/precompile-evm
22

3-
go 1.19
3+
go 1.20
44

55
require (
6-
github.com/ava-labs/avalanchego v1.10.9
7-
github.com/ava-labs/subnet-evm v0.5.5
6+
github.com/ava-labs/avalanchego v1.10.11
7+
github.com/ava-labs/subnet-evm v0.5.6
88
github.com/onsi/ginkgo/v2 v2.8.1
99
github.com/onsi/gomega v1.26.0
1010
github.com/stretchr/testify v1.8.3
@@ -42,6 +42,7 @@ require (
4242
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
4343
github.com/google/go-cmp v0.5.9 // indirect
4444
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
45+
github.com/google/renameio/v2 v2.0.0 // indirect
4546
github.com/google/uuid v1.3.0 // indirect
4647
github.com/gorilla/rpc v1.2.0 // indirect
4748
github.com/gorilla/websocket v1.4.2 // indirect

go.sum

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah
5454
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
5555
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
5656
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
57-
github.com/ava-labs/avalanchego v1.10.9 h1:qxhp3YoD2Wm/iIKP6Wb1isbkUPWmIrJxWgivDoL0obM=
58-
github.com/ava-labs/avalanchego v1.10.9/go.mod h1:C8R5uiltpc8MQ62ixxgODR+15mesWF0aAw3H+Qrl9Iw=
59-
github.com/ava-labs/subnet-evm v0.5.5 h1:8loOWaEzmewRIon+Q2oTLrtV8nbwVfnv7cjsBajMC6E=
60-
github.com/ava-labs/subnet-evm v0.5.5/go.mod h1:PAyhfYnECzA17N62i7OAdKazjfSsN2l8KR5nOspg39I=
57+
github.com/ava-labs/avalanchego v1.10.11 h1:efyC/fYXqHNwjj56xgb0yFFxAr/y7Kyxi4DPYUz5HH4=
58+
github.com/ava-labs/avalanchego v1.10.11/go.mod h1:a6dQT2+V+qZ8Y9Kj69Ahh3dH+IT+9KzF318T4QEyrh8=
59+
github.com/ava-labs/subnet-evm v0.5.6 h1:u+xBvEExOa362Up02hgSgeF+aqDona57whhRIeEIim8=
60+
github.com/ava-labs/subnet-evm v0.5.6/go.mod h1:desGY3ghT+Ner+oqxeovwF37eM4dmMQbYZECONPQU9w=
6161
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=
6262
github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A=
6363
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
@@ -257,6 +257,8 @@ github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLe
257257
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 h1:4/hN5RUoecvl+RmJRE2YxKWtnnQls6rQjjW5oV7qg2U=
258258
github.com/google/pprof v0.0.0-20230207041349-798e818bf904/go.mod h1:uglQLonpP8qtYCYyzA+8c/9qtqgA3qsXGYqCPKARAFg=
259259
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
260+
github.com/google/renameio/v2 v2.0.0 h1:UifI23ZTGY8Tt29JbYFiuyIU3eX+RNFtUwefq9qAhxg=
261+
github.com/google/renameio/v2 v2.0.0/go.mod h1:BtmJXm5YlszgC+TD4HOEEUFgkJP3nLxehU6hfe7jRt4=
260262
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
261263
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
262264
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=

plugin/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
//_ "github.com/ava-labs/precompile-evm/{yourprecompilepkg}"
1717
)
1818

19-
const Version = "v0.1.3"
19+
const Version = "v0.1.4"
2020

2121
func main() {
2222
versionString := fmt.Sprintf("Precompile-EVM/%s Subnet-EVM/%s [AvalancheGo=%s, rpcchainvm=%d]", Version, evm.Version, version.Current, version.RPCChainVMProtocol)

scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -o errexit
44
set -o nounset
55
set -o pipefail
66

7-
go_version_minimum="1.19.12"
7+
go_version_minimum="1.20.8"
88

99
go_version() {
1010
go version | sed -nE -e 's/[^0-9.]+([0-9.]+).+/\1/p'

scripts/versions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Set up the versions to be used - populate ENV variables only if they are not already populated
4-
SUBNET_EVM_VERSION=${SUBNET_EVM_VERSION:-'v0.5.5'}
4+
SUBNET_EVM_VERSION=${SUBNET_EVM_VERSION:-'v0.5.6'}
55
# Don't export them as they're used in the context of other calls
6-
AVALANCHEGO_VERSION=${AVALANCHE_VERSION:-'v1.10.9'}
6+
AVALANCHEGO_VERSION=${AVALANCHE_VERSION:-'v1.10.11'}
77
GINKGO_VERSION=${GINKGO_VERSION:-'v2.2.0'}

0 commit comments

Comments
 (0)