mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
19 lines
327 B
Go
19 lines
327 B
Go
package services
|
|||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/onsonr/sonr/pkg/ipfsapi"
|
||
|
|
"gorm.io/gorm"
|
||
|
|
)
|
||
|
|
|
||
|
|
type VaultService struct {
|
||
|
|
db *gorm.DB
|
||
|
|
tokenStore ipfsapi.IPFSTokenStore
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewVaultService(db *gorm.DB, ipc ipfsapi.Client) *VaultService {
|
||
|
|
return &VaultService{
|
||
|
|
db: db,
|
||
|
|
tokenStore: ipfsapi.NewUCANStore(ipc),
|
||
|
|
}
|
||
|
|
}
|