Documentation ¶
Index ¶
- type Service
- func (a *Service) FungibleAssetInfo(networkId uint64, assetAddressOrId string) (assetInfo assetModel.FungibleAssetInfo, exist bool)
- func (a *Service) FungibleNativeAsset(nativeChainId uint64, nativeAssetAddress string) *assetModel.NativeAsset
- func (a *Service) FungibleNetworkAssets() map[uint64][]string
- func (a *Service) FungibleNetworkAssetsByChainId(chainId uint64) []string
- func (a *Service) IsNative(networkId uint64, asset string) bool
- func (a *Service) NativeToWrapped(nativeAsset string, nativeChainId, targetChainId uint64) string
- func (a *Service) NativeToWrappedAssets() map[uint64]map[string]map[uint64]string
- func (a *Service) OppositeAsset(chainOne uint64, chainTwo uint64, asset string) string
- func (a *Service) WrappedFromNative(nativeChainId uint64, nativeAsset string) map[uint64]string
- func (a *Service) WrappedToNative(wrappedAsset string, wrappedChainId uint64) *assetModel.NativeAsset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) FungibleAssetInfo ¶
func (a *Service) FungibleAssetInfo(networkId uint64, assetAddressOrId string) (assetInfo assetModel.FungibleAssetInfo, exist bool)
func (*Service) FungibleNativeAsset ¶
func (a *Service) FungibleNativeAsset(nativeChainId uint64, nativeAssetAddress string) *assetModel.NativeAsset
func (*Service) FungibleNetworkAssets ¶
func (*Service) FungibleNetworkAssetsByChainId ¶
func (*Service) NativeToWrapped ¶
func (*Service) NativeToWrappedAssets ¶
func (*Service) OppositeAsset ¶
func (*Service) WrappedFromNative ¶
func (*Service) WrappedToNative ¶
func (a *Service) WrappedToNative(wrappedAsset string, wrappedChainId uint64) *assetModel.NativeAsset
Click to show internal directories.
Click to hide internal directories.