-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from invariant-labs/extend-utils
Added missing utils functions
- Loading branch information
Showing
13 changed files
with
868 additions
and
539 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use crate::uints::U384T; | ||
use crate::{convert, decimal_ops}; | ||
use decimal::*; | ||
use js_sys::BigInt; | ||
use odra::{types::U128, OdraType}; | ||
use wasm_bindgen::prelude::*; | ||
|
||
#[decimal(24, U384T)] | ||
#[derive( | ||
Default, | ||
OdraType, | ||
Debug, | ||
Copy, | ||
PartialEq, | ||
Eq, | ||
PartialOrd, | ||
serde::Serialize, | ||
serde::Deserialize, | ||
tsify::Tsify, | ||
)] | ||
#[tsify(into_wasm_abi, from_wasm_abi)] | ||
pub struct Price { | ||
#[tsify(type = "bigint")] | ||
pub v: U128, | ||
} | ||
|
||
decimal_ops!(Price); |
Oops, something went wrong.