Skip to content

Commit 7846044

Browse files
authored
🔁 Update 🐍Vyper Version pragma to 0.4.3rc2 (#331)
### 🕓 Changelog This commit updates the version `pragma`s in all 🐍Vyper source files to target the latest `master` version `0.4.3rc2`, aligning with the release of Vyper's newest release candidate version [`0.4.3rc1`](https://github.com/vyperlang/vyper/releases/tag/v0.4.3rc1). Furthermore, all 🐍 snekmate contracts now target the new 🐍Vyper [default EVM version](vyperlang/vyper#4633) `prague`. Also, we now target the `prague` EVM version for all `halmos`-based tests, as the previously missing opcodes `MCOPY`, `TLOAD`, and `TSTORE` have been added via [a16z/halmos#293](a16z/halmos#293) and [a16z/halmos#463](a16z/halmos#463). Eventually, all submodules have been updated to their most recent commits. --------- Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
1 parent 2d26cc5 commit 7846044

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+780
-782
lines changed

.gas-snapshot

Lines changed: 164 additions & 164 deletions
Large diffs are not rendered by default.

.gas-snapshot-venom

Lines changed: 531 additions & 531 deletions
Large diffs are not rendered by default.

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ jobs:
109109
awesome_bot ./*.md src/snekmate/**/*.vy src/snekmate/**/mocks/*.vy src/snekmate/**/interfaces/*.vyi \
110110
test/**/*.sol test/**/interfaces/*.sol test/**/mocks/*.sol test/**/scripts/*.js scripts/*.sh lib/utils/*.sol lib/utils/*.py \
111111
--allow-dupe --allow-redirect --request-delay 0.4 \
112-
--white-list https://www.wagmi.xyz,https://github.com/pcaversaccio/snekmate.git@,https://github.com/vyperlang/vyper.git@,https://github.com/pcaversaccio/snekmate/releases/tag/v0.1.2,https://github.com/pcaversaccio/snekmate/blob/v0.1.2,https://github.com/pcaversaccio/snekmate/compare/v0.1.1...v0.1.2,https://hyperelliptic.org
112+
--white-list https://www.wagmi.xyz,https://github.com/pcaversaccio/snekmate.git@,https://github.com/vyperlang/vyper.git@,https://github.com/pcaversaccio/snekmate/releases/tag/v0.1.2,https://github.com/pcaversaccio/snekmate/blob/v0.1.2,https://github.com/pcaversaccio/snekmate/compare/v0.1.1...v0.1.2,https://hyperelliptic.org,https://github.com/vyperlang/vyper/releases/tag/v0.4.3

CHANGELOG.md

Lines changed: 8 additions & 0 deletions

README.md

Lines changed: 1 addition & 1 deletion

ape-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default_ecosystem: ethereum
44
plugins:
55
- name: vyper
66
vyper:
7-
evm_version: cancun
7+
evm_version: prague
88
compile:
99
exclude:
1010
- r"(?!.*_mock\.vy$)"

foundry.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cache_path = "cache" # Set the path
99
force = false # Do not ignore the cache.
1010
skip = ["src/snekmate/**/*[!c][!k].vy", "src/snekmate/**/*.vyi"] # Skip the compilation of non-mock and interface files.
1111
solc_version = "0.8.30" # Set the Solidity compiler version.
12-
evm_version = "cancun" # Set the EVM target version.
12+
evm_version = "prague" # Set the EVM target version.
1313
optimizer = true # Enable the Solidity compiler optimiser.
1414
optimizer_runs = 200 # Configure the number of optimiser runs.
1515
via_ir = false # Prevent the compilation pipeline from running through the Yul intermediate representation.
@@ -36,7 +36,6 @@ force = true # Perform alway
3636
# Default overrides for the Halmos tests.
3737
[profile.halmos]
3838
force = true # Perform always a clean build.
39-
evm_version = "shanghai" # Set the EVM target version to `shanghai`.
4039

4140
# Default overrides for the Venom-based tests.
4241
[profile.default-venom]
@@ -58,5 +57,4 @@ vyper = { experimental_codegen = true } # Enable experi
5857
# Default overrides for the Venom-based Halmos tests.
5958
[profile.halmos-venom]
6059
force = true # Perform always a clean build.
61-
evm_version = "shanghai" # Set the EVM target version to `shanghai`.
6260
vyper = { experimental_codegen = true } # Enable experimental code generation using the Venom backend.

lib/create-util

lib/utils/VyperDeployer.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ contract VyperDeployer is Create {
167167
* @param fileName The file name of the Vyper contract.
168168
* For example, the file name for "ECDSA.vy" is "ECDSA".
169169
* @param evmVersion The EVM version used for compilation.
170-
* For example, the EVM version for the Cancun-Deneb hard fork is "cancun".
170+
* For example, the EVM version for the Prague-Electra hard fork is "prague".
171171
* You can retrieve all available Vyper EVM versions by invoking `vyper -h`.
172172
* @param optimiserMode The optimisation mode used for compilation.
173173
* For example, the default optimisation mode since Vyper `0.3.10` is "gas".
@@ -234,7 +234,7 @@ contract VyperDeployer is Create {
234234
* For example, the file name for "ECDSA.vy" is "ECDSA".
235235
* @param args The ABI-encoded constructor arguments.
236236
* @param evmVersion The EVM version used for compilation.
237-
* For example, the EVM version for the Cancun-Deneb hard fork is "cancun".
237+
* For example, the EVM version for the Prague-Electra hard fork is "prague".
238238
* You can retrieve all available Vyper EVM versions by invoking `vyper -h`.
239239
* @param optimiserMode The optimisation mode used for compilation.
240240
* For example, the default optimisation mode since Vyper `0.3.10` is "gas".

0 commit comments

Comments
 (0)