Skip to content

Commit

Permalink
refactor: replace non-fungible token example sim tests with workspaces (
Browse files Browse the repository at this point in the history
  • Loading branch information
itegulov authored Feb 1, 2022
1 parent 0e89031 commit c45a2d4
Show file tree
Hide file tree
Showing 17 changed files with 1,966 additions and 2,572 deletions.
2,927 changes: 1,064 additions & 1,863 deletions examples/non-fungible-token/Cargo.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions examples/non-fungible-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ authors = ["Near Inc <[email protected]>"]
edition = "2018"

[dev-dependencies]
near-sdk = { path = "../../near-sdk" }
near-sdk-sim = { path = "../../near-sdk-sim" }
anyhow = "1.0"
near-primitives = "0.5.0"
near-contract-standards = { path = "../../near-contract-standards" }

# remember to include a line for each contract
non-fungible-token = { path = "./nft" }
approval-receiver = { path = "./test-approval-receiver" }
token-receiver = { path = "./test-token-receiver" }
near-sdk = { path = "../../near-sdk" }
near-units = "0.2.0"
serde_json = "1.0"
tokio = { version = "1.14", features = ["full"] }
workspaces = "0.1.1"

[profile.release]
codegen-units = 1
Expand Down
2 changes: 1 addition & 1 deletion examples/non-fungible-token/nft/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Near Inc <[email protected]>"]
edition = "2018"

[lib]
crate-type = ["cdylib", "rlib"]
crate-type = ["cdylib"]

[dependencies]
near-sdk = { path = "../../../near-sdk" }
Expand Down
Binary file modified examples/non-fungible-token/res/approval_receiver.wasm
Binary file not shown.
Binary file modified examples/non-fungible-token/res/non_fungible_token.wasm
Binary file not shown.
Binary file modified examples/non-fungible-token/res/token_receiver.wasm
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ authors = ["Near Inc <[email protected]>"]
edition = "2018"

[lib]
crate-type = ["cdylib", "rlib"]
crate-type = ["cdylib"]

[dependencies]
near-sdk = { path = "../../../near-sdk" }
near-contract-standards = { path = "../../../near-contract-standards" }

2 changes: 1 addition & 1 deletion examples/non-fungible-token/test-token-receiver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Near Inc <[email protected]>"]
edition = "2018"

[lib]
crate-type = ["cdylib", "rlib"]
crate-type = ["cdylib"]

[dependencies]
near-sdk = { path = "../../../near-sdk" }
Expand Down
207 changes: 0 additions & 207 deletions examples/non-fungible-token/tests/sim/test_approval.rs

This file was deleted.

Loading

0 comments on commit c45a2d4

Please sign in to comment.