Commit Graph

2007 Commits

Author SHA1 Message Date
gluax
d549fda7b5 rebase and replace const keyword in tests 2021-02-16 14:19:20 -05:00
gluax
42bea9e93a Merge branch 'master' of github.com:AleoHQ/leo into feature/515-eliminate-const-vars 2021-02-16 14:02:49 -05:00
bors[bot]
a7c9caf4b3
Merge #653
653: Fix return type error for input-dependent branches r=collinc97 a=Protryon

This PR fixes failure to handle input-dependent branches. No tests added here since base case is covered, and this only occurs with production constraints. Should fix #535.

There is an additional issue not solved by this PR on branching on booleans from input.

Co-authored-by: Protryon <max.bruce12@gmail.com>
2021-02-12 23:36:59 +00:00
Collin Chin
c57332baa9
Merge pull request #658 from AleoHQ/fix/flaky-cli-test
[Bug] remove unused json deserialize logic
2021-02-12 12:40:05 -08:00
bors[bot]
217ecca4d6
Merge #655
655: Fix circuit resolution r=collinc97 a=Protryon

Fixes #642. Issues was that we didn't properly recursively resolve circuits when converting AST types -> ASG types

Co-authored-by: Protryon <max.bruce12@gmail.com>
2021-02-12 04:54:15 +00:00
Collin Chin
6ac356819c
Merge pull request #656 from AleoHQ/dependency/snarkvm-0.0.4
[Dependencies] bump snarkvm module versions to 0.0.4
2021-02-11 19:50:48 -08:00
collin
d6860d2b54 remove unused json deserialize logic 2021-02-11 19:46:32 -08:00
Collin Chin
29fa7cf19e
Merge pull request #654 from AleoHQ/field-group-fix
Fix field/group addition
2021-02-11 17:43:32 -08:00
collin
537ea39513 bump snarkvm module versions to 0.0.4 2021-02-11 17:33:53 -08:00
bors[bot]
fa53e75f51
Merge #641
641: Bug/564 input array len not enforced r=collinc97 a=gluax

Resolves #564, depends on #563. The changes for this branch have pulled from PR #638, which is the PR that fixes #563.

Co-authored-by: gluaxspeed <jonathan.t.pavlik@gmail.com>
2021-02-11 21:41:53 +00:00
bors[bot]
d418b5330c
Merge #638
638: bug/563-array-input-wrong-dimensions r=collinc97 a=gluax

Closes #563. Fixes the array dimension builder when coming from the input file. Adds a test for it as well.

Co-authored-by: gluaxspeed <jonathan.t.pavlik@gmail.com>
2021-02-11 21:22:50 +00:00
Collin Chin
b8fc28e840
Set bors approval minimum to 1
In the future having 2 code owners review will be standard on large changes. Setting the bors minimum to 1 will give flexibility for small changes.
2021-02-11 13:21:40 -08:00
Protryon
b0de29e275 fix circuit resolution 2021-02-11 11:59:14 -08:00
Protryon
198230d604 fix field/group addition 2021-02-11 09:05:43 -08:00
Protryon
0bd324bcb4 fix return type error for input-dependent branches 2021-02-11 08:52:22 -08:00
gluaxspeed
9a015e1e5f console assert tests 2021-02-11 10:46:54 -05:00
gluaxspeed
cedcc6e1d1 console assert tests 2021-02-11 10:46:20 -05:00
Collin Chin
20a046bbbb
Merge pull request #643 from AleoHQ/feat/readme_license
Adds READMEs and LICENSEs to each Leo workspace member
2021-02-11 00:58:22 -08:00
bors[bot]
a3f0f9d587
Merge #633 #634
633: duplicate name context test r=collinc97 a=gluax

Adding a test for duplicate name context that was resolved in #546.

634: fn call array params r=collinc97 a=gluax

Adding a test for bug #522, which was resolved by the asg.

Closes #522 

Co-authored-by: gluaxspeed <jonathan.t.pavlik@gmail.com>
2021-02-11 07:53:26 +00:00
bors[bot]
b72b5ac125
Merge #620
620: Feature/254 strengthen import rules r=collinc97 a=gluax

Grammar changes are a bit different than what was suggested in the original feature request #254. However, it should be logically equivalent and I think makes more sense on the rust side.

Closes #254 

Co-authored-by: gluaxspeed <jonathan.t.pavlik@gmail.com>
2021-02-11 07:31:56 +00:00
bors[bot]
a97d60eb28
Merge #598
598: [Feature] 374 circuit self access r=collinc97 a=gluax

Feature resolves #374. At the grammar level the following syntax is no longer allowed on self:
```
self[0];
self();
```

