Module libra.chain_ids

Defines available static chain ids


from libra import chain_ids

# print chain id's int value
print(chain_ids.TESTING.to_int())
Expand source code
# Copyright (c) The Libra Core Contributors
# SPDX-License-Identifier: Apache-2.0

"""Defines available static chain ids

```python

from libra import chain_ids

# print chain id's int value
print(chain_ids.TESTING.to_int())
```

"""

from .libra_types import ChainId

MAINNET: ChainId = ChainId.from_int(1)
TESTNET: ChainId = ChainId.from_int(2)
DEVNET: ChainId = ChainId.from_int(3)
TESTING: ChainId = ChainId.from_int(4)
PREMAINNET: ChainId = ChainId.from_int(19)