Backporting to beta (#3176)
* Linux build case sensitivity fix (#3161) * Make the footer a bit less ugly. (#3160) * Make the footer a bit less ugly. * Whitespace. * Enabling personal RPC over IPC by default (#3165) * Push precompiled for beta/stable, npm only master (#3163) * Push precompiled for beta/stable, npm only master * Release to npm before comitting updates * Fixes #3171 (#3175) * Remove extra cd js (#3177) * Back to real root (#3178)
This commit is contained in:
parent
11f2b5d0ae
commit
19d0905cbd
@ -50,23 +50,13 @@ setup_git_user
|
|||||||
git remote set-url origin $GIT_PARITY
|
git remote set-url origin $GIT_PARITY
|
||||||
git reset --hard origin/$BRANCH 2>$GITLOG
|
git reset --hard origin/$BRANCH 2>$GITLOG
|
||||||
|
|
||||||
echo "*** Bumping package.json patch version"
|
if [ "$BRANCH" == "master" ]; then
|
||||||
cd js
|
cd js
|
||||||
|
echo "*** Bumping package.json patch version"
|
||||||
npm --no-git-tag-version version
|
npm --no-git-tag-version version
|
||||||
npm version patch
|
npm version patch
|
||||||
cd ..
|
|
||||||
|
|
||||||
echo "*** Updating cargo parity-ui-precompiled#$PRECOMPILED_HASH"
|
|
||||||
cargo update -p parity-ui-precompiled
|
|
||||||
# --precise "$PRECOMPILED_HASH"
|
|
||||||
|
|
||||||
echo "*** Committing updated files"
|
|
||||||
git add Cargo.lock js/package.json
|
|
||||||
git commit -m "[ci skip] js-precompiled $UTCDATE"
|
|
||||||
git push origin HEAD:refs/heads/$BRANCH 2>$GITLOG
|
|
||||||
|
|
||||||
echo "*** Building packages for npmjs"
|
echo "*** Building packages for npmjs"
|
||||||
cd js
|
|
||||||
# echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login
|
# echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login
|
||||||
echo "$NPM_TOKEN" >> ~/.npmrc
|
echo "$NPM_TOKEN" >> ~/.npmrc
|
||||||
npm run ci:build:npm
|
npm run ci:build:npm
|
||||||
@ -74,7 +64,17 @@ npm run ci:build:npm
|
|||||||
echo "*** Publishing $PACKAGE to npmjs"
|
echo "*** Publishing $PACKAGE to npmjs"
|
||||||
cd .npmjs
|
cd .npmjs
|
||||||
npm publish --access public
|
npm publish --access public
|
||||||
cd ..
|
cd ../..
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "*** Updating cargo parity-ui-precompiled#$PRECOMPILED_HASH"
|
||||||
|
cargo update -p parity-ui-precompiled
|
||||||
|
# --precise "$PRECOMPILED_HASH"
|
||||||
|
|
||||||
|
echo "*** Committing updated files"
|
||||||
|
git add .
|
||||||
|
git commit -m "[ci skip] js-precompiled $UTCDATE"
|
||||||
|
git push origin HEAD:refs/heads/$BRANCH 2>$GITLOG
|
||||||
|
|
||||||
# back to root
|
# back to root
|
||||||
echo "*** Release completed"
|
echo "*** Release completed"
|
||||||
|
@ -539,7 +539,7 @@ export default class GasPriceSelector extends Component {
|
|||||||
const gasPriceBIdx = gasPriceAIdx + 1;
|
const gasPriceBIdx = gasPriceAIdx + 1;
|
||||||
|
|
||||||
if (gasPriceBIdx === N + 1) {
|
if (gasPriceBIdx === N + 1) {
|
||||||
const gasPrice = gasPrices[gasPriceAIdx];
|
const gasPrice = gasPrices[gasPriceAIdx].round();
|
||||||
this.props.onChange(event, gasPrice);
|
this.props.onChange(event, gasPrice);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -548,7 +548,9 @@ export default class GasPriceSelector extends Component {
|
|||||||
const gasPriceB = gasPrices[gasPriceBIdx];
|
const gasPriceB = gasPrices[gasPriceBIdx];
|
||||||
|
|
||||||
const mult = Math.round((sliderValue % 1) * 100) / 100;
|
const mult = Math.round((sliderValue % 1) * 100) / 100;
|
||||||
const gasPrice = gasPriceA.plus(gasPriceB.minus(gasPriceA).times(mult));
|
const gasPrice = gasPriceA
|
||||||
|
.plus(gasPriceB.minus(gasPriceA).times(mult))
|
||||||
|
.round();
|
||||||
|
|
||||||
this.setSliderValue(sliderValue, gasPrice);
|
this.setSliderValue(sliderValue, gasPrice);
|
||||||
this.props.onChange(event, gasPrice);
|
this.props.onChange(event, gasPrice);
|
||||||
|
@ -411,6 +411,7 @@ export default class Transfer extends Component {
|
|||||||
const { api } = this.context;
|
const { api } = this.context;
|
||||||
const { account } = this.props;
|
const { account } = this.props;
|
||||||
const { data, gas, gasPrice, recipient, value } = this.state;
|
const { data, gas, gasPrice, recipient, value } = this.state;
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
from: account.address,
|
from: account.address,
|
||||||
to: recipient,
|
to: recipient,
|
||||||
|
@ -14,4 +14,4 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
export default from './CopyToClipboard';
|
export default from './copyToClipboard';
|
||||||
|
@ -15,12 +15,10 @@
|
|||||||
/* along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
/* along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
.status {
|
.status {
|
||||||
padding: 1.5em;
|
padding: 0.5em;
|
||||||
text-align: right;
|
font-size: x-small;
|
||||||
color: #ddd;
|
color: #ccc;
|
||||||
display: flex;
|
background-color: rgba(0, 0, 0, 0.2)
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-end;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
@ -29,12 +27,13 @@
|
|||||||
|
|
||||||
.enode {
|
.enode {
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
margin: 0.5em 0 0.25em 0;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.enode > * {
|
.enode > * {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: .5em;
|
margin: 0.25em 0.5em;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.block {
|
.block {
|
||||||
@ -43,9 +42,7 @@
|
|||||||
.netinfo {
|
.netinfo {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: row;
|
color: #ddd;
|
||||||
justify-content: flex-end;
|
|
||||||
margin-top: 0.25em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.netinfo > * {
|
.netinfo > * {
|
||||||
@ -73,6 +70,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.version {
|
.version {
|
||||||
|
padding: 0.25em 0.5em;
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.syncing {
|
.syncing {
|
||||||
|
@ -48,15 +48,13 @@ class Status extends Component {
|
|||||||
</div>
|
</div>
|
||||||
{ this.renderEnode() }
|
{ this.renderEnode() }
|
||||||
<div className={ styles.netinfo }>
|
<div className={ styles.netinfo }>
|
||||||
<div>
|
|
||||||
<BlockStatus />
|
<BlockStatus />
|
||||||
<div className={ styles.peers }>
|
|
||||||
{ netPeers.active.toFormat() }/{ netPeers.connected.toFormat() }/{ netPeers.max.toFormat() } peers
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className={ netStyle }>
|
<div className={ netStyle }>
|
||||||
{ isTest ? 'test' : netChain }
|
{ isTest ? 'test' : netChain }
|
||||||
</div>
|
</div>
|
||||||
|
<div className={ styles.peers }>
|
||||||
|
{ netPeers.active.toFormat() }/{ netPeers.connected.toFormat() }/{ netPeers.max.toFormat() } peers
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -47,7 +47,7 @@ hosts = ["none"]
|
|||||||
[ipc]
|
[ipc]
|
||||||
disable = false
|
disable = false
|
||||||
path = "$HOME/.parity/jsonrpc.ipc"
|
path = "$HOME/.parity/jsonrpc.ipc"
|
||||||
apis = ["web3", "eth", "net", "ethcore", "traces", "rpc", "personal_safe"]
|
apis = ["web3", "eth", "net", "ethcore", "traces", "rpc", "personal", "personal_safe"]
|
||||||
|
|
||||||
[dapps]
|
[dapps]
|
||||||
disable = false
|
disable = false
|
||||||
|
@ -155,7 +155,7 @@ usage! {
|
|||||||
or |c: &Config| otry!(c.ipc).disable.clone(),
|
or |c: &Config| otry!(c.ipc).disable.clone(),
|
||||||
flag_ipc_path: String = "$HOME/.parity/jsonrpc.ipc",
|
flag_ipc_path: String = "$HOME/.parity/jsonrpc.ipc",
|
||||||
or |c: &Config| otry!(c.ipc).path.clone(),
|
or |c: &Config| otry!(c.ipc).path.clone(),
|
||||||
flag_ipc_apis: String = "web3,eth,net,ethcore,traces,rpc,personal_safe",
|
flag_ipc_apis: String = "web3,eth,net,ethcore,traces,rpc,personal,personal_safe",
|
||||||
or |c: &Config| otry!(c.ipc).apis.clone().map(|vec| vec.join(",")),
|
or |c: &Config| otry!(c.ipc).apis.clone().map(|vec| vec.join(",")),
|
||||||
|
|
||||||
// DAPPS
|
// DAPPS
|
||||||
@ -549,7 +549,7 @@ mod tests {
|
|||||||
// IPC
|
// IPC
|
||||||
flag_no_ipc: false,
|
flag_no_ipc: false,
|
||||||
flag_ipc_path: "$HOME/.parity/jsonrpc.ipc".into(),
|
flag_ipc_path: "$HOME/.parity/jsonrpc.ipc".into(),
|
||||||
flag_ipc_apis: "web3,eth,net,ethcore,traces,rpc,personal_safe".into(),
|
flag_ipc_apis: "web3,eth,net,ethcore,traces,rpc,personal,personal_safe".into(),
|
||||||
|
|
||||||
// DAPPS
|
// DAPPS
|
||||||
flag_no_dapps: false,
|
flag_no_dapps: false,
|
||||||
|
@ -63,7 +63,7 @@ impl Default for IpcConfiguration {
|
|||||||
IpcConfiguration {
|
IpcConfiguration {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
socket_addr: parity_ipc_path("$HOME/.parity/jsonrpc.ipc"),
|
socket_addr: parity_ipc_path("$HOME/.parity/jsonrpc.ipc"),
|
||||||
apis: ApiSet::UnsafeContext,
|
apis: ApiSet::IpcContext,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,6 +69,7 @@ impl FromStr for Api {
|
|||||||
pub enum ApiSet {
|
pub enum ApiSet {
|
||||||
SafeContext,
|
SafeContext,
|
||||||
UnsafeContext,
|
UnsafeContext,
|
||||||
|
IpcContext,
|
||||||
List(HashSet<Api>),
|
List(HashSet<Api>),
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,6 +140,10 @@ impl ApiSet {
|
|||||||
vec![Api::Web3, Api::Net, Api::Eth, Api::Ethcore, Api::Traces, Api::Rpc, Api::PersonalSafe]
|
vec![Api::Web3, Api::Net, Api::Eth, Api::Ethcore, Api::Traces, Api::Rpc, Api::PersonalSafe]
|
||||||
.into_iter().collect()
|
.into_iter().collect()
|
||||||
},
|
},
|
||||||
|
ApiSet::IpcContext => {
|
||||||
|
vec![Api::Web3, Api::Net, Api::Eth, Api::Ethcore, Api::Traces, Api::Rpc, Api::PersonalAccounts, Api::PersonalSafe]
|
||||||
|
.into_iter().collect()
|
||||||
|
},
|
||||||
ApiSet::SafeContext => {
|
ApiSet::SafeContext => {
|
||||||
vec![Api::Web3, Api::Net, Api::Eth, Api::PersonalAccounts, Api::PersonalSafe, Api::Signer, Api::Ethcore, Api::EthcoreSet, Api::Traces, Api::Rpc]
|
vec![Api::Web3, Api::Net, Api::Eth, Api::PersonalAccounts, Api::PersonalSafe, Api::Signer, Api::Ethcore, Api::EthcoreSet, Api::Traces, Api::Rpc]
|
||||||
.into_iter().collect()
|
.into_iter().collect()
|
||||||
|
Loading…
Reference in New Issue
Block a user