Documentation ¶
Index ¶
- Constants
- Variables
- func AllowanceToLoopring(tokens1 []common.Address, orderAccounts1 []accounts.Account)
- func Cfg() *config.GlobalConfig
- func CreateOrder(tokenS, tokenB, owner common.Address, amountS, amountB, lrcFee *big.Int) *types.Order
- func Delegate() common.Address
- func GenerateAccountManager() market.AccountManager
- func GenerateDaoService() *dao.RdsServiceImpl
- func GenerateMarketCap() *marketcap.CapProvider_CoinMarketCap
- func GenerateOrderManager() *ordermanager.OrderManagerImpl
- func GenerateUserManager() *usermanager.UserManagerImpl
- func LoadConfig() *config.GlobalConfig
- func PrepareTestData()
- func Protocol() common.Address
- func Rds() dao.RdsService
- func SetTokenBalance(account, tokenAddress common.Address, amount *big.Int)
- func SetTokenBalances()
- type AccountEntity
- type TestEntity
Constants ¶
View Source
const ( Version = "v1.5.1" DebugFile = "debug.toml" )
Variables ¶
View Source
var (
Path string
)
Functions ¶
func AllowanceToLoopring ¶
func Cfg ¶
func Cfg() *config.GlobalConfig
func CreateOrder ¶
func GenerateAccountManager ¶
func GenerateAccountManager() market.AccountManager
func GenerateDaoService ¶
func GenerateDaoService() *dao.RdsServiceImpl
func GenerateMarketCap ¶
func GenerateMarketCap() *marketcap.CapProvider_CoinMarketCap
func GenerateOrderManager ¶
func GenerateOrderManager() *ordermanager.OrderManagerImpl
func GenerateUserManager ¶
func GenerateUserManager() *usermanager.UserManagerImpl
func LoadConfig ¶
func LoadConfig() *config.GlobalConfig
func PrepareTestData ¶
func PrepareTestData()
func Rds ¶
func Rds() dao.RdsService
func SetTokenBalance ¶
给lrc,rdn等dummy合约支持的代币充值
Types ¶
type AccountEntity ¶
type TestEntity ¶
type TestEntity struct { Tokens map[string]common.Address Accounts []AccountEntity Creator AccountEntity KeystoreDir string AllowanceAmount int64 PrivateKey crypto.EthPrivateKeyCrypto }
func Entity ¶
func Entity() *TestEntity
func LoadTestData ¶
func LoadTestData() *TestEntity
Click to show internal directories.
Click to hide internal directories.