graphprotocol / graphprotocol/graph-node

Reading Private Data from Contract

未关闭
#2,102 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

chains/ethereum enhancement
主要语言
Rust
星标
3.2k
派生
1.1k
平均合并
4 天 1 小时
30 天内合并 PR
1

描述

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
its not implemented

What is the expected behavior?
with the web3 js library i can call web3.storageAt(contractaddress, index) to retrieve even private declared constants.
this is at this point not possible with AssemblyScript mappings API

example: https://github.com/emptysetsquad/dollar/blob/master/protocol/contracts/Constants.sol#L75

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,将 issue 中描述的 web3.js storageAt 行为与 AssemblyScript mappings API 进行比较。检查链接的 Constants.sol 示例,以了解访问 private constant 的情况。当 mappings API 能够获取所请求的 contract storage 值,并且已根据 web3.js 示例验证其行为时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, solidity
领域
backend-api-design, blockchain
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。