trustwallet-assets/internal/file/service.go
Daniel 8c997de194
Add reporter for CI scripts (#16774)
* Add reporter for CI scripts

* Fix asset errors
2021-12-23 22:30:20 +03:00

30 lines
447 B
Go

package file
import (
"github.com/trustwallet/go-primitives/coin"
)
type AssetFile struct {
path *Path
}
func NewAssetFile(path string) *AssetFile {
return &AssetFile{path: NewPath(path)}
}
func (i *AssetFile) Path() string {
return i.path.String()
}
func (i *AssetFile) Type() string {
return i.path.fileType
}
func (i *AssetFile) Chain() coin.Coin {
return i.path.chain
}
func (i *AssetFile) Asset() string {
return i.path.asset
}