009 | Ethereum to DEXON Migration Guide | Programmer Explain
How you can use Solidity on DEXON
Using the exact same smart contract (Solidity) code with outstanding performance (tps/absolute finality/confirmation time) on the DEXON network.
The following content might make more sense to you if have experienced working on the Ethereum Network.
If you already have running DApps on Ethereum, it would take less than 10 minutes migrating to DEXON with outstanding performance.
Key Metrics of Ethereum and DEXONTransactions Per Second
Ethereum: - 20
DEXON: + 12,000Confirmation Time In Second
Ethereum: - >= 15
DEXON: + <= 3On-chain Randomness
Ethereum: - false
DEXON: + trueFinality
Ethereum: - probabilistic finality
DEXON: + absolute finalitySmart Contract Language
Ethereum: - solidity
DEXON: + solidity supports On-chain randomness
Things related to Mnemonic and On-chain Randomness need to be modified.1. Mnemonic
DEXON network follows BIP39 standard.
BIP39 is the method for deriving private keys from mnemonic words.
diff: derivation path2. On-chain Randomness (if you are using rand)
DEXON network provides On-chain randomness for your smart contract(Solidity).
diff: compiler that knows how to use rand
Tools using MnemonicWallet
+ DekuSan「Installation Link」
diff: derivation path with better UI/UX experiencetruffle-hdwallet-provider (npm package)
- "truffle-hdwallet-provider": "^1.0.2"
+ "truffle-hdwallet-provider": "github:trufflesuite/truffle-hdwallet-provider"
diff: support derivation path configuration
Tools using on-chain randomnessSmart Contract Editor
Ethereum: - https://remix.ethereum.org
DEXON: + https://remix.dexon.org
diff: with randtruffle (npm package)
Ethereum: - "truffle": "^4.1.16"
DEXON: + "@dexon-foundation/truffle": "^4.1.16",
Tools that are equivalentBlockchain Explorer
Ethereum: - https://etherscan.io/
DEXON: + https://testnet.dexscan.app/ERC-20
Ethereum: - https://etherscan.io/tokens
DEXON: + https://testnet.dexscan.app/tokens/drc20ERC-721
Ethereum: - https://etherscan.io/tokens-nft
DEXON: + https://testnet.dexscan.app/tokens/drc721
If you are new to DEXON network, check out 「Hello DEXON」repository.
If you are wondering 「Why DApps？」
Check out 『002 | DApps, do we really need it? | Programmer Explain』for different DApp projects built from the Hackathon.