Skip to content

Commit

Permalink
Namespace changed to terra_classic_sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Munn committed Apr 15, 2023
1 parent ae3f7ff commit 15e83eb
Show file tree
Hide file tree
Showing 226 changed files with 526 additions and 526 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ help:
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)

coverage: ## check code coverage
poetry run coverage run --source terra-classic_sdk -m pytest
poetry run coverage run --source terra_classic_sdk -m pytest
poetry run coverage report -m
poetry run coverage html
# $(BROWSER) htmlcov/index.html
Expand All @@ -54,11 +54,11 @@ clean-test: ## remove test and coverage artifacts
rm -fr .pytest_cache

test: ## runs tests
poetry run pytest --cov=terra-classic_sdk
poetry run pytest --cov=terra_classic_sdk

qa: ## runs static analysis with mypy and flake8
poetry run flake8 terra-classic_sdk
poetry run mypy -p terra-classic_sdk
poetry run flake8 terra_classic_sdk
poetry run mypy -p terra_classic_sdk

format: ## runs code style and formatter
poetry run isort .
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Terra SDK requires <a href="https://www.python.org/downloads/">Python v3.7+</a>.
Terra SDK can be installed (preferably in a `virtual environment` from PyPI using `pip`) as follows:

```
$ pip install -U terra-classic_sdk
$ pip install -U terra_classic_sdk
```

<sub>_You might have `pip3` installed instead of `pip`; proceed according to your own setup._<sub>
Expand Down Expand Up @@ -113,7 +113,7 @@ The following examples are provided to help you get started. Use cases and funct
In order to interact with the Terra blockchain, you'll need a connection to a Terra node. This can be done through setting up an LCDClient (The LCDClient is an object representing an HTTP connection to a Terra LCD node.):

```
>>> from terra-classic_sdk.client.lcd import LCDClient
>>> from terra_classic_sdk.client.lcd import LCDClient
>>> terra = LCDClient(chain_id="columbus-5", url="https://lcd.terra.dev")
```

Expand All @@ -133,7 +133,7 @@ If you want to make asynchronous, non-blocking LCD requests, you can use AsyncLC

<pre><code>
>>> import asyncio
>>> from terra-classic_sdk.client.lcd import AsyncLCDClient
>>> from terra_classic_sdk.client.lcd import AsyncLCDClient

>>> async def main():
<strong>terra = AsyncLCDClient("https://lcd.terra.dev", "columbus-5")</strong>
Expand All @@ -158,8 +158,8 @@ Use `LCDClient.wallet()` to create a Wallet from any Key instance. The Key provi
<sub>**NOTE:** *If you are using MacOS and got an exception 'bad key length' from MnemonicKey, please check your python implementation. if `python3 -c "import ssl; print(ssl.OPENSSL_VERSION)"` returns LibreSSL 2.8.3, you need to reinstall python via pyenv or homebrew.*</sub>

