find . -type f -not -path './.*' -exec sed -i -e "s/ethcore\.io/parity.io/g" {} \; (#5528)
This commit is contained in:
parent
da2f684f18
commit
02b54ff7e8
@ -1,9 +1,9 @@
|
|||||||
# [Parity](https://ethcore.io/parity.html)
|
# [Parity](https://parity.io/parity.html)
|
||||||
### Fast, light, and robust Ethereum implementation
|
### Fast, light, and robust Ethereum implementation
|
||||||
|
|
||||||
### [Download latest release](https://github.com/paritytech/parity/releases)
|
### [Download latest release](https://github.com/paritytech/parity/releases)
|
||||||
|
|
||||||
[![build status](https://gitlab.ethcore.io/parity/parity/badges/master/build.svg)](https://gitlab.ethcore.io/parity/parity/commits/master) [![Coverage Status][coveralls-image]][coveralls-url] [![GPLv3][license-image]][license-url]
|
[![build status](https://gitlab.parity.io/parity/parity/badges/master/build.svg)](https://gitlab.parity.io/parity/parity/commits/master) [![Coverage Status][coveralls-image]][coveralls-url] [![GPLv3][license-image]][license-url]
|
||||||
|
|
||||||
### Join the chat!
|
### Join the chat!
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn fetch_with_abort(&self, url: &str, _abort: fetch::Abort) -> Self::Result {
|
fn fetch_with_abort(&self, url: &str, _abort: fetch::Abort) -> Self::Result {
|
||||||
assert_eq!(url, "https://ethcore.io/assets/images/ethcore-black-horizontal.png");
|
assert_eq!(url, "https://parity.io/assets/images/ethcore-black-horizontal.png");
|
||||||
future::ok(if self.return_success {
|
future::ok(if self.return_success {
|
||||||
let cursor = ::std::io::Cursor::new(b"result");
|
let cursor = ::std::io::Cursor::new(b"result");
|
||||||
fetch::Response::from_reader(cursor)
|
fetch::Response::from_reader(cursor)
|
||||||
|
@ -370,7 +370,7 @@ pub mod tests {
|
|||||||
|
|
||||||
// then
|
// then
|
||||||
assert_eq!(res, Some(URLHintResult::Content(Content {
|
assert_eq!(res, Some(URLHintResult::Content(Content {
|
||||||
url: "https://ethcore.io/assets/images/ethcore-black-horizontal.png".into(),
|
url: "https://parity.io/assets/images/ethcore-black-horizontal.png".into(),
|
||||||
mime: mime!(Image/Png),
|
mime: mime!(Image/Png),
|
||||||
owner: Address::from_str("deadcafebeefbeefcafedeaddeedfeedffffffff").unwrap(),
|
owner: Address::from_str("deadcafebeefbeefcafedeaddeedfeedffffffff").unwrap(),
|
||||||
})))
|
})))
|
||||||
@ -395,11 +395,11 @@ pub mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn should_guess_mime_type_from_url() {
|
fn should_guess_mime_type_from_url() {
|
||||||
let url1 = "https://ethcore.io/parity";
|
let url1 = "https://parity.io/parity";
|
||||||
let url2 = "https://ethcore.io/parity#content-type=image/png";
|
let url2 = "https://parity.io/parity#content-type=image/png";
|
||||||
let url3 = "https://ethcore.io/parity#something&content-type=image/png";
|
let url3 = "https://parity.io/parity#something&content-type=image/png";
|
||||||
let url4 = "https://ethcore.io/parity.png#content-type=image/jpeg";
|
let url4 = "https://parity.io/parity.png#content-type=image/jpeg";
|
||||||
let url5 = "https://ethcore.io/parity.png";
|
let url5 = "https://parity.io/parity.png";
|
||||||
|
|
||||||
|
|
||||||
assert_eq!(guess_mime_type(url1), None);
|
assert_eq!(guess_mime_type(url1), None);
|
||||||
|
@ -22,6 +22,6 @@ export default (
|
|||||||
<li>We collect your email address when you use this service. This is temporarily kept in memory, and then encrypted and stored in our EU servers. We only retain the cryptographic hash of the email address to prevent duplicated accounts. The cryptographic hash of your email address is also stored on the blockchain which is public by design. You consent to this use.</li>
|
<li>We collect your email address when you use this service. This is temporarily kept in memory, and then encrypted and stored in our EU servers. We only retain the cryptographic hash of the email address to prevent duplicated accounts. The cryptographic hash of your email address is also stored on the blockchain which is public by design. You consent to this use.</li>
|
||||||
<li>You pay a fee for the cost of this service using the account you want to verify.</li>
|
<li>You pay a fee for the cost of this service using the account you want to verify.</li>
|
||||||
<li>Your email address is transmitted to a third party EU email verification service mailjet for the sole purpose of the email verification. You consent to this use. Mailjet's privacy policy is here: <a href='https://www.mailjet.com/privacy-policy'>https://www.mailjet.com/privacy-policy</a>.</li>
|
<li>Your email address is transmitted to a third party EU email verification service mailjet for the sole purpose of the email verification. You consent to this use. Mailjet's privacy policy is here: <a href='https://www.mailjet.com/privacy-policy'>https://www.mailjet.com/privacy-policy</a>.</li>
|
||||||
<li><i>Parity Technology Limited</i> is registered in England and Wales under company number <code>09760015</code> and complies with the Data Protection Act 1998 (UK). You may contact us via email at <a href={ 'mailto:admin@parity.io' }>admin@parity.io</a>. Our general privacy policy can be found here: <a href={ 'https://ethcore.io/legal.html' }>https://ethcore.io/legal.html</a>.</li>
|
<li><i>Parity Technology Limited</i> is registered in England and Wales under company number <code>09760015</code> and complies with the Data Protection Act 1998 (UK). You may contact us via email at <a href={ 'mailto:admin@parity.io' }>admin@parity.io</a>. Our general privacy policy can be found here: <a href={ 'https://parity.io/legal.html' }>https://parity.io/legal.html</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
|
@ -22,6 +22,6 @@ export default (
|
|||||||
<li>We collect your phone number when you use this service. This is temporarily kept in memory, and then encrypted and stored in our EU servers. We only retain the cryptographic hash of the number to prevent duplicated accounts. You consent to this use.</li>
|
<li>We collect your phone number when you use this service. This is temporarily kept in memory, and then encrypted and stored in our EU servers. We only retain the cryptographic hash of the number to prevent duplicated accounts. You consent to this use.</li>
|
||||||
<li>You pay a fee for the cost of this service using the account you want to verify.</li>
|
<li>You pay a fee for the cost of this service using the account you want to verify.</li>
|
||||||
<li>Your phone number is transmitted to a third party US SMS verification service Twilio for the sole purpose of the SMS verification. You consent to this use. Twilio’s privacy policy is here: <a href={ 'https://www.twilio.com/legal/privacy/developer' }>https://www.twilio.com/legal/privacy/developer</a>.</li>
|
<li>Your phone number is transmitted to a third party US SMS verification service Twilio for the sole purpose of the SMS verification. You consent to this use. Twilio’s privacy policy is here: <a href={ 'https://www.twilio.com/legal/privacy/developer' }>https://www.twilio.com/legal/privacy/developer</a>.</li>
|
||||||
<li><i>Parity Technology Limited</i> is registered in England and Wales under company number <code>09760015</code> and complies with the Data Protection Act 1998 (UK). You may contact us via email at <a href={ 'mailto:admin@parity.io' }>admin@parity.io</a>. Our general privacy policy can be found here: <a href={ 'https://ethcore.io/legal.html' }>https://ethcore.io/legal.html</a>.</li>
|
<li><i>Parity Technology Limited</i> is registered in England and Wales under company number <code>09760015</code> and complies with the Data Protection Act 1998 (UK). You may contact us via email at <a href={ 'mailto:admin@parity.io' }>admin@parity.io</a>. Our general privacy policy can be found here: <a href={ 'https://parity.io/legal.html' }>https://parity.io/legal.html</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
|
@ -42,7 +42,7 @@ impl WebApp for App {
|
|||||||
Info {
|
Info {
|
||||||
name: "Parity UI",
|
name: "Parity UI",
|
||||||
version: env!("CARGO_PKG_VERSION"),
|
version: env!("CARGO_PKG_VERSION"),
|
||||||
author: "Ethcore <admin@ethcore.io>",
|
author: "Ethcore <admin@parity.io>",
|
||||||
description: "New UI for Parity.",
|
description: "New UI for Parity.",
|
||||||
icon_url: "icon.png",
|
icon_url: "icon.png",
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ export default class TnC extends Component {
|
|||||||
<p>You agree that you are solely responsible for (and that EthCore has no responsibility to you or to any third party for) any breach of your obligations under these terms and for the consequences (including any loss or damage which EthCore may suffer) of any such breach.</p>
|
<p>You agree that you are solely responsible for (and that EthCore has no responsibility to you or to any third party for) any breach of your obligations under these terms and for the consequences (including any loss or damage which EthCore may suffer) of any such breach.</p>
|
||||||
|
|
||||||
<h3>Privacy and your personal information</h3>
|
<h3>Privacy and your personal information</h3>
|
||||||
<p>You agree to the use of your data (if any is gathered) in accordance with EthCore’s privacy policies: <a href='https://ethcore.io/legal.html' target='_blank'>https://ethcore.io/legal.html</a>. This policy explains how EthCore treats your personal information (if any is gathered), and protects your privacy, when you use EthCore’s Products.</p>
|
<p>You agree to the use of your data (if any is gathered) in accordance with EthCore’s privacy policies: <a href='https://parity.io/legal.html' target='_blank'>https://parity.io/legal.html</a>. This policy explains how EthCore treats your personal information (if any is gathered), and protects your privacy, when you use EthCore’s Products.</p>
|
||||||
|
|
||||||
<h3>Content in Parity</h3>
|
<h3>Content in Parity</h3>
|
||||||
<p>You understand that all information and data (such as smart contracts, data files, written text, computer software, music, audio files or other sounds, photographs, videos or other images) which you may have access to as part of, or through your use of, EthCore’s Product are the sole responsibility of the person from which such content originated. All such information is referred to below as the “Content”.</p>
|
<p>You understand that all information and data (such as smart contracts, data files, written text, computer software, music, audio files or other sounds, photographs, videos or other images) which you may have access to as part of, or through your use of, EthCore’s Product are the sole responsibility of the person from which such content originated. All such information is referred to below as the “Content”.</p>
|
||||||
@ -87,7 +87,7 @@ export default class TnC extends Component {
|
|||||||
<h3>Proprietary rights</h3>
|
<h3>Proprietary rights</h3>
|
||||||
<p>You acknowledge and agree that EthCore own all legal right, title and interest in and to the Parity and EthCore’s Products, including any intellectual property rights which subsist in Parity and EthCore’s Products (whether those rights happen to be registered or not, and wherever in the world those rights may exist).</p>
|
<p>You acknowledge and agree that EthCore own all legal right, title and interest in and to the Parity and EthCore’s Products, including any intellectual property rights which subsist in Parity and EthCore’s Products (whether those rights happen to be registered or not, and wherever in the world those rights may exist).</p>
|
||||||
<p>Unless you have agreed otherwise in writing with EthCore, nothing in the Terms gives you a right to use any of EthCore’s trade names, trade marks, service marks, logos, domain names, and other distinctive brand features.</p>
|
<p>Unless you have agreed otherwise in writing with EthCore, nothing in the Terms gives you a right to use any of EthCore’s trade names, trade marks, service marks, logos, domain names, and other distinctive brand features.</p>
|
||||||
<p>If you have been given an explicit right to use any of these brand features in a separate written agreement with EthCore, then you agree that your use of such features shall be in compliance with that agreement, any applicable provisions of these terms, and EthCore’s brand feature use guidelines as updated from time to time. These guidelines can be viewed online at <a href='https://ethcore.io/press.html' target='_blank'>https://ethcore.io/press.html</a>.</p>
|
<p>If you have been given an explicit right to use any of these brand features in a separate written agreement with EthCore, then you agree that your use of such features shall be in compliance with that agreement, any applicable provisions of these terms, and EthCore’s brand feature use guidelines as updated from time to time. These guidelines can be viewed online at <a href='https://parity.io/press.html' target='_blank'>https://parity.io/press.html</a>.</p>
|
||||||
<p>EthCore acknowledges and agrees that it obtains no right, title or interest from you (or your licensors) under these terms in or to any content that you submit, post, transmit or display on, or through, Parity, including any intellectual property rights which subsist in that content (whether those rights happen to be registered or not, and wherever in the world those rights may exist). Unless you have agreed otherwise in writing with EthCore, you agree that you are responsible for protecting and enforcing those rights and that EthCore has no obligation to do so on your behalf.</p>
|
<p>EthCore acknowledges and agrees that it obtains no right, title or interest from you (or your licensors) under these terms in or to any content that you submit, post, transmit or display on, or through, Parity, including any intellectual property rights which subsist in that content (whether those rights happen to be registered or not, and wherever in the world those rights may exist). Unless you have agreed otherwise in writing with EthCore, you agree that you are responsible for protecting and enforcing those rights and that EthCore has no obligation to do so on your behalf.</p>
|
||||||
<p>You agree that you shall not remove, obscure, or alter any proprietary rights notices (including copyright and trade mark notices) which may be affixed to or contained within Parity or EthCore’s Products.</p>
|
<p>You agree that you shall not remove, obscure, or alter any proprietary rights notices (including copyright and trade mark notices) which may be affixed to or contained within Parity or EthCore’s Products.</p>
|
||||||
<p>Unless you have been expressly authorized to do so in writing by EthCore, you agree that in using Parity, you will not use any trade mark, service mark, trade name, logo of any company or organization in a way that is likely or intended to cause confusion about the owner or authorized user of such marks, names or logos.</p>
|
<p>Unless you have been expressly authorized to do so in writing by EthCore, you agree that in using Parity, you will not use any trade mark, service mark, trade name, logo of any company or organization in a way that is likely or intended to cause confusion about the owner or authorized user of such marks, names or logos.</p>
|
||||||
@ -145,7 +145,7 @@ export default class TnC extends Component {
|
|||||||
<p>You acknowledge and agree that EthCore is not liable for any loss or damage which may be incurred by you as a result of the availability of those external sites or resources, or as a result of any reliance placed by you on the completeness, accuracy or existence of any advertising, products or other materials on, or available from, such web sites or resources.</p>
|
<p>You acknowledge and agree that EthCore is not liable for any loss or damage which may be incurred by you as a result of the availability of those external sites or resources, or as a result of any reliance placed by you on the completeness, accuracy or existence of any advertising, products or other materials on, or available from, such web sites or resources.</p>
|
||||||
|
|
||||||
<h3>Changes to the Terms</h3>
|
<h3>Changes to the Terms</h3>
|
||||||
<p>EthCore may make changes to these from time to time. When these changes are made, EthCore will make a new copy of these terms available at https://ethcore.io/legal.html and any new terms will be made available to you from within, or through, the affected EthCore’s Product.</p>
|
<p>EthCore may make changes to these from time to time. When these changes are made, EthCore will make a new copy of these terms available at https://parity.io/legal.html and any new terms will be made available to you from within, or through, the affected EthCore’s Product.</p>
|
||||||
<p>You understand and agree that if you use Parity or EthCore’s Products after the date on which the Terms have changed, EthCore will treat your use as acceptance of the updated terms.</p>
|
<p>You understand and agree that if you use Parity or EthCore’s Products after the date on which the Terms have changed, EthCore will treat your use as acceptance of the updated terms.</p>
|
||||||
|
|
||||||
<h3>General legal terms</h3>
|
<h3>General legal terms</h3>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"url": "chaindeploy",
|
"url": "chaindeploy",
|
||||||
"name": "Chain Deployment",
|
"name": "Chain Deployment",
|
||||||
"description": "Deploy all basic contracts, names & applications to the network",
|
"description": "Deploy all basic contracts, names & applications to the network",
|
||||||
"author": "Parity Team <admin@ethcore.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"visible": false
|
"visible": false
|
||||||
},
|
},
|
||||||
@ -12,7 +12,7 @@
|
|||||||
"url": "tokendeploy",
|
"url": "tokendeploy",
|
||||||
"name": "Token Deployment",
|
"name": "Token Deployment",
|
||||||
"description": "Deploy new basic tokens that you are able to send around",
|
"description": "Deploy new basic tokens that you are able to send around",
|
||||||
"author": "Parity Team <admin@ethcore.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
@ -21,7 +21,7 @@
|
|||||||
"url": "registry",
|
"url": "registry",
|
||||||
"name": "Registry",
|
"name": "Registry",
|
||||||
"description": "A global registry of addresses on the network",
|
"description": "A global registry of addresses on the network",
|
||||||
"author": "Parity Team <admin@ethcore.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
@ -30,7 +30,7 @@
|
|||||||
"url": "tokenreg",
|
"url": "tokenreg",
|
||||||
"name": "Token Registry",
|
"name": "Token Registry",
|
||||||
"description": "A registry of transactable tokens on the network",
|
"description": "A registry of transactable tokens on the network",
|
||||||
"author": "Parity Team <admin@ethcore.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"visible": true,
|
"visible": true,
|
||||||
"secure": true
|
"secure": true
|
||||||
@ -40,7 +40,7 @@
|
|||||||
"url": "signaturereg",
|
"url": "signaturereg",
|
||||||
"name": "Method Registry",
|
"name": "Method Registry",
|
||||||
"description": "A registry of method signatures for lookups on transactions",
|
"description": "A registry of method signatures for lookups on transactions",
|
||||||
"author": "Parity Team <admin@ethcore.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"visible": true
|
"visible": true
|
||||||
},
|
},
|
||||||
@ -49,7 +49,7 @@
|
|||||||
"url": "githubhint",
|
"url": "githubhint",
|
||||||
"name": "GitHub Hint",
|
"name": "GitHub Hint",
|
||||||
"description": "A mapping of GitHub URLs to hashes for use in contracts as references",
|
"description": "A mapping of GitHub URLs to hashes for use in contracts as references",
|
||||||
"author": "Parity Team <admin@ethcore.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"visible": false,
|
"visible": false,
|
||||||
"secure": true
|
"secure": true
|
||||||
@ -59,7 +59,7 @@
|
|||||||
"url": "localtx",
|
"url": "localtx",
|
||||||
"name": "TxQueue Viewer",
|
"name": "TxQueue Viewer",
|
||||||
"description": "Have a peek at the internals of your node's transaction queue",
|
"description": "Have a peek at the internals of your node's transaction queue",
|
||||||
"author": "Parity Team <admin@ethcore.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"visible": true,
|
"visible": true,
|
||||||
"secure": true
|
"secure": true
|
||||||
@ -69,7 +69,7 @@
|
|||||||
"url": "dappreg",
|
"url": "dappreg",
|
||||||
"name": "Dapp Registration",
|
"name": "Dapp Registration",
|
||||||
"description": "Enables the registration and content management of dapps on the network",
|
"description": "Enables the registration and content management of dapps on the network",
|
||||||
"author": "Parity Team <admin@ethcore.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"visible": false,
|
"visible": false,
|
||||||
"secure": true
|
"secure": true
|
||||||
@ -79,7 +79,7 @@
|
|||||||
"url": "web",
|
"url": "web",
|
||||||
"name": "Browser",
|
"name": "Browser",
|
||||||
"description": "A Web 2.0 hosted pseudo-dapps browser",
|
"description": "A Web 2.0 hosted pseudo-dapps browser",
|
||||||
"author": "Parity Team <admin@ethcore.io>",
|
"author": "Parity Team <admin@parity.io>",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"visible": true,
|
"visible": true,
|
||||||
"skipBuild": true,
|
"skipBuild": true,
|
||||||
@ -91,7 +91,7 @@
|
|||||||
"name": "Parity/Web3 console",
|
"name": "Parity/Web3 console",
|
||||||
"description": "A Javascript development console complete with web3 and parity objects",
|
"description": "A Javascript development console complete with web3 and parity objects",
|
||||||
"version": "0.3",
|
"version": "0.3",
|
||||||
"author": "Gav Wood <gavin@ethcore.io>",
|
"author": "Gav Wood <gavin@parity.io>",
|
||||||
"position": "top-right",
|
"position": "top-right",
|
||||||
"visible": true,
|
"visible": true,
|
||||||
"secure": true,
|
"secure": true,
|
||||||
|
@ -1369,13 +1369,13 @@ mod tests {
|
|||||||
let conf0 = parse(&["parity"]);
|
let conf0 = parse(&["parity"]);
|
||||||
let conf1 = parse(&["parity", "--jsonrpc-hosts", "none"]);
|
let conf1 = parse(&["parity", "--jsonrpc-hosts", "none"]);
|
||||||
let conf2 = parse(&["parity", "--jsonrpc-hosts", "all"]);
|
let conf2 = parse(&["parity", "--jsonrpc-hosts", "all"]);
|
||||||
let conf3 = parse(&["parity", "--jsonrpc-hosts", "ethcore.io,something.io"]);
|
let conf3 = parse(&["parity", "--jsonrpc-hosts", "parity.io,something.io"]);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assert_eq!(conf0.rpc_hosts(), Some(Vec::new()));
|
assert_eq!(conf0.rpc_hosts(), Some(Vec::new()));
|
||||||
assert_eq!(conf1.rpc_hosts(), Some(Vec::new()));
|
assert_eq!(conf1.rpc_hosts(), Some(Vec::new()));
|
||||||
assert_eq!(conf2.rpc_hosts(), None);
|
assert_eq!(conf2.rpc_hosts(), None);
|
||||||
assert_eq!(conf3.rpc_hosts(), Some(vec!["ethcore.io".into(), "something.io".into()]));
|
assert_eq!(conf3.rpc_hosts(), Some(vec!["parity.io".into(), "something.io".into()]));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -1386,13 +1386,13 @@ mod tests {
|
|||||||
let conf0 = parse(&["parity"]);
|
let conf0 = parse(&["parity"]);
|
||||||
let conf1 = parse(&["parity", "--ipfs-api-hosts", "none"]);
|
let conf1 = parse(&["parity", "--ipfs-api-hosts", "none"]);
|
||||||
let conf2 = parse(&["parity", "--ipfs-api-hosts", "all"]);
|
let conf2 = parse(&["parity", "--ipfs-api-hosts", "all"]);
|
||||||
let conf3 = parse(&["parity", "--ipfs-api-hosts", "ethcore.io,something.io"]);
|
let conf3 = parse(&["parity", "--ipfs-api-hosts", "parity.io,something.io"]);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assert_eq!(conf0.ipfs_hosts(), Some(Vec::new()));
|
assert_eq!(conf0.ipfs_hosts(), Some(Vec::new()));
|
||||||
assert_eq!(conf1.ipfs_hosts(), Some(Vec::new()));
|
assert_eq!(conf1.ipfs_hosts(), Some(Vec::new()));
|
||||||
assert_eq!(conf2.ipfs_hosts(), None);
|
assert_eq!(conf2.ipfs_hosts(), None);
|
||||||
assert_eq!(conf3.ipfs_hosts(), Some(vec!["ethcore.io".into(), "something.io".into()]));
|
assert_eq!(conf3.ipfs_hosts(), Some(vec!["parity.io".into(), "something.io".into()]));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -1402,12 +1402,12 @@ mod tests {
|
|||||||
// when
|
// when
|
||||||
let conf0 = parse(&["parity"]);
|
let conf0 = parse(&["parity"]);
|
||||||
let conf1 = parse(&["parity", "--ipfs-api-cors", "*"]);
|
let conf1 = parse(&["parity", "--ipfs-api-cors", "*"]);
|
||||||
let conf2 = parse(&["parity", "--ipfs-api-cors", "http://ethcore.io,http://something.io"]);
|
let conf2 = parse(&["parity", "--ipfs-api-cors", "http://parity.io,http://something.io"]);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
assert_eq!(conf0.ipfs_cors(), None);
|
assert_eq!(conf0.ipfs_cors(), None);
|
||||||
assert_eq!(conf1.ipfs_cors(), Some(vec!["*".into()]));
|
assert_eq!(conf1.ipfs_cors(), Some(vec!["*".into()]));
|
||||||
assert_eq!(conf2.ipfs_cors(), Some(vec!["http://ethcore.io".into(),"http://something.io".into()]));
|
assert_eq!(conf2.ipfs_cors(), Some(vec!["http://parity.io".into(),"http://something.io".into()]));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -198,7 +198,7 @@ fn rpc_parity_set_hash_content() {
|
|||||||
let mut io = IoHandler::new();
|
let mut io = IoHandler::new();
|
||||||
io.extend_with(parity_set_client(&client, &miner, &updater, &network).to_delegate());
|
io.extend_with(parity_set_client(&client, &miner, &updater, &network).to_delegate());
|
||||||
|
|
||||||
let request = r#"{"jsonrpc": "2.0", "method": "parity_hashContent", "params":["https://ethcore.io/assets/images/ethcore-black-horizontal.png"], "id": 1}"#;
|
let request = r#"{"jsonrpc": "2.0", "method": "parity_hashContent", "params":["https://parity.io/assets/images/ethcore-black-horizontal.png"], "id": 1}"#;
|
||||||
let response = r#"{"jsonrpc":"2.0","result":"0x2be00befcf008bc0e7d9cdefc194db9c75352e8632f48498b5a6bfce9f02c88e","id":1}"#;
|
let response = r#"{"jsonrpc":"2.0","result":"0x2be00befcf008bc0e7d9cdefc194db9c75352e8632f48498b5a6bfce9f02c88e","id":1}"#;
|
||||||
|
|
||||||
assert_eq!(io.handle_request_sync(request), Some(response.to_owned()));
|
assert_eq!(io.handle_request_sync(request), Some(response.to_owned()));
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
authors = ["Ethcore <admin@ethcore.io>"]
|
authors = ["Ethcore <admin@parity.io>"]
|
||||||
description = "Parity Cli Tool"
|
description = "Parity Cli Tool"
|
||||||
homepage = "http://ethcore.io"
|
homepage = "http://parity.io"
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
name = "rpc-cli"
|
name = "rpc-cli"
|
||||||
version = "1.4.0"
|
version = "1.4.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user