Commit Graph

9300 Commits

Author SHA1 Message Date
Aaron Blankstein
11bc2bf8e8 fix a constraint bug in sqlite.rs, update clarity.rs to handle response types, update sample programs 2019-05-31 12:58:08 -05:00
Aaron Blankstein
ed3c0ab032 add documentation for the new functions 2019-05-31 11:46:36 -05:00
Aaron Blankstein
78f5856cd5 allow expects! to handle response types as well as option types, add is-none? 2019-05-31 08:57:08 -05:00
Aaron Blankstein
4166c6045a remove null/void types 2019-05-30 16:57:34 -05:00
Aaron Blankstein
cce4cc33c6 okay -- type checking implemented for the response types. more tests will certainly be needed. 2019-05-29 14:30:30 -05:00
Aaron Blankstein
ba7a6964f0 define-public uses response types in interpreter 2019-05-29 12:03:54 -05:00
Aaron Blankstein
08a8417cf0 add test for (expects...) function 2019-05-29 10:56:19 -05:00
Aaron Blankstein
033f646d3d type check tests for option types 2019-05-28 15:22:23 -05:00
Aaron Blankstein
83ddb065e9 correct output types for fetch-entry, expand input types of (get ...) to admit options 2019-05-28 13:48:41 -05:00
Aaron Blankstein
4ce4873005 initial pass at return option types from fetch-entry! added functions for handling these types (default-to ...) and (expects ...) 2019-05-24 17:25:51 -05:00
Aaron Blankstein
3638cb1078 new type / value definitions 2019-05-24 11:29:14 -05:00
Aaron Blankstein
2bf39655ac Merge pull request #979 from blockstack/feature/line-numbering
Add line numbers to the AST
clarity-sdk-v0.0.1 alpha.contracts.2
2019-05-24 11:49:57 -04:00
Aaron Blankstein
de2988e175 use u32 instead of usize 2019-05-24 10:33:45 -05:00
Aaron Blankstein
1195223d15 fix build with developer-mode feature off 2019-05-24 09:51:07 -05:00
Matthew Little
b1d8d771c1 Merge pull request #978 from blockstack/feature/native-func-all
Use macro for generating a list of all NativeFunctions - use for docgen
2019-05-24 10:37:13 -04:00
Matthew Little
4f7972a306 Merge pull request #973 from blockstack/feature/vscode-config
vscode config
2019-05-24 10:36:40 -04:00
Aaron Blankstein
d9f78286ed Merge branch 'develop' into feature/line-numbering 2019-05-24 09:24:56 -05:00
Matthew Little
f727539465 Add vscode debug target for clarity cli 2019-05-23 22:52:15 -04:00
Matthew Little
e55743d997 Merge branch 'develop' into feature/vscode-config 2019-05-23 22:46:59 -04:00
Matthew Little
0f551d6963 Use macro for generating a list of all NativeFunctions - use for docgen 2019-05-23 21:46:28 -04:00
Aaron Blankstein
b16eeff397 Merge pull request #966 from blockstack/feature/define-read-only
Implement (define-read-only ...)
2019-05-23 21:26:43 -04:00
Aaron Blankstein
82ffa6daf5 Merge pull request #967 from blockstack/feature/local-only-binary
Local only binary
2019-05-23 21:26:19 -04:00
Matthew Little
dd0456982a Merge branch 'develop' into feature/define-read-only 2019-05-23 19:41:52 -04:00
Matthew Little
7d500552ac Add clarity binary to dist builds 2019-05-23 19:28:28 -04:00
Matthew Little
1df1b8960b Merge branch 'develop' into feature/local-only-binary
* develop:
  Implement burnchain-header-hash as property in get-block-info
  Use BlockHeaderHash for get-block-info functions
  Use VRFSeed struct in place of u8 vecs
  Make get-block-info error on invalid block height rather than return void.
  Fill out `get-block-info` docs
  get-block-info: int size checking before casting, runtime unit tests
  Fix simulated block height test and local node cmd
  Implement get-block-info support in vm runtime and simmed block db
  Type checker and tests implemented for `get-block-info` function

