diff --git a/.gitignore b/.gitignore index b6487de..cab0a05 100644 --- a/.gitignore +++ b/.gitignore @@ -2,9 +2,9 @@ # dependencies /node_modules -/ethereum/node_modules -/ethereum/.env -/ethereum/build +/contract/node_modules +/contract/.env +/contract/build /.pnp .pnp.js @@ -23,4 +23,4 @@ npm-debug.log* yarn-debug.log* -yarn-error.log* +yarn-error.log* \ No newline at end of file diff --git a/ethereum/test/.gitkeep b/contracts/.env similarity index 100% rename from ethereum/test/.gitkeep rename to contracts/.env diff --git a/contracts/.env.sample b/contracts/.env.sample new file mode 100644 index 0000000..e69de29 diff --git a/ethereum/contracts/Migrations.sol b/contracts/contracts/Migrations.sol similarity index 100% rename from ethereum/contracts/Migrations.sol rename to contracts/contracts/Migrations.sol diff --git a/ethereum/contracts/identity.sol b/contracts/contracts/identity.sol similarity index 100% rename from ethereum/contracts/identity.sol rename to contracts/contracts/identity.sol diff --git a/ethereum/details.txt b/contracts/details.txt similarity index 100% rename from ethereum/details.txt rename to contracts/details.txt diff --git a/ethereum/migrations/1_initial_migration.js b/contracts/migrations/1_initial_migration.js similarity index 100% rename from ethereum/migrations/1_initial_migration.js rename to contracts/migrations/1_initial_migration.js diff --git a/ethereum/migrations/2_deploy_contracts.js b/contracts/migrations/2_deploy_contracts.js similarity index 100% rename from ethereum/migrations/2_deploy_contracts.js rename to contracts/migrations/2_deploy_contracts.js diff --git a/ethereum/package-lock.json b/contracts/package-lock.json similarity index 100% rename from ethereum/package-lock.json rename to contracts/package-lock.json diff --git a/contracts/test/.gitkeep b/contracts/test/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ethereum/test/identity.test.js b/contracts/test/identity.test.js similarity index 100% rename from ethereum/test/identity.test.js rename to contracts/test/identity.test.js diff --git a/ethereum/truffle-config.js b/contracts/truffle-config.js similarity index 78% rename from ethereum/truffle-config.js rename to contracts/truffle-config.js index 36a0d3b..09be735 100644 --- a/ethereum/truffle-config.js +++ b/contracts/truffle-config.js @@ -1,21 +1,20 @@ require('dotenv').config() -const HDWalletProvider = require("@truffle/hdwallet-provider"); +const HDWalletProvider = require('@truffle/hdwallet-provider') //truffle migrate --network ropsten --reset --compile-all module.exports = { - networks: { development: { - host: "127.0.0.1", // Localhost (default: none) - port: 8545, // Standard Ethereum port (default: none) - network_id: "*", // Any network (default: none) + host: '127.0.0.1', // Localhost (default: none) + port: 8545, // Standard Ethereum port (default: none) + network_id: '*', // Any network (default: none) }, - ropsten: { - provider: function() { - return new HDWalletProvider(process.env.MNEMONIC, process.env.NETWORK); + sepolia: { + provider: function () { + return new HDWalletProvider(process.env.MNEMONIC, process.env.NETWORK) }, - network_id: 3 - } + network_id: 11155111, + }, // Another network with more advanced options... // advanced: { // port: 8777, // Custom port @@ -51,12 +50,13 @@ module.exports = { // Configure your compilers compilers: { solc: { - settings: { // See the solidity docs for advice about optimization and evmVersion - optimizer: { - enabled: true, - runs: 200 - } - } + settings: { + // See the solidity docs for advice about optimization and evmVersion + optimizer: { + enabled: true, + runs: 200, + }, + }, }, }, -}; +}