types

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: AGPL-3.0 Imports: 43 Imported by: 25

Documentation

Overview

Package 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"
	TypeMsgUpdateParams                = "update_params"
	TypeMsgUpdateStorageProviderStatus = "update_storage_provider_status"
)
View Source
const (
	// Default deposit denom
	DefaultDepositDenom = "BNB"
	// DefaultNumOfHistoricalBlocksForMaintenanceRecords The oldest block from current will be kept of for SP maintenance records
	DefaultNumOfHistoricalBlocksForMaintenanceRecords = 864000
	// DefaultMaintenanceDurationQuota is the total allowed time for a SP to be in Maintenance mode within DefaultNumOfHistoricalBlocksForMaintenanceRecords
	DefaultMaintenanceDurationQuota = 21600 // 6 hour
	// DefaultNumOfLockUpBlocksForMaintenance defines blocks difference which Sp update itself to Maintenance mode is allowed
	DefaultNumOfLockUpBlocksForMaintenance = 21600
	// DefaultUpdateGlobalPriceInterval defines the default time duration for updating global storage price
	DefaultUpdateGlobalPriceInterval uint64 = 0 // 0 means the global price will be updated at the first day of each month
	// UpdatePriceDisallowedDays defines the days, counting backward from the end of a month, in which sp is not allowed to update its price
	DefaultUpdatePriceDisallowedDays uint32 = 2
)

SP params default values

View Source
const (
	MaxMonikerLength                      = 70
	MaxIdentityLength                     = 3000
	MaxWebsiteLength                      = 140
	MaxDetailsLength                      = 280
	MaintenanceRecordsGCFrequencyInBlocks = 100
)
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 is not in service")
	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")
	ErrStorageProviderExitFailed            = errors.Register(ModuleName, 13, "StorageProvider exit failed.")
	ErrStorageProviderInvalidBlsKey         = errors.Register(ModuleName, 14, "StorageProvider bls pubkey is invalid")
	ErrStorageProviderBlsKeyExists          = errors.Register(ModuleName, 15, "StorageProvider already exist for this bls pubkey; must use new bls pubkey")
	ErrStorageProviderStatusUpdateNotAllow  = errors.Register(ModuleName, 16, "StorageProvider status is not allow to change")
	ErrStorageProviderMaintenanceAddrExists = errors.Register(ModuleName, 17, "StorageProvider already exist for this maintenance address; must use new StorageProvider maintenance address.")
	ErrStorageProviderPriceUpdateNotAllow   = errors.Register(ModuleName, 18, "StorageProvider update price is disallowed")

	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
	StorageProviderByOperatorAddrKey = []byte{0x23} // prefix for each key to a storage provider index, by operator address
	StorageProviderByFundingAddrKey  = []byte{0x24} // prefix for each key to a storage provider index, by funding address
	StorageProviderBySealAddrKey     = []byte{0x25} // prefix for each key to a storage provider index, by seal address
	StorageProviderByApprovalAddrKey = []byte{0x26} // prefix for each key to a storage provider index, by approval address
	StorageProviderByGcAddrKey       = []byte{0x27} // prefix for each key to a storage provider index, by gc address
	SpStoragePriceKeyPrefix          = []byte{0x28}
	GlobalSpStorePriceKeyPrefix      = []byte{0x29}
	StorageProviderByBlsPubKeyKey    = []byte{0x30} // prefix for each key to a storage provider index, by bls pub key
	StorageProviderSequenceKey       = []byte{0x31}

	StorageProviderMaintenanceRecordPrefix = []byte{0x41}
)
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 (
	KeyDepositDenom                               = []byte("DepositDenom")
	KeyMinDeposit                                 = []byte("MinDeposit")
	KeySecondarySpStorePriceRatio                 = []byte("SecondarySpStorePriceRatio")
	KeyNumOfHistoricalBlocksForMaintenanceRecords = []byte("NumOfHistoricalBlocksForMaintenanceRecords")
	KeyMaintenanceDurationQuota                   = []byte("MaintenanceDurationQuota")
	KeyNumOfLockUpBlocksForMaintenance            = []byte("NumOfLockUpBlocksForMaintenance")
	KeyUpdateGlobalPriceInterval                  = []byte("UpdateGlobalPriceInterval")
	KeyUpdatePriceDisallowedDays                  = []byte("UpdatePriceDisallowedDays")
)
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_IN_MAINTENANCE",
}
View Source
var Status_value = map[string]int32{
	"STATUS_IN_SERVICE":       0,
	"STATUS_IN_JAILED":        1,
	"STATUS_GRACEFUL_EXITING": 2,
	"STATUS_IN_MAINTENANCE":   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 GetStorageProviderByBlsKeyKey added in v0.2.3

func GetStorageProviderByBlsKeyKey(blsPk []byte) []byte

GetStorageProviderByBlsKeyKey creates the key for the storage provider with bls pub key

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

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

func GetStorageProviderByOperatorAddrKey added in v0.2.3

func GetStorageProviderByOperatorAddrKey(operatorAddr sdk.AccAddress) []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(id []byte) []byte

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

func GetStorageProviderMaintenanceRecordsKey added in v0.2.4

func GetStorageProviderMaintenanceRecordsKey(spAddr sdk.AccAddress) []byte

func GlobalSpStorePriceKey added in v0.2.4

func GlobalSpStorePriceKey(timestamp int64) []byte

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 ParseGlobalSpStorePriceKey added in v0.2.4

func ParseGlobalSpStorePriceKey(key []byte) (timestamp int64)

func ParseSpStoragePriceKey added in v0.0.7

func ParseSpStoragePriceKey(key []byte) (spId uint32)

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 SpStoragePriceKey added in v0.0.7

func SpStoragePriceKey(spId uint32) []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 storage provider'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_id defines the identifier of storage provider which generated on-chain
	SpId uint32 `protobuf:"varint,1,opt,name=sp_id,json=spId,proto3" json:"sp_id,omitempty"`
	// sp_address is the operator address of the storage provider
	SpAddress string `protobuf:"bytes,2,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,3,opt,name=funding_address,json=fundingAddress,proto3" json:"funding_address,omitempty"`
	// 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"`
	// maintenance_address defines one of the storage provider's accounts which is used for testing while in maintenance mode
	MaintenanceAddress string `protobuf:"bytes,7,opt,name=maintenance_address,json=maintenanceAddress,proto3" json:"maintenance_address,omitempty"`
	// endpoint is the domain name address used by SP to provide storage services
	Endpoint string `protobuf:"bytes,8,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,9,opt,name=total_deposit,json=totalDeposit,proto3" json:"total_deposit,omitempty"`
	// status defines the status of the storage provider
	Status Status `protobuf:"varint,10,opt,name=status,proto3,enum=greenfield.sp.Status" json:"status,omitempty"`
	// description defines the description terms for the storage provider
	Description Description `protobuf:"bytes,11,opt,name=description,proto3" json:"description"`
	// bls_key defines the bls pub key owned by storage provider used when sealing object and completing migration
	BlsKey string `protobuf:"bytes,12,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
}

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) GetBlsKey added in v0.2.3

func (m *EventCreateStorageProvider) GetBlsKey() 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) GetMaintenanceAddress added in v0.2.4

func (m *EventCreateStorageProvider) GetMaintenanceAddress() string

func (*EventCreateStorageProvider) GetSealAddress

func (m *EventCreateStorageProvider) GetSealAddress() string

func (*EventCreateStorageProvider) GetSpAddress

func (m *EventCreateStorageProvider) GetSpAddress() string

func (*EventCreateStorageProvider) GetSpId added in v0.2.3

func (m *EventCreateStorageProvider) GetSpId() uint32

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_id defines the identifier of storage provider which generated on-chain
	SpId uint32 `protobuf:"varint,1,opt,name=sp_id,json=spId,proto3" json:"sp_id,omitempty"`
	// sp_address is the operator address of the storage provider
	SpAddress string `protobuf:"bytes,2,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// endpoint is the service endpoint of the storage provider
	Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// description defines the description terms for the storage provider
	Description Description `protobuf:"bytes,4,opt,name=description,proto3" json:"description"`
	// seal_address is the account address for SealObject Tx
	SealAddress string `protobuf:"bytes,5,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,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"`
	// maintenance_address defines one of the storage provider's accounts which is used for testing while in maintenance mode
	MaintenanceAddress string `protobuf:"bytes,8,opt,name=maintenance_address,json=maintenanceAddress,proto3" json:"maintenance_address,omitempty"`
	// bls_key defines the bls pub key owned by storage provider used when sealing object
	BlsKey string `protobuf:"bytes,9,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,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) GetBlsKey added in v0.2.3

func (m *EventEditStorageProvider) GetBlsKey() 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) GetMaintenanceAddress added in v0.2.4

func (m *EventEditStorageProvider) GetMaintenanceAddress() 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) GetSpId added in v0.2.3

func (m *EventEditStorageProvider) GetSpId() uint32

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 EventGlobalSpStorePriceUpdate added in v0.2.4

type EventGlobalSpStorePriceUpdate struct {
	// update time, in unix timestamp
	UpdateTimeSec int64 `protobuf:"varint,1,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 */
	// primary store price, in bnb wei per charge byte
	PrimaryStorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 154-byte string literal not displayed */
	// secondary store price, in bnb wei per charge byte
	SecondaryStorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 160-byte string literal not displayed */
}

