Open in app

Sign In

Write

Sign In

Nhan Cao
Nhan Cao

588 Followers

Home

About

Pinned

Solidity Smart Contract Convention X

Just a convention to make a good-looking contract. :3 Feel free to apply it. STRUCTURE - src /active: For working contracts /interfaces: Contains all contract interface type /libraries: Contains all library type…

Solidity

3 min read

Solidity

3 min read


Oct 19, 2022

Custom Truffle web3 provider to support Infura authentication

Secure Infura project key: — Secure Infura project key Details: https://docs.infura.io/infura/networks/ethereum/how-to/secure-a-projectnhancv.medium.com Install lib: - For Http: yarn add web3-providers-http - For Ws: yarn add web3-providers-ws Example web3 provider configuration: https://web3js.readthedocs.io/en/v1.7.4/web3-eth.html // ==== // Http // ==== const Web3HttpProvider = require('web3-providers-http');

Infura

2 min read

Infura

2 min read


Oct 19, 2022

Secure Infura project key

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 addresses, User agents (optional) + Project secret required: JWT or API secret

Infura

2 min read

Secure Infura project key
Secure Infura project key
Infura

2 min read


Oct 18, 2022

Google Sheets API

1 min read

Google Sheets API
Google Sheets API

1 min read


Apr 19, 2022

How fast to take AWS Certificates?

Nhan Cao Nhan Cao résuménhancv.github.io https://www.credly.com/users/nhancv

Aws Certification

2 min read

How fast to take AWS Certificates?
How fast to take AWS Certificates?
Aws Certification

2 min read


Jan 8, 2022

An AWS Cloud architecture for web hosting — 3 Tiers

Public Terraform source: GitHub - nhancv/terraform.aws.public: Web application with basic 3 tiers version. Deploy to AWS… Web application with basic 3 tiers version. Deploy to AWS using Terraform - GitHub - nhancv/terraform.aws.public: Web…github.com Best practice: https://docs.aws.amazon.com/whitepapers/latest/web-application-hosting-best-practices/an-aws-cloud-architecture-for-web-hosting.html I saw some mistakes of Full-stack developers about web hosting. To deliver better app should check some points:

Web Development

4 min read

An AWS Cloud architecture for web hosting — 3 Tiers
An AWS Cloud architecture for web hosting — 3 Tiers
Web Development

4 min read


Dec 13, 2021

HOW TO CONFIG REDIRECT ROOT/NAKED ROUTE53 DOMAIN HTTP TO WWW HTTPS Using S3 and CloudFront with Route53

STEPs S3 static website hosting bucket same domain name with direct mode Cloudfront using Origin domain of S3 website endpoint (NOT bucket name) + custom domain + custom SSL (via ACM) Route53 -> alias to CloudFront (us-east-1 only) DETAILs S3: - New empty bucket using bucket name must be equal domain name …

Route 53

1 min read

Route 53

1 min read


Dec 11, 2021

SOLANA network programming

Getting started: https://solana.com/news/getting-started-with-solana-development Docs: https://docs.solana.com Terminology: https://docs.solana.com/terminology Wallet: 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/…

Solana Blockchain

3 min read

SOLANA network programming
SOLANA network programming
Solana Blockchain

3 min read


Dec 10, 2021

Multicall SmartContract js client

Faster x13 times

Blockchain

1 min read

Blockchain

1 min read


Oct 15, 2021

Verify smart contract request with multi-signature approach

First, create a mintable token // SPDX-License-Identifier: MIT // @nhancv pragma solidity 0.8.4; interface IMintable { function mint(address account, uint256 amount) external; } ERC20Mintable // SPDX-License-Identifier: MIT // @nhancv pragma solidity 0.8.4; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "./ERC20Token.sol"; import "./interfaces/IMintable.sol"; contract ERC20Mintable is ERC20Token, IMintable, AccessControlUpgradeable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); /** * @dev Upgradable initializer…

Blockchain

6 min read

Verify smart contract request with multi-signature approach
Verify smart contract request with multi-signature approach
Blockchain

6 min read

Nhan Cao

Nhan Cao

588 Followers

nhancv.com

Following
  • Duy Tran

    Duy Tran

  • Michal Bialas

    Michal Bialas

  • Heroes of Mavia

    Heroes of Mavia

  • Nguyen Seven

    Nguyen Seven

  • Adam Geitgey

    Adam Geitgey

See all (57)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech