generated from AbstractSDK/templates
-
Notifications
You must be signed in to change notification settings - Fork 1
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
ee5dc2f
commit 91ad0d5
Showing
37 changed files
with
131 additions
and
777 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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
use crate::{ | ||
error::InterchainGovError, | ||
handlers, | ||
msg::{InterchainGovExecuteMsg, InterchainGovInstantiateMsg, InterchainGovQueryMsg}, | ||
ADAPTER_VERSION, MY_ADAPTER_ID, | ||
}; | ||
|
||
use abstract_adapter::AdapterContract; | ||
use cosmwasm_std::Response; | ||
|
||
/// The type of the adapter that is used to build your Adapter and access the Abstract SDK features. | ||
pub type InterchainGov = AdapterContract< | ||
InterchainGovError, | ||
InterchainGovInstantiateMsg, | ||
InterchainGovExecuteMsg, | ||
InterchainGovQueryMsg, | ||
>; | ||
/// The type of the result returned by your Adapter's entry points. | ||
pub type AdapterResult<T = Response> = Result<T, InterchainGovError>; | ||
|
||
const MY_ADAPTER: InterchainGov = InterchainGov::new(MY_ADAPTER_ID, ADAPTER_VERSION, None) | ||
.with_instantiate(handlers::instantiate_handler) | ||
.with_execute(handlers::execute_handler) | ||
.with_query(handlers::query_handler); | ||
|
||
// Export handlers | ||
#[cfg(feature = "export")] | ||
abstract_adapter::export_endpoints!(MY_ADAPTER, InterchainGov); | ||
|
||
abstract_adapter::cw_orch_interface!( | ||
MY_ADAPTER, | ||
InterchainGov, | ||
InterchainGovInstantiateMsg, | ||
InterchainGovInterface | ||
); |
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
File renamed without changes.
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.