assets

package
v0.2.0-alpha-3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 NewService(networks map[uint64]*parser.Network, HederaFeePercentages map[string]int64, routerClients map[uint64]client.DiamondRouter, mirrorNode client.MirrorNode, evmTokenClients map[uint64]map[string]client.EVMToken) *Service

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 (a *Service) FungibleNetworkAssets() map[uint64][]string

func (*Service) FungibleNetworkAssetsByChainId

func (a *Service) FungibleNetworkAssetsByChainId(chainId uint64) []string

func (*Service) IsNative

func (a *Service) IsNative(networkId uint64, asset string) bool

func (*Service) NativeToWrapped

func (a *Service) NativeToWrapped(nativeAsset string, nativeChainId, targetChainId uint64) string

func (*Service) NativeToWrappedAssets

func (a *Service) NativeToWrappedAssets() map[uint64]map[string]map[uint64]string

func (*Service) OppositeAsset

func (a *Service) OppositeAsset(chainOne uint64, chainTwo uint64, asset string) string

func (*Service) WrappedFromNative

func (a *Service) WrappedFromNative(nativeChainId uint64, nativeAsset string) map[uint64]string

func (*Service) WrappedToNative

func (a *Service) WrappedToNative(wrappedAsset string, wrappedChainId uint64) *assetModel.NativeAsset

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL