Skip to content

Commit 79d4210

Browse files
committed
Version 1.12.1.1
1 parent 09ecebf commit 79d4210

File tree

16 files changed

+72
-68
lines changed

16 files changed

+72
-68
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
bitcartcc: bitcartcc/bitcartcc-shared@1
4+
bitcart: bitcart/bitcart-shared@2
55

66
executors:
77
main-executor:
@@ -22,7 +22,7 @@ commands:
2222
- run:
2323
name: clone daemon
2424
command: |
25-
git clone https://github.com/bitcartcc/bitcart ~/bitcart-daemon
25+
git clone https://github.com/bitcart/bitcart ~/bitcart-daemon
2626
2727
- restore_cache:
2828
keys:
@@ -94,12 +94,12 @@ jobs:
9494
command: |
9595
make ci
9696
97-
- bitcartcc/codecov
97+
- bitcart/codecov
9898

9999
- upload-results
100100

101101
deploy:
102-
executor: bitcartcc/docker-python
102+
executor: bitcart/docker-python
103103
docker:
104104
- image: cimg/python:3.8
105105
steps:
@@ -126,7 +126,7 @@ workflows:
126126
version: 2
127127
test_and_deploy:
128128
jobs:
129-
- bitcartcc/lint:
129+
- bitcart/lint:
130130
name: lint
131131
- test:
132132
name: test-<< matrix.v >>
@@ -140,7 +140,7 @@ workflows:
140140
- "3.10"
141141
- "3.11"
142142

143-
- bitcartcc/functional-tests:
143+
- bitcart/functional-tests:
144144
name: functional-tests
145145
dependency-steps:
146146
- install_dependencies

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Latest changes
44

5+
## 1.12.1.1
6+
7+
Rename BitcartCC to Bitcart
8+
59
## 1.12.1.0
610

711
Electrums upgrade to 4.4.5

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Contributing to BitcartCC SDK
1+
# Contributing to Bitcart SDK
22

3-
Welcome, and thank you for your interest in contributing to BitcartCC SDK!
3+
Welcome, and thank you for your interest in contributing to Bitcart SDK!
44