func (*EventGlobalSpStorePriceUpdate) Descriptor added in v0.2.4

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

func (*EventGlobalSpStorePriceUpdate) GetUpdateTimeSec added in v0.2.4

func (m *EventGlobalSpStorePriceUpdate) GetUpdateTimeSec() int64

func (*EventGlobalSpStorePriceUpdate) Marshal added in v0.2.4

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

func (*EventGlobalSpStorePriceUpdate) MarshalTo added in v0.2.4

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

func (*EventGlobalSpStorePriceUpdate) MarshalToSizedBuffer added in v0.2.4

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

func (*EventGlobalSpStorePriceUpdate) ProtoMessage added in v0.2.4

func (*EventGlobalSpStorePriceUpdate) ProtoMessage()

func (*EventGlobalSpStorePriceUpdate) Reset added in v0.2.4

func (m *EventGlobalSpStorePriceUpdate) Reset()

func (*EventGlobalSpStorePriceUpdate) Size added in v0.2.4

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

func (*EventGlobalSpStorePriceUpdate) String added in v0.2.4

func (*EventGlobalSpStorePriceUpdate) Unmarshal added in v0.2.4

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

func (*EventGlobalSpStorePriceUpdate) XXX_DiscardUnknown added in v0.2.4

func (m *EventGlobalSpStorePriceUpdate) XXX_DiscardUnknown()

func (*EventGlobalSpStorePriceUpdate) XXX_Marshal added in v0.2.4

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

func (*EventGlobalSpStorePriceUpdate) XXX_Merge added in v0.2.4

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

func (*EventGlobalSpStorePriceUpdate) XXX_Size added in v0.2.4

func (m *EventGlobalSpStorePriceUpdate) XXX_Size() int

func (*EventGlobalSpStorePriceUpdate) XXX_Unmarshal added in v0.2.4

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

type EventSpStoragePriceUpdate added in v0.0.7

type EventSpStoragePriceUpdate struct {
	// sp id
	SpId uint32 `protobuf:"varint,1,opt,name=sp_id,json=spId,proto3" json:"sp_id,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) GetSpId added in v0.2.3

func (m *EventSpStoragePriceUpdate) GetSpId() uint32

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 EventUpdateStorageProviderStatus added in v0.2.4

type EventUpdateStorageProviderStatus struct {
	// sp_id defines the identifier of storage provider which generated on-chain
	SpId uint32 `protobuf:"varint,1,opt,name=sp_id,json=spId,proto3" json:"sp_id,omitempty"`
	// sp_address is the operator address of the storage provider
	SpAddress string `protobuf:"bytes,2,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// pre status
	PreStatus string `protobuf:"bytes,3,opt,name=pre_status,json=preStatus,proto3" json:"pre_status,omitempty"`
	// new status
	NewStatus string `protobuf:"bytes,4,opt,name=new_status,json=newStatus,proto3" json:"new_status,omitempty"`
}

EventUpdateStorageProviderStatus is emitted when the SP update its status successfully

func (*EventUpdateStorageProviderStatus) Descriptor added in v0.2.4

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

func (*EventUpdateStorageProviderStatus) GetNewStatus added in v0.2.4

func (m *EventUpdateStorageProviderStatus) GetNewStatus() string

func (*EventUpdateStorageProviderStatus) GetPreStatus added in v0.2.4

func (m *EventUpdateStorageProviderStatus) GetPreStatus() string

func (*EventUpdateStorageProviderStatus) GetSpAddress added in v0.2.4

func (m *EventUpdateStorageProviderStatus) GetSpAddress() string

