@instadapp/avocado-base 0.0.0-dev.6b57a8a → 0.0.0-dev.6c83321

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none"
2
2
  xmlns="http://www.w3.org/2000/svg">
3
- <path d="M4.80469 9.3209H6.74805L8.48912 5.65137L10.9863 13.5476L13.3078 9.3209H15.2511" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M4.80469 9.3209H6.74805L8.48912 5.65137L10.9863 13.5476L13.3078 9.3209H15.2511" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
4
  </svg>
@@ -1,4 +1,4 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none"
2
2
  xmlns="http://www.w3.org/2000/svg">
3
- <path d="M5.86776 7.56373C8.14869 5.47876 11.8513 5.47876 14.1322 7.56373L14.4068 7.81658C14.522 7.92021 14.522 8.09016 14.4068 8.19378L13.4679 9.05181C13.4103 9.1057 13.3173 9.1057 13.2597 9.05181L12.8833 8.70777C11.2888 7.25285 8.71117 7.25285 7.11674 8.70777L6.7137 9.07668C6.65612 9.13057 6.56311 9.13057 6.50554 9.07668L5.56659 8.21865C5.45144 8.11503 5.45144 7.94508 5.56659 7.84145L5.86776 7.56373ZM16.0766 9.33782L16.9136 10.1005C17.0288 10.2041 17.0288 10.3741 16.9136 10.4777L13.1446 13.9223C13.0294 14.0259 12.8434 14.0259 12.7327 13.9223L10.0576 11.4767C10.031 11.4518 9.98229 11.4518 9.95571 11.4767L7.28061 13.9223C7.16545 14.0259 6.97944 14.0259 6.86871 13.9223L3.08637 10.4777C2.97121 10.3741 2.97121 10.2041 3.08637 10.1005L3.92344 9.33782C4.0386 9.2342 4.22461 9.2342 4.33534 9.33782L7.01044 11.7834C7.03701 11.8083 7.08573 11.8083 7.11231 11.7834L9.78741 9.33782C9.90256 9.2342 10.0886 9.2342 10.1993 9.33782L12.8744 11.7834C12.901 11.8083 12.9497 11.8083 12.9763 11.7834L15.6514 9.33782C15.7754 9.2342 15.9614 9.2342 16.0766 9.33782Z" fill="#94A3B8"/>
3
+ <path d="M5.86776 7.56373C8.14869 5.47876 11.8513 5.47876 14.1322 7.56373L14.4068 7.81658C14.522 7.92021 14.522 8.09016 14.4068 8.19378L13.4679 9.05181C13.4103 9.1057 13.3173 9.1057 13.2597 9.05181L12.8833 8.70777C11.2888 7.25285 8.71117 7.25285 7.11674 8.70777L6.7137 9.07668C6.65612 9.13057 6.56311 9.13057 6.50554 9.07668L5.56659 8.21865C5.45144 8.11503 5.45144 7.94508 5.56659 7.84145L5.86776 7.56373ZM16.0766 9.33782L16.9136 10.1005C17.0288 10.2041 17.0288 10.3741 16.9136 10.4777L13.1446 13.9223C13.0294 14.0259 12.8434 14.0259 12.7327 13.9223L10.0576 11.4767C10.031 11.4518 9.98229 11.4518 9.95571 11.4767L7.28061 13.9223C7.16545 14.0259 6.97944 14.0259 6.86871 13.9223L3.08637 10.4777C2.97121 10.3741 2.97121 10.2041 3.08637 10.1005L3.92344 9.33782C4.0386 9.2342 4.22461 9.2342 4.33534 9.33782L7.01044 11.7834C7.03701 11.8083 7.08573 11.8083 7.11231 11.7834L9.78741 9.33782C9.90256 9.2342 10.0886 9.2342 10.1993 9.33782L12.8744 11.7834C12.901 11.8083 12.9497 11.8083 12.9763 11.7834L15.6514 9.33782C15.7754 9.2342 15.9614 9.2342 16.0766 9.33782Z" fill="currentColor"/>
4
4
  </svg>
@@ -1,8 +1,8 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none"
2
2
  xmlns="http://www.w3.org/2000/svg">
3
3
  <g clip-path="url(#clip0_13865_495124)">
