@lukso/transaction-view-headless 0.4.0-dev.c21633f → 0.4.0
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/.turbo/turbo-build.log +11 -11
- package/dist/composables/index.cjs +5 -5
- package/dist/composables/index.cjs.map +1 -1
- package/dist/composables/index.js +5 -5
- package/dist/composables/index.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/src/composables/use-transaction-playback.ts +3 -3
- package/src/composables/use-transaction-view.ts +1 -1
- package/src/config/lukso-config.ts +1 -4
- package/src/examples/context-aware-views.ts +1 -0
- package/src/examples/opt-in-context-examples.ts +1 -0
- package/src/hooks/useAddressResolution.ts +4 -0
- package/src/utils/context-matcher.ts +1 -1
- package/.turbo/turbo-typecheck.log +0 -4
|
@@ -7,9 +7,12 @@
|
|
|
7
7
|
import type {
|
|
8
8
|
AssetData,
|
|
9
9
|
EnhancedInfo,
|
|
10
|
+
ImageData,
|
|
11
|
+
LinkData,
|
|
10
12
|
ProfileData,
|
|
11
13
|
TokenData,
|
|
12
14
|
} from '@lukso/transaction-decoder'
|
|
15
|
+
import type { Chain } from 'viem'
|
|
13
16
|
import {
|
|
14
17
|
cacheAddress,
|
|
15
18
|
currentChainSignal,
|
|
@@ -96,6 +99,7 @@ async function processBatch(chainId: number): Promise<void> {
|
|
|
96
99
|
|
|
97
100
|
try {
|
|
98
101
|
// Use decoder package's GraphQL resolver
|
|
102
|
+
// @ts-ignore - Declaration files may not be ready during development
|
|
99
103
|
const { fetchMultipleAddresses, getGraphQLEndpoint } = await import(
|
|
100
104
|
'@lukso/transaction-decoder'
|
|
101
105
|
)
|
|
@@ -112,7 +112,7 @@ export function areContextRequirementsCompatible(
|
|
|
112
112
|
* Example usage in actual matching function
|
|
113
113
|
*/
|
|
114
114
|
export function calculateContextAwareScore(
|
|
115
|
-
|
|
115
|
+
transaction: DecoderResult,
|
|
116
116
|
view: any, // Extended ViewDefinition with context
|
|
117
117
|
options: ContextAwareMatchOptions
|
|
118
118
|
): { score: number; matchedCriteria: string[] } {
|