func (*EventUpdateStorageProviderStatus) GetSpId added in v0.2.4

func (*EventUpdateStorageProviderStatus) Marshal added in v0.2.4

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

func (*EventUpdateStorageProviderStatus) MarshalTo added in v0.2.4

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

func (*EventUpdateStorageProviderStatus) MarshalToSizedBuffer added in v0.2.4

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

func (*EventUpdateStorageProviderStatus) ProtoMessage added in v0.2.4

func (*EventUpdateStorageProviderStatus) ProtoMessage()

func (*EventUpdateStorageProviderStatus) Reset added in v0.2.4

func (*EventUpdateStorageProviderStatus) Size added in v0.2.4

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

func (*EventUpdateStorageProviderStatus) String added in v0.2.4

func (*EventUpdateStorageProviderStatus) Unmarshal added in v0.2.4

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

func (*EventUpdateStorageProviderStatus) XXX_DiscardUnknown added in v0.2.4

func (m *EventUpdateStorageProviderStatus) XXX_DiscardUnknown()

func (*EventUpdateStorageProviderStatus) XXX_Marshal added in v0.2.4

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

func (*EventUpdateStorageProviderStatus) XXX_Merge added in v0.2.4

func (*EventUpdateStorageProviderStatus) XXX_Size added in v0.2.4

func (m *EventUpdateStorageProviderStatus) XXX_Size() int

func (*EventUpdateStorageProviderStatus) XXX_Unmarshal added in v0.2.4

func (m *EventUpdateStorageProviderStatus) 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 GlobalSpStorePrice added in v0.2.4

type GlobalSpStorePrice 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"`
	// read price, in bnb wei per charge byte
	ReadPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 128-byte string literal not displayed */
	// primary store price, in bnb wei per charge byte
	PrimaryStorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 154-byte string literal not displayed */
	// secondary store price, in bnb wei per charge byte
	SecondaryStorePrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 160-byte string literal not displayed */
}

global sp store price, the price for all sps

func (*GlobalSpStorePrice) Descriptor added in v0.2.4

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

func (*GlobalSpStorePrice) GetUpdateTimeSec added in v0.2.4

func (m *GlobalSpStorePrice) GetUpdateTimeSec() int64

func (*GlobalSpStorePrice) Marshal added in v0.2.4

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

func (*GlobalSpStorePrice) MarshalTo added in v0.2.4

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

func (*GlobalSpStorePrice) MarshalToSizedBuffer added in v0.2.4

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

func (*GlobalSpStorePrice) ProtoMessage added in v0.2.4

func (*GlobalSpStorePrice) ProtoMessage()

func (*GlobalSpStorePrice) Reset added in v0.2.4

func (m *GlobalSpStorePrice) Reset()

func (*GlobalSpStorePrice) Size added in v0.2.4

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

func (*GlobalSpStorePrice) String added in v0.2.4

func (m *GlobalSpStorePrice) String() string

func (*GlobalSpStorePrice) Unmarshal added in v0.2.4

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

func (*GlobalSpStorePrice) XXX_DiscardUnknown added in v0.2.4

func (m *GlobalSpStorePrice) XXX_DiscardUnknown()

func (*GlobalSpStorePrice) XXX_Marshal added in v0.2.4

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

func (*GlobalSpStorePrice) XXX_Merge added in v0.2.4

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

func (*GlobalSpStorePrice) XXX_Size added in v0.2.4

func (m *GlobalSpStorePrice) XXX_Size() int

func (*GlobalSpStorePrice) XXX_Unmarshal added in v0.2.4

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

type MaintenanceRecord added in v0.2.4

type MaintenanceRecord struct {
	// block height that request to be in Maintenance mode
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// request duration
	RequestDuration int64 `protobuf:"varint,2,opt,name=request_duration,json=requestDuration,proto3" json:"request_duration,omitempty"`
	// actual duration
	ActualDuration int64 `protobuf:"varint,3,opt,name=actual_duration,json=actualDuration,proto3" json:"actual_duration,omitempty"`
	// request timestamp
	RequestAt int64 `protobuf:"varint,4,opt,name=request_at,json=requestAt,proto3" json:"request_at,omitempty"`
}

MaintenanceRecord is to keep track of every time a sp request to be in Maintenance mode

func (*MaintenanceRecord) Descriptor added in v0.2.4

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

func (*MaintenanceRecord) GetActualDuration added in v0.2.4

func (m *MaintenanceRecord) GetActualDuration() int64

func (*MaintenanceRecord) GetHeight added in v0.2.4

func (m *MaintenanceRecord) GetHeight() int64

func (*MaintenanceRecord) GetRequestAt added in v0.2.4

func (m *MaintenanceRecord) GetRequestAt() int64

func (*MaintenanceRecord) GetRequestDuration added in v0.2.4

func (m *MaintenanceRecord) GetRequestDuration() int64

func (*MaintenanceRecord) Marshal added in v0.2.4

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

func (*MaintenanceRecord) MarshalTo added in v0.2.4

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

func (*MaintenanceRecord) MarshalToSizedBuffer added in v0.2.4

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

func (*MaintenanceRecord) ProtoMessage added in v0.2.4

func (*MaintenanceRecord) ProtoMessage()

func (*MaintenanceRecord) Reset added in v0.2.4

func (m *MaintenanceRecord) Reset()

func (*MaintenanceRecord) Size added in v0.2.4

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

func (*MaintenanceRecord) String added in v0.2.4

func (m *MaintenanceRecord) String() string

func (*MaintenanceRecord) Unmarshal added in v0.2.4

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

func (*MaintenanceRecord) XXX_DiscardUnknown added in v0.2.4

func (m *MaintenanceRecord) XXX_DiscardUnknown()

func (*MaintenanceRecord) XXX_Marshal added in v0.2.4

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

func (*MaintenanceRecord) XXX_Merge added in v0.2.4

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

func (*MaintenanceRecord) XXX_Size added in v0.2.4

func (m *MaintenanceRecord) XXX_Size() int

func (*MaintenanceRecord) XXX_Unmarshal added in v0.2.4

func (m *MaintenanceRecord) 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(ctx types.Context, addr types.AccAddress) types0.AccountI

GetAccount mocks base method.

func (*MockAccountKeeper) GetModuleAccount added in v0.2.0

func (m *MockAccountKeeper) GetModuleAccount(ctx types.Context, moduleName string) types0.ModuleAccountI

GetModuleAccount mocks base method.

