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

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,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="M11.8555 8.14404L8.14316 11.8564" stroke="#EB5757" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
- <path d="M8.14453 8.14404L11.8568 11.8564" stroke="#EB5757" 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="#EB5757" stroke-width="1.5"/>
3
+ <path d="M11.8555 8.14404L8.14316 11.8564" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M8.14453 8.14404L11.8568 11.8564" 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,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
- <path d="M4.64453 7.21045H15.3588" stroke="#EB5757" stroke-width="1.5" stroke-linecap="round"/>
4
- <path d="M13.8495 7.21045H6.14754L6.09242 8.20701C5.98681 10.1164 6.07654 12.0315 6.36021 13.9227C6.48391 14.7473 7.19233 15.3574 8.02623 15.3574H11.9708C12.8047 15.3574 13.5131 14.7473 13.6368 13.9227C13.9205 12.0315 14.0102 10.1164 13.9046 8.207L13.8495 7.21045Z" stroke="#EB5757" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
- <path d="M7.85938 7.21039V6.7825C7.85938 6.21509 8.08478 5.67091 8.486 5.26969C8.88722 4.86847 9.4314 4.64307 9.99881 4.64307C10.5662 4.64307 11.1104 4.86847 11.5116 5.26969C11.9128 5.67091 12.1382 6.21509 12.1382 6.7825V7.21039" stroke="#EB5757" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
- <path d="M8.71484 9.50195V13.0487" stroke="#EB5757" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
7
- <path d="M11.2852 9.50195V13.0487" stroke="#EB5757" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M4.64453 7.21045H15.3588" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
4
+ <path d="M13.8495 7.21045H6.14754L6.09242 8.20701C5.98681 10.1164 6.07654 12.0315 6.36021 13.9227C6.48391 14.7473 7.19233 15.3574 8.02623 15.3574H11.9708C12.8047 15.3574 13.5131 14.7473 13.6368 13.9227C13.9205 12.0315 14.0102 10.1164 13.9046 8.207L13.8495 7.21045Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M7.85938 7.21039V6.7825C7.85938 6.21509 8.08478 5.67091 8.486 5.26969C8.88722 4.86847 9.4314 4.64307 9.99881 4.64307C10.5662 4.64307 11.1104 4.86847 11.5116 5.26969C11.9128 5.67091 12.1382 6.21509 12.1382 6.7825V7.21039" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M8.71484 9.50195V13.0487" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M11.2852 9.50195V13.0487" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
8
8
  </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 class="text-[#EB5757]" v-else-if="action === 'remove-signers' || (action === 'auth' && remove)"/>
30
+ <RejectProposalSVG class="text-[#EB5757]" v-else-if="action === 'rejection'"/>
31
+ <ChangeThresholdSVG v-else-if="action === 'change-threshold'"/>
32
+ <DappSVG v-else-if="action === 'dapp'"/>
33
+ <DeploySVG v-else-if="action === 'deploy'"/>
34
+ <GasSVG v-else-if="action === 'gas-topup'"/>
35
+ <InstadappProSVG v-else-if="action === 'instadapp-pro'"/>
36
+ <PermitSignSVG v-else-if="action === 'permit2'"/>
37
+ <UpgradeSVG v-else-if="action === 'upgrade'"/>
23
38
  </template>
@@ -1,5 +1,4 @@
1
1
  <script lang="ts" setup>
2
-
3
2
  const props = defineProps<{
4
3
  metadata: {
5
4
  type: MetadataTypes
@@ -7,9 +6,11 @@ const props = defineProps<{
7
6
  };
8
7
  chain_id: number | string;
9
8
  compact?: boolean;
9
+ tokens?: ITokenPrice[];
10
10
  }>();
11
11
 
12
12
  provide('compact', props.compact);
13
+ provide('tokens', props.tokens);
13
14
 
14
15
  </script>
15
16
 
@@ -53,9 +54,7 @@ provide('compact', props.compact);
53
54
  {{ metadata?.castDetails }}
54
55
  </div>
55
56
 
56
- <div v-if="metadata.type === 'add-signers' || metadata.type === 'remove-signers'" class="text-left w-fit" v-tippy="formatMultipleAddresses(metadata.addresses, false)" >
57
- {{ formatMultipleAddresses(metadata.addresses) }}
58
- </div>
57
+ <MetadataSigners v-if="metadata.type === 'add-signers' || metadata.type === 'remove-signers'" :metadata="metadata" :compact="compact" />
59
58
 
60
59
  <div v-if="metadata.type === 'change-threshold'" class="text-left w-fit" >
61
60
  Change Threshold to {{ metadata.count }}
@@ -70,4 +69,4 @@ provide('compact', props.compact);
70
69
  {{ shortenHash(metadata.id) }}
71
70
  </div>
72
71
  </div>
73
- </template>
72
+ </template>
@@ -0,0 +1,26 @@
1
+ <script setup lang="ts">
2
+ defineProps<{
3
+ address: string
4
+ }>();
5
+
6
+ const randomId = Math.random().toString(36).substr(2, 9);
7
+ </script>
8
+
9
+ <template>
10
+ <svg
11
+ :style="{
12
+ color: generateColor(address),
13
+ }" width="30" height="30" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 30 30"
14
+ >
15
+ <g fill="currentColor" :clip-path="`url(#${randomId})`">
16
+ <rect width="30" height="30" fill-opacity=".4" rx="15" />
17
+ <ellipse cx="15.004" cy="26.399" rx="11.4" ry="6.6" />
18
+ <circle cx="15" cy="12.75" r="5.4" />
19
+ </g>
20
+ <defs>
21
+ <clipPath :id="randomId">
22
+ <rect width="30" height="30" fill="#fff" rx="15" />
23
+ </clipPath>
24
+ </defs>
25
+ </svg>
26
+ </template>