-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8893cb9
commit 0e39a50
Showing
2 changed files
with
16 additions
and
7 deletions.
There are no files selected for viewing
16 changes: 13 additions & 3 deletions
16
contracts/external/cw-abc/src/test_tube/integration_tests.rs
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 |
---|---|---|
@@ -1,12 +1,22 @@ | ||
use crate::msg::ExecuteMsg; | ||
|
||
use super::test_env::{TestEnv, TestEnvBuilder}; | ||
use osmosis_test_tube::{Account, Module, OsmosisTestApp, Wasm}; | ||
use token_bindings::Metadata; | ||
|
||
use cosmwasm_std::coins; | ||
use osmosis_test_tube::OsmosisTestApp; | ||
|
||
#[test] | ||
fn test_happy_path() { | ||
let app = OsmosisTestApp::new(); | ||
|
||
let env = TestEnvBuilder::new(); | ||
let TestEnv { abc, accounts, .. } = env.default_setup(&app); | ||
// TODO | ||
|
||
// Buy tokens | ||
abc.execute(&ExecuteMsg::Buy {}, &coins(1000000, "uosmo"), &accounts[0]) | ||
.unwrap(); | ||
|
||
// TODO query curve | ||
|
||
// TODO burn | ||
} |
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