types

package
v0.2.3-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: AGPL-3.0 Imports: 39 Imported by: 25

Documentation

Overview

Package mock_types is a generated GoMock package.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "sp"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_sp"
)
View Source
const (
	TypeMsgCreateStorageProvider = "create_storage_provider"
	TypeMsgEditStorageProvider   = "edit_storage_provider"
	TypeMsgDeposit               = "deposit"
	TypeMsgUpdateSpStoragePrice  = "update_sp_storage_price"
)
View Source
const (
	MaxMonikerLength  = 70
	MaxIdentityLength = 3000
	MaxWebsiteLength  = 140
	MaxDetailsLength  = 280
)
View Source
const (
	// Default deposit denom
	DefaultDepositDenom = "BNB"
)

SP params default values

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const DoNotModifyDesc = "[do-not-modify]"

constant used in flags to indicate that description field should not be updated

Variables

View Source
var (
	ErrInvalidLengthAuthz        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuthz          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrStorageProviderNotFound           = errors.Register(ModuleName, 1, "StorageProvider does not exist")
	ErrStorageProviderNotInService       = errors.Register(ModuleName, 2, "StorageProvider does not exist")
	ErrStorageProviderOwnerExists        = errors.Register(ModuleName, 3, "StorageProvider already exist for this operator address; must use new StorageProvider operator address")
	ErrInsufficientDepositAmount         = errors.Register(ModuleName, 4, "insufficient deposit amount")
	ErrDepositAccountNotAllowed          = errors.Register(ModuleName, 5, "the deposit address must be the fund address of sp.")
	ErrInvalidDenom                      = errors.Register(ModuleName, 6, "Invalid denom.")
	ErrStorageProviderFundingAddrExists  = errors.Register(ModuleName, 7, "StorageProvider already exist for this funding address; must use new StorageProvider funding address.")
	ErrStorageProviderSealAddrExists     = errors.Register(ModuleName, 8, "StorageProvider already exist for this seal address; must use new StorageProvider seal address.")
	ErrStorageProviderApprovalAddrExists = errors.Register(ModuleName, 9, "StorageProvider already exist for this approval address; must use new StorageProvider approval address.")
	ErrStorageProviderGcAddrExists       = errors.Register(ModuleName, 10, "StorageProvider already exist for this gc address; must use new StorageProvider gc address.")
	ErrStorageProviderPriceExpired       = errors.Register(ModuleName, 11, "StorageProvider price expired")
	ErrStorageProviderNotChanged         = errors.Register(ModuleName, 12, "StorageProvider not changed")

	ErrSignerNotGovModule  = errors.Register(ModuleName, 40, "signer is not gov module account")
	ErrSignerEmpty         = errors.Register(ModuleName, 41, "signer is empty")
	ErrInvalidEndpointURL  = errors.Register(ModuleName, 42, "Invalid endpoint url")
	ErrSignerNotSPOperator = errors.Register(ModuleName, 43, "signer is not sp operator account")
)

x/sp module sentinel errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsKey = []byte{0x01}

	StorageProviderKey               = []byte{0x21} // prefix for each key to a storage provider
	StorageProviderByFundingAddrKey  = []byte{0x22} // prefix for each key to a storage provider index, by funding address
	StorageProviderBySealAddrKey     = []byte{0x23} // prefix for each key to a storage provider index, by seal address
	StorageProviderByApprovalAddrKey = []byte{0x24} // prefix for each key to a storage provider index, by approval address
	StorageProviderByGcAddrKey       = []byte{0x25} // prefix for each key to a storage provider index, by gc address
	SpStoragePriceKeyPrefix          = []byte{0x26}
	SecondarySpStorePriceKeyPrefix   = []byte{0x27}
)
View Source
var (
	// DefaultMinDeposit defines the minimum deposit amount for all storage provider
	DefaultMinDeposit = math.NewIntFromBigInt(new(big.Int).Mul(big.NewInt(10000), big.NewInt(1e18)))
	// DefaultSecondarySpStorePriceRatio is 12%
	DefaultSecondarySpStorePriceRatio = sdk.NewDecFromIntWithPrec(sdk.NewInt(12), 2)
)
View Source
var (
	KeyDepostDenom                = []byte("DepositDenom")
	KeyMinDeposit                 = []byte("MinDeposit")
	KeySecondarySpStorePriceRatio = []byte("SecondarySpStorePriceRatio")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Status_name = map[int32]string{
	0: "STATUS_IN_SERVICE",
	1: "STATUS_IN_JAILED",
	2: "STATUS_GRACEFUL_EXITING",
	3: "STATUS_OUT_OF_SERVICE",
}
View Source
var Status_value = map[string]int32{
	"STATUS_IN_SERVICE":       0,
	"STATUS_IN_JAILED":        1,
	"STATUS_GRACEFUL_EXITING": 2,
	"STATUS_OUT_OF_SERVICE":   3,
}

Functions

func GetStorageProviderByApprovalAddrKey added in v0.0.7

func GetStorageProviderByApprovalAddrKey(spAddr sdk.AccAddress) []byte

GetStorageProviderByApprovalAddrKey creates the key for the storage provider with approval address VALUE: storage provider operator address ([]byte)

func GetStorageProviderByFundingAddrKey added in v0.0.7

func GetStorageProviderByFundingAddrKey(spAddr sdk.AccAddress) []byte

GetStorageProviderByFundingAddrKey creates the key for the storage provider with funding address VALUE: storage provider operator address ([]byte)

func GetStorageProviderByGcAddrKey added in v0.1.2

func GetStorageProviderByGcAddrKey(spAddr sdk.AccAddress) []byte

GetStorageProviderByApprovalAddrKey creates the key for the storage provider with approval address VALUE: storage provider operator address ([]byte)

func GetStorageProviderBySealAddrKey added in v0.0.7

func GetStorageProviderBySealAddrKey(spAddr sdk.AccAddress) []byte

GetStorageProviderBySealAddrKey creates the key for the storage provider with seal address VALUE: storage provider operator address ([]byte)

func GetStorageProviderKey

func GetStorageProviderKey(spAddr sdk.AccAddress) []byte

GetStorageProviderKey creates the key for the provider with address VALUE: staking/Validator

func IsValidEndpointURL added in v0.0.7

func IsValidEndpointURL(endpointURL string) error

Verify if input endpoint URL is valid.

func MustMarshalStorageProvider

func MustMarshalStorageProvider(cdc codec.BinaryCodec, sp *StorageProvider) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func ParseSecondarySpStorePriceKey added in v0.0.7

func ParseSecondarySpStorePriceKey(key []byte) (UpdateTimeSec int64)

func ParseSpStoragePriceKey added in v0.0.7

func ParseSpStoragePriceKey(key []byte) (spAddr sdk.AccAddress, UpdateTimeSec int64)

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SecondarySpStorePriceKey added in v0.0.7

func SecondarySpStorePriceKey(
	UpdateTimeSec int64,
) []byte

func SpStoragePriceKey added in v0.0.7

func SpStoragePriceKey(
	sp sdk.AccAddress,
	UpdateTimeSec int64,
) []byte

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	IterateAccounts(ctx sdk.Context, process func(authtypes.AccountI) (stop bool))
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
	SetModuleAccount(sdk.Context, authtypes.ModuleAccountI)
}

AccountKeeper defines the expected account keeper used for simulations (noalias) Methods imported from account should be defined here

type AuthzKeeper

type AuthzKeeper interface {
	GetGrant(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msgType string) (grant authz.Grant, found bool)
	Update(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, updated authz.Authorization) error
	DeleteGrant(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msgType string) error
}

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances. Methods imported from bank should be defined here

type DepositAuthorization

