@@ -29,7 +29,7 @@ import (
2929
3030 "github.com/algorand/go-algorand/config"
3131 "github.com/algorand/go-algorand/crypto"
32- generatedV2 "github.com/algorand/go-algorand/daemon/algod/api/server/v2/generated"
32+ "github.com/algorand/go-algorand/daemon/algod/api/server/v2/generated/model "
3333 "github.com/algorand/go-algorand/data/basics"
3434 "github.com/algorand/go-algorand/data/bookkeeping"
3535 "github.com/algorand/go-algorand/data/transactions"
@@ -155,18 +155,18 @@ var clerkCmd = &cobra.Command{
155155 },
156156}
157157
158- func waitForCommit (client libgoal.Client , txid string , transactionLastValidRound uint64 ) (txn generatedV2 .PendingTransactionResponse , err error ) {
158+ func waitForCommit (client libgoal.Client , txid string , transactionLastValidRound uint64 ) (txn model .PendingTransactionResponse , err error ) {
159159 // Get current round information
160160 stat , err := client .Status ()
161161 if err != nil {
162- return generatedV2 .PendingTransactionResponse {}, fmt .Errorf (errorRequestFail , err )
162+ return model .PendingTransactionResponse {}, fmt .Errorf (errorRequestFail , err )
163163 }
164164
165165 for {
166166 // Check if we know about the transaction yet
167167 txn , err = client .PendingTransactionInformation (txid )
168168 if err != nil {
169- return generatedV2 .PendingTransactionResponse {}, fmt .Errorf (errorRequestFail , err )
169+ return model .PendingTransactionResponse {}, fmt .Errorf (errorRequestFail , err )
170170 }
171171
172172 if txn .ConfirmedRound != nil && * txn .ConfirmedRound > 0 {
@@ -175,21 +175,21 @@ func waitForCommit(client libgoal.Client, txid string, transactionLastValidRound
175175 }
176176
177177 if txn .PoolError != "" {
178- return generatedV2 .PendingTransactionResponse {}, fmt .Errorf (txPoolError , txid , txn .PoolError )
178+ return model .PendingTransactionResponse {}, fmt .Errorf (txPoolError , txid , txn .PoolError )
179179 }
180180
181181 // check if we've already committed to the block number equals to the transaction's last valid round.
182182 // if this is the case, the transaction would not be included in the blockchain, and we can exit right
183183 // here.
184184 if transactionLastValidRound > 0 && stat .LastRound >= transactionLastValidRound {
185- return generatedV2 .PendingTransactionResponse {}, fmt .Errorf (errorTransactionExpired , txid )
185+ return model .PendingTransactionResponse {}, fmt .Errorf (errorTransactionExpired , txid )
186186 }
187187
188188 reportInfof (infoTxPending , txid , stat .LastRound )
189189 // WaitForRound waits until round "stat.LastRound+1" is committed
190190 stat , err = client .WaitForRound (stat .LastRound )
191191 if err != nil {
192- return generatedV2 .PendingTransactionResponse {}, fmt .Errorf (errorRequestFail , err )
192+ return model .PendingTransactionResponse {}, fmt .Errorf (errorRequestFail , err )
193193 }
194194 }
195195 return
@@ -1203,7 +1203,7 @@ var dryrunRemoteCmd = &cobra.Command{
12031203 return
12041204 }
12051205
1206- stackToString := func (stack []generatedV2 .TealValue ) string {
1206+ stackToString := func (stack []model .TealValue ) string {
12071207 result := make ([]string , len (stack ))
12081208 for i , sv := range stack {
12091209 if sv .Type == uint64 (basics .TealBytesType ) {
@@ -1217,7 +1217,7 @@ var dryrunRemoteCmd = &cobra.Command{
12171217 if len (resp .Txns ) > 0 {
12181218 for i , txnResult := range resp .Txns {
12191219 var msgs []string
1220- var trace []generatedV2 .DryrunState
1220+ var trace []model .DryrunState
12211221 if txnResult .AppCallMessages != nil && len (* txnResult .AppCallMessages ) > 0 {
12221222 msgs = * txnResult .AppCallMessages
12231223 if txnResult .AppCallTrace != nil {
0 commit comments