# Conflicts:
#	src/main.rs
2019-05-23 18:47:45 -04:00
Matthew Little
f47a9f2b1c Merge pull request #954 from blockstack/feature/get-block-info
get-block-info native fn
2019-05-23 18:25:58 -04:00
Matthew Little
4e12deed9c Pull in changes from dev branch 2019-05-23 18:23:15 -04:00
Matthew Little
5f69bf7733 Implement burnchain-header-hash as property in get-block-info 2019-05-23 17:47:30 -04:00
Matthew Little
59bd114149 Use BlockHeaderHash for get-block-info functions 2019-05-23 17:24:27 -04:00
Aaron Blankstein
6fcbe5625a Merge changes from 'develop': updates to main.rs ended up in clarity.rs 2019-05-23 16:14:54 -05:00
Matthew Little
810c1e3110 Merge branch 'develop' into feature/get-block-info
* develop:
  Pull vscode config out of branch
  Fix inconsistent error reporting in `launch` command
  Fix build warnings (check stdout op results)
  Use illegal contract name `:transient:` for ephermal contract instances: prevents collisions with real contracts, and prevents accidental deployment of transient contracts.
  fix compiler warning
  force single-threaded tests
  Commit build scripts off dev branch
  Pull in repl changes
2019-05-23 17:13:42 -04:00
Matthew Little
8659ef4604 Minor whitespace fix from merge 2019-05-23 17:08:24 -04:00
Matthew Little
7a5294f3fc Merge branch 'develop' into feature/define-read-only 2019-05-23 17:03:57 -04:00
Aaron Blankstein
1deabdd444 add test 2019-05-23 15:59:37 -05:00
Aaron Blankstein
aa0ecfa488 Merge branch 'develop' into feature/define-read-only 2019-05-23 15:56:17 -05:00
Matthew Little
8ee28115e3 Merge pull request #953 from blockstack/feature/smart-contract-sdk
Add JSON export to `local check` and some native hash functions
2019-05-23 16:51:45 -04:00
Aaron Blankstein
63c7b02c54 decorate AST with line numbers 2019-05-23 13:46:28 -05:00
Matthew Little
1ad3c64e81 Commit vscode config 2019-05-23 13:24:28 -04:00
Matthew Little
83fb889212 Pull vscode config out of branch 2019-05-23 13:16:47 -04:00
Matthew Little
926469956c Fix inconsistent error reporting in launch command 2019-05-23 13:12:51 -04:00
Matthew Little
dc9576a22c Merge branch 'develop' into feature/smart-contract-sdk
# Conflicts:
#	src/main.rs
2019-05-23 13:10:15 -04:00
Aaron Blankstein
e6583c3b9b fix typo 2019-05-23 12:04:44 -05:00
Aaron Blankstein
79d4e406ef Merge branch 'develop' into feature/local-only-binary -- merged changes in main.rs into clarity.rs 2019-05-23 12:02:23 -05:00
Matthew Little
e94857a6ee Merge pull request #962 from blockstack/feature/repl_raw_eval
REPL and eval_raw local commands
2019-05-23 12:45:11 -04:00
Matthew Little
0088a94e41 Merge branch 'develop' into feature/repl_raw_eval 2019-05-23 12:16:02 -04:00
Matthew Little
193173e7df Merge pull request #963 from blockstack/feature/dist-build
Distribution build scripts
2019-05-23 12:15:31 -04:00
Matthew Little
3db0cd3df6 Fix build warnings (check stdout op results) 2019-05-23 12:13:00 -04:00
Matthew Little
3911ee33c8 Merge branch 'develop' into feature/repl_raw_eval 2019-05-23 12:06:48 -04:00
Matthew Little
e6eace3576 Use illegal contract name :transient: for ephermal contract instances: prevents collisions with real contracts, and prevents accidental deployment of transient contracts. 2019-05-23 12:06:30 -04:00
Aaron Blankstein
4b87f549f1 fix compiler warning 2019-05-23 11:03:52 -05:00