@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/.github/workflows/npm-publish-dev.yml +2 -5
- package/.vscode/settings.json +68 -0
- package/abi/multisigAgnosticForwarder.json +938 -0
- package/abi/multisigForwarder.json +697 -0
- package/assets/images/icons/check.svg +3 -0
- package/assets/images/icons/copy.svg +9 -2
- package/assets/images/icons/hammer.svg +5 -0
- package/assets/images/icons/info-2.svg +12 -0
- package/assets/images/icons/stars.svg +4 -0
- package/components/ActionLogo.vue +32 -28
- package/components/ActionMetadata.vue +45 -29
- package/components/Address.vue +74 -0
- package/components/AuthorityAvatar.vue +16 -5
- package/components/ChainLogo.vue +12 -218
- package/components/CopyClipboard.vue +16 -38
- package/components/metadata/CrossTransfer.vue +11 -3
- package/components/metadata/Signers.vue +12 -38
- package/components/metadata/Swap.vue +45 -53
- package/components/metadata/Transfer.vue +25 -27
- package/contracts/MultisigAgnosticForwarder.ts +1423 -0
- package/contracts/MultisigForwarder.ts +859 -0
- package/contracts/factories/MultisigAgnosticForwarder__factory.ts +2135 -0
- package/contracts/factories/MultisigForwarder__factory.ts +721 -0
- package/contracts/factories/index.ts +2 -0
- package/contracts/index.ts +4 -0
- package/eslint.config.mjs +19 -0
- package/nuxt.config.ts +7 -2
- package/package.json +18 -13
- package/utils/formatter.ts +1 -1
- package/utils/helper.ts +0 -11
- package/utils/metadata.ts +216 -58
- package/utils/network.ts +459 -193
- package/utils/utils.d.ts +22 -7
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
|
-
|
|
|
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
|
|
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 {};
|