type DepositAuthorization struct {
	// max_deposit specifies the maximum amount of tokens can be deposit to a storage provider. If it is
	// empty, there is no spend limit and any amount of coins can be deposit.
	MaxDeposit *types.Coin `protobuf:"bytes,1,opt,name=max_deposit,json=maxDeposit,proto3" json:"max_deposit,omitempty"`
	// sp_address is the operator address of storage provider.
	SpAddress string `protobuf:"bytes,2,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
}

DepositAuthorization defines authorization for sp deposit.

func NewDepositAuthorization

func NewDepositAuthorization(spAddress sdk.AccAddress, amount *sdk.Coin) *DepositAuthorization

NewDepositAuthorization creates a new DepositAuthorization object.

func (DepositAuthorization) Accept

Accept implements Authorization.Accept.

func (*DepositAuthorization) Descriptor

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

func (*DepositAuthorization) GetMaxDeposit

func (m *DepositAuthorization) GetMaxDeposit() *types.Coin

func (*DepositAuthorization) GetSpAddress

func (m *DepositAuthorization) GetSpAddress() string

func (*DepositAuthorization) Marshal

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

func (*DepositAuthorization) MarshalTo

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

func (*DepositAuthorization) MarshalToSizedBuffer

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

func (DepositAuthorization) MsgTypeURL

func (a DepositAuthorization) MsgTypeURL() string

MsgTypeURL implements Authorization.MsgTypeURL.

func (*DepositAuthorization) ProtoMessage

func (*DepositAuthorization) ProtoMessage()

func (*DepositAuthorization) Reset

func (m *DepositAuthorization) Reset()

func (*DepositAuthorization) Size

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

func (*DepositAuthorization) String

func (m *DepositAuthorization) String() string

func (*DepositAuthorization) Unmarshal

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

func (DepositAuthorization) ValidateBasic

func (a DepositAuthorization) ValidateBasic() error

ValidateBasic implements Authorization.ValidateBasic.

func (*DepositAuthorization) XXX_DiscardUnknown

func (m *DepositAuthorization) XXX_DiscardUnknown()

func (*DepositAuthorization) XXX_Marshal

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

func (*DepositAuthorization) XXX_Merge

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

func (*DepositAuthorization) XXX_Size

func (m *DepositAuthorization) XXX_Size() int

func (*DepositAuthorization) XXX_Unmarshal

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

type Description

type Description struct {
	// moniker defines a human-readable name for the storage provider
	Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// identity defines an optional identity signature (ex. UPort or Keybase).
	Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	// website defines an optional website link.
	Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	// security_contact defines an optional email for security contact.
	SecurityContact string `protobuf:"bytes,4,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty"`
	// details define other optional details.
	Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
}

Description defines a storage provider description.

func NewDescription

func NewDescription(moniker, identity, website, details string) Description

func (*Description) Descriptor

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

func (*Description) EnsureLength

func (d *Description) EnsureLength() error

EnsureLength ensures the length of a validator's description.

func (*Description) GetDetails

func (m *Description) GetDetails() string

func (*Description) GetIdentity

func (m *Description) GetIdentity() string

func (*Description) GetMoniker

func (m *Description) GetMoniker() string

func (*Description) GetSecurityContact

func (m *Description) GetSecurityContact() string

func (*Description) GetWebsite

func (m *Description) GetWebsite() string

func (*Description) Marshal

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

func (*Description) MarshalTo

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

func (*Description) MarshalToSizedBuffer

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

func (*Description) ProtoMessage

func (*Description) ProtoMessage()

func (*Description) Reset

func (m *Description) Reset()

func (*Description) Size

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

func (*Description) String

func (m *Description) String() string

func (*Description) Unmarshal

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

func (*Description) UpdateDescription

func (d *Description) UpdateDescription(d2 *Description) (*Description, error)

func (*Description) XXX_DiscardUnknown

func (m *Description) XXX_DiscardUnknown()

func (*Description) XXX_Marshal

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

func (*Description) XXX_Merge

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

func (*Description) XXX_Size

func (m *Description) XXX_Size() int

func (*Description) XXX_Unmarshal

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

type EventCreateStorageProvider

type EventCreateStorageProvider struct {
	// sp_address is the operator address of the storage provider
	SpAddress string `protobuf:"bytes,1,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// funding_address is the funding account address of the storage provider
	FundingAddress string `protobuf:"bytes,2,opt,name=funding_address,json=fundingAddress,proto3" json:"funding_address,omitempty"`
	// seal_address is the account address for SealObject Tx
	SealAddress string `protobuf:"bytes,3,opt,name=seal_address,json=sealAddress,proto3" json:"seal_address,omitempty"`
	// approval_address is the account address for approve create bucket/object signature
	ApprovalAddress string `protobuf:"bytes,4,opt,name=approval_address,json=approvalAddress,proto3" json:"approval_address,omitempty"`
	// gc_address defines one of the storage provider's accounts which is used for gc purpose
	GcAddress string `protobuf:"bytes,5,opt,name=gc_address,json=gcAddress,proto3" json:"gc_address,omitempty"`
	// endpoint is the domain name address used by SP to provide storage services
	Endpoint string `protobuf:"bytes,6,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// total_deposit is the token coin that the storage provider deposit to the storage module
	TotalDeposit *types.Coin `protobuf:"bytes,7,opt,name=total_deposit,json=totalDeposit,proto3" json:"total_deposit,omitempty"`
	// status defines the status of the storage provider
	Status Status `protobuf:"varint,8,opt,name=status,proto3,enum=greenfield.sp.Status" json:"status,omitempty"`
	// description defines the description terms for the storage provider
	Description Description `protobuf:"bytes,9,opt,name=description,proto3" json:"description"`
}

EventCreateStorageProvider is emitted when there is a storage provider created

func (*EventCreateStorageProvider) Descriptor

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

func (*EventCreateStorageProvider) GetApprovalAddress

func (m *EventCreateStorageProvider) GetApprovalAddress() string

func (*EventCreateStorageProvider) GetDescription added in v0.1.2

func (m *EventCreateStorageProvider) GetDescription() Description

func (*EventCreateStorageProvider) GetEndpoint

func (m *EventCreateStorageProvider) GetEndpoint() string

func (*EventCreateStorageProvider) GetFundingAddress

func (m *EventCreateStorageProvider) GetFundingAddress() string

func (*EventCreateStorageProvider) GetGcAddress added in v0.1.2

func (m *EventCreateStorageProvider) GetGcAddress() string

func (*EventCreateStorageProvider) GetSealAddress

func (m *EventCreateStorageProvider) GetSealAddress() string

func (*EventCreateStorageProvider) GetSpAddress

func (m *EventCreateStorageProvider) GetSpAddress() string

func (*EventCreateStorageProvider) GetStatus added in v0.1.2

func (m *EventCreateStorageProvider) GetStatus() Status

func (*EventCreateStorageProvider) GetTotalDeposit

func (m *EventCreateStorageProvider) GetTotalDeposit() *types.Coin

func (*EventCreateStorageProvider) Marshal

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

func (*EventCreateStorageProvider) MarshalTo

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

func (*EventCreateStorageProvider) MarshalToSizedBuffer

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

func (*EventCreateStorageProvider) ProtoMessage

func (*EventCreateStorageProvider) ProtoMessage()

func (*EventCreateStorageProvider) Reset

func (m *EventCreateStorageProvider) Reset()

func (*EventCreateStorageProvider) Size

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

func (*EventCreateStorageProvider) String

func (m *EventCreateStorageProvider) String() string

func (*EventCreateStorageProvider) Unmarshal

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

func (*EventCreateStorageProvider) XXX_DiscardUnknown

func (m *EventCreateStorageProvider) XXX_DiscardUnknown()

func (*EventCreateStorageProvider) XXX_Marshal

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

func (*EventCreateStorageProvider) XXX_Merge

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

func (*EventCreateStorageProvider) XXX_Size

func (m *EventCreateStorageProvider) XXX_Size() int

func (*EventCreateStorageProvider) XXX_Unmarshal

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

type EventDeposit

type EventDeposit struct {
	// funding_address is the funding account address of the storage provider
	FundingAddress string `protobuf:"bytes,1,opt,name=funding_address,json=fundingAddress,proto3" json:"funding_address,omitempty"`
	// deposit is the token coin deposited this message
	Deposit string `protobuf:"bytes,2,opt,name=deposit,proto3" json:"deposit,omitempty"`
	// total_deposit is the total token coins this storage provider deposited
	TotalDeposit string `protobuf:"bytes,3,opt,name=total_deposit,json=totalDeposit,proto3" json:"total_deposit,omitempty"`
}

EventDeposit is emitted when sp deposit tokens.

func (*EventDeposit) Descriptor

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

func (*EventDeposit) GetDeposit

func (m *EventDeposit) GetDeposit() string

func (*EventDeposit) GetFundingAddress added in v0.0.10

func (m *EventDeposit) GetFundingAddress() string

func (*EventDeposit) GetTotalDeposit

func (m *EventDeposit) GetTotalDeposit() string

func (*EventDeposit) Marshal

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

func (*EventDeposit) MarshalTo

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

func (*EventDeposit) MarshalToSizedBuffer

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

func (*EventDeposit) ProtoMessage

func (*EventDeposit) ProtoMessage()

func (*EventDeposit) Reset

func (m *EventDeposit) Reset()

func (*EventDeposit) Size

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

func (*EventDeposit) String

func (m *EventDeposit) String() string

func (*EventDeposit) Unmarshal

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

func (*EventDeposit) XXX_DiscardUnknown

func (m *EventDeposit) XXX_DiscardUnknown()

func (*EventDeposit) XXX_Marshal

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

func (*EventDeposit) XXX_Merge

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

func (*EventDeposit) XXX_Size

func (m *EventDeposit) XXX_Size() int

func (*EventDeposit) XXX_Unmarshal

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

type EventEditStorageProvider

type EventEditStorageProvider struct {
	// sp_address is the operator address of the storage provider
	SpAddress string `protobuf:"bytes,1,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// endpoint is the service endpoint of the storage provider
	Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// description defines the description terms for the storage provider
	Description Description `protobuf:"bytes,3,opt,name=description,proto3" json:"description"`
	// seal_address is the account address for SealObject Tx
	SealAddress string `protobuf:"bytes,4,opt,name=seal_address,json=sealAddress,proto3" json:"seal_address,omitempty"`
	// approval_address is the account address for approve create bucket/object signature
	ApprovalAddress string `protobuf:"bytes,5,opt,name=approval_address,json=approvalAddress,proto3" json:"approval_address,omitempty"`
	// gc_address defines one of the storage provider's accounts which is used for gc purpose
	GcAddress string `protobuf:"bytes,6,opt,name=gc_address,json=gcAddress,proto3" json:"gc_address,omitempty"`
}

EventEditStorageProvider is emitted when SP's metadata is edited.

func (*EventEditStorageProvider) Descriptor

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

func (*EventEditStorageProvider) GetApprovalAddress added in v0.1.2

func (m *EventEditStorageProvider) GetApprovalAddress() string

func (*EventEditStorageProvider) GetDescription added in v0.1.2

func (m *EventEditStorageProvider) GetDescription() Description

func (*EventEditStorageProvider) GetEndpoint added in v0.1.2

func (m *EventEditStorageProvider) GetEndpoint() string

func (*EventEditStorageProvider) GetGcAddress added in v0.1.2

func (m *EventEditStorageProvider) GetGcAddress() string

func (*EventEditStorageProvider) GetSealAddress added in v0.1.2

func (m *EventEditStorageProvider) GetSealAddress() string

func (*EventEditStorageProvider) GetSpAddress added in v0.1.2

func (m *EventEditStorageProvider) GetSpAddress() string

func (*EventEditStorageProvider) Marshal

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

func (*EventEditStorageProvider) MarshalTo

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

func (*EventEditStorageProvider) MarshalToSizedBuffer

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

func (*EventEditStorageProvider) ProtoMessage

func (*EventEditStorageProvider) ProtoMessage()

func (*EventEditStorageProvider) Reset

func (m *EventEditStorageProvider) Reset()

func (*EventEditStorageProvider) Size

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

func (*EventEditStorageProvider) String

func (m *EventEditStorageProvider) String() string

func (*EventEditStorageProvider) Unmarshal

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

func (*EventEditStorageProvider) XXX_DiscardUnknown

func (m *EventEditStorageProvider) XXX_DiscardUnknown()

func (*EventEditStorageProvider) XXX_Marshal

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

func (*EventEditStorageProvider) XXX_Merge

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

func (*EventEditStorageProvider) XXX_Size

func (m *EventEditStorageProvider) XXX_Size() int

func (*EventEditStorageProvider) XXX_Unmarshal

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

