Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CompilerCli #1725

Merged
merged 7 commits into from
Dec 20, 2022
Merged

Add CompilerCli #1725

merged 7 commits into from
Dec 20, 2022

Conversation

davidyuk
Copy link
Member

@davidyuk davidyuk commented Dec 18, 2022

closes #1693

found issues aeternity/aesophia#443 aeternity/aesophia#444 aeternity/aesophia_cli#73 aeternity/aesophia_cli#74 aeternity/aesophia_cli#75

This PR is supported by the Æternity Crypto Foundation

BREAKING CHANGE: Methods of `CompilerHttp` moved to `api` property
Apply a patch:
```diff
-compilerHttp.generateACI({ code: sourceCode });
+compilerHttp.api.generateACI({ code: sourceCode });
```
BREAKING CHANGE: `createGeneralizedAccount` accepts `sourceCode` in options
Apply a patch:
```diff
-aeSdk.createGeneralizedAccount('authorize', sourceCode, ['arg-1']);
+aeSdk.createGeneralizedAccount('authorize', ['arg-1'], { sourceCode });
```
src/contract/compiler/Cli.ts Fixed Show fixed Hide fixed
src/contract/compiler/Cli.ts Fixed Show fixed Hide fixed
@davidyuk davidyuk force-pushed the feature/compiler-cli branch 3 times, most recently from 12cf236 to 58f8b1b Compare December 18, 2022 06:36
@codecov
Copy link

codecov bot commented Dec 18, 2022

Codecov Report

Base: 84.34% // Head: 82.28% // Decreases project coverage by -2.06% ⚠️

Coverage data is based on head (de56cbe) compared to base (2c992b9).
Patch coverage: 84.89% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1725      +/-   ##
===========================================
- Coverage    84.34%   82.28%   -2.07%     
===========================================
  Files           70       74       +4     
  Lines         2913     2862      -51     
  Branches       509      547      +38     
===========================================
- Hits          2457     2355     -102     
+ Misses         251      244       -7     
- Partials       205      263      +58     
Impacted Files Coverage Δ
src/AeSdkBase.ts 78.94% <ø> (-2.64%) ⬇️
src/AeSdkMethods.ts 84.61% <ø> (-2.89%) ⬇️
src/Node.ts 91.11% <ø> (-1.92%) ⬇️
src/account/Base.ts 100.00% <ø> (ø)
src/contract/ga.ts 95.45% <ø> (-4.55%) ⬇️
src/contract/Contract.ts 79.19% <66.66%> (-3.64%) ⬇️
src/contract/compiler/Http.ts 82.92% <82.92%> (ø)
src/contract/compiler/Cli.ts 84.37% <84.37%> (ø)
src/contract/compiler/getFileSystem.ts 94.44% <94.44%> (ø)
src/contract/compiler/Base.ts 100.00% <100.00%> (ø)
... and 68 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@davidyuk davidyuk force-pushed the feature/compiler-cli branch from 58f8b1b to de56cbe Compare December 18, 2022 08:25
@davidyuk davidyuk marked this pull request as ready for review December 18, 2022 08:51
@davidyuk davidyuk merged commit 1552d3a into develop Dec 20, 2022
@davidyuk davidyuk deleted the feature/compiler-cli branch December 20, 2022 07:26
@davidyuk davidyuk added this to the v13 milestone Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use alternative compiler (cli or erlps-aesophia)
1 participant