Documentation ¶
Index ¶
- Constants
- Variables
- type SDK
- func (sdk *SDK) ActiveWallet(walletAddr comm.WalletAddr, auth string) (comm.Wallet, error)
- func (sdk *SDK) ConfigStamp(mailUser string, sAddr comm.StampAddr) error
- func (sdk *SDK) CreateWallet(auth, name string) (comm.Wallet, error)
- func (sdk *SDK) GetStampConf(user string) *contract.StampConf
- func (sdk *SDK) GetWallet(addr comm.WalletAddr) (comm.Wallet, error)
- func (sdk *SDK) ImportWallet(walletJson, auth string) (comm.Wallet, error)
- func (sdk *SDK) ListAllWalletAddr() string
- func (sdk *SDK) PostStamp(mailUser string, sData comm.StampData) (comm.Stamp, error)
- func (sdk *SDK) RemoveWallet(addr comm.WalletAddr) error
- func (sdk *SDK) UpdateStampBalanceAsync(mailUser string)
- func (sdk *SDK) VerifyStamp(stampStr, mailID string) error
Constants ¶
View Source
const ( WalletDetailsDBKEY = "_wallet_details_db_key_" StampDetailsDBKEY = "_stamp_details_db_key_" AllWalletDBKey = "_stamp_all_wallet_db_key_V2_" )
Variables ¶
View Source
var ( SErrActiveWallet = errors.New("no active wallet") SErrActiveStamp = errors.New("no active stamp") SErrInvalid = errors.New("invalid stamp raw data") SErrInsufficient = errors.New("insufficient fund") SErrWInUsed = errors.New("wallet is in used") SErrWDuplicated = errors.New("wallet duplicated") )
Functions ¶
This section is empty.
Types ¶
type SDK ¶
type SDK struct {
// contains filtered or unexported fields
}
func (*SDK) ActiveWallet ¶
func (*SDK) ConfigStamp ¶ added in v1.0.2
func (*SDK) GetStampConf ¶ added in v1.0.2
func (*SDK) ImportWallet ¶ added in v1.0.2
func (*SDK) ListAllWalletAddr ¶
func (*SDK) RemoveWallet ¶ added in v1.0.2
func (sdk *SDK) RemoveWallet(addr comm.WalletAddr) error
func (*SDK) UpdateStampBalanceAsync ¶
func (*SDK) VerifyStamp ¶
Click to show internal directories.
Click to hide internal directories.