func (*MockAccountKeeper) GetModuleAddress added in v0.2.0

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

GetModuleAddress mocks base method.

func (*MockAccountKeeper) IterateAccounts added in v0.2.0

func (m *MockAccountKeeper) IterateAccounts(ctx types.Context, process 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(ctx, addr interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockAccountKeeperMockRecorder) GetModuleAccount added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call

GetModuleAccount indicates an expected call of GetModuleAccount.

func (*MockAccountKeeperMockRecorder) GetModuleAddress added in v0.2.0

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

GetModuleAddress indicates an expected call of GetModuleAddress.

func (*MockAccountKeeperMockRecorder) IterateAccounts added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process 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(ctx types.Context, grantee, granter types.AccAddress, msgType 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(ctx types.Context, grantee, granter types.AccAddress, msgType string) (authz.Grant, bool)

GetGrant mocks base method.

func (*MockAuthzKeeper) Update added in v0.2.0

func (m *MockAuthzKeeper) Update(ctx types.Context, grantee, granter types.AccAddress, updated 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(ctx, grantee, granter, msgType interface{}) *gomock.Call

DeleteGrant indicates an expected call of DeleteGrant.

func (*MockAuthzKeeperMockRecorder) GetGrant added in v0.2.0

func (mr *MockAuthzKeeperMockRecorder) GetGrant(ctx, grantee, granter, msgType interface{}) *gomock.Call

GetGrant indicates an expected call of GetGrant.

func (*MockAuthzKeeperMockRecorder) Update added in v0.2.0

func (mr *MockAuthzKeeperMockRecorder) Update(ctx, grantee, granter, updated 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(ctx types.Context, addr types.AccAddress) types.Coins

GetAllBalances mocks base method.

func (*MockBankKeeper) GetBalance added in v0.2.0

func (m *MockBankKeeper) GetBalance(ctx types.Context, addr types.AccAddress, denom string) types.Coin

GetBalance mocks base method.

func (*MockBankKeeper) LockedCoins added in v0.2.0

func (m *MockBankKeeper) LockedCoins(ctx types.Context, addr types.AccAddress) types.Coins

LockedCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromAccountToModule added in v0.2.0

func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, amt types.Coins) error

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount added in v0.2.0

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, amt types.Coins) error

SendCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) SpendableCoins added in v0.2.0

func (m *MockBankKeeper) SpendableCoins(ctx types.Context, addr 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(ctx, addr interface{}) *gomock.Call

GetAllBalances indicates an expected call of GetAllBalances.

func (*MockBankKeeperMockRecorder) GetBalance added in v0.2.0

func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance.

func (*MockBankKeeperMockRecorder) LockedCoins added in v0.2.0

func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr interface{}) *gomock.Call

LockedCoins indicates an expected call of LockedCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

func (*MockBankKeeperMockRecorder) SpendableCoins added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr 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)
	UpdateSpStatus(ctx context.Context, in *MsgUpdateStorageProviderStatus, opts ...grpc.CallOption) (*MsgUpdateStorageProviderStatusResponse, 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 storage provider.
	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"`
	// maintenance_address defines one of the storage provider's accounts which is used for testing while in maintenance mode
	MaintenanceAddress string `protobuf:"bytes,8,opt,name=maintenance_address,json=maintenanceAddress,proto3" json:"maintenance_address,omitempty"`
	// endpoint is the service address of the storage provider
	Endpoint string `protobuf:"bytes,9,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// deposit define the deposit token
	Deposit types.Coin `protobuf:"bytes,10,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,12,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 */
	// bls_key defines the bls pub key of the Storage provider for sealing object
	BlsKey   string `protobuf:"bytes,14,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	BlsProof string `protobuf:"bytes,15,opt,name=bls_proof,json=blsProof,proto3" json:"bls_proof,omitempty"`
}

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, maintenanceAddress sdk.AccAddress,
	description Description, endpoint string, deposit sdk.Coin, readPrice sdk.Dec, freeReadQuota uint64, storePrice sdk.Dec, blsKey, blsProof string) (*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 blsKey is the public key of bls private key, which is used for sealing object and completing migration signature. blsProof is the signature signed via bls private key on bls public key bytes

func (*MsgCreateStorageProvider) Descriptor

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

func (*MsgCreateStorageProvider) GetApprovalAddress

func (m *MsgCreateStorageProvider) GetApprovalAddress() string

func (*MsgCreateStorageProvider) GetBlsKey added in v0.2.3

func (m *MsgCreateStorageProvider) GetBlsKey() string

func (*MsgCreateStorageProvider) GetBlsProof added in v0.2.3

func (m *MsgCreateStorageProvider) GetBlsProof() 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) GetMaintenanceAddress added in v0.2.4

func (m *MsgCreateStorageProvider) GetMaintenanceAddress() 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"`
	// maintenance_address defines one of the storage provider's accounts which is used for testing while in maintenance mode
	MaintenanceAddress string `protobuf:"bytes,7,opt,name=maintenance_address,json=maintenanceAddress,proto3" json:"maintenance_address,omitempty"`
	// bls_key defines the bls pub key of the Storage provider for sealing object
	BlsKey   string `protobuf:"bytes,8,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
	BlsProof string `protobuf:"bytes,9,opt,name=bls_proof,json=blsProof,proto3" json:"bls_proof,omitempty"`
}

MsgEditStorageProvider defines a SDK message for editing an existing sp. TODO: use sp id to edit the storage provider.

func NewMsgEditStorageProvider

func NewMsgEditStorageProvider(spAddress sdk.AccAddress, endpoint string, description *Description,
	sealAddress sdk.AccAddress, approvalAddress sdk.AccAddress, gcAddress sdk.AccAddress, maintenanceAddress sdk.AccAddress, blsKey, blsProof string) *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) GetBlsKey added in v0.2.3

func (m *MsgEditStorageProvider) GetBlsKey() string

func (*MsgEditStorageProvider) GetBlsProof added in v0.2.3

func (m *MsgEditStorageProvider) GetBlsProof() 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) GetMaintenanceAddress added in v0.2.4

func (m *MsgEditStorageProvider) GetMaintenanceAddress() 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)
	UpdateSpStatus(context.Context, *MsgUpdateStorageProviderStatus) (*MsgUpdateStorageProviderStatusResponse, 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 MsgUpdateStorageProviderStatus added in v0.2.4

type MsgUpdateStorageProviderStatus struct {
	// sp_address defines the operator address
	SpAddress string `protobuf:"bytes,1,opt,name=sp_address,json=spAddress,proto3" json:"sp_address,omitempty"`
	// status defines the desired status be update to.
	Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=greenfield.sp.Status" json:"status,omitempty"`
	// duration defines the time requested in desired status
	Duration int64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
}

