Skip to content

Commit

Permalink
Fixed UI docker build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
glottologist committed Nov 16, 2023
1 parent a4d69bd commit 2ffcf6c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions batcher-ui/Dockerfile.ghostnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ COPY ./package.json ./
RUN npm install

COPY ./tsconfig.json ./jsconfig.json ./
COPY ./.eslintignore ./.eslintignore ./
COPY ./.eslintrc.json ./.eslintrc.json ./
COPY ./next-env.d.ts ./next-env.d.ts ./
COPY ./next.config.js ./next.config.js ./
#COPY ./pages ./pages
COPY ./src ./src
COPY ./styles ./styles
Expand Down
10 changes: 5 additions & 5 deletions batcher-ui/src/config/token-vaults.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const tokenVaultsConfig: { [key: string]: string } = {
tzBTC: process.env.NEXT_PUBLIC_TZBTC_VAULT_CONTRACT_HASH,
USDT: process.env.NEXT_PUBLIC_USDT_VAULT_CONTRACT_HASH,
EURL: process.env.NEXT_PUBLIC_EURL_VAULT_CONTRACT_HASH,
BTCtz: process.env.NEXT_PUBLIC_BTCTZ_VAULT_CONTRACT_HASH,
USDtz: process.env.NEXT_PUBLIC_USDTZ_VAULT_CONTRACT_HASH,
tzBTC: process.env.NEXT_PUBLIC_TZBTC_VAULT_CONTRACT_HASH || '',
USDT: process.env.NEXT_PUBLIC_USDT_VAULT_CONTRACT_HASH || '',
EURL: process.env.NEXT_PUBLIC_EURL_VAULT_CONTRACT_HASH || '',
BTCtz: process.env.NEXT_PUBLIC_BTCTZ_VAULT_CONTRACT_HASH || '',
USDtz: process.env.NEXT_PUBLIC_USDTZ_VAULT_CONTRACT_HASH || '',
};
2 changes: 1 addition & 1 deletion batcher-ui/src/contexts/tezos-toolkit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type TzTkState = {
};

export const TezosToolkitContext = createContext<TzTkState>({
tezos: new TezosToolkit(process.env.NEXT_PUBLIC_TEZOS_NODE_URI),
tezos: new TezosToolkit(process.env.NEXT_PUBLIC_TEZOS_NODE_URI || ''),
});

export const useTezosToolkit = () => React.useContext(TezosToolkitContext);
Expand Down
2 changes: 1 addition & 1 deletion batcher-ui/src/utils/token-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getLexicographicalPairName = (
from: string
): string => {
const comp = to.localeCompare(from);
if (comp < 0)
if (comp < 0){
return `${to}-${from}`;
} else {
return `${from}-${to}`;
Expand Down
2 changes: 1 addition & 1 deletion batcher-ui/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const getSwaps = async () => {
swaps.map((value, index) => [
getLexicographicalPairName(value.swap.to, value.swap.from),
value,
])<<<<<<< 410-further-split-out-batcher-and-mm-contracts-to-avoid-size-constraint
])
);
console.info('getSwaps swapMap', swapsMap);

Expand Down

0 comments on commit 2ffcf6c

Please sign in to comment.