Models
Assets
Bases: BaseDict
Contains all tokens and quantities.
Source code in src/charli3_dendrite/dataclasses/models.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
__add__(a: Assets, b: Assets) -> Assets
Add two assets.
Source code in src/charli3_dendrite/dataclasses/models.py
106 107 108 109 110 111 112 |
|
__sub__(a: Assets, b: Assets) -> Assets
Subtract two assets.
Source code in src/charli3_dendrite/dataclasses/models.py
114 115 116 117 118 119 120 |
|
quantity(index: int = 0) -> int
Quantity of the asset at index
.
Source code in src/charli3_dendrite/dataclasses/models.py
84 85 86 |
|
unit(index: int = 0) -> str
Units of asset at index
.
Source code in src/charli3_dendrite/dataclasses/models.py
80 81 82 |
|
BaseDict
Bases: BaseList
Utility class for dict models.
Source code in src/charli3_dendrite/dataclasses/models.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
__getitem__(item: str)
Get item by key.
Source code in src/charli3_dendrite/dataclasses/models.py
70 71 72 |
|
items()
Return iterable of key-value pairs.
Source code in src/charli3_dendrite/dataclasses/models.py
58 59 60 |
|
keys()
Return iterable of keys.
Source code in src/charli3_dendrite/dataclasses/models.py
62 63 64 |
|
values()
Return iterable of values.
Source code in src/charli3_dendrite/dataclasses/models.py
66 67 68 |
|
BaseList
Bases: RootModel
Utility class for list models.
Source code in src/charli3_dendrite/dataclasses/models.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
PoolSelector
Bases: DendriteBaseModel
Pool selection information for dbsync.
Source code in src/charli3_dendrite/dataclasses/models.py
32 33 34 35 36 |
|
PoolSelectorType
Bases: Enum
How to identify a pool.
DEX pools are generally identified by one of two mechanism: 1. An address 2. Presence of one or more NFTs (asset policy, with or without asset name)
Source code in src/charli3_dendrite/dataclasses/models.py
20 21 22 23 24 25 26 27 28 29 |
|
TokenSummary
Bases: DendriteBaseModel
Summary of token information.
Source code in src/charli3_dendrite/dataclasses/models.py
264 265 266 267 268 269 270 271 272 273 |
|