@instadapp/avocado-base 0.0.0-dev.a3a46f8 → 0.0.0-dev.a52088d

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
@@ -16,7 +18,10 @@ declare global {
16
18
  | 534352
17
19
  | 204
18
20
  | 63400
19
- | 169;
21
+ | 169
22
+ | 34443
23
+ | 81457
24
+ | 59144
20
25
 
21
26
  type ISlackMessageType = "danger" | "error" | "success" | "banner";
22
27
 
@@ -39,7 +44,9 @@ declare global {
39
44
  usdcAddress?: string;
40
45
  explorerUrl: string;
41
46
  fakeTransactionHash: string;
42
- apiURL?: string;
47
+ viemChain: Chain;
48
+ // must start with https://
49
+ apiURL: `https://${string}` | null;
43
50
  params: {
44
51
  chainName?: string;
45
52
  iconUrls?: string[];
@@ -76,8 +83,10 @@ declare global {
76
83
  toChainId: string;
77
84
  amount: string;
78
85
  receiver: string;
86
+ provider?: string;
79
87
  };
80
88
 
89
+
81
90
  type AuthMetadataProps = {
82
91
  address: string;
83
92
  chainId: string;
@@ -103,6 +112,8 @@ declare global {
103
112
  toChainId: string;
104
113
  bridgeFee: string;
105
114
  nativeToken: string;
115
+ version?: string;
116
+ provider: string;
106
117
  };
107
118
 
108
119
  type SwapMetadataProps = {