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

Feat(engine): Cross contract calls #560

Merged
merged 30 commits into from
Aug 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
66eba13
Add cross contract call support in the engine
Jul 25, 2022
0f0092e
Fix compilation
birchmd Jul 27, 2022
169fb9e
Add some implementation details to the cross contract call precompile
birchmd Jul 27, 2022
406da68
Functions for reading/writing cross-contract data from/to storage
birchmd Jul 28, 2022
7410ccf
Outline handling of xcc promises
birchmd Jul 28, 2022
8650271
Clean up xcc promise handling; add factory_update_address_version fun…
birchmd Jul 28, 2022
6fe234d
Include call to initialize when new router contract code is deployed
birchmd Jul 28, 2022
6079044
Write cross contract call router contract
birchmd Jul 29, 2022
64d7304
Add tests to router contract
birchmd Jul 29, 2022
3908520
Integration tests for cross contract calls
birchmd Aug 1, 2022
0c06a19
Ingration tests for both eager promise execution and scheduled promies
birchmd Aug 1, 2022
1dcef91
Feat(xcc-router): Use version 4.0.0 of near-sdk-rs (#562)
Aug 2, 2022
f24def8
Fix typo
birchmd Aug 3, 2022
13d2533
Verify target_account is of the form {address}.{aurora}
birchmd Aug 3, 2022
94a5241
Set current xcc-router version to 1
birchmd Aug 3, 2022
1234b91
Set xcc router storage amount to 4 NEAR
birchmd Aug 3, 2022
60cc71b
Check xcc precompile does not create promises with attached NEAR
birchmd Aug 3, 2022
6271db3
Standalone implementations for factory_update and factory_update_addr…
birchmd Aug 3, 2022
1869894
Remove XCC.md
birchmd Aug 3, 2022
4e76bda
Remove TODO, borsh encoding is fine
birchmd Aug 3, 2022
0a86302
Add PromiseArgs::total_gas function
birchmd Aug 3, 2022
21df808
Reduce xcc-router storage cost to 2 NEAR
birchmd Aug 3, 2022
c28a33c
Move error messages to mod consts
birchmd Aug 3, 2022
cc2b9b7
Feat(xcc): Estimate EVM gas cost for xcc precompile (#564)
birchmd Aug 5, 2022
f431f5f
Post-rebase fixes
birchmd Aug 5, 2022
a0bf051
Specify borsh 0.9.3
birchmd Aug 10, 2022
1d51597
Feat(xcc): User payment using wNEAR ERC-20 (#572)
birchmd Aug 16, 2022
8643c3d
Factor out within_x_percent to test_utils to reuse it in both precomp…
birchmd Aug 17, 2022
0a9121c
Do not enable the xcc precompile on mainnet yet
birchmd Aug 17, 2022
c2ec976
Post-rebase fixes
birchmd Aug 18, 2022
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
118 changes: 29 additions & 89 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ exclude = [
"etc/tests/ft-receiver",
"etc/tests/benchmark-contract",
"etc/tests/self-contained-5bEgfRQ",
"etc/xcc-router",
]
2 changes: 1 addition & 1 deletion engine-precompiles/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ autobenches = false
[dependencies]
aurora-engine-types = { path = "../engine-types", default-features = false }
aurora-engine-sdk = { path = "../engine-sdk", default-features = false }
borsh = { version = "0.8.2", default-features = false }
borsh = { version = "0.9.3", default-features = false }
bn = { version = "0.5.11", package = "zeropool-bn", default-features = false }
evm = { git = "https://github.com/aurora-is-near/sputnikvm.git", tag = "v0.36.0-aurora", default-features = false }
libsecp256k1 = { version = "0.7.0", default-features = false, features = ["static-context", "hmac"] }
Expand Down
Loading