type EventSecondarySpStorePriceUpdate added in v0.0.7

type EventSecondarySpStorePriceUpdate struct {
	// update time, in unix timestamp
	UpdateTimeSec int64 `protobuf:"varint,1,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
	// store price, in bnb wei per charge byte
	StorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */
}

func (*EventSecondarySpStorePriceUpdate) Descriptor added in v0.0.7

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

func (*EventSecondarySpStorePriceUpdate) GetUpdateTimeSec added in v0.0.10

func (m *EventSecondarySpStorePriceUpdate) GetUpdateTimeSec() int64

func (*EventSecondarySpStorePriceUpdate) Marshal added in v0.0.7

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

func (*EventSecondarySpStorePriceUpdate) MarshalTo added in v0.0.7

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

func (*EventSecondarySpStorePriceUpdate) MarshalToSizedBuffer added in v0.0.7

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

func (*EventSecondarySpStorePriceUpdate) ProtoMessage added in v0.0.7

func (*EventSecondarySpStorePriceUpdate) ProtoMessage()

func (*EventSecondarySpStorePriceUpdate) Reset added in v0.0.7

func (*EventSecondarySpStorePriceUpdate) Size added in v0.0.7

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

func (*EventSecondarySpStorePriceUpdate) String added in v0.0.7

func (*EventSecondarySpStorePriceUpdate) Unmarshal added in v0.0.7

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

func (*EventSecondarySpStorePriceUpdate) XXX_DiscardUnknown added in v0.0.7

func (m *EventSecondarySpStorePriceUpdate) XXX_DiscardUnknown()

func (*EventSecondarySpStorePriceUpdate) XXX_Marshal added in v0.0.7

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

func (*EventSecondarySpStorePriceUpdate) XXX_Merge added in v0.0.7

func (*EventSecondarySpStorePriceUpdate) XXX_Size added in v0.0.7

func (m *EventSecondarySpStorePriceUpdate) XXX_Size() int

func (*EventSecondarySpStorePriceUpdate) XXX_Unmarshal added in v0.0.7

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

type EventSpStoragePriceUpdate added in v0.0.7

type EventSpStoragePriceUpdate struct {
	// sp address
	SpAddress string `protobuf:"bytes,1,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// update time, in unix timestamp
	UpdateTimeSec int64 `protobuf:"varint,2,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
	// read price, in bnb wei per charge byte
	ReadPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
	// free read quota, in byte
	FreeReadQuota uint64 `protobuf:"varint,4,opt,name=free_read_quota,json=freeReadQuota,proto3" json:"free_read_quota,omitempty"`
	// store price, in bnb wei per charge byte
	StorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */
}

func (*EventSpStoragePriceUpdate) Descriptor added in v0.0.7

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

func (*EventSpStoragePriceUpdate) GetFreeReadQuota added in v0.0.7

func (m *EventSpStoragePriceUpdate) GetFreeReadQuota() uint64

func (*EventSpStoragePriceUpdate) GetSpAddress added in v0.0.7

func (m *EventSpStoragePriceUpdate) GetSpAddress() string

func (*EventSpStoragePriceUpdate) GetUpdateTimeSec added in v0.0.10

func (m *EventSpStoragePriceUpdate) GetUpdateTimeSec() int64

func (*EventSpStoragePriceUpdate) Marshal added in v0.0.7

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

func (*EventSpStoragePriceUpdate) MarshalTo added in v0.0.7

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

func (*EventSpStoragePriceUpdate) MarshalToSizedBuffer added in v0.0.7

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

func (*EventSpStoragePriceUpdate) ProtoMessage added in v0.0.7

func (*EventSpStoragePriceUpdate) ProtoMessage()

func (*EventSpStoragePriceUpdate) Reset added in v0.0.7

func (m *EventSpStoragePriceUpdate) Reset()

func (*EventSpStoragePriceUpdate) Size added in v0.0.7

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

func (*EventSpStoragePriceUpdate) String added in v0.0.7

func (m *EventSpStoragePriceUpdate) String() string

func (*EventSpStoragePriceUpdate) Unmarshal added in v0.0.7

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

func (*EventSpStoragePriceUpdate) XXX_DiscardUnknown added in v0.0.7

func (m *EventSpStoragePriceUpdate) XXX_DiscardUnknown()

func (*EventSpStoragePriceUpdate) XXX_Marshal added in v0.0.7

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

func (*EventSpStoragePriceUpdate) XXX_Merge added in v0.0.7

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

func (*EventSpStoragePriceUpdate) XXX_Size added in v0.0.7

func (m *EventSpStoragePriceUpdate) XXX_Size() int

func (*EventSpStoragePriceUpdate) XXX_Unmarshal added in v0.0.7

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

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// this used by starport scaffolding # genesis/proto/state
	StorageProviders   []StorageProvider `protobuf:"bytes,2,rep,name=storage_providers,json=storageProviders,proto3" json:"storage_providers"`
	SpStoragePriceList []SpStoragePrice  `protobuf:"bytes,3,rep,name=sp_storage_price_list,json=spStoragePriceList,proto3" json:"sp_storage_price_list"`
}

GenesisState defines the sp module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSpStoragePriceList added in v0.0.7

func (m *GenesisState) GetSpStoragePriceList() []SpStoragePrice

func (*GenesisState) GetStorageProviders

func (m *GenesisState) GetStorageProviders() []StorageProvider

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MockAccountKeeper added in v0.2.0

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

MockAccountKeeper is a mock of AccountKeeper interface

func NewMockAccountKeeper added in v0.2.0

func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper

NewMockAccountKeeper creates a new mock instance

func (*MockAccountKeeper) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAccountKeeper) GetAccount added in v0.2.0

func (m *MockAccountKeeper) GetAccount(arg0 types.Context, arg1 types.AccAddress) types0.AccountI

GetAccount mocks base method

func (*MockAccountKeeper) GetModuleAccount added in v0.2.0

func (m *MockAccountKeeper) GetModuleAccount(arg0 types.Context, arg1 string) types0.ModuleAccountI

GetModuleAccount mocks base method

func (*MockAccountKeeper) GetModuleAddress added in v0.2.0

func (m *MockAccountKeeper) GetModuleAddress(arg0 string) types.AccAddress

GetModuleAddress mocks base method

func (*MockAccountKeeper) IterateAccounts added in v0.2.0

func (m *MockAccountKeeper) IterateAccounts(arg0 types.Context, arg1 func(types0.AccountI) bool)

IterateAccounts mocks base method

func (*MockAccountKeeper) SetModuleAccount added in v0.2.0

func (m *MockAccountKeeper) SetModuleAccount(arg0 types.Context, arg1 types0.ModuleAccountI)

SetModuleAccount mocks base method

type MockAccountKeeperMockRecorder added in v0.2.0

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

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper

func (*MockAccountKeeperMockRecorder) GetAccount added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount

func (*MockAccountKeeperMockRecorder) GetModuleAccount added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(arg0, arg1 interface{}) *gomock.Call

GetModuleAccount indicates an expected call of GetModuleAccount

func (*MockAccountKeeperMockRecorder) GetModuleAddress added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(arg0 interface{}) *gomock.Call

GetModuleAddress indicates an expected call of GetModuleAddress

func (*MockAccountKeeperMockRecorder) IterateAccounts added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) IterateAccounts(arg0, arg1 interface{}) *gomock.Call

IterateAccounts indicates an expected call of IterateAccounts

func (*MockAccountKeeperMockRecorder) SetModuleAccount added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}) *gomock.Call

SetModuleAccount indicates an expected call of SetModuleAccount

type MockAuthzKeeper added in v0.2.0

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

MockAuthzKeeper is a mock of AuthzKeeper interface

func NewMockAuthzKeeper added in v0.2.0

func NewMockAuthzKeeper(ctrl *gomock.Controller) *MockAuthzKeeper

NewMockAuthzKeeper creates a new mock instance

func (*MockAuthzKeeper) DeleteGrant added in v0.2.0

func (m *MockAuthzKeeper) DeleteGrant(arg0 types.Context, arg1, arg2 types.AccAddress, arg3 string) error

DeleteGrant mocks base method

func (*MockAuthzKeeper) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAuthzKeeper) GetGrant added in v0.2.0

func (m *MockAuthzKeeper) GetGrant(arg0 types.Context, arg1, arg2 types.AccAddress, arg3 string) (authz.Grant, bool)

GetGrant mocks base method

func (*MockAuthzKeeper) Update added in v0.2.0

func (m *MockAuthzKeeper) Update(arg0 types.Context, arg1, arg2 types.AccAddress, arg3 authz.Authorization) error

Update mocks base method

type MockAuthzKeeperMockRecorder added in v0.2.0

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

MockAuthzKeeperMockRecorder is the mock recorder for MockAuthzKeeper

func (*MockAuthzKeeperMockRecorder) DeleteGrant added in v0.2.0

func (mr *MockAuthzKeeperMockRecorder) DeleteGrant(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

DeleteGrant indicates an expected call of DeleteGrant

func (*MockAuthzKeeperMockRecorder) GetGrant added in v0.2.0

func (mr *MockAuthzKeeperMockRecorder) GetGrant(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetGrant indicates an expected call of GetGrant

func (*MockAuthzKeeperMockRecorder) Update added in v0.2.0

func (mr *MockAuthzKeeperMockRecorder) Update(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Update indicates an expected call of Update

type MockBankKeeper added in v0.2.0

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

MockBankKeeper is a mock of BankKeeper interface

func NewMockBankKeeper added in v0.2.0

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

NewMockBankKeeper creates a new mock instance

func (*MockBankKeeper) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockBankKeeper) GetAllBalances added in v0.2.0

func (m *MockBankKeeper) GetAllBalances(arg0 types.Context, arg1 types.AccAddress) types.Coins

GetAllBalances mocks base method

func (*MockBankKeeper) GetBalance added in v0.2.0

func (m *MockBankKeeper) GetBalance(arg0 types.Context, arg1 types.AccAddress, arg2 string) types.Coin

GetBalance mocks base method

func (*MockBankKeeper) LockedCoins added in v0.2.0

func (m *MockBankKeeper) LockedCoins(arg0 types.Context, arg1 types.AccAddress) types.Coins

LockedCoins mocks base method

func (*MockBankKeeper) SendCoinsFromAccountToModule added in v0.2.0

func (m *MockBankKeeper) SendCoinsFromAccountToModule(arg0 types.Context, arg1 types.AccAddress, arg2 string, arg3 types.Coins) error

SendCoinsFromAccountToModule mocks base method

func (*MockBankKeeper) SendCoinsFromModuleToAccount added in v0.2.0

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(arg0 types.Context, arg1 string, arg2 types.AccAddress, arg3 types.Coins) error

SendCoinsFromModuleToAccount mocks base method

func (*MockBankKeeper) SpendableCoins added in v0.2.0

func (m *MockBankKeeper) SpendableCoins(arg0 types.Context, arg1 types.AccAddress) types.Coins

SpendableCoins mocks base method

type MockBankKeeperMockRecorder added in v0.2.0

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

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper

func (*MockBankKeeperMockRecorder) GetAllBalances added in v0.2.0

func (mr *MockBankKeeperMockRecorder) GetAllBalances(arg0, arg1 interface{}) *gomock.Call

GetAllBalances indicates an expected call of GetAllBalances

func (*MockBankKeeperMockRecorder) GetBalance added in v0.2.0

func (mr *MockBankKeeperMockRecorder) GetBalance(arg0, arg1, arg2 interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance

func (*MockBankKeeperMockRecorder) LockedCoins added in v0.2.0

func (mr *MockBankKeeperMockRecorder) LockedCoins(arg0, arg1 interface{}) *gomock.Call

LockedCoins indicates an expected call of LockedCoins

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount

func (*MockBankKeeperMockRecorder) SpendableCoins added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SpendableCoins(arg0, arg1 interface{}) *gomock.Call

SpendableCoins indicates an expected call of SpendableCoins

type MsgClient

type MsgClient interface {
	CreateStorageProvider(ctx context.Context, in *MsgCreateStorageProvider, opts ...grpc.CallOption) (*MsgCreateStorageProviderResponse, error)
	Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error)
	EditStorageProvider(ctx context.Context, in *MsgEditStorageProvider, opts ...grpc.CallOption) (*MsgEditStorageProviderResponse, error)
	UpdateSpStoragePrice(ctx context.Context, in *MsgUpdateSpStoragePrice, opts ...grpc.CallOption) (*MsgUpdateSpStoragePriceResponse, error)
	// UpdateParams defines a governance operation for updating the x/sp module parameters.
	// The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateStorageProvider

type MsgCreateStorageProvider struct {
	// creator is the msg signer
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// description defines the description terms for the validator.
	Description Description `protobuf:"bytes,2,opt,name=description,proto3" json:"description"`
	// sp_address defines the address of the sp's operator; It also is the unqiue index key of sp.
	SpAddress string `protobuf:"bytes,3,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// fund_address is the account address of the storage provider for deposit, remuneration.
	FundingAddress string `protobuf:"bytes,4,opt,name=funding_address,json=fundingAddress,proto3" json:"funding_address,omitempty"`
	// seal_address is the account address of the storage provider for sealObject
	SealAddress string `protobuf:"bytes,5,opt,name=seal_address,json=sealAddress,proto3" json:"seal_address,omitempty"`
	// approval_address is the account address of the storage provider for ack CreateBucket/Object.
	ApprovalAddress string `protobuf:"bytes,6,opt,name=approval_address,json=approvalAddress,proto3" json:"approval_address,omitempty"`
	// gc_address defines one of the storage provider's accounts which is used for gc purpose.
	GcAddress string `protobuf:"bytes,7,opt,name=gc_address,json=gcAddress,proto3" json:"gc_address,omitempty"`
	// endpoint is the service address of the storage provider
	Endpoint string `protobuf:"bytes,8,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// deposit define the deposit token
	Deposit types.Coin `protobuf:"bytes,9,opt,name=deposit,proto3" json:"deposit"`
	// read price, in bnb wei per charge byte
	ReadPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 129-byte string literal not displayed */
	// free read quota, in byte
	FreeReadQuota uint64 `protobuf:"varint,11,opt,name=free_read_quota,json=freeReadQuota,proto3" json:"free_read_quota,omitempty"`
	// store price, in bnb wei per charge byte
	StorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 132-byte string literal not displayed */
}

MsgCreateStorageProvider defines message for creating a new storage provider.

func NewMsgCreateStorageProvider

func NewMsgCreateStorageProvider(
	creator sdk.AccAddress, SpAddress sdk.AccAddress, fundingAddress sdk.AccAddress,
	sealAddress sdk.AccAddress, approvalAddress sdk.AccAddress, gcAddress sdk.AccAddress,
	description Description, endpoint string, deposit sdk.Coin, readPrice sdk.Dec, freeReadQuota uint64, storePrice sdk.Dec) (*MsgCreateStorageProvider, error)

NewMsgCreateStorageProvider creates a new MsgCreateStorageProvider instance. creator is the module account of gov module SpAddress is the account address of storage provider fundAddress is another accoutn address of storage provider which used to deposit or rewarding

func (*MsgCreateStorageProvider) Descriptor

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

func (*MsgCreateStorageProvider) GetApprovalAddress

func (m *MsgCreateStorageProvider) GetApprovalAddress() string

func (*MsgCreateStorageProvider) GetCreator

func (m *MsgCreateStorageProvider) GetCreator() string

func (*MsgCreateStorageProvider) GetDeposit

func (m *MsgCreateStorageProvider) GetDeposit() types.Coin

func (*MsgCreateStorageProvider) GetDescription

func (m *MsgCreateStorageProvider) GetDescription() Description

func (*MsgCreateStorageProvider) GetEndpoint

func (m *MsgCreateStorageProvider) GetEndpoint() string

func (*MsgCreateStorageProvider) GetFreeReadQuota added in v0.0.7

func (m *MsgCreateStorageProvider) GetFreeReadQuota() uint64

func (*MsgCreateStorageProvider) GetFundingAddress

func (m *MsgCreateStorageProvider) GetFundingAddress() string

func (*MsgCreateStorageProvider) GetGcAddress added in v0.1.2

func (m *MsgCreateStorageProvider) GetGcAddress() string

func (*MsgCreateStorageProvider) GetSealAddress

func (m *MsgCreateStorageProvider) GetSealAddress() string

func (*MsgCreateStorageProvider) GetSignBytes

func (msg *MsgCreateStorageProvider) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over.

func (*MsgCreateStorageProvider) GetSigners

func (msg *MsgCreateStorageProvider) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgCreateStorageProvider) GetSpAddress

func (m *MsgCreateStorageProvider) GetSpAddress() string

func (*MsgCreateStorageProvider) Marshal

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

func (*MsgCreateStorageProvider) MarshalTo

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

func (*MsgCreateStorageProvider) MarshalToSizedBuffer

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

func (*MsgCreateStorageProvider) ProtoMessage

func (*MsgCreateStorageProvider) ProtoMessage()

func (*MsgCreateStorageProvider) Reset

func (m *MsgCreateStorageProvider) Reset()

func (*MsgCreateStorageProvider) Route

func (msg *MsgCreateStorageProvider) Route() string

Route implements the sdk.Msg interface.

func (*MsgCreateStorageProvider) Size

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

func (*MsgCreateStorageProvider) String

func (m *MsgCreateStorageProvider) String() string

func (*MsgCreateStorageProvider) Type

func (msg *MsgCreateStorageProvider) Type() string

Type implements the sdk.Msg interface.

func (*MsgCreateStorageProvider) Unmarshal

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

func (*MsgCreateStorageProvider) ValidateBasic

func (msg *MsgCreateStorageProvider) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgCreateStorageProvider) XXX_DiscardUnknown

func (m *MsgCreateStorageProvider) XXX_DiscardUnknown()

func (*MsgCreateStorageProvider) XXX_Marshal

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

func (*MsgCreateStorageProvider) XXX_Merge

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

func (*MsgCreateStorageProvider) XXX_Size

func (m *MsgCreateStorageProvider) XXX_Size() int

func (*MsgCreateStorageProvider) XXX_Unmarshal

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

type MsgCreateStorageProviderResponse

type MsgCreateStorageProviderResponse struct {
}

MsgCreateStorageProviderResponse defines the Msg/CreateStorageProvider response type.

func (*MsgCreateStorageProviderResponse) Descriptor

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

func (*MsgCreateStorageProviderResponse) Marshal

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

func (*MsgCreateStorageProviderResponse) MarshalTo

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

func (*MsgCreateStorageProviderResponse) MarshalToSizedBuffer

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

func (*MsgCreateStorageProviderResponse) ProtoMessage

func (*MsgCreateStorageProviderResponse) ProtoMessage()

func (*MsgCreateStorageProviderResponse) Reset

func (*MsgCreateStorageProviderResponse) Size

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

func (*MsgCreateStorageProviderResponse) String

func (*MsgCreateStorageProviderResponse) Unmarshal

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

func (*MsgCreateStorageProviderResponse) XXX_DiscardUnknown

func (m *MsgCreateStorageProviderResponse) XXX_DiscardUnknown()

func (*MsgCreateStorageProviderResponse) XXX_Marshal

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

func (*MsgCreateStorageProviderResponse) XXX_Merge

func (*MsgCreateStorageProviderResponse) XXX_Size

func (m *MsgCreateStorageProviderResponse) XXX_Size() int

func (*MsgCreateStorageProviderResponse) XXX_Unmarshal

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

type MsgDeposit

type MsgDeposit struct {
	// creator is the msg signer, it should be sp's fund address
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// sp_address is the operator address of sp
	SpAddress string `protobuf:"bytes,2,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// deposit is a mount of token which used to deposit for SP
	Deposit types.Coin `protobuf:"bytes,3,opt,name=deposit,proto3" json:"deposit"`
}

