Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5161f5b
change
sk-enya Nov 17, 2022
ebecf3b
updated sentry & fix linting issues.
sk-enya Nov 29, 2022
b6b9864
setting up address and app service for multi chains
sk-enya Dec 14, 2022
baeaf1c
updated sentry packages.
sk-enya Dec 16, 2022
e68fdca
decrement sentry package due unexpected errors onbuild
sk-enya Dec 16, 2022
39e59c4
change:
sk-enya Dec 16, 2022
651c054
change:
sk-enya Dec 16, 2022
df951c1
change:
sk-enya Dec 21, 2022
22dba22
Change:
sk-enya Dec 21, 2022
8eb3d4a
change:
sk-enya Dec 22, 2022
8d62d2e
fix earn page listing of lp.
sk-enya Dec 22, 2022
49c396a
change: remove warning in console.
sk-enya Jan 9, 2023
b0b5e59
fix network names & fix omg watcher axios instance
sk-enya Jan 9, 2023
809a236
change:
sk-enya Jan 9, 2023
a281ac6
emergency swap content update for each deployment.
sk-enya Jan 10, 2023
f0a4f9e
update sentry config
sk-enya Jan 10, 2023
4ea5d8d
fix: emergency swap deployments
sk-enya Jan 10, 2023
a9c605f
fix: fuacet as component, faucet service
sk-enya Jan 11, 2023
f56d119
referening address from this.addresses instead of allAddresses
sk-enya Jan 11, 2023
20beb0e
fix: fetch calls only on ETH network
sk-enya Jan 11, 2023
e003aa4
updated the file name
sk-enya Jan 18, 2023
4dae6f8
setting up fees for boba
sk-enya Jan 18, 2023
93c02c5
change: network hash is broken on history page.
sk-enya Jan 21, 2023
9333bde
cleanup network service
sk-enya Jan 21, 2023
e08a21f
One Gateway : Wallet Token Listing Fixes
sk-enya Jan 21, 2023
6ffe925
L1 to L2 bridging
sk-enya Jan 25, 2023
3b6f779
1. fetch transaction on connect only
sk-enya Jan 26, 2023
0810e42
adding sushi to BNB network
sk-enya Jan 26, 2023
155fcb4
updated layerzero testnet adresses
sk-enya Jan 26, 2023
1b2372f
updated sentry to latest pack
sk-enya Jan 30, 2023
a4b1908
updated sentry to latest pack
sk-enya Jan 30, 2023
082e0c9
Added naming for l1 native token on exit
sk-enya Jan 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/boba/gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"@mui/icons-material": "^5.3.1",
"@mui/material": "^5.4.0",
"@mui/styles": "^5.3.0",
"@sentry/react": "^7.24.1",
"@sentry/tracing": "^7.24.1",
"@sentry/react": "^7.34.0",
"@sentry/tracing": "^7.34.0",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"axios": "^0.21.1",
Expand Down
5 changes: 2 additions & 3 deletions packages/boba/gateway/src/actions/farmAction.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Varna - A Privacy-Preserving Marketplace
Varna uses Fully Homomorphic Encryption to make markets fair.
Varna uses Fully Homomorphic Encryption to make markets fair.
Copyright (C) 2021 Enya Inc. Palo Alto, CA

