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

Added solc releases 0.8.21 to 0.8.25 #27

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.2.5]() (Upcoming)

### Bug Fixes

* NIL

### Features

* Added 0.8.21 to 0.8.25 solc releases [#27](https://github.com/web3j/web3j-sokt/pull/27)
* master to main changes and repo migration fixes [#25](https://github.com/hyperledger/web3j-sokt/pull/25)
* Files added for repo migration [#23](https://github.com/hyperledger/web3j-sokt/pull/23)

### BREAKING CHANGES

* Updated Gradle and Java to v17 [#26](https://github.com/hyperledger/web3j-sokt/pull/26)

# [0.2.4](https://github.com/web3j/web3j-sokt/releases/tag/v0.2.4) (2023-06-14)

### Bug Fixes
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Sokt
[![Build Status](https://api.travis-ci.org/web3j/web3j-sokt.svg?branch=master)](https://travis-ci.org/web3j/web3j-sokt)


Sokt is a Kotlin wrapper for the Solidity compiler (solc). Given a solidity file, it can identify the ideal compiler version to use from the pragma statement at the top of the file. It can then download, install and invoke the compiler. Rather than using Dockerized versions of Solc, Sokt uses native builds and is compatible with Mac, Windows and Linux (x86/64 only)<sup>*</sup>. This means that the only dependency is a Java installation. Sokt also plays nicely with GraalVM, eliminating the Java dependency if necessary.

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/org/web3j/sokt/VersionResolver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class VersionResolver(private val directoryPath: String = ".web3j") {
fun getSolcReleases(): List<SolcRelease> {
val versionsFile = Paths.get(System.getProperty("user.home"), directoryPath, "solc", "releases.json").toFile()
try {
val result = get("https://raw.githubusercontent.com/web3j/web3j-sokt/master/src/main/resources/releases.json")
val result = get("https://raw.githubusercontent.com/hyperledger/web3j-sokt/main/src/main/resources/releases.json")
versionsFile.parentFile.mkdirs()
versionsFile.writeText(result)
return Json.decodeFromString<List<SolcRelease>>(result)
Expand Down
30 changes: 30 additions & 0 deletions src/main/resources/releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,5 +418,35 @@
"windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.20/solc-windows.exe",
"mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.20/solc-macos",
"linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.20/solc-static-linux"
},
{
"version": "0.8.21",
"windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-windows.exe",
"mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-macos",
"linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-static-linux"
},
{
"version": "0.8.22",
"windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.22/solc-windows.exe",
"mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.22/solc-macos",
"linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.22/solc-static-linux"
},
{
"version": "0.8.23",
"windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.23/solc-windows.exe",
"mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.23/solc-macos",
"linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.23/solc-static-linux"
},
{
"version": "0.8.24",
"windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-windows.exe",
"mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-macos",
"linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux"
},
{
"version": "0.8.25",
"windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.25/solc-windows.exe",
"mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.25/solc-macos",
"linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.25/solc-static-linux"
}
]
Loading