```
>>> from terra-classic_sdk.client.lcd import LCDClient
>>> from terra-classic_sdk.key.mnemonic import MnemonicKey
>>> from terra_classic_sdk.client.lcd import LCDClient
>>> from terra_classic_sdk.key.mnemonic import MnemonicKey
>>> mk = MnemonicKey(mnemonic=MNEMONIC)
>>> terra = LCDClient("https://lcd.terra.dev", "columbus-5")
Expand All @@ -169,9 +169,9 @@ Use `LCDClient.wallet()` to create a Wallet from any Key instance. The Key provi
Once you have your Wallet, you can simply create a StdTx using `Wallet.create_and_sign_tx`.

```
>>> from terra-classic_sdk.core.fee import Fee
>>> from terra-classic_sdk.core.bank import MsgSend
>>> from terra-classic_sdk.client.lcd.api.tx import CreateTxOptions
>>> from terra_classic_sdk.core.fee import Fee
>>> from terra_classic_sdk.core.bank import MsgSend
>>> from terra_classic_sdk.client.lcd.api.tx import CreateTxOptions
>>> tx = wallet.create_and_sign_tx(CreateTxOptions(
msgs=[MsgSend(
Expand Down
Binary file added dist/.DS_Store
Binary file not shown.
Binary file added dist/terra_classic_sdk-2.0.7-py3-none-any.whl
Binary file not shown.
Binary file added dist/terra_classic_sdk-2.0.7.tar.gz
Binary file not shown.
24 changes: 12 additions & 12 deletions docs/common/bech32.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ Addresses
AccAddress
^^^^^^^^^^

.. autoclass:: terra-classic_sdk.core.bech32.AccAddress
.. autoclass:: terra_classic_sdk.core.bech32.AccAddress
:members:

.. autofunction:: terra-classic_sdk.core.bech32.is_acc_address
.. autofunction:: terra_classic_sdk.core.bech32.is_acc_address

.. autofunction:: terra-classic_sdk.core.bech32.to_acc_address
.. autofunction:: terra_classic_sdk.core.bech32.to_acc_address

ValAddress
^^^^^^^^^^

.. autoclass:: terra-classic_sdk.core.bech32.ValAddress
.. autoclass:: terra_classic_sdk.core.bech32.ValAddress
:members:

.. autofunction:: terra-classic_sdk.core.bech32.is_val_address
.. autofunction:: terra_classic_sdk.core.bech32.is_val_address

.. autofunction:: terra-classic_sdk.core.bech32.to_val_address
.. autofunction:: terra_classic_sdk.core.bech32.to_val_address



Expand All @@ -41,20 +41,20 @@ PubKeys
AccPubKey
^^^^^^^^^

.. autoclass:: terra-classic_sdk.core.bech32.AccPubKey
.. autoclass:: terra_classic_sdk.core.bech32.AccPubKey
:members:

.. autofunction:: terra-classic_sdk.core.bech32.is_acc_pubkey
.. autofunction:: terra_classic_sdk.core.bech32.is_acc_pubkey

.. autofunction:: terra-classic_sdk.core.bech32.to_acc_pubkey
.. autofunction:: terra_classic_sdk.core.bech32.to_acc_pubkey

ValPubKey
^^^^^^^^^

.. autoclass:: terra-classic_sdk.core.bech32.ValPubKey
.. autoclass:: terra_classic_sdk.core.bech32.ValPubKey
:members:

.. autofunction:: terra-classic_sdk.core.bech32.is_acc_pubkey
.. autofunction:: terra_classic_sdk.core.bech32.is_acc_pubkey

.. autofunction:: terra-classic_sdk.core.bech32.to_acc_pubkey
.. autofunction:: terra_classic_sdk.core.bech32.to_acc_pubkey

4 changes: 2 additions & 2 deletions docs/common/coin_coins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Coin & Coins
Coin
----

.. autoclass:: terra-classic_sdk.core.coin.Coin
.. autoclass:: terra_classic_sdk.core.coin.Coin
:members:


Coins
-----

.. autoclass:: terra-classic_sdk.core.coins.Coins
.. autoclass:: terra_classic_sdk.core.coins.Coins
:members:
2 changes: 1 addition & 1 deletion docs/common/exceptions.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Exceptions
==========

.. automodule:: terra-classic_sdk.exceptions
.. automodule:: terra_classic_sdk.exceptions
:members:
16 changes: 8 additions & 8 deletions docs/common/keys_wallet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@ A **Key** is an object that provides an abstraction for the agency of signing tr
Key (abstract)
--------------

Implementers of Keys meant for signing should override :meth:`Key.sign()<terra-classic_sdk.key.Key.sign>`
or :meth:`Key.create_signature()<terra-classic_sdk.key.key.Key.create_signature>` methods. More details are
Implementers of Keys meant for signing should override :meth:`Key.sign()<terra_classic_sdk.key.Key.sign>`
or :meth:`Key.create_signature()<terra_classic_sdk.key.key.Key.create_signature>` methods. More details are
available in :ref:`guides/custom_key`.

Some properties such as :meth:`acc_address<terra-classic_sdk.key.key.Key.acc_address>` and
:meth:`val_address<terra-classic_sdk.key.key.Key.val_address>` are provided.
Some properties such as :meth:`acc_address<terra_classic_sdk.key.key.Key.acc_address>` and
:meth:`val_address<terra_classic_sdk.key.key.Key.val_address>` are provided.

.. automodule:: terra-classic_sdk.key.key
.. automodule:: terra_classic_sdk.key.key
:members:

RawKey
------

.. automodule:: terra-classic_sdk.key.raw
.. automodule:: terra_classic_sdk.key.raw
:members:


MnemonicKey
-----------

.. automodule:: terra-classic_sdk.key.mnemonic
.. automodule:: terra_classic_sdk.key.mnemonic
:members:

Wallet
------

.. automodule:: terra-classic_sdk.client.lcd.wallet
.. automodule:: terra_classic_sdk.client.lcd.wallet
:members:
4 changes: 2 additions & 2 deletions docs/common/numeric.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Numeric Types
=============

.. autoclass:: terra-classic_sdk.core.numeric.Numeric
.. autoclass:: terra_classic_sdk.core.numeric.Numeric
:members:

Integers
Expand All @@ -21,5 +21,5 @@ The Python's ``int`` provides support for BigNumber implementation for artihmeti
Decimals
--------

.. autoclass:: terra-classic_sdk.core.Dec
.. autoclass:: terra_classic_sdk.core.Dec
:members:
10 changes: 5 additions & 5 deletions docs/core_modules/auth.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Auth
====

.. note:: Data objects are also aliased under at ``terra-classic_sdk.core.auth``.
.. note:: Data objects are also aliased under at ``terra_classic_sdk.core.auth``.

API
--------

.. autoclass:: terra-classic_sdk.client.lcd.api.auth.AuthAPI
.. autoclass:: terra_classic_sdk.client.lcd.api.auth.AuthAPI
:members:


Expand All @@ -16,17 +16,17 @@ Data
Account
^^^^^^^

.. automodule:: terra-classic_sdk.core.auth.data.account
.. automodule:: terra_classic_sdk.core.auth.data.account
:members:

Transactions
^^^^^^^^^^^^

.. automodule:: terra-classic_sdk.core.tx
.. automodule:: terra_classic_sdk.core.tx
:members:

Public Key
^^^^^^^^^^

.. automodule:: terra-classic_sdk.core.public_key
.. automodule:: terra_classic_sdk.core.public_key
:members:
6 changes: 3 additions & 3 deletions docs/core_modules/authz.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ Authz
API
---

.. autoclass:: terra-classic_sdk.client.lcd.api.authz.AuthzAPI
.. autoclass:: terra_classic_sdk.client.lcd.api.authz.AuthzAPI
:members:

Data
----

.. automodule:: terra-classic_sdk.core.authz.data
.. automodule:: terra_classic_sdk.core.authz.data
:members:

Messages
--------

.. automodule:: terra-classic_sdk.core.authz.msgs
.. automodule:: terra_classic_sdk.core.authz.msgs
:members:
4 changes: 2 additions & 2 deletions docs/core_modules/bank.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Bank
API
---

.. autoclass:: terra-classic_sdk.client.lcd.api.bank.BankAPI
.. autoclass:: terra_classic_sdk.client.lcd.api.bank.BankAPI
:members:

Messages
--------

.. automodule:: terra-classic_sdk.core.bank.msgs
.. automodule:: terra_classic_sdk.core.bank.msgs
:members:
2 changes: 1 addition & 1 deletion docs/core_modules/crisis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Crisis
Messages
--------

.. automodule:: terra-classic_sdk.core.crisis.msgs
.. automodule:: terra_classic_sdk.core.crisis.msgs
:members:
8 changes: 4 additions & 4 deletions docs/core_modules/distribution.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ Distribution
API
---

.. autoclass:: terra-classic_sdk.client.lcd.api.distribution.DistributionAPI
.. autoclass:: terra_classic_sdk.client.lcd.api.distribution.DistributionAPI
:members:

Data
----

.. autoclass:: terra-classic_sdk.client.lcd.api.distribution.Rewards
.. autoclass:: terra_classic_sdk.client.lcd.api.distribution.Rewards
:members:

Messages
--------

.. automodule:: terra-classic_sdk.core.distribution.msgs
.. automodule:: terra_classic_sdk.core.distribution.msgs
:members:

Proposals
---------

.. automodule:: terra-classic_sdk.core.distribution.proposals
.. automodule:: terra_classic_sdk.core.distribution.proposals
:members:
8 changes: 4 additions & 4 deletions docs/core_modules/gov.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ Gov
API
---

.. autoclass:: terra-classic_sdk.client.lcd.api.gov.GovAPI
.. autoclass:: terra_classic_sdk.client.lcd.api.gov.GovAPI
:members:

Data
----

.. automodule:: terra-classic_sdk.core.gov.data
.. automodule:: terra_classic_sdk.core.gov.data
:members:

Messages
--------

.. automodule:: terra-classic_sdk.core.gov.msgs
.. automodule:: terra_classic_sdk.core.gov.msgs
:members:

Proposals
---------

.. automodule:: terra-classic_sdk.core.gov.proposals
.. automodule:: terra_classic_sdk.core.gov.proposals
:members:
4 changes: 2 additions & 2 deletions docs/core_modules/ibc_transfer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ IBC-Transfer
API
---

.. autoclass:: terra-classic_sdk.client.lcd.api.ibc_transfer.IbcTransferAPI
.. autoclass:: terra_classic_sdk.client.lcd.api.ibc_transfer.IbcTransferAPI
:members:

Messages
--------

.. automodule:: terra-classic_sdk.core.ibc_transfer.msgs
.. automodule:: terra_classic_sdk.core.ibc_transfer.msgs
:members:
:exclude-members: b64_to_dict, dict_to_b64
4 changes: 2 additions & 2 deletions docs/core_modules/market.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Market
API
---

.. autoclass:: terra-classic_sdk.client.lcd.api.market.MarketAPI
.. autoclass:: terra_classic_sdk.client.lcd.api.market.MarketAPI
:members:

Messages
--------

.. automodule:: terra-classic_sdk.core.market.msgs
.. automodule:: terra_classic_sdk.core.market.msgs
:members:
2 changes: 1 addition & 1 deletion docs/core_modules/mint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ Mint
API
---

.. autoclass:: terra-classic_sdk.client.lcd.api.mint.MintAPI
.. autoclass:: terra_classic_sdk.client.lcd.api.mint.MintAPI
:members:
Loading

0 comments on commit 15e83eb

Please sign in to comment.