-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
PiVortex
committed
Sep 6, 2024
1 parent
6386ec0
commit e150407
Showing
7 changed files
with
56 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,27 @@ | ||
[package] | ||
name = "contract-rs" | ||
description = "Hello Near Example" | ||
name = "auction-contract" | ||
description = "Auction Example Part 2" | ||
version = "0.1.0" | ||
edition = "2021" | ||
# TODO: Fill out the repository field to help NEAR ecosystem tools to discover your project. | ||
# NEP-0330 is automatically implemented for all contracts built with https://github.com/near/cargo-near. | ||
# Link to the repository will be available via `contract_source_metadata` view-function. | ||
repository = "https://github.com/near-examples/auction-examples" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[dependencies] | ||
near-sdk = { version = "5.1.0", features = ["legacy"] } | ||
chrono = "0.4.38" | ||
tracing = "0.1" | ||
tracing-subscriber = "0.3" | ||
near-sdk = { version = "5.4.0" } | ||
|
||
[dev-dependencies] | ||
near-sdk = { version = "5.1.0", features = ["unit-testing"] } | ||
near-workspaces = { version = "0.10.0", features = ["unstable"] } | ||
near-sdk = { version = "5.4.0", features = ["unit-testing"] } | ||
near-workspaces = { version = "0.11.0", features = ["unstable"] } | ||
tokio = { version = "1.12.0", features = ["full"] } | ||
serde_json = "1.0.117" | ||
serde_json = "1" | ||
chrono = "0.4.38" | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
# Tell `rustc` to optimize for small code size. | ||
opt-level = "z" | ||
lto = true | ||
debug = false | ||
panic = "abort" | ||
# Opt into extra safety checks on arithmetic operations https://stackoverflow.com/a/64136471/249801 | ||
overflow-checks = true | ||
overflow-checks = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,27 @@ | ||
[package] | ||
name = "contract-rs" | ||
description = "Hello Near Example" | ||
name = "auction-contract" | ||
description = "Auction Example Part 3" | ||
version = "0.1.0" | ||
edition = "2021" | ||
# TODO: Fill out the repository field to help NEAR ecosystem tools to discover your project. | ||
# NEP-0330 is automatically implemented for all contracts built with https://github.com/near/cargo-near. | ||
# Link to the repository will be available via `contract_source_metadata` view-function. | ||
repository = "https://github.com/near-examples/auction-examples" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[dependencies] | ||
near-sdk = { version = "5.1.0", features = ["legacy"] } | ||
chrono = "0.4.38" | ||
tracing = "0.1" | ||
tracing-subscriber = "0.3" | ||
near-sdk = { version = "5.4.0" } | ||
|
||
[dev-dependencies] | ||
near-sdk = { version = "5.1.0", features = ["unit-testing"] } | ||
near-workspaces = { version = "0.10.0", features = ["unstable"] } | ||
near-sdk = { version = "5.4.0", features = ["unit-testing"] } | ||
near-workspaces = { version = "0.11.0", features = ["unstable"] } | ||
tokio = { version = "1.12.0", features = ["full"] } | ||
serde_json = "1.0.117" | ||
serde_json = "1" | ||
chrono = "0.4.38" | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
# Tell `rustc` to optimize for small code size. | ||
opt-level = "z" | ||
lto = true | ||
debug = false | ||
panic = "abort" | ||
# Opt into extra safety checks on arithmetic operations https://stackoverflow.com/a/64136471/249801 | ||
overflow-checks = true | ||
overflow-checks = true |
11 changes: 9 additions & 2 deletions
11
contract-rs/03-owner-claims-winner-gets-nft/tests/test_basics.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,27 @@ | ||
[package] | ||
name = "contract-rs" | ||
description = "Hello Near Example" | ||
name = "auction-contract" | ||
description = "Auction Example Part 4" | ||
version = "0.1.0" | ||
edition = "2021" | ||
# TODO: Fill out the repository field to help NEAR ecosystem tools to discover your project. | ||
# NEP-0330 is automatically implemented for all contracts built with https://github.com/near/cargo-near. | ||
# Link to the repository will be available via `contract_source_metadata` view-function. | ||
repository = "https://github.com/near-examples/auction-examples" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[dependencies] | ||
near-sdk = { version = "5.1.0", features = ["legacy"] } | ||
chrono = "0.4.38" | ||
tracing = "0.1" | ||
tracing-subscriber = "0.3" | ||
near-sdk = { version = "5.4.0" } | ||
|
||
[dev-dependencies] | ||
near-sdk = { version = "5.1.0", features = ["unit-testing"] } | ||
near-workspaces = { version = "0.10.0", features = ["unstable"] } | ||
near-sdk = { version = "5.4.0", features = ["unit-testing"] } | ||
near-workspaces = { version = "0.11.0", features = ["unstable"] } | ||
tokio = { version = "1.12.0", features = ["full"] } | ||
serde_json = "1.0.117" | ||
serde_json = "1" | ||
chrono = "0.4.38" | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
# Tell `rustc` to optimize for small code size. | ||
opt-level = "z" | ||
lto = true | ||
debug = false | ||
panic = "abort" | ||
# Opt into extra safety checks on arithmetic operations https://stackoverflow.com/a/64136471/249801 | ||
overflow-checks = true | ||
overflow-checks = true |
13 changes: 10 additions & 3 deletions
13
contract-rs/04-ft-owner-claims-winner-gets-nft/tests/test_basics.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters