Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ko.json #971

Merged
merged 4 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 7 additions & 13 deletions packages/web/integrations/axelar/source-chain-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ export const SourceChainConfigs: {
} = {
usdc: {
ethereum: {
id: IS_TESTNET
? ("Goerli Testnet" as const)
: ("Ethereum" as const),
id: IS_TESTNET ? ("Goerli Testnet" as const) : ("Ethereum" as const),
erc20ContractAddress: IS_TESTNET
? "0x254d06f33bDc5b8ee05b2ea472107E300226659A"
: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // test: 'aUSDC' on metamask/etherscan
Expand Down Expand Up @@ -46,9 +44,7 @@ export const SourceChainConfigs: {
transferFeeMinAmount: IS_TESTNET ? "150000" : "1500000",
},
moonbeam: {
id: IS_TESTNET
? ("Moonbase Alpha" as const)
: ("Moonbeam" as const),
id: IS_TESTNET ? ("Moonbase Alpha" as const) : ("Moonbeam" as const),
erc20ContractAddress: IS_TESTNET
? "0xD1633F7Fb3d716643125d6415d4177bC36b7186b"
: "0xCa01a1D0993565291051daFF390892518ACfAD3A",
Expand All @@ -66,21 +62,19 @@ export const SourceChainConfigs: {
},
weth: {
ethereum: {
id: IS_TESTNET
? ("Goerli Testnet" as const)
: ("Ethereum" as const),
id: IS_TESTNET ? ("Goerli Testnet" as const) : ("Ethereum" as const),
erc20ContractAddress: IS_TESTNET
? "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"
: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
logoUrl: "/networks/ethereum.svg",
transferFeeMinAmount: IS_TESTNET ? "100000000000000" : "20400000000000000",
transferFeeMinAmount: IS_TESTNET
? "100000000000000"
: "20400000000000000",
},
},
wglmr: {
moonbeam: {
id: IS_TESTNET
? ("Moonbase Alpha" as const)
: ("Moonbeam" as const),
id: IS_TESTNET ? ("Moonbase Alpha" as const) : ("Moonbeam" as const),
erc20ContractAddress: IS_TESTNET
? "0x1436aE0dF0A8663F18c0Ec51d7e2E46591730715"
: "0xAcc15dC74880C9944775448304B263D191c6077F",
Expand Down
23 changes: 9 additions & 14 deletions packages/web/integrations/axelar/transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ import {
AxelarChainIds_SourceChainMap,
waitBySourceChain,
} from ".";
import {
SourceChain,
EthClientChainIds_SourceChainMap
} from "../bridge-info";
import { SourceChain, EthClientChainIds_SourceChainMap } from "../bridge-info";
import { useAmplitudeAnalytics } from "../../hooks/use-amplitude-analytics";
import { EventName } from "../../config/user-analytics-v2";
import { useTranslation } from "react-multi-lang";
Expand Down Expand Up @@ -80,11 +77,11 @@ const AxelarTransfer: FunctionComponent<

// notify eth wallet of prev selected preferred chain
useEffect(() => {

let ethClientChainName: string | undefined = getKeyByValue(
EthClientChainIds_SourceChainMap,
selectedSourceChainKey
) ?? selectedSourceChainKey
let ethClientChainName: string | undefined =
getKeyByValue(
EthClientChainIds_SourceChainMap,
selectedSourceChainKey
) ?? selectedSourceChainKey;

let hexChainId: string | undefined = getKeyByValue(
ChainNames,
Expand All @@ -99,11 +96,9 @@ const AxelarTransfer: FunctionComponent<
}, [selectedSourceChainKey, ethWalletClient]);

/** Chain key that Axelar accepts in APIs. */
const selectedSourceChainAxelarKey = getKeyByValue(
AxelarChainIds_SourceChainMap,
selectedSourceChainKey
)
?? selectedSourceChainKey;
const selectedSourceChainAxelarKey =
getKeyByValue(AxelarChainIds_SourceChainMap, selectedSourceChainKey) ??
selectedSourceChainKey;

const sourceChainConfig = sourceChains.find(
({ id }) => id === selectedSourceChainKey
Expand Down
31 changes: 14 additions & 17 deletions packages/web/integrations/axelar/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export interface AxelarBridgeConfig {
};
}


/** Maps Axelar chain id agruments => source chain ids.
/** Maps Axelar chain id agruments => source chain ids.
* SourceChain (IDs) are used in ./source-chain-configs.ts::SourceChainConfigs{} as <asset>::<network>::id values.
* Axelar Chain IDs are accepted as arguments in Axelar's APIs.
* Mainnet Docs: https://docs.axelar.dev/dev/build/chain-names/mainnet
Expand All @@ -38,30 +37,28 @@ export const AxelarChainIds_SourceChainMap: {
[axelarChainIds: string]: SourceChain;
} = IS_TESTNET
? {
"aurora": "Aurora Testnet",
"Avalanche": "Avalanche Fuji Testnet",
"binance": "BSC Testnet",
aurora: "Aurora Testnet",
Avalanche: "Avalanche Fuji Testnet",
binance: "BSC Testnet",
"ethereum-2": "Goerli Testnet",
"Fantom": "Fantom Testnet",
"Moonbeam": "Moonbase Alpha",
"Polygon": "Mumbai"
Fantom: "Fantom Testnet",
Moonbeam: "Moonbase Alpha",
Polygon: "Mumbai",
}
: {
"Avalanche": "Avalanche",
"binance": "Binance Smart Chain",
"Ethereum": "Ethereum",
"Fantom": "Fantom",
"Moonbeam": "Moonbeam",
"Polygon": "Polygon"
Avalanche: "Avalanche",
binance: "Binance Smart Chain",
Ethereum: "Ethereum",
Fantom: "Fantom",
Moonbeam: "Moonbeam",
Polygon: "Polygon",
};


export type SourceChainConfig = {

/** Source Chain identifier. */
id: SourceChain;

/** Address of origin ERC20 token for that origin chain. Leave blank to
/** Address of origin ERC20 token for that origin chain. Leave blank to
* prefer native ETH currency if `id` is not a Cosmos chain in `ChainInfo`.
*/
erc20ContractAddress?: string;
Expand Down
4 changes: 1 addition & 3 deletions packages/web/integrations/bridge-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export type SourceChain =
/** String literal identifiers for a source chain. */
export type SourceChainKey = SourceChain;


/** Maps eth client chainIDs => source chain ids.
*
* ethClientChainIDs must be specified in ../ethereuem/types.ts::ChainNames{}
Expand All @@ -43,7 +42,7 @@ export const EthClientChainIds_SourceChainMap: {
"Goerli Test Network": "Goerli Testnet",
"Fantom Testnet": "Fantom Testnet",
"Moonbase Alpha": "Moonbase Alpha",
"Mumbai": "Mumbai",
Mumbai: "Mumbai",
"Avalanche C-Chain": "Avalanche",
"Binance Smart Chain Mainnet": "Binance Smart Chain",
"Ethereum Main Network": "Ethereum",
Expand All @@ -52,7 +51,6 @@ export const EthClientChainIds_SourceChainMap: {
"Polygon Mainnet": "Polygon",
};


// Fiat on/off ramps

export type FiatRampKey = "kado" | "transak";
Expand Down
56 changes: 28 additions & 28 deletions packages/web/localizations/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
}
},
"swap": {
"title": "스왑",
"title": "거래",
"settings": {
"title": "트랜잭션 설정",
"slippage": "슬리피지 허용치",
"slippageInfo": "교환 비율이 이 이상으로 변경되면 거래가 취소됩니다."
"slippageInfo": "교환 비율이 해당 값 이상일 경우 거래가 취소됩니다."
},
"available": "가능수량",
"MAX": "최대치",
"available": "거래 가능수량",
"MAX": "최대",
"HALF": "절반",
"button": "교환",
"buttonError": "계속 교환하기",
"button": "거래",
"buttonError": "무시하고 교환하기",
"priceImpact": "가격 변동",
"fee": "교환 수수료 ({fee})",
"expectedOutput": "예상 교환치",
Expand Down Expand Up @@ -59,7 +59,7 @@
"volume24h": "거래량 (24H)",
"fees": "수수료 (7D)",
"APRIncentivized": "APR",
"APR": "내 유동성",
"APR": "APR",
"poolId": "풀 ID"
}
},
Expand All @@ -85,12 +85,12 @@
"three": "{step} / {nbStep} 단계 - 풀의 비율과 수량 확인"
},
"infoMessage": "풀 생성 수수료",
"infoCaption": "Osmosis 커뮤니티풀로 이전",
"infoCaption": "Osmosis 커뮤니티풀로 전송됩니다",
"buttonCreate": "풀 생성하기",
"buttonNext": "다음",
"buttonBack": "이전",
"buttonAddToken": "새로운 토큰 추가히기",
"available": "Available",
"available": "사용 가능",
"amount": "수량",
"token": "토큰",
"swapFee": "교환 수수료 설정",
Expand All @@ -107,12 +107,12 @@
"liquidity": "풀 유동성",
"swapFee": "수수료",
"yourStats": "내 상태",
"sharesAmount": "{shares} 지분",
"currentDailyEarn": "내 보상",
"sharesAmount": "{shares} 지분 토큰",
"currentDailyEarn": "내 일일 보상",
"earnMore": "예치하고 보상 더 받기",
"dailyEarnAmount": "{amount} / 일",
"putAssetsToWork": "자산을 불려보세요.",
"putAssetsToWorkCaption": "이 풀에 자산을 추가하고 두근되는 APR을 확인하세요. 더 긴 기간동안 예치하면, 더 많은 보상을 얻을 수 있어요",
"putAssetsToWorkCaption": "이 풀에 자산을 추가하고 두근되는 APR을 확인하세요. 더 긴 해지 긴간을 예치하면, 더 많은 보상을 얻을 수 있어요",
"learnMore": "더 알아보기",
"level": "Level {level}",
"earnSwapFees": "교환 수수료를 받으세요",
Expand All @@ -126,14 +126,14 @@
"bondShares": "유동성 예치",
"amountDaysUnbonding": "예치 해제 {numDays}일",
"shares": "shares",
"unbonded": "Unbonded",
"unbonded": "예치되지 않은 자산",
"unbond": "예치 해재하기",
"bonded": "예치된 자산",
"showDetails": "자세히 보기",
"collapseDetails": "닫기",
"sharesAvailableIn": "available in",
"sharesAvailableIn": "가능",
"unbonding": "에치 해제중",
"superfluidEarnMore": "Earn {rate} more. Go superfluid",
"superfluidEarnMore": "Superfluid 스테이킹을 하고 {rate}를 더 받으세요",
"incentives": "인센티브",
"details": "상세정보",
"rewardDistribution": "모든 유동성 공급자에게 분배된 보상",
Expand All @@ -148,14 +148,14 @@
"removeLiquidity": {
"title": "유동성 해제하기",
"titleInPool": "{poolId}풀에서 유동성을 제거합니다.",
"sharesAmount": "{shares} shares"
"sharesAmount": "{shares}"
},
"addLiquidity": {
"title": "유동성 추가",
"titleInPool": "{poolId}풀에 유동성 추가하기",
"allAssets": "모든 자산",
"singleAsset": "단일 자산",
"available": "입력 가능 수량",
"available": "추가 가능 수량",
"autoswapCaption": "오토스왑을 통해 단일 자산으로 유동성 추가합니다"
},
"lockToken": {
Expand All @@ -165,7 +165,7 @@
"availableToken": "입력 가능 수량",
"amountToBond": "예치할 수량",
"superfluidStake": "Superfluid 스테이킹",
"bondingRequirement": "{numDays} day bonding requirement",
"bondingRequirement": "{numDays}일 본딩 요건",
"buttonNext": "다음",
"buttonBond": "예치하기",
"buttonBondStake": "예치 & 스테이킹"
Expand All @@ -187,7 +187,7 @@
},
"assets": {
"totalAssets": "전체",
"unbondedAssets": "Unbonded",
"unbondedAssets": "예치되지 않은 ",
"bondedAssets": "예치된 자산",
"stakedAssets": "스테이킹된 OSMO",
"myPools": "내 풀",
Expand Down Expand Up @@ -225,8 +225,8 @@
"to": "으로",
"via": "경유해서",
"loading": "로딩",
"availableOn": "Available on {network}",
"availableMobile": "Available",
"availableOn": "{network} 잔고",
"availableMobile": "잔고",
"transferFee": "전송 수수료",
"errors": {
"reconnectWallet": "{walletName} 다시 연결",
Expand Down Expand Up @@ -273,9 +273,9 @@
"pending": "대기중",
"success": "성공",
"refunded": "반환됨",
"pendingRefunded": "실패: Pending refund",
"pendingRefunded": "실패: 환불 대기 중",
"colums": {
"transactionHash": "Transaction Hash",
"transactionHash": "트랜잭션 ",
"type": "타입",
"amount": "수량",
"status": "상태",
Expand All @@ -290,15 +290,15 @@
"less": "숨기기"
},
"table": {
"poolId": "Pool #{id}"
"poolId": "수영장 {id}"
},
"sort": {
"SORT": "정렬",
"SORTMobile": "정렬",
"mobileMenu": "정렬"
},
"MAX": "MAX",
"searchTokens": "Search tokens"
"searchTokens": "토큰 검색"
},
"menu": {
"swap": "교환",
Expand All @@ -314,7 +314,7 @@
"settings": {
"title": "설정",
"titleLanguage": "언어",
"titleShowDust": "Show pools/assets < {fiatSymbol}0.01"
"titleShowDust": "< {fiatSymbol}0.01 이하 자산/풀 보여주기"
},
"404": {
"title": "페이지를 찾을 수 없습니다"
Expand Down Expand Up @@ -352,14 +352,14 @@
"walletConnect": "WalletConnect",
"mobile": "Keplr Mobile"
},
"connectDisclaimer": "By connecting a wallet, you acknowledge that you have read and understand the Osmosis",
"connectDisclaimer": "지갑을 연결함으로써 귀하는 Osmosis를 읽고 이해했음을 인정합니다",
"protocolDisclaimer": "프로토콜 면책 조항",
"Transaction Failed": "전송 실패",
"Transaction Successful": "전송 성공",
"Transaction Broadcasting": "전송 진행중",
"Swap failed. Liquidity may not be sufficient. Try adjusting the allowed slippage.": "교환에 실패했습니다. 교환에 필요한 유동성이 충분하지 않을 수 있습니다. 슬리피지를 조정하고 다시 시도해주세요.",
"Waiting for transaction to be included in the block": "트랜잭션이 블록에 포함중입니다",
"view explorer": "블록 탐색기 보기",
"view explorer": "블록 익스플로러 보기",
"Unknown error": "알 수 없는 에러",
"Request rejected": "요청이 거부됨",
"Amount is empty": "수량이 비어있습니다",
Expand Down
Loading