Versions in this module Expand all Collapse all v1 v1.3.1 Oct 20, 2025 v1.3.0 Aug 6, 2025 Changes in this version + const MaxCPFieldLength + var ErrIntOverflowCurrencyPair = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthCurrencyPair = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupCurrencyPair = fmt.Errorf("proto: unexpected end of group") + func CurrencyPairString(base, quote string) string + func IsLegacyAssetString(asset string) bool + func SplitDefiAssetString(defiString string) (token, address, chainID string, err error) + func ValidateDefiAssetString(asset string) error + func ValidateLegacyAssetString(asset string) error + type CurrencyPair struct + Base string + Quote string + func CurrencyPairFromString(s string) (CurrencyPair, error) + func NewCurrencyPair(base, quote string) CurrencyPair + func (*CurrencyPair) Descriptor() ([]byte, []int) + func (*CurrencyPair) ProtoMessage() + func (cp *CurrencyPair) Equal(other CurrencyPair) bool + func (cp *CurrencyPair) Invert() CurrencyPair + func (cp *CurrencyPair) LegacyDecimals() int + func (cp *CurrencyPair) LegacyValidateBasic() error + func (cp *CurrencyPair) ValidateBasic() error + func (cp CurrencyPair) String() string + func (m *CurrencyPair) GetBase() string + func (m *CurrencyPair) GetQuote() string + func (m *CurrencyPair) Marshal() (dAtA []byte, err error) + func (m *CurrencyPair) MarshalTo(dAtA []byte) (int, error) + func (m *CurrencyPair) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CurrencyPair) Reset() + func (m *CurrencyPair) Size() (n int) + func (m *CurrencyPair) Unmarshal(dAtA []byte) error + func (m *CurrencyPair) XXX_DiscardUnknown() + func (m *CurrencyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CurrencyPair) XXX_Merge(src proto.Message) + func (m *CurrencyPair) XXX_Size() int + func (m *CurrencyPair) XXX_Unmarshal(b []byte) error