Skip to content

Instantly share code, notes, and snippets.

View zhaojun-sh's full-sized avatar

zhaojun.sh zhaojun-sh

View GitHub Profile
@zhaojun-sh
zhaojun-sh / NFT-bridge-proposal.md
Last active October 26, 2022 15:15
NFT bridge for ETH<>FTM

ERC721 NFT token bridge ETH<>FTM

Architecture

  • NFTRouter contract
  • NFT Bridge nodes
  • Multichain MPC network

Deployment

@zhaojun-sh
zhaojun-sh / multichain-safe-Block-confirmations.md
Last active March 2, 2022 15:41
Multichain safe block confirmations
@zhaojun-sh
zhaojun-sh / Anyswap-bridge-list.md
Created April 12, 2021 09:01
anyswap.exchange bridge list
@zhaojun-sh
zhaojun-sh / anyBLOCKV4ERC20.sol
Last active April 9, 2021 08:09
BLOCKnet to AVAX c-chain
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.2;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
function totalSupply() external view returns (uint256);
function decimals() external view returns (uint8);
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.0;
interface ISushiswapV2Pair {
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
@zhaojun-sh
zhaojun-sh / Anyswap_router_testnet.md
Last active April 6, 2021 06:04
Anyswap router testnet V3