Add reminders
This commit is contained in:
parent
81d2e3e1e9
commit
d80648c7ae
@ -149,6 +149,8 @@ func (das *DevAccountService) loadItem(ctx context.Context, k []byte, v []byte)
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Add connect tx and account
|
||||||
|
// TODO: update balance
|
||||||
func (das *DevAccountService) loadAll(ctx context.Context) error {
|
func (das *DevAccountService) loadAll(ctx context.Context) error {
|
||||||
d, err := os.ReadDir(das.dir)
|
d, err := os.ReadDir(das.dir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -182,6 +184,7 @@ func (das *DevAccountService) WithAutoVoucher(ctx context.Context, symbol string
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: add persistence for vouchers
|
// TODO: add persistence for vouchers
|
||||||
|
// TODO: set max balance for 0x00 address
|
||||||
func (das *DevAccountService) AddVoucher(ctx context.Context, symbol string) error {
|
func (das *DevAccountService) AddVoucher(ctx context.Context, symbol string) error {
|
||||||
if symbol == "" {
|
if symbol == "" {
|
||||||
return fmt.Errorf("cannot add empty sym voucher")
|
return fmt.Errorf("cannot add empty sym voucher")
|
||||||
@ -384,6 +387,8 @@ func (das *DevAccountService) saveTokenTransfer(ctx context.Context, mytx Tx) er
|
|||||||
return das.db.Put(ctx, []byte(k), v)
|
return das.db.Put(ctx, []byte(k), v)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: set default voucher on first received
|
||||||
|
// TODO: update balance
|
||||||
func (das *DevAccountService) TokenTransfer(ctx context.Context, amount, from, to, tokenAddress string) (*models.TokenTransferResponse, error) {
|
func (das *DevAccountService) TokenTransfer(ctx context.Context, amount, from, to, tokenAddress string) (*models.TokenTransferResponse, error) {
|
||||||
var b [hashLen]byte
|
var b [hashLen]byte
|
||||||
value, err := strconv.Atoi(amount)
|
value, err := strconv.Atoi(amount)
|
||||||
|
Loading…
Reference in New Issue
Block a user