Jude Nelson
febfbf73d7
fix a few regressions from the move away from blockstack_client
2018-04-27 01:11:03 -04:00
Jude Nelson
6501e17c48
return renewal_deadline
2018-04-26 00:09:45 -04:00
Jude Nelson
bfe729c6c2
proxy objects no longer contain SPV headers
2018-04-26 00:09:34 -04:00
Jude Nelson
12b7e3727f
REST endpoint's zonefile hash length is 2x the length in bytes
2018-04-24 17:24:13 -04:00
Jude Nelson
8f51bcb4a0
separate out error validation
2018-04-24 10:43:00 -04:00
Jude Nelson
eb646ba665
add doctests to scripts module
2018-04-23 16:17:46 -04:00
Jude Nelson
c2a6bd5eb8
note that in the next release, we're going to have to change the subdomain regex
2018-04-23 16:17:28 -04:00
Jude Nelson
6c676a4290
include metadata with an account in the genesis block
2018-04-23 16:17:11 -04:00
Jude Nelson
9513f5d672
check that the name is valid in register/renewal (we already do this implicitly through the check() method, but we should do it explicitly for clarity)
2018-04-23 16:16:49 -04:00
Jude Nelson
ff4488eed5
add doctests to b40 module
2018-04-23 16:16:38 -04:00
Jude Nelson
3775dfac97
clean up subdomains infrastructure port from develop
2018-04-20 18:51:05 -04:00
Jude Nelson
577562afc2
port subdomains endpoints to this branch
2018-04-20 18:50:47 -04:00
Jude Nelson
e0b07f8aa8
catch socket errors for all RPC methods:
...
* return HTTP 502 hint for invalid data and connection errors that are not timeouts
* return HTTP 503 for timeouts
* return HTTP 500 for errors that are not any of the above
2018-04-20 18:49:49 -04:00
Jude Nelson
4fc7c5f999
Merge branch 'develop' into feature/token-v1
2018-04-20 15:54:54 -04:00
Aaron Blankstein
51f8e61d7b
add+refactor to /v1/subdomains and /v1/blockchains/bitcoin/subdomains_count
2018-04-20 12:02:08 -04:00
Aaron Blankstein
7a5bf1751c
include subdomains in response to /v1/names/ pagination
2018-04-20 11:11:19 -04:00
Jude Nelson
7d4fb4f57a
history can include token information, as well as name/namespace information
2018-04-19 19:07:38 -04:00
Jude Nelson
ad12302fa1
be liberal in what we accept as RESTful arguments, so we can distinguish between a 400 and a 404 (instead of universally replying 404 for invalid arguments)
2018-04-19 19:07:00 -04:00
Jude Nelson
cdf97d02ba
rename some columns for tokentransfer so they're consistent with the name_records table
2018-04-19 19:06:40 -04:00
Jude Nelson
438ec5c071
note on state_create_put_preorder()
2018-04-19 19:06:31 -04:00
Jude Nelson
8698e660c6
make sure that we keep the token fee as a string when we go to store it in the name db
2018-04-19 19:06:12 -04:00
Jude Nelson
b56e5f2d7b
raise validation error if the back-plane does not return an HTTP hint
2018-04-19 19:05:06 -04:00
Jude Nelson
fd20fead1d
when storing a preorder on namedb_state_create(), make sure its token_fee is a string so we don't accidentally load and return big integers
2018-04-19 19:04:25 -04:00
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
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
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