MsgDeposit defines a SDK message for deposit token for sp.

func NewMsgDeposit

func NewMsgDeposit(fundAddress sdk.AccAddress, spAddress sdk.AccAddress, deposit sdk.Coin) *MsgDeposit

NewMsgDeposit creates a new MsgDeposit instance

func (*MsgDeposit) Descriptor

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

func (*MsgDeposit) GetCreator

func (m *MsgDeposit) GetCreator() string

func (*MsgDeposit) GetDeposit

func (m *MsgDeposit) GetDeposit() types.Coin

func (*MsgDeposit) GetSignBytes

func (msg *MsgDeposit) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over.

func (*MsgDeposit) GetSigners

func (msg *MsgDeposit) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgDeposit) GetSpAddress

func (m *MsgDeposit) GetSpAddress() string

func (*MsgDeposit) Marshal

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

func (*MsgDeposit) MarshalTo

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

func (*MsgDeposit) MarshalToSizedBuffer

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

func (*MsgDeposit) ProtoMessage

func (*MsgDeposit) ProtoMessage()

func (*MsgDeposit) Reset

func (m *MsgDeposit) Reset()

func (*MsgDeposit) Route

func (msg *MsgDeposit) Route() string

Route implements the sdk.Msg interface.

func (*MsgDeposit) Size

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