MsgUpdateStorageProviderStatus is used to update the status of a SP by itself

func NewMsgUpdateStorageProviderStatus added in v0.2.4

func NewMsgUpdateStorageProviderStatus(spAddress sdk.AccAddress, status Status, duration int64) *MsgUpdateStorageProviderStatus

NewMsgUpdateStorageProviderStatus creates a new MsgUpdateStorageProviderStatus instance

func (*MsgUpdateStorageProviderStatus) Descriptor added in v0.2.4

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

func (*MsgUpdateStorageProviderStatus) GetDuration added in v0.2.4

func (m *MsgUpdateStorageProviderStatus) GetDuration() int64

func (*MsgUpdateStorageProviderStatus) GetSignBytes added in v0.2.4

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

GetSignBytes returns the message bytes to sign over.

func (*MsgUpdateStorageProviderStatus) GetSigners added in v0.2.4

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

GetSigners implements the sdk.Msg interface.

func (*MsgUpdateStorageProviderStatus) GetSpAddress added in v0.2.4

func (m *MsgUpdateStorageProviderStatus) GetSpAddress() string

func (*MsgUpdateStorageProviderStatus) GetStatus added in v0.2.4

func (m *MsgUpdateStorageProviderStatus) GetStatus() Status

func (*MsgUpdateStorageProviderStatus) Marshal added in v0.2.4

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

func (*MsgUpdateStorageProviderStatus) MarshalTo added in v0.2.4

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

func (*MsgUpdateStorageProviderStatus) MarshalToSizedBuffer added in v0.2.4

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

func (*MsgUpdateStorageProviderStatus) ProtoMessage added in v0.2.4

func (*MsgUpdateStorageProviderStatus) ProtoMessage()

func (*MsgUpdateStorageProviderStatus) Reset added in v0.2.4

func (m *MsgUpdateStorageProviderStatus) Reset()

func (*MsgUpdateStorageProviderStatus) Route added in v0.2.4

Route implements the sdk.Msg interface.

func (*MsgUpdateStorageProviderStatus) Size added in v0.2.4

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

func (*MsgUpdateStorageProviderStatus) String added in v0.2.4

func (*MsgUpdateStorageProviderStatus) Type added in v0.2.4

Type implements the sdk.Msg interface.

func (*MsgUpdateStorageProviderStatus) Unmarshal added in v0.2.4

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

func (*MsgUpdateStorageProviderStatus) ValidateBasic added in v0.2.4

func (msg *MsgUpdateStorageProviderStatus) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgUpdateStorageProviderStatus) XXX_DiscardUnknown added in v0.2.4

func (m *MsgUpdateStorageProviderStatus) XXX_DiscardUnknown()

func (*MsgUpdateStorageProviderStatus) XXX_Marshal added in v0.2.4

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

func (*MsgUpdateStorageProviderStatus) XXX_Merge added in v0.2.4

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

func (*MsgUpdateStorageProviderStatus) XXX_Size added in v0.2.4

func (m *MsgUpdateStorageProviderStatus) XXX_Size() int

func (*MsgUpdateStorageProviderStatus) XXX_Unmarshal added in v0.2.4

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

type MsgUpdateStorageProviderStatusResponse added in v0.2.4

type MsgUpdateStorageProviderStatusResponse struct {
}

MsgUpdateStorageProviderStatusResponse defines the MsgUpdateStorageProviderStatus response type.

func (*MsgUpdateStorageProviderStatusResponse) Descriptor added in v0.2.4

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

func (*MsgUpdateStorageProviderStatusResponse) Marshal added in v0.2.4

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

func (*MsgUpdateStorageProviderStatusResponse) MarshalTo added in v0.2.4

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

func (*MsgUpdateStorageProviderStatusResponse) MarshalToSizedBuffer added in v0.2.4

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

func (*MsgUpdateStorageProviderStatusResponse) ProtoMessage added in v0.2.4

func (*MsgUpdateStorageProviderStatusResponse) Reset added in v0.2.4

func (*MsgUpdateStorageProviderStatusResponse) Size added in v0.2.4

func (*MsgUpdateStorageProviderStatusResponse) String added in v0.2.4

func (*MsgUpdateStorageProviderStatusResponse) Unmarshal added in v0.2.4

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

func (*MsgUpdateStorageProviderStatusResponse) XXX_DiscardUnknown added in v0.2.4

func (m *MsgUpdateStorageProviderStatusResponse) XXX_DiscardUnknown()

func (*MsgUpdateStorageProviderStatusResponse) XXX_Marshal added in v0.2.4

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

func (*MsgUpdateStorageProviderStatusResponse) XXX_Merge added in v0.2.4

func (*MsgUpdateStorageProviderStatusResponse) XXX_Size added in v0.2.4

func (*MsgUpdateStorageProviderStatusResponse) XXX_Unmarshal added in v0.2.4

