找到约 14 条结果

作品 ERC2612 链下无 gas 授权DEMO代码

.../ https://www.youtube.com/watch?v=_Lq59JULNhY ## 内容简介 使用ERC20一个很大的痛点是,当一个合约来接收 ERC20 ,必须要先让用户进行approve(授权) , 然后在合约里通过transferFrom 来接收代币。 这样就需要支付两笔交易手续费,同时...

文章 使用 EIP712 进行链下 Permit 和白名单设计

...ma solidity ^0.8.20; import "lib/openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Permit.sol"; import "lib/openzeppelin-contracts/contracts/access/Ownable.sol"; contract YHBToken is ERC20Permit, Ownable { constructor() ERC20("YHB Token", "YHB") ERC20Permit("YHB Token") Ownabl...

文章 查询示例 - OpenZeppelin 文档

## 查询示例 ### ERC20 #### 总供应量和最大的代币持有者 ```graphql hljs { erc20Contract(id: "") { # id 是小写的 token 地址 totalSupply { value } balances(orderBy: valueExact, orderDirection: desc, where: { account_not: null }) { # 按照 valueExact 降序...

文章 发布一款ERC20代币,并开发成Dapp

...过于各种各样的代币和NFT了。 今天,我们就来发布一款ERC20代币,并且开发成一个Dapp。 ERC-20标准规定了一个符合其标准的代币合约,一定有以下的属性: ``` interface ERC20 { //方法 function totalSupply() view returns (uint256 total...

文章 什么是Paymaster ?(ERC-4337)

...(即,用区块链的原生货币支付 gas 费用),或者接受以 ERC-20 Token(例如 USDC)支付 gas 费用,而不是使用区块链的原生货币。 [Paymaster](https://www.alchemy.com/gas-manager) 智能合约是在以太坊改进提案 (EIP) 4337 中引入的,并与其他账...

文章 部署Solidity智能合约到Solana

...paper.pdf)和[博客文章](https://medium.com/solana-labs)。 ## 部署ERC-20 代币到Solana 部署Solidity编写的ERC-20到Solana需要安装以下所有工具并运行部署脚本: ### 1. 安装Solang 安装Solang的最佳方式是使用[VS Code 插件](https://solang.readthedocs....

文章 Energy-Fi:基于 DePIN 的能源资产化协议设计与实现

...----------- | | **资产层** | ENT 代币 + GCC NFT | OpenZeppelin V5 ERC20/ERC721 | 能源结算与碳信用资产化 | | **数据层** | Chainlink Functions | 去中心化预言机网络 | 实时抽取物理电网负荷数据 | | **逻辑层** | Algorithmic Pricing...

文章 Ethernaut 题库闯关 #21 — Dex

...ier: MIT pragma solidity ^0.6.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import '@openzeppelin/contracts/math/SafeMath.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; contract Dex is Ownable { using Safe...

文章 在 Arbitrum 上使用 Stylus 智能合约项目

...划线) 作为 crate root: ```rust use openzeppelin_stylus::token::erc20::{Erc20, IErc20}; use openzeppelin_stylus::access::ownable::{Ownable, IOwnable}; use openzeppelin_stylus::utils::pausable::{Pausable, IPausable}; use openzeppelin_stylus::utils::introspection::erc165::IErc165; ``` ...

文章 更新 #2:与非标准 ERC20 通缩代币的事件

## 更新 \#2:与非标准 ERC20 通货紧缩代币的事件 我们的长远愿景是 Balancer 协议成为领先的 DeFi 建筑模块,最终持有数十亿美元的资产。自我们上线以来,Balancer 的使用量激增让我们倍感谦卑,并且我们相信我们正在朝着实现这...

文章 链上房产 RWA 技术架构全解析:基于 ERC‑1155 的资产代币化、碎片化交易与自动分红实战

... # 一、系统架构设计 ### 1.1 代币标准选型:为何选择 ERC-1155? 房产 RWA 场景需要同时支持 "单套房产碎片化持有" 和 "多套房产统一管理",ERC-20(同质化代币)和 ERC-721(非同质化代币)均无法高效满足需求,而 ERC-1155 的多...

文章 2022哔哩哔哩 1024程序员节 T4 区块链详解

...se-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity 0.8.12; import "./IERC20.sol"; import "./IERC20Metadata.sol"; import "./Context.sol"; //import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; //import "@openzeppelin/contracts/t...

问题 怎么搭建基于erc20搭建usdt钱包节点

想寻求大神可以帮忙说下怎么搭建基于erc20搭建usdt钱包节点、或者去哪里找一下学习资料。

问题 基于erc20搭建usdt钱包节点

想学一下基于erc20搭建usdt钱包节点,这个是不是我安装好geth客户端以后。就可以通过api 转usdt了?