func (*MsgDeposit) String

func (m *MsgDeposit) String() string

func (*MsgDeposit) Type

func (msg *MsgDeposit) Type() string

Type implements the sdk.Msg interface.

func (*MsgDeposit) Unmarshal

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

func (*MsgDeposit) ValidateBasic

func (msg *MsgDeposit) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgDeposit) XXX_DiscardUnknown

func (m *MsgDeposit) XXX_DiscardUnknown()

func (*MsgDeposit) XXX_Marshal

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

func (*MsgDeposit) XXX_Merge

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

func (*MsgDeposit) XXX_Size

func (m *MsgDeposit) XXX_Size() int

func (*MsgDeposit) XXX_Unmarshal

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

type MsgDepositResponse

type MsgDepositResponse struct {
}

MsgDepositResponse defines the Msg/Deposit response type.

func (*MsgDepositResponse) Descriptor

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

func (*MsgDepositResponse) Marshal

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

func (*MsgDepositResponse) MarshalTo

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

func (*MsgDepositResponse) MarshalToSizedBuffer

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

func (*MsgDepositResponse) ProtoMessage

func (*MsgDepositResponse) ProtoMessage()

func (*MsgDepositResponse) Reset

func (m *MsgDepositResponse) Reset()

func (*MsgDepositResponse) Size

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

func (*MsgDepositResponse) String

func (m *MsgDepositResponse) String() string

func (*MsgDepositResponse) Unmarshal

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

func (*MsgDepositResponse) XXX_DiscardUnknown

func (m *MsgDepositResponse) XXX_DiscardUnknown()

func (*MsgDepositResponse) XXX_Marshal

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

func (*MsgDepositResponse) XXX_Merge

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

func (*MsgDepositResponse) XXX_Size

func (m *MsgDepositResponse) XXX_Size() int

func (*MsgDepositResponse) XXX_Unmarshal

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

type MsgEditStorageProvider

type MsgEditStorageProvider struct {
	SpAddress   string       `protobuf:"bytes,1,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	Endpoint    string       `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	Description *Description `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// seal_address is the account address of the storage provider for sealObject
	SealAddress string `protobuf:"bytes,4,opt,name=seal_address,json=sealAddress,proto3" json:"seal_address,omitempty"`
	// approval_address is the account address of the storage provider for ack CreateBucket/Object
	ApprovalAddress string `protobuf:"bytes,5,opt,name=approval_address,json=approvalAddress,proto3" json:"approval_address,omitempty"`
	// gc_address defines one of the storage provider's accounts which is used for gc purpose
	GcAddress string `protobuf:"bytes,6,opt,name=gc_address,json=gcAddress,proto3" json:"gc_address,omitempty"`
}

MsgEditStorageProvider defines a SDK message for editing an existing sp.

func NewMsgEditStorageProvider

func NewMsgEditStorageProvider(spAddress sdk.AccAddress, endpoint string, description *Description,
	sealAddress sdk.AccAddress, approvalAddress sdk.AccAddress, gcAddress sdk.AccAddress) *MsgEditStorageProvider

NewMsgEditStorageProvider creates a new MsgEditStorageProvider instance

func (*MsgEditStorageProvider) Descriptor

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

func (*MsgEditStorageProvider) GetApprovalAddress added in v0.1.2

func (m *MsgEditStorageProvider) GetApprovalAddress() string

func (*MsgEditStorageProvider) GetDescription

func (m *MsgEditStorageProvider) GetDescription() *Description

func (*MsgEditStorageProvider) GetEndpoint

func (m *MsgEditStorageProvider) GetEndpoint() string

func (*MsgEditStorageProvider) GetGcAddress added in v0.1.2

func (m *MsgEditStorageProvider) GetGcAddress() string

func (*MsgEditStorageProvider) GetSealAddress added in v0.1.2

func (m *MsgEditStorageProvider) GetSealAddress() string

func (*MsgEditStorageProvider) GetSignBytes

func (msg *MsgEditStorageProvider) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over.

func (*MsgEditStorageProvider) GetSigners

func (msg *MsgEditStorageProvider) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgEditStorageProvider) GetSpAddress

func (m *MsgEditStorageProvider) GetSpAddress() string

func (*MsgEditStorageProvider) Marshal

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

func (*MsgEditStorageProvider) MarshalTo

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

func (*MsgEditStorageProvider) MarshalToSizedBuffer

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

func (*MsgEditStorageProvider) ProtoMessage

func (*MsgEditStorageProvider) ProtoMessage()

func (*MsgEditStorageProvider) Reset

func (m *MsgEditStorageProvider) Reset()

func (*MsgEditStorageProvider) Route

func (msg *MsgEditStorageProvider) Route() string

Route implements the sdk.Msg interface.

func (*MsgEditStorageProvider) Size

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

func (*MsgEditStorageProvider) String

func (m *MsgEditStorageProvider) String() string

func (*MsgEditStorageProvider) Type

func (msg *MsgEditStorageProvider) Type() string

Type implements the sdk.Msg interface.

func (*MsgEditStorageProvider) Unmarshal

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

func (*MsgEditStorageProvider) ValidateBasic

func (msg *MsgEditStorageProvider) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgEditStorageProvider) XXX_DiscardUnknown

func (m *MsgEditStorageProvider) XXX_DiscardUnknown()

func (*MsgEditStorageProvider) XXX_Marshal

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

func (*MsgEditStorageProvider) XXX_Merge

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

func (*MsgEditStorageProvider) XXX_Size

func (m *MsgEditStorageProvider) XXX_Size() int

func (*MsgEditStorageProvider) XXX_Unmarshal

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

type MsgEditStorageProviderResponse

type MsgEditStorageProviderResponse struct {
}

MsgEditStorageProviderResponse defines the Msg/EditStorageProvider response type.

func (*MsgEditStorageProviderResponse) Descriptor

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

func (*MsgEditStorageProviderResponse) Marshal

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

func (*MsgEditStorageProviderResponse) MarshalTo

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

func (*MsgEditStorageProviderResponse) MarshalToSizedBuffer

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

func (*MsgEditStorageProviderResponse) ProtoMessage

func (*MsgEditStorageProviderResponse) ProtoMessage()

func (*MsgEditStorageProviderResponse) Reset

func (m *MsgEditStorageProviderResponse) Reset()

func (*MsgEditStorageProviderResponse) Size

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

func (*MsgEditStorageProviderResponse) String

func (*MsgEditStorageProviderResponse) Unmarshal

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

func (*MsgEditStorageProviderResponse) XXX_DiscardUnknown

func (m *MsgEditStorageProviderResponse) XXX_DiscardUnknown()

func (*MsgEditStorageProviderResponse) XXX_Marshal

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

func (*MsgEditStorageProviderResponse) XXX_Merge

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

func (*MsgEditStorageProviderResponse) XXX_Size

func (m *MsgEditStorageProviderResponse) XXX_Size() int

func (*MsgEditStorageProviderResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	CreateStorageProvider(context.Context, *MsgCreateStorageProvider) (*MsgCreateStorageProviderResponse, error)
	Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
	EditStorageProvider(context.Context, *MsgEditStorageProvider) (*MsgEditStorageProviderResponse, error)
	UpdateSpStoragePrice(context.Context, *MsgUpdateSpStoragePrice) (*MsgUpdateSpStoragePriceResponse, error)
	// UpdateParams defines a governance operation for updating the x/sp module parameters.
	// The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams added in v0.2.0

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/sp parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor added in v0.2.0

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

func (*MsgUpdateParams) GetAuthority added in v0.2.0

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.2.0

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSignBytes added in v0.2.0

func (m MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners added in v0.2.0

func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal added in v0.2.0

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

func (*MsgUpdateParams) MarshalTo added in v0.2.0

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgUpdateParams) ProtoMessage added in v0.2.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.2.0

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v0.2.0

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

func (*MsgUpdateParams) String added in v0.2.0

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v0.2.0

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

func (*MsgUpdateParams) ValidateBasic added in v0.2.0

func (m *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.2.0

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.2.0

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

func (*MsgUpdateParams) XXX_Merge added in v0.2.0

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

func (*MsgUpdateParams) XXX_Size added in v0.2.0

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.2.0

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

type MsgUpdateParamsResponse added in v0.2.0

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor added in v0.2.0

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

func (*MsgUpdateParamsResponse) Marshal added in v0.2.0

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

func (*MsgUpdateParamsResponse) MarshalTo added in v0.2.0

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.2.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.2.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.2.0

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

func (*MsgUpdateParamsResponse) String added in v0.2.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.2.0

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.2.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.2.0

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.2.0

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

func (*MsgUpdateParamsResponse) XXX_Size added in v0.2.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.2.0

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

type MsgUpdateSpStoragePrice added in v0.0.7

type MsgUpdateSpStoragePrice struct {
	// sp address
	SpAddress string `protobuf:"bytes,1,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// read price, in bnb wei per charge byte
	ReadPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
	// free read quota, in byte
	FreeReadQuota uint64 `protobuf:"varint,3,opt,name=free_read_quota,json=freeReadQuota,proto3" json:"free_read_quota,omitempty"`
	// store price, in bnb wei per charge byte
	StorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */
}

func (*MsgUpdateSpStoragePrice) Descriptor added in v0.0.7

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

