Documentation ¶
Index ¶
- Variables
- func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
- type CurrentGasPricesRequest
- func (*CurrentGasPricesRequest) Descriptor() ([]byte, []int)
- func (m *CurrentGasPricesRequest) Marshal() (dAtA []byte, err error)
- func (m *CurrentGasPricesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CurrentGasPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CurrentGasPricesRequest) ProtoMessage()
- func (m *CurrentGasPricesRequest) Reset()
- func (m *CurrentGasPricesRequest) Size() (n int)
- func (m *CurrentGasPricesRequest) String() string
- func (m *CurrentGasPricesRequest) Unmarshal(dAtA []byte) error
- func (m *CurrentGasPricesRequest) XXX_DiscardUnknown()
- func (m *CurrentGasPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrentGasPricesRequest) XXX_Merge(src proto.Message)
- func (m *CurrentGasPricesRequest) XXX_Size() int
- func (m *CurrentGasPricesRequest) XXX_Unmarshal(b []byte) error
- type CurrentGasPricesResponse
- func (*CurrentGasPricesResponse) Descriptor() ([]byte, []int)
- func (m *CurrentGasPricesResponse) GetAltGasPrices() []*GasPrices
- func (m *CurrentGasPricesResponse) GetGasPrices() *GasPrices
- func (m *CurrentGasPricesResponse) Marshal() (dAtA []byte, err error)
- func (m *CurrentGasPricesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CurrentGasPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CurrentGasPricesResponse) ProtoMessage()
- func (m *CurrentGasPricesResponse) Reset()
- func (m *CurrentGasPricesResponse) Size() (n int)
- func (m *CurrentGasPricesResponse) String() string
- func (m *CurrentGasPricesResponse) Unmarshal(dAtA []byte) error
- func (m *CurrentGasPricesResponse) XXX_DiscardUnknown()
- func (m *CurrentGasPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrentGasPricesResponse) XXX_Merge(src proto.Message)
- func (m *CurrentGasPricesResponse) XXX_Size() int
- func (m *CurrentGasPricesResponse) XXX_Unmarshal(b []byte) error
- type Fee
- func (*Fee) Descriptor() ([]byte, []int)
- func (m *Fee) GetAmount() *v1.Amount
- func (m *Fee) GetAssetId() *v11.AssetId
- func (m *Fee) Marshal() (dAtA []byte, err error)
- func (m *Fee) MarshalTo(dAtA []byte) (int, error)
- func (m *Fee) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Fee) ProtoMessage()
- func (m *Fee) Reset()
- func (m *Fee) Size() (n int)
- func (m *Fee) String() string
- func (m *Fee) Unmarshal(dAtA []byte) error
- func (m *Fee) XXX_DiscardUnknown()
- func (m *Fee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Fee) XXX_Merge(src proto.Message)
- func (m *Fee) XXX_Size() int
- func (m *Fee) XXX_Unmarshal(b []byte) error
- type FeeParameters
- func (*FeeParameters) Descriptor() ([]byte, []int)
- func (m *FeeParameters) GetFixedAltGasPrices() []*GasPrices
- func (m *FeeParameters) GetFixedGasPrices() *GasPrices
- func (m *FeeParameters) Marshal() (dAtA []byte, err error)
- func (m *FeeParameters) MarshalTo(dAtA []byte) (int, error)
- func (m *FeeParameters) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeeParameters) ProtoMessage()
- func (m *FeeParameters) Reset()
- func (m *FeeParameters) Size() (n int)
- func (m *FeeParameters) String() string
- func (m *FeeParameters) Unmarshal(dAtA []byte) error
- func (m *FeeParameters) XXX_DiscardUnknown()
- func (m *FeeParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeeParameters) XXX_Merge(src proto.Message)
- func (m *FeeParameters) XXX_Size() int
- func (m *FeeParameters) XXX_Unmarshal(b []byte) error
- type FeeTier
- func (*FeeTier) Descriptor() ([]byte, []int)
- func (m *FeeTier) GetFeeTier() FeeTier_Tier
- func (m *FeeTier) Marshal() (dAtA []byte, err error)
- func (m *FeeTier) MarshalTo(dAtA []byte) (int, error)
- func (m *FeeTier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeeTier) ProtoMessage()
- func (m *FeeTier) Reset()
- func (m *FeeTier) Size() (n int)
- func (m *FeeTier) String() string
- func (m *FeeTier) Unmarshal(dAtA []byte) error
- func (m *FeeTier) XXX_DiscardUnknown()
- func (m *FeeTier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeeTier) XXX_Merge(src proto.Message)
- func (m *FeeTier) XXX_Size() int
- func (m *FeeTier) XXX_Unmarshal(b []byte) error
- type FeeTier_Tier
- type GasPrices
- func (*GasPrices) Descriptor() ([]byte, []int)
- func (m *GasPrices) GetAssetId() *v11.AssetId
- func (m *GasPrices) GetBlockSpacePrice() uint64
- func (m *GasPrices) GetCompactBlockSpacePrice() uint64
- func (m *GasPrices) GetExecutionPrice() uint64
- func (m *GasPrices) GetVerificationPrice() uint64
- func (m *GasPrices) Marshal() (dAtA []byte, err error)
- func (m *GasPrices) MarshalTo(dAtA []byte) (int, error)
- func (m *GasPrices) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GasPrices) ProtoMessage()
- func (m *GasPrices) Reset()
- func (m *GasPrices) Size() (n int)
- func (m *GasPrices) String() string
- func (m *GasPrices) Unmarshal(dAtA []byte) error
- func (m *GasPrices) XXX_DiscardUnknown()
- func (m *GasPrices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GasPrices) XXX_Merge(src proto.Message)
- func (m *GasPrices) XXX_Size() int
- func (m *GasPrices) XXX_Unmarshal(b []byte) error
- type GenesisContent
- func (*GenesisContent) Descriptor() ([]byte, []int)
- func (m *GenesisContent) GetFeeParams() *FeeParameters
- func (m *GenesisContent) Marshal() (dAtA []byte, err error)
- func (m *GenesisContent) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisContent) ProtoMessage()
- func (m *GenesisContent) Reset()
- func (m *GenesisContent) Size() (n int)
- func (m *GenesisContent) String() string
- func (m *GenesisContent) Unmarshal(dAtA []byte) error
- func (m *GenesisContent) XXX_DiscardUnknown()
- func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisContent) XXX_Merge(src proto.Message)
- func (m *GenesisContent) XXX_Size() int
- func (m *GenesisContent) XXX_Unmarshal(b []byte) error
- type QueryServiceClient
- type QueryServiceServer
- type UnimplementedQueryServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthFee = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFee = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFee = fmt.Errorf("proto: unexpected end of group") )
View Source
var FeeTier_Tier_name = map[int32]string{
0: "TIER_UNSPECIFIED",
1: "TIER_LOW",
2: "TIER_MEDIUM",
3: "TIER_HIGH",
}
View Source
var FeeTier_Tier_value = map[string]int32{
"TIER_UNSPECIFIED": 0,
"TIER_LOW": 1,
"TIER_MEDIUM": 2,
"TIER_HIGH": 3,
}
Functions ¶
func RegisterQueryServiceServer ¶
func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
Types ¶
type CurrentGasPricesRequest ¶
type CurrentGasPricesRequest struct { }
func (*CurrentGasPricesRequest) Descriptor ¶
func (*CurrentGasPricesRequest) Descriptor() ([]byte, []int)
func (*CurrentGasPricesRequest) Marshal ¶
func (m *CurrentGasPricesRequest) Marshal() (dAtA []byte, err error)
func (*CurrentGasPricesRequest) MarshalTo ¶
func (m *CurrentGasPricesRequest) MarshalTo(dAtA []byte) (int, error)
func (*CurrentGasPricesRequest) MarshalToSizedBuffer ¶
func (m *CurrentGasPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CurrentGasPricesRequest) ProtoMessage ¶
func (*CurrentGasPricesRequest) ProtoMessage()
func (*CurrentGasPricesRequest) Reset ¶
func (m *CurrentGasPricesRequest) Reset()
func (*CurrentGasPricesRequest) Size ¶
func (m *CurrentGasPricesRequest) Size() (n int)
func (*CurrentGasPricesRequest) String ¶
func (m *CurrentGasPricesRequest) String() string
func (*CurrentGasPricesRequest) Unmarshal ¶
func (m *CurrentGasPricesRequest) Unmarshal(dAtA []byte) error
func (*CurrentGasPricesRequest) XXX_DiscardUnknown ¶
func (m *CurrentGasPricesRequest) XXX_DiscardUnknown()
func (*CurrentGasPricesRequest) XXX_Marshal ¶
func (m *CurrentGasPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrentGasPricesRequest) XXX_Merge ¶
func (m *CurrentGasPricesRequest) XXX_Merge(src proto.Message)
func (*CurrentGasPricesRequest) XXX_Size ¶
func (m *CurrentGasPricesRequest) XXX_Size() int
func (*CurrentGasPricesRequest) XXX_Unmarshal ¶
func (m *CurrentGasPricesRequest) XXX_Unmarshal(b []byte) error
type CurrentGasPricesResponse ¶
type CurrentGasPricesResponse struct { // The current gas prices, in the preferred (native) token. GasPrices *GasPrices `protobuf:"bytes,1,opt,name=gas_prices,json=gasPrices,proto3" json:"gas_prices,omitempty"` // Other gas prices for other accepted tokens. AltGasPrices []*GasPrices `protobuf:"bytes,2,rep,name=alt_gas_prices,json=altGasPrices,proto3" json:"alt_gas_prices,omitempty"` }
func (*CurrentGasPricesResponse) Descriptor ¶
func (*CurrentGasPricesResponse) Descriptor() ([]byte, []int)
func (*CurrentGasPricesResponse) GetAltGasPrices ¶
func (m *CurrentGasPricesResponse) GetAltGasPrices() []*GasPrices
func (*CurrentGasPricesResponse) GetGasPrices ¶
func (m *CurrentGasPricesResponse) GetGasPrices() *GasPrices
func (*CurrentGasPricesResponse) Marshal ¶
func (m *CurrentGasPricesResponse) Marshal() (dAtA []byte, err error)
func (*CurrentGasPricesResponse) MarshalTo ¶
func (m *CurrentGasPricesResponse) MarshalTo(dAtA []byte) (int, error)
func (*CurrentGasPricesResponse) MarshalToSizedBuffer ¶
func (m *CurrentGasPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CurrentGasPricesResponse) ProtoMessage ¶
func (*CurrentGasPricesResponse) ProtoMessage()
func (*CurrentGasPricesResponse) Reset ¶
func (m *CurrentGasPricesResponse) Reset()
func (*CurrentGasPricesResponse) Size ¶
func (m *CurrentGasPricesResponse) Size() (n int)
func (*CurrentGasPricesResponse) String ¶
func (m *CurrentGasPricesResponse) String() string
func (*CurrentGasPricesResponse) Unmarshal ¶
func (m *CurrentGasPricesResponse) Unmarshal(dAtA []byte) error
func (*CurrentGasPricesResponse) XXX_DiscardUnknown ¶
func (m *CurrentGasPricesResponse) XXX_DiscardUnknown()
func (*CurrentGasPricesResponse) XXX_Marshal ¶
func (m *CurrentGasPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrentGasPricesResponse) XXX_Merge ¶
func (m *CurrentGasPricesResponse) XXX_Merge(src proto.Message)
func (*CurrentGasPricesResponse) XXX_Size ¶
func (m *CurrentGasPricesResponse) XXX_Size() int
func (*CurrentGasPricesResponse) XXX_Unmarshal ¶
func (m *CurrentGasPricesResponse) XXX_Unmarshal(b []byte) error
type Fee ¶
type Fee struct { // The amount of the token used to pay fees. Amount *v1.Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // If present, the asset ID of the token used to pay fees. // If absent, specifies the staking token implicitly. AssetId *v11.AssetId `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` }
Specifies fees paid by a transaction.
func (*Fee) Descriptor ¶
func (*Fee) GetAssetId ¶
func (*Fee) ProtoMessage ¶
func (*Fee) ProtoMessage()
func (*Fee) XXX_DiscardUnknown ¶
func (m *Fee) XXX_DiscardUnknown()
func (*Fee) XXX_Unmarshal ¶
type FeeParameters ¶
type FeeParameters struct { // Fixed gas prices in the native token used to compute transactions' base // fees. // // In the future, this should be removed and replaced with parameters for // dynamic gas pricing. FixedGasPrices *GasPrices `protobuf:"bytes,1,opt,name=fixed_gas_prices,json=fixedGasPrices,proto3" json:"fixed_gas_prices,omitempty"` // Fixed gas prices in other tokens used to compute transactions' base fees. // // In the future, this should be removed and replaced with fixed multiples of // the native token's price (so that there is one set of dynamically // determined gas prices in the native token, and derived gas prices in other // alternative tokens). // // If this is empty, no other tokens are accepted for gas. FixedAltGasPrices []*GasPrices `protobuf:"bytes,2,rep,name=fixed_alt_gas_prices,json=fixedAltGasPrices,proto3" json:"fixed_alt_gas_prices,omitempty"` }
Fee component configuration data.
func (*FeeParameters) Descriptor ¶
func (*FeeParameters) Descriptor() ([]byte, []int)
func (*FeeParameters) GetFixedAltGasPrices ¶
func (m *FeeParameters) GetFixedAltGasPrices() []*GasPrices
func (*FeeParameters) GetFixedGasPrices ¶
func (m *FeeParameters) GetFixedGasPrices() *GasPrices
func (*FeeParameters) Marshal ¶
func (m *FeeParameters) Marshal() (dAtA []byte, err error)
func (*FeeParameters) MarshalToSizedBuffer ¶
func (m *FeeParameters) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FeeParameters) ProtoMessage ¶
func (*FeeParameters) ProtoMessage()
func (*FeeParameters) Reset ¶
func (m *FeeParameters) Reset()
func (*FeeParameters) Size ¶
func (m *FeeParameters) Size() (n int)
func (*FeeParameters) String ¶
func (m *FeeParameters) String() string
func (*FeeParameters) Unmarshal ¶
func (m *FeeParameters) Unmarshal(dAtA []byte) error
func (*FeeParameters) XXX_DiscardUnknown ¶
func (m *FeeParameters) XXX_DiscardUnknown()
func (*FeeParameters) XXX_Marshal ¶
func (m *FeeParameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FeeParameters) XXX_Merge ¶
func (m *FeeParameters) XXX_Merge(src proto.Message)
func (*FeeParameters) XXX_Size ¶
func (m *FeeParameters) XXX_Size() int
func (*FeeParameters) XXX_Unmarshal ¶
func (m *FeeParameters) XXX_Unmarshal(b []byte) error
type FeeTier ¶
type FeeTier struct { // The selected fee tier. FeeTier FeeTier_Tier `` /* 132-byte string literal not displayed */ }
func (*FeeTier) Descriptor ¶
func (*FeeTier) GetFeeTier ¶
func (m *FeeTier) GetFeeTier() FeeTier_Tier
func (*FeeTier) MarshalToSizedBuffer ¶
func (*FeeTier) ProtoMessage ¶
func (*FeeTier) ProtoMessage()
func (*FeeTier) XXX_DiscardUnknown ¶
func (m *FeeTier) XXX_DiscardUnknown()
func (*FeeTier) XXX_Marshal ¶
func (*FeeTier) XXX_Unmarshal ¶
type FeeTier_Tier ¶
type FeeTier_Tier int32
The tier for the fee.
const ( FeeTier_TIER_UNSPECIFIED FeeTier_Tier = 0 FeeTier_TIER_LOW FeeTier_Tier = 1 FeeTier_TIER_MEDIUM FeeTier_Tier = 2 FeeTier_TIER_HIGH FeeTier_Tier = 3 )
func (FeeTier_Tier) EnumDescriptor ¶
func (FeeTier_Tier) EnumDescriptor() ([]byte, []int)
func (FeeTier_Tier) String ¶
func (x FeeTier_Tier) String() string
type GasPrices ¶
type GasPrices struct { // The asset ID of the fee token these prices are for. // // If absent, specifies the staking token implicitly. AssetId *v11.AssetId `protobuf:"bytes,15,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // The price per unit block space in terms of the staking token, with an implicit 1,000 denominator. BlockSpacePrice uint64 `protobuf:"varint,1,opt,name=block_space_price,json=blockSpacePrice,proto3" json:"block_space_price,omitempty"` // The price per unit compact block space in terms of the staking token, with an implicit 1,000 denominator. CompactBlockSpacePrice uint64 `` /* 132-byte string literal not displayed */ // The price per unit verification cost in terms of the staking token, with an implicit 1,000 denominator. VerificationPrice uint64 `protobuf:"varint,3,opt,name=verification_price,json=verificationPrice,proto3" json:"verification_price,omitempty"` // The price per unit execution cost in terms of the staking token, with an implicit 1,000 denominator. ExecutionPrice uint64 `protobuf:"varint,4,opt,name=execution_price,json=executionPrice,proto3" json:"execution_price,omitempty"` }
func (*GasPrices) Descriptor ¶
func (*GasPrices) GetAssetId ¶
func (*GasPrices) GetBlockSpacePrice ¶
func (*GasPrices) GetCompactBlockSpacePrice ¶
func (*GasPrices) GetExecutionPrice ¶
func (*GasPrices) GetVerificationPrice ¶
func (*GasPrices) MarshalToSizedBuffer ¶
func (*GasPrices) ProtoMessage ¶
func (*GasPrices) ProtoMessage()
func (*GasPrices) XXX_DiscardUnknown ¶
func (m *GasPrices) XXX_DiscardUnknown()
func (*GasPrices) XXX_Marshal ¶
func (*GasPrices) XXX_Unmarshal ¶
type GenesisContent ¶
type GenesisContent struct { // The FeeParameters present at genesis. FeeParams *FeeParameters `protobuf:"bytes,1,opt,name=fee_params,json=feeParams,proto3" json:"fee_params,omitempty"` }
Fee-specific genesis content.
func (*GenesisContent) Descriptor ¶
func (*GenesisContent) Descriptor() ([]byte, []int)
func (*GenesisContent) GetFeeParams ¶
func (m *GenesisContent) GetFeeParams() *FeeParameters
func (*GenesisContent) Marshal ¶
func (m *GenesisContent) Marshal() (dAtA []byte, err error)
func (*GenesisContent) MarshalToSizedBuffer ¶
func (m *GenesisContent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisContent) ProtoMessage ¶
func (*GenesisContent) ProtoMessage()
func (*GenesisContent) Reset ¶
func (m *GenesisContent) Reset()
func (*GenesisContent) Size ¶
func (m *GenesisContent) Size() (n int)
func (*GenesisContent) String ¶
func (m *GenesisContent) String() string
func (*GenesisContent) Unmarshal ¶
func (m *GenesisContent) Unmarshal(dAtA []byte) error
func (*GenesisContent) XXX_DiscardUnknown ¶
func (m *GenesisContent) XXX_DiscardUnknown()
func (*GenesisContent) XXX_Marshal ¶
func (m *GenesisContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisContent) XXX_Merge ¶
func (m *GenesisContent) XXX_Merge(src proto.Message)
func (*GenesisContent) XXX_Size ¶
func (m *GenesisContent) XXX_Size() int
func (*GenesisContent) XXX_Unmarshal ¶
func (m *GenesisContent) XXX_Unmarshal(b []byte) error
type QueryServiceClient ¶
type QueryServiceClient interface { // Get the current gas prices. CurrentGasPrices(ctx context.Context, in *CurrentGasPricesRequest, opts ...grpc.CallOption) (*CurrentGasPricesResponse, error) }
QueryServiceClient is the client API for QueryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryServiceClient ¶
func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient
type QueryServiceServer ¶
type QueryServiceServer interface { // Get the current gas prices. CurrentGasPrices(context.Context, *CurrentGasPricesRequest) (*CurrentGasPricesResponse, error) }
QueryServiceServer is the server API for QueryService service.
type UnimplementedQueryServiceServer ¶
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServiceServer) CurrentGasPrices ¶
func (*UnimplementedQueryServiceServer) CurrentGasPrices(ctx context.Context, req *CurrentGasPricesRequest) (*CurrentGasPricesResponse, error)
Click to show internal directories.
Click to hide internal directories.