4
- <path d="M3.58203 5.3335V8.8335H7.08203" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- <path d="M5.0462 11.7499C5.42443 12.8235 6.14131 13.745 7.08883 14.3757C8.03635 15.0064 9.16318 15.3121 10.2995 15.2467C11.4359 15.1813 12.5202 14.7484 13.3891 14.0131C14.258 13.2779 14.8644 12.2802 15.117 11.1703C15.3696 10.0604 15.2546 8.89857 14.7894 7.85974C14.3242 6.8209 13.534 5.96139 12.5379 5.41071C11.5417 4.86002 10.3936 4.648 9.26643 4.80658C8.13929 4.96516 7.09423 5.48576 6.2887 6.28993L3.58203 8.83326" stroke="#94A3B8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M3.58203 5.3335V8.8335H7.08203" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M5.0462 11.7499C5.42443 12.8235 6.14131 13.745 7.08883 14.3757C8.03635 15.0064 9.16318 15.3121 10.2995 15.2467C11.4359 15.1813 12.5202 14.7484 13.3891 14.0131C14.258 13.2779 14.8644 12.2802 15.117 11.1703C15.3696 10.0604 15.2546 8.89857 14.7894 7.85974C14.3242 6.8209 13.534 5.96139 12.5379 5.41071C11.5417 4.86002 10.3936 4.648 9.26643 4.80658C8.13929 4.96516 7.09423 5.48576 6.2887 6.28993L3.58203 8.83326" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
6
  </g>
7
7
  <defs>
8
8
  <clipPath id="clip0_13865_495124">
@@ -1,6 +1,6 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none"
2
2
  xmlns="http://www.w3.org/2000/svg">
3
- <path d="M10 7.375V12.625" stroke="#4CA054" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M7.375 10H12.625" stroke="#4CA054" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- <rect x="3.75" y="3.75" width="12.5" height="12.5" rx="6.25" stroke="#4CA054" stroke-width="1.5"/>
3
+ <path d="M10 7.375V12.625" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M7.375 10H12.625" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <rect x="3.75" y="3.75" width="12.5" height="12.5" rx="6.25" stroke="currentColor" stroke-width="1.5"/>
6
6
  </svg>
@@ -1,5 +1,5 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none"
2
2
  xmlns="http://www.w3.org/2000/svg">
3
- <path d="M6.66797 13.3332L13.3346 6.6665" stroke="#4CA054" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M6.66797 6.6665H13.3346V13.3332" stroke="#4CA054" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M6.66797 13.3332L13.3346 6.6665" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M6.66797 6.6665H13.3346V13.3332" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
5
  </svg>
@@ -1,4 +1,19 @@
1
1
  <script setup lang="ts">
