Skip to content

Commit

Permalink
Merge pull request #176 from scrtlabs/zyn
Browse files Browse the repository at this point in the history
Shadejs bump, add SYN
  • Loading branch information
SecretSaturn authored Aug 25, 2024
2 parents fa466c7 + 8080204 commit 93be96b
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"@keplr-wallet/cosmos": "^0.12.43",
"@mui/material": "5.11.4",
"@shadeprotocol/shadejs": "^1.0.4",
"@shadeprotocol/shadejs": "^1.5.6",
"@skip-router/core": "^1.2.10",
"@swing.xyz/ui": "^0.52.3",
"@terra-money/terra.js": "^3.1.10",
Expand Down
Binary file added public/img/assets/syn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/context/APIContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ const APIContextProvider = ({ children }: any) => {
.catch((error: any) => console.error(error))
.then((response) => {
setExternalApiData(response)
console.log(response)
})

const LAVENDERFIVE_API_URL_SECRET_STATUS = `https://api.lavenderfive.com/networks/secretnetwork`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ function AvailableBalance() {
tokens.find((token) => token.name === 'SCRT'),
false
)
console.log(scrtBalance)

const { currency } = useUserPreferencesStore()
const { convertCurrency } = useContext(APIContext)
Expand Down
4 changes: 2 additions & 2 deletions src/services/wallet.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
} from 'utils/commons'
import { Chain, SECRET_CHAIN_ID, SECRET_LCD, Token } from 'utils/config'
import { isMobile } from 'react-device-detect'
import { scrtToken } from 'utils/tokens'
import { WalletAPIType } from 'types/WalletAPIType'
import BigNumber from 'bignumber.js'
import { QueryAllBalancesResponse } from 'secretjs/dist/grpc_gateway/cosmos/bank/v1beta1/query.pb'
Expand Down Expand Up @@ -214,7 +213,8 @@ const getBatchsTokenBalance = async (
contractAddress: batchQueryContractAddress,
codeHash: batchQueryCodeHash,
queries: queries,
lcdEndpoint: SECRET_LCD
lcdEndpoint: SECRET_LCD,
batchSize: 12
})
} catch (error) {
console.error('Error executing batch query: ', error)
Expand Down
29 changes: 29 additions & 0 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3123,6 +3123,35 @@ export const tokens: Token[] = [
}
]
},
{
name: 'SYN',
description: 'Galactic Syndicate Governance Token',
address: 'secret1hjcv25hpgqtpwn90tz7pttr9fyz7l9pngzz8rl',
code_hash: '638a3e1d50175fbcb8373cf801565283e3eb23d88a9b7b7f99fcc5eb1e6b561e',
image: '/syn.png',
decimals: 6,
coingecko_id: '',
deposits: [
{
chain_name: 'Injective',
denom: 'factory/inj1a6xdezq7a94qwamec6n6cnup02nvewvjtz6h6e/SYN'
}
],
withdrawals: [
{
chain_name: 'Injective',
denom: ibcDenom(
[
{
incomingChannelId: chains['Injective'].withdraw_channel_id,
incomingPortId: 'transfer'
}
],
'factory/inj1a6xdezq7a94qwamec6n6cnup02nvewvjtz6h6e/SYN'
)
}
]
},
{
name: 'TIA',
description: 'Celestia Governance Token',
Expand Down

0 comments on commit 93be96b

Please sign in to comment.