Skip to content

Commit

Permalink
created build script and updated cotnract metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardsVO committed Apr 6, 2022
1 parent d327736 commit 33c5891
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
6 changes: 0 additions & 6 deletions blockchain/rust-contract/contract/build.sh

This file was deleted.

Binary file modified blockchain/rust-contract/contract/res/nft_marketplace.wasm
Binary file not shown.
5 changes: 3 additions & 2 deletions blockchain/rust-contract/contract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct Contract {
nTokenOnSale: u64,
}

const DATA_IMAGE_SVG_LATINART_ICON: &str = "no image";
const DATA_IMAGE_SVG_LATINART_ICON: &str = "MintosNFTMarket";

#[derive(BorshSerialize, BorshStorageKey)]
enum StorageKey {
Expand All @@ -56,7 +56,7 @@ impl Contract {
NFTContractMetadata {
spec: NFT_METADATA_SPEC.to_string(),
name: "Mintos NFT".to_string(),
symbol: "MOS".to_string(),
symbol: "MINTOS".to_string(),
icon: Some(DATA_IMAGE_SVG_LATINART_ICON.to_string()),
base_uri: None,
reference: None,
Expand Down Expand Up @@ -110,6 +110,7 @@ impl Contract {
* @param token_owner_id {ValidAccountId} a quien le va a pertenecer el token
* @param tokenMetadata {TokenMetadata} los metadatos
*/

#[payable]
pub fn minar(
&mut self,
Expand Down
2 changes: 1 addition & 1 deletion frontend/models/TokenMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default interface TokenMetada {
copies: number, //u64 // number of copies of this set of metadata in existence when token was minted.
issued_at: string, // ISO 8601 datetime when token was issued or minted
price: string, // is the price in yoctos
creator: string, // is the creator
// creator: string, // is the creator
on_sale: boolean, // sale status
expires_at: string, // ISO 8601 datetime when token expires
starts_at: string, // ISO 8601 datetime when token starts being valid
Expand Down
1 change: 1 addition & 0 deletions neardev/dev-account
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-1649272751354-35901068169792
1 change: 1 addition & 0 deletions neardev/dev-account.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONTRACT_NAME=dev-1649272751354-35901068169792
7 changes: 7 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
echo "Building contract..."
cd "../blockchain/rust-contract/contract"
cargo build --all --target wasm32-unknown-unknown --release
cp target/wasm32-unknown-unknown/release/*.wasm ./res/
echo "Deploying contract..."
near dev-deploy res/nft_marketplace.wasm

0 comments on commit 33c5891

Please sign in to comment.