Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor with NEAR standard NEP141 #2

Merged
merged 48 commits into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
9e8ad7b
Added near-standaed NEP141 - and basic refactoring
mrLSD Nov 28, 2022
d27e775
Refactored Finish Deposit
mrLSD Nov 28, 2022
4ae6c43
Refactor record proof
mrLSD Nov 28, 2022
cf81e62
Refactor metadata and types dependency
mrLSD Nov 28, 2022
4d1afc3
Remove fungible_token implemenation
mrLSD Nov 25, 2022
24f203e
Fix migrations tests
mrLSD Nov 27, 2022
b0f5d58
Fix tests utils types
mrLSD Nov 29, 2022
27af7ee
Fix tests - register_accounts
mrLSD Nov 30, 2022
99a18ad
Fix totsl_supply tests
mrLSD Jun 3, 2022
412baa6
Removed ft-core macros
mrLSD Jun 4, 2022
6b07fcd
Added custom transfer call
mrLSD Jun 5, 2022
08b6b7f
Fix test_deposit_pausability
mrLSD Jun 6, 2022
327d96e
Migration tests - increase gas cost
mrLSD Jun 7, 2022
92d7fdf
Refactored accounts counter
mrLSD Jun 1, 2022
fca64ed
Fix account counter
mrLSD Jun 9, 2022
c2c710a
Fix test_storage_withdraw
mrLSD Jun 10, 2022
c13c9af
Fix test_storage_withdraw
mrLSD Jun 10, 2022
f38d7ea
Fix test_storage_deposit
mrLSD Jun 11, 2022
e728783
Merge branch 'feat/use-near-standard-nep141-implementation' of github…
mrLSD Jun 11, 2022
4e66f76
Fix test_ft_transfer_max_value
mrLSD Jun 12, 2022
8898ca1
Fix all tests
mrLSD Jun 13, 2022
11a161c
Resolve ft_transfer_call
mrLSD Dec 1, 2022
84854b8
Added migtarion tests gas cost assertions
mrLSD Dec 5, 2022
bcee2df
Extended missing data errors
mrLSD Dec 8, 2022
dc0ca03
Test: increase gas cost
mrLSD Dec 9, 2022
4a3dd5e
CI: removed sscache
mrLSD Dec 9, 2022
096fb55
Test failed CI
mrLSD Dec 10, 2022
c4c1492
Test failed CI - verbose
mrLSD Dec 10, 2022
5e93665
Test CI - check errors
mrLSD Dec 12, 2022
c660861
Update workspace.rs to 0.7.0
mrLSD Dec 12, 2022
8fd5b29
workspace.rs bin check
mrLSD Dec 12, 2022
1b68df4
CI tests
mrLSD Dec 12, 2022
a4253bf
chore: add env variable RUST_BACKTRACE to CI script
aleksuss Jan 2, 2023
2d8d5dc
Merge pull request #5 from aurora-is-near/chore/aleksuss/modify_ci_sc…
mrLSD Jan 2, 2023
1a61a66
Added waiting user creation for registrar
mrLSD Jan 1, 2023
d0dacf6
Account Registrar creation - increased waiting time
mrLSD Jan 2, 2023
fb9071b
Merge pull request #6 from aurora-is-near/fix/pub-key-for-tests
mrLSD Jan 2, 2023
13bf89e
Extended Registrar creation error message and extend CI lints
mrLSD Jan 3, 2023
8829738
Use one thread for tests
aleksuss Jan 3, 2023
58caffe
clean artifacts
aleksuss Jan 3, 2023
3313847
use modified workspaces
aleksuss Jan 3, 2023
3d8020f
use testnet_archival
aleksuss Jan 3, 2023
a24ad24
roll back workspaces
aleksuss Jan 3, 2023
21a479d
decrease number of test threads to four
aleksuss Jan 3, 2023
52cf2a0
roll back some changes
aleksuss Jan 3, 2023
4633612
Changed test-threads=4
mrLSD Jan 4, 2023
9573342
Changed features config
mrLSD Jan 4, 2023
1092914
Merge pull request #7 from aurora-is-near/chore/aleksuss/one_thread_t…
mrLSD Jan 4, 2023
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
4 changes: 2 additions & 2 deletions .env/custom_example.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
#
# Simply remove the prefixed `#` to enable them.

# The cargo features should either be `mainnet`, `testnet` or something extra in order to make use
# The cargo features should either be `mainnet`, `default` or something extra in order to make use
# of your own custom features.
#CARGO_FEATURES_BUILD = "mainnet"