This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -48,7 +48,6 @@ const getFarmInfoSuccess = (L1PoolInfo, L1UserInfo, L2PoolInfo, L2UserInfo) => (
// })

export const getFarmInfo = () => async (dispatch) => {
console.log("getFarmInfo()")
dispatch(getFarmInfoBegin())
const [L1LPInfo, L2LPInfo] = await Promise.all([
networkService.getL1LPInfo(),
Expand Down Expand Up @@ -122,4 +121,4 @@ export function fetchL1LPBalance(currency) {

export function fetchL2LPBalance(currency) {
return createAction('FETCH/L2LPBALANCE', () => networkService.L2LPBalance(currency))
}
}
11 changes: 4 additions & 7 deletions packages/boba/gateway/src/actions/networkAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,26 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

import gasService from 'services/gas.service'
import networkService from 'services/networkService'
import transctionService from 'services/transaction.service'
import { createAction } from './createAction'

export function fetchBalances() {
return createAction('BALANCE/GET', () => networkService.getBalances())
}

export function fetchGas() {
return createAction('GAS/GET', () => networkService.getGas())
return createAction('GAS/GET', () => gasService.getGas())
}

export function addTokenList() {
console.log("addTokenList")
return createAction('TOKENLIST/GET', () => networkService.addTokenList())
}

export function fetchTransactions() {
return createAction('TRANSACTION/GETALL', () =>
networkService.getTransactions()
transctionService.getTransactions()
)
}

Expand All @@ -47,10 +48,6 @@ export function fetchFastExits() {
)
}

export function fetchExits() {
return createAction('EXIT/GETALL', () => networkService.getExits())
}

export function exitBOBA(token, value) {
return createAction('EXIT/CREATE', () =>
networkService.exitBOBA(token, value)
Expand Down
4 changes: 2 additions & 2 deletions packages/boba/gateway/src/actions/verifierAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

import networkService from 'services/networkService'
import verifierService from 'services/verifier.service'
import { createAction } from './createAction'

export function fetchVerifierStatus() {
return createAction('VERIFIER/GET', () => networkService.fetchVerifierStatus())
return createAction('VERIFIER/GET', () => verifierService.getVerifierStatus())
}
38 changes: 6 additions & 32 deletions packages/boba/gateway/src/api/etherScanAxios.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,13 @@
import axios from 'axios'
import { LAYER } from 'util/constant';
import { getNetwork } from 'util/masterConfig'
const nw = getNetwork()
export default function etherScanInstance(blockExplorer) {

export default function etherScanInstance(networkGateway, layer){

let axiosInstance = null;

if(networkGateway === 'local') {
return null //does not make sense on local
}
else if (networkGateway === 'goerli' && layer === LAYER.L1) {
axiosInstance = axios.create({
baseURL: nw.goerli.L1.blockExplorer,
})
}
else if (networkGateway === 'goerli' && layer === LAYER.L2) {
axiosInstance = axios.create({
baseURL: nw.goerli.L2.blockExplorer,
})
}
else if (networkGateway === 'mainnet' && layer === LAYER.L1) {
axiosInstance = axios.create({
baseURL: nw.mainnet.L1.blockExplorer,
})
}
else if (networkGateway === 'mainnet' && layer === LAYER.L2) {
axiosInstance = axios.create({
baseURL: nw.mainnet.L2.blockExplorer,
})
}
let axiosInstance = axios.create({
baseURL: blockExplorer,
})

axiosInstance.interceptors.request.use((config) => {
config.headers['Accept'] = 'application/json'
config.headers['Content-Type'] = 'application/json'
config.headers[ 'Accept' ] = 'application/json'
config.headers[ 'Content-Type' ] = 'application/json'
return config
})

Expand Down
22 changes: 5 additions & 17 deletions packages/boba/gateway/src/api/metaTransactionAxios.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
import axios from 'axios'
import { getBaseServices } from 'util/masterConfig'

export default function metaTransactionAxiosInstance(networkGateway){
export default function metaTransactionAxiosInstance(networkConfig) {
const url = networkConfig['META_TRANSACTION']

let axiosInstance = null;

if(networkGateway === 'local') {
return null //does not make sense on local
}
else if (networkGateway === 'goerli') {
axiosInstance = axios.create({
baseURL: getBaseServices().GOERLI_META_TRANSACTION,
})
}
else if (networkGateway === 'mainnet') {
axiosInstance = axios.create({
baseURL: getBaseServices().MAINNET_META_TRANSACTION,
})
}
let axiosInstance = axios.create({
baseURL: url,
})

axiosInstance.interceptors.request.use((config) => {
config.headers['Accept'] = 'application/json'
Expand Down
30 changes: 7 additions & 23 deletions packages/boba/gateway/src/api/omgxWatcherAxios.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
import axios from 'axios'
import { getNetwork } from 'util/masterConfig'
const nw = getNetwork()

export default function omgxWatcherAxiosInstance(networkGateway){
export default function omgxWatcherAxiosInstance(networkConfig) {
const watcherUrl = networkConfig[ 'OMGX_WATCHER_URL' ]

let axiosInstance = null

if(networkGateway === 'local') {
return null //does not make sense on local
}
else if (networkGateway === 'goerli') {
if(nw.goerli.OMGX_WATCHER_URL === null) return
axiosInstance = axios.create({
baseURL: nw.goerli.OMGX_WATCHER_URL,
})
}
else if (networkGateway === 'mainnet') {

if(nw.mainnet.OMGX_WATCHER_URL === null) return
axiosInstance = axios.create({
baseURL: nw.mainnet.OMGX_WATCHER_URL,
})
}
let axiosInstance = axios.create({
baseURL: watcherUrl,
})

axiosInstance.interceptors.request.use((config) => {
config.headers['Accept'] = 'application/json'
config.headers['Content-Type'] = 'application/json'
config.headers[ 'Accept' ] = 'application/json'
config.headers[ 'Content-Type' ] = 'application/json'
return config
})

Expand Down
30 changes: 7 additions & 23 deletions packages/boba/gateway/src/api/verifierWatcherAxios.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
import axios from 'axios'
import { getNetwork } from 'util/masterConfig'
const nw = getNetwork()

export default function verifierWatcherAxiosInstance(networkGateway){
export default function verifierWatcherAxiosInstance(networkConfig) {
const url = networkConfig[ 'VERIFIER_WATCHER_URL' ]

let axiosInstance = null

if(networkGateway === 'local') {
return null //does not make sense on local
}
else if (networkGateway === 'goerli') {
if(nw.goerli.VERIFIER_WATCHER_URL === null) return
axiosInstance = axios.create({
baseURL: nw.goerli.VERIFIER_WATCHER_URL,
})
}
else if (networkGateway === 'mainnet') {

if(nw.mainnet.VERIFIER_WATCHER_URL === null) return
axiosInstance = axios.create({
baseURL: nw.mainnet.VERIFIER_WATCHER_URL,
})
}
let axiosInstance = axios.create({
baseURL: url
})

axiosInstance.interceptors.request.use((config) => {
config.headers['Accept'] = 'application/json'
config.headers['Content-Type'] = 'application/json'
config.headers[ 'Accept' ] = 'application/json'
config.headers[ 'Content-Type' ] = 'application/json'
return config
})

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React, { useEffect } from 'react'
import * as Sentry from '@sentry/react';
import { BrowserTracing } from '@sentry/tracing';
import { Typography } from '@mui/material';
import { APP_ENV, SENTRY_DSN } from 'util/constant';
import { useSelector } from 'react-redux';
import { selectNetwork } from 'selectors/networkSelector';
import { selectActiveNetwork } from 'selectors/networkSelector';


/**
Expand All @@ -18,7 +17,7 @@ const SentryWrapper = ({
children
}) => {

const network = useSelector(selectNetwork());
const network = useSelector(selectActiveNetwork());

useEffect(() => {
const dns = SENTRY_DSN;
Expand All @@ -33,7 +32,7 @@ const SentryWrapper = ({
onunhandledrejection: false, /// will avoid to send unhandle browser error.
onerror: false,
}),
new BrowserTracing()
// new BrowserTracing()
],
ignoreErrors: [
'top.GLOBALS', //stop sentry to report the random plugin / extensions errors.
Expand Down
Loading