Skip to content

feat: Switchboard oracle for USD requests payment in NEAR #18

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

Merged
merged 20 commits into from
Sep 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 15 additions & 5 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ near-sdk = "3.1.0"
serde = "1.0.118"
# near-sdk = "4.0.0-pre.4"
hex = "0.4"
bs58 = "0.5.0"

[dev-dependencies]
near-sdk-sim = "3.2.0"
Expand All @@ -28,4 +29,4 @@ panic = "abort"
overflow-checks = true

[workspace]
members = ["conversion_proxy", "fungible_conversion_proxy", "fungible_proxy", "mocks"]
members = ["conversion_proxy", "fungible_conversion_proxy", "fungible_proxy", "mocks"]
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,26 @@ Smart contracts on NEAR used by the
Run all contracts unit tests like this:

```
cd near-contracts/conversion_proxy
cargo test
cd near-contracts/fungible_conversion_proxy
cargo test
cd near-contracts/fungible_proxy
cargo test
cd near-contracts/mocks
cargo test
cargo test -p conversion_proxy
cargo test -p fungible_conversion_proxy
cargo test -p fungible_proxy
```

## Integration tests
## Integration tests (on a simulated VM with mocked 3rd party contracts)

Integration tests are located in [tests/sim](tests/sim).

```
# To test everything
# To test everything (unit tests, sanity checks, simulated tests)
# Requires building contracts (release) and mocks (debug) for simulated tests.
./test.sh

# To test contracts one by one:
# To run integration tests on contracts one by one:
cargo test conversion_proxy
cargo test fungible_conversionproxy
cargo test fungible_proxy

# To run integration tests one by one (examples with main transfers):
# To run any tests one by one (examples with main transfers on simulated VM):
cargo test conversion_proxy::test_transfer -- --exact
cargo test fungible_conversionproxy::test_transfer -- --exact
cargo test fungible_proxy::test_transfer -- --exact
Expand Down
Loading