Documentation ¶
Index ¶
- type Service
- func (a *Service) FetchEvmFungibleReserveAmount(networkId uint64, assetAddress string, isNative bool, ...) (inLowestDenomination *big.Int, err error)
- func (a *Service) FetchEvmNonFungibleReserveAmount(networkId uint64, assetAddress string, isNative bool, ...) (inLowestDenomination *big.Int, err error)
- func (a *Service) FetchHederaTokenReserveAmount(assetId string, mirrorNode client.MirrorNode, isNative bool, ...) (reserveAmount *big.Int, err error)
- 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) NonFungibleAssetInfo(networkId uint64, assetAddressOrId string) (assetInfo *assetModel.NonFungibleAssetInfo, exist bool)
- func (a *Service) NonFungibleNetworkAssets() 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 NewService( networks map[uint64]*parser.Network, bridgeAccountId string, hederaFeePercentages map[string]int64, routerClients map[uint64]client.DiamondRouter, mirrorNode client.MirrorNode, evmTokenClients map[uint64]map[string]client.EvmFungibleToken, evmNftClients map[uint64]map[string]client.EvmNft, ) *Service
func (*Service) FetchEvmFungibleReserveAmount ¶
func (*Service) FetchEvmNonFungibleReserveAmount ¶
func (*Service) FetchHederaTokenReserveAmount ¶
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) NonFungibleAssetInfo ¶
func (a *Service) NonFungibleAssetInfo(networkId uint64, assetAddressOrId string) (assetInfo *assetModel.NonFungibleAssetInfo, exist bool)
func (*Service) NonFungibleNetworkAssets ¶
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.