apeworx / ape-frame Goto Github PK
View Code? Open in Web Editor NEWFrame (https://frame.sh) account plugin for the Ape Framework
Home Page: https://www.apeworx.io/
License: Apache License 2.0
Frame (https://frame.sh) account plugin for the Ape Framework
Home Page: https://www.apeworx.io/
License: Apache License 2.0
ape-frame/ape_frame/providers.py
Line 57 in c2c1545
newer frame versions connect to all added networks, so we don't need to switch to a network to send requests.
the docs are lacking but from what i can tell, there are at least two methods available:
found here. we can add a chainId
parameter to any request and it will be processed on the corresponding chain. this seems very simple to implement and looks like a preferred way to go.
found here and loosely based on caip-27. here a request is wrapped into wallet_request
structure:
{
"jsonrpc": "2.0",
"id": 1,
"method": "wallet_request",
"params": {
"chainId": "eip155:1",
"request": {
"method": "eth_blockNumber",
"params": [],
},
},
}
both seem to work but the first option sounds way easier. the only thing to clarify is whether frame plans to keep support for it.
depends on ApeWorX/ape#1508
when ape adds support to pass eip-712 messages for signing, it would be possible to use eth_signTypedData_v4
and display the full message in frame instead of just its hash.
ape-frame/ape_frame/accounts.py
Line 39 in c2c1545
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.