Commit Graph

867 Commits

Author SHA1 Message Date
Jude Nelson
d20bbe6fcc add input checkers (extracted from the back-plane RPC server) 2018-04-19 11:58:29 -04:00
Jude Nelson
727f744ad7 fix account history query to be more REST-y; also be more rigorous about checking inputs using the check_*() methods (now in blockstack.lib.scripts) 2018-04-19 11:57:57 -04:00
Jude Nelson
aea826bd80 execute account vesting commits as a single transaction (greatly improves performance), also change some method names to clarify that they concern only name operations 2018-04-19 11:56:51 -04:00
Jude Nelson
e6a84586d7 clarify names of some methods to mention that they specifically concern name operations (not token operations) 2018-04-19 11:56:31 -04:00
Jude Nelson
44e6224589 be more rigorous about checking for the presence of required consensus fields *early* 2018-04-19 11:56:10 -04:00
Jude Nelson
c1788b1974 be more rigorous about giving back http status hints on error paths 2018-04-19 11:55:54 -04:00
Jude Nelson
f912bf4179 remove check_*() code into blockstack/lib/scripts.py; be more rigorous about returning HTTP error codes; WIP add methods to query account operations and history 2018-04-19 11:35:22 -04:00
Jude Nelson
f028e108df small bugfixes 2018-04-15 22:37:20 -04:00
Jude Nelson
c0b416b09d small bugfixes 2018-04-15 22:37:11 -04:00
Jude Nelson
c6caca22eb ascending, not descending 2018-04-15 22:37:01 -04:00
Jude Nelson
c763e03122 small bugfixes 2018-04-15 22:36:46 -04:00
Jude Nelson
0df7a09bbe define the account schema 2018-04-13 19:19:29 -04:00
Jude Nelson
0319985a87 define check-wrappers and state tags for token operations 2018-04-13 19:19:07 -04:00
Jude Nelson
f0ed26b948 add /v1/prices and /v2/prices endpoints; add account status and history endpoints; do a better job of not returning HTTP 500 unless we have a backplane connection error 2018-04-13 19:18:32 -04:00
Jude Nelson
16744ed3a8 make all check() failures log as a warning, instead of as debug 2018-04-13 19:18:11 -04:00
Jude Nelson
f59b63b6b7 remvoe dead code; patch in TOKEN_TRANSFER callbacks 2018-04-13 19:17:53 -04:00
Jude Nelson
a07d932074 add TOKEN_TRANSFER opcode implementation 2018-04-13 19:17:40 -04:00
Jude Nelson
e994fb319a commit vesting at block_height+1 at the end of the block, so vested tokens are immediately usable. Also, expand the set of acceptable operations to include token operations 2018-04-13 19:17:06 -04:00
Jude Nelson
86d5102bb0 add full-fledged support for token operations that both credit and debit accounts when they are applied. Also, add high-level methods for querying account state 2018-04-13 19:16:37 -04:00
Jude Nelson
aa729548c7 add a transfer-lock to accounts to force them to vest and spend, instead of sell tokens. Also, remove some dead code and add the ability to query account histories 2018-04-13 19:16:03 -04:00
Jude Nelson
b9045f846d add TOKEN_TRANSFER opcode description 2018-04-13 19:15:47 -04:00
Jude Nelson
0ba1cf581e be more uniform in our error codes for validation errors versus assertion errors versus connection errors; add support for querying account state 2018-04-13 19:15:19 -04:00
Jude Nelson
8a6264508a asking for and not receiving a zone file isn't necessarily a problem, since the "node" could be a load-balancer 2018-04-13 19:14:49 -04:00
Jude Nelson
ab519b4c8a return an http_status hint from RPC methods; add support for querying account state on the backplane interface 2018-04-13 19:14:28 -04:00
Jude Nelson
bcb2b514e0 add get_all_subdomains() and get_subdomain_last_sequence() methods to make server-side subdomains compatible with core.blockstack.org's API 2018-04-05 17:31:33 -04:00
Jude Nelson
1e5d2ff2e0 add load_configuration() for non-interactive configuration loading 2018-04-05 17:30:48 -04:00
Jude Nelson
790de7c616 reply JSON for name counts; fix route 2018-04-05 17:30:35 -04:00
Jude Nelson
ceb53bb0bd restore get_zonefiles_by_block 2018-04-05 17:30:24 -04:00
Jude Nelson
f11bc7df06 import subdomains 2018-04-05 17:30:12 -04:00
Jude Nelson
0aefefb901 remove reliance on utilitybelt 2018-04-05 17:30:00 -04:00
Jude Nelson
6f75f4747e support starting blocktackd in "api-only" mode 2018-04-05 17:29:44 -04:00
Jude Nelson
cee004d970 fix bitcoind connection bug that restores SNV 2018-04-03 19:02:10 -04:00
Jude Nelson
9deaa8d0de remove misleading comment 2018-04-03 19:01:59 -04:00
Jude Nelson
e73d9c1012 remove unused route 2018-04-03 19:01:15 -04:00
Jude Nelson
1f93bd3c72 for name_import, set the op_fee field to the price of the name *only* if the name's namespace is priced in BTC. Otherwise, set it to 0, and set the token_fee field to the price of the name 2018-04-03 19:00:44 -04:00
Jude Nelson
8f4f2f6653 typo in comment 2018-04-03 19:00:37 -04:00
Jude Nelson
24fe97f75d these epoch features aren't really doable, given the limited size of op_returns 2018-04-03 19:00:15 -04:00
Jude Nelson
e51b11e3ea use the right authserviceproxy 2018-04-03 19:00:04 -04:00
Jude Nelson
52657b1a9c fix import 2018-04-03 18:14:31 -04:00
Jude Nelson
3659bbd636 migrate SNV over to blockstack 2018-04-03 18:01:24 -04:00
Jude Nelson
b546844282 fix up imports 2018-04-03 18:01:18 -04:00
Jude Nelson
66d541041f fix copyright statement 2018-04-03 18:01:05 -04:00
Jude Nelson
3737f2250a add compatibility code that emulates the insight-api for use in the regtest framework (until the browser stops needing it) 2018-04-03 18:00:42 -04:00
Jude Nelson
9e1e46a366 fix decoding bug 2018-04-03 18:00:31 -04:00
Jude Nelson
3579d59274 only expect tokens to be burned in a NAME_PREORDER if the OP_RETURN provides them 2018-04-03 18:00:09 -04:00
Jude Nelson
5426171feb typo in debug output 2018-04-03 17:59:51 -04:00
Jude Nelson
87b9f85e11 preserve the ability to decode zonefiles to JSON, and the ability to connect to bitcoind 2018-04-03 17:59:28 -04:00
Jude Nelson
f8ce72ce90 version bump! 2018-03-22 19:26:04 -04:00
Jude Nelson
2a5d7e7491 port RESTful API to blockstackd (#774) 2018-03-22 19:24:28 -04:00
Jude Nelson
8d426ca9b5 vest tokens at each block 2018-03-22 19:24:14 -04:00