thirdweb 5.108.14-nightly-43b06801247372ef0ae6064b28ed9a91c0414c7d-20251014000325 → 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.
Files changed (42) hide show
  1. package/dist/cjs/react/core/hooks/others/useChainQuery.js +19 -28
  2. package/dist/cjs/react/core/hooks/others/useChainQuery.js.map +1 -1
  3. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js +5 -5
  4. package/dist/cjs/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js.map +1 -1
  5. package/dist/cjs/transaction/transaction-store.js +3 -1
  6. package/dist/cjs/transaction/transaction-store.js.map +1 -1
  7. package/dist/cjs/version.js +1 -1
  8. package/dist/cjs/version.js.map +1 -1
  9. package/dist/cjs/wallets/coinbase/coinbase-web.js +9 -1
  10. package/dist/cjs/wallets/coinbase/coinbase-web.js.map +1 -1
  11. package/dist/cjs/x402/fetchWithPayment.js +3 -3
  12. package/dist/cjs/x402/fetchWithPayment.js.map +1 -1
  13. package/dist/esm/react/core/hooks/others/useChainQuery.js +19 -28
  14. package/dist/esm/react/core/hooks/others/useChainQuery.js.map +1 -1
  15. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js +5 -5
  16. package/dist/esm/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.js.map +1 -1
  17. package/dist/esm/transaction/transaction-store.js +3 -1
  18. package/dist/esm/transaction/transaction-store.js.map +1 -1
  19. package/dist/esm/version.js +1 -1
  20. package/dist/esm/version.js.map +1 -1
  21. package/dist/esm/wallets/coinbase/coinbase-web.js +9 -1
  22. package/dist/esm/wallets/coinbase/coinbase-web.js.map +1 -1
  23. package/dist/esm/x402/fetchWithPayment.js +3 -3
  24. package/dist/esm/x402/fetchWithPayment.js.map +1 -1
  25. package/dist/scripts/bridge-widget.js +81 -81
  26. package/dist/types/react/core/hooks/others/useChainQuery.d.ts +1 -1
  27. package/dist/types/react/core/hooks/others/useChainQuery.d.ts.map +1 -1
  28. package/dist/types/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.d.ts.map +1 -1
  29. package/dist/types/transaction/transaction-store.d.ts +7 -0
  30. package/dist/types/transaction/transaction-store.d.ts.map +1 -1
  31. package/dist/types/version.d.ts +1 -1
  32. package/dist/types/version.d.ts.map +1 -1
  33. package/dist/types/wallets/coinbase/coinbase-web.d.ts.map +1 -1
  34. package/dist/types/x402/fetchWithPayment.d.ts.map +1 -1
  35. package/package.json +1 -1
  36. package/src/extensions/erc721/read/getNFTs.test.ts +5 -0
  37. package/src/react/core/hooks/others/useChainQuery.ts +20 -28
  38. package/src/react/web/ui/ConnectWallet/screens/WalletTransactionHistory.tsx +7 -9
  39. package/src/transaction/transaction-store.ts +10 -1
  40. package/src/version.ts +1 -1
  41. package/src/wallets/coinbase/coinbase-web.ts +11 -1
  42. package/src/x402/fetchWithPayment.ts +3 -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;;;EAqBzC;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK;;;EAsB5C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK;;;EA0B5C;AAED,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK;;;EAuB3C;AAED,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK;;;;;;;EAsB9C;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
