Documentation
¶
Index ¶
Constants ¶
View Source
const MaxAssociateCount = MaxDivisionCount * 20
View Source
const MaxBranchCount = 50
View Source
const MaxCityCount = MaxProvinceCount * 20
View Source
const MaxDivisionCount = MaxBranchCount * 50
View Source
const MaxMemberCount = 2000
View Source
const MaxMerchantCount = 500
View Source
const MaxProvinceCount = 20
View Source
const MaxZoneCount = MaxCityCount * 20
View Source
const NetworkID nineora.NetworkID = "7304da03e436ea87b0426440fb01b272"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AreaAgent ¶
type AreaAgent struct {
Type string
UID string
Email string
Wallet *nineora.Wallet
ChainAcc *nineora.Account
Superior nineora.Link
// contains filtered or unexported fields
}
func RandProvince ¶
func RandProvince() *AreaAgent
type CommunityAgent ¶
type CommunityAgent struct {
Type string
UID string
Email string
Wallet *nineora.Wallet
ChainAcc *nineora.Account
Superior nineora.Link
// contains filtered or unexported fields
}
func AssociateGet ¶
func AssociateGet(link nineora.Link) *CommunityAgent
func NewCommunity ¶
func NewCommunity(t string, superior nineora.Link) *CommunityAgent
func RandAssociate ¶
func RandAssociate() *CommunityAgent
func RandBranch ¶
func RandBranch() *CommunityAgent
func RandDivision ¶
func RandDivision() *CommunityAgent
type Member ¶
type Member struct {
UID string
Email string
Wallet *nineora.Wallet
ChainAcc *nineora.Account
Merchant nineora.Link
// contains filtered or unexported fields
}
func RandMember ¶
func RandMember() *Member
type Merchant ¶
type Merchant struct {
UID string
Email string
Wallet *nineora.Wallet
ChainAcc *nineora.Account
Node *nineora.Node
Associate nineora.Link
InvestRatio uint64
// contains filtered or unexported fields
}
func GetMerchantByLink ¶
func NewMerchant ¶
func NewMerchant() *Merchant
func RandMerchant ¶
func RandMerchant() *Merchant
Click to show internal directories.
Click to hide internal directories.