MetaMask/metamask-inpage-provider】的更多相关文章

The most confusing part about porting MetaMask to a new platform is the way we provide the Web3 API over a series of streams between contexts. Once you understand how we create the InpageProvider in the inpage.js script, you will be able to understan…
https://github.com/MetaMask/metamask-inpage-provider Used to initialize the inpage ethereum provider injected by MetaMask. Installation npm install metamask-inpage-provider -S   metamask-inpage-provider/createErrorMiddleware.js 处理JSON-RPC调用是出现的错误,并将错…
https://github.com/MetaMask/metamask-extension/blob/develop/docs/porting_to_new_environment.md MetaMask has been under continuous development for nearly two years now, and we’ve gradually discovered some useful abstractions that have allowed us to gr…
https://github.com/MetaMask/zero-client MetaMask ZeroClient and backing iframe service architecture here is a comparison of the extension-based and iframe-based architecture metamask extension: dapp inpage.js <-> forwarder contentscript.js <->…
https://github.com/MetaMask/mascara (beta) Add MetaMask to your dapp even if the user doesn't have the extension installed 可以开始分析一下这里的代码,从package.json中我们可以看到start中的内容: "scripts": { "test": "echo \"Error: no test specified\&qu…
用来探测你的浏览器中有没有安装metamask插件 https://github.com/MetaMask/metamask-extension-provider MetaMask Extension Provider A module for providing a MetaMask provider to other WebExtensions. 即我们使用的: web3.currentProvider 这里的currentProvider就是metamask-extension-provi…
原文转载自「刘悦的技术博客」https://v3u.cn/a_id_213 上世纪九十年代,海湾战争的时候,一位美军军官担心他们的五角大楼会被敌人的一枚导弹干掉,从而导致在全球的美军基地处于瘫痪状态.这时候,有一位天才的科学家说,最好的中心就是没有中心.是的,这就是最朴素的去中心化思想,于是互联网出现了.一个没有互联网的时代是无法想象的,互联网的核心就是把一个信息分成若干的小件,用不同的途径传播出去,怎么方便怎么走. 三十年后的今天,去中心化身份逐渐被广泛采用.用户的部分在线活动在链上是公开的,…
The UI-即上图左下角metamask-ui部分,即其图形化界面 The MetaMask UI is essentially just a website that can be configured by passing it the API and state subscriptions from above. Anyone could make a UI that consumes these, effectively reskinning MetaMask. MetaMask UI…
2017-12-07 芯链团队 小明微思考 原文地址:https://mp.weixin.qq.com/s?__biz=MzA4Mzk2MzUzNg==&mid=2651223347&idx=1&sn=a243a8b171709fbcc8cbffda1190218d&chksm=841caeccb36b27da3cd5a36243c0b1846d77bd2d7f5f8d0ccf42f3532f4ac997fb544f909311&mpshare=1&scen…
启发: https://github.com/MetaMask/metamask-extension/issues/714 https://github.com/MetaMask/metamask-extension/issues/3383 () 下面是cryptokitties这个游戏使用metamask的方法: 如果你没有添加metamask并且打开它,你是进不去这个游戏的,你点击开始游戏,它会一直卡在这里 然后当你打开了metamask之后,这时候无论你连接的是什么网络,这时候应该是探测到…