2
+ import RefreshSVG from '~/assets/images/icons/refresh.svg'
3
+ import BridgeSVG from '~/assets/images/icons/bridge.svg'
4
+ import CrossTransferSVG from '~/assets/images/icons/cross-transfer.svg'
5
+ import TransferSVG from '~/assets/images/icons/transfer.svg'
6
+ import PlusCircleSVG from '~/assets/images/icons/plus-circle.svg'
7
+ import Trash2SVG from '~/assets/images/icons/trash-2.svg'
8
+ import ChangeThresholdSVG from '~/assets/images/icons/change-threshold.svg'
9
+ import DappSVG from '~/assets/images/icons/dapp.svg'
10
+ import DeploySVG from '~/assets/images/icons/deploy.svg'
11
+ import GasSVG from '~/assets/images/icons/gas.svg'
12
+ import InstadappProSVG from '~/assets/images/icons/instadapp-pro.svg'
13
+ import PermitSignSVG from '~/assets/images/icons/permit-sign.svg'
14
+ import RejectProposalSVG from '~/assets/images/icons/reject-proposal.svg'
15
+ import UpgradeSVG from '~/assets/images/icons/upgrade.svg'
16
+
2
17
  defineProps<{
3
18
  action: MetadataTypes
4
19
  remove?: boolean
@@ -6,18 +21,18 @@ defineProps<{
6
21
  </script>
7
22
 
8
23
  <template>
9
- <SvgoRefresh class="text-primary" v-if="action === 'swap'"/>
10
- <SvgoBridge class="text-primary" v-else-if="action === 'bridge'"/>
11
- <SvgoCrossTransfer class="text-primary" v-else-if="action === 'cross-transfer'"/>
12
- <SvgoTransfer class="text-primary" v-else-if="action === 'transfer'"/>
13
- <SvgoPlusCircle v-else-if="action === 'add-signers' || (action === 'auth' && !remove)"/>
14
- <SvgoTrash2 v-else-if="action === 'remove-signers' || (action === 'auth' && remove)"/>
15
- <SvgoChangeThreshold v-else-if="action === 'change-threshold'"/>
16
- <SvgoDapp v-else-if="action === 'dapp'"/>
17
- <SvgoDeploy v-else-if="action === 'deploy'"/>
18
- <SvgoGas v-else-if="action === 'gas-topup'"/>
19
- <SvgoInstadappPro v-else-if="action === 'instadapp-pro'"/>
20
- <SvgoPermitSign v-else-if="action === 'permit2'"/>
21
- <SvgoRejectProposal v-else-if="action === 'rejection'"/>
22
- <SvgoUpgrade v-else-if="action === 'upgrade'"/>
24
+ <RefreshSVG class="text-primary" v-if="action === 'swap'"/>
25
+ <BridgeSVG class="text-primary" v-else-if="action === 'bridge'"/>
26
+ <CrossTransferSVG class="text-primary" v-else-if="action === 'cross-transfer'"/>
27
+ <TransferSVG class="text-primary" v-else-if="action === 'transfer'"/>
28
+ <PlusCircleSVG class="text-primary" v-else-if="action === 'add-signers' || (action === 'auth' && !remove)"/>
29
+ <Trash2SVG v-else-if="action === 'remove-signers' || (action === 'auth' && remove)"/>
30
+ <ChangeThresholdSVG v-else-if="action === 'change-threshold'"/>
31
+ <DappSVG v-else-if="action === 'dapp'"/>
32
+ <DeploySVG v-else-if="action === 'deploy'"/>
33
+ <GasSVG v-else-if="action === 'gas-topup'"/>
34
+ <InstadappProSVG v-else-if="action === 'instadapp-pro'"/>
35
+ <PermitSignSVG v-else-if="action === 'permit2'"/>
36
+ <RejectProposalSVG v-else-if="action === 'rejection'"/>
37
+ <UpgradeSVG v-else-if="action === 'upgrade'"/>
23
38
  </template>
@@ -28,9 +28,9 @@ const formattedAmount = computed(() =>
28
28
  <div class="flex items-center gap-5" v-else>
29
29
  <span v-if="!compact" class="capitalize text-xs sm:text-sm">{{ metadata.type }}</span>
30
30
  <span class="inline-flex gap-2.5 items-center">
31
- <img width="20" height="20" class="w-5 h-5" :src="token?.logo_url" />
32
31
  {{ formattedAmount }}
33
32
  <span class="uppercase">{{ token?.symbol }}</span>
33
+ <img width="20" height="20" class="w-5 h-5" :src="token?.logo_url" />
34
34
  <SvgoArrowRight class="w-4 h-4 text-slate-400 mx-2" />
35
35
  <NuxtLink
36
36
  class="text-primary"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instadapp/avocado-base",
3
- "version": "0.0.0-dev.6b57a8a",
3
+ "version": "0.0.0-dev.6c83321",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "global.d.ts",
package/utils/network.ts CHANGED
@@ -268,6 +268,21 @@ export const networks: Network[] = [
268
268
  },
269
269
  ];
270
270
 
271
+ export const chainUsdcAddresses = [
272
+ { chainId: 1, address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' },
273
+ { chainId: 10, address: '0x7f5c764cbc14f9669b88837ca1490cca17c31607' },
274
+ { chainId: 56, address: '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d' },
275
+ { chainId: 100, address: '0xddafbb505ad214d7b80b1f830fccc89b60fb7a83' },
276
+ { chainId: 137, address: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174' },
277
+ { chainId: 250, address: '0x04068da6c83afcfa0e13ba15a6696662335d5b75' },
278
+ { chainId: 42161, address: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8' },
279
+ { chainId: 42161, address: '0xaf88d065e77c8cc2239327c5edb3a432268e5831' },
280
+ { chainId: 43114, address: '0xb97ef9ef8734c71904d8002f8b6bc66dd9c48a6e' },
281
+ { chainId: 43114, address: '0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664' },
282
+ { chainId: 1101, address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
283
+ { chainId: 1313161554, address: '0xB12BFcA5A55806AaF64E99521918A4bf0fC40802' },
284
+ ];
285
+
271
286
  export const getNetworkByChainId = (
272
287
  chainId: ChainId | number | string
273
288
  ): Network => {