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 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 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
- 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 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, }, }, 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)
}
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)
// 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 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 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) 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.