func (m *MsgUpdateStorageProviderStatusResponse) 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 */
	// previous blocks that be traced back to for maintenance_records
	NumOfHistoricalBlocksForMaintenanceRecords int64 `` /* 254-byte string literal not displayed */
	// the max duration that a SP can be in_maintenance within num_of_historical_blocks_for_maintenance_records
	MaintenanceDurationQuota int64 `` /* 170-byte string literal not displayed */
	// the number of blocks to be wait for sp to be in maintenance mode again if already requested
	NumOfLockupBlocksForMaintenance int64 `` /* 207-byte string literal not displayed */
	// the time interval to update global storage price, if it is not set then the price will be updated at the first block of each natural month
	UpdateGlobalPriceInterval uint64 `` /* 177-byte string literal not displayed */
	// the days counting backwards from end of a month in which a sp cannot update its price
	UpdatePriceDisallowedDays uint32 `` /* 177-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,
	historicalBlocksForMaintenanceRecords, maintenanceDurationQuota, lockUpBlocksForMaintenance int64,
	updateGlobalPriceInterval uint64, updatePriceDisallowedDays uint32) 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) GetMaintenanceDurationQuota added in v0.2.4

func (m *Params) GetMaintenanceDurationQuota() int64

func (*Params) GetNumOfHistoricalBlocksForMaintenanceRecords added in v0.2.4

func (m *Params) GetNumOfHistoricalBlocksForMaintenanceRecords() int64

func (*Params) GetNumOfLockupBlocksForMaintenance added in v0.2.4

func (m *Params) GetNumOfLockupBlocksForMaintenance() int64

func (*Params) GetUpdateGlobalPriceInterval added in v0.2.4

func (m *Params) GetUpdateGlobalPriceInterval() uint64

func (*Params) GetUpdatePriceDisallowedDays added in v0.2.4

func (m *Params) GetUpdatePriceDisallowedDays() uint32

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 the latest storage price of specific sp
	QuerySpStoragePrice(ctx context.Context, in *QuerySpStoragePriceRequest, opts ...grpc.CallOption) (*QuerySpStoragePriceResponse, error)
	// get global store price by time
	QueryGlobalSpStorePriceByTime(ctx context.Context, in *QueryGlobalSpStorePriceByTimeRequest, opts ...grpc.CallOption) (*QueryGlobalSpStorePriceByTimeResponse, error)
	// Queries a storage provider with specify id
	StorageProvider(ctx context.Context, in *QueryStorageProviderRequest, opts ...grpc.CallOption) (*QueryStorageProviderResponse, error)
	// Queries a StorageProvider by specify operator address.
	StorageProviderByOperatorAddress(ctx context.Context, in *QueryStorageProviderByOperatorAddressRequest, opts ...grpc.CallOption) (*QueryStorageProviderByOperatorAddressResponse, error)
	// Queries a StorageProvider by specify operator address.
	StorageProviderMaintenanceRecordsByOperatorAddress(ctx context.Context, in *QueryStorageProviderMaintenanceRecordsRequest, opts ...grpc.CallOption) (*QueryStorageProviderMaintenanceRecordsResponse, 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 QueryGlobalSpStorePriceByTimeRequest added in v0.2.4

type QueryGlobalSpStorePriceByTimeRequest 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 (*QueryGlobalSpStorePriceByTimeRequest) Descriptor added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeRequest) GetTimestamp added in v0.2.4

func (m *QueryGlobalSpStorePriceByTimeRequest) GetTimestamp() int64

func (*QueryGlobalSpStorePriceByTimeRequest) Marshal added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeRequest) MarshalTo added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeRequest) MarshalToSizedBuffer added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeRequest) ProtoMessage added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeRequest) ProtoMessage()

func (*QueryGlobalSpStorePriceByTimeRequest) Reset added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeRequest) Size added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeRequest) String added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeRequest) Unmarshal added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeRequest) XXX_DiscardUnknown added in v0.2.4

func (m *QueryGlobalSpStorePriceByTimeRequest) XXX_DiscardUnknown()

func (*QueryGlobalSpStorePriceByTimeRequest) XXX_Marshal added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeRequest) XXX_Merge added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeRequest) XXX_Size added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeRequest) XXX_Unmarshal added in v0.2.4

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

type QueryGlobalSpStorePriceByTimeResponse added in v0.2.4

type QueryGlobalSpStorePriceByTimeResponse struct {
	GlobalSpStorePrice GlobalSpStorePrice `protobuf:"bytes,1,opt,name=global_sp_store_price,json=globalSpStorePrice,proto3" json:"global_sp_store_price"`
}

func (*QueryGlobalSpStorePriceByTimeResponse) Descriptor added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeResponse) GetGlobalSpStorePrice added in v0.2.4

func (m *QueryGlobalSpStorePriceByTimeResponse) GetGlobalSpStorePrice() GlobalSpStorePrice

func (*QueryGlobalSpStorePriceByTimeResponse) Marshal added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeResponse) MarshalTo added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeResponse) MarshalToSizedBuffer added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeResponse) ProtoMessage added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeResponse) ProtoMessage()

func (*QueryGlobalSpStorePriceByTimeResponse) Reset added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeResponse) Size added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeResponse) String added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeResponse) Unmarshal added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeResponse) XXX_DiscardUnknown added in v0.2.4

func (m *QueryGlobalSpStorePriceByTimeResponse) XXX_DiscardUnknown()

func (*QueryGlobalSpStorePriceByTimeResponse) XXX_Marshal added in v0.2.4

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

func (*QueryGlobalSpStorePriceByTimeResponse) XXX_Merge added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeResponse) XXX_Size added in v0.2.4

func (*QueryGlobalSpStorePriceByTimeResponse) XXX_Unmarshal added in v0.2.4

func (m *QueryGlobalSpStorePriceByTimeResponse) 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 the latest storage price of specific sp
	QuerySpStoragePrice(context.Context, *QuerySpStoragePriceRequest) (*QuerySpStoragePriceResponse, error)
	// get global store price by time
	QueryGlobalSpStorePriceByTime(context.Context, *QueryGlobalSpStorePriceByTimeRequest) (*QueryGlobalSpStorePriceByTimeResponse, error)
	// Queries a storage provider with specify id
	StorageProvider(context.Context, *QueryStorageProviderRequest) (*QueryStorageProviderResponse, error)
	// Queries a StorageProvider by specify operator address.
	StorageProviderByOperatorAddress(context.Context, *QueryStorageProviderByOperatorAddressRequest) (*QueryStorageProviderByOperatorAddressResponse, error)
	// Queries a StorageProvider by specify operator address.
	StorageProviderMaintenanceRecordsByOperatorAddress(context.Context, *QueryStorageProviderMaintenanceRecordsRequest) (*QueryStorageProviderMaintenanceRecordsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySpStoragePriceRequest added in v0.2.4

type QuerySpStoragePriceRequest struct {
	// operator address of sp
	SpAddr string `protobuf:"bytes,1,opt,name=sp_addr,json=spAddr,proto3" json:"sp_addr,omitempty"`
}

func (*QuerySpStoragePriceRequest) Descriptor added in v0.2.4

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

func (*QuerySpStoragePriceRequest) GetSpAddr added in v0.2.4

func (m *QuerySpStoragePriceRequest) GetSpAddr() string

func (*QuerySpStoragePriceRequest) Marshal added in v0.2.4

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

func (*QuerySpStoragePriceRequest) MarshalTo added in v0.2.4

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

func (*QuerySpStoragePriceRequest) MarshalToSizedBuffer added in v0.2.4

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

func (*QuerySpStoragePriceRequest) ProtoMessage added in v0.2.4

func (*QuerySpStoragePriceRequest) ProtoMessage()

func (*QuerySpStoragePriceRequest) Reset added in v0.2.4

func (m *QuerySpStoragePriceRequest) Reset()

func (*QuerySpStoragePriceRequest) Size added in v0.2.4

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

func (*QuerySpStoragePriceRequest) String added in v0.2.4

func (m *QuerySpStoragePriceRequest) String() string

func (*QuerySpStoragePriceRequest) Unmarshal added in v0.2.4

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

func (*QuerySpStoragePriceRequest) XXX_DiscardUnknown added in v0.2.4

func (m *QuerySpStoragePriceRequest) XXX_DiscardUnknown()

func (*QuerySpStoragePriceRequest) XXX_Marshal added in v0.2.4

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

func (*QuerySpStoragePriceRequest) XXX_Merge added in v0.2.4

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

func (*QuerySpStoragePriceRequest) XXX_Size added in v0.2.4

func (m *QuerySpStoragePriceRequest) XXX_Size() int

func (*QuerySpStoragePriceRequest) XXX_Unmarshal added in v0.2.4

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

type QuerySpStoragePriceResponse added in v0.2.4

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

func (*QuerySpStoragePriceResponse) Descriptor added in v0.2.4

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

func (*QuerySpStoragePriceResponse) GetSpStoragePrice added in v0.2.4

func (m *QuerySpStoragePriceResponse) GetSpStoragePrice() SpStoragePrice

func (*QuerySpStoragePriceResponse) Marshal added in v0.2.4

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

func (*QuerySpStoragePriceResponse) MarshalTo added in v0.2.4

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

func (*QuerySpStoragePriceResponse) MarshalToSizedBuffer added in v0.2.4

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

func (*QuerySpStoragePriceResponse) ProtoMessage added in v0.2.4

func (*QuerySpStoragePriceResponse) ProtoMessage()

func (*QuerySpStoragePriceResponse) Reset added in v0.2.4

func (m *QuerySpStoragePriceResponse) Reset()

func (*QuerySpStoragePriceResponse) Size added in v0.2.4

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

func (*QuerySpStoragePriceResponse) String added in v0.2.4

func (m *QuerySpStoragePriceResponse) String() string

func (*QuerySpStoragePriceResponse) Unmarshal added in v0.2.4

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

func (*QuerySpStoragePriceResponse) XXX_DiscardUnknown added in v0.2.4

func (m *QuerySpStoragePriceResponse) XXX_DiscardUnknown()

func (*QuerySpStoragePriceResponse) XXX_Marshal added in v0.2.4

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

func (*QuerySpStoragePriceResponse) XXX_Merge added in v0.2.4

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

func (*QuerySpStoragePriceResponse) XXX_Size added in v0.2.4

func (m *QuerySpStoragePriceResponse) XXX_Size() int

func (*QuerySpStoragePriceResponse) XXX_Unmarshal added in v0.2.4

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

type QueryStorageProviderByOperatorAddressRequest added in v0.2.3

type QueryStorageProviderByOperatorAddressRequest struct {
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
}

func (*QueryStorageProviderByOperatorAddressRequest) Descriptor added in v0.2.3

func (*QueryStorageProviderByOperatorAddressRequest) GetOperatorAddress added in v0.2.3

func (m *QueryStorageProviderByOperatorAddressRequest) GetOperatorAddress() string

func (*QueryStorageProviderByOperatorAddressRequest) Marshal added in v0.2.3

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

func (*QueryStorageProviderByOperatorAddressRequest) MarshalTo added in v0.2.3

func (*QueryStorageProviderByOperatorAddressRequest) MarshalToSizedBuffer added in v0.2.3

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

func (*QueryStorageProviderByOperatorAddressRequest) ProtoMessage added in v0.2.3

func (*QueryStorageProviderByOperatorAddressRequest) Reset added in v0.2.3

func (*QueryStorageProviderByOperatorAddressRequest) Size added in v0.2.3

func (*QueryStorageProviderByOperatorAddressRequest) String added in v0.2.3

func (*QueryStorageProviderByOperatorAddressRequest) Unmarshal added in v0.2.3

func (*QueryStorageProviderByOperatorAddressRequest) XXX_DiscardUnknown added in v0.2.3

func (m *QueryStorageProviderByOperatorAddressRequest) XXX_DiscardUnknown()

func (*QueryStorageProviderByOperatorAddressRequest) XXX_Marshal added in v0.2.3

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

func (*QueryStorageProviderByOperatorAddressRequest) XXX_Merge added in v0.2.3

func (*QueryStorageProviderByOperatorAddressRequest) XXX_Size added in v0.2.3

func (*QueryStorageProviderByOperatorAddressRequest) XXX_Unmarshal added in v0.2.3

type QueryStorageProviderByOperatorAddressResponse added in v0.2.3

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

func (*QueryStorageProviderByOperatorAddressResponse) Descriptor added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) GetStorageProvider added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) Marshal added in v0.2.3

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

func (*QueryStorageProviderByOperatorAddressResponse) MarshalTo added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) MarshalToSizedBuffer added in v0.2.3

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

func (*QueryStorageProviderByOperatorAddressResponse) ProtoMessage added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) Reset added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) Size added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) String added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) Unmarshal added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) XXX_DiscardUnknown added in v0.2.3

func (m *QueryStorageProviderByOperatorAddressResponse) XXX_DiscardUnknown()

func (*QueryStorageProviderByOperatorAddressResponse) XXX_Marshal added in v0.2.3

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

func (*QueryStorageProviderByOperatorAddressResponse) XXX_Merge added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) XXX_Size added in v0.2.3

func (*QueryStorageProviderByOperatorAddressResponse) XXX_Unmarshal added in v0.2.3

type QueryStorageProviderMaintenanceRecordsRequest added in v0.2.4

type QueryStorageProviderMaintenanceRecordsRequest struct {
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
}

func (*QueryStorageProviderMaintenanceRecordsRequest) Descriptor added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsRequest) GetOperatorAddress added in v0.2.4

func (m *QueryStorageProviderMaintenanceRecordsRequest) GetOperatorAddress() string

func (*QueryStorageProviderMaintenanceRecordsRequest) Marshal added in v0.2.4

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

func (*QueryStorageProviderMaintenanceRecordsRequest) MarshalTo added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsRequest) MarshalToSizedBuffer added in v0.2.4

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

func (*QueryStorageProviderMaintenanceRecordsRequest) ProtoMessage added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsRequest) Reset added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsRequest) Size added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsRequest) String added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsRequest) Unmarshal added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsRequest) XXX_DiscardUnknown added in v0.2.4

func (m *QueryStorageProviderMaintenanceRecordsRequest) XXX_DiscardUnknown()

func (*QueryStorageProviderMaintenanceRecordsRequest) XXX_Marshal added in v0.2.4

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

func (*QueryStorageProviderMaintenanceRecordsRequest) XXX_Merge added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsRequest) XXX_Size added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsRequest) XXX_Unmarshal added in v0.2.4

type QueryStorageProviderMaintenanceRecordsResponse added in v0.2.4

type QueryStorageProviderMaintenanceRecordsResponse struct {
	Records []*MaintenanceRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
}

func (*QueryStorageProviderMaintenanceRecordsResponse) Descriptor added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) GetRecords added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) Marshal added in v0.2.4

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

func (*QueryStorageProviderMaintenanceRecordsResponse) MarshalTo added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) MarshalToSizedBuffer added in v0.2.4

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

func (*QueryStorageProviderMaintenanceRecordsResponse) ProtoMessage added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) Reset added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) Size added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) String added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) Unmarshal added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) XXX_DiscardUnknown added in v0.2.4

func (m *QueryStorageProviderMaintenanceRecordsResponse) XXX_DiscardUnknown()

func (*QueryStorageProviderMaintenanceRecordsResponse) XXX_Marshal added in v0.2.4

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

func (*QueryStorageProviderMaintenanceRecordsResponse) XXX_Merge added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) XXX_Size added in v0.2.4

func (*QueryStorageProviderMaintenanceRecordsResponse) XXX_Unmarshal added in v0.2.4

type QueryStorageProviderRequest added in v0.0.7

type QueryStorageProviderRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryStorageProviderRequest) Descriptor added in v0.0.7

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

func (*QueryStorageProviderRequest) GetId added in v0.2.3

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 SpMaintenanceStats added in v0.2.4

type SpMaintenanceStats struct {
	Records []*MaintenanceRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
}

func (*SpMaintenanceStats) Descriptor added in v0.2.4

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

func (*SpMaintenanceStats) GetRecords added in v0.2.4

func (m *SpMaintenanceStats) GetRecords() []*MaintenanceRecord

func (*SpMaintenanceStats) Marshal added in v0.2.4

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

func (*SpMaintenanceStats) MarshalTo added in v0.2.4

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

func (*SpMaintenanceStats) MarshalToSizedBuffer added in v0.2.4

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

func (*SpMaintenanceStats) ProtoMessage added in v0.2.4

func (*SpMaintenanceStats) ProtoMessage()

func (*SpMaintenanceStats) Reset added in v0.2.4

func (m *SpMaintenanceStats) Reset()

func (*SpMaintenanceStats) Size added in v0.2.4

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

func (*SpMaintenanceStats) String added in v0.2.4

func (m *SpMaintenanceStats) String() string

func (*SpMaintenanceStats) Unmarshal added in v0.2.4

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

func (*SpMaintenanceStats) XXX_DiscardUnknown added in v0.2.4

func (m *SpMaintenanceStats) XXX_DiscardUnknown()

func (*SpMaintenanceStats) XXX_Marshal added in v0.2.4

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

func (*SpMaintenanceStats) XXX_Merge added in v0.2.4

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

func (*SpMaintenanceStats) XXX_Size added in v0.2.4

func (m *SpMaintenanceStats) XXX_Size() int

func (*SpMaintenanceStats) XXX_Unmarshal added in v0.2.4

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

type SpStoragePrice added in v0.0.7

type SpStoragePrice struct {
	// sp id
	SpId uint32 `protobuf:"varint,1,opt,name=sp_id,json=spId,proto3" json:"sp_id,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) GetSpId added in v0.2.3

func (m *SpStoragePrice) GetSpId() uint32

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_IN_MAINTENANCE   Status = 3
)

func (Status) EnumDescriptor

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

func (Status) String

func (x Status) String() string

type StorageProvider

type StorageProvider struct {
	// // id is the identifier of the storage provider, used in virtual group
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 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,2,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,3,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,4,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,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"`
	// maintenance_address defines one of the storage provider's accounts which is used for testing while in maintenance mode
	MaintenanceAddress string `protobuf:"bytes,7,opt,name=maintenance_address,json=maintenanceAddress,proto3" json:"maintenance_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,9,opt,name=status,proto3,enum=greenfield.sp.Status" json:"status,omitempty"`
	// endpoint define the storage provider's network service address
	Endpoint string `protobuf:"bytes,10,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// description defines the description terms for the storage provider.
	Description Description `protobuf:"bytes,11,opt,name=description,proto3" json:"description"`
	// bls_key defines the bls pub key of the Storage provider for sealing object and completing migration
	BlsKey []byte `protobuf:"bytes,12,opt,name=bls_key,json=blsKey,proto3" json:"bls_key,omitempty"`
}

StorageProvider defines the meta info of storage provider

func MustUnmarshalStorageProvider

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

func NewStorageProvider

func NewStorageProvider(
	spID uint32, operator sdk.AccAddress, fundingAddress sdk.AccAddress,
	sealAddress sdk.AccAddress, approvalAddress sdk.AccAddress, gcAddress sdk.AccAddress, maintenanceAddress sdk.AccAddress,
	totalDeposit math.Int, endpoint string,
	description Description,
	blsKey string) (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) GetBlsKey added in v0.2.3

func (m *StorageProvider) GetBlsKey() []byte

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) GetId added in v0.2.3

func (m *StorageProvider) GetId() uint32

func (*StorageProvider) GetMaintenanceAddress added in v0.2.4

func (m *StorageProvider) GetMaintenanceAddress() string

func (*StorageProvider) GetOperatorAccAddress added in v0.2.3

func (sp *StorageProvider) GetOperatorAccAddress() 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) GetTestAccAddress added in v0.2.4

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

func (*StorageProvider) GetTotalDeposit

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

func (*StorageProvider) IsInMaintenance added in v0.2.4

func (sp *StorageProvider) IsInMaintenance() bool

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) UpdateSpStatus added in v0.2.4

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) QueryGlobalSpStorePriceByTime added in v0.2.4

func (*UnimplementedQueryServer) QuerySpStoragePrice added in v0.2.4

func (*UnimplementedQueryServer) StorageProvider added in v0.0.7

func (*UnimplementedQueryServer) StorageProviderByOperatorAddress added in v0.2.3

func (*UnimplementedQueryServer) StorageProviderMaintenanceRecordsByOperatorAddress added in v0.2.4

func (*UnimplementedQueryServer) StorageProviders

Jump to

Keyboard shortcuts

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