storj/satellite/satellitedb/storjscandb.go
Márton Elek 5e8266d1de satellite/{payments/storjscan,satellitedb}: Add storjscan wallet DB
Add storjscan wallets DB to the satellite. For now this DB is a one to one mapping of the users account to a storjscan wallet that can be used by the account holder to make payments on their Storj account.

relates to https://github.com/storj/storj/issues/4347

Change-Id: I6e65b15817b90ceb75641244f9bf173c3b4228a7
2022-05-24 08:42:02 +00:00

24 lines
495 B
Go

// Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information.
package satellitedb
import (
"storj.io/storj/satellite/payments/storjscan"
)
// ensures that *storjscanDB implements storjscan.DB.
var _ storjscan.DB = (*storjscanDB)(nil)
// storjscanDB is storjscan DB.
//
// architecture: Database
type storjscanDB struct {
db *satelliteDB
}
// Wallets is getter for wallets db.
func (db storjscanDB) Wallets() storjscan.WalletsDB {
return &storjscanWalletsDB{db: db.db}
}