5-
Our [central contributing guidelines](https://github.com/bitcartcc/bitcart/blob/master/CONTRIBUTING.md) apply to all BitcartCC repositories.
5+
Our [central contributing guidelines](https://github.com/bitcart/bitcart/blob/master/CONTRIBUTING.md) apply to all Bitcart repositories.
66

7-
Below are the instructions for setting up development environment with BitcartCC SDK.
7+
Below are the instructions for setting up development environment with Bitcart SDK.
88

99
## Setting up development environment
1010

11-
Some general advice can be found in our [central contributing guidelines](https://github.com/bitcartcc/bitcart/blob/master/CONTRIBUTING.md#setting-up-development-environment).
11+
Some general advice can be found in our [central contributing guidelines](https://github.com/bitcart/bitcart/blob/master/CONTRIBUTING.md#setting-up-development-environment).
1212

1313
Instructions:
1414

@@ -26,7 +26,7 @@ based on context.
2626

2727
From now on, development environment is ready.
2828

29-
Make sure to follow [our coding guidelines](https://github.com/bitcartcc/bitcart/blob/master/CODING_STANDARDS.md) when developing.
29+
Make sure to follow [our coding guidelines](https://github.com/bitcart/bitcart/blob/master/CODING_STANDARDS.md) when developing.
3030

3131
This repository uses pre-commit hooks for better development experience. Install them with:
3232

@@ -73,7 +73,7 @@ Before running extended test suite, start bitcoind and fulcrum. Each time regtes
7373

7474
Run `make bitcoind` to start bitcoind, `make fulcrum` to start fulcrum.
7575

76-
After that, stop your testnet BitcartCC daemon, and start regtest one from cloned `bitcart` repo by running `make regtest`.
76+
After that, stop your testnet Bitcart daemon, and start regtest one from cloned `bitcart` repo by running `make regtest`.
7777

7878
You should also start an lightning node for testing, run `make regtestln` in another terminal.
7979

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# BitcartCC SDK
1+
# Bitcart SDK
22

3-
[![CircleCI](https://circleci.com/gh/bitcartcc/bitcart-sdk.svg?style=svg)](https://circleci.com/gh/bitcartcc/bitcart-sdk)
4-
[![Codecov](https://img.shields.io/codecov/c/github/bitcartcc/bitcart-sdk?style=flat-square)](https://codecov.io/gh/bitcartcc/bitcart-sdk)
3+
[![CircleCI](https://circleci.com/gh/bitcart/bitcart-sdk.svg?style=svg)](https://circleci.com/gh/bitcart/bitcart-sdk)
4+
[![Codecov](https://img.shields.io/codecov/c/github/bitcart/bitcart-sdk?style=flat-square)](https://codecov.io/gh/bitcart/bitcart-sdk)
55
[![PyPI version](https://img.shields.io/pypi/v/bitcart.svg?style=flat-square)](https://pypi.python.org/pypi/bitcart/)
6-
[![Read the Docs](https://img.shields.io/readthedocs/bitcart-sdk?style=flat-square)](https://sdk.bitcartcc.com)
6+
[![Read the Docs](https://img.shields.io/readthedocs/bitcart-sdk?style=flat-square)](https://sdk.bitcart.ai)
77

8-
This is a client library(wrapper) around BitcartCC daemon. It is used to simplify common commands.
8+
This is a client library(wrapper) around Bitcart daemon. It is used to simplify common commands.
99
Coins support(⚡ means lightning is supported):
1010

1111
- Bitcoin (⚡)
@@ -40,7 +40,7 @@ async def main():
4040

4141
Async callback functions for `@btc.on` are supported.
4242

43-
For more information [Read the Docs](https://sdk.bitcartcc.com)
43+
For more information [Read the Docs](https://sdk.bitcart.ai)
4444

4545
## Release versioning
4646

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
# -- Project information -----------------------------------------------------
2424

25-
project = "BitcartCC SDK"
26-
copyright = "2019, MrNaif2018"
25+
project = "Bitcart SDK"
26+
copyright = "2019-2023, MrNaif2018"
2727
author = "MrNaif2018"
2828

2929
# The full version, including alpha/beta/rc tags

docs/events.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BitcartCC SDK Events System
1+
Bitcart SDK Events System
22
---------------------------
33

44
Introduction

docs/index.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.. BitcartCC SDK documentation master file, created by
1+
.. Bitcart SDK documentation master file, created by
22
sphinx-quickstart on Tue Jul 9 22:11:54 2019.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to BitcartCC SDK's documentation!
6+
Welcome to Bitcart SDK's documentation!
77
=========================================
88

99
.. toctree::
@@ -15,12 +15,12 @@ Welcome to BitcartCC SDK's documentation!
1515
apimanager
1616
api
1717

18-
BitcartCC is a platform to simplify cryptocurrencies adaptation.
19-
This SDK is part of BitcartCC.
20-
Using this SDK you can easily connect to BitcartCC daemon
18+
Bitcart is a platform to simplify cryptocurrencies adaptation.
19+
This SDK is part of Bitcart.
20+
Using this SDK you can easily connect to Bitcart daemon
2121
and code scripts around it easily.
2222

23-
Behold, the power of BitcartCC:
23+
Behold, the power of Bitcart:
2424

2525
.. code-block:: python
2626

docs/installation.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Installing BitcartCC SDK
1+
Installing Bitcart SDK
22
========================
33

44
Simply run
@@ -12,11 +12,11 @@ to install the library.
1212
But to initialize bitcoin instance you will need
1313
``rpc_url``, ``rpc_login`` and ``rpc_password`` (not required, defaults
1414
work with default ports and authentification).
15-
For that you'll need BitcartCC daemon, so:
15+
For that you'll need Bitcart daemon, so:
1616

1717
.. code-block:: sh
1818
19-
git clone https://github.com/bitcartcc/bitcart
19+
git clone https://github.com/bitcart/bitcart
2020
cd bitcart
2121
pip install -r requirements/base.txt
2222
pip install -r requirements/daemons/btc.txt
@@ -28,7 +28,7 @@ For example if you run bitcoin, ``coin_name=btc, COIN_NAME=BTC``, for litecoin `
2828
Run ``pip install -r requirements/daemons/coin_name.txt`` to install
2929
requirements for daemon of ``coin_name``.
3030

31-
This will clone main BitcartCC repo and install dependencies,
31+
This will clone main Bitcart repo and install dependencies,
3232
we recommend using virtualenv for consistency(some daemons conflict one
3333
with another, so using one virtualenv per daemon is fine).
3434

@@ -58,10 +58,10 @@ Where port is the port your daemon uses.
5858
You can change port and host by using ``COIN_NAME_HOST`` and ``COIN_NAME_PORT``
5959
env variables.
6060
Default ports are starting from 5000 and increase for each daemon by 1
61-
(in order how they were added to BitcartCC).
61+
(in order how they were added to Bitcart).
6262
Refer to main docs for ports information.
6363
Bitcoin port is 5000, litecoin is 5001, etc.
64-
So, to initialize your BitcartCC instance right now,
64+
So, to initialize your Bitcart instance right now,
6565
import it and use those settings:
6666

6767
.. code-block:: python

examples/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# BitcartCC usage examples
1+
# Bitcart usage examples
22

3-
This folder contains examples of using BitcartCC.
3+
This folder contains examples of using Bitcart.
44

5-
Examples requirements for that folder is in requirements.txt(actually just BitcartCC SDK)
5+
Examples requirements for that folder is in requirements.txt(actually just Bitcart SDK)
66

77
Examples:
88

9-
- Full BitcartCC API usage example: full.py
9+
- Full Bitcart API usage example: full.py
1010
- Get transaction by tx hash(CLI): gettx.py
1111
- Get wallet onchain and offchain(lightning) balance: getbalance.py
1212
- Pay to some address(CLI): donateto.py

examples/atomic_tipbot/README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Full example of using BitcartCC: Telegram Atomic Tip Bot
1+
# Full example of using Bitcart: Telegram Atomic Tip Bot
22

33
**_Note: this example doesn't work because of `rate()` command being removed. Fetch exchange rates yourself or use Merchants API for this_**
44

@@ -10,10 +10,10 @@ Used tools:
1010
- Mongo DB
1111
- Pyrogram(for bot)
1212
- qrcode library for generating qr codes
13-
- BitcartCC to do all the bitcoin and lightning job.
13+
- Bitcart to do all the bitcoin and lightning job.
1414

1515
Special thanks to @reablaz, for his original [Atomic tips bot](https://github.com/reablaz/atomic_tipbot)
16-
This bot is rewritten in my style, using modern python 3.6+ f-strings, and of course, BitcartCC. (and made this example reproducible)
16+
This bot is rewritten in my style, using modern python 3.6+ f-strings, and of course, Bitcart. (and made this example reproducible)
1717

1818
## Installation
1919

@@ -24,7 +24,7 @@ After that, install dependencies of this example using:
2424
`pip install -r requirements.txt`
2525

2626
Check requirements.txt if you want to know exactly which dependencies were used and why.
27-
BitcartCC SDK in pip is just `bitcart`.
27+
Bitcart SDK in pip is just `bitcart`.
2828

2929
After that, to run your bot, you need to have a telegram account, login to
3030
my.telegram.org, click on API development tools, create app if not yet, and take App api_id and api_hash from there.
@@ -39,19 +39,19 @@ After that, you need to get your x/y/z pub/prv(or Electrum seed). Get it from yo
3939
Enter it in xpub section of config.
4040
After that, rename config.ini.example to config.ini.
4141

42-
Now everything is ready, we only need to start BitcartCC daemon.
42+
Now everything is ready, we only need to start Bitcart daemon.
4343
There are two ways to do it, automatic(via docker, recommended), or directly via your installed python.
4444

4545
### Automatic
4646

4747
Clone bitcart-docker repository:
4848

4949
```
50-
git clone https://github.com/bitcartcc/bitcart-docker
50+
git clone https://github.com/bitcart/bitcart-docker
5151
cd bitcart-docker
5252
```
5353

54-
Now you need to configure BitcartCC, but if you need only BTC daemon, run those
54+
Now you need to configure Bitcart, but if you need only BTC daemon, run those
5555

5656
```
5757
export BITCART_INSTALL=none
@@ -74,10 +74,10 @@ If you will later need to stop them, run `./stop.sh`
7474

7575
As for this example, Python 3.8+ is required. Using virtualenv is recommended.
7676

77-
Clone BitcartCC repository:
77+
Clone Bitcart repository:
7878

7979
```
80-
git clone https://github.com/bitcartcc/bitcart
80+
git clone https://github.com/bitcart/bitcart
8181
cd bitcart
8282
```
8383

@@ -107,13 +107,13 @@ If you have come here to see how it works, read the next part.
107107
Code is formatted using black, checked with flake8.
108108
Below are some comments regarding what is what.
109109

110-
### BitcartCC
110+
### Bitcart
111111

112-
BitcartCC is main in this example, it is used for all bot functions(generate invoice, wait for invoice payment, withdraw, etc.)
112+
Bitcart is main in this example, it is used for all bot functions(generate invoice, wait for invoice payment, withdraw, etc.)
113113

114-
[BitcartCC Python SDK](https://pypi.org/project/bitcart) is used to make BitcartCC usage easy. It internally connects to BitcartCC daemon.
114+
[Bitcart Python SDK](https://pypi.org/project/bitcart) is used to make Bitcart usage easy. It internally connects to Bitcart daemon.
115115

116-
Look at # bitcart: comments in code to find things related to BitcartCC.
116+
Look at # bitcart: comments in code to find things related to Bitcart.
117117
As you can see, it is quite simple, but let's recap it.
118118

119119
To use any coins you need, simply import them from `bitcart`, in case of bitcoin:
@@ -128,16 +128,16 @@ You can initialize it without any parameters, too, but it will be limited(wallet
128128

129129
BTC class accepts the following parameters:
130130

131-
- rpc_url - url of BitcartCC daemon to connect to
132-
- rpc_user - user to login into your BitcartCC daemon
133-
- rpc_pass - password to login into your BitcartCC daemon
131+
- rpc_url - url of Bitcart daemon to connect to
132+
- rpc_user - user to login into your Bitcart daemon
133+
- rpc_pass - password to login into your Bitcart daemon
134134
- xpub - actually it is not just xpub, it can be x/y/z pub/prv, almost anything. Electrum seed can be used too.
135135
- session - completely optional, pass your precreated aiohttp.ClientSession(only if you need to customize something in default session)
136136

137137
After intializing coin, you can start using it.
138-
BitcartCC SDK coins' main methods are fully documented(often with examples)
138+
Bitcart SDK coins' main methods are fully documented(often with examples)
139139
Those are highlevel methods.
140-
If you see something missing, open issue at [BitcartCC SDK repository](https://github.com/bitcartcc/bitcart-sdk)
140+
If you see something missing, open issue at [Bitcart SDK repository](https://github.com/bitcart/bitcart-sdk)
141141
If you need to use electrum's RPC methods, call them via btc.server(a wrapper around it), like:
142142

143143
`btc.server.validateaddress()`
@@ -150,7 +150,7 @@ To see a list of all RPC methods, call
150150

151151
RPC methods accessible via btc.server can't have intellisence in your IDE because they are completely dynamic(via `__getattr__`).
152152

153-
Now, about using BitcartCC in this bot's code.
153+
Now, about using Bitcart in this bot's code.
154154
Use `btc.add_request(amount, description="", expire=15)` to create BTC invoice
155155
Amount is amount in BTC, description is optional and is description of invoice, expire is the time invoice will expire in,
156156
default 15 minutes, but if you pass None, invoice will never expire.
@@ -205,7 +205,7 @@ def payment_handler(event, arg):
205205
# process it here
206206
```
207207

208-
Possible events can be found at [SDK docs](https://sdk.bitcartcc.com/en/latest/events.html).
208+
Possible events can be found at [SDK docs](https://sdk.bitcart.ai/en/latest/events.html).
209209

210210
To start listening for those updates, you need to start polling, for that, use:
211211

@@ -224,9 +224,9 @@ To get transaction, use `btc.get_tx(tx_hash)`
224224

225225
To accept updates for multiple coins, even in different currencies, you can use APIManager.
226226

227-
You can read about APIManager in [SDK docs](https://sdk.bitcartcc.com/en/latest/apimanager.html).
227+
You can read about APIManager in [SDK docs](https://sdk.bitcart.ai/en/latest/apimanager.html).
228228

229-
For more information, read [BitcartCC SDK docs](https://sdk.bitcartcc.com) and [Main BitcartCC docs](https://docs.bitcartcc.com)
229+
For more information, read [Bitcart SDK docs](https://sdk.bitcart.ai) and [Main Bitcart docs](https://docs.bitcart.ai)
230230

231231
### Telegram bot
232232

examples/atomic_tipbot/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def start(client, message):
278278
send_welcome = True
279279
if send_welcome:
280280
message.reply(
281-
"Welcome to the BitcartCC Atomic TipBot! /help for list of commands",
281+
"Welcome to the Bitcart Atomic TipBot! /help for list of commands",
282282
quote=False,
283283
)
284284

examples/atomic_tipbot/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ tgcrypto
55
pymongo
66
# qr codes
77
qrcode[pil]
8-
# BitcartCC SDK
8+
# Bitcart SDK
99
bitcart

examples/donateto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
except InvalidOperation:
1717
print("Invalid amount passed")
1818
sys.exit(1)
19-
# bitcartcc-related code
19+
# bitcart-related code
2020
btc = BTC(xpub=xpub)
2121
try:
2222
tx_hash = btc.pay_to(address, amount)

examples/getbalance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
print("Usage: ./getbalance xpub")
1010
sys.exit(1)
1111
xpub = sys.argv[1]
12-
# bitcartcc-related code
12+
# bitcart-related code
1313
btc = BTC(xpub=xpub)
1414
try:
1515
balance = btc.balance()

0 commit comments

Comments
 (0)