test

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version      = "v1.5.1"
	DebugFile    = "debug.toml"
	KeystorePath = "/Users/fukun/projects/gohome/src/github.com/Loopring/relay-cluster/ks_dir"
)

Variables

View Source
var (
	Path string
)

Functions

func AllowanceToLoopring

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

func Cfg

func Cfg() *node.GlobalConfig

func CreateOrder

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

func CreateOrderState

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

func Delegate

func Delegate() common.Address

func DelegateAbi

func DelegateAbi() *abi.ABI

func DelegateAddress

func DelegateAddress() common.Address

func Erc20Abi

func Erc20Abi() *abi.ABI

func GenerateAccountManager

func GenerateAccountManager() accountmanager.AccountManager

func GenerateMarketCap

func GenerateMarketCap() *marketcap.CapProvider_CoinMarketCap

func GenerateOrderManager

func GenerateOrderManager() *ordermanager.OrderManagerImpl

func GenerateOrderView

func GenerateOrderView() *orderviewer.OrderViewerImpl

func GenerateUserManager

func GenerateUserManager() *usermanager.UserManagerImpl

func LoadConfig

func LoadConfig() *node.GlobalConfig

func LprAbi

func LprAbi() *abi.ABI

func LrcAddress

func LrcAddress() common.Address

func PrepareTestData

func PrepareTestData()

func Producer

func Producer() *kafka.MessageProducer

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

func TokenRegisterAbi

func TokenRegisterAbi() *abi.ABI

func TokenRegisterAddress

func TokenRegisterAddress() common.Address

func WethAbi

func WethAbi() *abi.ABI

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