thirdweb 5.108.14 → 5.108.15
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/dist/cjs/react/core/hooks/others/useChainQuery.js +19 -28
- package/dist/cjs/react/core/hooks/others/useChainQuery.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js +5 -5
- package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js.map +1 -1
- package/dist/cjs/transaction/transaction-store.js +3 -1
- package/dist/cjs/transaction/transaction-store.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/react/core/hooks/others/useChainQuery.js +19 -28
- package/dist/esm/react/core/hooks/others/useChainQuery.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js +5 -5
- package/dist/esm/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js.map +1 -1
- package/dist/esm/transaction/transaction-store.js +3 -1
- package/dist/esm/transaction/transaction-store.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/scripts/bridge-widget.js +81 -81
- package/dist/types/react/core/hooks/others/useChainQuery.d.ts +1 -1
- package/dist/types/react/core/hooks/others/useChainQuery.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.d.ts.map +1 -1
- package/dist/types/transaction/transaction-store.d.ts +7 -0
- package/dist/types/transaction/transaction-store.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/extensions/erc721/read/getNFTs.test.ts +5 -0
- package/src/react/core/hooks/others/useChainQuery.ts +20 -28
- package/src/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.tsx +7 -9
- package/src/transaction/transaction-store.ts +10 -1
- package/src/version.ts +1 -1
|
@@ -9,7 +9,7 @@ export declare function useChainIconUrl(chain?: Chain): {
|
|
|
9
9
|
url: string | undefined;
|
|
10
10
|
};
|
|
11
11
|
export declare function useChainFaucets(chain?: Chain): {
|
|
12
|
-
faucets: string[];
|
|
12
|
+
faucets: readonly string[];
|
|
13
13
|
isLoading: boolean;
|
|
14
14
|
};
|
|
15
15
|
export declare function useChainSymbol(chain?: Chain): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChainQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/react/core/hooks/others/useChainQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAOxE,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,KAAK;;;
|
|
1
|
+
{"version":3,"file":"useChainQuery.d.ts","sourceRoot":"","sources":["../../../../../../src/react/core/hooks/others/useChainQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EAGpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAOxE,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,KAAK;;;EAmBzC;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK;;;EAoB5C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK;;;EAuB5C;AAED,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK;;;EAmB3C;AAED,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK;;;;;;;EAyB9C;AAUD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC,aAAa,CAAC,CAU7E;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,0CAcrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletTransactionHistory.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"WalletTransactionHistory.d.ts","sourceRoot":"","sources":["../../../../../../../src/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAsBtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,cAAc,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACjB,2CAqFA"}
|
|
@@ -9,6 +9,13 @@ export type StoredTransaction = {
|
|
|
9
9
|
status: "success" | "failed";
|
|
10
10
|
to: string;
|
|
11
11
|
};
|
|
12
|
+
decoded?: {
|
|
13
|
+
name: string;
|
|
14
|
+
signature: string;
|
|
15
|
+
inputs?: {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
12
19
|
};
|
|
13
20
|
/**
|
|
14
21
|
* Retrieve the transaction store for a given address.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction-store.d.ts","sourceRoot":"","sources":["../../../src/transaction/transaction-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,GAAG,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;QAC7B,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;CACH,CAAC;AAIF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GACd,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAU5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,GAAG,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,QAUA;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"transaction-store.d.ts","sourceRoot":"","sources":["../../../src/transaction/transaction-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,EAAE,GAAG,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAC;QAC7B,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,OAAO,CAAC,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE;YACP,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;SACxB,CAAC;KACH,CAAC;CACH,CAAC;AAIF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,GACd,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAU5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,GAAG,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB,QAUA;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CA2B/B"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "5.108.
|
|
1
|
+
export declare const version = "5.108.15";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"viem": "2.37.9",
|
|
41
41
|
"x402": "0.6.1",
|
|
42
42
|
"zod": "3.25.75",
|
|
43
|
-
"@thirdweb-dev/
|
|
44
|
-
"@thirdweb-dev/
|
|
43
|
+
"@thirdweb-dev/engine": "3.3.0",
|
|
44
|
+
"@thirdweb-dev/insight": "1.1.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@aws-sdk/client-kms": "3.592.0",
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
401
|
"typings": "./dist/types/exports/thirdweb.d.ts",
|
|
402
|
-
"version": "5.108.
|
|
402
|
+
"version": "5.108.15",
|
|
403
403
|
"scripts": {
|
|
404
404
|
"bench": "vitest -c ./test/vitest.config.ts bench",
|
|
405
405
|
"bench:compare": "bun run ./benchmarks/run.ts",
|
|
@@ -41,6 +41,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("erc721.getNFTs", () => {
|
|
|
41
41
|
"value": "tan",
|
|
42
42
|
},
|
|
43
43
|
],
|
|
44
|
+
"contract_address": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e",
|
|
44
45
|
"description": "A community-driven collectibles project featuring art by Burnt Toast. Doodles come in a joyful range of colors, traits and sizes with a collection size of 10,000. Each Doodle allows its owner to vote for experiences and activations paid for by the Doodles Community Treasury. Burnt Toast is the working alias for Scott Martin, a Canadian–based illustrator, designer, animator and muralist.",
|
|
45
46
|
"image": "ipfs://QmUEfFfwAh4wyB5UfHCVPUxis4j4Q4kJXtm5x5p3g1fVUn",
|
|
46
47
|
"image_url": "ipfs://QmUEfFfwAh4wyB5UfHCVPUxis4j4Q4kJXtm5x5p3g1fVUn",
|
|
@@ -78,6 +79,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("erc721.getNFTs", () => {
|
|
|
78
79
|
"value": "gradient 2",
|
|
79
80
|
},
|
|
80
81
|
],
|
|
82
|
+
"contract_address": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e",
|
|
81
83
|
"description": "A community-driven collectibles project featuring art by Burnt Toast. Doodles come in a joyful range of colors, traits and sizes with a collection size of 10,000. Each Doodle allows its owner to vote for experiences and activations paid for by the Doodles Community Treasury. Burnt Toast is the working alias for Scott Martin, a Canadian–based illustrator, designer, animator and muralist.",
|
|
82
84
|
"image": "ipfs://QmTDxnzcvj2p3xBrKcGv1wxoyhAn2yzCQnZZ9LmFjReuH9",
|
|
83
85
|
"image_url": "ipfs://QmTDxnzcvj2p3xBrKcGv1wxoyhAn2yzCQnZZ9LmFjReuH9",
|
|
@@ -115,6 +117,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("erc721.getNFTs", () => {
|
|
|
115
117
|
"value": "purple",
|
|
116
118
|
},
|
|
117
119
|
],
|
|
120
|
+
"contract_address": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e",
|
|
118
121
|
"description": "A community-driven collectibles project featuring art by Burnt Toast. Doodles come in a joyful range of colors, traits and sizes with a collection size of 10,000. Each Doodle allows its owner to vote for experiences and activations paid for by the Doodles Community Treasury. Burnt Toast is the working alias for Scott Martin, a Canadian–based illustrator, designer, animator and muralist.",
|
|
119
122
|
"image": "ipfs://QmbvZ2hbF3nEq5r3ijMEiSGssAmJvtyFwiejTAGHv74LR5",
|
|
120
123
|
"image_url": "ipfs://QmbvZ2hbF3nEq5r3ijMEiSGssAmJvtyFwiejTAGHv74LR5",
|
|
@@ -152,6 +155,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("erc721.getNFTs", () => {
|
|
|
152
155
|
"value": "pale",
|
|
153
156
|
},
|
|
154
157
|
],
|
|
158
|
+
"contract_address": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e",
|
|
155
159
|
"description": "A community-driven collectibles project featuring art by Burnt Toast. Doodles come in a joyful range of colors, traits and sizes with a collection size of 10,000. Each Doodle allows its owner to vote for experiences and activations paid for by the Doodles Community Treasury. Burnt Toast is the working alias for Scott Martin, a Canadian–based illustrator, designer, animator and muralist.",
|
|
156
160
|
"image": "ipfs://QmVpwaCqLut3wqwB5KSQr2fGnbLuJt5e3LhNvzvcisewZB",
|
|
157
161
|
"image_url": "ipfs://QmVpwaCqLut3wqwB5KSQr2fGnbLuJt5e3LhNvzvcisewZB",
|
|
@@ -189,6 +193,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("erc721.getNFTs", () => {
|
|
|
189
193
|
"value": "purple",
|
|
190
194
|
},
|
|
191
195
|
],
|
|
196
|
+
"contract_address": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e",
|
|
192
197
|
"description": "A community-driven collectibles project featuring art by Burnt Toast. Doodles come in a joyful range of colors, traits and sizes with a collection size of 10,000. Each Doodle allows its owner to vote for experiences and activations paid for by the Doodles Community Treasury. Burnt Toast is the working alias for Scott Martin, a Canadian–based illustrator, designer, animator and muralist.",
|
|
193
198
|
"image": "ipfs://QmcyuFVLbfBmSeQ9ynu4dk67r97nB1abEekotuVuRGWedm",
|
|
194
199
|
"image_url": "ipfs://QmcyuFVLbfBmSeQ9ynu4dk67r97nB1abEekotuVuRGWedm",
|
|
@@ -15,17 +15,15 @@ export function useChainName(chain?: Chain) {
|
|
|
15
15
|
// only if we have a chain and no chain name!
|
|
16
16
|
const isEnabled = !!chain && !chain.name;
|
|
17
17
|
const chainQuery = useQuery({
|
|
18
|
-
enabled: isEnabled,
|
|
19
18
|
queryFn: async () => {
|
|
20
19
|
if (!chain) {
|
|
21
20
|
throw new Error("chain is required");
|
|
22
21
|
}
|
|
23
22
|
return convertApiChainToChain(await getChainMetadata(chain));
|
|
24
23
|
},
|
|
25
|
-
|
|
24
|
+
...getQueryOptions(chain),
|
|
25
|
+
enabled: isEnabled,
|
|
26
26
|
retry: false,
|
|
27
|
-
// 1 hour
|
|
28
|
-
staleTime: 60 * 60 * 1000,
|
|
29
27
|
});
|
|
30
28
|
|
|
31
29
|
return {
|
|
@@ -39,17 +37,15 @@ export function useChainIconUrl(chain?: Chain) {
|
|
|
39
37
|
const isEnabled = !!chain && !chain.icon?.url;
|
|
40
38
|
const chainQuery = useQuery({
|
|
41
39
|
// only if we have a chain and no chain icon url!
|
|
42
|
-
enabled: isEnabled,
|
|
43
40
|
queryFn: async () => {
|
|
44
41
|
if (!chain) {
|
|
45
42
|
throw new Error("chain is required");
|
|
46
43
|
}
|
|
47
44
|
return convertApiChainToChain(await getChainMetadata(chain));
|
|
48
45
|
},
|
|
49
|
-
|
|
46
|
+
...getQueryOptions(chain),
|
|
47
|
+
enabled: isEnabled,
|
|
50
48
|
retry: false,
|
|
51
|
-
// 1 hour
|
|
52
|
-
staleTime: 60 * 60 * 1000,
|
|
53
49
|
});
|
|
54
50
|
|
|
55
51
|
return {
|
|
@@ -67,17 +63,14 @@ export function useChainFaucets(chain?: Chain) {
|
|
|
67
63
|
chain.id !== 1337;
|
|
68
64
|
|
|
69
65
|
const chainQuery = useQuery({
|
|
70
|
-
enabled: isEnabled,
|
|
71
66
|
queryFn: async () => {
|
|
72
67
|
if (!chain) {
|
|
73
68
|
throw new Error("chain is required");
|
|
74
69
|
}
|
|
75
|
-
return
|
|
70
|
+
return getChainMetadata(chain);
|
|
76
71
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
// 1 hour
|
|
80
|
-
staleTime: 60 * 60 * 1000,
|
|
72
|
+
...getQueryOptions(chain),
|
|
73
|
+
enabled: isEnabled,
|
|
81
74
|
});
|
|
82
75
|
|
|
83
76
|
return {
|
|
@@ -90,18 +83,14 @@ export function useChainSymbol(chain?: Chain) {
|
|
|
90
83
|
// only if we have a chain and no chain icon url!
|
|
91
84
|
const isEnabled = !!chain && !chain.nativeCurrency?.symbol;
|
|
92
85
|
const chainQuery = useQuery({
|
|
93
|
-
// only if we have a chain and no chain icon url!
|
|
94
|
-
enabled: isEnabled,
|
|
95
86
|
queryFn: async () => {
|
|
96
87
|
if (!chain) {
|
|
97
88
|
throw new Error("chain is required");
|
|
98
89
|
}
|
|
99
|
-
return
|
|
90
|
+
return getChainMetadata(chain);
|
|
100
91
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
// 1 hour
|
|
104
|
-
staleTime: 60 * 60 * 1000,
|
|
92
|
+
...getQueryOptions(chain),
|
|
93
|
+
enabled: isEnabled,
|
|
105
94
|
});
|
|
106
95
|
|
|
107
96
|
return {
|
|
@@ -116,21 +105,24 @@ export function useChainExplorers(chain?: Chain) {
|
|
|
116
105
|
const isEnabled = !!chain && !chain.blockExplorers?.length;
|
|
117
106
|
|
|
118
107
|
const chainQuery = useQuery({
|
|
119
|
-
enabled: isEnabled,
|
|
120
108
|
queryFn: async () => {
|
|
121
109
|
if (!chain) {
|
|
122
110
|
throw new Error("chain is required");
|
|
123
111
|
}
|
|
124
|
-
return
|
|
112
|
+
return getChainMetadata(chain);
|
|
125
113
|
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
// 1 hour
|
|
129
|
-
staleTime: 60 * 60 * 1000,
|
|
114
|
+
...getQueryOptions(chain),
|
|
115
|
+
enabled: isEnabled,
|
|
130
116
|
});
|
|
131
117
|
|
|
118
|
+
const toChain = chainQuery.data
|
|
119
|
+
? convertApiChainToChain(chainQuery.data)
|
|
120
|
+
: undefined;
|
|
132
121
|
return {
|
|
133
|
-
explorers:
|
|
122
|
+
explorers:
|
|
123
|
+
chain?.blockExplorers && chain?.blockExplorers?.length > 0
|
|
124
|
+
? chain?.blockExplorers
|
|
125
|
+
: (toChain?.blockExplorers ?? []),
|
|
134
126
|
isLoading: isEnabled && chainQuery.isLoading,
|
|
135
127
|
};
|
|
136
128
|
}
|
|
@@ -24,7 +24,6 @@ import { useActiveWalletChain } from "../../../../core/hooks/wallets/useActiveWa
|
|
|
24
24
|
import { Container } from "../../components/basic.js";
|
|
25
25
|
import { Button } from "../../components/buttons.js";
|
|
26
26
|
import { ChainIcon } from "../../components/ChainIcon.js";
|
|
27
|
-
import { ChainName } from "../../components/ChainName.js";
|
|
28
27
|
import { Spacer } from "../../components/Spacer.js";
|
|
29
28
|
import { Spinner } from "../../components/Spinner.js";
|
|
30
29
|
import { Text } from "../../components/text.js";
|
|
@@ -141,6 +140,7 @@ function TransactionButton(props: {
|
|
|
141
140
|
});
|
|
142
141
|
const chainIconQuery = useChainIconUrl(getCachedChain(props.tx.chainId));
|
|
143
142
|
const receipt = props.tx.receipt ?? fetchedReceipt;
|
|
143
|
+
const decoded = props.tx.decoded;
|
|
144
144
|
|
|
145
145
|
const content = (
|
|
146
146
|
<TxButton
|
|
@@ -181,9 +181,7 @@ function TransactionButton(props: {
|
|
|
181
181
|
}}
|
|
182
182
|
>
|
|
183
183
|
<Text color="primaryText" size="sm">
|
|
184
|
-
{
|
|
185
|
-
? `Interacted with ${shortenHex(receipt?.to, 4)}`
|
|
186
|
-
: `Hash: ${shortenHex(props.tx.transactionHash, 4)}`}
|
|
184
|
+
{decoded ? decoded.name : `Transaction Sent`}
|
|
187
185
|
</Text>
|
|
188
186
|
</Container>
|
|
189
187
|
|
|
@@ -198,11 +196,11 @@ function TransactionButton(props: {
|
|
|
198
196
|
justifyContent: "space-between",
|
|
199
197
|
}}
|
|
200
198
|
>
|
|
201
|
-
<
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
<Text color="secondaryText" size="xs">
|
|
200
|
+
{receipt?.to
|
|
201
|
+
? shortenHex(receipt?.to, 4)
|
|
202
|
+
: shortenHex(props.tx.transactionHash, 4)}
|
|
203
|
+
</Text>
|
|
206
204
|
</Container>
|
|
207
205
|
</div>
|
|
208
206
|
</Container>
|
|
@@ -11,6 +11,13 @@ export type StoredTransaction = {
|
|
|
11
11
|
status: "success" | "failed";
|
|
12
12
|
to: string;
|
|
13
13
|
};
|
|
14
|
+
decoded?: {
|
|
15
|
+
name: string;
|
|
16
|
+
signature: string;
|
|
17
|
+
inputs?: {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
14
21
|
};
|
|
15
22
|
|
|
16
23
|
const transactionsByAddress = new Map<string, Store<StoredTransaction[]>>();
|
|
@@ -81,6 +88,7 @@ export async function getPastTransactions(options: {
|
|
|
81
88
|
queryOptions: {
|
|
82
89
|
filter_block_timestamp_gte: oneMonthsAgoInSeconds,
|
|
83
90
|
limit: 20,
|
|
91
|
+
decode: true,
|
|
84
92
|
},
|
|
85
93
|
walletAddress,
|
|
86
94
|
});
|
|
@@ -90,9 +98,10 @@ export async function getPastTransactions(options: {
|
|
|
90
98
|
? Number(tx.chain_id)
|
|
91
99
|
: (tx.chain_id as number),
|
|
92
100
|
receipt: {
|
|
93
|
-
status: tx.status ===
|
|
101
|
+
status: tx.status === 0 ? "failed" : "success",
|
|
94
102
|
to: tx.to_address,
|
|
95
103
|
},
|
|
96
104
|
transactionHash: tx.hash as Hex,
|
|
105
|
+
decoded: tx.decoded,
|
|
97
106
|
}));
|
|
98
107
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "5.108.
|
|
1
|
+
export const version = "5.108.15";
|