test

package
v0.0.0-...-491e088 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version   = "v1.5.1"
	DebugFile = "debug.toml"
)

Variables

View Source
var (
	Path string
)

Functions

func AllowanceToLoopring

func AllowanceToLoopring(tokens1 []common.Address, orderAccounts1 []accounts.Account)

func Cfg

func Cfg() *config.GlobalConfig

func CreateOrder

func CreateOrder(tokenS, tokenB, owner common.Address, amountS, amountB, lrcFee *big.Int) *types.Order

func Delegate

func Delegate() common.Address

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 Protocol

func Protocol() common.Address

func Rds

func Rds() dao.RdsService

func SetTokenBalance

func SetTokenBalance(account, tokenAddress common.Address, amount *big.Int)

给lrc,rdn等dummy合约支持的代币充值

func SetTokenBalances

func SetTokenBalances()

setbalance after deploy token by protocol 不能设置weth

Types

type AccountEntity

type AccountEntity struct {
	Address    common.Address
	Passphrase string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL