-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added compatibility tracking * Added version moved test * Cleaned up test * Bump avalanchego version and nits * go mod tidy cmd/simulator * Mark trie clean jouranl test as flaky * Bump avalanchego to v1.9.2 * Bump anr version in scripts/versions.sh * Bump anr version in go.mod * go mod tidy cmd/simulator Co-authored-by: Aaron Buchwald <aaron.buchwald56@gmail.com>
- Loading branch information
1 parent
7f268e4
commit 55518f7
Showing
9 changed files
with
77 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"rpcChainVMProtocolVersion": { | ||
"v0.4.3": 19, | ||
"v0.4.2": 18, | ||
"v0.4.1": 18, | ||
"v0.4.0": 17, | ||
"v0.3.0": 16, | ||
"v0.2.9": 15, | ||
"v0.2.8": 15, | ||
"v0.2.7": 15, | ||
"v0.2.6": 15, | ||
"v0.2.5": 15, | ||
"v0.2.4": 15, | ||
"v0.2.3": 15, | ||
"v0.2.2": 14, | ||
"v0.2.1": 12, | ||
"v0.2.0": 11, | ||
"v0.1.2": 10, | ||
"v0.1.1": 10, | ||
"v0.1.0": 9 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package evm | ||
|
||
import ( | ||
"encoding/json" | ||
"os" | ||
"testing" | ||
|
||
"github.com/ava-labs/avalanchego/version" | ||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
type rpcChainCompatibility struct { | ||
RPCChainVMProtocolVersion map[string]uint `json:"rpcChainVMProtocolVersion"` | ||
} | ||
|
||
const compatibilityFile = "../../compatibility.json" | ||
|
||
func TestCompatibility(t *testing.T) { | ||
compat, err := os.ReadFile(compatibilityFile) | ||
assert.NoError(t, err) | ||
|
||
var parsedCompat rpcChainCompatibility | ||
err = json.Unmarshal(compat, &parsedCompat) | ||
assert.NoError(t, err) | ||
|
||
rpcChainVMVersion, valueInJSON := parsedCompat.RPCChainVMProtocolVersion[Version] | ||
assert.True(t, valueInJSON) | ||
assert.Equal(t, rpcChainVMVersion, version.RPCChainVMProtocol) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Set up the versions to be used | ||
subnet_evm_version=${SUBNET_EVM_VERSION:-'v0.4.2'} | ||
subnet_evm_version=${SUBNET_EVM_VERSION:-'v0.4.3'} | ||
# Don't export them as they're used in the context of other calls | ||
avalanche_version=${AVALANCHE_VERSION:-'v1.9.1'} | ||
network_runner_version=${NETWORK_RUNNER_VERSION:-'bb4b661ac88ebe50ab719424eecc1a55e01e7019'} | ||
avalanche_version=${AVALANCHE_VERSION:-'v1.9.2'} | ||
network_runner_version=${NETWORK_RUNNER_VERSION:-'35be10cd3867a94fbe960a1c14a455f179de60d9'} | ||
ginkgo_version=${GINKGO_VERSION:-'v2.2.0'} | ||
|