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
* add abi encoding
* accord with go-algorand code format
* minor modification
* add partition test
* resolve review, need more testcase rewrite
* move from cmd/goal to data, resolve review
* rewrite is-dynamic, dynamic array
* update dynamic array 0 element support, test needed
* minor
* minor
* minor
* add more testcase for abi encode/decode
* update comments in encoding test
* minor
* attempt to split abi.go into 2 files
* separate abi files to smaller files
* resolve reviews, work on random gen tuple value encode/decode
* add random tuple test
* remove math-rand, use crypto-rand
* minor
* minor
* some change requested from community
* fix for 1 corner case
* resolve review comments
* resolve review comments
* minor
* minor
* update encode slot capacity
* minor
* resolve reviews
* minor update on bool bytelen calculate
* update encode/decode from types
* random test remain to be modified
* testing variable renaming, encode int support (u)int types
* update test scripts and remove value struct
* follow golint
* partly resolving comments
* whoops uint encoding update
* update int decode to primitive types method
* go fmt
* update parseAppArg to accept abi input (attempt)
* need to check cmdline arg validity
* update unmarshal from JSON in ABI type
* unmarshal from json for ABI type
* update ABI type unmarshal values from JSON bytes
* update ABI methods for string/array/address
* update unmarshal from JSON in abi
* fix for error in ufixed json unmarshal
* fix
* update on method sub command
* minor
* probably better separate abi json to a single file
* i just want to add a required flag plz...
* minor fix on interface from json
* consider some rough test cases
* minor
* add partition test
* update static uint test
* update marshal/unmarshal json methods for abi
* marshal byte array to b64 string
* abi json polish
* update golangci lint rules
* revert golangci config
* update method impl
* update method signature return type check
* minor
* copy-paste code from call app cmd
* minor
* add method flag to txn flags
* minor
* update changes
* minor
* moving helper functions to abi
* update comments
* update method app call
* resolve part in abi impl
* add oncomplete support
* minor
* try to use stringarrayvar
* minor
* update goal return log handing process
* go simple
* add a line of e2e test for now
* update
* minor
* minor
* minor
* go fmt
* approval/clear prog nil
* discard all changes to e2d-app-cross-round, going to write separately e2e test
* update e2d tests
* check ret valu
* use constant
* resolve review partly
* resolve review on code reformatting
* resolve review on code reformatting, use code chunk for datadir and client
* go fmt
* export tuple type maker
* update comments in e2e test
* update filter empty string
* resolve issues with JSON abi
* minor
appCmd.PersistentFlags().StringVarP(&walletName, "wallet", "w", "", "Set the wallet to be used for the selected operation")
84
-
appCmd.PersistentFlags().StringSliceVar(&appArgs, "app-arg", nil, "Args to encode for application transactions (all will be encoded to a byte slice). For ints, use the form 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.")
92
+
appCmd.PersistentFlags().StringArrayVar(&appArgs, "app-arg", nil, "Args to encode for application transactions (all will be encoded to a byte slice). For ints, use the form 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.")
85
93
appCmd.PersistentFlags().StringSliceVar(&foreignApps, "foreign-app", nil, "Indexes of other apps whose global state is read in this transaction")
86
94
appCmd.PersistentFlags().StringSliceVar(&foreignAssets, "foreign-asset", nil, "Indexes of assets whose parameters are read in this transaction")
87
95
appCmd.PersistentFlags().StringSliceVar(&appStrAccounts, "app-account", nil, "Accounts that may be accessed from application logic")
@@ -108,6 +116,10 @@ func init() {
108
116
deleteAppCmd.Flags().StringVarP(&account, "from", "f", "", "Account to send delete transaction from")
109
117
readStateAppCmd.Flags().StringVarP(&account, "from", "f", "", "Account to fetch state from")
110
118
updateAppCmd.Flags().StringVarP(&account, "from", "f", "", "Account to send update transaction from")
119
+
methodAppCmd.Flags().StringVarP(&account, "from", "f", "", "Account to call method from")
120
+
121
+
methodAppCmd.Flags().StringVar(&method, "method", "", "Method to be called")
122
+
methodAppCmd.Flags().StringArrayVar(&methodArgs, "arg", nil, "Args to pass in for calling a method")
111
123
112
124
// Can't use PersistentFlags on the root because for some reason marking
113
125
// a root command as required with MarkPersistentFlagRequired isn't
// Add common transaction flags to all txn-generating app commands
125
138
addTxnFlags(createAppCmd)
@@ -129,6 +142,7 @@ func init() {
129
142
addTxnFlags(optInAppCmd)
130
143
addTxnFlags(closeOutAppCmd)
131
144
addTxnFlags(clearAppCmd)
145
+
addTxnFlags(methodAppCmd)
132
146
133
147
readStateAppCmd.Flags().BoolVar(&fetchLocal, "local", false, "Fetch account-specific state for this application. `--from` address is required when using this flag")
134
148
readStateAppCmd.Flags().BoolVar(&fetchGlobal, "global", false, "Fetch global state for this application.")
@@ -161,6 +175,13 @@ func init() {
161
175
readStateAppCmd.MarkFlagRequired("app-id")
162
176
163
177
infoAppCmd.MarkFlagRequired("app-id")
178
+
179
+
methodAppCmd.MarkFlagRequired("method") // nolint:errcheck // follow previous required flag format
@@ -594,8 +652,7 @@ var closeOutAppCmd = &cobra.Command{
594
652
Long: `Close an account out of an application, removing local state from your account. The application must still exist. If it doesn't, use 'goal app clear'.`,
0 commit comments