github.com/diadata-org/diadata@v1.4.593/pkg/dia/helpers/bifrost-helper/model.go (about)

     1  package bifrosthelper
     2  
     3  const (
     4  	DefaultRefreshDelay              = 400 // millisec
     5  	DefaultSleepBetweenContractCalls = 300 // millisec
     6  	DefaultEventsLimit               = 100
     7  	DefaultSwapContractsLimit        = 100
     8  )
     9  
    10  type BifrostAssetMetadata struct {
    11  	AssetKey       string `json:"assetKey"`
    12  	Name           string `json:"name"`
    13  	Symbol         string `json:"symbol"`
    14  	Decimals       string `json:"decimals"`
    15  	MinimalBalance string `json:"minimalBalance"`
    16  }
    17  
    18  type BifrostPoolMetadata struct {
    19  	PoolId         string            `json:"poolId"`
    20  	PoolAsset      map[string]string `json:"poolAsset"`
    21  	Assets         []string          `json:"assets"`
    22  	Precisions     []string          `json:"precisions"`
    23  	MintFee        string            `json:"mintFee"`
    24  	SwapFee        string            `json:"swapFee"`
    25  	RedeemFee      string            `json:"redeemFee"`
    26  	TotalSupply    string            `json:"totalSupply"`
    27  	Balances       []string          `json:"balances"`
    28  	FeeRecipient   string            `json:"feeRecipient"`
    29  	AccountId      string            `json:"accountId"`
    30  	YieldRecipient string            `json:"yieldRecipient"`
    31  	Precision      string            `json:"precision"`
    32  }