-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lb-factory changes + integration testing stuff
- Loading branch information
1 parent
83f15b3
commit efcda10
Showing
92 changed files
with
7,881 additions
and
2,145 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[alias] | ||
# Temporarily removed the backtraces feature from the unit-test run due to compilation errors in | ||
# the cosmwasm-std package: | ||
# cosmwasm-std = { git = "https://github.com/scrtlabs/cosmwasm", branch = "secret" } | ||
# unit-test = "test --lib --features backtraces" | ||
unit-test = "test --lib" | ||
integration-test = "test --test integration" | ||
schema = "run --example schema" |
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
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,49 @@ | ||
use cosmwasm_schema::{export_schema, remove_schemas, schema_for}; | ||
use std::{env::current_dir, fs::create_dir_all}; | ||
|
||
use shade_protocol::liquidity_book::lb_factory::{ | ||
AllBinStepsResponse, | ||
AllLBPairsResponse, | ||
ExecuteMsg, | ||
FeeRecipientResponse, | ||
InstantiateMsg, | ||
IsQuoteAssetResponse, | ||
LBPairAtIndexResponse, | ||
LBPairImplementationResponse, | ||
LBPairInformationResponse, | ||
LBTokenImplementationResponse, | ||
MinBinStepResponse, | ||
NumberOfLBPairsResponse, | ||
NumberOfQuoteAssetsResponse, | ||
OpenBinStepsResponse, | ||
PresetResponse, | ||
QueryMsg, | ||
QuoteAssetAtIndexResponse, | ||
}; | ||
|
||
fn main() { | ||
let mut out_dir = current_dir().unwrap(); | ||
out_dir.push("schema"); | ||
create_dir_all(&out_dir).unwrap(); | ||
remove_schemas(&out_dir).unwrap(); | ||
|
||
export_schema(&schema_for!(InstantiateMsg), &out_dir); | ||
export_schema(&schema_for!(ExecuteMsg), &out_dir); | ||
export_schema(&schema_for!(QueryMsg), &out_dir); | ||
|
||
// Add export_schema for each response struct | ||
export_schema(&schema_for!(MinBinStepResponse), &out_dir); | ||
export_schema(&schema_for!(FeeRecipientResponse), &out_dir); | ||
export_schema(&schema_for!(LBPairImplementationResponse), &out_dir); | ||
export_schema(&schema_for!(LBTokenImplementationResponse), &out_dir); | ||
export_schema(&schema_for!(NumberOfLBPairsResponse), &out_dir); | ||
export_schema(&schema_for!(LBPairAtIndexResponse), &out_dir); | ||
export_schema(&schema_for!(NumberOfQuoteAssetsResponse), &out_dir); | ||
export_schema(&schema_for!(QuoteAssetAtIndexResponse), &out_dir); | ||
export_schema(&schema_for!(IsQuoteAssetResponse), &out_dir); | ||
export_schema(&schema_for!(LBPairInformationResponse), &out_dir); | ||
export_schema(&schema_for!(PresetResponse), &out_dir); | ||
export_schema(&schema_for!(AllBinStepsResponse), &out_dir); | ||
export_schema(&schema_for!(OpenBinStepsResponse), &out_dir); | ||
export_schema(&schema_for!(AllLBPairsResponse), &out_dir); | ||
} |
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.