func (*MsgUpdateSpStoragePrice) GetFreeReadQuota added in v0.0.7

func (m *MsgUpdateSpStoragePrice) GetFreeReadQuota() uint64

func (*MsgUpdateSpStoragePrice) GetSignBytes added in v0.0.7

func (msg *MsgUpdateSpStoragePrice) GetSignBytes() []byte

func (*MsgUpdateSpStoragePrice) GetSigners added in v0.0.7

func (msg *MsgUpdateSpStoragePrice) GetSigners() []sdk.AccAddress

func (*MsgUpdateSpStoragePrice) GetSpAddress added in v0.0.7

func (m *MsgUpdateSpStoragePrice) GetSpAddress() string

func (*MsgUpdateSpStoragePrice) Marshal added in v0.0.7

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

func (*MsgUpdateSpStoragePrice) MarshalTo added in v0.0.7

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

func (*MsgUpdateSpStoragePrice) MarshalToSizedBuffer added in v0.0.7

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

func (*MsgUpdateSpStoragePrice) ProtoMessage added in v0.0.7

func (*MsgUpdateSpStoragePrice) ProtoMessage()

func (*MsgUpdateSpStoragePrice) Reset added in v0.0.7

func (m *MsgUpdateSpStoragePrice) Reset()

func (*MsgUpdateSpStoragePrice) Route added in v0.0.7

func (msg *MsgUpdateSpStoragePrice) Route() string

func (*MsgUpdateSpStoragePrice) Size added in v0.0.7

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

func (*MsgUpdateSpStoragePrice) String added in v0.0.7

func (m *MsgUpdateSpStoragePrice) String() string

func (*MsgUpdateSpStoragePrice) Type added in v0.0.7

func (msg *MsgUpdateSpStoragePrice) Type() string

func (*MsgUpdateSpStoragePrice) Unmarshal added in v0.0.7

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

func (*MsgUpdateSpStoragePrice) ValidateBasic added in v0.0.7

func (msg *MsgUpdateSpStoragePrice) ValidateBasic() error

func (*MsgUpdateSpStoragePrice) XXX_DiscardUnknown added in v0.0.7

func (m *MsgUpdateSpStoragePrice) XXX_DiscardUnknown()

func (*MsgUpdateSpStoragePrice) XXX_Marshal added in v0.0.7

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

func (*MsgUpdateSpStoragePrice) XXX_Merge added in v0.0.7

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

func (*MsgUpdateSpStoragePrice) XXX_Size added in v0.0.7

func (m *MsgUpdateSpStoragePrice) XXX_Size() int

func (*MsgUpdateSpStoragePrice) XXX_Unmarshal added in v0.0.7

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

type MsgUpdateSpStoragePriceResponse added in v0.0.7

type MsgUpdateSpStoragePriceResponse struct {
}

func (*MsgUpdateSpStoragePriceResponse) Descriptor added in v0.0.7

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

func (*MsgUpdateSpStoragePriceResponse) Marshal added in v0.0.7

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

func (*MsgUpdateSpStoragePriceResponse) MarshalTo added in v0.0.7

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

func (*MsgUpdateSpStoragePriceResponse) MarshalToSizedBuffer added in v0.0.7

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

func (*MsgUpdateSpStoragePriceResponse) ProtoMessage added in v0.0.7

func (*MsgUpdateSpStoragePriceResponse) ProtoMessage()

func (*MsgUpdateSpStoragePriceResponse) Reset added in v0.0.7

func (*MsgUpdateSpStoragePriceResponse) Size added in v0.0.7

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

func (*MsgUpdateSpStoragePriceResponse) String added in v0.0.7

func (*MsgUpdateSpStoragePriceResponse) Unmarshal added in v0.0.7

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

func (*MsgUpdateSpStoragePriceResponse) XXX_DiscardUnknown added in v0.0.7

func (m *MsgUpdateSpStoragePriceResponse) XXX_DiscardUnknown()

func (*MsgUpdateSpStoragePriceResponse) XXX_Marshal added in v0.0.7

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

func (*MsgUpdateSpStoragePriceResponse) XXX_Merge added in v0.0.7

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

func (*MsgUpdateSpStoragePriceResponse) XXX_Size added in v0.0.7

func (m *MsgUpdateSpStoragePriceResponse) XXX_Size() int

func (*MsgUpdateSpStoragePriceResponse) XXX_Unmarshal added in v0.0.7

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

type Params

type Params struct {
	// deposit_denom defines the staking coin denomination.
	DepositDenom string `protobuf:"bytes,1,opt,name=deposit_denom,json=depositDenom,proto3" json:"deposit_denom,omitempty"`
	// min_deposit defines the minimum deposit amount for storage providers.
	MinDeposit github_com_cosmos_cosmos_sdk_types.Int `` /* 131-byte string literal not displayed */
	// the ratio of the store price of the secondary sp to the primary sp, the default value is 80%
	SecondarySpStorePriceRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 185-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(depositDenom string, minDeposit math.Int, secondarySpStorePriceRatio sdk.Dec) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetDepositDenom

func (m *Params) GetDepositDenom() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of GetStorageProviders items.
	StorageProviders(ctx context.Context, in *QueryStorageProvidersRequest, opts ...grpc.CallOption) (*QueryStorageProvidersResponse, error)
	// get storage price of specific sp and time
	QueryGetSpStoragePriceByTime(ctx context.Context, in *QueryGetSpStoragePriceByTimeRequest, opts ...grpc.CallOption) (*QueryGetSpStoragePriceByTimeResponse, error)
	// get secondary store price by time
	QueryGetSecondarySpStorePriceByTime(ctx context.Context, in *QueryGetSecondarySpStorePriceByTimeRequest, opts ...grpc.CallOption) (*QueryGetSecondarySpStorePriceByTimeResponse, error)
	// Queries a storage provider with specify address
	StorageProvider(ctx context.Context, in *QueryStorageProviderRequest, opts ...grpc.CallOption) (*QueryStorageProviderResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGetSecondarySpStorePriceByTimeRequest added in v0.0.7

type QueryGetSecondarySpStorePriceByTimeRequest struct {
	// unix timestamp in seconds. If it's 0, it will return the latest price.
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}

func (*QueryGetSecondarySpStorePriceByTimeRequest) Descriptor added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeRequest) GetTimestamp added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeRequest) Marshal added in v0.0.7

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

func (*QueryGetSecondarySpStorePriceByTimeRequest) MarshalTo added in v0.0.7

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

func (*QueryGetSecondarySpStorePriceByTimeRequest) MarshalToSizedBuffer added in v0.0.7

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

func (*QueryGetSecondarySpStorePriceByTimeRequest) ProtoMessage added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeRequest) Reset added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeRequest) Size added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeRequest) String added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeRequest) Unmarshal added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeRequest) XXX_DiscardUnknown added in v0.0.7

func (m *QueryGetSecondarySpStorePriceByTimeRequest) XXX_DiscardUnknown()

func (*QueryGetSecondarySpStorePriceByTimeRequest) XXX_Marshal added in v0.0.7

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

func (*QueryGetSecondarySpStorePriceByTimeRequest) XXX_Merge added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeRequest) XXX_Size added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeRequest) XXX_Unmarshal added in v0.0.7

type QueryGetSecondarySpStorePriceByTimeResponse added in v0.0.7

type QueryGetSecondarySpStorePriceByTimeResponse struct {
	SecondarySpStorePrice SecondarySpStorePrice `protobuf:"bytes,1,opt,name=secondary_sp_store_price,json=secondarySpStorePrice,proto3" json:"secondary_sp_store_price"`
}

func (*QueryGetSecondarySpStorePriceByTimeResponse) Descriptor added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) GetSecondarySpStorePrice added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) Marshal added in v0.0.7

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

func (*QueryGetSecondarySpStorePriceByTimeResponse) MarshalTo added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) MarshalToSizedBuffer added in v0.0.7

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

func (*QueryGetSecondarySpStorePriceByTimeResponse) ProtoMessage added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) Reset added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) Size added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) String added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) Unmarshal added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) XXX_DiscardUnknown added in v0.0.7

func (m *QueryGetSecondarySpStorePriceByTimeResponse) XXX_DiscardUnknown()

func (*QueryGetSecondarySpStorePriceByTimeResponse) XXX_Marshal added in v0.0.7

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

func (*QueryGetSecondarySpStorePriceByTimeResponse) XXX_Merge added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) XXX_Size added in v0.0.7

func (*QueryGetSecondarySpStorePriceByTimeResponse) XXX_Unmarshal added in v0.0.7

type QueryGetSpStoragePriceByTimeRequest added in v0.0.7

type QueryGetSpStoragePriceByTimeRequest struct {
	// operator address of sp
	SpAddr string `protobuf:"bytes,1,opt,name=sp_addr,json=spAddr,proto3" json:"sp_addr,omitempty"`
	// unix timestamp in seconds. If it's 0, it will return the latest price.
	Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}

func (*QueryGetSpStoragePriceByTimeRequest) Descriptor added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeRequest) GetSpAddr added in v0.0.7

func (*QueryGetSpStoragePriceByTimeRequest) GetTimestamp added in v0.0.7

func (m *QueryGetSpStoragePriceByTimeRequest) GetTimestamp() int64

func (*QueryGetSpStoragePriceByTimeRequest) Marshal added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeRequest) MarshalTo added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeRequest) MarshalToSizedBuffer added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeRequest) ProtoMessage added in v0.0.7

func (*QueryGetSpStoragePriceByTimeRequest) ProtoMessage()

func (*QueryGetSpStoragePriceByTimeRequest) Reset added in v0.0.7

func (*QueryGetSpStoragePriceByTimeRequest) Size added in v0.0.7

func (*QueryGetSpStoragePriceByTimeRequest) String added in v0.0.7

func (*QueryGetSpStoragePriceByTimeRequest) Unmarshal added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeRequest) XXX_DiscardUnknown added in v0.0.7

func (m *QueryGetSpStoragePriceByTimeRequest) XXX_DiscardUnknown()

func (*QueryGetSpStoragePriceByTimeRequest) XXX_Marshal added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeRequest) XXX_Merge added in v0.0.7

func (*QueryGetSpStoragePriceByTimeRequest) XXX_Size added in v0.0.7

