Skip to content

Commit

Permalink
Merge pull request #2659 from fetchai/feat/docs
Browse files Browse the repository at this point in the history
Feat/docs
  • Loading branch information
DavidMinarsch committed Oct 15, 2021
2 parents ffed5a1 + 51d454b commit 9af22de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 57 deletions.
12 changes: 1 addition & 11 deletions docs/api/helpers/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,17 +630,7 @@ compute_specifier_from_version(version: Version) -> str

Compute the specifier set from a version.

Varying only on the patch number for versions with major 0.

I.e. from "{major}.{minor}.{patch}.{extra}", return

">=min({major}.{minor}.0, {major}.{minor}.{patch}.{extra}), <{major}.{minor + 1}.0"

Varying on the patch and minor number for versions with major >= 1.

I.e. from "{major}.{minor}.{patch}.{extra}", return

">=min({major}.0.0, {major}.{minor}.{patch}.{extra}), <{major+1}.0.0"
version specifier is: >=major.minor.0, <next_major.0.0

**Arguments**:

Expand Down
29 changes: 6 additions & 23 deletions docs/api/plugins/aea_ledger_cosmos/cosmos.md
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ the transaction dictionary.
#### get`_`handle`_`transaction

```python
| get_handle_transaction(sender_address: Address, contract_address: Address, handle_msg: Any, amount: int, tx_fee: int, denom: Optional[str] = None, gas: int = DEFAULT_GAS_AMOUNT, memo: str = "", chain_id: Optional[str] = None, account_number: Optional[int] = None, sequence: Optional[int] = None) -> Optional[JSONLike]
| get_handle_transaction(sender_address: Address, contract_address: Address, handle_msg: Any, amount: int, tx_fee: int, denom: Optional[str] = None, gas: int = DEFAULT_GAS_AMOUNT, memo: str = "", chain_id: Optional[str] = None, account_number: Optional[int] = None, sequence: Optional[int] = None, tx_fee_denom: Optional[str] = None) -> Optional[JSONLike]
```

Create a CosmWasm HandleMsg transaction.
Expand All @@ -537,6 +537,7 @@ Create a CosmWasm HandleMsg transaction.
- `chain_id`: the Chain ID of the CosmWasm transaction. Default is 1 (i.e. mainnet).
- `account_number`: Account number
- `sequence`: Sequence
- `tx_fee_denom`: Denomination of tx_fee, identical with denom param when None

**Returns**:

Expand Down Expand Up @@ -564,7 +565,7 @@ the message receipt
#### get`_`transfer`_`transaction

```python
| get_transfer_transaction(sender_address: Address, destination_address: Address, amount: int, tx_fee: int, tx_nonce: str, denom: Optional[str] = None, gas: int = DEFAULT_GAS_AMOUNT, memo: str = "", chain_id: Optional[str] = None, account_number: Optional[int] = None, sequence: Optional[int] = None, **kwargs: Any, ,) -> Optional[JSONLike]
| get_transfer_transaction(sender_address: Address, destination_address: Address, amount: int, tx_fee: int, tx_nonce: str, denom: Optional[str] = None, gas: int = DEFAULT_GAS_AMOUNT, memo: str = "", chain_id: Optional[str] = None, account_number: Optional[int] = None, sequence: Optional[int] = None, tx_fee_denom: Optional[str] = None, **kwargs: Any, ,) -> Optional[JSONLike]
```

Submit a transfer transaction to the ledger.
Expand All @@ -582,6 +583,7 @@ Submit a transfer transaction to the ledger.
- `chain_id`: the chain ID of the transaction.
- `account_number`: Account number
- `sequence`: Sequence
- `tx_fee_denom`: Denomination of tx_fee, identical with denom param when None
- `kwargs`: keyword arguments.

**Returns**:
Expand Down Expand Up @@ -633,7 +635,7 @@ packer ProtoAny type message
#### get`_`multi`_`transaction

```python
| get_multi_transaction(from_addresses: List[str], pub_keys: Optional[List[bytes]], msgs: List[ProtoAny], gas: int, tx_fee: int = 0, memo: str = "", chain_id: Optional[str] = None, denom: Optional[str] = None) -> JSONLike
| get_multi_transaction(from_addresses: List[str], pub_keys: Optional[List[bytes]], msgs: List[ProtoAny], gas: int, tx_fee: int = 0, memo: str = "", chain_id: Optional[str] = None, denom: Optional[str] = None, tx_fee_denom: Optional[str] = None) -> JSONLike
```

Generate transaction with multiple messages
Expand All @@ -648,6 +650,7 @@ Generate transaction with multiple messages
- `memo`: memo to include in tx.
- `chain_id`: the chain ID of the transaction.
- `denom`: the denomination of tx fee
- `tx_fee_denom`: Denomination of tx_fee, identical with denom param when None

:raises: RuntimeError if number of pubkeys is not equal to number of from_addresses

Expand All @@ -672,26 +675,6 @@ Send a signed transaction and wait for confirmation.

tx_digest, if present

<a name="plugins.aea-ledger-cosmos.aea_ledger_cosmos.cosmos._CosmosApi.is_cosmwasm_transaction"></a>
#### is`_`cosmwasm`_`transaction

```python
| @staticmethod
| is_cosmwasm_transaction(tx_signed: JSONLike) -> bool
```

Check whether it is a cosmwasm tx.

