Documentation
¶
Index ¶
Constants ¶
View Source
const (
CREATE_PRICE = 100
)
Variables ¶
View Source
var (
ErrInvalidDomain = errors.New("invalid domain name")
)
Functions ¶
Types ¶
type DomainCreate ¶
type DomainCreate struct {
Owner action.Address
Account action.Address
Name string
Price action.Amount
}
func (DomainCreate) Marshal ¶
func (dc DomainCreate) Marshal() ([]byte, error)
func (DomainCreate) OnsName ¶
func (dc DomainCreate) OnsName() string
func (DomainCreate) Signers ¶
func (dc DomainCreate) Signers() []action.Address
func (DomainCreate) Tags ¶
func (dc DomainCreate) Tags() common.KVPairs
func (DomainCreate) Type ¶
func (dc DomainCreate) Type() action.Type
func (*DomainCreate) Unmarshal ¶
func (dc *DomainCreate) Unmarshal(data []byte) error
type DomainPurchase ¶
type DomainPurchase struct {
Name string
Buyer action.Address
Account action.Address
Offering action.Amount
}
func (DomainPurchase) Marshal ¶
func (dp DomainPurchase) Marshal() ([]byte, error)
func (DomainPurchase) OnsName ¶
func (dp DomainPurchase) OnsName() string
func (DomainPurchase) Signers ¶
func (dp DomainPurchase) Signers() []action.Address
func (DomainPurchase) Tags ¶
func (dp DomainPurchase) Tags() common.KVPairs
func (DomainPurchase) Type ¶
func (dp DomainPurchase) Type() action.Type
func (*DomainPurchase) Unmarshal ¶
func (dp *DomainPurchase) Unmarshal(data []byte) error
type DomainSale ¶
type DomainSale struct {
DomainName string
OwnerAddress action.Address
Price action.Amount
CancelSale bool
}
func (DomainSale) Marshal ¶
func (s DomainSale) Marshal() ([]byte, error)
func (DomainSale) OnsName ¶
func (s DomainSale) OnsName() string
func (DomainSale) Signers ¶
func (s DomainSale) Signers() []action.Address
func (DomainSale) Tags ¶
func (s DomainSale) Tags() common.KVPairs
func (DomainSale) Type ¶
func (DomainSale) Type() action.Type
func (*DomainSale) Unmarshal ¶
func (s *DomainSale) Unmarshal(data []byte) error
type DomainSend ¶
DomainSend is a struct which encapsulates information required in a send to domain transaction. This is struct is serialized according to network strategy before sending over network.
func (DomainSend) Marshal ¶
func (s DomainSend) Marshal() ([]byte, error)
func (DomainSend) OnsName ¶
func (s DomainSend) OnsName() string
func (DomainSend) Signers ¶
func (s DomainSend) Signers() []action.Address
Signers gives the list of addresses of the signers (useful for verification_
func (DomainSend) Tags ¶
func (s DomainSend) Tags() common.KVPairs
func (DomainSend) Type ¶
func (s DomainSend) Type() action.Type
Type method gives the transaction type of the
func (*DomainSend) Unmarshal ¶
func (s *DomainSend) Unmarshal(data []byte) error
type DomainUpdate ¶
func (DomainUpdate) Marshal ¶
func (du DomainUpdate) Marshal() ([]byte, error)
func (DomainUpdate) OnsName ¶
func (du DomainUpdate) OnsName() string
func (DomainUpdate) Signers ¶
func (du DomainUpdate) Signers() []action.Address
func (DomainUpdate) Tags ¶
func (du DomainUpdate) Tags() common.KVPairs
func (DomainUpdate) Type ¶
func (du DomainUpdate) Type() action.Type
func (*DomainUpdate) Unmarshal ¶
func (du *DomainUpdate) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.