Skip to content

Commit

Permalink
all files added
Browse files Browse the repository at this point in the history
  • Loading branch information
Vikash-8090-Yadav committed Aug 7, 2022
1 parent df31d94 commit 5aa35c4
Show file tree
Hide file tree
Showing 19 changed files with 1,156 additions and 13 deletions.
1 change: 1 addition & 0 deletions Level2/MetaNft_Minting/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
1 change: 1 addition & 0 deletions Level2/MetaNft_Minting/Truff/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
5 changes: 1 addition & 4 deletions Level2/MetaNft_Minting/Truff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@openzeppelin/contracts": "^4.6.0"
}
"license": "ISC"
}
22 changes: 13 additions & 9 deletions Level2/MetaNft_Minting/Truff/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@
*
*/

// const HDWalletProvider = require('@truffle/hdwallet-provider');


const HDWalletProvider = require('@truffle/hdwallet-provider');
//

// const fs = require('fs');
// const mnemonic = fs.readFileSync(".secret").toString().trim();
const mnemonic = process.env.NEXT_PRIVATE_KEY;

module.exports = {
/**
Expand Down Expand Up @@ -59,14 +63,14 @@ module.exports = {
//
// Useful for deploying to a public network.
// Note: It's important to wrap the provider as a function to ensure truffle uses a new provider every time.
// ropsten: {
// provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/YOUR-PROJECT-ID`),
// network_id: 3, // Ropsten's id
// gas: 5500000, // Ropsten has a lower block limit than mainnet
// confirmations: 2, // # of confirmations to wait between deployments. (default: 0)
// timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
// skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
// },
ropsten: {
provider: () => new HDWalletProvider(mnemonic, `${process.env.NEXT_PUBLIC_URL}`),
network_id: 3, // Ropsten's id
gas: 5500000, // Ropsten has a lower block limit than mainnet
confirmations: 2, // # of confirmations to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
},
//
// Useful for private networks
// private: {
Expand Down
7 changes: 7 additions & 0 deletions Level2/MetaNft_Minting/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import Movements from "./Movement.js"

// import "./node_modules/dotenv/config.js"
// require('dotenv').config({ debug: true })
import * as dotenv from"dotenv"
dotenv.config();
console.log(process.env.NEXT_PUBLIC_URl);


import ganche from "./web3.js"
const scene = new THREE.Scene();
// scene.background = new THREE.Color("yellowgreen");
Expand Down
16 changes: 16 additions & 0 deletions Level2/MetaNft_Minting/node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5aa35c4

Please sign in to comment.