Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
ebb2edf
Remove the dependency on Lunarity. (#115)
birchmd Jun 1, 2021
418a473
Fix Clippy complaint with +nightly. (#117)
birchmd Jun 1, 2021
0f11b37
Add an `evm-bully=yes` build to CI. (#121)
Jun 4, 2021
544ad92
Fix evm-bully builds. (#130)
birchmd Jun 4, 2021
aaeec76
Handle transaction gas limit properly. (#123)
birchmd Jun 4, 2021
a7d2b19
Merge branch 'master' into develop
artob Jun 4, 2021
d8f042d
Add an `is_used_proof` interface. (#120)
sept-en Jun 5, 2021
b76c7a3
Simplify the `sdk::read_u64` return type. (#118)
birchmd Jun 5, 2021
9c81e52
Merge branch 'master' into develop
artob Jun 5, 2021
2bf9b25
Implement generational storage with `SELFDESTRUCT` tests (#84)
mfornet Jun 10, 2021
faff25c
Fix needless borrows. (#135)
birchmd Jun 11, 2021
c1b8466
Add JSON custom error types. (#131)
sept-en Jun 11, 2021
94cb338
Don't burn NEP-141 on deposit. (#133)
sept-en Jun 11, 2021
cb64a2d
Eth-connector: fixed u128 json parsing & tests (#125)
mrLSD Jun 12, 2021
99b4e17
Macro for logging (#142)
birchmd Jun 16, 2021
9c4b1d0
Add changelog sections.
artob Jun 17, 2021
cbb878f
Introduce precompiles for the ETH & ERC-20 connectors. (#51)
mfornet Jun 17, 2021
1007ce2
Improve and refactor the ETH connector. (#136)
sept-en Jun 17, 2021
7376cfb
Add missing trailing newline.
artob Jun 17, 2021
3b6bc37
Fix SPDX identifiers.
artob Jun 17, 2021
1dff687
Add missing trailing newlines.
artob Jun 17, 2021
680f519
Merge branch 'master' into develop
artob Jun 17, 2021
d923a02
Bump normalize-url from 4.5.0 to 4.5.1. (#144)
dependabot[bot] Jun 17, 2021
3caa772
Fix CI debug pipeline. (#145)
mfornet Jun 17, 2021
7715d90
Enable `meta_call` only with feature flag. (#146)
sept-en Jun 17, 2021
790c3f4
Implement EIP-2565 support. (#138)
joshuajbouw Jun 17, 2021
37961b2
Add `mainnet`, `testnet`, and `betanet` feature flags. (#147)
sept-en Jun 17, 2021
879c736
Fix `clippy::unnecessary_unwrap`. (#149)
birchmd Jun 17, 2021
1215c02
Prohibit static calls in exit precompiles. (#148)
sept-en Jun 17, 2021
ca8c5cc
Fix all Clippy warnings. (#150)
sept-en Jun 17, 2021
3054a27
Create the `ExitToNear` receiver account if it does not exist. (#151)
birchmd Jun 18, 2021
21a14bb
Update the changelog.
artob Jun 18, 2021
47933e5
Merge branch 'master' into develop
artob Jun 18, 2021
103ef46
Merge branch 'master' into develop
artob Jun 18, 2021
8786757
Remove engine feature flag (#154)
birchmd Jun 19, 2021
5a775f8
Refactor: Move tests to `src/tests` (#155)
birchmd Jun 19, 2021
76615d0
Improve the `EvmErc20.sol` contract. (#156)
0x3bfc Jun 21, 2021
9b759d9
Properly document endianess. (#157)
Jun 22, 2021
03e170f
Fix NEP-141 Compliance (#158)
mfornet Jun 23, 2021
6228db7
Update the changelog.
artob Jun 23, 2021
52f1d8d
Merge branch 'master' into develop
artob Jun 23, 2021
1e15f35
Bump the version to 1.4.2.
artob Jun 25, 2021
7d530b2
Update the changelog.
artob Jun 25, 2021
7656e32
Merge branch 'master' into develop
artob Jun 25, 2021
7dec43a
Tests: always compile with `mainnet` feature. (#162)
sept-en Jun 25, 2021
41b1a7d
Fix(engine): Fix scheduled nightly clippy (#160)
birchmd Jun 25, 2021
c08b3d3
Refactor: move eth-connector tests under `src/tests` (#164)
birchmd Jun 29, 2021
8ebcafc
EIP-2718: Typed Transaction Envelope support (#165)
birchmd Jun 29, 2021
74eedf4
Remove Prover - deprecated EIP-712 implementation (#168)
mrLSD Jul 6, 2021
0bae6ec
ERC-20: Allow admin to change token metadata. (#171)
sept-en Jul 8, 2021
28c0a64
Bump the version to 1.4.3.
artob Jul 8, 2021
d1d47b0
Merge branch 'master' into develop
artob Jul 8, 2021
3d8e3fd
JSON: bugs fixes, add unit tests. (#141)
sept-en Jul 14, 2021
5e5c8e0
feat: storage layout for EvmErc20.sol (#178)
0x3bfc Jul 14, 2021
ebf63a3
Migrate all workflows to self-hosted runners (#185)
strokovok Jul 16, 2021
93898da
Feat(engine): EIP-2930 support (#181)
birchmd Jul 20, 2021
866634a
Fix clippy::enum_variant_names warning (#192)
birchmd Jul 20, 2021
fc51f9a
Speed up workflow build caching (#189)
strokovok Jul 21, 2021
c57e2ce
Add different networks to makefile (#193)
joshuajbouw Jul 21, 2021
2ead537
Update network status in README.md (#194)
joshuajbouw Jul 21, 2021
82205cd
Remove toolchain-installation step in workflows (#195)
strokovok Jul 21, 2021
4ffc159
Feat(engine): Use new math API host functions (#190)
birchmd Jul 22, 2021
3c47521
Run all tests for all networks in CI (#196)
birchmd Jul 22, 2021
068e38e
Optimize for performance instead of code size (#197)
birchmd Jul 23, 2021
fe0be5f
Parallelize test suits (#198)
strokovok Jul 23, 2021
6ba39f3
Add build-caching to testing workflow (#201)
strokovok Jul 28, 2021
a268a9f
Refactor(tests): Use Signer (#203)
birchmd Jul 30, 2021
622b483
Add options to bench profile (#204)
birchmd Jul 30, 2021
74c5082
Remove duplicate test (#205)
birchmd Jul 30, 2021
84c703a
Add sanity test for access list handling. (#206)
birchmd Jul 30, 2021
28a5525
Update nearcore to latest branch, not commit
joshuajbouw Jul 30, 2021
5674e72
Add feature gates to SDK new host functions
joshuajbouw Jul 30, 2021
454b75c
Bump the version to 1.5.0.
artob Jul 30, 2021
46c3f5b
Update Cargo.lock
joshuajbouw Jul 30, 2021
f8a4ee6
ERC-20: forbid using invalid NEP141 AccountID for mapping (#179)
sept-en Jul 30, 2021
93ac8f6
Merge branch 'master' into develop
artob Jul 30, 2021
dbbeca6
Timestamp should be in milliseconds for Ethereum compatibility (#208)
birchmd Aug 2, 2021
cd05557
feat(engine): Blockhash definition (#213)
birchmd Aug 4, 2021
7ae5657
Update etc/state-migration-test/Cargo.lock (#211)
birchmd Aug 4, 2021
c875671
Include cost of access list in intrinsic gas (#219)
birchmd Aug 5, 2021
ba02f54
Bump tar from 4.4.13 to 4.4.15 in /etc/eth-contracts (#217)
dependabot[bot] Aug 5, 2021
bfcde0c
Feat(engine): Relayer payment (#215)
birchmd Aug 6, 2021
52925fa
Scheduled lint is supposed to run nightly clippy (#214)
birchmd Aug 6, 2021
9065842
Return actual status of a transaction (#218)
joshuajbouw Aug 6, 2021
86e1822
Added parser for Integer types (#183)
mrLSD Aug 6, 2021
8d479cd
Update to latest nightly (#221)
joshuajbouw Aug 10, 2021
27f889e
Fix(engine): do not panic when user has insufficient balance to cover…
birchmd Aug 10, 2021
95f7515
Update lock files (#224)
birchmd Aug 10, 2021
2e2a5fa
Method to fix balance of aurora account on testnet (#225)
birchmd Aug 11, 2021
853568f
Use math api host functions on mainnet (#228)
birchmd Aug 11, 2021
de5deab
NEP-141 compliance correctness (#202)
mrLSD Aug 11, 2021
ad38a45
Adapt workflows to dockerized runners (#231)
strokovok Aug 13, 2021
d51f742
Move block height to the end of hashed data. (#233)
birchmd Aug 13, 2021
b50d04b
Ensure solidity artifacts are always recompiled (#234)
birchmd Aug 13, 2021
eb39491
Bump the version to 1.6.0.
artob Aug 13, 2021
fbe1324
1.6.0 fixes (#236)
joshuajbouw Aug 13, 2021
e5d79c8
Prevent test binary from deploying (#237)
joshuajbouw Aug 13, 2021
9d09598
Add removal of eth-contracts to `make clean`
joshuajbouw Aug 13, 2021
c815108
Remove deploy_code feature gate
joshuajbouw Aug 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
steps:
- name: Clone the repository
uses: actions/checkout@v2
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: make release
- run: ls -lH mainnet-release.wasm
- name: Upload the mainnet-release.wasm artifact
Expand All @@ -34,7 +33,6 @@ jobs:
steps:
- name: Clone the repository
uses: actions/checkout@v2
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: make debug
- run: ls -lH mainnet-debug.wasm
- name: Upload the mainnet-debug.wasm artifact
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# See: https://github.com/actions-rs/example/blob/master/.github/workflows/nightly_lints.yml
---
on: [push, pull_request]
on:
push:
branches:
- master
- develop
pull_request:
branches:
- "*"

name: Lints
jobs:
fmt:
Expand All @@ -9,7 +17,6 @@ jobs:
steps:
- name: Clone the repository
uses: actions/checkout@v2
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run cargo fmt
run: cargo fmt --all -- --check
clippy:
Expand All @@ -18,7 +25,6 @@ jobs:
steps:
- name: Clone the repository
uses: actions/checkout@v2
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: make etc/eth-contracts/res/EvmErc20.bin
- name: Run Contract cargo clippy
run: cargo clippy --no-default-features --features=contract -- -D warnings
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/scheduled_lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
steps:
- name: Clone the repository
uses: actions/checkout@v2
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- run: make etc/eth-contracts/res/EvmErc20.bin
- name: Update toolchain
run: rustup update nightly
- name: Run cargo clippy
run: cargo clippy --no-default-features --features=mainnet -- -D warnings
run: cargo +nightly clippy --no-default-features --features=mainnet -- -D warnings
42 changes: 28 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
---
on: [push, pull_request]
on:
push:
branches:
- master
- develop
pull_request:
branches:
- "*"

name: Tests
jobs:
test:
Expand All @@ -11,27 +19,33 @@ jobs:
steps:
- name: Clone the repository
uses: actions/checkout@v2
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Cache lookup for target dir
run: cache-util -restore -path target -key aurora-engine-target@${{ matrix.net }}net@${{ hashFiles('**/Cargo.lock') }}
- run: make ${{ matrix.net }}net-test-build
- name: Run ${{ matrix.net }}net cargo test
run: cargo test --locked --verbose --features ${{ matrix.net }}net-test
- name: Caching target dir
run: cache-util -save -move -path target -key aurora-engine-target@${{ matrix.net }}net@${{ hashFiles('**/Cargo.lock') }}
- name: Restore cache
run: |
cache-util restore cargo_git cargo_registry sccache yarn_cache
cache-util restore aurora-engine-target@${{ matrix.net }}net@${{ hashFiles('**/Cargo.lock') }}:target
- run: make test-${{ matrix.net }}net
# - run: rm -rf target/solidity_build/
- name: Save cache
run: |
cache-util save cargo_git cargo_registry sccache yarn_cache
cache-util msave aurora-engine-target@${{ matrix.net }}net@${{ hashFiles('**/Cargo.lock') }}:target
bully-build:
name: Bully build
runs-on: self-hosted
steps:
- name: Clone the repository
uses: actions/checkout@v2
- run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Cache lookup for target dir
run: cache-util -restore -path target -key aurora-engine-target@bully@${{ hashFiles('**/Cargo.lock') }}
- name: Restore cache
run: |
cache-util restore cargo_git cargo_registry sccache yarn_cache
cache-util restore aurora-engine-target@bully@${{ hashFiles('**/Cargo.lock') }}:target
- run: make mainnet-debug evm-bully=yes
- run: ls -lH mainnet-debug.wasm
- name: Cache target dir
run: cache-util -save -move -path target -key aurora-engine-target@bully@${{ hashFiles('**/Cargo.lock') }}
# - run: rm -rf target/solidity_build/
- name: Save cache
run: |
cache-util save cargo_git cargo_registry sccache yarn_cache
cache-util msave aurora-engine-target@bully@${{ hashFiles('**/Cargo.lock') }}:target
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
artifacts/
cache/
node_modules/
res/
etc/eth-contracts/res/

# Other
etc/state-migration-test/target/
Expand Down
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.6.0] - 2021-08-13

## [1.5.0] - 2021-07-30

## [1.4.3] - 2021-07-08
Expand All @@ -23,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.0.0] - 2021-05-12

[1.6.0]: https://github.com/aurora-is-near/aurora-engine/compare/1.5.0...1.6.0
[1.5.0]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.3...1.5.0
[1.4.3]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.2...1.4.3
[1.4.2]: https://github.com/aurora-is-near/aurora-engine/compare/1.4.1...1.4.2
Expand Down
29 changes: 14 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aurora-engine"
version = "1.5.0"
version = "1.6.0"
authors = ["NEAR <hello@near.org>"]
edition = "2018"
description = ""
Expand Down Expand Up @@ -45,6 +45,7 @@ lto = true
opt-level = 3

[dependencies]
base64 = { version = "0.13.0", default-features = false, features = ["alloc"] }
blake2 = { git = "https://github.com/near/near-blake2.git", version = "0.9.1", default-features = false }
borsh = { version = "0.8.2", default-features = false }
bn = { package = "aurora-bn", git = "https://github.com/aurora-is-near/aurora-bn.git", default-features = false }
Expand All @@ -62,7 +63,7 @@ logos = { version = "0.12", default-features = false, features = ["export_derive
ethabi = { git = "https://github.com/darwinia-network/ethabi", branch = "xavier-no-std", default-features = false }
hex = { version = "0.4", default-features = false, features = ["alloc"] }
byte-slice-cast = { version = "1.0", default-features = false }
rjson = { version = "0.3.1", default-features = false }
rjson = { git = "https://github.com/aurora-is-near/rjson", rev = "cc3da949", default-features = false, features = ["integer"] }

[dev-dependencies]
bstr = "0.2"
Expand All @@ -80,7 +81,6 @@ rand = "0.7.3"
criterion = "0.3.4"
git2 = "0.13"
lazy-static-include = "3.1.1"
base64 = "0.13.0"

[features]
default = ["sha2", "std"]
Expand Down
16 changes: 13 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,22 @@ target/wasm32-unknown-unknown/debug/aurora_engine.wasm: Cargo.toml Cargo.lock $(
test: test-mainnet

mainnet-test-build: FEATURES=mainnet,integration-test,meta-call
mainnet-test-build: mainnet-release.wasm
mainnet-test-build: mainnet-test.wasm

betanet-test-build: FEATURES=betanet,integration-test,meta-call
betanet-test-build: betanet-release.wasm
betanet-test-build: betanet-test.wasm

testnet-test-build: FEATURES=testnet,integration-test,meta-call
testnet-test-build: testnet-release.wasm
testnet-test-build: testnet-test.wasm

mainnet-test.wasm: target/wasm32-unknown-unknown/release/aurora_engine.wasm
cp $< $@

testnet-test.wasm: target/wasm32-unknown-unknown/release/aurora_engine.wasm
cp $< $@

betanet-test.wasm: target/wasm32-unknown-unknown/release/aurora_engine.wasm
cp $< $@

test-mainnet: mainnet-test-build
$(CARGO) test --features mainnet-test
Expand Down Expand Up @@ -104,6 +113,7 @@ format:

clean:
@rm -Rf *.wasm
@rm -Rf etc/eth-contracts/res
cargo clean

.PHONY: release mainnet testnet betanet compile-release test-build deploy check check-format check-clippy test test-sol format clean debug mainnet-debug testnet-debug betanet-debug compile-debug mainnet-test-build testnet-test-build betanet-test-build target/wasm32-unknown-unknown/release/aurora_engine.wasm target/wasm32-unknown-unknown/debug/aurora_engine.wasm
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.6.0
6 changes: 3 additions & 3 deletions etc/eth-contracts/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9657,9 +9657,9 @@ tar-stream@^1.5.2:
xtend "^4.0.0"

tar@^4.0.2:
version "4.4.13"
resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525"
integrity sha512-w2VwSrBoHa5BsSyH+KxEqeQBAllHhccyMFVHtGtdMpF4W7IRWfZjFiQceJPChOeTsSDVUpER2T8FA93pr0L+QA==
version "4.4.15"
resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.15.tgz#3caced4f39ebd46ddda4d6203d48493a919697f8"
integrity sha512-ItbufpujXkry7bHH9NpQyTXPbJ72iTlXgkBAYsAjDXk3Ds8t/3NfO5P4xZGy7u+sYuQUbimgzswX4uQIEeNVOA==
dependencies:
chownr "^1.1.1"
fs-minipass "^1.2.5"
Expand Down
14 changes: 10 additions & 4 deletions etc/state-migration-test/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "nightly-2021-03-25"
channel = "nightly-2021-08-01"
components = []
targets = ["wasm32-unknown-unknown"]
Loading