-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improved coverage to dev deps separated withdrawal tests remove container after build, update bin removed unused PartialEq test profile moved to cargo config test products with fee conversion added lint step, some warnings fixes install clippy machete and typos install toolchain typos enabled more lints some more coverage folder for common module moved tests from contract mod.rs * binary
- Loading branch information
Showing
33 changed files
with
731 additions
and
640 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
[build] | ||
rustflags = ["-C", "link-args=-s"] | ||
[profile.contract] | ||
inherits = "release" | ||
strip = true | ||
codegen-units = 1 | ||
opt-level = "z" | ||
lto = true | ||
debug = false | ||
panic = "abort" | ||
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
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,18 +1,9 @@ | ||
[workspace] | ||
|
||
default-members = ["contract"] | ||
members = ["contract", "integration-tests"] | ||
|
||
resolver = "2" | ||
|
||
[profile.release] | ||
codegen-units = 1 | ||
opt-level = "z" | ||
lto = true | ||
debug = false | ||
panic = "abort" | ||
overflow-checks = true | ||
|
||
default-members = ["contract"] | ||
members = ["contract", "integration-tests"] | ||
|
||
[workspace.dependencies] | ||
near-sdk = "4.1.1" |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
pub(crate) mod tests; | ||
pub(crate) mod u32; | ||
pub(crate) mod udecimal; | ||
|
||
/// Milliseconds since the Unix epoch (January 1, 1970 (midnight UTC/GMT)) | ||
pub type Timestamp = u64; | ||
|
||
/// Duration in milliseconds | ||
pub type Duration = u64; | ||
|
||
/// Amount of fungible tokens | ||
pub type TokenAmount = u128; | ||
|
||
pub(crate) const MINUTES_IN_YEAR: u64 = 365 * 24 * 60; | ||
pub(crate) const MS_IN_MINUTE: u64 = 1000 * 60; |
Oops, something went wrong.