@@ -21,7 +21,6 @@ import (
2121
2222 "github.com/algorand/go-algorand/data/basics"
2323 "github.com/algorand/go-algorand/data/bookkeeping"
24- "github.com/algorand/go-algorand/data/transactions"
2524 "github.com/algorand/go-algorand/data/transactions/logic"
2625 "github.com/algorand/go-algorand/ledger/apply"
2726 "github.com/algorand/go-algorand/ledger/ledgercore"
@@ -31,28 +30,6 @@ import (
3130/* This file adds functions to roundCowState that make it more palatable for use
3231 outside of the ledger package. The LedgerForLogic interface expects them. */
3332
34- type cowForLogicLedger interface {
35- Get (addr basics.Address , withPendingRewards bool ) (ledgercore.AccountData , error )
36- GetAppParams (addr basics.Address , aidx basics.AppIndex ) (basics.AppParams , bool , error )
37- GetAssetParams (addr basics.Address , aidx basics.AssetIndex ) (basics.AssetParams , bool , error )
38- GetAssetHolding (addr basics.Address , aidx basics.AssetIndex ) (basics.AssetHolding , bool , error )
39- GetCreator (cidx basics.CreatableIndex , ctype basics.CreatableType ) (basics.Address , bool , error )
40- GetKey (addr basics.Address , aidx basics.AppIndex , global bool , key string , accountIdx uint64 ) (basics.TealValue , bool , error )
41- BuildEvalDelta (aidx basics.AppIndex , txn * transactions.Transaction ) (transactions.EvalDelta , error )
42-
43- SetKey (addr basics.Address , aidx basics.AppIndex , global bool , key string , value basics.TealValue , accountIdx uint64 ) error
44- DelKey (addr basics.Address , aidx basics.AppIndex , global bool , key string , accountIdx uint64 ) error
45-
46- round () basics.Round
47- prevTimestamp () int64
48- allocated (addr basics.Address , aidx basics.AppIndex , global bool ) (bool , error )
49- txnCounter () uint64
50- incTxnCount ()
51-
52- // The method should use the txtail to ensure MaxTxnLife+1 headers back are available
53- blockHdrCached (round basics.Round ) (bookkeeping.BlockHeader , error )
54- }
55-
5633func (cs * roundCowState ) AccountData (addr basics.Address ) (ledgercore.AccountData , error ) {
5734 record , err := cs .Get (addr , true )
5835 if err != nil {
0 commit comments