-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support of calculating gas for reply
- Loading branch information
Showing
8 changed files
with
299 additions
and
53 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,16 @@ | ||
use sails_client_gen::ClientGenerator; | ||
use std::{env, path::PathBuf}; | ||
|
||
fn main() { | ||
let mut path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); | ||
path.pop(); | ||
path.pop(); | ||
|
||
let idl_file_path = path.join("vft-gateway/src/wasm/vft-gateway.idl"); | ||
|
||
// Generate client code from IDL file | ||
ClientGenerator::from_idl_path(&idl_file_path) | ||
.with_mocks("mocks") | ||
.generate_to(PathBuf::from(env::var("OUT_DIR").unwrap()).join("vft-gateway.rs")) | ||
.unwrap(); | ||
} |
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.