Documentation ¶
Index ¶
- Constants
- func DumpHeaders(ctx context.Context, h *electrum.BlockchainHeader)
- func EstimateFee(c *gin.Context) *view.FeeRate
- func NewMfa(uuid string) *view.MfaVO
- func ProvisionUri(secret string, user string, issuer string) string
- func Round(f float64, n int) float64
- func UpdateMfa(wallet *common.Wallet, param view.WalletUpdateParam) bool
- func VerifyMfa(token string, secret string) bool
- type AccountService
- func (a *AccountService) ChallengeLogic(uuid string) (*view.ChallengeVO, error)
- func (a *AccountService) CreateWallet(c *gin.Context, param *view.WalletCreateParam) error
- func (a *AccountService) LoginWallet(c *gin.Context, param view.WalletLoginParam) (*view.WalletVO, error)
- func (a *AccountService) NewMfa(uuid string) *view.MfaVO
- func (a *AccountService) UpdateWallet(c *gin.Context, param view.WalletUpdateParam) error
- func (a *AccountService) VerifyWallet(param view.WalletVerifyParam) error
- type ChangeIssuerTransaction
- type CheckParamsAndGetPayload
- type CloseCrowdSaleTransaction
- type CrowdSaleIssuanceTransaction
- type ErrNulldataLength
- type FixedIssuanceTransaction
- type FreezeTokenTransaction
- type GetWhcTransaction
- type ManagedIssuanceTransaction
- type ParticipateCrowdSaleTransaction
- type RevokeTransaction
- type SendAllTransaction
- type SendGrantTransaction
- type SendStoTransaction
- type SimpleSendTransaction
- type UnFreezeTokenTransaction
Constants ¶
View Source
const ( Add string = "add" Del string = "del" )
View Source
const (
DefaultFile = "headers.dat"
)
Variables ¶
This section is empty.
Functions ¶
func DumpHeaders ¶
func DumpHeaders(ctx context.Context, h *electrum.BlockchainHeader)
Types ¶
type AccountService ¶
type AccountService struct{}
func (*AccountService) ChallengeLogic ¶
func (a *AccountService) ChallengeLogic(uuid string) (*view.ChallengeVO, error)
func (*AccountService) CreateWallet ¶
func (a *AccountService) CreateWallet(c *gin.Context, param *view.WalletCreateParam) error
* Create wallet && update Session PubKey
func (*AccountService) LoginWallet ¶
func (a *AccountService) LoginWallet(c *gin.Context, param view.WalletLoginParam) (*view.WalletVO, error)
func (*AccountService) UpdateWallet ¶
func (a *AccountService) UpdateWallet(c *gin.Context, param view.WalletUpdateParam) error
* update Wallet info
func (*AccountService) VerifyWallet ¶
func (a *AccountService) VerifyWallet(param view.WalletVerifyParam) error
type ChangeIssuerTransaction ¶
type ChangeIssuerTransaction struct {
// contains filtered or unexported fields
}
func (*ChangeIssuerTransaction) Check ¶
func (changeIssuer *ChangeIssuerTransaction) Check(c *gin.Context) error
func (*ChangeIssuerTransaction) CreatePayload ¶
func (changeIssuer *ChangeIssuerTransaction) CreatePayload(c *gin.Context) (string, error)
type CheckParamsAndGetPayload ¶
type CheckParamsAndGetPayload interface { Check(*gin.Context) error CreatePayload(c *gin.Context) (string, error) }
func FactoryForTxCheckAndCreate ¶
func FactoryForTxCheckAndCreate(txType int) CheckParamsAndGetPayload
type CloseCrowdSaleTransaction ¶
type CloseCrowdSaleTransaction struct {
// contains filtered or unexported fields
}
func (*CloseCrowdSaleTransaction) Check ¶
func (closeCrowdSale *CloseCrowdSaleTransaction) Check(c *gin.Context) error
func (*CloseCrowdSaleTransaction) CreatePayload ¶
func (closeCrowdSale *CloseCrowdSaleTransaction) CreatePayload(c *gin.Context) (string, error)
type CrowdSaleIssuanceTransaction ¶
type CrowdSaleIssuanceTransaction struct {
// contains filtered or unexported fields
}
func (*CrowdSaleIssuanceTransaction) Check ¶
func (crowSale *CrowdSaleIssuanceTransaction) Check(c *gin.Context) error
func (*CrowdSaleIssuanceTransaction) CreatePayload ¶
func (crowSale *CrowdSaleIssuanceTransaction) CreatePayload(c *gin.Context) (string, error)
type ErrNulldataLength ¶
type ErrNulldataLength struct {
Msg string
}
func (*ErrNulldataLength) Error ¶
func (en *ErrNulldataLength) Error() string
type FixedIssuanceTransaction ¶
type FixedIssuanceTransaction struct {
// contains filtered or unexported fields
}
func (*FixedIssuanceTransaction) Check ¶
func (fixedIssuance *FixedIssuanceTransaction) Check(c *gin.Context) error
func (*FixedIssuanceTransaction) CreatePayload ¶
func (fixedIssuance *FixedIssuanceTransaction) CreatePayload(c *gin.Context) (string, error)
type FreezeTokenTransaction ¶
type FreezeTokenTransaction struct {
// contains filtered or unexported fields
}
func (*FreezeTokenTransaction) Check ¶
func (simpleSend *FreezeTokenTransaction) Check(c *gin.Context) error
func (*FreezeTokenTransaction) CreatePayload ¶
func (simpleSend *FreezeTokenTransaction) CreatePayload(c *gin.Context) (string, error)
type GetWhcTransaction ¶
type GetWhcTransaction struct {
// contains filtered or unexported fields
}
func (*GetWhcTransaction) CreatePayload ¶
func (burn *GetWhcTransaction) CreatePayload(c *gin.Context) (string, error)
type ManagedIssuanceTransaction ¶
type ManagedIssuanceTransaction struct {
// contains filtered or unexported fields
}
func (*ManagedIssuanceTransaction) Check ¶
func (managedIssuance *ManagedIssuanceTransaction) Check(c *gin.Context) error
func (*ManagedIssuanceTransaction) CreatePayload ¶
func (managedIssuance *ManagedIssuanceTransaction) CreatePayload(c *gin.Context) (string, error)
type ParticipateCrowdSaleTransaction ¶
type ParticipateCrowdSaleTransaction struct {
// contains filtered or unexported fields
}
func (*ParticipateCrowdSaleTransaction) Check ¶
func (partic *ParticipateCrowdSaleTransaction) Check(c *gin.Context) error
func (*ParticipateCrowdSaleTransaction) CreatePayload ¶
func (partic *ParticipateCrowdSaleTransaction) CreatePayload(c *gin.Context) (string, error)
type RevokeTransaction ¶
type RevokeTransaction struct {
// contains filtered or unexported fields
}
func (*RevokeTransaction) CreatePayload ¶
func (revoke *RevokeTransaction) CreatePayload(c *gin.Context) (string, error)
type SendAllTransaction ¶
type SendAllTransaction struct {
// contains filtered or unexported fields
}
func (*SendAllTransaction) CreatePayload ¶
func (sendAll *SendAllTransaction) CreatePayload(c *gin.Context) (string, error)
type SendGrantTransaction ¶
type SendGrantTransaction struct {
// contains filtered or unexported fields
}
func (*SendGrantTransaction) CreatePayload ¶
func (grant *SendGrantTransaction) CreatePayload(c *gin.Context) (string, error)
type SendStoTransaction ¶
type SendStoTransaction struct {
// contains filtered or unexported fields
}
func (*SendStoTransaction) CreatePayload ¶
func (sendSto *SendStoTransaction) CreatePayload(c *gin.Context) (string, error)
type SimpleSendTransaction ¶
type SimpleSendTransaction struct {
// contains filtered or unexported fields
}
func (*SimpleSendTransaction) Check ¶
func (simpleSend *SimpleSendTransaction) Check(c *gin.Context) error
func (*SimpleSendTransaction) CreatePayload ¶
func (simpleSend *SimpleSendTransaction) CreatePayload(c *gin.Context) (string, error)
type UnFreezeTokenTransaction ¶
type UnFreezeTokenTransaction struct {
// contains filtered or unexported fields
}
func (*UnFreezeTokenTransaction) Check ¶
func (simpleSend *UnFreezeTokenTransaction) Check(c *gin.Context) error
func (*UnFreezeTokenTransaction) CreatePayload ¶
func (simpleSend *UnFreezeTokenTransaction) CreatePayload(c *gin.Context) (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.