Documentation
¶
Index ¶
- Variables
- type Asset
- type AssetStore
- type CosiSignature
- func (s *CosiSignature) Bytes() []byte
- func (s *CosiSignature) FromBytes(bts []byte) error
- func (s *CosiSignature) MarshalBinary() (data []byte, err error)
- func (s *CosiSignature) MarshalJSON() ([]byte, error)
- func (s *CosiSignature) Scan(value interface{}) error
- func (s *CosiSignature) String() string
- func (s *CosiSignature) UnmarshalBinary(data []byte) error
- func (s *CosiSignature) UnmarshalJSON(b []byte) error
- func (s *CosiSignature) Value() (driver.Value, error)
- type En256CosiSignature
- func (s *En256CosiSignature) Bytes() []byte
- func (s *En256CosiSignature) FromBytes(bts []byte) error
- func (s *En256CosiSignature) MarshalBinary() (data []byte, err error)
- func (s *En256CosiSignature) MarshalJSON() ([]byte, error)
- func (s *En256CosiSignature) Scan(value interface{}) error
- func (s *En256CosiSignature) String() string
- func (s *En256CosiSignature) UnmarshalBinary(data []byte) error
- func (s *En256CosiSignature) UnmarshalJSON(b []byte) error
- func (s *En256CosiSignature) Value() (driver.Value, error)
- type En256Signature
- type PriceData
- type PriceRequest
- type Receiver
- type Signer
- type Snapshot
- type System
- type Transfer
- type WalletService
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidTrace = errors.New("invalid trace")
)
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
ID uint `sql:"PRIMARY_KEY" json:"id"`
AssetID string `json:"asset_id,omitempty"`
Symbol string `json:"symbol,omitempty"`
Price decimal.Decimal `sql:"type:decimal(24,12)" json:"price,omitempty"`
PriceDuration int64 `json:"price_duration,omitempty"`
PriceUpdatedAt *time.Time `json:"price_updated_at,omitempty"`
}
type AssetStore ¶
type CosiSignature ¶
func (*CosiSignature) Bytes ¶
func (s *CosiSignature) Bytes() []byte
func (*CosiSignature) FromBytes ¶
func (s *CosiSignature) FromBytes(bts []byte) error
func (*CosiSignature) MarshalBinary ¶
func (s *CosiSignature) MarshalBinary() (data []byte, err error)
func (*CosiSignature) MarshalJSON ¶
func (s *CosiSignature) MarshalJSON() ([]byte, error)
func (*CosiSignature) Scan ¶
func (s *CosiSignature) Scan(value interface{}) error
Scan implements the sql.Scanner interface for database deserialization.
func (*CosiSignature) String ¶
func (s *CosiSignature) String() string
func (*CosiSignature) UnmarshalBinary ¶
func (s *CosiSignature) UnmarshalBinary(data []byte) error
func (*CosiSignature) UnmarshalJSON ¶
func (s *CosiSignature) UnmarshalJSON(b []byte) error
type En256CosiSignature ¶
func (*En256CosiSignature) Bytes ¶
func (s *En256CosiSignature) Bytes() []byte
func (*En256CosiSignature) FromBytes ¶
func (s *En256CosiSignature) FromBytes(bts []byte) error
func (*En256CosiSignature) MarshalBinary ¶
func (s *En256CosiSignature) MarshalBinary() (data []byte, err error)
func (*En256CosiSignature) MarshalJSON ¶
func (s *En256CosiSignature) MarshalJSON() ([]byte, error)
func (*En256CosiSignature) Scan ¶
func (s *En256CosiSignature) Scan(value interface{}) error
Scan implements the sql.Scanner interface for database deserialization.
func (*En256CosiSignature) String ¶
func (s *En256CosiSignature) String() string
func (*En256CosiSignature) UnmarshalBinary ¶
func (s *En256CosiSignature) UnmarshalBinary(data []byte) error
func (*En256CosiSignature) UnmarshalJSON ¶
func (s *En256CosiSignature) UnmarshalJSON(b []byte) error
type En256Signature ¶
func (*En256Signature) MarshalBinary ¶
func (s *En256Signature) MarshalBinary() ([]byte, error)
type PriceData ¶
type PriceData struct {
Timestamp int64 `json:"t,omitempty"`
AssetID string `json:"a,omitempty"`
Price decimal.Decimal `json:"p,omitempty"`
Signature *CosiSignature `json:"s,omitempty"`
En256Signature *En256CosiSignature `json:"es,omitempty"`
}
func (*PriceData) MarshalBinary ¶
func (*PriceData) UnmarshalBinary ¶
type PriceRequest ¶
type System ¶
type System struct {
Signers []*Signer
SignerThreshold uint8
ClientID string
MvmProcess string
MvmGroups []string
MvmThreshold uint8
GasAsset string
GasAmount decimal.Decimal
}
System stores system information.
func (*System) VerifyData ¶
Click to show internal directories.
Click to hide internal directories.