Documentation ¶
Index ¶
- Variables
- type AssetId
- func (*AssetId) Descriptor() ([]byte, []int)
- func (m *AssetId) GetAltBaseDenom() string
- func (m *AssetId) GetAltBech32M() string
- func (m *AssetId) GetInner() []byte
- func (m *AssetId) Marshal() (dAtA []byte, err error)
- func (m *AssetId) MarshalTo(dAtA []byte) (int, error)
- func (m *AssetId) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AssetId) ProtoMessage()
- func (m *AssetId) Reset()
- func (m *AssetId) Size() (n int)
- func (m *AssetId) String() string
- func (m *AssetId) Unmarshal(dAtA []byte) error
- func (m *AssetId) XXX_DiscardUnknown()
- func (m *AssetId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetId) XXX_Merge(src proto.Message)
- func (m *AssetId) XXX_Size() int
- func (m *AssetId) XXX_Unmarshal(b []byte) error
- type AssetImage
- func (*AssetImage) Descriptor() ([]byte, []int)
- func (m *AssetImage) GetPng() string
- func (m *AssetImage) GetSvg() string
- func (m *AssetImage) GetTheme() *AssetImage_Theme
- func (m *AssetImage) Marshal() (dAtA []byte, err error)
- func (m *AssetImage) MarshalTo(dAtA []byte) (int, error)
- func (m *AssetImage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AssetImage) ProtoMessage()
- func (m *AssetImage) Reset()
- func (m *AssetImage) Size() (n int)
- func (m *AssetImage) String() string
- func (m *AssetImage) Unmarshal(dAtA []byte) error
- func (m *AssetImage) XXX_DiscardUnknown()
- func (m *AssetImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetImage) XXX_Merge(src proto.Message)
- func (m *AssetImage) XXX_Size() int
- func (m *AssetImage) XXX_Unmarshal(b []byte) error
- type AssetImage_Theme
- func (*AssetImage_Theme) Descriptor() ([]byte, []int)
- func (m *AssetImage_Theme) GetCircle() bool
- func (m *AssetImage_Theme) GetDarkMode() bool
- func (m *AssetImage_Theme) GetPrimaryColorHex() string
- func (m *AssetImage_Theme) Marshal() (dAtA []byte, err error)
- func (m *AssetImage_Theme) MarshalTo(dAtA []byte) (int, error)
- func (m *AssetImage_Theme) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AssetImage_Theme) ProtoMessage()
- func (m *AssetImage_Theme) Reset()
- func (m *AssetImage_Theme) Size() (n int)
- func (m *AssetImage_Theme) String() string
- func (m *AssetImage_Theme) Unmarshal(dAtA []byte) error
- func (m *AssetImage_Theme) XXX_DiscardUnknown()
- func (m *AssetImage_Theme) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetImage_Theme) XXX_Merge(src proto.Message)
- func (m *AssetImage_Theme) XXX_Size() int
- func (m *AssetImage_Theme) XXX_Unmarshal(b []byte) error
- type BalanceCommitment
- func (*BalanceCommitment) Descriptor() ([]byte, []int)
- func (m *BalanceCommitment) GetInner() []byte
- func (m *BalanceCommitment) Marshal() (dAtA []byte, err error)
- func (m *BalanceCommitment) MarshalTo(dAtA []byte) (int, error)
- func (m *BalanceCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BalanceCommitment) ProtoMessage()
- func (m *BalanceCommitment) Reset()
- func (m *BalanceCommitment) Size() (n int)
- func (m *BalanceCommitment) String() string
- func (m *BalanceCommitment) Unmarshal(dAtA []byte) error
- func (m *BalanceCommitment) XXX_DiscardUnknown()
- func (m *BalanceCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BalanceCommitment) XXX_Merge(src proto.Message)
- func (m *BalanceCommitment) XXX_Size() int
- func (m *BalanceCommitment) XXX_Unmarshal(b []byte) error
- type Denom
- func (*Denom) Descriptor() ([]byte, []int)
- func (m *Denom) GetDenom() string
- func (m *Denom) Marshal() (dAtA []byte, err error)
- func (m *Denom) MarshalTo(dAtA []byte) (int, error)
- func (m *Denom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Denom) ProtoMessage()
- func (m *Denom) Reset()
- func (m *Denom) Size() (n int)
- func (m *Denom) String() string
- func (m *Denom) Unmarshal(dAtA []byte) error
- func (m *Denom) XXX_DiscardUnknown()
- func (m *Denom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Denom) XXX_Merge(src proto.Message)
- func (m *Denom) XXX_Size() int
- func (m *Denom) XXX_Unmarshal(b []byte) error
- type DenomUnit
- func (*DenomUnit) Descriptor() ([]byte, []int)
- func (m *DenomUnit) GetAliases() []string
- func (m *DenomUnit) GetDenom() string
- func (m *DenomUnit) GetExponent() uint32
- func (m *DenomUnit) Marshal() (dAtA []byte, err error)
- func (m *DenomUnit) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomUnit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomUnit) ProtoMessage()
- func (m *DenomUnit) Reset()
- func (m *DenomUnit) Size() (n int)
- func (m *DenomUnit) String() string
- func (m *DenomUnit) Unmarshal(dAtA []byte) error
- func (m *DenomUnit) XXX_DiscardUnknown()
- func (m *DenomUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomUnit) XXX_Merge(src proto.Message)
- func (m *DenomUnit) XXX_Size() int
- func (m *DenomUnit) XXX_Unmarshal(b []byte) error
- type EquivalentValue
- func (*EquivalentValue) Descriptor() ([]byte, []int)
- func (m *EquivalentValue) GetAsOfHeight() uint64
- func (m *EquivalentValue) GetEquivalentAmount() *v1.Amount
- func (m *EquivalentValue) GetNumeraire() *Metadata
- func (m *EquivalentValue) Marshal() (dAtA []byte, err error)
- func (m *EquivalentValue) MarshalTo(dAtA []byte) (int, error)
- func (m *EquivalentValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EquivalentValue) ProtoMessage()
- func (m *EquivalentValue) Reset()
- func (m *EquivalentValue) Size() (n int)
- func (m *EquivalentValue) String() string
- func (m *EquivalentValue) Unmarshal(dAtA []byte) error
- func (m *EquivalentValue) XXX_DiscardUnknown()
- func (m *EquivalentValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EquivalentValue) XXX_Merge(src proto.Message)
- func (m *EquivalentValue) XXX_Size() int
- func (m *EquivalentValue) XXX_Unmarshal(b []byte) error
- type EstimatedPrice
- func (*EstimatedPrice) Descriptor() ([]byte, []int)
- func (m *EstimatedPrice) GetAsOfHeight() uint64
- func (m *EstimatedPrice) GetNumeraire() *AssetId
- func (m *EstimatedPrice) GetNumerairePerUnit() float64
- func (m *EstimatedPrice) GetPricedAsset() *AssetId
- func (m *EstimatedPrice) Marshal() (dAtA []byte, err error)
- func (m *EstimatedPrice) MarshalTo(dAtA []byte) (int, error)
- func (m *EstimatedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EstimatedPrice) ProtoMessage()
- func (m *EstimatedPrice) Reset()
- func (m *EstimatedPrice) Size() (n int)
- func (m *EstimatedPrice) String() string
- func (m *EstimatedPrice) Unmarshal(dAtA []byte) error
- func (m *EstimatedPrice) XXX_DiscardUnknown()
- func (m *EstimatedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EstimatedPrice) XXX_Merge(src proto.Message)
- func (m *EstimatedPrice) XXX_Size() int
- func (m *EstimatedPrice) XXX_Unmarshal(b []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetBase() string
- func (m *Metadata) GetDenomUnits() []*DenomUnit
- func (m *Metadata) GetDescription() string
- func (m *Metadata) GetDisplay() string
- func (m *Metadata) GetImages() []*AssetImage
- func (m *Metadata) GetName() string
- func (m *Metadata) GetPenumbraAssetId() *AssetId
- func (m *Metadata) GetPriorityScore() uint64
- func (m *Metadata) GetSymbol() string
- func (m *Metadata) Marshal() (dAtA []byte, err error)
- func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) Size() (n int)
- func (m *Metadata) String() string
- func (m *Metadata) Unmarshal(dAtA []byte) error
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetAmount() *v1.Amount
- func (m *Value) GetAssetId() *AssetId
- func (m *Value) Marshal() (dAtA []byte, err error)
- func (m *Value) MarshalTo(dAtA []byte) (int, error)
- func (m *Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) Size() (n int)
- func (m *Value) String() string
- func (m *Value) Unmarshal(dAtA []byte) error
- func (m *Value) XXX_DiscardUnknown()
- func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value) XXX_Merge(src proto.Message)
- func (m *Value) XXX_Size() int
- func (m *Value) XXX_Unmarshal(b []byte) error
- type ValueView
- func (*ValueView) Descriptor() ([]byte, []int)
- func (m *ValueView) GetKnownAssetId() *ValueView_KnownAssetId
- func (m *ValueView) GetUnknownAssetId() *ValueView_UnknownAssetId
- func (m *ValueView) GetValueView() isValueView_ValueView
- func (m *ValueView) Marshal() (dAtA []byte, err error)
- func (m *ValueView) MarshalTo(dAtA []byte) (int, error)
- func (m *ValueView) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValueView) ProtoMessage()
- func (m *ValueView) Reset()
- func (m *ValueView) Size() (n int)
- func (m *ValueView) String() string
- func (m *ValueView) Unmarshal(dAtA []byte) error
- func (m *ValueView) XXX_DiscardUnknown()
- func (m *ValueView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValueView) XXX_Merge(src proto.Message)
- func (*ValueView) XXX_OneofWrappers() []interface{}
- func (m *ValueView) XXX_Size() int
- func (m *ValueView) XXX_Unmarshal(b []byte) error
- type ValueView_KnownAssetId
- func (*ValueView_KnownAssetId) Descriptor() ([]byte, []int)
- func (m *ValueView_KnownAssetId) GetAmount() *v1.Amount
- func (m *ValueView_KnownAssetId) GetEquivalentValues() []*EquivalentValue
- func (m *ValueView_KnownAssetId) GetExtendedMetadata() *types.Any
- func (m *ValueView_KnownAssetId) GetMetadata() *Metadata
- func (m *ValueView_KnownAssetId) Marshal() (dAtA []byte, err error)
- func (m *ValueView_KnownAssetId) MarshalTo(dAtA []byte) (int, error)
- func (m *ValueView_KnownAssetId) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValueView_KnownAssetId) ProtoMessage()
- func (m *ValueView_KnownAssetId) Reset()
- func (m *ValueView_KnownAssetId) Size() (n int)
- func (m *ValueView_KnownAssetId) String() string
- func (m *ValueView_KnownAssetId) Unmarshal(dAtA []byte) error
- func (m *ValueView_KnownAssetId) XXX_DiscardUnknown()
- func (m *ValueView_KnownAssetId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValueView_KnownAssetId) XXX_Merge(src proto.Message)
- func (m *ValueView_KnownAssetId) XXX_Size() int
- func (m *ValueView_KnownAssetId) XXX_Unmarshal(b []byte) error
- type ValueView_KnownAssetId_
- type ValueView_UnknownAssetId
- func (*ValueView_UnknownAssetId) Descriptor() ([]byte, []int)
- func (m *ValueView_UnknownAssetId) GetAmount() *v1.Amount
- func (m *ValueView_UnknownAssetId) GetAssetId() *AssetId
- func (m *ValueView_UnknownAssetId) Marshal() (dAtA []byte, err error)
- func (m *ValueView_UnknownAssetId) MarshalTo(dAtA []byte) (int, error)
- func (m *ValueView_UnknownAssetId) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValueView_UnknownAssetId) ProtoMessage()
- func (m *ValueView_UnknownAssetId) Reset()
- func (m *ValueView_UnknownAssetId) Size() (n int)
- func (m *ValueView_UnknownAssetId) String() string
- func (m *ValueView_UnknownAssetId) Unmarshal(dAtA []byte) error
- func (m *ValueView_UnknownAssetId) XXX_DiscardUnknown()
- func (m *ValueView_UnknownAssetId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValueView_UnknownAssetId) XXX_Merge(src proto.Message)
- func (m *ValueView_UnknownAssetId) XXX_Size() int
- func (m *ValueView_UnknownAssetId) XXX_Unmarshal(b []byte) error
- type ValueView_UnknownAssetId_
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AssetId ¶
type AssetId struct { // The bytes of the asset ID. Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"` // Alternatively, a Bech32m-encoded string representation of the `inner` // bytes. // // NOTE: implementations are not required to support parsing this field. // Implementations should prefer to encode the `inner` bytes in all messages they // produce. Implementations must not accept messages with both `inner` and // `alt_bech32m` set. This field exists for convenience of RPC users. AltBech32M string `protobuf:"bytes,2,opt,name=alt_bech32m,json=altBech32m,proto3" json:"alt_bech32m,omitempty"` // Alternatively, a base denomination string which should be hashed to obtain the asset ID. // // NOTE: implementations are not required to support parsing this field. // Implementations should prefer to encode the bytes in all messages they // produce. Implementations must not accept messages with both `inner` and // `alt_base_denom` set. This field exists for convenience of RPC users. AltBaseDenom string `protobuf:"bytes,3,opt,name=alt_base_denom,json=altBaseDenom,proto3" json:"alt_base_denom,omitempty"` }
A Penumbra asset ID.
func (*AssetId) Descriptor ¶
func (*AssetId) GetAltBaseDenom ¶
func (*AssetId) GetAltBech32M ¶
func (*AssetId) MarshalToSizedBuffer ¶
func (*AssetId) ProtoMessage ¶
func (*AssetId) ProtoMessage()
func (*AssetId) XXX_DiscardUnknown ¶
func (m *AssetId) XXX_DiscardUnknown()
func (*AssetId) XXX_Marshal ¶
func (*AssetId) XXX_Unmarshal ¶
type AssetImage ¶
type AssetImage struct { // The URI of the image in PNG format. Png string `protobuf:"bytes,1,opt,name=png,proto3" json:"png,omitempty"` // The URI of the image in SVG format. Svg string `protobuf:"bytes,2,opt,name=svg,proto3" json:"svg,omitempty"` Theme *AssetImage_Theme `protobuf:"bytes,3,opt,name=theme,proto3" json:"theme,omitempty"` }
An image related to an asset.
func (*AssetImage) Descriptor ¶
func (*AssetImage) Descriptor() ([]byte, []int)
func (*AssetImage) GetPng ¶
func (m *AssetImage) GetPng() string
func (*AssetImage) GetSvg ¶
func (m *AssetImage) GetSvg() string
func (*AssetImage) GetTheme ¶
func (m *AssetImage) GetTheme() *AssetImage_Theme
func (*AssetImage) Marshal ¶
func (m *AssetImage) Marshal() (dAtA []byte, err error)
func (*AssetImage) MarshalToSizedBuffer ¶
func (m *AssetImage) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AssetImage) ProtoMessage ¶
func (*AssetImage) ProtoMessage()
func (*AssetImage) Reset ¶
func (m *AssetImage) Reset()
func (*AssetImage) Size ¶
func (m *AssetImage) Size() (n int)
func (*AssetImage) String ¶
func (m *AssetImage) String() string
func (*AssetImage) Unmarshal ¶
func (m *AssetImage) Unmarshal(dAtA []byte) error
func (*AssetImage) XXX_DiscardUnknown ¶
func (m *AssetImage) XXX_DiscardUnknown()
func (*AssetImage) XXX_Marshal ¶
func (m *AssetImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetImage) XXX_Merge ¶
func (m *AssetImage) XXX_Merge(src proto.Message)
func (*AssetImage) XXX_Size ¶
func (m *AssetImage) XXX_Size() int
func (*AssetImage) XXX_Unmarshal ¶
func (m *AssetImage) XXX_Unmarshal(b []byte) error
type AssetImage_Theme ¶
type AssetImage_Theme struct { // Should be in hex format, `^#[0-9a-fA-F]{6}$`. PrimaryColorHex string `protobuf:"bytes,1,opt,name=primary_color_hex,json=primaryColorHex,proto3" json:"primary_color_hex,omitempty"` Circle bool `protobuf:"varint,2,opt,name=circle,proto3" json:"circle,omitempty"` DarkMode bool `protobuf:"varint,3,opt,name=dark_mode,json=darkMode,proto3" json:"dark_mode,omitempty"` }
func (*AssetImage_Theme) Descriptor ¶
func (*AssetImage_Theme) Descriptor() ([]byte, []int)
func (*AssetImage_Theme) GetCircle ¶
func (m *AssetImage_Theme) GetCircle() bool
func (*AssetImage_Theme) GetDarkMode ¶
func (m *AssetImage_Theme) GetDarkMode() bool
func (*AssetImage_Theme) GetPrimaryColorHex ¶
func (m *AssetImage_Theme) GetPrimaryColorHex() string
func (*AssetImage_Theme) Marshal ¶
func (m *AssetImage_Theme) Marshal() (dAtA []byte, err error)
func (*AssetImage_Theme) MarshalToSizedBuffer ¶
func (m *AssetImage_Theme) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AssetImage_Theme) ProtoMessage ¶
func (*AssetImage_Theme) ProtoMessage()
func (*AssetImage_Theme) Reset ¶
func (m *AssetImage_Theme) Reset()
func (*AssetImage_Theme) Size ¶
func (m *AssetImage_Theme) Size() (n int)
func (*AssetImage_Theme) String ¶
func (m *AssetImage_Theme) String() string
func (*AssetImage_Theme) Unmarshal ¶
func (m *AssetImage_Theme) Unmarshal(dAtA []byte) error
func (*AssetImage_Theme) XXX_DiscardUnknown ¶
func (m *AssetImage_Theme) XXX_DiscardUnknown()
func (*AssetImage_Theme) XXX_Marshal ¶
func (m *AssetImage_Theme) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetImage_Theme) XXX_Merge ¶
func (m *AssetImage_Theme) XXX_Merge(src proto.Message)
func (*AssetImage_Theme) XXX_Size ¶
func (m *AssetImage_Theme) XXX_Size() int
func (*AssetImage_Theme) XXX_Unmarshal ¶
func (m *AssetImage_Theme) XXX_Unmarshal(b []byte) error
type BalanceCommitment ¶
type BalanceCommitment struct {
Inner []byte `protobuf:"bytes,1,opt,name=inner,proto3" json:"inner,omitempty"`
}
func (*BalanceCommitment) Descriptor ¶
func (*BalanceCommitment) Descriptor() ([]byte, []int)
func (*BalanceCommitment) GetInner ¶
func (m *BalanceCommitment) GetInner() []byte
func (*BalanceCommitment) Marshal ¶
func (m *BalanceCommitment) Marshal() (dAtA []byte, err error)
func (*BalanceCommitment) MarshalTo ¶
func (m *BalanceCommitment) MarshalTo(dAtA []byte) (int, error)
func (*BalanceCommitment) MarshalToSizedBuffer ¶
func (m *BalanceCommitment) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BalanceCommitment) ProtoMessage ¶
func (*BalanceCommitment) ProtoMessage()
func (*BalanceCommitment) Reset ¶
func (m *BalanceCommitment) Reset()
func (*BalanceCommitment) Size ¶
func (m *BalanceCommitment) Size() (n int)
func (*BalanceCommitment) String ¶
func (m *BalanceCommitment) String() string
func (*BalanceCommitment) Unmarshal ¶
func (m *BalanceCommitment) Unmarshal(dAtA []byte) error
func (*BalanceCommitment) XXX_DiscardUnknown ¶
func (m *BalanceCommitment) XXX_DiscardUnknown()
func (*BalanceCommitment) XXX_Marshal ¶
func (m *BalanceCommitment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BalanceCommitment) XXX_Merge ¶
func (m *BalanceCommitment) XXX_Merge(src proto.Message)
func (*BalanceCommitment) XXX_Size ¶
func (m *BalanceCommitment) XXX_Size() int
func (*BalanceCommitment) XXX_Unmarshal ¶
func (m *BalanceCommitment) XXX_Unmarshal(b []byte) error
type Denom ¶
type Denom struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
func (*Denom) Descriptor ¶
func (*Denom) ProtoMessage ¶
func (*Denom) ProtoMessage()
func (*Denom) XXX_DiscardUnknown ¶
func (m *Denom) XXX_DiscardUnknown()
func (*Denom) XXX_Marshal ¶
func (*Denom) XXX_Unmarshal ¶
type DenomUnit ¶
type DenomUnit struct { // denom represents the string name of the given denom unit (e.g uatom). Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` // exponent represents power of 10 exponent that one must // raise the base_denom to in order to equal the given DenomUnit's denom // 1 denom = 10^exponent base_denom // (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with // exponent = 6, thus: 1 atom = 10^6 uatom). Exponent uint32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"` // aliases is a list of string aliases for the given denom Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"` }
DenomUnit represents a struct that describes a given denomination unit of the basic token.
func (*DenomUnit) Descriptor ¶
func (*DenomUnit) GetAliases ¶
func (*DenomUnit) GetExponent ¶
func (*DenomUnit) MarshalToSizedBuffer ¶
func (*DenomUnit) ProtoMessage ¶
func (*DenomUnit) ProtoMessage()
func (*DenomUnit) XXX_DiscardUnknown ¶
func (m *DenomUnit) XXX_DiscardUnknown()
func (*DenomUnit) XXX_Marshal ¶
func (*DenomUnit) XXX_Unmarshal ¶
type EquivalentValue ¶
type EquivalentValue struct { // The equivalent amount of the parent Value in terms of the numeraire. EquivalentAmount *v1.Amount `protobuf:"bytes,1,opt,name=equivalent_amount,json=equivalentAmount,proto3" json:"equivalent_amount,omitempty"` // Metadata describing the numeraire. Numeraire *Metadata `protobuf:"bytes,2,opt,name=numeraire,proto3" json:"numeraire,omitempty"` // If set, gives some idea of when the price/equivalence was estimated. AsOfHeight uint64 `protobuf:"varint,3,opt,name=as_of_height,json=asOfHeight,proto3" json:"as_of_height,omitempty"` }
An "equivalent" value to a given value, in terms of a numeraire.
For instance, this can provide a USD-equivalent value relative to a stablecoin, or an amount of the staking token, etc. A view server can optionally include this information to assist a frontend in displaying information about the value in a user-friendly way.
func (*EquivalentValue) Descriptor ¶
func (*EquivalentValue) Descriptor() ([]byte, []int)
func (*EquivalentValue) GetAsOfHeight ¶
func (m *EquivalentValue) GetAsOfHeight() uint64
func (*EquivalentValue) GetEquivalentAmount ¶
func (m *EquivalentValue) GetEquivalentAmount() *v1.Amount
func (*EquivalentValue) GetNumeraire ¶
func (m *EquivalentValue) GetNumeraire() *Metadata
func (*EquivalentValue) Marshal ¶
func (m *EquivalentValue) Marshal() (dAtA []byte, err error)
func (*EquivalentValue) MarshalToSizedBuffer ¶
func (m *EquivalentValue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EquivalentValue) ProtoMessage ¶
func (*EquivalentValue) ProtoMessage()
func (*EquivalentValue) Reset ¶
func (m *EquivalentValue) Reset()
func (*EquivalentValue) Size ¶
func (m *EquivalentValue) Size() (n int)
func (*EquivalentValue) String ¶
func (m *EquivalentValue) String() string
func (*EquivalentValue) Unmarshal ¶
func (m *EquivalentValue) Unmarshal(dAtA []byte) error
func (*EquivalentValue) XXX_DiscardUnknown ¶
func (m *EquivalentValue) XXX_DiscardUnknown()
func (*EquivalentValue) XXX_Marshal ¶
func (m *EquivalentValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EquivalentValue) XXX_Merge ¶
func (m *EquivalentValue) XXX_Merge(src proto.Message)
func (*EquivalentValue) XXX_Size ¶
func (m *EquivalentValue) XXX_Size() int
func (*EquivalentValue) XXX_Unmarshal ¶
func (m *EquivalentValue) XXX_Unmarshal(b []byte) error
type EstimatedPrice ¶
type EstimatedPrice struct { PricedAsset *AssetId `protobuf:"bytes,1,opt,name=priced_asset,json=pricedAsset,proto3" json:"priced_asset,omitempty"` Numeraire *AssetId `protobuf:"bytes,2,opt,name=numeraire,proto3" json:"numeraire,omitempty"` // Multiply units of the priced asset by this value to get the value in the numeraire. // // This is a floating-point number since the price is approximate. NumerairePerUnit float64 `protobuf:"fixed64,3,opt,name=numeraire_per_unit,json=numerairePerUnit,proto3" json:"numeraire_per_unit,omitempty"` // If set, gives some idea of when the price was estimated. AsOfHeight uint64 `protobuf:"varint,4,opt,name=as_of_height,json=asOfHeight,proto3" json:"as_of_height,omitempty"` }
The estimated price of one asset in terms of a numeraire.
This is used for generating "equivalent values" in ValueViews.
func (*EstimatedPrice) Descriptor ¶
func (*EstimatedPrice) Descriptor() ([]byte, []int)
func (*EstimatedPrice) GetAsOfHeight ¶
func (m *EstimatedPrice) GetAsOfHeight() uint64
func (*EstimatedPrice) GetNumeraire ¶
func (m *EstimatedPrice) GetNumeraire() *AssetId
func (*EstimatedPrice) GetNumerairePerUnit ¶
func (m *EstimatedPrice) GetNumerairePerUnit() float64
func (*EstimatedPrice) GetPricedAsset ¶
func (m *EstimatedPrice) GetPricedAsset() *AssetId
func (*EstimatedPrice) Marshal ¶
func (m *EstimatedPrice) Marshal() (dAtA []byte, err error)
func (*EstimatedPrice) MarshalToSizedBuffer ¶
func (m *EstimatedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EstimatedPrice) ProtoMessage ¶
func (*EstimatedPrice) ProtoMessage()
func (*EstimatedPrice) Reset ¶
func (m *EstimatedPrice) Reset()
func (*EstimatedPrice) Size ¶
func (m *EstimatedPrice) Size() (n int)
func (*EstimatedPrice) String ¶
func (m *EstimatedPrice) String() string
func (*EstimatedPrice) Unmarshal ¶
func (m *EstimatedPrice) Unmarshal(dAtA []byte) error
func (*EstimatedPrice) XXX_DiscardUnknown ¶
func (m *EstimatedPrice) XXX_DiscardUnknown()
func (*EstimatedPrice) XXX_Marshal ¶
func (m *EstimatedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EstimatedPrice) XXX_Merge ¶
func (m *EstimatedPrice) XXX_Merge(src proto.Message)
func (*EstimatedPrice) XXX_Size ¶
func (m *EstimatedPrice) XXX_Size() int
func (*EstimatedPrice) XXX_Unmarshal ¶
func (m *EstimatedPrice) XXX_Unmarshal(b []byte) error
type Metadata ¶
type Metadata struct { Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // denom_units represents the list of DenomUnit's for a given coin DenomUnits []*DenomUnit `protobuf:"bytes,2,rep,name=denom_units,json=denomUnits,proto3" json:"denom_units,omitempty"` // base represents the base denom (should be the DenomUnit with exponent = 0). Base string `protobuf:"bytes,3,opt,name=base,proto3" json:"base,omitempty"` // display indicates the suggested denom that should be // displayed in clients. Display string `protobuf:"bytes,4,opt,name=display,proto3" json:"display,omitempty"` // name defines the name of the token (eg: Cosmos Atom) Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // symbol is the token symbol usually shown on exchanges (eg: ATOM). This can // be the same as the display. Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"` // the asset ID on Penumbra for this denomination. PenumbraAssetId *AssetId `protobuf:"bytes,1984,opt,name=penumbra_asset_id,json=penumbraAssetId,proto3" json:"penumbra_asset_id,omitempty"` Images []*AssetImage `protobuf:"bytes,1985,rep,name=images,proto3" json:"images,omitempty"` // An optional "score" used to prioritize token lists. // // This is solely for use in client-side registries. PriorityScore uint64 `protobuf:"varint,1986,opt,name=priority_score,json=priorityScore,proto3" json:"priority_score,omitempty"` }
Describes metadata about a given asset.
func (*Metadata) Descriptor ¶
func (*Metadata) GetDenomUnits ¶
func (*Metadata) GetDescription ¶
func (*Metadata) GetDisplay ¶
func (*Metadata) GetImages ¶
func (m *Metadata) GetImages() []*AssetImage
func (*Metadata) GetPenumbraAssetId ¶
func (*Metadata) GetPriorityScore ¶
func (*Metadata) MarshalToSizedBuffer ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶
func (*Metadata) XXX_Unmarshal ¶
type Value ¶
type Value struct { Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` AssetId *AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` }
func (*Value) Descriptor ¶
func (*Value) GetAssetId ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶
func (m *Value) XXX_DiscardUnknown()
func (*Value) XXX_Marshal ¶
func (*Value) XXX_Unmarshal ¶
type ValueView ¶
type ValueView struct { // Types that are valid to be assigned to ValueView: // // *ValueView_KnownAssetId_ // *ValueView_UnknownAssetId_ ValueView isValueView_ValueView `protobuf_oneof:"value_view"` }
Represents a value of a known or unknown denomination.
func (*ValueView) Descriptor ¶
func (*ValueView) GetKnownAssetId ¶
func (m *ValueView) GetKnownAssetId() *ValueView_KnownAssetId
func (*ValueView) GetUnknownAssetId ¶
func (m *ValueView) GetUnknownAssetId() *ValueView_UnknownAssetId
func (*ValueView) GetValueView ¶
func (m *ValueView) GetValueView() isValueView_ValueView
func (*ValueView) MarshalToSizedBuffer ¶
func (*ValueView) ProtoMessage ¶
func (*ValueView) ProtoMessage()
func (*ValueView) XXX_DiscardUnknown ¶
func (m *ValueView) XXX_DiscardUnknown()
func (*ValueView) XXX_Marshal ¶
func (*ValueView) XXX_OneofWrappers ¶
func (*ValueView) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*ValueView) XXX_Unmarshal ¶
type ValueView_KnownAssetId ¶
type ValueView_KnownAssetId struct { // The amount of the value. Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // The asset metadata describing the asset of the value. Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // Optionally, a list of equivalent values in other numeraires. EquivalentValues []*EquivalentValue `protobuf:"bytes,3,rep,name=equivalent_values,json=equivalentValues,proto3" json:"equivalent_values,omitempty"` // Optionally, extended, dynamically-typed metadata about the object this // token represents. // // This is left flexible to allow future extensions. For instance, a view // server could augment an LPNFT with a message describing the current state // of the position and its reserves, allowing a frontend to render LPNFTs // with their position information (trading pair, etc). However, because // this is in an extension, a frontend that does not have special handling // logic would fall back on the ordinary asset metadata. ExtendedMetadata *types.Any `protobuf:"bytes,4,opt,name=extended_metadata,json=extendedMetadata,proto3" json:"extended_metadata,omitempty"` }
A value whose asset ID is known and has metadata.
func (*ValueView_KnownAssetId) Descriptor ¶
func (*ValueView_KnownAssetId) Descriptor() ([]byte, []int)
func (*ValueView_KnownAssetId) GetAmount ¶
func (m *ValueView_KnownAssetId) GetAmount() *v1.Amount
func (*ValueView_KnownAssetId) GetEquivalentValues ¶
func (m *ValueView_KnownAssetId) GetEquivalentValues() []*EquivalentValue
func (*ValueView_KnownAssetId) GetExtendedMetadata ¶
func (m *ValueView_KnownAssetId) GetExtendedMetadata() *types.Any
func (*ValueView_KnownAssetId) GetMetadata ¶
func (m *ValueView_KnownAssetId) GetMetadata() *Metadata
func (*ValueView_KnownAssetId) Marshal ¶
func (m *ValueView_KnownAssetId) Marshal() (dAtA []byte, err error)
func (*ValueView_KnownAssetId) MarshalTo ¶
func (m *ValueView_KnownAssetId) MarshalTo(dAtA []byte) (int, error)
func (*ValueView_KnownAssetId) MarshalToSizedBuffer ¶
func (m *ValueView_KnownAssetId) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValueView_KnownAssetId) ProtoMessage ¶
func (*ValueView_KnownAssetId) ProtoMessage()
func (*ValueView_KnownAssetId) Reset ¶
func (m *ValueView_KnownAssetId) Reset()
func (*ValueView_KnownAssetId) Size ¶
func (m *ValueView_KnownAssetId) Size() (n int)
func (*ValueView_KnownAssetId) String ¶
func (m *ValueView_KnownAssetId) String() string
func (*ValueView_KnownAssetId) Unmarshal ¶
func (m *ValueView_KnownAssetId) Unmarshal(dAtA []byte) error
func (*ValueView_KnownAssetId) XXX_DiscardUnknown ¶
func (m *ValueView_KnownAssetId) XXX_DiscardUnknown()
func (*ValueView_KnownAssetId) XXX_Marshal ¶
func (m *ValueView_KnownAssetId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValueView_KnownAssetId) XXX_Merge ¶
func (m *ValueView_KnownAssetId) XXX_Merge(src proto.Message)
func (*ValueView_KnownAssetId) XXX_Size ¶
func (m *ValueView_KnownAssetId) XXX_Size() int
func (*ValueView_KnownAssetId) XXX_Unmarshal ¶
func (m *ValueView_KnownAssetId) XXX_Unmarshal(b []byte) error
type ValueView_KnownAssetId_ ¶
type ValueView_KnownAssetId_ struct {
KnownAssetId *ValueView_KnownAssetId `protobuf:"bytes,1,opt,name=known_asset_id,json=knownAssetId,proto3,oneof" json:"known_asset_id,omitempty"`
}
func (*ValueView_KnownAssetId_) MarshalTo ¶
func (m *ValueView_KnownAssetId_) MarshalTo(dAtA []byte) (int, error)
func (*ValueView_KnownAssetId_) MarshalToSizedBuffer ¶
func (m *ValueView_KnownAssetId_) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValueView_KnownAssetId_) Size ¶
func (m *ValueView_KnownAssetId_) Size() (n int)
type ValueView_UnknownAssetId ¶
type ValueView_UnknownAssetId struct { Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` AssetId *AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` }
A value whose asset ID is unknown, with no metadata.
func (*ValueView_UnknownAssetId) Descriptor ¶
func (*ValueView_UnknownAssetId) Descriptor() ([]byte, []int)
func (*ValueView_UnknownAssetId) GetAmount ¶
func (m *ValueView_UnknownAssetId) GetAmount() *v1.Amount
func (*ValueView_UnknownAssetId) GetAssetId ¶
func (m *ValueView_UnknownAssetId) GetAssetId() *AssetId
func (*ValueView_UnknownAssetId) Marshal ¶
func (m *ValueView_UnknownAssetId) Marshal() (dAtA []byte, err error)
func (*ValueView_UnknownAssetId) MarshalTo ¶
func (m *ValueView_UnknownAssetId) MarshalTo(dAtA []byte) (int, error)
func (*ValueView_UnknownAssetId) MarshalToSizedBuffer ¶
func (m *ValueView_UnknownAssetId) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValueView_UnknownAssetId) ProtoMessage ¶
func (*ValueView_UnknownAssetId) ProtoMessage()
func (*ValueView_UnknownAssetId) Reset ¶
func (m *ValueView_UnknownAssetId) Reset()
func (*ValueView_UnknownAssetId) Size ¶
func (m *ValueView_UnknownAssetId) Size() (n int)
func (*ValueView_UnknownAssetId) String ¶
func (m *ValueView_UnknownAssetId) String() string
func (*ValueView_UnknownAssetId) Unmarshal ¶
func (m *ValueView_UnknownAssetId) Unmarshal(dAtA []byte) error
func (*ValueView_UnknownAssetId) XXX_DiscardUnknown ¶
func (m *ValueView_UnknownAssetId) XXX_DiscardUnknown()
func (*ValueView_UnknownAssetId) XXX_Marshal ¶
func (m *ValueView_UnknownAssetId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValueView_UnknownAssetId) XXX_Merge ¶
func (m *ValueView_UnknownAssetId) XXX_Merge(src proto.Message)
func (*ValueView_UnknownAssetId) XXX_Size ¶
func (m *ValueView_UnknownAssetId) XXX_Size() int
func (*ValueView_UnknownAssetId) XXX_Unmarshal ¶
func (m *ValueView_UnknownAssetId) XXX_Unmarshal(b []byte) error
type ValueView_UnknownAssetId_ ¶
type ValueView_UnknownAssetId_ struct {
UnknownAssetId *ValueView_UnknownAssetId `protobuf:"bytes,2,opt,name=unknown_asset_id,json=unknownAssetId,proto3,oneof" json:"unknown_asset_id,omitempty"`
}
func (*ValueView_UnknownAssetId_) MarshalTo ¶
func (m *ValueView_UnknownAssetId_) MarshalTo(dAtA []byte) (int, error)
func (*ValueView_UnknownAssetId_) MarshalToSizedBuffer ¶
func (m *ValueView_UnknownAssetId_) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValueView_UnknownAssetId_) Size ¶
func (m *ValueView_UnknownAssetId_) Size() (n int)