Documentation ¶
Index ¶
- type KeyWrapper
- func (a *KeyWrapper) Bytes() []byte
- func (a *KeyWrapper) Equals(other cryptotypes.LedgerPrivKey) bool
- func (a *KeyWrapper) ProtoMessage()
- func (a *KeyWrapper) PubKey() cryptotypes.PubKey
- func (a *KeyWrapper) Reset()
- func (a *KeyWrapper) Sign(msg []byte) ([]byte, error)
- func (a *KeyWrapper) String() string
- func (a *KeyWrapper) Type() string
- type KeystoreAdapter
- type ORM
- func (o *ORM) GetMsgs(ids ...int64) (adapters.Msgs, error)
- func (o *ORM) GetMsgsState(state db.State, limit int64, qopts ...pg.QOpt) (adapters.Msgs, error)
- func (o *ORM) InsertMsg(contractID, typeURL string, msg []byte, qopts ...pg.QOpt) (int64, error)
- func (o *ORM) UpdateMsgs(ids []int64, state db.State, txHash *string, qopts ...pg.QOpt) error
- func (o *ORM) UpdateMsgsContract(contractID string, from, to db.State, qopts ...pg.QOpt) error
- type Txm
- func (txm *Txm) Close() error
- func (txm *Txm) Enqueue(contractID string, msg sdk.Msg) (int64, error)
- func (txm *Txm) GasPrice() (sdk.DecCoin, error)
- func (txm *Txm) GetMsgs(ids ...int64) (adapters.Msgs, error)
- func (txm *Txm) HealthReport() map[string]error
- func (txm *Txm) Healthy() error
- func (txm *Txm) Name() string
- func (txm *Txm) Ready() error
- func (txm *Txm) Start(context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyWrapper ¶
type KeyWrapper struct {
// contains filtered or unexported fields
}
KeyWrapper uses a KeystoreAdapter to implement the cosmos-sdk PrivKey interface for a specific key.
func NewKeyWrapper ¶
func NewKeyWrapper(adapter *KeystoreAdapter, account string) *KeyWrapper
func (*KeyWrapper) Bytes ¶
func (a *KeyWrapper) Bytes() []byte
func (*KeyWrapper) Equals ¶
func (a *KeyWrapper) Equals(other cryptotypes.LedgerPrivKey) bool
func (*KeyWrapper) ProtoMessage ¶
func (a *KeyWrapper) ProtoMessage()
func (*KeyWrapper) PubKey ¶
func (a *KeyWrapper) PubKey() cryptotypes.PubKey
func (*KeyWrapper) Reset ¶
func (a *KeyWrapper) Reset()
func (*KeyWrapper) String ¶
func (a *KeyWrapper) String() string
func (*KeyWrapper) Type ¶
func (a *KeyWrapper) Type() string
type KeystoreAdapter ¶ added in v2.6.0
type KeystoreAdapter struct {
// contains filtered or unexported fields
}
An adapter for a Cosmos loop.Keystore to translate public keys into bech32-prefixed account addresses.
func NewKeystoreAdapter ¶ added in v2.6.0
func NewKeystoreAdapter(keystore loop.Keystore, accountPrefix string) *KeystoreAdapter
func (*KeystoreAdapter) PubKey ¶ added in v2.6.0
func (ka *KeystoreAdapter) PubKey(address string) (cryptotypes.PubKey, error)
Returns the cosmos PubKey associated with the prefixed address.
type ORM ¶
type ORM struct {
// contains filtered or unexported fields
}
ORM manages the data model for cosmos tx management.
func (*ORM) GetMsgsState ¶
GetMsgsState returns the oldest messages with a given state up to limit.
func (*ORM) InsertMsg ¶
InsertMsg inserts a cosmos msg, assumed to be a serialized cosmos ExecuteContractMsg.
func (*ORM) UpdateMsgs ¶
UpdateMsgs updates msgs with the given ids. Note state transitions are validated at the db level.
type Txm ¶
type Txm struct {
// contains filtered or unexported fields
}
Txm manages transactions for the cosmos blockchain.
func NewTxm ¶
func NewTxm(db *sqlx.DB, tc func() (cosmosclient.ReaderWriter, error), gpe cosmosclient.ComposedGasPriceEstimator, chainID string, cfg coscfg.Config, ks loop.Keystore, lggr logger.Logger, logCfg pg.QConfig, eb pg.EventBroadcaster) *Txm
NewTxm creates a txm. Uses simulation so should only be used to send txes to trusted contracts i.e. OCR.
func (*Txm) GasPrice ¶
GasPrice returns the gas price from the estimator in the configured fee token.