Skip to content

Commit 0fca82c

Browse files
intrprtryomarionMantisClone
authored
Fungible token payments and fiat price conversion (dw-66) (#7)
Co-authored-by: Yo <[email protected]> Co-authored-by: MantisClone <[email protected]>
1 parent 5caa3ac commit 0fca82c

File tree

12 files changed

+1429
-111
lines changed

12 files changed

+1429
-111
lines changed

.github/workflows/build-and-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@ jobs:
2121
- name: Build and run conversion proxy unit tests
2222
working-directory: ./conversion_proxy
2323
run: cargo test
24+
- name: Build and run fungible conversion proxy unit tests
25+
working-directory: ./fungible_conversion_proxy
26+
run: cargo test
27+
- name: Build and run mocks unit tests
28+
working-directory: ./mocks
29+
run: cargo test
2430
- name: Run integration tests
2531
run: ./test.sh

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ hex = "0.4"
1414
[dev-dependencies]
1515
near-sdk-sim = "3.2.0"
1616
conversion_proxy = { path = "./conversion_proxy" }
17+
fungible_conversion_proxy = { path = "./fungible_conversion_proxy" }
1718
mocks = { path = "./mocks" }
1819

1920
[profile.release]
@@ -26,4 +27,4 @@ panic = "abort"
2627
overflow-checks = true
2728

2829
[workspace]
29-
members = ["conversion_proxy", "mocks"]
30+
members = ["conversion_proxy", "fungible_conversion_proxy", "mocks"]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ Smart contracts on NEAR used by the
2424
```
2525
cd near-contracts/conversion_proxy
2626
cargo test
27+
cd near-contracts/fungible_conversion_proxy
28+
cargo test
29+
cd near-contracts/mocks
30+
cargo test
2731
```
2832

2933
## Integration tests

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ set -e
44
RUSTFLAGS='-C link-arg=-s' cargo build --all --target wasm32-unknown-unknown --release
55
mkdir -p ./out
66
cp target/wasm32-unknown-unknown/release/conversion_proxy.wasm ./out/
7+
cp target/wasm32-unknown-unknown/release/fungible_conversion_proxy.wasm ./out/

fungible_conversion_proxy/Cargo.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
name = "fungible_conversion_proxy"
3+
version = "0.0.1"
4+
authors = ["Request Network Foundation"]
5+
edition = "2018"
6+
7+
[lib]
8+
crate-type = ["cdylib", "rlib"]
9+
10+
[dependencies]
11+
near-sdk = "3.1.0"
12+
serde = "1.0.118"
13+
hex = "0.4"
14+
15+
[dev-dependencies]
16+
near-sdk-sim = "3.2.0"

0 commit comments

Comments
 (0)