Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4276 from smartcontractkit/release/0.10.5-rc1
Release 0.10.5
- Loading branch information
Showing
421 changed files
with
13,510 additions
and
8,327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.10.4 | ||
0.10.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
diff --git a/node_modules/@0x/sol-compiler/lib/src/utils/compiler.js b/node_modules/@0x/sol-compiler/lib/src/utils/compiler.js | ||
index 3f22564..22afa17 100644 | ||
--- a/node_modules/@0x/sol-compiler/lib/src/utils/compiler.js | ||
+++ b/node_modules/@0x/sol-compiler/lib/src/utils/compiler.js | ||
@@ -210,7 +210,7 @@ function getSolcJSReleasesAsync(isOfflineMode) { | ||
return [2 /*return*/, constants_1.constants.SOLC_BIN_PATHS]; | ||
} | ||
if (!(solcJSReleasesCache === undefined)) return [3 /*break*/, 3]; | ||
- return [4 /*yield*/, fetch('https://ethereum.github.io/solc-bin/bin/list.json')]; | ||
+ return [4 /*yield*/, fetch('https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/list.json')]; | ||
case 1: | ||
versionList = _a.sent(); | ||
return [4 /*yield*/, versionList.json()]; | ||
@@ -235,7 +235,7 @@ function compileSolcJSAsync(solcInstance, standardInput) { | ||
var standardInputStr, standardOutputStr, compiled; | ||
return __generator(this, function (_a) { | ||
standardInputStr = JSON.stringify(standardInput); | ||
- standardOutputStr = solcInstance.compileStandardWrapper(standardInputStr); | ||
+ standardOutputStr = solcInstance.compile(standardInputStr); | ||
compiled = JSON.parse(standardOutputStr); | ||
return [2 /*return*/, compiled]; | ||
}); | ||
@@ -252,7 +252,7 @@ function compileDockerAsync(solcVersion, standardInput) { | ||
var standardInputStr, dockerCommand, standardOutputStr, compiled; | ||
return __generator(this, function (_a) { | ||
standardInputStr = JSON.stringify(standardInput, null, 2); | ||
- dockerCommand = "docker run -i -a stdin -a stdout -a stderr ethereum/solc:" + solcVersion + " solc --standard-json"; | ||
+ dockerCommand = "docker run -i -a stdin -a stdout -a stderr ethereum/solc:" + solcVersion + " --standard-json"; | ||
standardOutputStr = child_process_1.execSync(dockerCommand, { input: standardInputStr }).toString(); | ||
compiled = JSON.parse(standardOutputStr); | ||
return [2 /*return*/, compiled]; | ||
diff --git a/node_modules/@0x/sol-compiler/lib/src/utils/constants.js b/node_modules/@0x/sol-compiler/lib/src/utils/constants.js | ||
index 4c7aca0..26b6ac2 100644 | ||
--- a/node_modules/@0x/sol-compiler/lib/src/utils/constants.js | ||
+++ b/node_modules/@0x/sol-compiler/lib/src/utils/constants.js | ||
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var path = require("path"); | ||
exports.constants = { | ||
SOLIDITY_FILE_EXTENSION: '.sol', | ||
- BASE_COMPILER_URL: 'https://ethereum.github.io/solc-bin/bin/', | ||
+ BASE_COMPILER_URL: 'https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin/', | ||
LATEST_ARTIFACT_VERSION: '2.0.0', | ||
SOLC_BIN_DIR: path.join(__dirname, '..', '..', '..', 'solc_bin'), | ||
SOLC_BIN_PATHS: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
package cmd | ||
|
||
import ( | ||
"errors" | ||
|
||
"github.com/smartcontractkit/chainlink/core/web/presenters" | ||
"github.com/urfave/cli" | ||
"go.uber.org/multierr" | ||
) | ||
|
||
// IndexBridges returns all bridges. | ||
func (cli *Client) IndexBridges(c *cli.Context) (err error) { | ||
return cli.getPage("/v2/bridge_types", c.Int("page"), &[]presenters.BridgeResource{}) | ||
} | ||
|
||
// ShowBridge returns the info for the given Bridge name. | ||
func (cli *Client) ShowBridge(c *cli.Context) (err error) { | ||
if !c.Args().Present() { | ||
return cli.errorOut(errors.New("must pass the name of the bridge to be shown")) | ||
} | ||
bridgeName := c.Args().First() | ||
resp, err := cli.HTTP.Get("/v2/bridge_types/" + bridgeName) | ||
if err != nil { | ||
return cli.errorOut(err) | ||
} | ||
defer func() { | ||
if cerr := resp.Body.Close(); cerr != nil { | ||
err = multierr.Append(err, cerr) | ||
} | ||
}() | ||
var resource presenters.BridgeResource | ||
return cli.renderAPIResponse(resp, &resource) | ||
} | ||
|
||
// CreateBridge adds a new bridge to the chainlink node | ||
func (cli *Client) CreateBridge(c *cli.Context) (err error) { | ||
if !c.Args().Present() { | ||
return cli.errorOut(errors.New("must pass in the bridge's parameters [JSON blob | JSON filepath]")) | ||
} | ||
|
||
buf, err := getBufferFromJSON(c.Args().First()) | ||
if err != nil { | ||
return cli.errorOut(err) | ||
} | ||
|
||
resp, err := cli.HTTP.Post("/v2/bridge_types", buf) | ||
if err != nil { | ||
return cli.errorOut(err) | ||
} | ||
defer func() { | ||
if cerr := resp.Body.Close(); cerr != nil { | ||
err = multierr.Append(err, cerr) | ||
} | ||
}() | ||
|
||
var resource presenters.BridgeResource | ||
err = cli.renderAPIResponse(resp, &resource) | ||
return err | ||
} | ||
|
||
// RemoveBridge removes a specific Bridge by name. | ||
func (cli *Client) RemoveBridge(c *cli.Context) (err error) { | ||
if !c.Args().Present() { | ||
return cli.errorOut(errors.New("must pass the name of the bridge to be removed")) | ||
} | ||
bridgeName := c.Args().First() | ||
resp, err := cli.HTTP.Delete("/v2/bridge_types/" + bridgeName) | ||
if err != nil { | ||
return cli.errorOut(err) | ||
} | ||
defer func() { | ||
if cerr := resp.Body.Close(); cerr != nil { | ||
err = multierr.Append(err, cerr) | ||
} | ||
}() | ||
var resource presenters.BridgeResource | ||
err = cli.renderAPIResponse(resp, &resource) | ||
return err | ||
} |
Oops, something went wrong.