Documentation ¶
Index ¶
- type KeyWrapper
- func (k KeyWrapper) Bytes() []byte
- func (k KeyWrapper) Equals(a cryptotypes.LedgerPrivKey) bool
- func (k KeyWrapper) ProtoMessage()
- func (k KeyWrapper) PubKey() cryptotypes.PubKey
- func (k KeyWrapper) Reset()
- func (k KeyWrapper) Sign(msg []byte) ([]byte, error)
- func (k KeyWrapper) String() string
- func (k KeyWrapper) Type() string
- type ORM
- func (o *ORM) GetMsgs(ids ...int64) (terra.Msgs, error)
- func (o *ORM) GetMsgsState(state db.State, limit int64, qopts ...pg.QOpt) (terra.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) (terra.Msgs, error)
- func (txm *Txm) Healthy() error
- 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 wrapper around a terra transmitter key for use in the terra txbuilder and client.
func NewKeyWrapper ¶
func NewKeyWrapper(key terrakey.Key) KeyWrapper
NewKeyWrapper create a key wrapper
func (KeyWrapper) Equals ¶
func (k KeyWrapper) Equals(a cryptotypes.LedgerPrivKey) bool
Equals compare against another key
type ORM ¶
type ORM struct {
// contains filtered or unexported fields
}
ORM manages the data model for terra tx management.
func (*ORM) GetMsgsState ¶ added in v1.3.0
GetMsgsState returns the oldest messages with a given state up to limit.
func (*ORM) InsertMsg ¶
InsertMsg inserts a terra msg, assumed to be a serialized terra ExecuteContractMsg.
func (*ORM) UpdateMsgs ¶ added in v1.3.0
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 terra blockchain.
func NewTxm ¶
func NewTxm(db *sqlx.DB, tc func() (terraclient.ReaderWriter, error), gpe terraclient.ComposedGasPriceEstimator, chainID string, cfg terra.Config, ks keystore.Terra, 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.
Click to show internal directories.
Click to hide internal directories.