metCrafter_CU

FOR CU STUDENTS
bruteCoder avatarbruteCoder
Public06/08/2024 7:50 PM12 snippets
startToken.sol.txt
CryptoToken.sol.txt
CustomToken.sol.txt
second-code-for-eth.txt
Solidity-Smart-Contract.txt
aryan_choudhary_js_proof.js
Ravindar_js_proof.js
shaswat-js_proof-code.js
abhishek-js-proof-code.js
ansh_js_proof.js
vicky_js_proof.js
js_module_1.js

startToken.sol

06/13/2024 5:33 PM
startToken.sol.txt
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

contract StarToken {

    // Public variables for token details
    string public tokenName;
    string public tokenAbbrv;
    uint public totalSupply;

CryptoToken.sol

06/13/2024 5:30 PM
CryptoToken.sol.txt
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

contract CryptoToken {

    // Public variables
    string public tokenName;
    string public tokenAbbrv;
    uint public totalSupply;

CustomToken.sol

06/11/2024 7:01 PM
CustomToken.sol.txt
contract CustomToken {

    // public variables here
    string public tokenName = "CUSTO";
    string public tokenAbbrv = "CTO";
    uint public totalToken = 0 ;

    // mapping variable here

    mapping (address => uint) public wallets;

second code for eth

06/08/2024 7:50 PM
second-code-for-eth.txt
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract MyToken {
    // Public variables for token details
    string public name = "PiToken";
    string public symbol = "PTK";
    uint256 public totalSupply;

    // Mapping of addresses to balances

Solidity Smart Contract

06/08/2024 7:42 PM
Solidity-Smart-Contract.txt
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

/*
       REQUIREMENTS
    1. Your contract will have public variables that store the details about your coin (Token Name, Token Abbrv., Total Supply)
    2. Your contract will have a mapping of addresses to balances (address => uint)
    3. You will have a mint function that takes two parameters: an address and a value. 
       The function then increases the total supply by that number and increases the balance 
       of the “sender” address by that amount

aryan_choudhary_js_proof

05/30/2024 1:06 PM
aryan_choudhary_js_proof.js
// Create a variable to hold your NFTs
const NFTStore = [];

// Function to generate a unique ID using crypto module
function generateUniqueId() {
  return `NFT-${Math.floor(Math.random() * 100000)}`;
}

// Arrays for random selection
const speciesArray = [

Ravindar_js_proof

05/30/2024 11:49 AM
Ravindar_js_proof.js
// Create a variable to hold your NFTs
const NFTStore = [];

// Function to generate a unique ID
function generateUniqueId() {
  return "ID-" + Math.random().toString(36).substr(2, 9) + "-" + Date.now();
}

// Function to mint an NFT
function mintNFT(_name, _species, _planet, _skills, _spaceship) {

shaswat js_proof code

05/30/2024 9:59 AM
shaswat-js_proof-code.js
/*
Aassessment Requirements
1. Create a variable that can hold a number of NFT's. What type of variable might this be?
2. Create an object inside your mintNFT function that will hold the metadata for your NFTs. 
   The metadata values will be passed to the function as parameters. When the NFT is ready, 
   you will store it in the variable you created in step 1
3. Your listNFTs() function will print all of your NFTs metadata to the console (i.e. console.log("Name: " + someNFT.name))
4. For good measure, getTotalSupply() should return the number of NFT's you have created
*/

abhishek js proof code

05/30/2024 9:41 AM
abhishek-js-proof-code.js
/*
Aassessment Requirements
1. Create a variable that can hold a number of NFT's. What type of variable might this be?
2. Create an object inside your mintNFT function that will hold the metadata for your NFTs. 
   The metadata values will be passed to the function as parameters. When the NFT is ready, 
   you will store it in the variable you created in step 1
3. Your listNFTs() function will print all of your NFTs metadata to the console (i.e. console.log("Name: " + someNFT.name))
4. For good measure, getTotalSupply() should return the number of NFT's you have created
*/

ansh_js_proof

05/30/2024 9:32 AM
ansh_js_proof.js
/*
Aassessment Requirements
1. Create a variable that can hold a number of NFT's. What type of variable might this be?
2. Create an object inside your mintNFT function that will hold the metadata for your NFTs. 
   The metadata values will be passed to the function as parameters. When the NFT is ready, 
   you will store it in the variable you created in step 1
3. Your listNFTs() function will print all of your NFTs metadata to the console (i.e. console.log("Name: " + someNFT.name))
4. For good measure, getTotalSupply() should return the number of NFT's you have created
*/

vicky_js_proof

05/30/2024 7:17 AM
vicky_js_proof.js
/*
Aassessment Requirements
1. Create a variable that can hold a number of NFT's. What type of variable might this be?
2. Create an object inside your mintNFT function that will hold the metadata for your NFTs. 
   The metadata values will be passed to the function as parameters. When the NFT is ready, 
   you will store it in the variable you created in step 1
3. Your listNFTs() function will print all of your NFTs metadata to the console (i.e. console.log("Name: " + someNFT.name))
4. For good measure, getTotalSupply() should return the number of NFT's you have created
*/

js_module_1

05/29/2024 5:00 PM
First Module 1
js_module_1.js
/*
Aassessment Requirements
1. Create a variable that can hold a number of NFT's. What type of variable might this be?
2. Create an object inside your mintNFT function that will hold the metadata for your NFTs. 
   The metadata values will be passed to the function as parameters. When the NFT is ready, 
   you will store it in the variable you created in step 1
3. Your listNFTs() function will print all of your NFTs metadata to the console (i.e. console.log("Name: " + someNFT.name))
4. For good measure, getTotalSupply() should return the number of NFT's you have created
*/