nft_ptr:C ++`std

时间:2021-04-05 06:02:19
【文件属性】:
文件名称:nft_ptr:C ++`std
文件大小:28KB
文件格式:ZIP
更新时间:2021-04-05 06:02:19
Rust C ++ std::unique_ptr智能指针替换,通过在以太坊区块链上将每个对象表示为NFT来确保唯一性。 什么有效 在程序启动时部署ERC721智能合约 当指针转移到nft_ptr时,调用智能合约以创建令牌 使用Ganache在本地链上进行了测试 为每个nft_ptr实例创建智能合约 指针在nft_ptr之间移动时传输令牌 建筑 所有说明均已在macOS 11.2.1上进行了测试。 您需要 , , 和C ++ 17编译器。 cd contracts npm install truffle compile ./dumpbytecode cd ../impl rustup override set nightly cargo build cd ../example ./build.sh 测试(本地区块链) 下载并运行来设置本地区块链。 然后跑 cd example RUST_BA
【文件预览】:
nft_ptr-main
----example()
--------example.cpp(2KB)
--------build.sh(104B)
----format.sh(49B)
----test()
--------nft_ptr_test.cpp(0B)
----include()
--------nft_ptr.hpp(4KB)
----.clang-format(21B)
----contracts()
--------package.json(337B)
--------test()
--------package-lock.json(401B)
--------migrations()
--------contracts()
--------dumpbytecode.py(320B)
--------dumpbytecode(243B)
--------truffle-config.js(5KB)
----.gitignore(96B)
----README.md(2KB)
----impl()
--------nft-ptr-lib()
--------format.sh(43B)
--------Cargo.lock(41KB)
--------nft-ptr()
--------Cargo.toml(61B)

网友评论