@instadapp/avocado-base 0.0.0-dev.8d2b9ac → 0.0.0-dev.8ed8fca

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.
package/utils/utils.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { Chain } from "viem";
2
+
1
3
  declare global {
2
4
  type ChainId =
3
5
  | 1
@@ -12,8 +14,15 @@ declare global {
12
14
  | 634
13
15
  | 1313161554
14
16
  | 8453
15
- | 63400;
16
-
17
+ | 122
18
+ | 534352
19
+ | 204
20
+ | 63400
21
+ | 169
22
+ | 34443
23
+ | 81457
24
+ | 59144
25
+
17
26
  type ISlackMessageType = "danger" | "error" | "success" | "banner";
18
27
 
19
28
  type MetadataTypes = keyof typeof MetadataEnums;
@@ -32,8 +41,12 @@ declare global {
32
41
  isAvocado?: boolean;
33
42
  serverRpcUrl: string | undefined;
34
43
  balanceResolverAddress?: string;
35
- usdcAddress: string;
44
+ usdcAddress?: string;
36
45
  explorerUrl: string;
46
+ fakeTransactionHash: string;
47
+ viemChain: Chain;
48
+ // must start with https://
49
+ apiURL: `https://${string}` | null;
37
50
  params: {
38
51
  chainName?: string;
39
52
  iconUrls?: string[];
@@ -70,8 +83,10 @@ declare global {
70
83
  toChainId: string;
71
84
  amount: string;
72
85
  receiver: string;
86
+ provider?: string;
73
87
  };
74
88
 
89
+
75
90
  type AuthMetadataProps = {
76
91
  address: string;
77
92
  chainId: string;
@@ -97,6 +112,8 @@ declare global {
97
112
  toChainId: string;
98
113
  bridgeFee: string;
99
114
  nativeToken: string;
115
+ version?: string;
116
+ provider: string;
100
117
  };
101
118
 
102
119
  type SwapMetadataProps = {
@@ -109,7 +126,7 @@ declare global {
109
126
  };
110
127
 
111
128
  type MetadataProps = {
112
- type: MetadataTypes,
129
+ type: MetadataTypes;
113
130
  encodedData: string;
114
131
  version?: string;
115
132
  };
@@ -125,8 +142,6 @@ declare global {
125
142
  coingecko_id: string;
126
143
  sparkline_price_7d: number[];
127
144
  }
128
-
129
145
  }
130
146
 
131
- export { }
132
-
147
+ export {};