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

Diff for: Makefile

+4-4
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 .

Diff for: README.md

+8-8
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(

Diff for: dist/.DS_Store

6 KB
Binary file not shown.

Diff for: dist/terra_classic_sdk-2.0.7-py3-none-any.whl

124 KB
Binary file not shown.

Diff for: dist/terra_classic_sdk-2.0.7.tar.gz

86.1 KB
Binary file not shown.

Diff for: docs/common/bech32.rst

+12-12
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

Diff for: docs/common/coin_coins.rst

+2-2
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:

Diff for: docs/common/exceptions.rst

+1-1
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:

Diff for: docs/common/keys_wallet.rst

+8-8
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:

Diff for: docs/common/numeric.rst

+2-2
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:

Diff for: docs/core_modules/auth.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Auth
22
====
33

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

66
API
77
--------
88

9-
.. autoclass:: terra-classic_sdk.client.lcd.api.auth.AuthAPI
9+
.. autoclass:: terra_classic_sdk.client.lcd.api.auth.AuthAPI
1010
:members:
1111

1212

@@ -16,17 +16,17 @@ Data
1616
Account
1717
^^^^^^^
1818

19-
.. automodule:: terra-classic_sdk.core.auth.data.account
19+
.. automodule:: terra_classic_sdk.core.auth.data.account
2020
:members:
2121

2222
Transactions
2323
^^^^^^^^^^^^
2424

25-
.. automodule:: terra-classic_sdk.core.tx
25+
.. automodule:: terra_classic_sdk.core.tx
2626
:members:
2727

2828
Public Key
2929
^^^^^^^^^^
3030

31-
.. automodule:: terra-classic_sdk.core.public_key
31+
.. automodule:: terra_classic_sdk.core.public_key
3232
:members:

Diff for: docs/core_modules/authz.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ Authz
44
API
55
---
66

7-
.. autoclass:: terra-classic_sdk.client.lcd.api.authz.AuthzAPI
7+
.. autoclass:: terra_classic_sdk.client.lcd.api.authz.AuthzAPI
88
:members:
99

1010
Data
1111
----
1212

13-
.. automodule:: terra-classic_sdk.core.authz.data
13+
.. automodule:: terra_classic_sdk.core.authz.data
1414
:members:
1515

1616
Messages
1717
--------
1818

19-
.. automodule:: terra-classic_sdk.core.authz.msgs
19+
.. automodule:: terra_classic_sdk.core.authz.msgs
2020
:members:

Diff for: docs/core_modules/bank.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Bank
44
API
55
---
66

7-
.. autoclass:: terra-classic_sdk.client.lcd.api.bank.BankAPI
7+
.. autoclass:: terra_classic_sdk.client.lcd.api.bank.BankAPI
88
:members:
99

1010
Messages
1111
--------
1212

13-
.. automodule:: terra-classic_sdk.core.bank.msgs
13+
.. automodule:: terra_classic_sdk.core.bank.msgs
1414
:members:

Diff for: docs/core_modules/crisis.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Crisis
44
Messages
55
--------
66

7-
.. automodule:: terra-classic_sdk.core.crisis.msgs
7+
.. automodule:: terra_classic_sdk.core.crisis.msgs
88
:members:

Diff for: docs/core_modules/distribution.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ Distribution
44
API
55
---
66

7-
.. autoclass:: terra-classic_sdk.client.lcd.api.distribution.DistributionAPI
7+
.. autoclass:: terra_classic_sdk.client.lcd.api.distribution.DistributionAPI
88
:members:
99

1010
Data
1111
----
1212

13-
.. autoclass:: terra-classic_sdk.client.lcd.api.distribution.Rewards
13+
.. autoclass:: terra_classic_sdk.client.lcd.api.distribution.Rewards
1414
:members:
1515

1616
Messages
1717
--------
1818

19-
.. automodule:: terra-classic_sdk.core.distribution.msgs
19+
.. automodule:: terra_classic_sdk.core.distribution.msgs
2020
:members:
2121

2222
Proposals
2323
---------
2424

25-
.. automodule:: terra-classic_sdk.core.distribution.proposals
25+
.. automodule:: terra_classic_sdk.core.distribution.proposals
2626
:members:

Diff for: docs/core_modules/gov.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ Gov
44
API
55
---
66

7-
.. autoclass:: terra-classic_sdk.client.lcd.api.gov.GovAPI
7+
.. autoclass:: terra_classic_sdk.client.lcd.api.gov.GovAPI
88
:members:
99

1010
Data
1111
----
1212

13-
.. automodule:: terra-classic_sdk.core.gov.data
13+
.. automodule:: terra_classic_sdk.core.gov.data
1414
:members:
1515

1616
Messages
1717
--------
1818

19-
.. automodule:: terra-classic_sdk.core.gov.msgs
19+
.. automodule:: terra_classic_sdk.core.gov.msgs
2020
:members:
2121

2222
Proposals
2323
---------
2424

25-
.. automodule:: terra-classic_sdk.core.gov.proposals
25+
.. automodule:: terra_classic_sdk.core.gov.proposals
2626
:members:

Diff for: docs/core_modules/ibc_transfer.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ IBC-Transfer
44
API
55
---
66

7-
.. autoclass:: terra-classic_sdk.client.lcd.api.ibc_transfer.IbcTransferAPI
7+
.. autoclass:: terra_classic_sdk.client.lcd.api.ibc_transfer.IbcTransferAPI
88
:members:
99

1010
Messages
1111
--------
1212

13-
.. automodule:: terra-classic_sdk.core.ibc_transfer.msgs
13+
.. automodule:: terra_classic_sdk.core.ibc_transfer.msgs
1414
:members:
1515
:exclude-members: b64_to_dict, dict_to_b64

Diff for: docs/core_modules/market.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Market
44
API
55
---
66

7-
.. autoclass:: terra-classic_sdk.client.lcd.api.market.MarketAPI
7+
.. autoclass:: terra_classic_sdk.client.lcd.api.market.MarketAPI
88
:members:
99

1010
Messages
1111
--------
1212

13-
.. automodule:: terra-classic_sdk.core.market.msgs
13+
.. automodule:: terra_classic_sdk.core.market.msgs
1414
:members:

Diff for: docs/core_modules/mint.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Mint
44
API
55
---
66

7-
.. autoclass:: terra-classic_sdk.client.lcd.api.mint.MintAPI
7+
.. autoclass:: terra_classic_sdk.client.lcd.api.mint.MintAPI
88
:members:

0 commit comments

Comments
 (0)