injective_insurance_rpcpb

package
v1.23.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_injective_insurance_rpc_proto protoreflect.FileDescriptor
View Source
var InjectiveInsuranceRPC_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "injective_insurance_rpc.InjectiveInsuranceRPC",
	HandlerType: (*InjectiveInsuranceRPCServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Funds",
			Handler:    _InjectiveInsuranceRPC_Funds_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "injective_insurance_rpc.proto",
}

InjectiveInsuranceRPC_ServiceDesc is the grpc.ServiceDesc for InjectiveInsuranceRPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterInjectiveInsuranceRPCServer

func RegisterInjectiveInsuranceRPCServer(s grpc.ServiceRegistrar, srv InjectiveInsuranceRPCServer)

Types

type FundsRequest

type FundsRequest struct {
	// contains filtered or unexported fields
}

func (*FundsRequest) Descriptor deprecated

func (*FundsRequest) Descriptor() ([]byte, []int)

Deprecated: Use FundsRequest.ProtoReflect.Descriptor instead.

func (*FundsRequest) ProtoMessage

func (*FundsRequest) ProtoMessage()

func (*FundsRequest) ProtoReflect

func (x *FundsRequest) ProtoReflect() protoreflect.Message

func (*FundsRequest) Reset

func (x *FundsRequest) Reset()

func (*FundsRequest) String

func (x *FundsRequest) String() string

type FundsResponse

type FundsResponse struct {
	Funds []*InsuranceFund `protobuf:"bytes,1,rep,name=funds,proto3" json:"funds,omitempty"`
	// contains filtered or unexported fields
}

func (*FundsResponse) Descriptor deprecated

func (*FundsResponse) Descriptor() ([]byte, []int)

Deprecated: Use FundsResponse.ProtoReflect.Descriptor instead.

func (*FundsResponse) GetFunds

func (x *FundsResponse) GetFunds() []*InsuranceFund

func (*FundsResponse) ProtoMessage

func (*FundsResponse) ProtoMessage()

func (*FundsResponse) ProtoReflect

func (x *FundsResponse) ProtoReflect() protoreflect.Message

func (*FundsResponse) Reset

func (x *FundsResponse) Reset()

func (*FundsResponse) String

func (x *FundsResponse) String() string

type InjectiveInsuranceRPCClient

type InjectiveInsuranceRPCClient interface {
	// Funds lists all insurance funds.
	Funds(ctx context.Context, in *FundsRequest, opts ...grpc.CallOption) (*FundsResponse, error)
}

InjectiveInsuranceRPCClient is the client API for InjectiveInsuranceRPC 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.

type InjectiveInsuranceRPCServer

type InjectiveInsuranceRPCServer interface {
	// Funds lists all insurance funds.
	Funds(context.Context, *FundsRequest) (*FundsResponse, error)
	// contains filtered or unexported methods
}

InjectiveInsuranceRPCServer is the server API for InjectiveInsuranceRPC service. All implementations must embed UnimplementedInjectiveInsuranceRPCServer for forward compatibility

type InsuranceFund

