Documentation
¶
Index ¶
- Constants
- func BlockchainTypeToPB(bt wconstants.BlockchainType) commonv1.Blockchain
- func ConfirmationsTimeout(blockchain wconstants.BlockchainType, confirmations uint64) time.Duration
- func ConfirmationsTimeoutWithRequired(blockchain wconstants.BlockchainType, ...) time.Duration
- func GetClientIDFromContext(ctx context.Context) string
- func GetMinConfirmations(blockchain wconstants.BlockchainType) uint64
- func WithClientContext(ctx context.Context, clientID uuid.UUID) context.Context
- type ClientContextKeyType
- type ClientCtx
- type DVAdminKey
- type ProcessingContextKeyType
- type ProcessingIdentity
- type TransferStatus
- type TronTransferKind
- type WalletType
Constants ¶
View Source
const DVAdminSecretKeyName = "admin_secret_key"
Variables ¶
This section is empty.
Functions ¶
func BlockchainTypeToPB ¶
func BlockchainTypeToPB(bt wconstants.BlockchainType) commonv1.Blockchain
func ConfirmationsTimeout ¶
func ConfirmationsTimeout(blockchain wconstants.BlockchainType, confirmations uint64) time.Duration
func ConfirmationsTimeoutWithRequired ¶
func ConfirmationsTimeoutWithRequired(blockchain wconstants.BlockchainType, requiredConfirmations, currentConfirmations uint64) time.Duration
func GetClientIDFromContext ¶
func GetMinConfirmations ¶
func GetMinConfirmations(blockchain wconstants.BlockchainType) uint64
Types ¶
type ClientContextKeyType ¶
type ClientContextKeyType string
const (
ClientContextKey ClientContextKeyType = "client_context"
)
type DVAdminKey ¶
type DVAdminKey string
type ProcessingContextKeyType ¶
type ProcessingContextKeyType string
const ( ProcessingIDParamName ProcessingContextKeyType = "X-Processing-ID" ProcessingVersionParamName ProcessingContextKeyType = "X-Processing-Version" ProcessingClientIDParamName ProcessingContextKeyType = "X-Processing-Client-ID" )
func (ProcessingContextKeyType) String ¶
func (p ProcessingContextKeyType) String() string
type ProcessingIdentity ¶
type ProcessingIdentity struct {
ID, Version string
}
func IdentityFromContext ¶
func IdentityFromContext(ctx context.Context) (ProcessingIdentity, error)
type TransferStatus ¶
type TransferStatus string
const ( // TransferStatusNew // // The transfer was created, but not yet taken into processing TransferStatusNew TransferStatus = "new" // TransferStatusPending // // The transfer is in anticipation. The transfer is placed in Task Manager and expects when he is taken to work. TransferStatusPending TransferStatus = "pending" // TransferStatusProcessing // // Transfer is in processing. In this status, a transfer can activate a wallet, delegate resources, make an ITD translation. TransferStatusProcessing TransferStatus = "processing" // TransferStatusInMempool // // The transaction is located in a mempoule (pool of unconfirmed transactions) and expects to include in the block. TransferStatusInMempool TransferStatus = "in_mempool" // TransferStatusUnconfirmed // // The transaction expects a sufficient number of confirmations. TransferStatusUnconfirmed TransferStatus = "unconfirmed" // TransferStatusCompleted // // The transaction was confirmed and completed (all post -cutting ended, for example, divided resources). TransferStatusCompleted TransferStatus = "completed" // TransferStatusFailed // // The transaction ended with an error. It may be associated with insufficient balance, not compliance with the conditions of the smart contract, etc. TransferStatusFailed TransferStatus = "failed" // TransferStatusFrozen // // The transaction was frozen (on Hold). // can occur when problems of different nature arose in the process of transaction processing, // For example, at the time of sending, a network failure and it is not clear whether the transfer occurred or not, // and the transaction requires manual intervention. TransferStatusFrozen TransferStatus = "frozen" )
type TronTransferKind ¶
type TronTransferKind string
const ( TronTransferKindBurnTRX TronTransferKind = "burntrx" TronTransferKindResources TronTransferKind = "resources" TronTransferKindCloudDelegate TronTransferKind = "cloud_delegate" )
func (TronTransferKind) String ¶
func (t TronTransferKind) String() string
type WalletType ¶
type WalletType string
const ( WalletTypeCold WalletType = "cold" WalletTypeHot WalletType = "hot" WalletTypeProcessing WalletType = "processing" )
func (*WalletType) Scan ¶
func (w *WalletType) Scan(src interface{}) error
Scan implements the sql.Scanner interface
func (WalletType) String ¶
func (w WalletType) String() string
String returns the wallet type as a string
Click to show internal directories.
Click to hide internal directories.