Metadata-Version: 2.1
Name: rubi
Version: 2.1.5
Summary: A python SDK for the Rubicon Protocol
Author: denver
Author-email: denver@rubicon.finance
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Provides-Extra: docs
Requires-Dist: attributedict (==0.3.0)
Requires-Dist: black (>=23.3.0,<24.0.0)
Requires-Dist: eth-abi (==4.0.0)
Requires-Dist: eth-tester (==0.9.0b1)
Requires-Dist: eth-utils (==2.1.0)
Requires-Dist: hexbytes (==0.3.0)
Requires-Dist: py-evm (==0.7.0a2)
Requires-Dist: pytest (==7.3.1)
Requires-Dist: python-semantic-release (==7.34.3)
Requires-Dist: pyyaml (==6.0.0)
Requires-Dist: sphinx (==7.0.1) ; extra == "docs"
Requires-Dist: subgrounds[dash] (==1.6.0)
Requires-Dist: web3 (==6.5.0)
Description-Content-Type: text/markdown

# rubi

rubi is a python SDK for the Rubicon Protocol and has a variety of functionality for interacting with the protocol.
Documentation related to rubi and its functionality can be found [here](https://rubi.readthedocs.io/en/latest/#).

### Design Goals

The underlying goal of the design of rubi is to provide developers with a seamless integration experience when
interacting with the Rubicon. The SDK is built with the goal of enabling efficient and reliable communication with
Rubicon's smart contracts, empowering developers to effortlessly access and utilize Rubicon's features in their Python
applications.

### Examples

Examples of using the rubi sdk can be found [here](docs/examples).

### Directory Structure

```
├── docs
│   ├── examples
│   │   ├── example.py
│   ├── ...
├── network_config
│   ├── optimism
│   │   ├── abis
│   │   ├── network.yaml
│   ├── ...
│   ├── ERC20.json
│   ├── README.md
├── rubi
│   ├── contracts
│   ├── data
│   ├── network
│   ├── types
│   ├── client.py
├── tests
│   ├── ...
├── poetry.lock
├── pyproject.toml
└──...
```

The codebase follows the structure detailed above with:

- docs: all the sources for documentation along with some [examples](docs/examples/example.py).
- network_config: configuration and abis for the different networks. For more details see
  the [README.md](network_config/README.md).
- rubi: the python sources root. The main entrypoint for most users will be the [client.py](rubi/client.py).
- tests: test coverage of the repository.

### Decisions and Considerations

#### - Writing to the chain

Throughout the codebase we offer the user the option to pass in a nonce argument or derive it from chain state if none
is provided (via the `get_transaction_count` function). Aspirationally, we want to support a python based nonce manager
that can be used to manage nonces for the user. Until then, this optional parameter is meant to enable the user to
manage nonces themselves. When a user does not provide a nonce, we derive it from chain state accordingly. In this case,
we also wait for the transaction to be confirmed before continuing. If the transaction fails, an exception is raised and
the program is exited. The user can override this behavior by managing nonces themselves.

### SDK Disclaimer

This codebase is in Alpha and could contain bugs or change significantly between versions. Contributing through Issues
or Pull Requests is welcome!

### Protocol Disclaimer

Please refer to [this](https://docs.rubicon.finance/protocol/risks) for information on the risks associated to the
Rubicon Protocol.
