-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Connor Barr <[email protected]>
- Loading branch information
1 parent
836ad0d
commit 5344453
Showing
65 changed files
with
1,069 additions
and
503 deletions.
There are no files selected for viewing
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,16 @@ | ||
use andromeda_app::app::{ExecuteMsg, InstantiateMsg, QueryMsg}; | ||
use andromeda_std::{ado_base::MigrateMsg, contract_interface, deploy::ADOMetadata}; | ||
use cw_orch_daemon::{DaemonBase, Wallet}; | ||
|
||
pub const CONTRACT_ID: &str = "app-contract"; | ||
|
||
contract_interface!(AppContract, CONTRACT_ID, "andromeda_app_contract.wasm"); | ||
|
||
type Chain = DaemonBase<Wallet>; | ||
|
||
impl AppContract<Chain> { | ||
pub fn get_address(&self, name: impl Into<String>) -> String { | ||
let query_msg = QueryMsg::GetAddress { name: name.into() }; | ||
self.query(&query_msg).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
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 |
---|---|---|
@@ -1,6 +1,19 @@ | ||
use andromeda_fungible_tokens::cw20::{ExecuteMsg, InstantiateMsg, QueryMsg}; | ||
use andromeda_std::{ado_base::MigrateMsg, contract_interface, deploy::ADOMetadata}; | ||
use cw20::BalanceResponse; | ||
use cw_orch_daemon::{DaemonBase, Wallet}; | ||
|
||
pub const CONTRACT_ID: &str = "cw20"; | ||
|
||
contract_interface!(CW20Contract, CONTRACT_ID, "andromeda_cw20.wasm"); | ||
|
||
type Chain = DaemonBase<Wallet>; | ||
|
||
impl CW20Contract<Chain> { | ||
pub fn balance(&self, address: impl Into<String>) -> BalanceResponse { | ||
let query_msg = QueryMsg::Balance { | ||
address: address.into(), | ||
}; | ||
self.query(&query_msg).unwrap() | ||
} | ||
} |
Oops, something went wrong.