Giter Club home page Giter Club logo

dapp-token-ico's Issues

Please

Hi, sorry for writing here.
Please write the instructions in more detail how to run this app
Thnx

Buy button rate more than 2500

Hi sir

thanks for your job, if you increase the rate to more than 2500 wei in the script the buy button didnt work in the dapp. i tried with 4000 value.

Altough the contract could get directly BNB and make the exchange rate of token in the correct way.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

npm
package.json
  • @tailwindcss/typography 0.5.13
  • @web3-react/core 6.1.9
  • @web3-react/injected-connector 6.0.7
  • @web3-react/network-connector 6.2.9
  • @web3-react/walletconnect-connector 6.2.13
  • daisyui 4.12.2
  • loglevel 1.9.1
  • react 18.3.1
  • react-dom 18.3.1
  • react-hot-toast 2.4.1
  • react-query 4.0.0-beta.23
  • web3-react 5.0.5
  • @biomejs/biome 1.8.0
  • @nomicfoundation/hardhat-ethers 3.0.6
  • @nomicfoundation/hardhat-verify 2.0.8
  • @nomiclabs/hardhat-ethers 2.2.3
  • @nomiclabs/hardhat-etherscan 3.1.8
  • @nomiclabs/hardhat-waffle 2.0.6
  • @openzeppelin/contracts 4.9.6
  • @openzeppelin/contracts-upgradeable 4.9.5
  • @openzeppelin/hardhat-upgrades 1.28.0
  • @trivago/prettier-plugin-sort-imports 4.3.0
  • @typechain/ethers-v5 11.1.2
  • @typechain/hardhat 9.1.0
  • @types/mocha 10.0.6
  • @types/react 18.3.3
  • @types/react-dom 18.3.0
  • @vitejs/plugin-react-refresh 1.3.6
  • autoprefixer 10.4.19
  • chai 4.4.1
  • dotenv 16.4.5
  • ethereum-waffle 4.0.10
  • ethers 5.7.2
  • hardhat 2.22.5
  • hardhat-gas-reporter 2.2.0
  • husky 9.0.11
  • lint-staged 15.2.5
  • postcss 8.4.38
  • rustywind 0.22.0
  • solgraph 1.0.2
  • solhint 5.0.1
  • solidity-coverage 0.8.12
  • sort-package-json 2.10.0
  • tailwindcss 3.4.4
  • typechain 8.3.2
  • typescript 5.4.5
  • vite 5.2.13
  • node >=18.12.0
  • yarn 1.22.22
nvm
.nvmrc

  • Check this box to trigger a request for Renovate to run again on this repository

Sales with no token

Hello, I follow your project for a while trying to understand the case and implicit assumptions, since there is not much documentation about the possible types of token funding sale events. There are a few training organizations but everyone solves an specific case and does not mention other possibilities.

In particular, I see that your case assumes both, a token and an icotoken, exists. This line in your icotoken requires an existing token https://github.com/jellydn/dapp-token-ico/blob/main/contracts/ITManTokenCrowdsale.sol#L19
also I think your project is designed to be run on mainnet.

However, in theory there is a previous case where the company wants to run a sale event but they do not have a token yet. This case of sale event would be run in a testnet (eg ropsten), funds would be send to the icotoken and after transferred to a wallet and balances will be added by default when the token is after created. I find this token sale case useful when the company has the idea but has not the resources to materialize the idea in a concrete token. I see a big risk creating a token expecting to last for years without change when you do not even have the company funded.

2 examples of the case I refer to:
https://github.com/ValladolidBlockchain/Token-ICO/blob/master/contracts/tokenVallCoin.sol
https://github.com/Vibes-INS/ico-hardhat/blob/master/contracts/Ico.sol
as you can see there is not token inside the icotoken and the only purpose is to transfer to the promoters wallet.

So, where do you thing this case of token sales with not token fit? Is this case covered in your work?

Thanks for sharing you work.

Installation errors

Errors:

warning Error running install script for optional dependency: "/var/www/html/node_modules/node-hid: Command failed. Exit code: 1 Command: prebuild-install || node-gyp rebuild Arguments: Directory: /var/www/html/node_modules/node-hid Output: prebuild-install WARN install No prebuilt binaries found (target=14.19.1 runtime=node arch=x64 libc= platform=linux) gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | linux | x64 gyp info find Python using Python version 3.8.10 found at \"/usr/bin/python3\" gyp http GET https://nodejs.org/download/release/v14.19.1/node-v14.19.1-headers.tar.gz gyp http 200 https://nodejs.org/download/release/v14.19.1/node-v14.19.1-headers.tar.gz gyp http GET https://nodejs.org/download/release/v14.19.1/SHASUMS256.txt gyp http 200 https://nodejs.org/download/release/v14.19.1/SHASUMS256.txt gyp info spawn /usr/bin/python3 gyp info spawn args [ gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/var/www/html/node_modules/node-hid/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.cache/node-gyp/14.19.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/14.19.1', gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/14.19.1/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/var/www/html/node_modules/node-hid', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] ../hidapi/linux/hid.c:44:10: fatal error: libudev.h: No such file or directory 44 | #include <libudev.h> | ^~~~~~~~~~~ compilation terminated. make: *** [hidapi-linux-hidraw.target.mk:111: Release/obj.target/hidapi-linux-hidraw/hidapi/linux/hid.o] Error 1 gyp ERR! build error gyp ERR! stack Error: makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:400:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12) gyp ERR! System Linux 5.4.0-29-generic gyp ERR! command \"/usr/bin/node\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\" gyp ERR! cwd /var/www/html/node_modules/node-hid gyp ERR! node -v v14.19.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok $ husky install husky - Git hooks installed Done in 402.43s.

Node JS v14.19.1

Cannot upload on vercel or netift

Describe the bug

I have deployed the contracts on mainnet but cannot be used on thr app. i cant upload the web on vercel or netify, its crashing on build

Reproduction

Deployment

System Info

Error

Used Package Manager

yarn

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.