基于区块链的毕业设计HardlyDifficult Ethereum Contracts – 困难的以太坊合同
本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计HardlyDifficult Ethereum Contracts – 困难的以太坊合同 是一篇很好的国外资料
HardlyDifficult Ethereum Contracts
A collection of reusable contracts and Javascript helpers for Ethereum.
Usage:
npm i hardlydifficult-eth
Javascript Helpers
These helpers which will deploy contracts for testing using the exact bytecode and configuration as they have on mainnet, with the exception that you are the owner to enable privileged actions such as mint
.
You can deploy these to Ganache or any network for testing. The scripts simply use your current web3 configuration.
Using these will give you an accurate representation of gas costs, error conditions, and any oddities to their specific implementation.
Take a look at the samples directory for examples
Tokens
- SAI: ERC-20 with 18 decimals and a mint function
- USDC: an upgradable ERC-20 with 6 decimals and mint and blacklist functions
Usage example:
const { tokens } = require("hardlydifficult-eth"); const from = accounts[0]; // Deploy a SAI contract for testing const sai = await tokens.sai.deploy(web3, from); // Mint tokens await sai.mint(accounts[1], 100, { from });
Protocols
Unlock-Protocol
unlock-protocol.com:
Unlock is a membership protocol, built on a blockchain. It enables creators to monetize their content or software without relying on a middleman. It lets consumers manage all of their subscriptions in a consistent way, as well as earn discounts when they share the best content and applications they use.
Uniswap DEX
docs.Uniswap.io:
Designed with simplicity in mind, the Uniswap protocol provides an interface for seamless exchange of ERC20 tokens on Ethereum.
Contracts
Reusable contracts which can be imported into your Solidity contract.
- Interfaces for 3rd party contracts:
- Uniswap
- AntiOwnerProxy: set as the owner of a contract to allow anyone to make an ownerOnly call
难以破解的以太坊eth契约
用于以太坊eth的可重用契约和Javascript帮助程序的集合。
用法:
npm i hardlydifficult-eth
Javascript助手
这些帮助程序将部署契约,以便使用与mainnet上相同的字节码和配置进行测试,但您是启用特权操作(如mint)的所有者除外。
您可以将这些部署到Ganache或任何网络进行测试。这些脚本只使用您当前的web3配置。
使用这些工具可以准确地表示汽油成本、错误情况以及它们的具体实现中的任何异常情况。
查看示例目录
令牌
- 第三方合同的接口:Uniswap
- Uniswap
用法示例:
const { tokens } = require("hardlydifficult-eth"); const from = accounts[0]; // Deploy a SAI contract for testing const sai = await tokens.sai.deploy(web3, from); // Mint tokens await sai.mint(accounts[1], 100, { from });
协议
解锁协议
解锁-协议.com:
解锁是建立在区块链blockchain上的成员协议。它使创作者能够在不依赖中间商的情况下将内容或软件货币化。它允许用户以一致的方式管理所有订阅,并在共享他们使用的最佳内容和应用程序时赚取折扣。
Uniswap DEX
文档.Uniswap.io:
Uniswap协议设计简单,为以太坊eth上ERC20令牌的无缝交换提供了一个接口。
Contracts
可重复使用的合同,可以导入到您的Solidity合同中。
- AntiOwnerProxy:设置为合同的所有者,允许任何人进行自己的呼叫
- AntiOwnerProxy: set as the owner of a contract to allow anyone to make an ownerOnly call
部分转自网络,侵权联系删除区块链源码网
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计HardlyDifficult Ethereum Contracts – 困难的以太坊合同