欢迎光临散文网 会员登陆 & 注册

链游系统开发(成熟技术)丨区块链Gamefi链游游戏系统开发(详细及方案)丨源码部署

2023-04-03 14:22 作者:bili_56252132691  | 我要投稿

  Web3.0具备几大突出的特性,包括:去中心化、开放性、高隐私性、共建性和用户拥有数据所有权等。


  区块链等技术的参与。区块链是Web3.0最突出的关键技术,助力安全、透明和防篡改的交易。Web3.0同时也包含其他机制促进和推动去中心化,如云计算、AR Cloud和其他网络空间关键技术等;


  什么是GameFi?


  其实GameFi=game+defi,


  game是游戏的意思,deFi全称为Decentralized Finance,即去中心金融,在游戏中加入去中心化金融。


  Web3.0基础设施主要包括节点系统源码威:MrsFu123,基础设施、存储、预言机、安全审计、数据分析平台、钱包、开发工具等。如钱包服务用户链上资产的存储,是Web3.0的重要入口,如Metamask(加密货币钱包)、WalletConnect(钱包通用协议)等。


  constructor(


  string memory _name,


  string memory _symbol,


  string memory _baseTokenURI,


  uint128 _price,


  address _receiver,


  uint256 _royalties


  )payable ERC721A(_name,_symbol){


  setBaseURI(_baseTokenURI);


  setPrice(_price);


  setRoyalties(_receiver,_royalties);


  }


  ///notice Presale minting verifies callers address is in Merkle Root


  ///param _amountOfTokens Amount of tokens to mint


  ///param _merkleProof Hash of the callers address used to verify the location of that address in the Merkle Root


  function presaleMint(uint256 _amountOfTokens,bytes32[]calldata _merkleProof)


  external


  payable


  verifyMaxPerUser(msg.sender,_amountOfTokens)


  verifyMaxSupply(_amountOfTokens)


  isEnoughEth(_amountOfTokens)


  {


  require(status==SaleStatus.Presale,"Presale not active");


  bytes32 leaf=keccak256(abi.encodePacked(msg.sender));


  require(MerkleProof.verify(_merkleProof,merkleRoot,leaf),"Not in presale list");


  _mintedAmount[msg.sender]+=_amountOfTokens;


  _safeMint(msg.sender,_amountOfTokens);


  }


  ///notice Set Presale Merkle Root


  ///param _merkleRoot Merkle Root hash


  function setMerkleRoot(bytes32 _merkleRoot)public onlyOwner{


  merkleRoot=_merkleRoot;


  }


链游系统开发(成熟技术)丨区块链Gamefi链游游戏系统开发(详细及方案)丨源码部署的评论 (共 条)

分享到微博请遵守国家法律