asset

package
v1.5.0-rc-2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomFeeTotalAmounts

type CustomFeeTotalAmounts struct {
	FallbackFeeAmountInHbar     int64            `json:"-"`
	FallbackFeeAmountsByTokenId map[string]int64 `json:"-"`
}

type CustomFees

type CustomFees struct {
	CreatedTimestamp string       `json:"createdTimestamp"`
	RoyaltyFees      []RoyaltyFee `json:"royaltyFees"`
}

func (*CustomFees) InitFromResponse

func (c *CustomFees) InitFromResponse(customFees token.CustomFees)

type FixedFee

type FixedFee struct {
	Amount              int64   `json:"amount"`
	DenominatingTokenId *string `json:"denominatingTokenId"`
}

func (*FixedFee) InitFromResponse

func (f *FixedFee) InitFromResponse(fee token.FixedFee)

type FungibleAssetInfo

type FungibleAssetInfo struct {
	Name          string   `json:"name"`
	Symbol        string   `json:"symbol"`
	Decimals      uint8    `json:"decimals"`
	IsNative      bool     `json:"isNative"`
	ReserveAmount *big.Int `json:"-"`
}

type NativeAsset

type NativeAsset struct {
	MinFeeAmountInUsd *decimal.Decimal
	ChainId           uint64
	Asset             string
	FeePercentage     int64
}

type NonFungibleAssetInfo

type NonFungibleAssetInfo struct {
	Name                  string                `json:"name"`
	Symbol                string                `json:"symbol"`
	IsNative              bool                  `json:"isNative"`
	ReserveAmount         *big.Int              `json:"-"`
	CustomFees            CustomFees            `json:"customFees"`
	CustomFeeTotalAmounts CustomFeeTotalAmounts `json:"-"`
	TreasuryAccountId     string                `json:"-"`
}

type RoyaltyFee

type RoyaltyFee struct {
	Amount             token.Fraction `json:"amount"`
	FallbackFee        FixedFee       `json:"fallbackFee"`
	CollectorAccountID string         `json:"collectorAccountId"`
}

func (*RoyaltyFee) InitFromResponse

func (r *RoyaltyFee) InitFromResponse(fee token.RoyaltyFee)

Jump to

Keyboard shortcuts

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