Deploying your own cross-chain token 101

  • ERC2612 (Adds permit)
  • ERC677 (Adds approveAndCall and transferAndCall)
  • transferWithPermit
  • Verify EIP712 and Verify personalSign
git clone
npm install
-- edit deploy.js
node deploy.js
  • provider ~ choose from provider list for the chain
  • privateKey ~ address being used to deploy with
  • mpcAddress ~ address for MPC address on given chain
  • constructorArgs ~ token details (Token Name, Symbol, Decimals, Underlying token (optional))
  • verifyURL (optional) if you want to programmatically verify via etherscan/ftmscan/bscscan api
  • verifykey (optional) key to be used to verify via etherscan/ftmscan/bscscan
"yfi": {
"srcChainID": "1",
"destChainID": "56",
"PairID": "YFI",
"SrcToken": {
"ID": "YFI",
"Name": "",
"Symbol": "YFI",
"Decimals": 18,
"Description": "",
"DepositAddress": "0x13B432914A996b0A48695dF9B2d701edA45FF264",
"mpcAddress": "0x13B432914A996b0A48695dF9B2d701edA45FF264",
"ContractAddress": "0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e",
"MaximumSwap": 20,
"MinimumSwap": 0.0005,
"BigValueThreshold": 5,
"SwapFeeRate": 0,
"MaximumSwapFee": 0,
"MinimumSwapFee": 0,
"PlusGasPricePercentage": 10,
"DisableSwap": false,
"IsDelegateContract": false
"DestToken": {
"ID": "anyYFI",
"Name": "YFI-ERC20",
"Symbol": "anyYFI",
"Decimals": 18,
"Description": "cross chain bridge YFI with anyYFI",
"mpcAddress": "0x13B432914A996b0A48695dF9B2d701edA45FF264",
"ContractAddress": "0x9883ae441105f815b472517389b979f031b5c87e",
"MaximumSwap": 20,
"MinimumSwap": 0.002,
"BigValueThreshold": 2,
"SwapFeeRate": 0.001,
"MaximumSwapFee": 0.01,
"MinimumSwapFee": 0.001,
"PlusGasPricePercentage": 1,
"DisableSwap": false,
"IsDelegateContract": false




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

8 of Whistic’s Recent Customer-Sourced Product Updates

Control Your Smartphone Data

Blog 2: Shifting Your Settings

{UPDATE} Cute Baby's Closet(Pro)?Dressup Girly Games Hack Free Resources Generator

A Maturity Primer for Vulnerability Coordination

D’CENT Wallet is now integrated with Tune.FM to support JAM Token.

Tornado cash: Catch me if you can

What an OpenIDEO Challenge Taught Us About The Power Of Collaboration

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andre Cronje

Andre Cronje

More from Medium

🚀 stMATIC: Shard Labs Launches First Balancer MetaStable Pool on Polygon

2.1 AMM Whitelist Opportunity

Eden Network Q1 2022 — Value Creation For a Multichain PoS Future

Bootstrapping the Metaverse