@lukso/transaction-decoder 1.0.1-dev.0f1bea5
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/LICENSE +201 -0
- package/README.md +486 -0
- package/dist/browser.cjs +6912 -0
- package/dist/browser.cjs.map +1 -0
- package/dist/browser.d.cts +6 -0
- package/dist/browser.d.ts +6 -0
- package/dist/browser.js +131 -0
- package/dist/browser.js.map +1 -0
- package/dist/cdn/transaction-decoder.global.js +296 -0
- package/dist/cdn/transaction-decoder.global.js.map +1 -0
- package/dist/chunk-GGBHTWJL.js +437 -0
- package/dist/chunk-GGBHTWJL.js.map +1 -0
- package/dist/chunk-GXZOF3QY.js +839 -0
- package/dist/chunk-GXZOF3QY.js.map +1 -0
- package/dist/chunk-LJ6ES5XF.js +776 -0
- package/dist/chunk-LJ6ES5XF.js.map +1 -0
- package/dist/chunk-XVHJWV5U.js +4925 -0
- package/dist/chunk-XVHJWV5U.js.map +1 -0
- package/dist/data.cjs +5518 -0
- package/dist/data.cjs.map +1 -0
- package/dist/data.d.cts +43 -0
- package/dist/data.d.ts +43 -0
- package/dist/data.js +55 -0
- package/dist/data.js.map +1 -0
- package/dist/index-BzXh7poJ.d.cts +524 -0
- package/dist/index-BzXh7poJ.d.ts +524 -0
- package/dist/index.cjs +6912 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +756 -0
- package/dist/index.d.ts +756 -0
- package/dist/index.js +131 -0
- package/dist/index.js.map +1 -0
- package/dist/server.cjs +5644 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +217 -0
- package/dist/server.d.ts +217 -0
- package/dist/server.js +644 -0
- package/dist/server.js.map +1 -0
- package/dist/utils-CBAkjQh3.d.cts +108 -0
- package/dist/utils-xT9-km0r.d.ts +108 -0
- package/package.json +101 -0
- package/src/browser.ts +13 -0
- package/src/client/resolveAddresses.ts +157 -0
- package/src/core/addressCollector.ts +153 -0
- package/src/core/addressResolver.ts +135 -0
- package/src/core/dataModel.ts +888 -0
- package/src/core/instance.ts +33 -0
- package/src/core/integrateDecoder.ts +325 -0
- package/src/data.ts +70 -0
- package/src/decoder/GENERATOR_PROPOSAL.md +182 -0
- package/src/decoder/THREE_PHASE_EXAMPLE.md +108 -0
- package/src/decoder/aggregation.ts +218 -0
- package/src/decoder/browserCache.ts +237 -0
- package/src/decoder/cache/README.md +126 -0
- package/src/decoder/cache/index.ts +44 -0
- package/src/decoder/cache.ts +139 -0
- package/src/decoder/constants.ts +125 -0
- package/src/decoder/decodeTransaction.ts +292 -0
- package/src/decoder/errors.ts +95 -0
- package/src/decoder/events.ts +192 -0
- package/src/decoder/functionSignature.ts +344 -0
- package/src/decoder/getDataFromExternalSources.ts +248 -0
- package/src/decoder/graphqlWS.ts +22 -0
- package/src/decoder/interfaces.ts +185 -0
- package/src/decoder/keyValue.ts +5 -0
- package/src/decoder/kvCache.ts +241 -0
- package/src/decoder/lruCache.ts +184 -0
- package/src/decoder/lsp7Mint.test.ts +179 -0
- package/src/decoder/lsp7TransferBatch.test.ts +105 -0
- package/src/decoder/plugins/RegistryAbi.ts +562 -0
- package/src/decoder/plugins/enhanceBurntPix.ts +132 -0
- package/src/decoder/plugins/enhanceGraffiti.ts +70 -0
- package/src/decoder/plugins/enhanceLSP0ERC725Account.ts +179 -0
- package/src/decoder/plugins/enhanceLSP26FollowerSystem.ts +88 -0
- package/src/decoder/plugins/enhanceLSP6KeyManager.ts +231 -0
- package/src/decoder/plugins/enhanceLSP7DigitalAsset.ts +165 -0
- package/src/decoder/plugins/enhanceLSP8IdentifiableDigitalAsset.ts +170 -0
- package/src/decoder/plugins/enhanceLSP9Vault.ts +57 -0
- package/src/decoder/plugins/enhanceRetrieveAbi.ts +85 -0
- package/src/decoder/plugins/enhanceSetData.ts +135 -0
- package/src/decoder/plugins/index.ts +99 -0
- package/src/decoder/plugins/schemaDefault.ts +318 -0
- package/src/decoder/plugins/standardPlugin.ts +202 -0
- package/src/decoder/registry.ts +322 -0
- package/src/decoder/singleGQL.ts +293 -0
- package/src/decoder/transaction.ts +198 -0
- package/src/decoder/types.ts +465 -0
- package/src/decoder/utils.ts +212 -0
- package/src/example/usage.ts +172 -0
- package/src/index.ts +174 -0
- package/src/server/addressResolver.ts +68 -0
- package/src/server/caches.ts +209 -0
- package/src/server/decodeTransactionSync.ts +156 -0
- package/src/server/decodeTransactionsBatch.ts +207 -0
- package/src/server/finishDecoding.ts +116 -0
- package/src/server/index.ts +81 -0
- package/src/server/lsp23Resolver.test.ts +46 -0
- package/src/server/lsp23Resolver.ts +419 -0
- package/src/server/types.ts +168 -0
- package/src/server.ts +22 -0
- package/src/shared/addressResolver.ts +651 -0
- package/src/shared/cache.ts +144 -0
- package/src/shared/constants.ts +21 -0
- package/src/stubs/tty.ts +13 -0
- package/src/stubs/util.ts +42 -0
- package/src/types/index.ts +154 -0
- package/src/types/provider.ts +46 -0
- package/src/umd.ts +13 -0
- package/src/utils/debug.ts +49 -0
- package/src/utils/json-bigint.ts +47 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { A as TransactionAddressResolver, T as TransactionDecoderResult, i as consumerModel, l as createAggregationKey, j as createGlobalInstance, a as decodeTransaction, k as decodeTransactionAsync, m as defaultPlugins, n as defaultSchemaPlugins, p as getArgByName, q as needsEnhancement, o as standardPlugin, s as standardSchemaPlugin } from './utils-CBAkjQh3.cjs';
|
|
2
|
+
export { AddressCache, AddressIdentityCache, AddressResolver, AddressResolverConfig, AggregationState, AssetData, DEPLOY_ERC1167_PROXIES_SELECTOR, DecoderIntegration, DecoderIntegrationConfig, HypersyncQueryConfig, ImageData, ImageURL, JSONbigString, LSP23DeploymentData, LSP23_FACTORY_ADDRESS, LinkData, PluginAggregationEngine, PluginMetadata, ProfileData, ResolveAddressesOptions, ResolveAddressesResponse, SchemaPluginMetadata, TFetchAddressData, TokenData, buildLSP23DeploymentQuery, collectDataKeys, createApiAddressResolver, createDebug, createMemoryAddressCache, createMemoryAddressIdentityCache, createNamedPlugin, createNamedSchemaPlugin, dataKeyToString, decodeDeploymentCalldata, decodeDeploymentOutput, extractControllersFromInitCalldata, fetchMultipleAddresses, fetchProfilesByControllers, getAddress, getAllData, getAllKeys, getAllTransactions, getData, getDataKeyCacheKey, getDecodedCount, getDecodedTransactions, getError, getGraphQLEndpoint, getImage, getSignal, getState, getTransaction, getTransactionByKey, getTransactionCount, getTransactionHashByIndex, getTransactionsByIndex, getTransactionsInOrder, hasData, isLoading, parseDataKey, parseLSP23DeploymentsFromHypersync, pluginRegistry, registerPlugin, registerSchemaPlugin, resolveAddresses, standardAggregation, subscribe } from './index.cjs';
|
|
3
|
+
export { d as AddressState, m as Aggregation, c as DataKey, j as DecodeEventCallback, a as DecodeEventResult, n as DecoderPlugin, b as DecoderResult, E as EnhancedInfo, i as EnhancerCallback, g as IDataModelConsumer, P as PluginOptions, p as ResultAggregate, q as ResultCreate, r as ResultError, s as ResultExecute, t as ResultExecuteBatch, u as ResultFollowProfile, v as ResultGrafitti, w as ResultRaw, o as ResultSetData, x as ResultSetDataBatch, y as ResultWrapper, S as SchemaPlugin, T as TransactionState } from './index-BzXh7poJ.cjs';
|
|
4
|
+
import '@preact/signals-core';
|
|
5
|
+
import 'viem';
|
|
6
|
+
import '@erc725/erc725.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { A as TransactionAddressResolver, T as TransactionDecoderResult, i as consumerModel, l as createAggregationKey, j as createGlobalInstance, a as decodeTransaction, k as decodeTransactionAsync, m as defaultPlugins, n as defaultSchemaPlugins, p as getArgByName, q as needsEnhancement, o as standardPlugin, s as standardSchemaPlugin } from './utils-xT9-km0r.js';
|
|
2
|
+
export { AddressCache, AddressIdentityCache, AddressResolver, AddressResolverConfig, AggregationState, AssetData, DEPLOY_ERC1167_PROXIES_SELECTOR, DecoderIntegration, DecoderIntegrationConfig, HypersyncQueryConfig, ImageData, ImageURL, JSONbigString, LSP23DeploymentData, LSP23_FACTORY_ADDRESS, LinkData, PluginAggregationEngine, PluginMetadata, ProfileData, ResolveAddressesOptions, ResolveAddressesResponse, SchemaPluginMetadata, TFetchAddressData, TokenData, buildLSP23DeploymentQuery, collectDataKeys, createApiAddressResolver, createDebug, createMemoryAddressCache, createMemoryAddressIdentityCache, createNamedPlugin, createNamedSchemaPlugin, dataKeyToString, decodeDeploymentCalldata, decodeDeploymentOutput, extractControllersFromInitCalldata, fetchMultipleAddresses, fetchProfilesByControllers, getAddress, getAllData, getAllKeys, getAllTransactions, getData, getDataKeyCacheKey, getDecodedCount, getDecodedTransactions, getError, getGraphQLEndpoint, getImage, getSignal, getState, getTransaction, getTransactionByKey, getTransactionCount, getTransactionHashByIndex, getTransactionsByIndex, getTransactionsInOrder, hasData, isLoading, parseDataKey, parseLSP23DeploymentsFromHypersync, pluginRegistry, registerPlugin, registerSchemaPlugin, resolveAddresses, standardAggregation, subscribe } from './index.js';
|
|
3
|
+
export { d as AddressState, m as Aggregation, c as DataKey, j as DecodeEventCallback, a as DecodeEventResult, n as DecoderPlugin, b as DecoderResult, E as EnhancedInfo, i as EnhancerCallback, g as IDataModelConsumer, P as PluginOptions, p as ResultAggregate, q as ResultCreate, r as ResultError, s as ResultExecute, t as ResultExecuteBatch, u as ResultFollowProfile, v as ResultGrafitti, w as ResultRaw, o as ResultSetData, x as ResultSetDataBatch, y as ResultWrapper, S as SchemaPlugin, T as TransactionState } from './index-BzXh7poJ.js';
|
|
4
|
+
import '@preact/signals-core';
|
|
5
|
+
import 'viem';
|
|
6
|
+
import '@erc725/erc725.js';
|
package/dist/browser.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AddressResolver,
|
|
3
|
+
DEPLOY_ERC1167_PROXIES_SELECTOR,
|
|
4
|
+
DecoderIntegration,
|
|
5
|
+
JSONbigString,
|
|
6
|
+
LSP23_FACTORY_ADDRESS,
|
|
7
|
+
buildLSP23DeploymentQuery,
|
|
8
|
+
createApiAddressResolver,
|
|
9
|
+
createMemoryAddressCache,
|
|
10
|
+
createMemoryAddressIdentityCache,
|
|
11
|
+
dataKeyToString,
|
|
12
|
+
decodeDeploymentCalldata,
|
|
13
|
+
decodeDeploymentOutput,
|
|
14
|
+
extractControllersFromInitCalldata,
|
|
15
|
+
getAddress,
|
|
16
|
+
getAllData,
|
|
17
|
+
getAllKeys,
|
|
18
|
+
getAllTransactions,
|
|
19
|
+
getData,
|
|
20
|
+
getDataKeyCacheKey,
|
|
21
|
+
getDecodedCount,
|
|
22
|
+
getDecodedTransactions,
|
|
23
|
+
getError,
|
|
24
|
+
getSignal,
|
|
25
|
+
getState,
|
|
26
|
+
getTransaction,
|
|
27
|
+
getTransactionByKey,
|
|
28
|
+
getTransactionCount,
|
|
29
|
+
getTransactionHashByIndex,
|
|
30
|
+
getTransactionsByIndex,
|
|
31
|
+
getTransactionsInOrder,
|
|
32
|
+
hasData,
|
|
33
|
+
isLoading,
|
|
34
|
+
parseDataKey,
|
|
35
|
+
parseLSP23DeploymentsFromHypersync,
|
|
36
|
+
resolveAddresses,
|
|
37
|
+
subscribe
|
|
38
|
+
} from "./chunk-LJ6ES5XF.js";
|
|
39
|
+
import {
|
|
40
|
+
consumerModel,
|
|
41
|
+
createGlobalInstance,
|
|
42
|
+
decodeTransaction,
|
|
43
|
+
decodeTransactionAsync
|
|
44
|
+
} from "./chunk-GXZOF3QY.js";
|
|
45
|
+
import {
|
|
46
|
+
fetchMultipleAddresses,
|
|
47
|
+
fetchProfilesByControllers,
|
|
48
|
+
getGraphQLEndpoint,
|
|
49
|
+
getImage
|
|
50
|
+
} from "./chunk-GGBHTWJL.js";
|
|
51
|
+
import {
|
|
52
|
+
PluginAggregationEngine,
|
|
53
|
+
collectDataKeys,
|
|
54
|
+
createAggregationKey,
|
|
55
|
+
createDebug,
|
|
56
|
+
createNamedPlugin,
|
|
57
|
+
createNamedSchemaPlugin,
|
|
58
|
+
defaultPlugins,
|
|
59
|
+
defaultSchemaPlugins,
|
|
60
|
+
getArgByName,
|
|
61
|
+
needsEnhancement,
|
|
62
|
+
pluginRegistry,
|
|
63
|
+
registerPlugin,
|
|
64
|
+
registerSchemaPlugin,
|
|
65
|
+
standardAggregation,
|
|
66
|
+
standardPlugin,
|
|
67
|
+
standardSchemaPlugin
|
|
68
|
+
} from "./chunk-XVHJWV5U.js";
|
|
69
|
+
export {
|
|
70
|
+
AddressResolver,
|
|
71
|
+
DEPLOY_ERC1167_PROXIES_SELECTOR,
|
|
72
|
+
DecoderIntegration,
|
|
73
|
+
JSONbigString,
|
|
74
|
+
LSP23_FACTORY_ADDRESS,
|
|
75
|
+
PluginAggregationEngine,
|
|
76
|
+
buildLSP23DeploymentQuery,
|
|
77
|
+
collectDataKeys,
|
|
78
|
+
consumerModel,
|
|
79
|
+
createAggregationKey,
|
|
80
|
+
createApiAddressResolver,
|
|
81
|
+
createDebug,
|
|
82
|
+
createGlobalInstance,
|
|
83
|
+
createMemoryAddressCache,
|
|
84
|
+
createMemoryAddressIdentityCache,
|
|
85
|
+
createNamedPlugin,
|
|
86
|
+
createNamedSchemaPlugin,
|
|
87
|
+
dataKeyToString,
|
|
88
|
+
decodeDeploymentCalldata,
|
|
89
|
+
decodeDeploymentOutput,
|
|
90
|
+
decodeTransaction,
|
|
91
|
+
decodeTransactionAsync,
|
|
92
|
+
defaultPlugins,
|
|
93
|
+
defaultSchemaPlugins,
|
|
94
|
+
extractControllersFromInitCalldata,
|
|
95
|
+
fetchMultipleAddresses,
|
|
96
|
+
fetchProfilesByControllers,
|
|
97
|
+
getAddress,
|
|
98
|
+
getAllData,
|
|
99
|
+
getAllKeys,
|
|
100
|
+
getAllTransactions,
|
|
101
|
+
getArgByName,
|
|
102
|
+
getData,
|
|
103
|
+
getDataKeyCacheKey,
|
|
104
|
+
getDecodedCount,
|
|
105
|
+
getDecodedTransactions,
|
|
106
|
+
getError,
|
|
107
|
+
getGraphQLEndpoint,
|
|
108
|
+
getImage,
|
|
109
|
+
getSignal,
|
|
110
|
+
getState,
|
|
111
|
+
getTransaction,
|
|
112
|
+
getTransactionByKey,
|
|
113
|
+
getTransactionCount,
|
|
114
|
+
getTransactionHashByIndex,
|
|
115
|
+
getTransactionsByIndex,
|
|
116
|
+
getTransactionsInOrder,
|
|
117
|
+
hasData,
|
|
118
|
+
isLoading,
|
|
119
|
+
needsEnhancement,
|
|
120
|
+
parseDataKey,
|
|
121
|
+
parseLSP23DeploymentsFromHypersync,
|
|
122
|
+
pluginRegistry,
|
|
123
|
+
registerPlugin,
|
|
124
|
+
registerSchemaPlugin,
|
|
125
|
+
resolveAddresses,
|
|
126
|
+
standardAggregation,
|
|
127
|
+
standardPlugin,
|
|
128
|
+
standardSchemaPlugin,
|
|
129
|
+
subscribe
|
|
130
|
+
};
|
|
131
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|