You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a follow up to #3088, which added the goal app method subcommand for invoking ABI methods.
In addition to standard ABI type arguments, the subcommand should support the special transaction argument types txn, pay, keyreg, acfg, axfer, afrz, and appl, as described in ARC-4.
This is related to #3205, which tracks adding foreign type support (i.e. account, asset, application types) to goal app method.
Scope
Extend the goal app method subcommand to support these new method argument types. At a high level it should:
Recognize when an argument is a transaction type or a standard ABI type. The transaction argument types are only valid as top-level arguments, so direct string comparison should be sufficient.
Load all transaction arguments. The syntax should probably be --arg path/to/unsigned/txn/file.msgp, so the subcommand needs load the transaction from a file and decode it.
Encode all non-transaction arguments as if the transaction arguments were not present.
If transaction arguments are present, create an atomic transaction group and place the transactions arguments before the final app call transaction. Calculate and assign a group ID to all transactions.
Open question: how can the transaction arguments be signed? Perhaps if the private key of every sender is known to the wallet, they can be signed automatically and submitted, and otherwise only an unsigned (or partially signed) group can be output from this command?
The text was updated successfully, but these errors were encountered:
Summary
This is a follow up to #3088, which added the
goal app method
subcommand for invoking ABI methods.In addition to standard ABI type arguments, the subcommand should support the special transaction argument types
txn
,pay
,keyreg
,acfg
,axfer
,afrz
, andappl
, as described in ARC-4.This is related to #3205, which tracks adding foreign type support (i.e.
account
,asset
,application
types) togoal app method
.Scope
Extend the
goal app method
subcommand to support these new method argument types. At a high level it should:--arg path/to/unsigned/txn/file.msgp
, so the subcommand needs load the transaction from a file and decode it.The text was updated successfully, but these errors were encountered: