Documentation
¶
Index ¶
- Variables
- func RegisterCurrencyServer(s grpc.ServiceRegistrar, srv CurrencyServer)
- type CurrencyClient
- type CurrencyServer
- type GetAllRatesRequest
- func (*GetAllRatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllRatesRequest) GetTimestamp() *timestamppb.Timestamp
- func (*GetAllRatesRequest) ProtoMessage()
- func (x *GetAllRatesRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllRatesRequest) Reset()
- func (x *GetAllRatesRequest) String() string
- func (m *GetAllRatesRequest) Validate() error
- type GetAllRatesRequestValidationError
- func (e GetAllRatesRequestValidationError) Cause() error
- func (e GetAllRatesRequestValidationError) Error() string
- func (e GetAllRatesRequestValidationError) ErrorName() string
- func (e GetAllRatesRequestValidationError) Field() string
- func (e GetAllRatesRequestValidationError) Key() bool
- func (e GetAllRatesRequestValidationError) Reason() string
- type GetAllRatesResponse
- func (*GetAllRatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllRatesResponse) GetAsOf() *timestamppb.Timestamp
- func (x *GetAllRatesResponse) GetRates() map[string]float64
- func (x *GetAllRatesResponse) GetResult() GetAllRatesResponse_Result
- func (*GetAllRatesResponse) ProtoMessage()
- func (x *GetAllRatesResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllRatesResponse) Reset()
- func (x *GetAllRatesResponse) String() string
- func (m *GetAllRatesResponse) Validate() error
- type GetAllRatesResponseValidationError
- func (e GetAllRatesResponseValidationError) Cause() error
- func (e GetAllRatesResponseValidationError) Error() string
- func (e GetAllRatesResponseValidationError) ErrorName() string
- func (e GetAllRatesResponseValidationError) Field() string
- func (e GetAllRatesResponseValidationError) Key() bool
- func (e GetAllRatesResponseValidationError) Reason() string
- type GetAllRatesResponse_Result
- func (GetAllRatesResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetAllRatesResponse_Result) Enum() *GetAllRatesResponse_Result
- func (GetAllRatesResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetAllRatesResponse_Result) Number() protoreflect.EnumNumber
- func (x GetAllRatesResponse_Result) String() string
- func (GetAllRatesResponse_Result) Type() protoreflect.EnumType
- type GetHistoricalMintDataRequest
- func (*GetHistoricalMintDataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetHistoricalMintDataRequest) GetAddress() *v1.SolanaAccountId
- func (x *GetHistoricalMintDataRequest) GetCurrencyCode() string
- func (x *GetHistoricalMintDataRequest) GetPredefinedRange() GetHistoricalMintDataRequest_PredefinedRange
- func (m *GetHistoricalMintDataRequest) GetRange() isGetHistoricalMintDataRequest_Range
- func (*GetHistoricalMintDataRequest) ProtoMessage()
- func (x *GetHistoricalMintDataRequest) ProtoReflect() protoreflect.Message
- func (x *GetHistoricalMintDataRequest) Reset()
- func (x *GetHistoricalMintDataRequest) String() string
- func (m *GetHistoricalMintDataRequest) Validate() error
- type GetHistoricalMintDataRequestValidationError
- func (e GetHistoricalMintDataRequestValidationError) Cause() error
- func (e GetHistoricalMintDataRequestValidationError) Error() string
- func (e GetHistoricalMintDataRequestValidationError) ErrorName() string
- func (e GetHistoricalMintDataRequestValidationError) Field() string
- func (e GetHistoricalMintDataRequestValidationError) Key() bool
- func (e GetHistoricalMintDataRequestValidationError) Reason() string
- type GetHistoricalMintDataRequest_PredefinedRange
- func (GetHistoricalMintDataRequest_PredefinedRange) Descriptor() protoreflect.EnumDescriptor
- func (x GetHistoricalMintDataRequest_PredefinedRange) Enum() *GetHistoricalMintDataRequest_PredefinedRange
- func (GetHistoricalMintDataRequest_PredefinedRange) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetHistoricalMintDataRequest_PredefinedRange) Number() protoreflect.EnumNumber
- func (x GetHistoricalMintDataRequest_PredefinedRange) String() string
- func (GetHistoricalMintDataRequest_PredefinedRange) Type() protoreflect.EnumType
- type GetHistoricalMintDataRequest_PredefinedRange_
- type GetHistoricalMintDataResponse
- func (*GetHistoricalMintDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetHistoricalMintDataResponse) GetData() []*HistoricalMintData
- func (x *GetHistoricalMintDataResponse) GetResult() GetHistoricalMintDataResponse_Result
- func (*GetHistoricalMintDataResponse) ProtoMessage()
- func (x *GetHistoricalMintDataResponse) ProtoReflect() protoreflect.Message
- func (x *GetHistoricalMintDataResponse) Reset()
- func (x *GetHistoricalMintDataResponse) String() string
- func (m *GetHistoricalMintDataResponse) Validate() error
- type GetHistoricalMintDataResponseValidationError
- func (e GetHistoricalMintDataResponseValidationError) Cause() error
- func (e GetHistoricalMintDataResponseValidationError) Error() string
- func (e GetHistoricalMintDataResponseValidationError) ErrorName() string
- func (e GetHistoricalMintDataResponseValidationError) Field() string
- func (e GetHistoricalMintDataResponseValidationError) Key() bool
- func (e GetHistoricalMintDataResponseValidationError) Reason() string
- type GetHistoricalMintDataResponse_Result
- func (GetHistoricalMintDataResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetHistoricalMintDataResponse_Result) Enum() *GetHistoricalMintDataResponse_Result
- func (GetHistoricalMintDataResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetHistoricalMintDataResponse_Result) Number() protoreflect.EnumNumber
- func (x GetHistoricalMintDataResponse_Result) String() string
- func (GetHistoricalMintDataResponse_Result) Type() protoreflect.EnumType
- type GetMintsRequest
- func (*GetMintsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMintsRequest) GetAddresses() []*v1.SolanaAccountId
- func (*GetMintsRequest) ProtoMessage()
- func (x *GetMintsRequest) ProtoReflect() protoreflect.Message
- func (x *GetMintsRequest) Reset()
- func (x *GetMintsRequest) String() string
- func (m *GetMintsRequest) Validate() error
- type GetMintsRequestValidationError
- func (e GetMintsRequestValidationError) Cause() error
- func (e GetMintsRequestValidationError) Error() string
- func (e GetMintsRequestValidationError) ErrorName() string
- func (e GetMintsRequestValidationError) Field() string
- func (e GetMintsRequestValidationError) Key() bool
- func (e GetMintsRequestValidationError) Reason() string
- type GetMintsResponse
- func (*GetMintsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMintsResponse) GetMetadataByAddress() map[string]*Mint
- func (x *GetMintsResponse) GetResult() GetMintsResponse_Result
- func (*GetMintsResponse) ProtoMessage()
- func (x *GetMintsResponse) ProtoReflect() protoreflect.Message
- func (x *GetMintsResponse) Reset()
- func (x *GetMintsResponse) String() string
- func (m *GetMintsResponse) Validate() error
- type GetMintsResponseValidationError
- func (e GetMintsResponseValidationError) Cause() error
- func (e GetMintsResponseValidationError) Error() string
- func (e GetMintsResponseValidationError) ErrorName() string
- func (e GetMintsResponseValidationError) Field() string
- func (e GetMintsResponseValidationError) Key() bool
- func (e GetMintsResponseValidationError) Reason() string
- type GetMintsResponse_Result
- func (GetMintsResponse_Result) Descriptor() protoreflect.EnumDescriptor
- func (x GetMintsResponse_Result) Enum() *GetMintsResponse_Result
- func (GetMintsResponse_Result) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetMintsResponse_Result) Number() protoreflect.EnumNumber
- func (x GetMintsResponse_Result) String() string
- func (GetMintsResponse_Result) Type() protoreflect.EnumType
- type HistoricalMintData
- func (*HistoricalMintData) Descriptor() ([]byte, []int)deprecated
- func (x *HistoricalMintData) GetMarketCap() float64
- func (x *HistoricalMintData) GetTimestamp() *timestamppb.Timestamp
- func (*HistoricalMintData) ProtoMessage()
- func (x *HistoricalMintData) ProtoReflect() protoreflect.Message
- func (x *HistoricalMintData) Reset()
- func (x *HistoricalMintData) String() string
- func (m *HistoricalMintData) Validate() error
- type HistoricalMintDataValidationError
- func (e HistoricalMintDataValidationError) Cause() error
- func (e HistoricalMintDataValidationError) Error() string
- func (e HistoricalMintDataValidationError) ErrorName() string
- func (e HistoricalMintDataValidationError) Field() string
- func (e HistoricalMintDataValidationError) Key() bool
- func (e HistoricalMintDataValidationError) Reason() string
- type LaunchpadMetadata
- func (*LaunchpadMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *LaunchpadMetadata) GetAuthority() *v1.SolanaAccountId
- func (x *LaunchpadMetadata) GetCoreMintVault() *v1.SolanaAccountId
- func (x *LaunchpadMetadata) GetCurrencyConfig() *v1.SolanaAccountId
- func (x *LaunchpadMetadata) GetLiquidityPool() *v1.SolanaAccountId
- func (x *LaunchpadMetadata) GetMintVault() *v1.SolanaAccountId
- func (x *LaunchpadMetadata) GetSeed() *v1.SolanaAccountId
- func (x *LaunchpadMetadata) GetSellFeeBps() uint32
- func (x *LaunchpadMetadata) GetSupplyFromBonding() uint64
- func (*LaunchpadMetadata) ProtoMessage()
- func (x *LaunchpadMetadata) ProtoReflect() protoreflect.Message
- func (x *LaunchpadMetadata) Reset()
- func (x *LaunchpadMetadata) String() string
- func (m *LaunchpadMetadata) Validate() error
- type LaunchpadMetadataValidationError
- func (e LaunchpadMetadataValidationError) Cause() error
- func (e LaunchpadMetadataValidationError) Error() string
- func (e LaunchpadMetadataValidationError) ErrorName() string
- func (e LaunchpadMetadataValidationError) Field() string
- func (e LaunchpadMetadataValidationError) Key() bool
- func (e LaunchpadMetadataValidationError) Reason() string
- type Mint
- func (*Mint) Descriptor() ([]byte, []int)deprecated
- func (x *Mint) GetAddress() *v1.SolanaAccountId
- func (x *Mint) GetCreatedAt() *timestamppb.Timestamp
- func (x *Mint) GetDecimals() uint32
- func (x *Mint) GetDescription() string
- func (x *Mint) GetImageUrl() string
- func (x *Mint) GetLaunchpadMetadata() *LaunchpadMetadata
- func (x *Mint) GetName() string
- func (x *Mint) GetSymbol() string
- func (x *Mint) GetVmMetadata() *VmMetadata
- func (*Mint) ProtoMessage()
- func (x *Mint) ProtoReflect() protoreflect.Message
- func (x *Mint) Reset()
- func (x *Mint) String() string
- func (m *Mint) Validate() error
- type MintValidationError
- type UnimplementedCurrencyServer
- func (UnimplementedCurrencyServer) GetAllRates(context.Context, *GetAllRatesRequest) (*GetAllRatesResponse, error)
- func (UnimplementedCurrencyServer) GetHistoricalMintData(context.Context, *GetHistoricalMintDataRequest) (*GetHistoricalMintDataResponse, error)
- func (UnimplementedCurrencyServer) GetMints(context.Context, *GetMintsRequest) (*GetMintsResponse, error)
- type UnsafeCurrencyServer
- type VmMetadata
- func (*VmMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *VmMetadata) GetAuthority() *v1.SolanaAccountId
- func (x *VmMetadata) GetLockDurationInDays() uint32
- func (x *VmMetadata) GetOmnibus() *v1.SolanaAccountId
- func (x *VmMetadata) GetVm() *v1.SolanaAccountId
- func (*VmMetadata) ProtoMessage()
- func (x *VmMetadata) ProtoReflect() protoreflect.Message
- func (x *VmMetadata) Reset()
- func (x *VmMetadata) String() string
- func (m *VmMetadata) Validate() error
- type VmMetadataValidationError
Constants ¶
This section is empty.
Variables ¶
var ( GetAllRatesResponse_Result_name = map[int32]string{ 0: "OK", 1: "MISSING_DATA", } GetAllRatesResponse_Result_value = map[string]int32{ "OK": 0, "MISSING_DATA": 1, } )
Enum value maps for GetAllRatesResponse_Result.
var ( GetMintsResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", } GetMintsResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, } )
Enum value maps for GetMintsResponse_Result.
var ( GetHistoricalMintDataRequest_PredefinedRange_name = map[int32]string{ 0: "ALL_TIME", 1: "LAST_DAY", 2: "LAST_WEEK", 3: "LAST_MONTH", 4: "LAST_YEAR", } GetHistoricalMintDataRequest_PredefinedRange_value = map[string]int32{ "ALL_TIME": 0, "LAST_DAY": 1, "LAST_WEEK": 2, "LAST_MONTH": 3, "LAST_YEAR": 4, } )
Enum value maps for GetHistoricalMintDataRequest_PredefinedRange.
var ( GetHistoricalMintDataResponse_Result_name = map[int32]string{ 0: "OK", 1: "NOT_FOUND", 2: "MISSING_DATA", } GetHistoricalMintDataResponse_Result_value = map[string]int32{ "OK": 0, "NOT_FOUND": 1, "MISSING_DATA": 2, } )
Enum value maps for GetHistoricalMintDataResponse_Result.
var Currency_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ocp.currency.v1.Currency", HandlerType: (*CurrencyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAllRates", Handler: _Currency_GetAllRates_Handler, }, { MethodName: "GetMints", Handler: _Currency_GetMints_Handler, }, { MethodName: "GetHistoricalMintData", Handler: _Currency_GetHistoricalMintData_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "currency/v1/currency_service.proto", }
Currency_ServiceDesc is the grpc.ServiceDesc for Currency service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_currency_v1_currency_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCurrencyServer ¶
func RegisterCurrencyServer(s grpc.ServiceRegistrar, srv CurrencyServer)
Types ¶
type CurrencyClient ¶
type CurrencyClient interface {
// GetAllRates returns the exchange rates for the core mint token against all
// available currencies
GetAllRates(ctx context.Context, in *GetAllRatesRequest, opts ...grpc.CallOption) (*GetAllRatesResponse, error)
// GetMints gets mint account metadata by address
GetMints(ctx context.Context, in *GetMintsRequest, opts ...grpc.CallOption) (*GetMintsResponse, error)
// GetHistoricalMintData returns historical market data for a mint
GetHistoricalMintData(ctx context.Context, in *GetHistoricalMintDataRequest, opts ...grpc.CallOption) (*GetHistoricalMintDataResponse, error)
}
CurrencyClient is the client API for Currency service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCurrencyClient ¶
func NewCurrencyClient(cc grpc.ClientConnInterface) CurrencyClient
type CurrencyServer ¶
type CurrencyServer interface {
// GetAllRates returns the exchange rates for the core mint token against all
// available currencies
GetAllRates(context.Context, *GetAllRatesRequest) (*GetAllRatesResponse, error)
// GetMints gets mint account metadata by address
GetMints(context.Context, *GetMintsRequest) (*GetMintsResponse, error)
// GetHistoricalMintData returns historical market data for a mint
GetHistoricalMintData(context.Context, *GetHistoricalMintDataRequest) (*GetHistoricalMintDataResponse, error)
// contains filtered or unexported methods
}
CurrencyServer is the server API for Currency service. All implementations must embed UnimplementedCurrencyServer for forward compatibility
type GetAllRatesRequest ¶
type GetAllRatesRequest struct {
// If timestamp is included, the returned rate will be the most recent available
// exchange rate prior to the provided timestamp within the same day. Otherwise,
// the latest rates will be returned.
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
func (*GetAllRatesRequest) Descriptor
deprecated
func (*GetAllRatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllRatesRequest.ProtoReflect.Descriptor instead.
func (*GetAllRatesRequest) GetTimestamp ¶
func (x *GetAllRatesRequest) GetTimestamp() *timestamppb.Timestamp
func (*GetAllRatesRequest) ProtoMessage ¶
func (*GetAllRatesRequest) ProtoMessage()
func (*GetAllRatesRequest) ProtoReflect ¶
func (x *GetAllRatesRequest) ProtoReflect() protoreflect.Message
func (*GetAllRatesRequest) Reset ¶
func (x *GetAllRatesRequest) Reset()
func (*GetAllRatesRequest) String ¶
func (x *GetAllRatesRequest) String() string
func (*GetAllRatesRequest) Validate ¶
func (m *GetAllRatesRequest) Validate() error
Validate checks the field values on GetAllRatesRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAllRatesRequestValidationError ¶
type GetAllRatesRequestValidationError struct {
// contains filtered or unexported fields
}
GetAllRatesRequestValidationError is the validation error returned by GetAllRatesRequest.Validate if the designated constraints aren't met.
func (GetAllRatesRequestValidationError) Cause ¶
func (e GetAllRatesRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAllRatesRequestValidationError) Error ¶
func (e GetAllRatesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAllRatesRequestValidationError) ErrorName ¶
func (e GetAllRatesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAllRatesRequestValidationError) Field ¶
func (e GetAllRatesRequestValidationError) Field() string
Field function returns field value.
func (GetAllRatesRequestValidationError) Key ¶
func (e GetAllRatesRequestValidationError) Key() bool
Key function returns key value.
func (GetAllRatesRequestValidationError) Reason ¶
func (e GetAllRatesRequestValidationError) Reason() string
Reason function returns reason value.
type GetAllRatesResponse ¶
type GetAllRatesResponse struct {
Result GetAllRatesResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.currency.v1.GetAllRatesResponse_Result" json:"result,omitempty"`
// The time the exchange rates were observed
AsOf *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=as_of,json=asOf,proto3" json:"as_of,omitempty"`
// The price of 1 core mint token in different currencies, keyed on 3- or 4-
// letter lowercase currency code.
Rates map[string]float64 `` /* 153-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetAllRatesResponse) Descriptor
deprecated
func (*GetAllRatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllRatesResponse.ProtoReflect.Descriptor instead.
func (*GetAllRatesResponse) GetAsOf ¶
func (x *GetAllRatesResponse) GetAsOf() *timestamppb.Timestamp
func (*GetAllRatesResponse) GetRates ¶
func (x *GetAllRatesResponse) GetRates() map[string]float64
func (*GetAllRatesResponse) GetResult ¶
func (x *GetAllRatesResponse) GetResult() GetAllRatesResponse_Result
func (*GetAllRatesResponse) ProtoMessage ¶
func (*GetAllRatesResponse) ProtoMessage()
func (*GetAllRatesResponse) ProtoReflect ¶
func (x *GetAllRatesResponse) ProtoReflect() protoreflect.Message
func (*GetAllRatesResponse) Reset ¶
func (x *GetAllRatesResponse) Reset()
func (*GetAllRatesResponse) String ¶
func (x *GetAllRatesResponse) String() string
func (*GetAllRatesResponse) Validate ¶
func (m *GetAllRatesResponse) Validate() error
Validate checks the field values on GetAllRatesResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetAllRatesResponseValidationError ¶
type GetAllRatesResponseValidationError struct {
// contains filtered or unexported fields
}
GetAllRatesResponseValidationError is the validation error returned by GetAllRatesResponse.Validate if the designated constraints aren't met.
func (GetAllRatesResponseValidationError) Cause ¶
func (e GetAllRatesResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAllRatesResponseValidationError) Error ¶
func (e GetAllRatesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAllRatesResponseValidationError) ErrorName ¶
func (e GetAllRatesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAllRatesResponseValidationError) Field ¶
func (e GetAllRatesResponseValidationError) Field() string
Field function returns field value.
func (GetAllRatesResponseValidationError) Key ¶
func (e GetAllRatesResponseValidationError) Key() bool
Key function returns key value.
func (GetAllRatesResponseValidationError) Reason ¶
func (e GetAllRatesResponseValidationError) Reason() string
Reason function returns reason value.
type GetAllRatesResponse_Result ¶
type GetAllRatesResponse_Result int32
const ( GetAllRatesResponse_OK GetAllRatesResponse_Result = 0 // No currency data is available for the requested timestamp. GetAllRatesResponse_MISSING_DATA GetAllRatesResponse_Result = 1 )
func (GetAllRatesResponse_Result) Descriptor ¶
func (GetAllRatesResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetAllRatesResponse_Result) Enum ¶
func (x GetAllRatesResponse_Result) Enum() *GetAllRatesResponse_Result
func (GetAllRatesResponse_Result) EnumDescriptor
deprecated
func (GetAllRatesResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetAllRatesResponse_Result.Descriptor instead.
func (GetAllRatesResponse_Result) Number ¶
func (x GetAllRatesResponse_Result) Number() protoreflect.EnumNumber
func (GetAllRatesResponse_Result) String ¶
func (x GetAllRatesResponse_Result) String() string
func (GetAllRatesResponse_Result) Type ¶
func (GetAllRatesResponse_Result) Type() protoreflect.EnumType
type GetHistoricalMintDataRequest ¶ added in v0.8.0
type GetHistoricalMintDataRequest struct {
// The mint address to get historical data for
Address *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// The currency code for the returned market data (e.g., "usd")
CurrencyCode string `protobuf:"bytes,2,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
// Types that are assignable to Range:
//
// *GetHistoricalMintDataRequest_PredefinedRange_
Range isGetHistoricalMintDataRequest_Range `protobuf_oneof:"range"`
// contains filtered or unexported fields
}
func (*GetHistoricalMintDataRequest) Descriptor
deprecated
added in
v0.8.0
func (*GetHistoricalMintDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHistoricalMintDataRequest.ProtoReflect.Descriptor instead.
func (*GetHistoricalMintDataRequest) GetAddress ¶ added in v0.8.0
func (x *GetHistoricalMintDataRequest) GetAddress() *v1.SolanaAccountId
func (*GetHistoricalMintDataRequest) GetCurrencyCode ¶ added in v0.8.0
func (x *GetHistoricalMintDataRequest) GetCurrencyCode() string
func (*GetHistoricalMintDataRequest) GetPredefinedRange ¶ added in v0.8.0
func (x *GetHistoricalMintDataRequest) GetPredefinedRange() GetHistoricalMintDataRequest_PredefinedRange
func (*GetHistoricalMintDataRequest) GetRange ¶ added in v0.8.0
func (m *GetHistoricalMintDataRequest) GetRange() isGetHistoricalMintDataRequest_Range
func (*GetHistoricalMintDataRequest) ProtoMessage ¶ added in v0.8.0
func (*GetHistoricalMintDataRequest) ProtoMessage()
func (*GetHistoricalMintDataRequest) ProtoReflect ¶ added in v0.8.0
func (x *GetHistoricalMintDataRequest) ProtoReflect() protoreflect.Message
func (*GetHistoricalMintDataRequest) Reset ¶ added in v0.8.0
func (x *GetHistoricalMintDataRequest) Reset()
func (*GetHistoricalMintDataRequest) String ¶ added in v0.8.0
func (x *GetHistoricalMintDataRequest) String() string
func (*GetHistoricalMintDataRequest) Validate ¶ added in v0.8.0
func (m *GetHistoricalMintDataRequest) Validate() error
Validate checks the field values on GetHistoricalMintDataRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetHistoricalMintDataRequestValidationError ¶ added in v0.8.0
type GetHistoricalMintDataRequestValidationError struct {
// contains filtered or unexported fields
}
GetHistoricalMintDataRequestValidationError is the validation error returned by GetHistoricalMintDataRequest.Validate if the designated constraints aren't met.
func (GetHistoricalMintDataRequestValidationError) Cause ¶ added in v0.8.0
func (e GetHistoricalMintDataRequestValidationError) Cause() error
Cause function returns cause value.
func (GetHistoricalMintDataRequestValidationError) Error ¶ added in v0.8.0
func (e GetHistoricalMintDataRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetHistoricalMintDataRequestValidationError) ErrorName ¶ added in v0.8.0
func (e GetHistoricalMintDataRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetHistoricalMintDataRequestValidationError) Field ¶ added in v0.8.0
func (e GetHistoricalMintDataRequestValidationError) Field() string
Field function returns field value.
func (GetHistoricalMintDataRequestValidationError) Key ¶ added in v0.8.0
func (e GetHistoricalMintDataRequestValidationError) Key() bool
Key function returns key value.
func (GetHistoricalMintDataRequestValidationError) Reason ¶ added in v0.8.0
func (e GetHistoricalMintDataRequestValidationError) Reason() string
Reason function returns reason value.
type GetHistoricalMintDataRequest_PredefinedRange ¶ added in v0.8.0
type GetHistoricalMintDataRequest_PredefinedRange int32
const ( GetHistoricalMintDataRequest_ALL_TIME GetHistoricalMintDataRequest_PredefinedRange = 0 GetHistoricalMintDataRequest_LAST_DAY GetHistoricalMintDataRequest_PredefinedRange = 1 GetHistoricalMintDataRequest_LAST_WEEK GetHistoricalMintDataRequest_PredefinedRange = 2 GetHistoricalMintDataRequest_LAST_MONTH GetHistoricalMintDataRequest_PredefinedRange = 3 GetHistoricalMintDataRequest_LAST_YEAR GetHistoricalMintDataRequest_PredefinedRange = 4 )
func (GetHistoricalMintDataRequest_PredefinedRange) Descriptor ¶ added in v0.8.0
func (GetHistoricalMintDataRequest_PredefinedRange) Descriptor() protoreflect.EnumDescriptor
func (GetHistoricalMintDataRequest_PredefinedRange) EnumDescriptor
deprecated
added in
v0.8.0
func (GetHistoricalMintDataRequest_PredefinedRange) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetHistoricalMintDataRequest_PredefinedRange.Descriptor instead.
func (GetHistoricalMintDataRequest_PredefinedRange) Number ¶ added in v0.8.0
func (x GetHistoricalMintDataRequest_PredefinedRange) Number() protoreflect.EnumNumber
func (GetHistoricalMintDataRequest_PredefinedRange) String ¶ added in v0.8.0
func (x GetHistoricalMintDataRequest_PredefinedRange) String() string
func (GetHistoricalMintDataRequest_PredefinedRange) Type ¶ added in v0.8.0
func (GetHistoricalMintDataRequest_PredefinedRange) Type() protoreflect.EnumType
type GetHistoricalMintDataRequest_PredefinedRange_ ¶ added in v0.8.0
type GetHistoricalMintDataRequest_PredefinedRange_ struct {
PredefinedRange GetHistoricalMintDataRequest_PredefinedRange `` /* 145-byte string literal not displayed */
}
type GetHistoricalMintDataResponse ¶ added in v0.8.0
type GetHistoricalMintDataResponse struct {
Result GetHistoricalMintDataResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.currency.v1.GetHistoricalMintDataResponse_Result" json:"result,omitempty"`
Data []*HistoricalMintData `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*GetHistoricalMintDataResponse) Descriptor
deprecated
added in
v0.8.0
func (*GetHistoricalMintDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetHistoricalMintDataResponse.ProtoReflect.Descriptor instead.
func (*GetHistoricalMintDataResponse) GetData ¶ added in v0.8.0
func (x *GetHistoricalMintDataResponse) GetData() []*HistoricalMintData
func (*GetHistoricalMintDataResponse) GetResult ¶ added in v0.8.0
func (x *GetHistoricalMintDataResponse) GetResult() GetHistoricalMintDataResponse_Result
func (*GetHistoricalMintDataResponse) ProtoMessage ¶ added in v0.8.0
func (*GetHistoricalMintDataResponse) ProtoMessage()
func (*GetHistoricalMintDataResponse) ProtoReflect ¶ added in v0.8.0
func (x *GetHistoricalMintDataResponse) ProtoReflect() protoreflect.Message
func (*GetHistoricalMintDataResponse) Reset ¶ added in v0.8.0
func (x *GetHistoricalMintDataResponse) Reset()
func (*GetHistoricalMintDataResponse) String ¶ added in v0.8.0
func (x *GetHistoricalMintDataResponse) String() string
func (*GetHistoricalMintDataResponse) Validate ¶ added in v0.8.0
func (m *GetHistoricalMintDataResponse) Validate() error
Validate checks the field values on GetHistoricalMintDataResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetHistoricalMintDataResponseValidationError ¶ added in v0.8.0
type GetHistoricalMintDataResponseValidationError struct {
// contains filtered or unexported fields
}
GetHistoricalMintDataResponseValidationError is the validation error returned by GetHistoricalMintDataResponse.Validate if the designated constraints aren't met.
func (GetHistoricalMintDataResponseValidationError) Cause ¶ added in v0.8.0
func (e GetHistoricalMintDataResponseValidationError) Cause() error
Cause function returns cause value.
func (GetHistoricalMintDataResponseValidationError) Error ¶ added in v0.8.0
func (e GetHistoricalMintDataResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetHistoricalMintDataResponseValidationError) ErrorName ¶ added in v0.8.0
func (e GetHistoricalMintDataResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetHistoricalMintDataResponseValidationError) Field ¶ added in v0.8.0
func (e GetHistoricalMintDataResponseValidationError) Field() string
Field function returns field value.
func (GetHistoricalMintDataResponseValidationError) Key ¶ added in v0.8.0
func (e GetHistoricalMintDataResponseValidationError) Key() bool
Key function returns key value.
func (GetHistoricalMintDataResponseValidationError) Reason ¶ added in v0.8.0
func (e GetHistoricalMintDataResponseValidationError) Reason() string
Reason function returns reason value.
type GetHistoricalMintDataResponse_Result ¶ added in v0.8.0
type GetHistoricalMintDataResponse_Result int32
const ( GetHistoricalMintDataResponse_OK GetHistoricalMintDataResponse_Result = 0 // The requested mint or currency was not found GetHistoricalMintDataResponse_NOT_FOUND GetHistoricalMintDataResponse_Result = 1 // No data available for the requested time range GetHistoricalMintDataResponse_MISSING_DATA GetHistoricalMintDataResponse_Result = 2 )
func (GetHistoricalMintDataResponse_Result) Descriptor ¶ added in v0.8.0
func (GetHistoricalMintDataResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetHistoricalMintDataResponse_Result) Enum ¶ added in v0.8.0
func (x GetHistoricalMintDataResponse_Result) Enum() *GetHistoricalMintDataResponse_Result
func (GetHistoricalMintDataResponse_Result) EnumDescriptor
deprecated
added in
v0.8.0
func (GetHistoricalMintDataResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetHistoricalMintDataResponse_Result.Descriptor instead.
func (GetHistoricalMintDataResponse_Result) Number ¶ added in v0.8.0
func (x GetHistoricalMintDataResponse_Result) Number() protoreflect.EnumNumber
func (GetHistoricalMintDataResponse_Result) String ¶ added in v0.8.0
func (x GetHistoricalMintDataResponse_Result) String() string
func (GetHistoricalMintDataResponse_Result) Type ¶ added in v0.8.0
func (GetHistoricalMintDataResponse_Result) Type() protoreflect.EnumType
type GetMintsRequest ¶
type GetMintsRequest struct {
Addresses []*v1.SolanaAccountId `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
// contains filtered or unexported fields
}
func (*GetMintsRequest) Descriptor
deprecated
func (*GetMintsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMintsRequest.ProtoReflect.Descriptor instead.
func (*GetMintsRequest) GetAddresses ¶
func (x *GetMintsRequest) GetAddresses() []*v1.SolanaAccountId
func (*GetMintsRequest) ProtoMessage ¶
func (*GetMintsRequest) ProtoMessage()
func (*GetMintsRequest) ProtoReflect ¶
func (x *GetMintsRequest) ProtoReflect() protoreflect.Message
func (*GetMintsRequest) Reset ¶
func (x *GetMintsRequest) Reset()
func (*GetMintsRequest) String ¶
func (x *GetMintsRequest) String() string
func (*GetMintsRequest) Validate ¶
func (m *GetMintsRequest) Validate() error
Validate checks the field values on GetMintsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetMintsRequestValidationError ¶
type GetMintsRequestValidationError struct {
// contains filtered or unexported fields
}
GetMintsRequestValidationError is the validation error returned by GetMintsRequest.Validate if the designated constraints aren't met.
func (GetMintsRequestValidationError) Cause ¶
func (e GetMintsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetMintsRequestValidationError) Error ¶
func (e GetMintsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetMintsRequestValidationError) ErrorName ¶
func (e GetMintsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetMintsRequestValidationError) Field ¶
func (e GetMintsRequestValidationError) Field() string
Field function returns field value.
func (GetMintsRequestValidationError) Key ¶
func (e GetMintsRequestValidationError) Key() bool
Key function returns key value.
func (GetMintsRequestValidationError) Reason ¶
func (e GetMintsRequestValidationError) Reason() string
Reason function returns reason value.
type GetMintsResponse ¶
type GetMintsResponse struct {
Result GetMintsResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=ocp.currency.v1.GetMintsResponse_Result" json:"result,omitempty"`
MetadataByAddress map[string]*Mint `` /* 202-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetMintsResponse) Descriptor
deprecated
func (*GetMintsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMintsResponse.ProtoReflect.Descriptor instead.
func (*GetMintsResponse) GetMetadataByAddress ¶
func (x *GetMintsResponse) GetMetadataByAddress() map[string]*Mint
func (*GetMintsResponse) GetResult ¶
func (x *GetMintsResponse) GetResult() GetMintsResponse_Result
func (*GetMintsResponse) ProtoMessage ¶
func (*GetMintsResponse) ProtoMessage()
func (*GetMintsResponse) ProtoReflect ¶
func (x *GetMintsResponse) ProtoReflect() protoreflect.Message
func (*GetMintsResponse) Reset ¶
func (x *GetMintsResponse) Reset()
func (*GetMintsResponse) String ¶
func (x *GetMintsResponse) String() string
func (*GetMintsResponse) Validate ¶
func (m *GetMintsResponse) Validate() error
Validate checks the field values on GetMintsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetMintsResponseValidationError ¶
type GetMintsResponseValidationError struct {
// contains filtered or unexported fields
}
GetMintsResponseValidationError is the validation error returned by GetMintsResponse.Validate if the designated constraints aren't met.
func (GetMintsResponseValidationError) Cause ¶
func (e GetMintsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetMintsResponseValidationError) Error ¶
func (e GetMintsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetMintsResponseValidationError) ErrorName ¶
func (e GetMintsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetMintsResponseValidationError) Field ¶
func (e GetMintsResponseValidationError) Field() string
Field function returns field value.
func (GetMintsResponseValidationError) Key ¶
func (e GetMintsResponseValidationError) Key() bool
Key function returns key value.
func (GetMintsResponseValidationError) Reason ¶
func (e GetMintsResponseValidationError) Reason() string
Reason function returns reason value.
type GetMintsResponse_Result ¶
type GetMintsResponse_Result int32
const ( GetMintsResponse_OK GetMintsResponse_Result = 0 GetMintsResponse_NOT_FOUND GetMintsResponse_Result = 1 )
func (GetMintsResponse_Result) Descriptor ¶
func (GetMintsResponse_Result) Descriptor() protoreflect.EnumDescriptor
func (GetMintsResponse_Result) Enum ¶
func (x GetMintsResponse_Result) Enum() *GetMintsResponse_Result
func (GetMintsResponse_Result) EnumDescriptor
deprecated
func (GetMintsResponse_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetMintsResponse_Result.Descriptor instead.
func (GetMintsResponse_Result) Number ¶
func (x GetMintsResponse_Result) Number() protoreflect.EnumNumber
func (GetMintsResponse_Result) String ¶
func (x GetMintsResponse_Result) String() string
func (GetMintsResponse_Result) Type ¶
func (GetMintsResponse_Result) Type() protoreflect.EnumType
type HistoricalMintData ¶ added in v0.8.0
type HistoricalMintData struct {
// Timestamp for this data point
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Market capitalization at this point in time
MarketCap float64 `protobuf:"fixed64,2,opt,name=market_cap,json=marketCap,proto3" json:"market_cap,omitempty"`
// contains filtered or unexported fields
}
func (*HistoricalMintData) Descriptor
deprecated
added in
v0.8.0
func (*HistoricalMintData) Descriptor() ([]byte, []int)
Deprecated: Use HistoricalMintData.ProtoReflect.Descriptor instead.
func (*HistoricalMintData) GetMarketCap ¶ added in v0.8.0
func (x *HistoricalMintData) GetMarketCap() float64
func (*HistoricalMintData) GetTimestamp ¶ added in v0.8.0
func (x *HistoricalMintData) GetTimestamp() *timestamppb.Timestamp
func (*HistoricalMintData) ProtoMessage ¶ added in v0.8.0
func (*HistoricalMintData) ProtoMessage()
func (*HistoricalMintData) ProtoReflect ¶ added in v0.8.0
func (x *HistoricalMintData) ProtoReflect() protoreflect.Message
func (*HistoricalMintData) Reset ¶ added in v0.8.0
func (x *HistoricalMintData) Reset()
func (*HistoricalMintData) String ¶ added in v0.8.0
func (x *HistoricalMintData) String() string
func (*HistoricalMintData) Validate ¶ added in v0.8.0
func (m *HistoricalMintData) Validate() error
Validate checks the field values on HistoricalMintData with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type HistoricalMintDataValidationError ¶ added in v0.8.0
type HistoricalMintDataValidationError struct {
// contains filtered or unexported fields
}
HistoricalMintDataValidationError is the validation error returned by HistoricalMintData.Validate if the designated constraints aren't met.
func (HistoricalMintDataValidationError) Cause ¶ added in v0.8.0
func (e HistoricalMintDataValidationError) Cause() error
Cause function returns cause value.
func (HistoricalMintDataValidationError) Error ¶ added in v0.8.0
func (e HistoricalMintDataValidationError) Error() string
Error satisfies the builtin error interface
func (HistoricalMintDataValidationError) ErrorName ¶ added in v0.8.0
func (e HistoricalMintDataValidationError) ErrorName() string
ErrorName returns error name.
func (HistoricalMintDataValidationError) Field ¶ added in v0.8.0
func (e HistoricalMintDataValidationError) Field() string
Field function returns field value.
func (HistoricalMintDataValidationError) Key ¶ added in v0.8.0
func (e HistoricalMintDataValidationError) Key() bool
Key function returns key value.
func (HistoricalMintDataValidationError) Reason ¶ added in v0.8.0
func (e HistoricalMintDataValidationError) Reason() string
Reason function returns reason value.
type LaunchpadMetadata ¶
type LaunchpadMetadata struct {
// The address of the currency config
CurrencyConfig *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=currency_config,json=currencyConfig,proto3" json:"currency_config,omitempty"`
// The address of the liquidity pool
LiquidityPool *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=liquidity_pool,json=liquidityPool,proto3" json:"liquidity_pool,omitempty"`
// The random seed used during currency creation
Seed *v1.SolanaAccountId `protobuf:"bytes,3,opt,name=seed,proto3" json:"seed,omitempty"`
// The address of the authority for the currency
Authority *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"`
// The address where this mint's tokens are locked against the liquidity pool
MintVault *v1.SolanaAccountId `protobuf:"bytes,5,opt,name=mint_vault,json=mintVault,proto3" json:"mint_vault,omitempty"`
// The address where core mint tokens are locked against the liquidity pool
CoreMintVault *v1.SolanaAccountId `protobuf:"bytes,6,opt,name=core_mint_vault,json=coreMintVault,proto3" json:"core_mint_vault,omitempty"`
// Current circulating mint token supply in quarks
SupplyFromBonding uint64 `protobuf:"varint,7,opt,name=supply_from_bonding,json=supplyFromBonding,proto3" json:"supply_from_bonding,omitempty"`
// Precent fee for sells in basis points, currently hardcoded to 1%
SellFeeBps uint32 `protobuf:"varint,8,opt,name=sell_fee_bps,json=sellFeeBps,proto3" json:"sell_fee_bps,omitempty"`
// contains filtered or unexported fields
}
func (*LaunchpadMetadata) Descriptor
deprecated
func (*LaunchpadMetadata) Descriptor() ([]byte, []int)
Deprecated: Use LaunchpadMetadata.ProtoReflect.Descriptor instead.
func (*LaunchpadMetadata) GetAuthority ¶
func (x *LaunchpadMetadata) GetAuthority() *v1.SolanaAccountId
func (*LaunchpadMetadata) GetCoreMintVault ¶
func (x *LaunchpadMetadata) GetCoreMintVault() *v1.SolanaAccountId
func (*LaunchpadMetadata) GetCurrencyConfig ¶
func (x *LaunchpadMetadata) GetCurrencyConfig() *v1.SolanaAccountId
func (*LaunchpadMetadata) GetLiquidityPool ¶
func (x *LaunchpadMetadata) GetLiquidityPool() *v1.SolanaAccountId
func (*LaunchpadMetadata) GetMintVault ¶
func (x *LaunchpadMetadata) GetMintVault() *v1.SolanaAccountId
func (*LaunchpadMetadata) GetSeed ¶
func (x *LaunchpadMetadata) GetSeed() *v1.SolanaAccountId
func (*LaunchpadMetadata) GetSellFeeBps ¶
func (x *LaunchpadMetadata) GetSellFeeBps() uint32
func (*LaunchpadMetadata) GetSupplyFromBonding ¶
func (x *LaunchpadMetadata) GetSupplyFromBonding() uint64
func (*LaunchpadMetadata) ProtoMessage ¶
func (*LaunchpadMetadata) ProtoMessage()
func (*LaunchpadMetadata) ProtoReflect ¶
func (x *LaunchpadMetadata) ProtoReflect() protoreflect.Message
func (*LaunchpadMetadata) Reset ¶
func (x *LaunchpadMetadata) Reset()
func (*LaunchpadMetadata) String ¶
func (x *LaunchpadMetadata) String() string
func (*LaunchpadMetadata) Validate ¶
func (m *LaunchpadMetadata) Validate() error
Validate checks the field values on LaunchpadMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LaunchpadMetadataValidationError ¶
type LaunchpadMetadataValidationError struct {
// contains filtered or unexported fields
}
LaunchpadMetadataValidationError is the validation error returned by LaunchpadMetadata.Validate if the designated constraints aren't met.
func (LaunchpadMetadataValidationError) Cause ¶
func (e LaunchpadMetadataValidationError) Cause() error
Cause function returns cause value.
func (LaunchpadMetadataValidationError) Error ¶
func (e LaunchpadMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (LaunchpadMetadataValidationError) ErrorName ¶
func (e LaunchpadMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (LaunchpadMetadataValidationError) Field ¶
func (e LaunchpadMetadataValidationError) Field() string
Field function returns field value.
func (LaunchpadMetadataValidationError) Key ¶
func (e LaunchpadMetadataValidationError) Key() bool
Key function returns key value.
func (LaunchpadMetadataValidationError) Reason ¶
func (e LaunchpadMetadataValidationError) Reason() string
Reason function returns reason value.
type Mint ¶
type Mint struct {
// Token mint address
Address *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
// The number of decimals configured for the mint
Decimals uint32 `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"`
// Currency name
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
// Currency ticker symbol
Symbol string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"`
// Currency description
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
// URL to currency image
ImageUrl string `protobuf:"bytes,6,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"`
// Available when a VM exists for the given mint, and can be used for deriving
// VM deposit PDAs
//
// Note: Only currencies with a VM are useable for payments
VmMetadata *VmMetadata `protobuf:"bytes,7,opt,name=vm_metadata,json=vmMetadata,proto3" json:"vm_metadata,omitempty"`
// Available when created by the launchpad via the currency creator program, and
// can be used for calculating price, market cap, etc. based on the exponential
// bonding curve
LaunchpadMetadata *LaunchpadMetadata `protobuf:"bytes,8,opt,name=launchpad_metadata,json=launchpadMetadata,proto3" json:"launchpad_metadata,omitempty"`
// Timestamp the currency was created
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// contains filtered or unexported fields
}
func (*Mint) Descriptor
deprecated
func (*Mint) GetAddress ¶
func (x *Mint) GetAddress() *v1.SolanaAccountId
func (*Mint) GetCreatedAt ¶
func (x *Mint) GetCreatedAt() *timestamppb.Timestamp
func (*Mint) GetDecimals ¶
func (*Mint) GetDescription ¶
func (*Mint) GetImageUrl ¶
func (*Mint) GetLaunchpadMetadata ¶
func (x *Mint) GetLaunchpadMetadata() *LaunchpadMetadata
func (*Mint) GetVmMetadata ¶
func (x *Mint) GetVmMetadata() *VmMetadata
func (*Mint) ProtoMessage ¶
func (*Mint) ProtoMessage()
func (*Mint) ProtoReflect ¶
func (x *Mint) ProtoReflect() protoreflect.Message
type MintValidationError ¶
type MintValidationError struct {
// contains filtered or unexported fields
}
MintValidationError is the validation error returned by Mint.Validate if the designated constraints aren't met.
func (MintValidationError) Cause ¶
func (e MintValidationError) Cause() error
Cause function returns cause value.
func (MintValidationError) Error ¶
func (e MintValidationError) Error() string
Error satisfies the builtin error interface
func (MintValidationError) ErrorName ¶
func (e MintValidationError) ErrorName() string
ErrorName returns error name.
func (MintValidationError) Field ¶
func (e MintValidationError) Field() string
Field function returns field value.
func (MintValidationError) Key ¶
func (e MintValidationError) Key() bool
Key function returns key value.
func (MintValidationError) Reason ¶
func (e MintValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCurrencyServer ¶
type UnimplementedCurrencyServer struct {
}
UnimplementedCurrencyServer must be embedded to have forward compatible implementations.
func (UnimplementedCurrencyServer) GetAllRates ¶
func (UnimplementedCurrencyServer) GetAllRates(context.Context, *GetAllRatesRequest) (*GetAllRatesResponse, error)
func (UnimplementedCurrencyServer) GetHistoricalMintData ¶ added in v0.8.0
func (UnimplementedCurrencyServer) GetHistoricalMintData(context.Context, *GetHistoricalMintDataRequest) (*GetHistoricalMintDataResponse, error)
func (UnimplementedCurrencyServer) GetMints ¶
func (UnimplementedCurrencyServer) GetMints(context.Context, *GetMintsRequest) (*GetMintsResponse, error)
type UnsafeCurrencyServer ¶
type UnsafeCurrencyServer interface {
// contains filtered or unexported methods
}
UnsafeCurrencyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CurrencyServer will result in compilation errors.
type VmMetadata ¶
type VmMetadata struct {
// VM address
Vm *v1.SolanaAccountId `protobuf:"bytes,1,opt,name=vm,proto3" json:"vm,omitempty"`
// Authority that subsidizes and authorizes all transactions against the VM
Authority *v1.SolanaAccountId `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
// Lock duration of Virtual Timelock Accounts on the VM, currently hardcoded
// to 21 days
LockDurationInDays uint32 `protobuf:"varint,3,opt,name=lock_duration_in_days,json=lockDurationInDays,proto3" json:"lock_duration_in_days,omitempty"`
// VM omnibus address
Omnibus *v1.SolanaAccountId `protobuf:"bytes,4,opt,name=omnibus,proto3" json:"omnibus,omitempty"`
// contains filtered or unexported fields
}
func (*VmMetadata) Descriptor
deprecated
func (*VmMetadata) Descriptor() ([]byte, []int)
Deprecated: Use VmMetadata.ProtoReflect.Descriptor instead.
func (*VmMetadata) GetAuthority ¶
func (x *VmMetadata) GetAuthority() *v1.SolanaAccountId
func (*VmMetadata) GetLockDurationInDays ¶
func (x *VmMetadata) GetLockDurationInDays() uint32
func (*VmMetadata) GetOmnibus ¶ added in v0.4.0
func (x *VmMetadata) GetOmnibus() *v1.SolanaAccountId
func (*VmMetadata) GetVm ¶
func (x *VmMetadata) GetVm() *v1.SolanaAccountId
func (*VmMetadata) ProtoMessage ¶
func (*VmMetadata) ProtoMessage()
func (*VmMetadata) ProtoReflect ¶
func (x *VmMetadata) ProtoReflect() protoreflect.Message
func (*VmMetadata) Reset ¶
func (x *VmMetadata) Reset()
func (*VmMetadata) String ¶
func (x *VmMetadata) String() string
func (*VmMetadata) Validate ¶
func (m *VmMetadata) Validate() error
Validate checks the field values on VmMetadata with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type VmMetadataValidationError ¶
type VmMetadataValidationError struct {
// contains filtered or unexported fields
}
VmMetadataValidationError is the validation error returned by VmMetadata.Validate if the designated constraints aren't met.
func (VmMetadataValidationError) Cause ¶
func (e VmMetadataValidationError) Cause() error
Cause function returns cause value.
func (VmMetadataValidationError) Error ¶
func (e VmMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (VmMetadataValidationError) ErrorName ¶
func (e VmMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (VmMetadataValidationError) Field ¶
func (e VmMetadataValidationError) Field() string
Field function returns field value.
func (VmMetadataValidationError) Key ¶
func (e VmMetadataValidationError) Key() bool
Key function returns key value.
func (VmMetadataValidationError) Reason ¶
func (e VmMetadataValidationError) Reason() string
Reason function returns reason value.