forked from paritytech/substrate
-
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.
Add reserved balance in Spot order rpc (paritytech#219)
* Add reserved_balance in xspot_getOrdersByAccount RPC * Remove an duplicated event and make the order event more descriptive * Split out weight_info.rs in Spot * Update MiningAssetInfo type * Split out WeightInfo into weight_info.rs So that we could use a script to generate the weights later. * Rename PutOrder to NewOrder, etc Also the other event renamings
- Loading branch information
1 parent
6a1e7dd
commit 000fdd2
Showing
12 changed files
with
216 additions
and
183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
use frame_support::weights::Weight; | ||
|
||
pub trait WeightInfo { | ||
fn register() -> Weight; | ||
fn deregister() -> Weight; | ||
fn recover() -> Weight; | ||
fn update_asset_info() -> Weight; | ||
} | ||
|
||
impl WeightInfo for () { | ||
fn register() -> Weight { | ||
1_000_000_000 | ||
} | ||
fn deregister() -> Weight { | ||
1_000_000_000 | ||
} | ||
fn recover() -> Weight { | ||
1_000_000_000 | ||
} | ||
fn update_asset_info() -> Weight { | ||
1_000_000_000 | ||
} | ||
} |
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
Oops, something went wrong.