diff --git a/package-lock.json b/package-lock.json index 3716949..53c2ad5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "dependencies": { "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", - "@invariant-labs/sdk-eclipse": "^0.0.25", + "@invariant-labs/sdk-eclipse": "^0.0.28", "@irys/web-upload": "^0.0.13", "@irys/web-upload-solana": "^0.1.6", "@metaplex-foundation/js": "^0.20.1", @@ -3465,9 +3465,9 @@ "dev": true }, "node_modules/@invariant-labs/sdk-eclipse": { - "version": "0.0.25", - "resolved": "https://registry.npmjs.org/@invariant-labs/sdk-eclipse/-/sdk-eclipse-0.0.25.tgz", - "integrity": "sha512-tG3c9NctnBz2wFk8feOAJMCExl6jDFnuTLXp9QU8/Fk9tc3L/g7ydASy5JnZYHvhNpsAjlFwu3uWIfOKD1lZgg==", + "version": "0.0.28", + "resolved": "https://registry.npmjs.org/@invariant-labs/sdk-eclipse/-/sdk-eclipse-0.0.28.tgz", + "integrity": "sha512-+MRu/t97scZjwGnWGvXP+pzPcOaUqxB3C4kd+C8oa2thf6JaW0BI+sGp+VwdsQDZwEBcby6/8nBYyjutNZnmsw==", "dependencies": { "@project-serum/anchor": "0.21.0", "@solana/spl-token-registry": "^0.2.4484", diff --git a/package.json b/package.json index 46850f0..e50dbdf 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "dependencies": { "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.5", - "@invariant-labs/sdk-eclipse": "^0.0.25", + "@invariant-labs/sdk-eclipse": "^0.0.28", "@irys/web-upload": "^0.0.13", "@irys/web-upload-solana": "^0.1.6", "@metaplex-foundation/js": "^0.20.1", diff --git a/src/store/consts/static.ts b/src/store/consts/static.ts index 3862363..51eda52 100644 --- a/src/store/consts/static.ts +++ b/src/store/consts/static.ts @@ -301,6 +301,35 @@ export const PANTY_MAIN: Token = { coingeckoId: '' } +export const PODAVINI_MAIN: Token = { + symbol: 'PODAVINI', + address: new PublicKey('Aj6HETPRCwjLJBBpfSEnRy8jCp1ZipEs7FTMKi745tsJ'), + decimals: 9, + name: 'PODAVINI', + logoURI: 'https://uploader.irys.xyz/GH55FteKNSLkBPcQ1UtZS4RXUKS4waYeG2XvHaPzrqiR', + coingeckoId: '' +} + +export const DOGW_MAIN: Token = { + symbol: 'dogw', + address: new PublicKey('Ev6go111sv39uMrAQeWsatFWgSYdfENuQGtBmr5QRwbJ'), + decimals: 9, + name: 'dog wif meat', + logoURI: + 'https://lime-peculiar-eel-621.mypinata.cloud/ipfs/QmVYxFNgSnVFXrbaxTh7Pz6iQ9AJU8e7BLBMcyWiE476mU', + coingeckoId: '' +} + +export const TETH_MAIN: Token = { + symbol: 'tETH', + address: new PublicKey('GU7NS9xCwgNPiAdJ69iusFrRfawjDDPjeMBovhV1d4kn'), + decimals: 9, + name: 'Turbo ETH', + logoURI: + 'https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/06833c4417faafd198ef8cf904612c721e5d96db/deployments/warp_routes/tETH/logo.svg', + coingeckoId: '' +} + export enum RPC { TEST = 'https://testnet.dev2.eclipsenetwork.xyz', MAIN = 'https://mainnetbeta-rpc.eclipse.xyz', diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 8a002b9..c553331 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -32,6 +32,7 @@ import { DEFAULT_TOKENS, DOGO_MAIN, DOGWIFHAT_MAIN, + DOGW_MAIN, EBULL_MAIN, ECAT_MAIN, EGOAT_MAIN, @@ -47,12 +48,14 @@ import { MOON_TEST, NetworkType, PANTY_MAIN, + PODAVINI_MAIN, PRICE_DECIMAL, PUNKSTAR_MAIN, STTIA_MAIN, S22_TEST, SOL_MAIN, subNumbers, + TETH_MAIN, TIA_MAIN, tokensPrices, TURBO_MAIN, @@ -809,7 +812,10 @@ export const getNetworkTokensList = (networkType: NetworkType): Record = [] for (let i = lowerIndex; i <= upperIndex; i++) { - promises.push(marketProgram.getPositionAddress(owner, i)) + promises.push(await marketProgram.getPositionAddress(owner, i)) } return await Promise.all(promises).then(data =>