Skip to content

Commit 15e83eb

Browse files
author
Geoff Munn
committed
Namespace changed to terra_classic_sdk
1 parent ae3f7ff commit 15e83eb

File tree

226 files changed

+526
-526
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

226 files changed

+526
-526
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ help:
2727
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
2828

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

5656
test: ## runs tests
57-
poetry run pytest --cov=terra-classic_sdk
57+
poetry run pytest --cov=terra_classic_sdk
5858

5959
qa: ## runs static analysis with mypy and flake8
60-
poetry run flake8 terra-classic_sdk
61-
poetry run mypy -p terra-classic_sdk
60+
poetry run flake8 terra_classic_sdk
61+
poetry run mypy -p terra_classic_sdk
6262

6363
format: ## runs code style and formatter
6464
poetry run isort .

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Terra SDK requires <a href="https://www.python.org/downloads/">Python v3.7+</a>.
7373
Terra SDK can be installed (preferably in a `virtual environment` from PyPI using `pip`) as follows:
7474

7575
```
76-
$ pip install -U terra-classic_sdk
76+
$ pip install -U terra_classic_sdk
7777
```
7878

7979
<sub>_You might have `pip3` installed instead of `pip`; proceed according to your own setup._<sub>
@@ -113,7 +113,7 @@ The following examples are provided to help you get started. Use cases and funct
113113
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.):
114114

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

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

134134
<pre><code>
135135
>>> import asyncio
136-
>>> from terra-classic_sdk.client.lcd import AsyncLCDClient
136+
>>> from terra_classic_sdk.client.lcd import AsyncLCDClient
137137

138138
>>> async def main():
139139
<strong>terra = AsyncLCDClient("https://lcd.terra.dev", "columbus-5")</strong>
@@ -158,8 +158,8 @@ Use `LCDClient.wallet()` to create a Wallet from any Key instance. The Key provi
158158
<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>
159159

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

171171
```
172-
>>> from terra-classic_sdk.core.fee import Fee
173-
>>> from terra-classic_sdk.core.bank import MsgSend
174-
>>> from terra-classic_sdk.client.lcd.api.tx import CreateTxOptions
172+
>>> from terra_classic_sdk.core.fee import Fee
173+
>>> from terra_classic_sdk.core.bank import MsgSend
174+
>>> from terra_classic_sdk.client.lcd.api.tx import CreateTxOptions
175175
176176
>>> tx = wallet.create_and_sign_tx(CreateTxOptions(
177177
msgs=[MsgSend(

dist/.DS_Store

6 KB
Binary file not shown.
124 KB
Binary file not shown.

dist/terra_classic_sdk-2.0.7.tar.gz

86.1 KB
Binary file not shown.

docs/common/bech32.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ Addresses
1616
AccAddress
1717
^^^^^^^^^^
1818

19-
.. autoclass:: terra-classic_sdk.core.bech32.AccAddress
19+
.. autoclass:: terra_classic_sdk.core.bech32.AccAddress
2020
:members:
2121

22-
.. autofunction:: terra-classic_sdk.core.bech32.is_acc_address
22+
.. autofunction:: terra_classic_sdk.core.bech32.is_acc_address
2323

24-
.. autofunction:: terra-classic_sdk.core.bech32.to_acc_address
24+
.. autofunction:: terra_classic_sdk.core.bech32.to_acc_address
2525

2626
ValAddress
2727
^^^^^^^^^^
2828

29-
.. autoclass:: terra-classic_sdk.core.bech32.ValAddress
29+
.. autoclass:: terra_classic_sdk.core.bech32.ValAddress
3030
:members:
3131

32-
.. autofunction:: terra-classic_sdk.core.bech32.is_val_address
32+
.. autofunction:: terra_classic_sdk.core.bech32.is_val_address
3333

34-
.. autofunction:: terra-classic_sdk.core.bech32.to_val_address
34+
.. autofunction:: terra_classic_sdk.core.bech32.to_val_address
3535

3636

3737

@@ -41,20 +41,20 @@ PubKeys
4141
AccPubKey
4242
^^^^^^^^^
4343

44-
.. autoclass:: terra-classic_sdk.core.bech32.AccPubKey
44+
.. autoclass:: terra_classic_sdk.core.bech32.AccPubKey
4545
:members:
4646

47-
.. autofunction:: terra-classic_sdk.core.bech32.is_acc_pubkey
47+
.. autofunction:: terra_classic_sdk.core.bech32.is_acc_pubkey
4848

49-
.. autofunction:: terra-classic_sdk.core.bech32.to_acc_pubkey
49+
.. autofunction:: terra_classic_sdk.core.bech32.to_acc_pubkey
5050

5151
ValPubKey
5252
^^^^^^^^^
5353

54-
.. autoclass:: terra-classic_sdk.core.bech32.ValPubKey
54+
.. autoclass:: terra_classic_sdk.core.bech32.ValPubKey
5555
:members:
5656

57-
.. autofunction:: terra-classic_sdk.core.bech32.is_acc_pubkey
57+
.. autofunction:: terra_classic_sdk.core.bech32.is_acc_pubkey
5858

59-
.. autofunction:: terra-classic_sdk.core.bech32.to_acc_pubkey
59+
.. autofunction:: terra_classic_sdk.core.bech32.to_acc_pubkey
6060

docs/common/coin_coins.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Coin & Coins
44
Coin
55
----
66

7-
.. autoclass:: terra-classic_sdk.core.coin.Coin
7+
.. autoclass:: terra_classic_sdk.core.coin.Coin
88
:members:
99

1010

1111
Coins
1212
-----
1313

14-
.. autoclass:: terra-classic_sdk.core.coins.Coins
14+
.. autoclass:: terra_classic_sdk.core.coins.Coins
1515
:members:

docs/common/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Exceptions
22
==========
33

4-
.. automodule:: terra-classic_sdk.exceptions
4+
.. automodule:: terra_classic_sdk.exceptions
55
:members:

docs/common/keys_wallet.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ A **Key** is an object that provides an abstraction for the agency of signing tr
66
Key (abstract)
77
--------------
88

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

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

16-
.. automodule:: terra-classic_sdk.key.key
16+
.. automodule:: terra_classic_sdk.key.key
1717
:members:
1818

1919
RawKey
2020
------
2121

22-
.. automodule:: terra-classic_sdk.key.raw
22+
.. automodule:: terra_classic_sdk.key.raw
2323
:members:
2424

2525

2626
MnemonicKey
2727
-----------
2828

29-
.. automodule:: terra-classic_sdk.key.mnemonic
29+
.. automodule:: terra_classic_sdk.key.mnemonic
3030
:members:
3131

3232
Wallet
3333
------
3434

35-
.. automodule:: terra-classic_sdk.client.lcd.wallet
35+
.. automodule:: terra_classic_sdk.client.lcd.wallet
3636
:members:

docs/common/numeric.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Numeric Types
44
=============
55

6-
.. autoclass:: terra-classic_sdk.core.numeric.Numeric
6+
.. autoclass:: terra_classic_sdk.core.numeric.Numeric
77
:members:
88

99
Integers
@@ -21,5 +21,5 @@ The Python's ``int`` provides support for BigNumber implementation for artihmeti
2121
Decimals
2222
--------
2323

24-
.. autoclass:: terra-classic_sdk.core.Dec
24+
.. autoclass:: terra_classic_sdk.core.Dec
2525
:members:

0 commit comments

Comments
 (0)