@instadapp/avocado-base 0.0.0-dev.424dd71 → 0.0.0-dev.4546ed9

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