深入分析:tp/imtoken/metamask小狐狸錢包系統開發技術詳解

xiaofufu發表於2023-03-05

  Web3.0是執行在區塊鏈技術上的去中心化網路,同時也是混合網路,由網際網路層(Web2)+區塊鏈層(Web3)組成


  Web3.0是網際網路的下一代版本,它建立在Web2.0的基礎之上,透過利用分散式網路和區塊鏈技術,提供更為安全、隱私、去中心化的網路服務。Web3.0被視為實現分散式Web的技術和範例。


  nterface IUniswapV2Factory{


  event PairCreated(address indexed token0,address indexed token1,address pair,uint);


  function feeTo()external view returns(address);


  function feeToSetter()external view returns(address);


  function getPair(address tokenA,address tokenB)external view returns(address pair);


  function allPairs(uint)external view returns(address pair);


  function allPairsLength()external view returns(uint);


  function createPair(address tokenA,address tokenB)external returns(address pair);


  function setFeeTo(address)external;


  function setFeeToSetter(address)external;


  }詳細案例及原始碼:MrsFu123


  interface IUniswapV2Pair{


  event Approval(address indexed owner,address indexed spender,uint value);


  event Transfer(address indexed from,address indexed to,uint value);


  function name()external pure returns(string memory);


  function symbol()external pure returns(string memory);


  function decimals()external pure returns(uint8);

  function totalSupply()external view returns(uint);


  function balanceOf(address owner)external view returns(uint);


  function allowance(address owner,address spender)external view returns(uint);


  function approve(address spender,uint value)external returns(bool);


  function transfer(address to,uint value)external returns(bool);


  function transferFrom(address from,address to,uint value)external returns(bool);


  function DOMAIN_SEPARATOR()external view returns(bytes32);


  function PERMIT_TYPEHASH()external pure returns(bytes32);


  function nonces(address owner)external view returns(uint);


  function permit(address owner,address spender,uint value,uint deadline,uint8 v,bytes32 r,bytes32 s)external;


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69956839/viewspace-2938205/,如需轉載,請註明出處,否則將追究法律責任。

相關文章