@instadapp/avocado-base 0.0.93 → 0.0.95

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,5 @@
1
1
  <script setup lang="ts">
2
+ // @ts-expect-error
2
3
  import * as XXH from 'xxhashjs';
3
4
 
4
5
  defineProps<{
@@ -19,11 +20,9 @@ function generateColor(address: string): string {
19
20
  </script>
20
21
 
21
22
  <template>
22
- <svg
23
- :style="{
24
- color: generateColor(address),
25
- }" width="30" height="30" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 30 30"
26
- >
23
+ <svg :style="{
24
+ color: generateColor(address),
25
+ }" width="30" height="30" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 30 30">
27
26
  <g fill="currentColor" :clip-path="`url(#${randomId})`">
28
27
  <rect width="30" height="30" fill-opacity=".4" rx="15" />
29
28
  <ellipse cx="15.004" cy="26.399" rx="11.4" ry="6.6" />
@@ -1,22 +1,15 @@
1
1
  <template>
2
- <template v-if="isNetworkNotAvailable">
3
- <svg v-bind="$attrs" class="dark:hidden block" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
4
- <rect width="20" height="20" fill="#CBD5E1" rx="10" />
5
- <path fill="#fff" fill-rule="evenodd"
6
- d="M10 3.999A6 6 0 1 0 10 16a6 6 0 0 0 0-12.001Zm0 10.8a4.8 4.8 0 1 1 0-9.6 4.8 4.8 0 0 1 0 9.6ZM6.399 9.67A3.6 3.6 0 0 1 9.68 6.4a.3.3 0 0 1 .318.318v.6a.294.294 0 0 1-.264.282A2.4 2.4 0 0 0 7.6 9.735a.294.294 0 0 1-.3.264h-.6a.312.312 0 0 1-.222-.096.336.336 0 0 1-.078-.234Z"
7
- clip-rule="evenodd" />
8
- </svg>
9
- <svg v-bind="$attrs" class="dark:block hidden" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
10
- <rect width="20" height="20" fill="#334155" rx="10" />
11
- <path fill="#97A2B7" fill-rule="evenodd"
12
- d="M10 3.999A6 6 0 1 0 10 16a6 6 0 0 0 0-12.001Zm0 10.8a4.8 4.8 0 1 1 0-9.6 4.8 4.8 0 0 1 0 9.6ZM6.399 9.67A3.6 3.6 0 0 1 9.68 6.4a.3.3 0 0 1 .318.318v.6a.294.294 0 0 1-.264.282A2.4 2.4 0 0 0 7.6 9.735a.294.294 0 0 1-.3.264h-.6a.312.312 0 0 1-.222-.096.336.336 0 0 1-.078-.234Z"
13
- clip-rule="evenodd" />
14
- </svg>
15
- </template>
16
- <span v-else-if="stroke" class="outline stroke-color dark:outline-[#161E2D] outline-[#F8FAFC] outline-2 shrink-0 outline outline-offset-[-1.5px] rounded-full">
17
- <img class="w-full h-full" :src="`https://cdn.instadapp.io/avocado/networks/${chain}.svg`"/>
2
+ <svg v-if="isNetworkNotAvailable" v-bind="$attrs" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
3
+ <rect width="20" height="20" fill="#334155" rx="10" />
4
+ <path fill="#97A2B7" fill-rule="evenodd"
5
+ d="M10 3.999A6 6 0 1 0 10 16a6 6 0 0 0 0-12.001Zm0 10.8a4.8 4.8 0 1 1 0-9.6 4.8 4.8 0 0 1 0 9.6ZM6.399 9.67A3.6 3.6 0 0 1 9.68 6.4a.3.3 0 0 1 .318.318v.6a.294.294 0 0 1-.264.282A2.4 2.4 0 0 0 7.6 9.735a.294.294 0 0 1-.3.264h-.6a.312.312 0 0 1-.222-.096.336.336 0 0 1-.078-.234Z"
6
+ clip-rule="evenodd" />
7
+ </svg>
8
+ <span v-else-if="stroke"
9
+ class="outline stroke-color outline-[#161E2D] outline-2 shrink-0 outline outline-offset-[-1.5px] rounded-full">
10
+ <img class="w-full h-full" :src="`https://cdn.instadapp.io/avocado/networks/${chain}.svg`" />
18
11
  </span>
