Commit Graph

7779 Commits

Author SHA1 Message Date
Jude Nelson
ff4488eed5 add doctests to b40 module 2018-04-23 16:16:38 -04:00
Jude Nelson
810e229f7e no hard-coded constants; expect blockstack client to decode zone files 2018-04-20 18:51:45 -04:00
Jude Nelson
0b2142439b don't launch gaia hub or transaction broadcaster in a shell 2018-04-20 18:51:29 -04:00
Jude Nelson
28d4c06c1b confirm to new testlib api 2018-04-20 18:51:18 -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
6f58350875 use check_*() methods from .scripts 2018-04-20 18:49:31 -04:00
Jude Nelson
4fc7c5f999 Merge branch 'develop' into feature/token-v1 2018-04-20 15:54:54 -04:00
Jude Nelson
81b6111ff7 Merge pull request #803 from blockstack/feature/subdomain-get-names
Add get all subdomains endpoint
2018-04-20 14:42:06 -05:00
Jude Nelson
e04295aa58 test framework automatically starts/stops transaction broadcaster 2018-04-20 15:31:19 -04:00
Jude Nelson
2fd151e3a8 start the transaction broadcaster and stop it 2018-04-20 15:31:04 -04:00
Jude Nelson
7d23cd5b4e more accurate block IDs; hidden test fields 2018-04-20 15:30:49 -04:00
Aaron Blankstein
0b6dee98ca add api tests 2018-04-20 14:11:35 -04:00
Aaron Blankstein
2f29ec044a add test for api responses 2018-04-20 14:02:05 -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
Aaron Blankstein
ff9712b323 Merge branch 'master' into develop 2018-04-20 09:36:33 -04:00
Jude Nelson
d19bf0cabf remove internal API tests, since they're removed in 0.19 2018-04-19 19:08:23 -04:00
Jude Nelson
9da6d2ac01 add documentation for /v1/accounts/* and /v1/prices/*; clean up /v1/zonefiles documentation 2018-04-19 19:07:56 -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
6395be4688 forward http status on name lookup 2018-04-19 19:04:13 -04:00
Jude Nelson
c9d7826440 remove merge conflict artifact 2018-04-19 14:05:14 -04:00
Jude Nelson
8abdc3bbad Merge branch 'develop' into feature/token-v1 2018-04-19 12:13:22 -04:00
Jude Nelson
7844901b32 WIP: do a better job documenting error paths 2018-04-19 12:03:12 -04:00
Jude Nelson
1321faf783 performance test for vesting 800 accounts 2018-04-19 12:02:47 -04:00
Jude Nelson
715d765bb3 add test for vesting lockups on multiple addresses 2018-04-19 12:02:36 -04:00
Jude Nelson
e187637890 add test for vesting lock-ups 2018-04-19 12:02:27 -04:00
Jude Nelson
21684f3a83 add browser test environment with stacks tokens 2018-04-19 12:02:12 -04:00
Jude Nelson
47e09f41a2 test sending tokens and doing nameops in the same block (so we can test SNV) 2018-04-19 12:01:50 -04:00
Jude Nelson
8d021114c2 test sending tokens to an address and using it to buy multiple names in the same block 2018-04-19 12:01:36 -04:00
Jude Nelson
e467a8d2c9 test sending tokens to an address and using it to buy multiple names 2018-04-19 12:01:24 -04:00
Jude Nelson
51908b3d58 test sending tokens to and address and using them to buy a name 2018-04-19 12:00:57 -04:00
Jude Nelson
9637495034 test sending multiple batches of tokens per block 2018-04-19 12:00:42 -04:00
Jude Nelson
79c65d1116 audit account credits at each block; add get_wallet_balances() method to allow tests to audit wallets 2018-04-19 11:59:50 -04:00
Jude Nelson
d3981a2832 make portal_test_env run *without* stacks (and add a separate portal_test_env_stacks for testing *with* stacks) 2018-04-19 11:59:25 -04:00
Jude Nelson
ee565cefb4 add support for vesting lock-ups to the test framework genesis block; do a better job at testing for whether or not we're in a docker container 2018-04-19 11:58:51 -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
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