Versions in this module Expand all Collapse all v0 v0.0.13 Jun 17, 2021 Changes in this version type Output + Sender string v0.0.12 Jun 9, 2021 v0.0.11 Apr 17, 2021 v0.0.10 Apr 17, 2021 v0.0.9 Apr 17, 2021 v0.0.8 Apr 16, 2021 v0.0.7 Apr 16, 2021 v0.0.6 Mar 15, 2021 v0.0.5 Feb 18, 2021 v0.0.4 Jan 13, 2021 Changes in this version + type MemoData struct + Data []byte + FollowID string + Member string + Type int + UserID string + func (m *MemoData) Scan(value interface{}) error + func (m MemoData) Value() (driver.Value, error) type Output + MemoData MemoData v0.0.3 Jan 7, 2021 Changes in this version + var ErrAssetNotExist = errors.New("asset not exist") + type Asset struct + ChainID string + DisplaySymbol string + ID string + Logo string + Name string + Price decimal.Decimal + Symbol string + UpdatedAt time.Time + type AssetService interface + Find func(ctx context.Context, id string) (*Asset, error) + ListAll func(ctx context.Context) ([]*Asset, error) + type AssetStore interface + Find func(ctx context.Context, id string) (*Asset, error) + ListAll func(ctx context.Context) ([]*Asset, error) + ListPrices func(ctx context.Context, ids ...string) (number.Values, error) + Save func(ctx context.Context, asset *Asset, columns ...string) error + type Message struct + CreatedAt time.Time + ID int64 + MessageID string + Raw types.JSONText + UserID string + func BuildMessage(req *mixin.MessageRequest) *Message + type MessageStore interface + Create func(ctx context.Context, messages []*Message) error v0.0.2 Jan 7, 2021 v0.0.1 Jan 7, 2021 Changes in this version + func DecodeTransactionAction(privateKey ed25519.PrivateKey, message []byte) ([]byte, error) + type Member struct + ClientID string + Name string + VerifyKey ed25519.PublicKey + func DecodeMemberAction(message []byte, members []*Member) (*Member, []byte, error) + type Notifier interface + Snapshot func(ctx context.Context, transfer *Transfer, TxHash string) error + type Output struct + Amount decimal.Decimal + AssetID string + CreatedAt time.Time + Data types.JSONText + ID int64 + Memo string + SpentBy string + State string + TraceID string + UTXO *mixin.MultisigUTXO + UpdatedAt time.Time + Version int64 + type RawTransaction struct + CreatedAt time.Time + Data string + ID int64 + TraceID string + type System struct + Admins []string + ClientID string + Members []*Member + PrivateKey ed25519.PrivateKey + SignKey ed25519.PrivateKey + Threshold uint8 + Version string + VoteAmount decimal.Decimal + VoteAsset string + func (s *System) MemberIDs() []string + type Transfer struct + Amount decimal.Decimal + AssetID string + CreatedAt time.Time + Handled types.BitBool + ID int64 + Memo string + Opponents pq.StringArray + Passed types.BitBool + Threshold uint8 + TraceID string + UpdatedAt time.Time + type WalletService interface + Pull func(ctx context.Context, offset time.Time, limit int) ([]*Output, error) + ReqTransfer func(ctx context.Context, transfer *Transfer) (string, error) + Spend func(ctx context.Context, outputs []*Output, transfer *Transfer) (*RawTransaction, error) + type WalletStore interface + CreateRawTransaction func(ctx context.Context, tx *RawTransaction) error + CreateTransfers func(ctx context.Context, transfers []*Transfer) error + ExpireRawTransaction func(ctx context.Context, tx *RawTransaction) error + List func(ctx context.Context, fromID int64, limit int) ([]*Output, error) + ListNotPassedTransfers func(ctx context.Context) ([]*Transfer, error) + ListPendingRawTransactions func(ctx context.Context, limit int) ([]*RawTransaction, error) + ListPendingTransfers func(ctx context.Context) ([]*Transfer, error) + ListSpentBy func(ctx context.Context, assetID string, spentBy string) ([]*Output, error) + ListUnspent func(ctx context.Context, assetID string, limit int) ([]*Output, error) + Save func(ctx context.Context, outputs []*Output) error + Spent func(ctx context.Context, outputs []*Output, transfer *Transfer) error + UpdateTransfer func(ctx context.Context, transfer *Transfer) error