19
- <img v-else :src="`https://cdn.instadapp.io/avocado/networks/${chain}.svg`"/>
12
+ <img v-else :src="`https://cdn.instadapp.io/avocado/networks/${chain}.svg`" />
20
13
  </template>
21
14
 
22
15
  <script lang="ts" setup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instadapp/avocado-base",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "global.d.ts",
@@ -9,15 +9,14 @@
9
9
  "dev": "nuxt dev",
10
10
  "generate": "nuxt generate",
11
11
  "preview": "nuxt preview",
12
- "generate:contracts": "rimraf contracts && typechain --target=ethers-v5 'abi/*.json' --out-dir 'contracts'"
12
+ "generate:contracts": "rimraf contracts && typechain --target=ethers-v5 'abi/*.json' --out-dir 'contracts'",
13
+ "typecheck": "nuxi typecheck"
13
14
  },
14
15
  "devDependencies": {
15
- "@instadapp/avocado": "^0.1.10",
16
- "@instadapp/avocado-dev": "npm:@instadapp/avocado@dev",
17
- "@nuxtjs/tailwindcss": "^6.6.5",
16
+ "@nuxtjs/tailwindcss": "^6.11.3",
18
17
  "@typechain/ethers-v5": "^10.2.0",
19
- "nuxt": "^3.6.1",
20
- "nuxt-svgo": "^3.1.0",
18
+ "nuxt": "^3.10.1",
19
+ "nuxt-svgo": "^4.0.0",
21
20
  "rimraf": "^3.0.2",
22
21
  "typechain": "^8.1.1",
23
22
  "unplugin-vue-components": "^0.25.1",
package/utils/network.ts CHANGED
@@ -354,25 +354,25 @@ export const networks: Network[] = [
354
354
  },
355
355
  },
356
356
  },
357
- {
358
- name: "Manta Pacific",
359
- chainId: 169,
360
- explorerUrl: "https://manta-pacific.l2scan.co",
361
- params: {
362
- rpcUrls: ["https://pacific-rpc.manta.network/http"],
363
- chainName: "Manta Pacific",
364
- nativeCurrency: {
365
- name: "Ethereum",
366
- symbol: "ETH",
367
- decimals: 18,
368
- },
369
- },
370
- color: "#78d64b",
371
- fakeTransactionHash: "0x3fB128aA5AC254C8539996B11C587E521AE0d3ab",
372
- get serverRpcUrl() {
373
- return process.env?.MANTA_RPC_URL || this.params.rpcUrls[0];
374
- },
375
- },
357
+ // {
358
+ // name: "Manta Pacific",
359
+ // chainId: 169,
360
+ // explorerUrl: "https://pacific-explorer.manta.network",
361
+ // params: {
362
+ // rpcUrls: ["https://pacific-rpc.manta.network/http"],
363
+ // chainName: "Manta Pacific",
364
+ // nativeCurrency: {
365
+ // name: "Ethereum",
366
+ // symbol: "ETH",
367
+ // decimals: 18,
368
+ // },
369
+ // },
370
+ // color: "#78d64b",
371
+ // fakeTransactionHash: "0x3fB128aA5AC254C8539996B11C587E521AE0d3ab",
372
+ // get serverRpcUrl() {
373
+ // return process.env?.MANTA_RPC_URL || this.params.rpcUrls[0];
374
+ // },
375
+ // },
376
376
  {
377
377
  name: AVO_PROD_CHAIN_NAME,
378
378
  chainId: AVO_PROD_CHAIN_ID,