func (*QueryGetSpStoragePriceByTimeRequest) XXX_Unmarshal added in v0.0.7

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

type QueryGetSpStoragePriceByTimeResponse added in v0.0.7

type QueryGetSpStoragePriceByTimeResponse struct {
	SpStoragePrice SpStoragePrice `protobuf:"bytes,1,opt,name=sp_storage_price,json=spStoragePrice,proto3" json:"sp_storage_price"`
}

func (*QueryGetSpStoragePriceByTimeResponse) Descriptor added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeResponse) GetSpStoragePrice added in v0.0.7

func (*QueryGetSpStoragePriceByTimeResponse) Marshal added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeResponse) MarshalTo added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeResponse) MarshalToSizedBuffer added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeResponse) ProtoMessage added in v0.0.7

func (*QueryGetSpStoragePriceByTimeResponse) ProtoMessage()

func (*QueryGetSpStoragePriceByTimeResponse) Reset added in v0.0.7

func (*QueryGetSpStoragePriceByTimeResponse) Size added in v0.0.7

func (*QueryGetSpStoragePriceByTimeResponse) String added in v0.0.7

func (*QueryGetSpStoragePriceByTimeResponse) Unmarshal added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeResponse) XXX_DiscardUnknown added in v0.0.7

func (m *QueryGetSpStoragePriceByTimeResponse) XXX_DiscardUnknown()

func (*QueryGetSpStoragePriceByTimeResponse) XXX_Marshal added in v0.0.7

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

func (*QueryGetSpStoragePriceByTimeResponse) XXX_Merge added in v0.0.7

func (*QueryGetSpStoragePriceByTimeResponse) XXX_Size added in v0.0.7

func (*QueryGetSpStoragePriceByTimeResponse) XXX_Unmarshal added in v0.0.7

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of GetStorageProviders items.
	StorageProviders(context.Context, *QueryStorageProvidersRequest) (*QueryStorageProvidersResponse, error)
	// get storage price of specific sp and time
	QueryGetSpStoragePriceByTime(context.Context, *QueryGetSpStoragePriceByTimeRequest) (*QueryGetSpStoragePriceByTimeResponse, error)
	// get secondary store price by time
	QueryGetSecondarySpStorePriceByTime(context.Context, *QueryGetSecondarySpStorePriceByTimeRequest) (*QueryGetSecondarySpStorePriceByTimeResponse, error)
	// Queries a storage provider with specify address
	StorageProvider(context.Context, *QueryStorageProviderRequest) (*QueryStorageProviderResponse, error)
}

QueryServer is the server API for Query service.

type QueryStorageProviderRequest added in v0.0.7

type QueryStorageProviderRequest struct {
	SpAddress string `protobuf:"bytes,1,opt,name=spAddress,proto3" json:"spAddress,omitempty"`
}

func (*QueryStorageProviderRequest) Descriptor added in v0.0.7

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

func (*QueryStorageProviderRequest) GetSpAddress added in v0.0.7

func (m *QueryStorageProviderRequest) GetSpAddress() string

func (*QueryStorageProviderRequest) Marshal added in v0.0.7

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

func (*QueryStorageProviderRequest) MarshalTo added in v0.0.7

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

func (*QueryStorageProviderRequest) MarshalToSizedBuffer added in v0.0.7

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

func (*QueryStorageProviderRequest) ProtoMessage added in v0.0.7

func (*QueryStorageProviderRequest) ProtoMessage()

func (*QueryStorageProviderRequest) Reset added in v0.0.7

func (m *QueryStorageProviderRequest) Reset()

func (*QueryStorageProviderRequest) Size added in v0.0.7

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

func (*QueryStorageProviderRequest) String added in v0.0.7

func (m *QueryStorageProviderRequest) String() string

func (*QueryStorageProviderRequest) Unmarshal added in v0.0.7

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

func (*QueryStorageProviderRequest) XXX_DiscardUnknown added in v0.0.7

func (m *QueryStorageProviderRequest) XXX_DiscardUnknown()

func (*QueryStorageProviderRequest) XXX_Marshal added in v0.0.7

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

func (*QueryStorageProviderRequest) XXX_Merge added in v0.0.7

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

func (*QueryStorageProviderRequest) XXX_Size added in v0.0.7

func (m *QueryStorageProviderRequest) XXX_Size() int

func (*QueryStorageProviderRequest) XXX_Unmarshal added in v0.0.7

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

type QueryStorageProviderResponse added in v0.0.7

type QueryStorageProviderResponse struct {
	StorageProvider *StorageProvider `protobuf:"bytes,1,opt,name=storageProvider,proto3" json:"storageProvider,omitempty"`
}

func (*QueryStorageProviderResponse) Descriptor added in v0.0.7

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

func (*QueryStorageProviderResponse) GetStorageProvider added in v0.0.7

func (m *QueryStorageProviderResponse) GetStorageProvider() *StorageProvider

func (*QueryStorageProviderResponse) Marshal added in v0.0.7

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

func (*QueryStorageProviderResponse) MarshalTo added in v0.0.7

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

func (*QueryStorageProviderResponse) MarshalToSizedBuffer added in v0.0.7

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

func (*QueryStorageProviderResponse) ProtoMessage added in v0.0.7

func (*QueryStorageProviderResponse) ProtoMessage()

func (*QueryStorageProviderResponse) Reset added in v0.0.7

func (m *QueryStorageProviderResponse) Reset()

func (*QueryStorageProviderResponse) Size added in v0.0.7

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

func (*QueryStorageProviderResponse) String added in v0.0.7

func (*QueryStorageProviderResponse) Unmarshal added in v0.0.7

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

func (*QueryStorageProviderResponse) XXX_DiscardUnknown added in v0.0.7

func (m *QueryStorageProviderResponse) XXX_DiscardUnknown()

func (*QueryStorageProviderResponse) XXX_Marshal added in v0.0.7

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

func (*QueryStorageProviderResponse) XXX_Merge added in v0.0.7

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

func (*QueryStorageProviderResponse) XXX_Size added in v0.0.7

func (m *QueryStorageProviderResponse) XXX_Size() int

func (*QueryStorageProviderResponse) XXX_Unmarshal added in v0.0.7

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

type QueryStorageProvidersRequest

type QueryStorageProvidersRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

this line is used by starport scaffolding # 3

func (*QueryStorageProvidersRequest) Descriptor

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

func (*QueryStorageProvidersRequest) GetPagination

func (m *QueryStorageProvidersRequest) GetPagination() *query.PageRequest

func (*QueryStorageProvidersRequest) Marshal

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

func (*QueryStorageProvidersRequest) MarshalTo

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

func (*QueryStorageProvidersRequest) MarshalToSizedBuffer

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

func (*QueryStorageProvidersRequest) ProtoMessage

func (*QueryStorageProvidersRequest) ProtoMessage()

func (*QueryStorageProvidersRequest) Reset

func (m *QueryStorageProvidersRequest) Reset()

func (*QueryStorageProvidersRequest) Size

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

func (*QueryStorageProvidersRequest) String

func (*QueryStorageProvidersRequest) Unmarshal

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

func (*QueryStorageProvidersRequest) XXX_DiscardUnknown

func (m *QueryStorageProvidersRequest) XXX_DiscardUnknown()

func (*QueryStorageProvidersRequest) XXX_Marshal

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

func (*QueryStorageProvidersRequest) XXX_Merge

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

func (*QueryStorageProvidersRequest) XXX_Size

func (m *QueryStorageProvidersRequest) XXX_Size() int

func (*QueryStorageProvidersRequest) XXX_Unmarshal

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

type QueryStorageProvidersResponse

type QueryStorageProvidersResponse struct {
	Sps []*StorageProvider `protobuf:"bytes,1,rep,name=sps,proto3" json:"sps,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryStorageProvidersResponse) Descriptor

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

func (*QueryStorageProvidersResponse) GetPagination

func (m *QueryStorageProvidersResponse) GetPagination() *query.PageResponse

func (*QueryStorageProvidersResponse) GetSps

func (*QueryStorageProvidersResponse) Marshal

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

func (*QueryStorageProvidersResponse) MarshalTo

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

func (*QueryStorageProvidersResponse) MarshalToSizedBuffer

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

func (*QueryStorageProvidersResponse) ProtoMessage

func (*QueryStorageProvidersResponse) ProtoMessage()

func (*QueryStorageProvidersResponse) Reset

func (m *QueryStorageProvidersResponse) Reset()

func (*QueryStorageProvidersResponse) Size

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

func (*QueryStorageProvidersResponse) String

func (*QueryStorageProvidersResponse) Unmarshal

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

func (*QueryStorageProvidersResponse) XXX_DiscardUnknown

func (m *QueryStorageProvidersResponse) XXX_DiscardUnknown()

func (*QueryStorageProvidersResponse) XXX_Marshal

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

func (*QueryStorageProvidersResponse) XXX_Merge

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

func (*QueryStorageProvidersResponse) XXX_Size

func (m *QueryStorageProvidersResponse) XXX_Size() int

func (*QueryStorageProvidersResponse) XXX_Unmarshal

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

type RewardInfo

type RewardInfo struct {
	Address string     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Amount  types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

func (*RewardInfo) Descriptor

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

func (*RewardInfo) GetAddress

func (m *RewardInfo) GetAddress() string

func (*RewardInfo) GetAmount

func (m *RewardInfo) GetAmount() types.Coin

func (*RewardInfo) Marshal

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

func (*RewardInfo) MarshalTo

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

func (*RewardInfo) MarshalToSizedBuffer

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

func (*RewardInfo) ProtoMessage

func (*RewardInfo) ProtoMessage()

func (*RewardInfo) Reset

func (m *RewardInfo) Reset()

func (*RewardInfo) Size

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

func (*RewardInfo) String

func (m *RewardInfo) String() string

func (*RewardInfo) Unmarshal

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

func (*RewardInfo) XXX_DiscardUnknown

func (m *RewardInfo) XXX_DiscardUnknown()

func (*RewardInfo) XXX_Marshal

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

func (*RewardInfo) XXX_Merge

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

func (*RewardInfo) XXX_Size

func (m *RewardInfo) XXX_Size() int

func (*RewardInfo) XXX_Unmarshal

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

type SecondarySpStorePrice added in v0.0.7

type SecondarySpStorePrice struct {
	// update time, unix timestamp in seconds
	UpdateTimeSec int64 `protobuf:"varint,1,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
	// store price, in bnb wei per charge byte
	StorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */
}

