github.com/koko1123/flow-go-1@v0.29.6/module/sdk.go (about) 1 package module 2 3 import ( 4 "context" 5 6 "github.com/onflow/cadence" 7 8 sdk "github.com/onflow/flow-go-sdk" 9 ) 10 11 // SDKClientWrapper is a temporary solution to mocking the `sdk.Client` interface from `flow-go-sdk` 12 type SDKClientWrapper interface { 13 GetAccount(context.Context, sdk.Address) (*sdk.Account, error) 14 GetAccountAtLatestBlock(context.Context, sdk.Address) (*sdk.Account, error) 15 SendTransaction(context.Context, sdk.Transaction) error 16 GetLatestBlock(context.Context, bool) (*sdk.Block, error) 17 GetTransactionResult(context.Context, sdk.Identifier) (*sdk.TransactionResult, error) 18 ExecuteScriptAtLatestBlock(context.Context, []byte, []cadence.Value) (cadence.Value, error) 19 ExecuteScriptAtBlockID(context.Context, sdk.Identifier, []byte, []cadence.Value) (cadence.Value, error) 20 }