BoringSolidity – 钻孔硬度区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,BoringSolidity – 钻孔硬度区块链毕设代写 是一篇很好的国外资料

BoringSolidity

BoringSolidity - 钻孔硬度

BoringSolidity is a collection of general purpose Solidity contracts that have been reasonably optimized, reviewed and tested. Still, they come with no guarantees and are provided as-is.

BoringMath Library

Once we can move to Solidity 0.8.0 we won’t need this anymore, but until then, this library helps protect against over and under flows. Also contains some support for uint128.

There is no div function because never solidity versions will revert on a division by 0.

BoringMath128 does not contain a mul function on purpose. To avoid overflows during calculations, it’s encouraged to convert to uint256 first.

BoringOwnable

This is a combination of the well known Ownable and Claimable patterns. It’s streamlined to reduce the amoutn of functions exposed for gas savings.

BoringERC20

This is not a full ERC20 implementation, as it’s missing totalSupply. It’s optimized for minimal gas usage while remaining easy to read.

BoringFactory

Simple universal factory to create minimal proxies from masterContracts.

BoringBatchable

Extension to be added to any contract to allow calling multiple functions on the contract in a batch (a single EOA call). The EIP 2612 permit proxy function is included because it’s common to approve spending before calling other functions on a contract.

BoringRebase

The Rebase struct and RebaseLibary make it easy to track amounts and shares in a single storage slot. This will limit amounts and shares to 128 bits, but if used for token balances, this should be enough for pretty much all tokens that have real use.

Licence

MIT


BoringSolidity

BoringSolidity是经过合理优化、审查和测试的通用坚固性合同的集合。尽管如此,他们来没有任何保证,是按原样提供的。

一旦我们可以移动到Solidity 0.8.0,我们就不再需要它了,但在此之前,这个库有助于防止过流和过流。还包含对uint128的一些支持。

BoringMath Library

没有div函数,因为never solidity版本将在除以0时恢复。

BoringMath128故意不包含mul函数。为了避免在计算过程中溢出,建议先转换为uint256。

这是众所周知的可拥有和可索赔模式的组合。它的流线型,以减少数量的功能暴露的气体节省。

BoringWnable

这不是完整的ERC20实现,因为它缺少totalSupply。它的优化最小的气体使用,同时保持容易阅读。

BoringRec20

简单的通用工厂,从主合同创建最小代理。

BoringFactory

添加到任何协定中的扩展,允许在一个批处理中对协定调用多个函数(单个EOA调用)。之所以包含eip2612 permit proxy函数,是因为通常在调用合同上的其他函数之前先批准支出。

BoringBatchable

Rebase结构和RebaseLibary使跟踪单个存储插槽中的数量和共享变得很容易。这将限制数量和份额为128位,但如果用于令牌余额,这应该足以满足几乎所有具有实际用途的令牌。

BoringRebase

MIT

许可证

MIT

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

www.interchains.cc

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

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » BoringSolidity – 钻孔硬度区块链毕设代写

提供最优质的资源集合

立即查看 了解详情