feev1

package
v8.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Fee) GetAmount

func (m *Fee) GetAmount() *v1.Amount

func (*Fee) GetAssetId

func (m *Fee) GetAssetId() *v11.AssetId

func (*Fee) Marshal

func (m *Fee) Marshal() (dAtA []byte, err error)

func (*Fee) MarshalTo

func (m *Fee) MarshalTo(dAtA []byte) (int, error)

func (*Fee) MarshalToSizedBuffer

func (m *Fee) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Fee) ProtoMessage

func (*Fee) ProtoMessage()

func (*Fee) Reset

func (m *Fee) Reset()

func (*Fee) Size

func (m *Fee) Size() (n int)

func (*Fee) String

func (m *Fee) String() string

func (*Fee) Unmarshal

func (m *Fee) Unmarshal(dAtA []byte) error

func (*Fee) XXX_DiscardUnknown

func (m *Fee) XXX_DiscardUnknown()

func (*Fee) XXX_Marshal

func (m *Fee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Fee) XXX_Merge

func (m *Fee) XXX_Merge(src proto.Message)

func (*Fee) XXX_Size

func (m *Fee) XXX_Size() int

func (*Fee) XXX_Unmarshal

func (m *Fee) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *FeeParameters) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*FeeTier) GetFeeTier

func (m *FeeTier) GetFeeTier() FeeTier_Tier

func (*FeeTier) Marshal

func (m *FeeTier) Marshal() (dAtA []byte, err error)

func (*FeeTier) MarshalTo

func (m *FeeTier) MarshalTo(dAtA []byte) (int, error)

func (*FeeTier) MarshalToSizedBuffer

func (m *FeeTier) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeeTier) ProtoMessage

func (*FeeTier) ProtoMessage()

func (*FeeTier) Reset

func (m *FeeTier) Reset()

func (*FeeTier) Size

func (m *FeeTier) Size() (n int)

func (*FeeTier) String

func (m *FeeTier) String() string

func (*FeeTier) Unmarshal

func (m *FeeTier) Unmarshal(dAtA []byte) error

func (*FeeTier) XXX_DiscardUnknown

func (m *FeeTier) XXX_DiscardUnknown()

func (*FeeTier) XXX_Marshal

func (m *FeeTier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeeTier) XXX_Merge

func (m *FeeTier) XXX_Merge(src proto.Message)

func (*FeeTier) XXX_Size

func (m *FeeTier) XXX_Size() int

func (*FeeTier) XXX_Unmarshal

func (m *FeeTier) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*GasPrices) GetAssetId

func (m *GasPrices) GetAssetId() *v11.AssetId

func (*GasPrices) GetBlockSpacePrice

func (m *GasPrices) GetBlockSpacePrice() uint64

func (*GasPrices) GetCompactBlockSpacePrice

func (m *GasPrices) GetCompactBlockSpacePrice() uint64

func (*GasPrices) GetExecutionPrice

func (m *GasPrices) GetExecutionPrice() uint64

func (*GasPrices) GetVerificationPrice

func (m *GasPrices) GetVerificationPrice() uint64

func (*GasPrices) Marshal

func (m *GasPrices) Marshal() (dAtA []byte, err error)

func (*GasPrices) MarshalTo

func (m *GasPrices) MarshalTo(dAtA []byte) (int, error)

func (*GasPrices) MarshalToSizedBuffer

func (m *GasPrices) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GasPrices) ProtoMessage

func (*GasPrices) ProtoMessage()

func (*GasPrices) Reset

func (m *GasPrices) Reset()

func (*GasPrices) Size

func (m *GasPrices) Size() (n int)

func (*GasPrices) String

func (m *GasPrices) String() string

func (*GasPrices) Unmarshal

func (m *GasPrices) Unmarshal(dAtA []byte) error

func (*GasPrices) XXX_DiscardUnknown

func (m *GasPrices) XXX_DiscardUnknown()

func (*GasPrices) XXX_Marshal

func (m *GasPrices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GasPrices) XXX_Merge

func (m *GasPrices) XXX_Merge(src proto.Message)

func (*GasPrices) XXX_Size

func (m *GasPrices) XXX_Size() int

func (*GasPrices) XXX_Unmarshal

func (m *GasPrices) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *GenesisContent) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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