Documentation ¶
Index ¶
- func GetAddress(pubKey cryptotypes.PubKey) string
- func NewBaseAccount(pubKey cryptotypes.PubKey, accountNumber, sequence uint64) *authtypes.BaseAccount
- type MockGrpcClient
- func (m MockGrpcClient) Close() error
- func (m MockGrpcClient) GetAccount(panaceaAddr string) (authtypes.AccountI, error)
- func (m MockGrpcClient) GetDataCerts(poolID, round uint64) ([]datapooltypes.DataCert, error)
- func (m MockGrpcClient) GetDataPassRedeemHistory(redeemer string, poolID uint64) (datapooltypes.DataPassRedeemHistory, error)
- func (m MockGrpcClient) GetDeal(id string) (datadealtypes.Deal, error)
- func (m MockGrpcClient) GetPool(id string) (datapooltypes.Pool, error)
- func (m MockGrpcClient) GetPubKey(panaceaAddr string) (types.PubKey, error)
- func (m MockGrpcClient) GetRegisteredOracle(address string) (*oracletypes.Oracle, error)
- type MockStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
func GetAddress(pubKey cryptotypes.PubKey) string
func NewBaseAccount ¶
func NewBaseAccount(pubKey cryptotypes.PubKey, accountNumber, sequence uint64) *authtypes.BaseAccount
Types ¶
type MockGrpcClient ¶
type MockGrpcClient struct {
// contains filtered or unexported fields
}
func NewMockGrpcClient ¶
func NewMockGrpcClient( accounts []authtypes.AccountI, deals []datadealtypes.Deal, pools []datapooltypes.Pool, regOracles []oracletypes.Oracle, dpRedeemHistories []datapooltypes.DataPassRedeemHistory, dataCerts []datapooltypes.DataCert, ) MockGrpcClient
func (MockGrpcClient) Close ¶
func (m MockGrpcClient) Close() error
func (MockGrpcClient) GetAccount ¶
func (m MockGrpcClient) GetAccount(panaceaAddr string) (authtypes.AccountI, error)
func (MockGrpcClient) GetDataCerts ¶
func (m MockGrpcClient) GetDataCerts(poolID, round uint64) ([]datapooltypes.DataCert, error)
func (MockGrpcClient) GetDataPassRedeemHistory ¶
func (m MockGrpcClient) GetDataPassRedeemHistory(redeemer string, poolID uint64) (datapooltypes.DataPassRedeemHistory, error)
func (MockGrpcClient) GetDeal ¶
func (m MockGrpcClient) GetDeal(id string) (datadealtypes.Deal, error)
func (MockGrpcClient) GetPool ¶
func (m MockGrpcClient) GetPool(id string) (datapooltypes.Pool, error)
func (MockGrpcClient) GetPubKey ¶
func (m MockGrpcClient) GetPubKey(panaceaAddr string) (types.PubKey, error)
func (MockGrpcClient) GetRegisteredOracle ¶
func (m MockGrpcClient) GetRegisteredOracle(address string) (*oracletypes.Oracle, error)
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
func NewMockStore ¶
func NewMockStore() MockStore
func (MockStore) MakeDownloadURL ¶
func (MockStore) MakeRandomFilename ¶
Click to show internal directories.
Click to hide internal directories.