-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from arkprotocol/onchain_metadata_v19
ICS721 v2: cw721 v19 with creator and onchain extensioms (aka metadata)
- Loading branch information
Showing
38 changed files
with
3,089 additions
and
1,259 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,23 +1,5 @@ | ||
use cosmwasm_schema::cw_serde; | ||
use cosmwasm_std::ContractInfoResponse; | ||
use sg721_base::msg::CollectionInfoResponse; | ||
|
||
pub const STARGAZE_ICON_PLACEHOLDER: &str = | ||
"ipfs://bafkreie5vwrm5zts4wiq6ebtopmztgl5qzyl4uszyllgwpaizyc5w2uycm"; | ||
|
||
/// Collection data provided by the (source) cw721 contract. This is pass as optional class data during interchain transfer to target chain. | ||
/// ICS721 on target chain is free to use this data or not. Lik in case of `sg721-base` it uses owner for defining creator in collection info. | ||
#[cw_serde] | ||
pub struct SgCollectionData { | ||
// CW721 specific props, copied from ics721::state::CollectionData | ||
pub owner: Option<String>, | ||
pub contract_info: Option<ContractInfoResponse>, | ||
pub name: String, | ||
pub symbol: String, | ||
pub num_tokens: Option<u64>, | ||
/// SG721 specific collection info | ||
pub collection_info: Option<CollectionInfoResponse>, | ||
} | ||
|
||
#[derive(Default)] | ||
pub struct SgIcs721Contract {} |
Oops, something went wrong.