mirror of
https://github.com/BiPhan4/DefiHackathon-2022.git
synced 2025-04-02 10:41:42 -04:00
* payup method work-in progress buisness is the owner of the contract--> requests the amount on the bill--> the customer interacts with the same contract to pay the bill * added payup funtion and other stuff related to that in other files * pay_up works * attempting bill splitting * trying to deploy * map and payer count works * added demo video * final product. Transfering funds not perfected Co-authored-by: alex324998301 <102430172+alex324998301@users.noreply.github.com> Co-authored-by: alex324998301 <abdullah.syed@ryerson.ca> Co-authored-by: BiPhan4 <bi.phan@ryerson.ca>
20 lines
679 B
Rust
20 lines
679 B
Rust
use std::env::current_dir;
|
|
use std::fs::create_dir_all;
|
|
|
|
use cosmwasm_schema::{export_schema, remove_schemas, schema_for};
|
|
|
|
use counter::msg::{totalPayersResponse, ExecuteMsg, InstantiateMsg, QueryMsg};
|
|
use counter::state::State;
|
|
|
|
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);
|
|
export_schema(&schema_for!(State), &out_dir);
|
|
export_schema(&schema_for!(totalPayersResponse), &out_dir);
|
|
}
|