Skip to content

Commit

Permalink
Merge pull request #11 from tonlabs/0.3.2-rc
Browse files Browse the repository at this point in the history
Version 0.3.2
  • Loading branch information
d3p authored Mar 12, 2021
2 parents ea6a7e8 + e28e999 commit 0a0cef1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## [0.3.2] - 2021-03-12

### Fixed
- Support versioning at solidity components

## [0.3.0] - 2021-03-11

### New
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ This command installs the latest tonos-cli
```shell
tondev tonos-cli install
```
The installer requires NPM to be installed, so it can install packages globally without using sudo.
In case of error, manually set environment variable `PATH=$PATH:$HOME./tondev/solidity`

#### Version

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tondev",
"version": "0.3.1",
"version": "0.3.2",
"description": "TON Dev Environment",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
17 changes: 9 additions & 8 deletions src/controllers/solidity/components.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import fs from "fs";
import path from "path";
import {
Component,
tondevHome,
Expand All @@ -20,19 +20,20 @@ export const components = {
}),

stdlib: new class extends Component {
// TODO: support versioning
getSourceName(_version: string): string {
return `${this.name}.gz` ;
getSourceName(version: string): string {
return `${this.name}_${version.split(".").join("_")}.tvm.gz`;
}

// TODO: support versioning
async getCurrentVersion(): Promise<string> {
return fs.existsSync(this.path) ? "1.0.0" : "";
if (fs.existsSync(this.path)) {
return components.compiler.getCurrentVersion();
} else {
return "";
}
}

// TODO: support versioning
async loadAvailableVersions(): Promise<string[]> {
return ["1.0.0"];
return components.compiler.loadAvailableVersions();
}
}(solidityHome(), "stdlib_sol", {
targetName: "stdlib_sol.tvm",
Expand Down

0 comments on commit 0a0cef1

Please sign in to comment.