Skip to content

Commit

Permalink
feat: update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dellwatson committed Feb 20, 2022
1 parent 783c064 commit a4cd97f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
target
notes

/out
# testing
/coverage

Expand Down
7 changes: 4 additions & 3 deletions nft-contract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ impl Contract {
owner_id,
NFTContractMetadata {
spec: "nft-1.0.0".to_string(),
name: "NFT Tutorial Contract".to_string(),
symbol: "GOTEAM".to_string(),
name: "DDD Marketplace Contract".to_string(),
symbol: "DDD".to_string(),
icon: None,
base_uri: None,
reference: None,
Expand Down Expand Up @@ -111,4 +111,5 @@ impl Contract {
//return the Contract object
this
}
}
}

3 changes: 3 additions & 0 deletions nft-contract/src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ pub struct TokenMetadata {
pub media: Option<String>, // URL to associated media, preferably to decentralized, content-addressed storage
pub media_hash: Option<Base64VecU8>, // Base64-encoded sha256 hash of content referenced by the `media` field. Required if `media` is included.
pub copies: Option<u64>, // number of copies of this set of metadata in existence when token was minted.
pub ori_creator: String,
pub model3d_url: String,
pub ipfs_meta: Option<String>,
pub issued_at: Option<u64>, // When token was issued or minted, Unix epoch in milliseconds
pub expires_at: Option<u64>, // When token expires, Unix epoch in milliseconds
pub starts_at: Option<u64>, // When token starts being valid, Unix epoch in milliseconds
Expand Down
Binary file modified out/main.wasm
Binary file not shown.
Binary file modified out/market.wasm
Binary file not shown.
1 change: 1 addition & 0 deletions update_info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rustup target add wasm32-unknown-unknown

0 comments on commit a4cd97f

Please sign in to comment.