type InsuranceFund struct {

	// Ticker of the derivative market.
	MarketTicker string `protobuf:"bytes,1,opt,name=market_ticker,json=marketTicker,proto3" json:"market_ticker,omitempty"`
	// Derivative Market ID
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Coin denom used for the underwriting of the insurance fund.
	DepositDenom string `protobuf:"bytes,3,opt,name=deposit_denom,json=depositDenom,proto3" json:"deposit_denom,omitempty"`
	// Pool token denom
	PoolTokenDenom string `protobuf:"bytes,4,opt,name=pool_token_denom,json=poolTokenDenom,proto3" json:"pool_token_denom,omitempty"`
	// Redemption notice period duration in seconds.
	RedemptionNoticePeriodDuration int64  `` /* 158-byte string literal not displayed */
	Balance                        string `protobuf:"bytes,6,opt,name=balance,proto3" json:"balance,omitempty"`
	TotalShare                     string `protobuf:"bytes,7,opt,name=total_share,json=totalShare,proto3" json:"total_share,omitempty"`
	// Oracle base currency
	OracleBase string `protobuf:"bytes,8,opt,name=oracle_base,json=oracleBase,proto3" json:"oracle_base,omitempty"`
	// Oracle quote currency
	OracleQuote string `protobuf:"bytes,9,opt,name=oracle_quote,json=oracleQuote,proto3" json:"oracle_quote,omitempty"`
	// Oracle Type
	OracleType string `protobuf:"bytes,10,opt,name=oracle_type,json=oracleType,proto3" json:"oracle_type,omitempty"`
	// Defines the expiry, if any
	Expiry int64 `protobuf:"zigzag64,11,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// Token metadata for the deposit asset, only for Ethereum-based assets
	DepositTokenMeta *TokenMeta `protobuf:"bytes,12,opt,name=deposit_token_meta,json=depositTokenMeta,proto3" json:"deposit_token_meta,omitempty"`
	// contains filtered or unexported fields
}

func (*InsuranceFund) Descriptor deprecated

func (*InsuranceFund) Descriptor() ([]byte, []int)

Deprecated: Use InsuranceFund.ProtoReflect.Descriptor instead.

func (*InsuranceFund) GetBalance

func (x *InsuranceFund) GetBalance() string

func (*InsuranceFund) GetDepositDenom

func (x *InsuranceFund) GetDepositDenom() string

func (*InsuranceFund) GetDepositTokenMeta

func (x *InsuranceFund) GetDepositTokenMeta() *TokenMeta

func (*InsuranceFund) GetExpiry

func (x *InsuranceFund) GetExpiry() int64

func (*InsuranceFund) GetMarketId

func (x *InsuranceFund) GetMarketId() string

func (*InsuranceFund) GetMarketTicker

func (x *InsuranceFund) GetMarketTicker() string

func (*InsuranceFund) GetOracleBase

func (x *InsuranceFund) GetOracleBase() string

func (*InsuranceFund) GetOracleQuote

func (x *InsuranceFund) GetOracleQuote() string

func (*InsuranceFund) GetOracleType

func (x *InsuranceFund) GetOracleType() string

func (*InsuranceFund) GetPoolTokenDenom

func (x *InsuranceFund) GetPoolTokenDenom() string

func (*InsuranceFund) GetRedemptionNoticePeriodDuration

func (x *InsuranceFund) GetRedemptionNoticePeriodDuration() int64

func (*InsuranceFund) GetTotalShare

func (x *InsuranceFund) GetTotalShare() string

func (*InsuranceFund) ProtoMessage

func (*InsuranceFund) ProtoMessage()

func (*InsuranceFund) ProtoReflect

func (x *InsuranceFund) ProtoReflect() protoreflect.Message

func (*InsuranceFund) Reset

func (x *InsuranceFund) Reset()

func (*InsuranceFund) String

func (x *InsuranceFund) String() string

type TokenMeta

type TokenMeta struct {

	// Token full name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Token Ethereum contract address
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// Token symbol short name
	Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"`
	// Token decimals
	Decimals int32 `protobuf:"zigzag32,5,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// Token metadata fetched timestamp in UNIX millis.
	UpdatedAt int64 `protobuf:"zigzag64,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenMeta) Descriptor deprecated

func (*TokenMeta) Descriptor() ([]byte, []int)

Deprecated: Use TokenMeta.ProtoReflect.Descriptor instead.

func (*TokenMeta) GetAddress

func (x *TokenMeta) GetAddress() string

func (*TokenMeta) GetDecimals

func (x *TokenMeta) GetDecimals() int32
func (x *TokenMeta) GetLogo() string

func (*TokenMeta) GetName

func (x *TokenMeta) GetName() string

func (*TokenMeta) GetSymbol

func (x *TokenMeta) GetSymbol() string

func (*TokenMeta) GetUpdatedAt

func (x *TokenMeta) GetUpdatedAt() int64

func (*TokenMeta) ProtoMessage

func (*TokenMeta) ProtoMessage()

func (*TokenMeta) ProtoReflect

func (x *TokenMeta) ProtoReflect() protoreflect.Message

func (*TokenMeta) Reset

func (x *TokenMeta) Reset()

func (*TokenMeta) String

func (x *TokenMeta) String() string

type UnimplementedInjectiveInsuranceRPCServer

type UnimplementedInjectiveInsuranceRPCServer struct {
}

UnimplementedInjectiveInsuranceRPCServer must be embedded to have forward compatible implementations.

func (UnimplementedInjectiveInsuranceRPCServer) Funds

type UnsafeInjectiveInsuranceRPCServer

type UnsafeInjectiveInsuranceRPCServer interface {
	// contains filtered or unexported methods
}

UnsafeInjectiveInsuranceRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InjectiveInsuranceRPCServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL