Versions in this module Expand all Collapse all v0 v0.1.0 Oct 11, 2024 Changes in this version + const FeeMargin + const MaxQueueLen + const RPCNonceErrMsg + var ErrBadAdapterEncoding = errors.New("failed to decode raw signature as adapter signature") + var PrivateKeys0Seed = []string + func SetupLocalStarknetNode(t *testing.T) string + func TestKeys(t *testing.T, count int) (rawkeys [][]byte) + type AccountStore struct + func NewAccountStore() *AccountStore + func (c *AccountStore) CreateTxStore(accountAddress *felt.Felt, initialNonce *felt.Felt) (*TxStore, error) + func (c *AccountStore) GetAllUnconfirmed() map[string][]*UnconfirmedTx + func (c *AccountStore) GetTotalInflightCount() int + func (c *AccountStore) GetTxStore(accountAddress *felt.Felt) *TxStore + type Config interface + ConfirmationPoll func() time.Duration + TxTimeout func() time.Duration + type KeystoreAdapter interface + Loopp func() loop.Keystore + func NewKeystoreAdapter(lk loop.Keystore) KeystoreAdapter + type StarkTXM interface + func New(lggr logger.Logger, keystore loop.Keystore, cfg Config, ...) (StarkTXM, error) + type Tx struct + type TxManager interface + Enqueue func(accountAddress *felt.Felt, publicKey *felt.Felt, txFn starknetrpc.FunctionCall) error + InflightCount func() (int, int) + type TxStore struct + func NewTxStore(initialNonce *felt.Felt) *TxStore + func (s *TxStore) AddUnconfirmed(nonce *felt.Felt, hash string, call starknetrpc.FunctionCall, ...) error + func (s *TxStore) Confirm(nonce *felt.Felt, hash string) error + func (s *TxStore) GetNextNonce() *felt.Felt + func (s *TxStore) GetUnconfirmed() []*UnconfirmedTx + func (s *TxStore) InflightCount() int + func (s *TxStore) SetNextNonce(newNextNonce *felt.Felt) []*UnconfirmedTx + type UnconfirmedTx struct + Call starknetrpc.FunctionCall + Hash string + Nonce *felt.Felt + PublicKey *felt.Felt v0.0.1-beta-test Jun 14, 2023