Skip to content

Commit

Permalink
Merge pull request #345 from Conflux-Chain/Version-v0.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn authored May 27, 2021
2 parents ee264d9 + f703295 commit 79fe06e
Show file tree
Hide file tree
Showing 5 changed files with 14 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,7 +2,12 @@

## Current Develop Branch

## 0.6.8 Thu May 27 2021

- feat: new domain for testnet faucet (#344)

## 0.6.7 Thu May 27 2021

- feat: @conflux-chain to @confluxnetwork (#341)

## 0.6.6 Tue May 18 2021
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/bn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@
"message": "আপনার সীড ফ্রেজ বিষয়ে সাবধান থাকুন — এমন ওয়েবসাইটগুলির রিপোর্ট পাওয়া গেছে যেগুলি ConfluxPortal কে অনুকরণ করার চেষ্টা করে। ConfluxPortal কখনও আপনার সীড ফ্রেজ জিজ্ঞাসা করবে না।"
},
"protectYourKeysMessage2": {
"message": "আপনার ফ্রেজটিকে নিরাপদে রাখুন।সন্দেহজনক কিছু দেখলে, বা একটি ওয়েবসাইট সম্পর্কে নিশ্চিত না হলে, portal@conflux-chain.org এ ইমেল করুন"
"message": "আপনার ফ্রেজটিকে নিরাপদে রাখুন।সন্দেহজনক কিছু দেখলে, বা একটি ওয়েবসাইট সম্পর্কে নিশ্চিত না হলে, portal@confluxnetwork.org এ ইমেল করুন"
},
"rpcUrl": {
"message": "নতুন RPC URL"
Expand Down
6 changes: 3 additions & 3 deletions app/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "ConfluxPortal",
"short_name": "ConfluxPortal",
"version": "0.6.7",
"version": "0.6.8",
"manifest_version": 2,
"author": "https://conflux-chain.org",
"author": "https://confluxnetwork.org",
"description": "__MSG_appDescription__",
"commands": {
"_execute_browser_action": {
Expand Down Expand Up @@ -92,7 +92,7 @@
"matches": [
"https://confluxscan.io/*",
"https://testnet.confluxscan.io/*",
"https://conflux-chain.org/*",
"https://confluxnetwork.org/*",
"https://portal-main.confluxrpc.com/*",
"https://portal-test.confluxrpc.com/*"
],
Expand Down
8 changes: 4 additions & 4 deletions app/scripts/lib/buy-eth-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default getBuyEthUrl
* network does not match any of the specified cases, or if no network is given, returns undefined.
*
*/
function getBuyEthUrl ({ network, /* amount, */ address, service, type }) {
function getBuyEthUrl({ network, /* amount, */ address, service, type }) {
// default service by network if not specified
if (type && !service) {
service = getDefaultServiceForType(type)
Expand All @@ -26,13 +26,13 @@ function getBuyEthUrl ({ network, /* amount, */ address, service, type }) {
case 'conflux-main-faucet':
return `https://confluxscan.io/sponsor`
case 'conflux-test-faucet':
return `http://test-faucet.conflux-chain.org:18088/dev/ask?address=${address}`
return `http://test-faucet.confluxnetwork.org:18088/dev/ask?address=${address}`
default:
throw new Error(`Unknown cryptocurrency exchange or faucet: "${service}"`)
}
}

function getDefaultServiceForNetwork (network) {
function getDefaultServiceForNetwork(network) {
switch (network) {
case '1029':
return 'conflux-main-faucet'
Expand All @@ -43,7 +43,7 @@ function getDefaultServiceForNetwork (network) {
}
}

function getDefaultServiceForType (type) {
function getDefaultServiceForType(type) {
switch (type) {
case 'mainnet':
return 'conflux-main-faucet'
Expand Down
2 changes: 1 addition & 1 deletion test/unit/app/buy-eth-url.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('buy-eth-url', function() {
const testnetUrl = getBuyEthUrl(testnet)
assert.equal(
testnetUrl,
'http://test-faucet.conflux-chain.org:18088/dev/ask?address=0x1dcd5d886577d5081b0c52e242ef29e70be3e7bc'
'http://test-faucet.confluxnetwork.org:18088/dev/ask?address=0x1dcd5d886577d5081b0c52e242ef29e70be3e7bc'
)
})

Expand Down

0 comments on commit 79fe06e

Please sign in to comment.