Skip to content

Commit 0d86f4e

Browse files
author
jagdeep sidhu
committed
ren to easy swap
1 parent e807f82 commit 0d86f4e

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/SysethereumDApp.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SysethereumDApp extends Component {
3636
this.onSysToEth = this.onSysToEth.bind(this);
3737
this.onEthToSys = this.onEthToSys.bind(this);
3838
this.onAssetRegistry = this.onAssetRegistry.bind(this);
39-
this.onFastSwap = this.onFastSwap.bind(this);
39+
this.onEasySwap = this.onEasySwap.bind(this);
4040
this.onHome = this.onHome.bind(this);
4141
this.handleEmailChange = this.handleEmailChange.bind(this);
4242
this.handleEmailSubmit = this.handleEmailSubmit.bind(this);
@@ -90,7 +90,7 @@ class SysethereumDApp extends Component {
9090
onAssetRegistry() {
9191
this.setState({ introDisplay: false, ethToSysDisplay: false, assetRegistryDisplay: true, sysToEthDisplay: false, sysToSysxDisplay: false, sysxToSysDisplay: false, fastSwapDisplay: false});
9292
}
93-
onFastSwap() {
93+
onEasySwap() {
9494
this.setState({ introDisplay: false, ethToSysDisplay: false, assetRegistryDisplay: false, sysToEthDisplay: false, sysToSysxDisplay: false, sysxToSysDisplay: false, fastSwapDisplay: true});
9595
}
9696
onHome() {
@@ -207,7 +207,7 @@ class SysethereumDApp extends Component {
207207
<span>Asset Registry</span>
208208
</div>
209209
</a>
210-
<a className="fastswap" href="#" onClick={this.onFastSwap}>
210+
<a className="fastswap" href="#" onClick={this.onEasySwap}>
211211
<div className="mybtn mybtn-two">
212212
<span>EasySwap</span>
213213
</div>

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CONFIGURATION {
1818
this.SYSXAsset = "123456";
1919
this.TokenUnfreezeFn = '0x8561b3bd1c885cb9cea8df62881a35fe7335336cd5450fd96d14176100c4657d';
2020
this.SysNetwork = sjs.utils.syscoinNetworks.testnet;
21-
this.FastSwapAPI = "http://localhost:8080/api/"
21+
this.EasySwapAPI = "http://localhost:8080/api/"
2222
}
2323
}
2424
export default new CONFIGURATION();

src/wizard/Step1FastSwap.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const satoshibitcoin = require("satoshi-bitcoin");
1111
const sjs = require('syscoinjs-lib');
1212
const web3 = new Web3(Web3.givenProvider);
1313
async function balanceTimerCallback (thisObj) {
14-
await axios.get(CONFIGURATION.FastSwapAPI + "balances")
14+
await axios.get(CONFIGURATION.EasySwapAPI + "balances")
1515
.then(function (response) {
1616
if(response.data.status === "success") {
1717
thisObj.state.SYSBALANCE = web3.utils.fromWei(response.data.data.sysbalance, 'ether')
@@ -32,7 +32,7 @@ async function balanceTimerCallback (thisObj) {
3232
}
3333
})
3434
.catch(error => {
35-
console.error('Fast Swap balance fetch error:', error);
35+
console.error('Easy Swap balance fetch error:', error);
3636
});
3737
thisObj.balanceTimer = setTimeout(balanceTimerCallback, 10000, thisObj)
3838
}
@@ -79,7 +79,7 @@ class Step1FS extends Component {
7979
}
8080
async componentDidMount() {
8181
var thisObj = this
82-
await axios.get(CONFIGURATION.FastSwapAPI + "settings")
82+
await axios.get(CONFIGURATION.EasySwapAPI + "settings")
8383
.then(function (response) {
8484
if(response.data.status === "success") {
8585
thisObj.state.NEVMADDRESS = response.data.data.NEVMADDRESS
@@ -97,7 +97,7 @@ class Step1FS extends Component {
9797

9898
})
9999
.catch(error => {
100-
console.error('Fast Swap settings fetch error:', error);
100+
console.error('Easy Swap settings fetch error:', error);
101101
thisObj.setState({working: true, buttonVal1: false, buttonValMsg1: thisObj.props.t("step1FSNoSettings"),buttonVal2: false, buttonValMsg2: thisObj.props.t("step1FSNoSettings")});
102102
});
103103
}
@@ -387,7 +387,7 @@ class Step1FS extends Component {
387387
return;
388388
}
389389
let thisObj = this;
390-
await axios.post(CONFIGURATION.FastSwapAPI + "/fastswap/" + txid, {txid: txid})
390+
await axios.post(CONFIGURATION.EasySwapAPI + "/fastswap/" + txid, {txid: txid})
391391
.then(function (response) {
392392
if(response.data.status === "success") {
393393
thisObj.state.fsStatus = thisObj.statusToDisplay(response.data.data.status)
@@ -424,7 +424,7 @@ class Step1FS extends Component {
424424

425425
})
426426
.catch(error => {
427-
console.error('Fast Swap error:', error);
427+
console.error('Easy Swap error:', error);
428428
if(error.message.length <= 512 && error.message.indexOf("{") !== -1){
429429
error = JSON.parse(error.message.substring(error.message.indexOf("{")));
430430
}

src/wizard/i18n.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ i18n.use(LanguageDetector).init({
2121
'step3es': 'Step 3',
2222
'step1esc': 'Cancel Transfer',
2323
'step1reg': 'Asset Registry',
24-
'step1fs': 'Fast Swap',
24+
'step1fs': 'Easy Swap',
2525
'step1sx': 'Step 1',
2626
'step2sx': 'Step 2',
2727
'step1xs': 'Step 1',
@@ -65,7 +65,7 @@ i18n.use(LanguageDetector).init({
6565
'step1RegStatusSuccess': 'SPV Proofs were sucessfully saved! Proceed with NEVM transaction now...',
6666
'step1RegUpdateButton': 'Update Registry',
6767
'step1RegSearchBox': 'Search Registry',
68-
'step1FSHead': 'Fast Swap',
68+
'step1FSHead': 'Easy Swap',
6969
'step1FSDescription': 'This provides a quick way to bridge Syscoin across between the UTXO and the NEVM chains. To use EasySwap please fill out the amount, and destination address to the chain you are moving to. For example if you are coming from SYS (UTXO) to go to the NEVM, this would be your NEVM address, and vice versa. Once you have filled these fields out click on either the <b>Send UTXO(SYS)</b> or <b>Send NEVM(SYS)</b> buttons depending on your desired destination (Sending coins on UTXO means you are moving to NEVM and sending coins on NEVM means you are moving to UTXO). Once you have done that you may initiate or view an existing swap by clicking on the <b>Initiate or Check Swap</b> button.',
7070
'step1FSWrongTx': 'Could not find Swap, try a different Transaction ID',
7171
'step1FSEnterTx': 'Enter the Transaction ID of the Syscoin Transaction where the Syscoin were sent to one of the designated addresses in the description above',
@@ -160,7 +160,7 @@ i18n.use(LanguageDetector).init({
160160
'step3es': 'Step 3',
161161
'step1esc': 'Cancel Transfer',
162162
'step1reg': 'Asset Registry',
163-
'step1fs': 'Fast Swap',
163+
'step1fs': 'Easy Swap',
164164
'step1sx': 'Step 1',
165165
'step2sx': 'Step 2',
166166
'step1xs': 'Step 1',
@@ -204,7 +204,7 @@ i18n.use(LanguageDetector).init({
204204
'step1RegStatusSuccess': 'SPV Proofs were sucessfully saved! Proceed with NEVM transaction now...',
205205
'step1RegUpdateButton': 'Update Registry',
206206
'step1RegSearchBox': 'Search Registry',
207-
'step1FSHead': 'Fast Swap',
207+
'step1FSHead': 'Easy Swap',
208208
'step1FSDescription': 'This provides a quick way to bridge Syscoin across between the UTXO and the NEVM chains. To use EasySwap please fill out the amount, and destination address to the chain you are moving to. For example if you are coming from SYS (UTXO) to go to the NEVM, this would be your NEVM address, and vice versa. Once you have filled these fields out click on either the <b>Send UTXO(SYS)</b> or <b>Send NEVM(SYS)</b> buttons depending on your desired destination (Sending coins on UTXO means you are moving to NEVM and sending coins on NEVM means you are moving to UTXO). Once you have done that you may initiate or view an existing swap by clicking on the <b>Initiate or Check Swap</b> button.',
209209
'step1FSWrongTx': 'Could not find Swap, try a different Transaction ID',
210210
'step1FSEnterTx': 'Enter the Transaction ID of the Syscoin Transaction where the Syscoin were sent to one of the designated addresses in the description above',
@@ -299,7 +299,7 @@ i18n.use(LanguageDetector).init({
299299
'step3es': 'Step 3',
300300
'step1esc': 'Cancel Transfer',
301301
'step1reg': 'Asset Registry',
302-
'step1fs': 'Fast Swap',
302+
'step1fs': 'Easy Swap',
303303
'step1sx': 'Step 1',
304304
'step2sx': 'Step 2',
305305
'step1xs': 'Step 1',
@@ -343,7 +343,7 @@ i18n.use(LanguageDetector).init({
343343
'step1RegStatusSuccess': 'SPV Proofs were sucessfully saved! Proceed with NEVM transaction now...',
344344
'step1RegUpdateButton': 'Update Registry',
345345
'step1RegSearchBox': 'Search Registry',
346-
'step1FSHead': 'Fast Swap',
346+
'step1FSHead': 'Easy Swap',
347347
'step1FSDescription': 'This provides a quick way to bridge Syscoin across between the UTXO and the NEVM chains. To use EasySwap please fill out the amount, and destination address to the chain you are moving to. For example if you are coming from SYS (UTXO) to go to the NEVM, this would be your NEVM address, and vice versa. Once you have filled these fields out click on either the <b>Send UTXO(SYS)</b> or <b>Send NEVM(SYS)</b> buttons depending on your desired destination (Sending coins on UTXO means you are moving to NEVM and sending coins on NEVM means you are moving to UTXO). Once you have done that you may initiate or view an existing swap by clicking on the <b>Initiate or Check Swap</b> button.',
348348
'step1FSWrongTx': 'Could not find Swap, try a different Transaction ID',
349349
'step1FSEnterTx': 'Enter the Transaction ID of the Syscoin Transaction where the Syscoin were sent to one of the designated addresses in the description above',

0 commit comments

Comments
 (0)