<a name="plugins.aea-ledger-cosmos.aea_ledger_cosmos.cosmos._CosmosApi.is_transfer_transaction"></a>
#### is`_`transfer`_`transaction

```python
| @staticmethod
| is_transfer_transaction(tx_signed: JSONLike) -> bool
```

Check whether it is a transfer tx.

<a name="plugins.aea-ledger-cosmos.aea_ledger_cosmos.cosmos._CosmosApi.get_transaction_receipt"></a>
#### get`_`transaction`_`receipt

Expand Down
29 changes: 6 additions & 23 deletions docs/api/plugins/aea_ledger_fetchai/_cosmos.md
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ the transaction dictionary.
#### get`_`handle`_`transaction

```python
| get_handle_transaction(sender_address: Address, contract_address: Address, handle_msg: Any, amount: int, tx_fee: int, denom: Optional[str] = None, gas: int = DEFAULT_GAS_AMOUNT, memo: str = "", chain_id: Optional[str] = None, account_number: Optional[int] = None, sequence: Optional[int] = None) -> Optional[JSONLike]
| get_handle_transaction(sender_address: Address, contract_address: Address, handle_msg: Any, amount: int, tx_fee: int, denom: Optional[str] = None, gas: int = DEFAULT_GAS_AMOUNT, memo: str = "", chain_id: Optional[str] = None, account_number: Optional[int] = None, sequence: Optional[int] = None, tx_fee_denom: Optional[str] = None) -> Optional[JSONLike]
```

Create a CosmWasm HandleMsg transaction.
Expand All @@ -537,6 +537,7 @@ Create a CosmWasm HandleMsg transaction.
- `chain_id`: the Chain ID of the CosmWasm transaction. Default is 1 (i.e. mainnet).
- `account_number`: Account number
- `sequence`: Sequence
- `tx_fee_denom`: Denomination of tx_fee, identical with denom param when None

**Returns**:

Expand Down Expand Up @@ -564,7 +565,7 @@ the message receipt
#### get`_`transfer`_`transaction

```python
| get_transfer_transaction(sender_address: Address, destination_address: Address, amount: int, tx_fee: int, tx_nonce: str, denom: Optional[str] = None, gas: int = DEFAULT_GAS_AMOUNT, memo: str = "", chain_id: Optional[str] = None, account_number: Optional[int] = None, sequence: Optional[int] = None, **kwargs: Any, ,) -> Optional[JSONLike]
| get_transfer_transaction(sender_address: Address, destination_address: Address, amount: int, tx_fee: int, tx_nonce: str, denom: Optional[str] = None, gas: int = DEFAULT_GAS_AMOUNT, memo: str = "", chain_id: Optional[str] = None, account_number: Optional[int] = None, sequence: Optional[int] = None, tx_fee_denom: Optional[str] = None, **kwargs: Any, ,) -> Optional[JSONLike]
```

Submit a transfer transaction to the ledger.
Expand All @@ -582,6 +583,7 @@ Submit a transfer transaction to the ledger.
- `chain_id`: the chain ID of the transaction.
- `account_number`: Account number
- `sequence`: Sequence
- `tx_fee_denom`: Denomination of tx_fee, identical with denom param when None
- `kwargs`: keyword arguments.

**Returns**:
Expand Down Expand Up @@ -633,7 +635,7 @@ packer ProtoAny type message
#### get`_`multi`_`transaction

```python
| get_multi_transaction(from_addresses: List[str], pub_keys: Optional[List[bytes]], msgs: List[ProtoAny], gas: int, tx_fee: int = 0, memo: str = "", chain_id: Optional[str] = None, denom: Optional[str] = None) -> JSONLike
| get_multi_transaction(from_addresses: List[str], pub_keys: Optional[List[bytes]], msgs: List[ProtoAny], gas: int, tx_fee: int = 0, memo: str = "", chain_id: Optional[str] = None, denom: Optional[str] = None, tx_fee_denom: Optional[str] = None) -> JSONLike
```

Generate transaction with multiple messages
Expand All @@ -648,6 +650,7 @@ Generate transaction with multiple messages
- `memo`: memo to include in tx.
- `chain_id`: the chain ID of the transaction.
- `denom`: the denomination of tx fee
- `tx_fee_denom`: Denomination of tx_fee, identical with denom param when None

:raises: RuntimeError if number of pubkeys is not equal to number of from_addresses

Expand All @@ -672,26 +675,6 @@ Send a signed transaction and wait for confirmation.

tx_digest, if present

<a name="plugins.aea-ledger-fetchai.aea_ledger_fetchai._cosmos._CosmosApi.is_cosmwasm_transaction"></a>
#### is`_`cosmwasm`_`transaction

```python
| @staticmethod
| is_cosmwasm_transaction(tx_signed: JSONLike) -> bool
```

Check whether it is a cosmwasm tx.

<a name="plugins.aea-ledger-fetchai.aea_ledger_fetchai._cosmos._CosmosApi.is_transfer_transaction"></a>
#### is`_`transfer`_`transaction

```python
| @staticmethod
| is_transfer_transaction(tx_signed: JSONLike) -> bool
```

Check whether it is a transfer tx.

<a name="plugins.aea-ledger-fetchai.aea_ledger_fetchai._cosmos._CosmosApi.get_transaction_receipt"></a>
#### get`_`transaction`_`receipt

Expand Down

0 comments on commit 9af22de

Please sign in to comment.