mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-10 16:56:34 +08:00
Revert "added example request and response for PUT /v1/wallet/keys/owner to api docs" This reverts commitd52ee4b31e. Revert "cutting down on the verbosity of logging outputs -- registrar now only prints 1 line on wakeups. storage drivers are concatenated into 1 line" This reverts commit87e3e7ab0d. Revert "adding dropbox as a default storage driver to load, and switched default 'required' drivers to 'disk,dropbox'" This reverts commit9471b0a20a. Revert "adding test case for issue 483, which *also* required fixing the app session schema to handle empty string methods a little bit more gracefully" This reverts commit32efc99d62. Revert "bugfix for the address reencoding in get_zonefile -- checks to see if the address is an address before trying to reencode" This reverts commit1488013b93. Revert "Merge branch 'rc-0.14.3' of github.com:blockstack/blockstack-core into rc-0.14.3" This reverts commitf75ab67960, reversing changes made tofe863bcd3c. Revert "don't create the metadata dir" This reverts commitfe863bcd3c. Revert "make all metadata directories inside the critical section" This reverts commite66236abd2. Revert "don't cast 'None' to string by accident" This reverts commitc6250d5349. Revert "force string" This reverts commite72d43d0be. Revert "add unbound proxy variable" This reverts commit7f1f7e9731. Revert "return raw zonefile" This reverts commit51e858428d. Revert "force string" This reverts commit1ce371644f. Revert "force string" This reverts commit5353cb1015. Revert "require virtualchain rc-0.14.3 and jsontokens-py 0.0.4" This reverts commit346f042db7. Revert "Merge branch 'rc-0.14.3' of https://github.com/blockstack/blockstack-core into rc-0.14.3" This reverts commit1fa1de3e54, reversing changes made to523cf405d7.
82 lines
3.3 KiB
Python
82 lines
3.3 KiB
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Blockstack-client
|
|
~~~~~
|
|
copyright: (c) 2014-2015 by Halfmoon Labs, Inc.
|
|
copyright: (c) 2016 by Blockstack.org
|
|
|
|
This file is part of Blockstack-client.
|
|
|
|
Blockstack-client is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Blockstack-client is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
You should have received a copy of the GNU General Public License
|
|
along with Blockstack-client. If not, see <http://www.gnu.org/licenses/>.
|
|
"""
|
|
import app
|
|
import client
|
|
import config
|
|
import data
|
|
import keys
|
|
import profile
|
|
import proxy
|
|
import user
|
|
import snv
|
|
import rpc
|
|
import storage
|
|
import backend
|
|
import zonefile
|
|
|
|
from proxy import BlockstackRPCClient, get_default_proxy, set_default_proxy, json_traceback
|
|
from proxy import getinfo, ping, get_name_cost, get_namespace_cost, get_all_names, get_names_in_namespace, \
|
|
get_names_owned_by_address, get_consensus_at, get_consensus_range, get_nameops_at, \
|
|
get_nameops_hash_at, get_name_blockchain_record, get_namespace_blockchain_record, \
|
|
get_name_blockchain_history
|
|
|
|
from keys import make_wallet_keys, get_owner_privkey_info, get_data_privkey_info, get_payment_privkey_info
|
|
|
|
from cli import get_cli_methods
|
|
from client import session, get_default_proxy, set_default_proxy, register_storage, load_storage
|
|
from snv import snv_lookup, lookup_snv
|
|
from data import get_immutable, get_immutable_by_name, get_mutable, put_immutable, put_mutable, delete_immutable, \
|
|
delete_mutable, list_immutable_data, list_immutable_data_history, list_update_history, list_zonefile_history
|
|
|
|
from data import set_data_pubkey
|
|
from storage import get_announcement, put_announcement, verify_zonefile
|
|
from profile import get_profile, put_profile, delete_profile
|
|
|
|
from logger import get_logger
|
|
from config import get_config, get_utxo_provider_client, get_tx_broadcaster, default_bitcoind_opts
|
|
from constants import CONFIG_PATH, CONFIG_FILENAME, USER_ZONEFILE_TTL, DEFAULT_API_PORT, get_secret, set_secret
|
|
|
|
from storage import get_data_hash, get_blockchain_compat_hash, get_zonefile_data_hash
|
|
from storage import get_storage_handlers, lookup_storage_handler, hash_zonefile
|
|
from storage import parse_mutable_data as parse_signed_data
|
|
|
|
from wallet import get_payment_addresses_and_balances, get_owner_addresses_and_names, load_wallet, get_wallet
|
|
|
|
from user import is_user_zonefile, user_zonefile_data_pubkey
|
|
|
|
from zonefile import get_name_zonefile, decode_name_zonefile, zonefile_data_replicate, load_name_zonefile, store_name_zonefile
|
|
|
|
from backend.blockchain import get_utxos, broadcast_tx
|
|
|
|
from operations import *
|
|
from backend.nameops import *
|
|
from utxo import get_unspents, broadcast_transaction
|
|
from scripts import UTXOException, is_name_valid
|
|
|
|
from utils import daemonize
|
|
|
|
from backend.queue import in_queue, queue_append, queue_findone, queue_findall, queue_removeall
|
|
|
|
# legacy compatibility
|
|
from virtualchain import SPVClient
|