Skip to content

Commit

Permalink
Merge branch 'currency' into 'master'
Browse files Browse the repository at this point in the history
change currency to test-π

See merge request pi-network/dev/apps/blockexplorer/blockexplorer-new!2
  • Loading branch information
kokkalis committed Sep 27, 2021
2 parents c1ebe77 + 97bc189 commit 20f5631
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/Account.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const NameValueTable = ({data, decodeValue = false}) => {
}

const balanceRow = bal => (
<tr key={bal.asset_code ? `${bal.asset_code}-${bal.asset_issuer}` : 'XLM'}>
<tr key={bal.asset_code ? `${bal.asset_code}-${bal.asset_issuer}` : 'test-π'}>
<td>
<Asset
type={bal.asset_type}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Ledger extends React.Component {
</DetailRow>
<DetailRow label="prevHash">
<span title={prevHash}>
<Link to={`/ledger/${prevSeq}`}>
<Link to={`/block/${prevSeq}`}>
{ledgerHash(prevHash)}
</Link>
</span>
Expand All @@ -131,13 +131,13 @@ class Ledger extends React.Component {
{baseInStroops
? stroopsToLumens(baseReserve)
: Number(baseReserve)}{' '}
XLM
test-π
</DetailRow>
<DetailRow label="fee.pool">
<FormattedNumber value={feePool} /> XLM
<FormattedNumber value={feePool} /> test-π
</DetailRow>
<DetailRow label="total.coins">
<FormattedNumber value={totalCoins} /> XLM
<FormattedNumber value={totalCoins} /> test-π
</DetailRow>
<DetailRow label="protocolVersion">{protocol}</DetailRow>
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/components/shared/Asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import AccountLink from './AccountLink'

const Asset = ({code, issuer, type}) => {
const isLumens = type === 'native'
const propCode = isLumens ? 'XLM' : code
const propCode = isLumens ? 'test-π' : code
return (
<span>
{propCode}{' '}
Expand All @@ -17,7 +17,7 @@ const Asset = ({code, issuer, type}) => {
)
}

// For XLM code and issuer aren't set. type will be 'native'
// For test-π code and issuer aren't set. type will be 'native'
Asset.propTypes = {
code: PropTypes.string,
issuer: PropTypes.string,
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/LumensRates.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class LumensRates extends React.PureComponent {
render() {
return (
<span>
XLM/USD: {this.props.usd} {this.renderChange(this.props.change)}
test-π/USD: {this.props.usd} {this.renderChange(this.props.change)}
</span>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`render negative change in rate 1`] = `
Array [
<span>
XLM/USD:
test-π/USD:
0.025
<span
Expand All @@ -22,7 +22,7 @@ Array [
exports[`render positive change in rate 1`] = `
Array [
<span>
XLM/USD:
test-π/USD:
0.020
<span
Expand Down
3 changes: 2 additions & 1 deletion src/lib/stellar/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import networks from './networks'
export const defaultNetworkAddresses = {
public: 'https://horizon.stellar.org',
test: 'https://horizon-testnet.stellar.org',
local: 'http://localhost:8000',
// local: 'http://localhost:8000',
local: 'https://api.testnet.minepi.com',
}

/**
Expand Down

0 comments on commit 20f5631

Please sign in to comment.