Skip to content

Latest commit

 

History

History
296 lines (196 loc) · 11.3 KB

api-convert.rst

File metadata and controls

296 lines (196 loc) · 11.3 KB

Convert API

The convert package contains methods and classes for representing and converting data.

brownie.convert.main

The main module contains methods for data conversion. Methods within this module can all be imported directly from the convert package.

brownie.convert.datatypes

The datatypes module contains subclasses that Brownie uses to assist with conversion and comparison.

EthAddress

Fixed

HexString

ReturnValue

Wei

brownie.convert.normalize

The normalize module contains methods used to convert multiple values based on a contract ABI specification. Values are formatted via calls to the methods outlined under type conversions<type-conversions>, and type classes<type-classes> are applied where appropriate.

brownie.convert.utils

The utils module contains helper methods used by other methods within the convert package.