Documentation ¶
Index ¶
- Constants
- Variables
- func AllowanceToLoopring(tokens1 []common.Address, orderAccounts1 []accounts.Account)
- func Cfg() *node.GlobalConfig
- func CreateOrder(tokenS, tokenB, owner common.Address, amountS, amountB, lrcFee *big.Int) types.Order
- func CreateOrderState(tokenS, tokenB, owner common.Address, amountS, amountB, lrcFee *big.Int) *types.Order
- func Delegate() common.Address
- func DelegateAbi() *abi.ABI
- func DelegateAddress() common.Address
- func Erc20Abi() *abi.ABI
- func GenerateAccountManager() accountmanager.AccountManager
- func GenerateMarketCap() *marketcap.CapProvider_CoinMarketCap
- func GenerateOrderManager() *ordermanager.OrderManagerImpl
- func GenerateOrderView() *orderviewer.OrderViewerImpl
- func GenerateUserManager() *usermanager.UserManagerImpl
- func LoadConfig() *node.GlobalConfig
- func LprAbi() *abi.ABI
- func LrcAddress() common.Address
- func PrepareTestData()
- func Producer() *kafka.MessageProducer
- func Protocol() common.Address
- func Rds() *dao.RdsService
- func SetTokenBalance(account, tokenAddress common.Address, amount *big.Int)
- func SetTokenBalances()
- func TokenRegisterAbi() *abi.ABI
- func TokenRegisterAddress() common.Address
- func WethAbi() *abi.ABI
- type AccountEntity
- type TestEntity
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 Cfg ¶
func Cfg() *node.GlobalConfig
func CreateOrder ¶
func CreateOrderState ¶
func DelegateAbi ¶
func DelegateAddress ¶
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 LrcAddress ¶
func PrepareTestData ¶
func PrepareTestData()
func Producer ¶
func Producer() *kafka.MessageProducer
func Rds ¶
func Rds() *dao.RdsService
func SetTokenBalance ¶
给lrc,rdn等dummy合约支持的代币充值
func TokenRegisterAbi ¶
func TokenRegisterAddress ¶
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.