找到约 14 条结果

问题 合约里因为分红 回流的原因 溢出了一些bnb,有什么方式可以取出来吗,有偿的,这是合约地址:0xF75e06EA851E45B612fe660e3A01Eb0314cc8d39

...twitter.com/myisland_dao?s=21 */ pragma solidity ^0.8.4; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); ``` /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf...

视频 智能合约审计、DeFi安全课程 | Tswap 重新审计(续)

...终保持的属性,例如 TSWAP 协议中的 x * y = k。 7. **WEIRD ERC20s**:具有非标准行为的 ERC20 代币,可能导致协议出现漏洞。 8. **代码覆盖率**:使用 Foundry 提供的工具来检查测试覆盖率,确保测试充分。 9. **工具链**:Slither、Adari...

文章 如何使用 NFTScan NFT API 在 Mint Blockchain 上开发 Web3 产品和协议

...涵盖的 NFT 数据全、种类丰富,提供一整套的接口来获得 ERC721 和 ERC1155 资产以及交易、项目、市场统计等信息,现在支持 60 多个针对 EVM 兼容链的公共接口,以及针对 Solana、Aptos、Bitcoin、TON 的一批相同模型的接口,很大程度上...

文章 每周以太坊进展 2021/01/10

...](https://joranhonig.nl/incremental-parsing-of-solidity/) * 一个使用 ERC1167 最小化代理合约的[便宜 erc20 token 生成器](https://www.reddit.com/r/ethereum/comments/ktbkcm/i_built_a_gasoptimized_erc20_token_generator/) * [给门外汉的 Solidity 教程视频](https://www.youtube.com...

文章 Solidity编码规范汇总篇

...里,有列出几种不同的命名风格,如下: - `b` (single lowercase letter) - `B` (single uppercase letter) - `lowercase` - `UPPERCASE` - `UPPER_CASE_WITH_UNDERSCORES` - `CapitalizedWords` (or CapWords) - `mixedCase` (differs from CapitalizedWords by initial lowercase character!)...

文章 使用 Motsu 测试 Arbitrum Stylus 智能合约

...gcontracts) - [操纵 VM 环境](#manipulating) - [实际示例:测试 ERC-20 代币](#practical) - [有效测试的技巧](#tips) - [结论](#conclusion) ## 介绍 随着以太坊扩容解决方案的成熟,Arbitrum Stylus 作为一个引人入胜的创新脱颖而出,它允许开...

文章 ENS注册流程解析

...这个ens base.reclaim(tokenId, owner); //转移erc721 NFT给owner base.transferFrom(address(this), owner, tokenId); } else {//不存在正向解析器,直接把注册者设为owner就可以了 require(addr == address(0)); e...

文章 以太坊前端交互库:Ethers.js v6 核心功能快速入门指南

...的 ABI(即 Solidity 签名)更简单易读。 **简化的 ERC-20 ABI** ```jsx const abi = [ "function decimals() view returns (string)", "function symbol() view returns (string)", "function balanceOf(address addr) view returns (uint)" ]; ...

文章 Solidity多重签名合约:打造超安全的区块链投票机制

...st"] } ``` `hardhat.config.ts`: ```typescript import { HardhatUserConfig } from "hardhat/config"; import "@nomicfoundation/hardhat-toolbox"; const config: HardhatUserConfig = { solidity: "0.8.20", networks: { hardhat: { chainId: 1337, }, }, }; export defa...

文章 每周以太坊进展 2023/2/25

...及 执行层确认执行   **EIP/标准** * 新的[EIP 核心和 ERC 编辑员](https://twitter.com/EthCatHerders/status/1628380724406456326) * ERC: * [ERC6538](https://eips.ethereum.org/EIPS/eip-6538):隐形元地址注册表 * [ERC6551](https://eips.ethereum.org/EIPS...

文章 第5节:世界杯竞猜(发奖)

...ier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; //合约继承,使用 is contract WorldCupToken is ERC20 { // 2. 一次性mint出来,不允许后续mint constructor( string memory name_, string memory symbol_, ...

文章 每周以太坊进展,2020-12-13

... [EIP3155](https://eips.ethereum.org/EIPS/eip-3155):EVM 跟踪规范 * [ERC3156](https://eips.ethereum.org/EIPS/eip-3156):闪电贷 ## 权益证明 * 最新的 [what’s new in eth2](https://hackmd.io/@benjaminion/eth2_news/https%3A%2F%2Fhackmd.io%2F%40benjaminion%2Fwnie2_201212) * 最...

文章 使用 Ethers.js 向智能合约发送静态调用

...我们应该会得到一个类似于下面的错误。 ``` 1 reason: 'ERC721: transfer caller is not owner nor approved', code: 'CALL_EXCEPTION', method: 'transferFrom(address,address,uint256)', errorArgs: [ 'ERC721: transfer caller is not owner nor approved' ], errorName: 'Error', errorSignatu...

文章 每周以太坊 2024/06/22

...Prague + Electra)升级,可能 2025 Q1 上线 - Frangio: [EOF 的 ERC721/1155 问题](https://ethereum-magicians.org/t/evm-object-format-eof/5727/96),safe 转账检查代币接收者会通过检查 `EXTCODESIZE` 来判断是否是合约,与 EOF(V1)不兼容。 ## [大阪 + F 星...