Commit Graph

855 Commits

Author SHA1 Message Date
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
Jude Nelson
30bf4ceb06 patch through account methods, and start/stop the RESTful API within blockstackd 2018-03-22 19:24:00 -04:00
Jude Nelson
dfe26d7a71 price names and namespace in a particular unit 2018-03-22 19:23:44 -04:00
Jude Nelson
5bb752a0d8 copyright :) 2018-03-22 19:23:35 -04:00
Jude Nelson
66764b7973 query account token types 2018-03-22 19:23:25 -04:00
Jude Nelson
7be1628903 extend the configuration section to include [blockstack-api] 2018-03-22 19:23:11 -04:00
Jude Nelson
60c24e5c04 update register to verify that the preorder burned the right token
update renew to require token burns if the namespace has a token
2018-03-22 19:22:30 -04:00
Jude Nelson
55d74edab9 update preorder to allow the sender to burn STACKs instead of BTC 2018-03-22 19:21:48 -04:00
Jude Nelson
867834b409 ensure that a namespace preorder paid the right amount of STACKs when it is revealed (but only if we're in the STACKs epochs) 2018-03-22 19:21:25 -04:00
Jude Nelson
584293fc8a a namespace-preorder can include an 8-byte field of the number of STACKs it must burn. enforce STACKs burning exclusively (next epoch!) 2018-03-22 19:20:45 -04:00
Jude Nelson
7e9141bb09 remove the "typecast" semantics of op_check 2018-03-22 19:20:21 -04:00
Jude Nelson
32552487e0 add state invariant tags for account debits 2018-03-22 19:19:59 -04:00
Jude Nelson
2c15d29f03 add wrappers for querying account state; make it so committing preorders can trigger an account debit; update interfaces to pass in the token genesis block 2018-03-22 19:19:26 -04:00