global secondary sp store price, the price for all secondary sps

func (*SecondarySpStorePrice) Descriptor added in v0.0.7

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

func (*SecondarySpStorePrice) GetUpdateTimeSec added in v0.0.10

func (m *SecondarySpStorePrice) GetUpdateTimeSec() int64

func (*SecondarySpStorePrice) Marshal added in v0.0.7

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

func (*SecondarySpStorePrice) MarshalTo added in v0.0.7

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

func (*SecondarySpStorePrice) MarshalToSizedBuffer added in v0.0.7

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

func (*SecondarySpStorePrice) ProtoMessage added in v0.0.7

func (*SecondarySpStorePrice) ProtoMessage()

func (*SecondarySpStorePrice) Reset added in v0.0.7

func (m *SecondarySpStorePrice) Reset()

func (*SecondarySpStorePrice) Size added in v0.0.7

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

func (*SecondarySpStorePrice) String added in v0.0.7

func (m *SecondarySpStorePrice) String() string

func (*SecondarySpStorePrice) Unmarshal added in v0.0.7

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

func (*SecondarySpStorePrice) XXX_DiscardUnknown added in v0.0.7

func (m *SecondarySpStorePrice) XXX_DiscardUnknown()

func (*SecondarySpStorePrice) XXX_Marshal added in v0.0.7

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

func (*SecondarySpStorePrice) XXX_Merge added in v0.0.7

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

func (*SecondarySpStorePrice) XXX_Size added in v0.0.7

func (m *SecondarySpStorePrice) XXX_Size() int

func (*SecondarySpStorePrice) XXX_Unmarshal added in v0.0.7

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

type SpStoragePrice added in v0.0.7

type SpStoragePrice struct {
	// sp address
	SpAddress string `protobuf:"bytes,1,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// update time, unix timestamp in seconds
	UpdateTimeSec int64 `protobuf:"varint,2,opt,name=update_time_sec,json=updateTimeSec,proto3" json:"update_time_sec,omitempty"`
	// read price, in bnb wei per charge byte
	ReadPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
	// free read quota, in byte
	FreeReadQuota uint64 `protobuf:"varint,4,opt,name=free_read_quota,json=freeReadQuota,proto3" json:"free_read_quota,omitempty"`
	// store price, in bnb wei per charge byte
	StorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */
}

storage price of a specific sp

func (*SpStoragePrice) Descriptor added in v0.0.7

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

func (*SpStoragePrice) GetFreeReadQuota added in v0.0.7

func (m *SpStoragePrice) GetFreeReadQuota() uint64

func (*SpStoragePrice) GetSpAccAddress added in v0.0.10

func (s *SpStoragePrice) GetSpAccAddress() sdk.AccAddress

func (*SpStoragePrice) GetSpAddress added in v0.0.7

func (m *SpStoragePrice) GetSpAddress() string

func (*SpStoragePrice) GetUpdateTimeSec added in v0.0.10

func (m *SpStoragePrice) GetUpdateTimeSec() int64

func (*SpStoragePrice) Marshal added in v0.0.7

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

func (*SpStoragePrice) MarshalTo added in v0.0.7

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

func (*SpStoragePrice) MarshalToSizedBuffer added in v0.0.7

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

func (*SpStoragePrice) ProtoMessage added in v0.0.7

func (*SpStoragePrice) ProtoMessage()

func (*SpStoragePrice) Reset added in v0.0.7

func (m *SpStoragePrice) Reset()

func (*SpStoragePrice) Size added in v0.0.7

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

func (*SpStoragePrice) String added in v0.0.7

func (m *SpStoragePrice) String() string

func (*SpStoragePrice) Unmarshal added in v0.0.7

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

func (*SpStoragePrice) XXX_DiscardUnknown added in v0.0.7

func (m *SpStoragePrice) XXX_DiscardUnknown()

func (*SpStoragePrice) XXX_Marshal added in v0.0.7

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

func (*SpStoragePrice) XXX_Merge added in v0.0.7

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

func (*SpStoragePrice) XXX_Size added in v0.0.7

func (m *SpStoragePrice) XXX_Size() int

func (*SpStoragePrice) XXX_Unmarshal added in v0.0.7

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

type Status

type Status int32

Status is the status of a storage provider.

const (
	STATUS_IN_SERVICE       Status = 0
	STATUS_IN_JAILED        Status = 1
	STATUS_GRACEFUL_EXITING Status = 2
	STATUS_OUT_OF_SERVICE   Status = 3
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

type StorageProvider

type StorageProvider struct {
	// operator_address defines the account address of the storage provider's operator; It also is the unique index key of sp.
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// funding_address defines one of the storage provider's accounts which is used to deposit and reward.
	FundingAddress string `protobuf:"bytes,2,opt,name=funding_address,json=fundingAddress,proto3" json:"funding_address,omitempty"`
	// seal_address defines one of the storage provider's accounts which is used to SealObject
	SealAddress string `protobuf:"bytes,3,opt,name=seal_address,json=sealAddress,proto3" json:"seal_address,omitempty"`
	// approval_address defines one of the storage provider's accounts which is used to approve use's createBucket/createObject request
	ApprovalAddress string `protobuf:"bytes,4,opt,name=approval_address,json=approvalAddress,proto3" json:"approval_address,omitempty"`
	// gc_address defines one of the storage provider's accounts which is used for gc purpose.
	GcAddress string `protobuf:"bytes,5,opt,name=gc_address,json=gcAddress,proto3" json:"gc_address,omitempty"`
	// total_deposit defines the number of tokens deposited by this storage provider for staking.
	TotalDeposit github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */
	// status defines the current service status of this storage provider
	Status Status `protobuf:"varint,7,opt,name=status,proto3,enum=greenfield.sp.Status" json:"status,omitempty"`
	// endpoint define the storage provider's network service address
	Endpoint string `protobuf:"bytes,8,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// description defines the description terms for the storage provider.
	Description Description `protobuf:"bytes,9,opt,name=description,proto3" json:"description"`
}

StorageProvider defines the meta info of storage provider

func MustUnmarshalStorageProvider

func MustUnmarshalStorageProvider(cdc codec.BinaryCodec, value []byte) *StorageProvider

func NewStorageProvider

func NewStorageProvider(
	operator sdk.AccAddress, fundingAddress sdk.AccAddress,
	sealAddress sdk.AccAddress, approvalAddress sdk.AccAddress, gcAddress sdk.AccAddress,
	totalDeposit math.Int, endpoint string,
	description Description) (StorageProvider, error)

NewStorageProvider constructs a new StorageProvider

func UnmarshalStorageProvider

func UnmarshalStorageProvider(cdc codec.BinaryCodec, value []byte) (sp *StorageProvider, err error)

func (*StorageProvider) Descriptor

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

func (*StorageProvider) GetApprovalAccAddress added in v0.0.7

func (sp *StorageProvider) GetApprovalAccAddress() sdk.AccAddress

func (*StorageProvider) GetApprovalAddress

func (m *StorageProvider) GetApprovalAddress() string

func (*StorageProvider) GetDescription

func (m *StorageProvider) GetDescription() Description

func (*StorageProvider) GetEndpoint

func (m *StorageProvider) GetEndpoint() string

func (*StorageProvider) GetFundingAccAddress

func (sp *StorageProvider) GetFundingAccAddress() sdk.AccAddress

func (*StorageProvider) GetFundingAddress

func (m *StorageProvider) GetFundingAddress() string

func (*StorageProvider) GetGcAccAddress added in v0.1.2

func (sp *StorageProvider) GetGcAccAddress() sdk.AccAddress

func (*StorageProvider) GetGcAddress added in v0.1.2

func (m *StorageProvider) GetGcAddress() string

func (*StorageProvider) GetOperator

func (sp *StorageProvider) GetOperator() sdk.AccAddress

func (*StorageProvider) GetOperatorAddress

func (m *StorageProvider) GetOperatorAddress() string

func (*StorageProvider) GetSealAccAddress added in v0.0.7

func (sp *StorageProvider) GetSealAccAddress() sdk.AccAddress

func (*StorageProvider) GetSealAddress

func (m *StorageProvider) GetSealAddress() string

func (*StorageProvider) GetStatus

func (m *StorageProvider) GetStatus() Status

func (*StorageProvider) GetTotalDeposit

func (sp *StorageProvider) GetTotalDeposit() math.Int

func (*StorageProvider) IsInService

func (sp *StorageProvider) IsInService() bool

func (*StorageProvider) Marshal

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

func (*StorageProvider) MarshalTo

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

func (*StorageProvider) MarshalToSizedBuffer

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

func (*StorageProvider) ProtoMessage

func (*StorageProvider) ProtoMessage()

func (*StorageProvider) Reset

func (m *StorageProvider) Reset()

func (*StorageProvider) Size

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

func (*StorageProvider) String

func (m *StorageProvider) String() string

func (*StorageProvider) Unmarshal

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

func (*StorageProvider) XXX_DiscardUnknown

func (m *StorageProvider) XXX_DiscardUnknown()

func (*StorageProvider) XXX_Marshal

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

func (*StorageProvider) XXX_Merge

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

func (*StorageProvider) XXX_Size

func (m *StorageProvider) XXX_Size() int

func (*StorageProvider) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateStorageProvider

func (*UnimplementedMsgServer) Deposit

func (*UnimplementedMsgServer) EditStorageProvider

func (*UnimplementedMsgServer) UpdateParams added in v0.2.0

func (*UnimplementedMsgServer) UpdateSpStoragePrice added in v0.0.7

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) QueryGetSecondarySpStorePriceByTime added in v0.0.7

func (*UnimplementedQueryServer) QueryGetSpStoragePriceByTime added in v0.0.7

func (*UnimplementedQueryServer) StorageProvider added in v0.0.7

func (*UnimplementedQueryServer) StorageProviders

Jump to

Keyboard shortcuts

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