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) InsertMsg(contractID string, msg []byte) (int64, error)
- func (o *ORM) SelectMsgsWithIDs(ids []int64) (terra.Msgs, error)
- func (o *ORM) SelectMsgsWithState(state db.State, limit int64) (terra.Msgs, error)
- func (o *ORM) UpdateMsgsWithState(ids []int64, state db.State, txHash *string, qopts ...pg.QOpt) error
- type Txm
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) InsertMsg ¶
InsertMsg inserts a terra msg, assumed to be a serialized terra ExecuteContractMsg.
func (*ORM) SelectMsgsWithIDs ¶
SelectMsgsWithIDs selects messages the given ids
func (*ORM) SelectMsgsWithState ¶
SelectMsgsWithState selects the oldest messages with a given state up to limit.
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.LogConfig, 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.