SmartContract-Marriage-certificates – 智能合约结婚证书区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,SmartContract-Marriage-certificates – 智能合约结婚证书区块链毕设代写 是一篇很好的国外资料

SmartContract-Marriage-certificates

SMART CONTRACT – WEDDING CERTIFICATES

This is Solidity project for embedding wedding certifcates in a blockchain. As of now, i am not in possession of sufficient Ether and for that reason, I am unable to deploy this contract on Ether MainNet. I have successfully executed this on a JavaVM (No, I cant afford to deploy on a testNet either. fuck me)

FOR THOSE WHO DONT KNOW WTF IS GOING ON

install metamask (chill… its an extension for browser and not a virus)

  1. go to https://remix.ethereum.org/
  2. create a new file in contracts and name it whateverthefuck.sol (or any name. just dont forget the extension .sol)
  3. compile by right clicking on the file or choose the 3rd icon on the left most tool menu
  4. once compiled, run the file by clicking the 4th icon on the left most tool menu (funny i keep saying left most, there’s only one tool menu)
  5. Environment : This determines where you want to deploy Marriage.sol contract
    • You will choose JavaScript VM, a virtual machine for testing blocks on your pc. (simple words : its free and doesnt cost shit)
    • Injected web3 is the shit which connects your metamask account and deploys for real on the etherium network (or whichever network you choose in metamask) This will cost you gas (basically a few ether everytime you are creating, modifying… etc)
  6. Assuming you chose JavaScript VM, choose an Account (owner of the contract)
  7. Choose MarriageNotary as contract and deply.
  8. Fill the deets and create a marriage. 9 Get address, choose marriage in contract and try pasting it “at address bar”
  9. you get the block

UPDATE : found some Ether Faucets to get some test ethers. Deployed on an injected Web3

3 directories present are:

  1. ‘contracts’: Holds a Marriage.sol (Solidity file)
  2. ‘scripts’: Holds two scripts to deploy a contract. It is explained below.
  3. ‘tests’: was too fucking lazy to delete this folder

SCRIPTS

The ‘scripts’ folder contains example async/await scripts for deploying the ‘Storage’ contract. For the deployment of any other contract, ‘contractName’ and ‘constructorArgs’ should be updated (along with other code if required). Scripts have full access to the web3.js and ethers.js libraries.

To run a script, right click on file name in the file explorer and click ‘Run’. Remember, Solidity file must already be compiled.

Output from script will appear in remix terminal.


智能合约结婚证书

智能合约-婚礼证书这是一个将婚礼证书嵌入区块链blockchain的Solidity项目。到目前为止,我没有足够的以太网,因此,我无法在以太网MainNet上部署此合同。我已经在JavaVM上成功地执行了这个操作(不,我也负担不起在testNet上部署。操我)

对于那些不知道WTF正在进行的人来说,

安装metamask(冷…这是浏览器的扩展,不是病毒)

更新:找到一些以太水龙头来获得一些测试以太。部署在注入的Web3上存在的3个目录是:

  1. 转到https://remix.ethereum.org/
  2. 在contracts中创建一个新文件,并将其命名为whateverthefuck.sol(或任何名称。不要忘记扩展名.sol)
  3. 编译后,右键单击该文件或选择最左侧工具菜单上的第三个图标,点击最左边工具菜单上的第四个图标来运行文件(有趣的是,我一直说最左边,只有一个工具菜单)
  4. 环境:这决定了你想在哪里部署Marriage.sol合同你将选择JavaScript VM,一个在你的pc上测试块的虚拟机。(简单的话:它是免费的,不需要花费大便)注入式web3连接您的metamask帐户,并在以太网络(或您在metamask中选择的任何网络)上真正部署。这将花费您的gas(基本上每次创建、修改……等时都需要几台以太)
  5. 您将选择JavaScript VM,一种用于在pc上测试块的虚拟机。(简单地说:它是免费的,不需要花费大便)
  6. 选择MarriageNotary作为合同和deply。
  7. 填写deets并创建一个婚姻。9获取地址,在合同中选择婚姻,然后尝试将其粘贴到“地址栏”
  8. 您将获得块
  9. “合同”:持有一个Marriage.Solidity文件

脚本

脚本文件夹包含用于部署“存储”契约的异步/等待脚本示例。对于任何其他合同的部署,应更新“contractName”和“constructorArgs”(如果需要,还应更新其他代码)。脚本可以完全访问web3.js和ethers.js库

  1. “脚本”:持有两个脚本以部署合同。如下所述。
  2. “测试”:他妈的懒得删除此文件夹
  3. ‘tests’: was too fucking lazy to delete this folder

要运行脚本,请在文件资源管理器中右键单击文件名,然后单击“运行”。记住,Solidity文件必须已经编译

脚本的输出将出现在混音终端中

To run a script, right click on file name in the file explorer and click ‘Run’. Remember, Solidity file must already be compiled.

Output from script will appear in remix terminal.

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/24648.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » SmartContract-Marriage-certificates – 智能合约结婚证书区块链毕设代写

提供最优质的资源集合

立即查看 了解详情