Custom Truffle web3 provider to support Infura authentication
Install lib: Example web3 provider configuration: https://web3js.readthedocs.io/en/v1.7.4/web3-eth.html Integrate with truffle Change authentication Basic to Bearer to use JWT approach
Install lib: Example web3 provider configuration: https://web3js.readthedocs.io/en/v1.7.4/web3-eth.html Integrate with truffle Change authentication Basic to Bearer to use JWT approach
Details: https://docs.infura.io/infura/networks/ethereum/how-to/secure-a-project Patterns: Frontend/Mobile app:+ Requests: 10/sec, 5000/day+ Allowlists: Origins, Contract addresses, User agents (optional)+ JWT required: Public (short expiration), Signed (long expiration) BE service:+ Requests: x0/sec, x000/day+ Allowlists: Contract…
Just a convention to make a good-looking contract. :3 STRUCTURE FORMAT & LINT Format standard Lint Verify before commit COMMIT RULEs DO use Semantic Commit Messages: https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716 DO use Git Branching…
Getting started: https://solana.com/news/getting-started-with-solana-developmentDocs: https://docs.solana.comTerminology: https://docs.solana.com/terminologyCoin: SOLWallet: https://docs.solana.com/wallet-guide– App version: https://docs.solana.com/wallet-guide/apps– Web version: https://docs.solana.com/wallet-guide/web-wallets– Extension: https://phantom.app/– CLI: https://docs.solana.com/wallet-guide/cli Solana cluster explorers: http://explorer.solana.com/ http://solanabeach.io/ https://solscan.io/Token program (Token on Solana blockchain): https://spl.solana.com/tokenEnvironment setup…
Faster x13 times
https://gist.github.com/nhancv/228d1e7db2b58842309e06de554a6640 First, create a mintable token ERC20Mintable Create EIP712 multi-signature MultiSigEIP712 Create test scripts_truffle/eip712.js scripts_truffle/eip712ex.js test/MultiSigEIP712.test.js Start test Ganache-cli does not support eth_signTypedData_v4, you need hardhat instead https://hardhat.org/hardhat-network/ # Install hardhat…
To get interface id, use Remember interfaceId = xor of all selectors (methods) name and param type, don’t care to return type For example: Return zero with empty interface Return…
If you are a smart contract developer, you will need to consider something about the contract: Clean: No unused code, nonsense comment, Well document: Comment to all functions Formatted: Reformat,…
I have some exp with this kind of topic “Dividend Token”. Just share some thoughts What is “Dividend Token”? You should search for more detail. =]] But you can go…
Arbitrum Goerli Version: Pancakeswap/UniswapV2 Arbitrum Goerli Nitro Rollup Testnet —- https://github.com/nhancv/pancake-swap-testnet#readme Preparing source Clone pancake-swap-core Clone pancake-swap-periphery Clone pancake-swap-interface-v1 Setup Install contract merger: https://www.npmjs.com/package/sol-merger Prepare PancakeFactory and PancakeRouter Deploy PancakeFactory and PancakeRouter Access: https://remix.ethereum.org/#optimize=false&runs=200&evmVersion=null&version=soljson-v0.5.16+commit.9c3226ce.js Deploy WBNB New File: WBNB.sol => Copy…