Skip to content

Commit

Permalink
fix: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Nov 2, 2023
1 parent 7840b1b commit 775e60e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
38 changes: 38 additions & 0 deletions docs/api/skills/transaction_settlement_abci/behaviours.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,44 @@ def get_gas_price_params(tx_body: dict) -> List[str]

Guess the gas strategy from the transaction params

<a id="packages.valory.skills.transaction_settlement_abci.behaviours.TransactionSettlementBaseBehaviour.send_raw_transaction"></a>

#### send`_`raw`_`transaction

```python
def send_raw_transaction(
transaction: RawTransaction,
use_flashbots: bool = False,
target_block_numbers: Optional[List[int]] = None
) -> Generator[
None,
Union[None, SigningMessage, LedgerApiMessage],
Tuple[Optional[str], RPCResponseStatus],
]
```

Send raw transactions to the ledger for mining.

Happy-path full flow of the messages.

_send_transaction_signing_request:
AbstractRoundAbci skill -> (SigningMessage | SIGN_TRANSACTION) -> DecisionMaker
DecisionMaker -> (SigningMessage | SIGNED_TRANSACTION) -> AbstractRoundAbci skill

_send_transaction_request:
AbstractRoundAbci skill -> (LedgerApiMessage | SEND_SIGNED_TRANSACTION) -> Ledger connection
Ledger connection -> (LedgerApiMessage | TRANSACTION_DIGEST) -> AbstractRoundAbci skill

**Arguments**:

- `transaction`: transaction data
- `use_flashbots`: whether to use flashbots for the transaction or not
- `target_block_numbers`: the target block numbers in case we are using flashbots

**Returns**:

SigningMessage object

<a id="packages.valory.skills.transaction_settlement_abci.behaviours.RandomnessTransactionSubmissionBehaviour"></a>

## RandomnessTransactionSubmissionBehaviour Objects
Expand Down
10 changes: 10 additions & 0 deletions docs/api/skills/transaction_settlement_abci/rounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,16 @@ def participant_to_late_messages(

Get the mapping from participants to checks.

<a id="packages.valory.skills.transaction_settlement_abci.rounds.SynchronizedData.get_chain_id"></a>

#### get`_`chain`_`id

```python
def get_chain_id(default_chain_id: Optional[str] = None) -> str
```

Get the chain id.

<a id="packages.valory.skills.transaction_settlement_abci.rounds.FailedRound"></a>

## FailedRound Objects
Expand Down

0 comments on commit 775e60e

Please sign in to comment.