+ {"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;AAuBtE,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"}
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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;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"}
@@ -1,2 +1,2 @@
1
- export declare const version = "5.108.14-nightly-43b06801247372ef0ae6064b28ed9a91c0414c7d-20251014000325";
1
+ export declare const version = "5.108.15";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,6EAA6E,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"coinbase-web.d.ts","sourceRoot":"","sources":["../../../../src/wallets/coinbase/coinbase-web.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAKvF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uB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C,OAAO,SAAS,CAAC,CAAC,CA2BvC;AAED;;GAEG;AACH,wBAAsB,4BAA4B,CAChD,OAAO,EAAE,sBAAsB,CAAC,OAAO,QAAQ,CAAC,EAChD,OAAO,EAAE,aAAa,CAAC,OAAO,QAAQ,CAAC,EACvC,QAAQ,EAAE,iBAAiB,GAC1B,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAsBvC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetchWithPayment.d.ts","sourceRoot":"","sources":["../../../src/x402/fetchWithPayment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAQ9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,UAAU,CAAC,KAAK,EAC9B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,MAA4B,IAExB,OAAO,WAAW,EAAE,OAAO,WAAW,uBAiFrD"}
1
+ {"version":3,"file":"fetchWithPayment.d.ts","sourceRoot":"","sources":["../../../src/x402/fetchWithPayment.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAQ9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,OAAO,UAAU,CAAC,KAAK,EAC9B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,GAAE,MAA4B,IAExB,OAAO,WAAW,EAAE,OAAO,WAAW,uBAkFrD"}
package/package.json CHANGED
@@ -399,7 +399,7 @@
399
399
  }
400
400
  },
401
401
  "typings": "./dist/types/exports/thirdweb.d.ts",
402
- "version": "5.108.14-nightly-43b06801247372ef0ae6064b28ed9a91c0414c7d-20251014000325",
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
- queryKey: ["chain", chain?.id],
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
- queryKey: ["chain", chain?.id],
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 convertApiChainToChain(await getChainMetadata(chain));
70
+ return getChainMetadata(chain);
76
71
  },
77
- queryKey: ["chain", chain?.id],
78
- retry: false,
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 convertApiChainToChain(await getChainMetadata(chain));
90
+ return getChainMetadata(chain);
100
91
  },
101
- queryKey: ["chain", chain?.id],
102
- retry: false,
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 convertApiChainToChain(await getChainMetadata(chain));
112
+ return getChainMetadata(chain);
125
113
  },
126
- queryKey: ["chain", chain?.id],
127
- retry: false,
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: chain?.blockExplorers ?? chainQuery.data?.blockExplorers ?? [],
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
- {receipt?.to
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
- <ChainName
202
- chain={getCachedChain(props.tx.chainId)}
203
- client={props.client}
204
- size="xs"
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 === 1 ? "success" : "failed",
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.14-nightly-43b06801247372ef0ae6064b28ed9a91c0414c7d-20251014000325";
1
+ export const version = "5.108.15";
@@ -188,7 +188,17 @@ function createAccount({
188
188
  onTransactionRequested: async () => {
189
189
  // make sure to show the coinbase popup BEFORE doing any transaction preprocessing
190
190
  // otherwise the popup might get blocked in safari
191
- await showCoinbasePopup(provider);
191
+ // but only if using cb smart wallet (web based)
192
+ if (window.localStorage) {
193
+ // this is the local storage key for the signer type in the cb web sdk
194
+ // value can be "scw" (web) or "walletlink" (mobile wallet)
195
+ const signerType = window.localStorage.getItem(
196
+ "-CBWSDK:SignerConfigurator:SignerType",
197
+ );
198
+ if (signerType === "scw") {
199
+ await showCoinbasePopup(provider);
200
+ }
201
+ }
192
202
  },
193
203
  async sendTransaction(tx: SendTransactionOption) {
194
204
  const transactionHash = (await provider.request({
@@ -82,6 +82,7 @@ export function wrapFetchWithPayment(
82
82
  parsedPaymentRequirements,
83
83
  chain.id,
84
84
  "exact",
85
+ error,
85
86
  );
86
87
 
87
88
  if (!selectedPaymentRequirements) {
@@ -141,10 +142,11 @@ function defaultPaymentRequirementsSelector(
141
142
  paymentRequirements: RequestedPaymentRequirements[],
142
143
  chainId: number,
143
144
  scheme: "exact",
145
+ error?: string,
144
146
  ) {
145
147
  if (!paymentRequirements.length) {
146
148
  throw new Error(
147
- "No valid payment requirements found in server 402 response",
149
+ `No valid payment requirements found in server 402 response. ${error}`,
148
150
  );
149
151
  }
150
152
  const currentWalletNetwork = ChainIdToNetwork[chainId] || `eip155:${chainId}`;