-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend txlink
, ?help
, and Wallet Connect to Support maketx run
#3283
Comments
A key consideration is whether Exploration examples: txlink.Run(`boards2.GetBoard("boardName").GetDAO().Propose(
"proposal title",
ProposalTemplate("arg1", "arg2"),
) |
Here's an example illustrating how package main
import "r/sys/users"
import "r/foo20"
func main() {
recipient := users.Resolve("@moul")
foo20.Transfer(recipient, 1337)
} A smart wallet could resolve |
Another thing to consider when we want the equivalent of txlink.AddPackage(txlink.ScriptPath(), `
package main
import "gno.land/r/boards2"
func init() {
boards2.GetBoard("boardName").GetDAO().Propose(
"proposal title",
func() {
// EDIT BELOW: Add proposal logic
// ...
})
}`) |
This feature can be a great experience for users. There are a few things to consider
|
We should focus on creating a great gnoweb experience by developing hyperlinks that provide sufficient data for gnoweb to generate CLI documentation. Then, Adena and other wallets should simply follow gnoweb's lead. -> #2602 |
Extend
p/txlink
, the?help
page, and wallet connect support to handlemaketx run
, enabling advanced calls with complex types and logic. This eliminates boilerplate and supports direct interactions, like working with DAOs and reusable scripts.Example
Here’s an example of a Go script showcasing this feature:
With something like this generated in the
Render()
func ofboards2
.Probably generated with:
Goals
txlink
:?help
Page:// EDIT BELOW
to guide edits.Wallets:
Let’s discuss and align on implementation details.
cc @leohhhn @zivkovicmilos @jinoosss @jefft0 @jeronimoalbi @thehowl
The text was updated successfully, but these errors were encountered: