Blockchain Awesome
-
Wallet
- MetaMask
- WalletConnect
- Coinbase
- ImToken
- TrustWallet
-
- Open Geospatial Information Network
- https://geoweb.land/
-
- The Open Data Network
- ceramicstudio/self.id
-
- Empower users to buy & sell crypto inside your app
- Fiat <-> crypto on-ramp
-
Block Explorer and Analytics Platform
Ethereum Awesome
Swap Fee
Reward | Swap | Fee |
---|---|---|
0.3% | Uniswap v1 | |
0.3% | Uniswap v2 | 0.05% |
0.05% | Uniswap v3 very stablecoin pair | 0.05% |
0.05% | Uniswap v3 stablecoin pair | 0.05% |
0.30% | Uniswap v3 most | 0.05% |
1.00% | Uniswap v3 low trade | 0.05% |
9%-14% APR | Polygon Matic Staking - ETH->Matic |
Swap
- Uniswap
- Network: Ethereum mainnet, Optimism, Arbitrum, Polygon
- PartySwap
- Network: Avalanche
- Token: PARTY
- PolkaSwap
- QuickSwap
- Sushiswap
- Simpleswap
- AAVE
- decentralised non-custodial liquidity market protocol
- https://docs.google.com/spreadsheets/d/1TY_ai7vapncY66HUdkFp8G8W7owIQOS2lqTsdvqm6PY/edit#gid=1150575472
Contracts
- ethereum/solidity
- ConsenSys/smart-contract-best-practices
- 固化 vs 可升级
- 一体化 vs 模块化
- 重复 vs 可重用
- ConsenSys/ethereum-developer-tools-list
- runtimeverification/verified-smart-contracts
- https://github.com/yam-finance/yam-protocol/blob/master/contracts
- https://docs.fractional.art/fractional/smart-contract-breakdown/token-vault
- https://docs.unic.ly/tutorials/how-to-fractionalize-your-nfts
- https://github.com/ethereum/EIPs/issues/4674
- NFT 拆分
- https://github.com/sablierhq/sablier/tree/develop/packages/protocol/contracts
- https://github.com/safe-global
- secure management of blockchain assets
- superfluid-finance/protocol-monorepo
trufflesuite/truffle- MIT, TS
- Ethereum contract abstraction, for Node and the browser
- 应用
- solidstate-network/solidstate-solidity
- Upgradeable-first Solidity smart contract development library
Dev
- dev env
- Hardhat
- Ganache
- Truffle
- Foundry
- explorer
- js client
- ethers.js
- 针对 provider 有默认 apikey - https://docs.ethers.io/v5/api-keys/
- ChainSafe/web3.js
- wevm/viem
- MIT, TS
- npm:viem
- https://viem.sh/
- TypeScript Interface for Ethereum
- wevm/wagmi
- MIT, TS
- npm:wagmi
- https://wagmi.sh/
- React Hooks for Ethereum
- @ethereumjs
- @ethersproject
- @nomiclabs
- fortmatic
- web3react
- window.ethereum
- web3-compatible browsers - MetaMask
- https://eips.ethereum.org/EIPS/eip-1474#error-codes
- WalletConnect/walletconnect-monorepo
- window.web3 - 废弃
- ethers.js
- dethcrypto/TypeChain
- TypeScript bindings for Ethereum smart contracts
- connect
- onboard.js
- Web3Modal/web3modal
- safe-global/safe-apps-sdk
- multi-signature contract wallet
- https://dev.gnosis-safe.io/
- https://docs.gnosis-safe.io/introduction/statistics-and-usage
- safe-apps-web3modal
- React
- TrueFiEng/useDApp
- NoahZinsmeister/web3-react
- rainbow-me/rainbowkit
- connect a wallet
- wagmi-dev/wagmi
- React Hooks for Ethereum
- API/Blockchain API Provider/Proxy
- graphprotocol/graph-node
- Apache-2.0, MIT, Rust
- indexes data from blockchains such as Ethereum and serves it over GraphQL
- llamanodes/web3-proxy
- GPLv3, Rust
- https://eth.wiki/json-rpc/API
- https://stripe.com/zh-cn-hk/use-cases/crypto
- https://api.coingecko.com/api/v3/simple/price
- https://api.etherscan.io/api
- https://sentinel.matic.network/api/v2/validators/metadata/totalStake
- infura.io
- 10w/day
- AWS
- Moralis
- graphprotocol/graph-node
- Misc
- icon/logo
- 商业
- https://web3.storage/
- https://www.alchemy.com/
- https://github.com/alchemyplatform
- Web3 Developer Platform
import { MetaMaskInpageProvider } from '@metamask/providers';
declare global {
interface Window {
ethereum: MetaMaskInpageProvider;
}
}
web3js vs ethersjs
- ethersjs
- MIT
- modules - Provider, Contract, utils, Wallet
- web3js
- LGPL
- window.web3 - metamask 已经不在注入 web3 ^
- 使用 window.ethereum
- modules - eth, bzz, shh, utils,
*.net
汇率
curl 'https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=BTC,USD,EUR'
curl 'https://api.coinbase.com/v2/exchange-rates?currency=ETH'
curl 'https://api.etherscan.io/api?module=stats&action=ethprice&apikey=YourApiKeyToken'
- https://www.coingecko.com/api/docs/v3#/simple/get_simple_price
- https://coinmarketcap.com/api/documentation/v1/#operation/getV1ToolsPriceconversion
- https://www.cryptocompare.com/api/
- https://developers.coinbase.com/api/v2#exchange-rates
- https://api3.org/apis/ExchangeRate-API/Currency+Conversion+API
- https://www.app.unic.ly/#/discover
Testnets
Hex | Decimal | Symbol | Network | Proof | RPC | Explorer |
---|---|---|---|---|---|---|
0x3 | 3 | ROP | Ropsten | PoW/ethash | https://ropsten.infura.io/v3/${INFURA_API_KEY} | |
0x4 | 4 | RIN | Rinkeby | PoA/Clique | https://www.rinkeby.io/ | |
0x5 | 5 | GOR | Goerli | PoA/Clique | ||
0x2a | 42 | KOV | Kovan | PoA/authority round | ||
43113 | AVAX | FUJI | https://api.avax-test.network/ext/bc/C/rpc | https://testnet.snowtrace.io/ | ||
11155111 | ETH | Sepolia | https://sepolia.dev/ | https://sepolia.etherscan.io/ | ||
Holesky |
- rETH - rinkeby ETH
- Faucet
- Avalanche C-Chain
tip
- 可以在 https://app.compound.finance 换取其他币,方便测试多种币。
- etherscan.io 支持 ropsten, rinkeby, kovan, goerli
- Goerli - 2019-2022 +1 LTS
- Sepolia - 2021-2025 +1 LTS
- Holešky - 2023-2027 +1 LTS
Ropsten
- Ropsten 接近 mainnet
- ETH - https://faucet.metamask.io/
- LINK - https://ropsten.chain.link/
- Exploere
Rinkeby
- ethereum/EIPs#225
- https://www.rinkeby.io/
- https://rinkebyfaucet.com/ - 0.1 ETH/24h/IP
- https://faucet.rinkeby.io/ - 需要社交验证
Goerli
网络
Hex | Decimal | Symbol | Network | RPC | Explorer |
---|---|---|---|---|---|
0x1 | 1 | ETH | Ethereum Main Network (Mainnet) | ||
0x38 | 56 | BNB | Smart Chain | https://bsc-dataseed.binance.org/ | https://bscscan.com |
137 | MATIC | Polygon | https://polygon-rpc.com | https://polygonscan.com/ |
- https://app.compound.finance/ - 换币
- palm mainnet, testnet
- aurora mainnet, testnet
- near mainnet, testnet
- polygon mainnet, mumbai
- arbitrum mainnet, rinkeby
- optimisim mainnet, kovan
- Layer 2 Optimistic Rollup network
- Fraud proof
- Zero Knowlogy
- Validity proof
- https://ethereum.org/en/developers/docs/networks/
- Polygon
- DAO
- opensea
- https://docs.opensea.io/docs/developer-tutorials
- https://testnets.opensea.io/
- Rinkeby
https://testnets.opensea.io/assets/<asset_contract_address>/<token_id>
https://testnets-api.opensea.io/api/v1/asset/<your_contract_address>/<token_id>/?force_update=true
- Project Wyvern Exchange 0x7be8076f4ea4a4ad08075c2508e481d6c946d12b
- NFT
- liquidity
- https://defisaver.com/
- https://rari.capital/
- https://prysm.xyz/
- https://zapper.fi/
- https://www.pokt.network/
rpc
explorer
apis
testnets
rpc
- net_version -> chainId
- net_listening:boolean
- 参考
curl -X POST --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}'
Token
主要 ECR-20 币
Token | Name | Primary Network |
---|---|---|
ETH | 以太坊 | |
MATIC | ERC20, Polygon | |
USDC | USD Coin | Centre |
USDT | 泰达币,Tether | TRC20, ERC20, OKC, Polygon, Solana |
DOGE | 狗狗币 | |
ZRX | 0x Protocol Token | |
DAI | Dai Stablecoin |
- BSC
- 稳定币 - USDT, USDC, DAI, Diem
- 参考
- https://tokenlists.org/ - Ethereum token list
- Cryptocurrency
Token | Name | Network |
---|---|---|
ADA | ||
ATOM | ||
AVAX | ||
AXS | ||
BCH | 比特币现金 | |
BTC | 比特币 | |
CRV | ||
DOME | ||
DOT | ||
EOS | 柚子币 | |
FIL | ||
FTM | ||
GALA | ||
ICP | ||
LINK | Chialink | |
LOOKS | ||
LTC | 莱特币 | |
LUNA | Terra | |
MANA | ||
NFT | ||
OKB | Okx | |
PEOPLE | ||
SAND | ||
SHIB | Shiba Inu | |
SLP | ||
SOL | ||
SOS | ||
TRX | 波场币 | |
UNI | ||
USDK | ||
XRP | 瑞波币 |
Trade
Miner
参考
服务
- 33cn/chain33
- 高度模块化, 遵循 KISS 原则的区块链开发框架
- blkchain/pg_blkchain
- PostgreSQL Blockchain Extension
Read
- The Complete Guide to Full Stack Ethereum Development
- 元宇宙的运行之“DAO”
- Web3 Tutorial: write upgradeable smart contract (proxy) using OpenZeppelin
- defi-vs-goliath
- Condition-Orientated Programming
- From “What is Blockchain?” to building a blockchain in less than an hour
- Building Blockchain in Go. Part 1: Basic Prototype
- How to build a blockchain from scratch with Go
Web3
Web2 | Web3 |
---|---|
AWS S3 | Filecoin |
Github | Radicle |
Paypal | Wallets |
Zoom | Huddle |
Spotify | Audius |
Upwork | Braintrust |
Lens Protocol | |
MongoDB | Ceramic |
Service
- https://www.hyperledger.org/
- https://github.com/corda/corda
- Corda is an open source blockchain project, designed for business from the start. Only Corda allows you to build interoperable blockchain networks that transact in strict privacy. Corda's smart contract technology allows businesses to transact directly, with value. https://www.corda.net
- Apache Milagro
- Core security infrastructure for decentralized networks and distributed systems
- https://milagro.apache.org/users.html
- https://101blockchains.com/blockchain-open-source/
Math
- Constant Product AMM Math https://youtu.be/QNPyFs8Wybk