Syntax that is allowed at the grammar level is:
```
console.log("b: {}", self::b);
console.log("hmm: {}",self::hmm());
self.hello();
console.log("access: {}", self.a);
```

Note that these changes are only at the grammar level only.

Co-authored-by: gluaxspeed <jonathan.t.pavlik@gmail.com>
Co-authored-by: Howard Wu <9260812+howardwu@users.noreply.github.com>
2021-02-11 07:09:43 +00:00
howardwu
6ab20aa71b Adds SECURITY.md 2021-02-10 22:31:12 -08:00
howardwu
777a67fb40 Adds README.md 2021-02-10 22:27:37 -08:00
howardwu
55db999a9e Adds LICENSE.md 2021-02-10 22:23:45 -08:00
Collin Chin
8d20b75c62
Update bors.toml 2021-02-10 22:11:34 -08:00
Collin Chin
558c974ae0
Merge pull request #590 from AleoHQ/feature/bors-badge
[CI] Add bors
2021-02-10 20:35:06 -08:00
Collin Chin
5efd6fe4ce
Update bors.toml 2021-02-10 19:31:40 -08:00
Collin Chin
73b31998a0
Update bors.toml 2021-02-10 19:31:26 -08:00
Howard Wu
59fa8fd62b
Merge pull request #632 from AleoHQ/adds-structopt-to-leo
[CLI] Leo CLI is now on StructOpt and Anyhow (reopened)
2021-02-10 18:49:45 -08:00
Howard Wu
2c5c2eb886
Update leo/main.rs 2021-02-10 18:47:10 -08:00
collin
2128025df5 use correct workflow names 2021-02-10 16:21:17 -08:00
collin
8c68b9e9ee add staging and trying branches to ci 2021-02-10 14:00:37 -08:00
collin
102f7fd6dd update bors required status checks 2021-02-10 13:28:40 -08:00
collin
a72215e83a Merge branch 'master' of https://github.com/AleoHQ/leo into feature/bors-badge 2021-02-10 13:20:15 -08:00
gluaxspeed
9812c76e1f fix test needed to expect it to fail 2021-02-10 12:49:18 -05:00
gluaxspeed
42fb5ea635 merge from pr 638 2021-02-10 11:59:42 -05:00
gluaxspeed
202f056531 fix pushed but depends on pr #638 2021-02-10 11:57:10 -05:00
damirka
cb050aa43d removed unused constants from add 2021-02-10 19:24:13 +03:00
damirka
7867ab9d54 imports sorting, --lib flag removed
- leo new/init now don't have --lib flag
- imports sorted
- command descriptions match old ones 1-to-1
2021-02-10 19:18:04 +03:00
gluaxspeed
f02845aa6c forgot to refactor grammar tests 2021-02-09 11:11:45 -05:00
gluaxspeed
d211d729d1 refactor pacakge_type -> package_or_packages 2021-02-09 10:57:37 -05:00
gluaxspeed
e48b971789 reverse iter for building array, add test case for it 2021-02-09 10:26:16 -05:00
damirka
deb830ce65 Follow up on comments to PR
- fixes import ordering (with rule group_imports)
- removes explicit 0group from pedersen hash example
- updater is now fully-anyhow-ed :)
- fixed doc comment in prove command
- renamed cmd to command in main
2021-02-09 14:08:40 +03:00
Howard Wu
0698e550e3
Merge pull request #631 from AleoHQ/dependabot/cargo/serde_json-1.0.62
Bump serde_json from 1.0.61 to 1.0.62
2021-02-08 20:34:32 -08:00
gluaxspeed
2f6cc6c995 add test for the fixed bug 2021-02-08 15:42:37 -05:00
gluaxspeed
9651af3089 add test for the fixed bug 2021-02-08 13:44:30 -05:00
gluaxspeed
f1bf6c90eb remove const keyword 2021-02-08 10:34:33 -05:00
damirka
2ff2db2570 Leo CLI is now on StructOpt and Anyhow
Features:

- introduces new Command and Route traits for Leo commands and Aleo PM API
- most of the CLI code replace with higher-level abstraction - StructOpt
- anyhow used for error handling, no more custom error classes
- improves API - now every status code has its business logic
- adds global flags (e.g. --quiet to suppress output)
- error messages improved for convenience and better user experience

Closes:

- #604
- #599
- #584
- #277
- #376
2021-02-08 15:48:35 +03:00
dependabot-preview[bot]
a0da42cb8c
Bump serde_json from 1.0.61 to 1.0.62
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.61...v1.0.62)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-08 11:20:20 +00:00
howardwu
1898cc6840 chore(leo): bump version for new release 2021-02-07 08:14:56 -08:00