Skip to content

Commit 6eec242

Browse files
committed
zcoin sigma integration
1 parent 11345c2 commit 6eec242

File tree

9 files changed

+19
-1
lines changed

9 files changed

+19
-1
lines changed

android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ dependencies {
192192
implementation project(':react-native-tcp')
193193
implementation project(':react-native-vector-icons')
194194
implementation project(':react-native-webview')
195+
implementation project(':react-native-zcoin-sigma')
195196

196197
// Add v8-android - prebuilt libv8android.so into APK
197198
implementation 'org.chromium:v8-android:+'

android/app/src/main/java/co/edgesecure/app/MainApplication.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import com.reactnativecomponent.splashscreen.RCTSplashScreenPackage;
3030
import com.rnfs.RNFSPackage;
3131
import com.rt2zz.reactnativecontacts.ReactNativeContacts;
32+
import com.zcoin.sigma.RNZcoinSigmaPackage;
3233
import com.zmxv.RNSound.RNSoundPackage;
3334
import io.invertase.firebase.RNFirebasePackage;
3435
import io.invertase.firebase.analytics.RNFirebaseAnalyticsPackage;
@@ -77,7 +78,8 @@ protected List<ReactPackage> getPackages() {
7778
new RNDeviceInfo(),
7879
new ReactNativeContacts(),
7980
new RNCameraPackage(),
80-
new ExtraDimensionsPackage());
81+
new ExtraDimensionsPackage(),
82+
new RNZcoinSigmaPackage());
8183
}
8284

8385
@Override

android/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ include ':react-native-contacts'
4848
project(':react-native-contacts').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-contacts/android')
4949
include ':react-native-camera'
5050
project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android')
51+
include ':react-native-zcoin-sigma'
52+
project(':react-native-zcoin-sigma').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-zcoin-sigma/android')
5153
include ':ExtraDimensions'
5254
project(':ExtraDimensions').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-extra-dimensions-android/android')
5355
include ':app'

ios/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ target 'edge' do
4141
pod 'react-native-smart-splash-screen', :path => '../node_modules/react-native-smart-splash-screen'
4242
pod 'react-native-tcp', :path => '../node_modules/react-native-tcp'
4343
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
44+
pod 'react-native-zcoin-sigma', :path => '../node_modules/react-native-zcoin-sigma'
4445
pod 'ReactNativeART', :path => '../node_modules/@react-native-community/art'
4546
pod 'ReactNativePermissions', :path => '../node_modules/react-native-permissions'
4647
pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@
171171
"react-native-v8": ">=0.59.10-patch.0 <0.59.11",
172172
"react-native-vector-icons": "^6.1.0",
173173
"react-native-webview": "git://github.com/swansontec/react-native-webview#edge-version",
174+
"react-native-zcoin-sigma": "git://github.com/hzak/react-native-zcoin-sigma#860d64c21b8c64b83f6aad50012185d6d3ebced5",
174175
"react-redux": "^5.0.5",
175176
"redux": "^3.7.1",
176177
"redux-thunk": "^2.2.0",

src/components/common/TransactionRow.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import * as intl from '../../locales/intl.js'
1313
import s from '../../locales/strings'
1414
import T from '../../modules/UI/components/FormattedText/FormattedText.ui.js'
1515
import type { ContactsState } from '../../reducers/ContactsReducer'
16+
import { getSpecialCurrencyInfo } from '../../constants/WalletAndCurrencyConstants.js'
1617
import styles, { styles as styleRaw } from '../../styles/scenes/TransactionListStyle'
1718
import type { GuiWallet, TransactionListTx } from '../../types/types.js'
1819
import * as UTILS from '../../util/utils'
@@ -82,6 +83,10 @@ export class TransactionRowComponent extends Component<Props, State> {
8283
// XXX -paulvp Why is this hard coded here?
8384
txName = SENT_TEXT + currencyName
8485
txImage = sentTypeImage
86+
87+
if (tx.otherParams.isSpecialTransaction) {
88+
txName = getSpecialCurrencyInfo(this.props.selectedCurrencyCode).specialTransactionTitle
89+
}
8590
} else {
8691
txName = RECEIVED_TEXT + currencyName
8792
txImage = receivedTypeImage

src/constants/WalletAndCurrencyConstants.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export const WALLET_TYPE_ORDER = [
106106
'wallet:smartcash',
107107
'wallet:groestlcoin',
108108
'wallet:zcoin',
109+
'wallet:zcoins',
109110
'wallet:ufo'
110111
]
111112

@@ -301,6 +302,9 @@ export const SPECIAL_CURRENCY_INFO: SpecialCurrencyInfo = {
301302
},
302303
BAT: {
303304
showEarnInterestCard: true
305+
},
306+
XZC: {
307+
specialTransactionTitle: s.strings.fragment_transaction_list_mint_tx_title
304308
}
305309
}
306310

src/locales/en_US.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ const strings = {
9696
fragment_transaction_list_tx_dropped: 'Dropped',
9797
fragment_transaction_list_tx_synchronizing: 'Synchronizing',
9898
fragment_transaction_list_confirmation_progress: '%s of %s Confirmations',
99+
fragment_transaction_list_mint_tx_title: 'Anonymized',
99100
transaction_list_buy_crypto_message: 'Buy %s',
100101
transaction_list_no_tx_yet: 'No transactions yet!',
101102
fragment_wallets_addwallet_name_hint: 'New Wallet Name',

src/util/corePlugins.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const currencyPlugins = {
5757
ufo: true,
5858
vertcoin: true,
5959
zcoin: true,
60+
zcoins: true,
6061
// edge-currency-monero:
6162
monero: ENV.MONERO_INIT
6263
}

0 commit comments

Comments
 (0)