# The cargo test features are used to build a test environment version of the fungible-token WASM and test
# library. Either use `mainnet-test`, `testnet-test` or something extra in order to make use of your
# library. Either use something extra in order to make use of your
# own custom features.
#CARGO_FEATURES_BUILD_TEST = "mainnet,integration-test"

Expand Down
2 changes: 1 addition & 1 deletion .env/local.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CARGO_FEATURES_BUILD = "testnet"
CARGO_FEATURES_BUILD = "mainnet"
RUSTC_FLAGS_BUILD = "-C link-arg=-s"
NEAR_EVM_ACCOUNT = "aurora.test.near"
WASM_FILE = "aurora-eth-connector-local.wasm"
Expand Down
2 changes: 1 addition & 1 deletion .env/mainnet.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CARGO_FEATURES_BUILD = "mainnet"
CARGO_FEATURES_BUILD_MIGRATION = "mainnet,migration"
CARGO_FEATURES_BUILD_TEST = "mainnet,integration-test,migration"
CARGO_FEATURES_TEST = "mainnet-test"
CARGO_FEATURES_TEST = ""
RUSTC_FLAGS_BUILD = "-C link-arg=-s"
NEAR_EVM_ACCOUNT = "aurora"
WASM_FILE = "aurora-eth-connector-mainnet.wasm"
Expand Down
8 changes: 4 additions & 4 deletions .env/testnet.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CARGO_FEATURES_BUILD = "testnet"
CARGO_FEATURES_BUILD_MIGRATION = "testnet,migration"
CARGO_FEATURES_BUILD_TEST = "testnet,integration-test,migration"
CARGO_FEATURES_TEST = "testnet-test"
CARGO_FEATURES_BUILD = "mainnet"
CARGO_FEATURES_BUILD_MIGRATION = "mainnet,migration"
CARGO_FEATURES_BUILD_TEST = "mainnet,integration-test,migration"
CARGO_FEATURES_TEST = ""
RUSTC_FLAGS_BUILD = "-C link-arg=-s"
NEAR_EVM_ACCOUNT = "aurora"
WASM_FILE = "aurora-eth-connector-testnet.wasm"
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@ jobs:
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Run Contract cargo clippy
run: cargo make clippy
- name: Run cargo clippy
run: cargo clippy

- name: Run Contract cargo lint checker
run: cargo make check
16 changes: 2 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,16 @@ on:
name: Tests
jobs:
test:
name: Test suite (mainnet, testnet)
name: Test suite (mainnet)
runs-on: [self-hosted, heavy]
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Restore cache
run: |
cache-util restore cargo_git cargo_registry sccache yarn_cache
cache-util restore aurora-contract-target@generic@${{ hashFiles('**/Cargo.lock') }}:target
- name: Build mainnet test WASM
run: cargo make --profile mainnet build-test
- name: Test mainnet
run: cargo make --profile mainnet test-workspace
- name: Build testnet test WASM
run: cargo make --profile testnet build-test
- name: Test testnet
run: cargo make --profile testnet test-workspace
- name: Save cache
run: |
cache-util save cargo_git cargo_registry sccache yarn_cache
cache-util msave aurora-contract-target@generic@${{ hashFiles('**/Cargo.lock') }}:target

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTC_WRAPPER: sccache
24 changes: 19 additions & 5 deletions 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 Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ category = "Test"
command = "${CARGO}"
args = [
"test",
# "test_migration",
"--features",
"${CARGO_FEATURES_TEST}",
"--",
"--test-threads=4",
"--nocapture"
]

Expand Down
8 changes: 3 additions & 5 deletions eth-connector-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aurora-eth-connector-tests"
version = "0.1.0"
version = "0.2.0"
authors = ["Aurora Labs <[email protected]>", "Evgeny Ukhanov <[email protected]>"]
edition = "2021"
description = ""
Expand All @@ -19,15 +19,13 @@ anyhow = "1.0"
near-sdk = "4.0"
near-primitives = "0.5"
near-units = "0.2"
near-contract-standards = "4.1"
tokio = { version = "1.14", features = ["full"] }
workspaces = "0.6"
workspaces = "0.7.0"
byte-slice-cast = "1.2"
hex = "0.4.3"
ethabi = "17.1"
rlp = { version = "0.5.0", default-features = false }
aurora-engine-migration-tool = { git = "https://github.com/aurora-is-near/aurora-engine-migration-tool.git" }

[features]
mainnet-test = []
testnet-test = []

Loading