@vleap/warps 3.0.0-alpha.8 → 3.0.0-alpha.81

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/index.d.ts CHANGED
@@ -1,75 +1,33 @@
1
- import { Transaction, TransactionOnNetwork, Address, TokenTransfer as TokenTransfer$1, AbiRegistry, NetworkEntrypoint } from '@multiversx/sdk-core';
2
- import { TypedValue, Type, OptionValue, OptionalValue, List, VariadicValue, CompositeValue, StringValue, U8Value, U16Value, U32Value, U64Value, BigUIntValue, BooleanValue, AddressValue, TokenIdentifierValue, BytesValue, TokenTransfer, Struct, CodeMetadataValue, NothingValue, Transaction as Transaction$1, Address as Address$1 } from '@multiversx/sdk-core/out';
3
1
  import QRCodeStyling from 'qr-code-styling';
4
2
 
5
- declare const CacheTtl: {
6
- OneMinute: number;
7
- OneHour: number;
8
- OneDay: number;
9
- OneWeek: number;
10
- OneMonth: number;
11
- OneYear: number;
3
+ type WarpChainAccount = {
4
+ address: string;
5
+ balance: bigint;
12
6
  };
13
- declare const CacheKey: {
14
- Warp: (id: string) => string;
15
- WarpAbi: (id: string) => string;
16
- LastWarpExecutionInputs: (id: string, action: number) => string;
17
- RegistryInfo: (id: string) => string;
18
- Brand: (hash: string) => string;
19
- ChainInfo: (chain: WarpChain) => string;
20
- ChainInfos: () => string;
7
+ type WarpChainAssetValue = {
8
+ identifier: string;
9
+ nonce: bigint;
10
+ amount: bigint;
11
+ };
12
+ type WarpChainAsset = {
13
+ identifier: string;
14
+ nonce?: bigint;
15
+ name: string;
16
+ amount: bigint;
17
+ decimals?: number;
18
+ logoUrl?: string;
21
19
  };
22
- type CacheType = 'memory' | 'localStorage';
23
- declare class WarpCache {
24
- private strategy;
25
- constructor(type?: CacheType);
26
- private selectStrategy;
27
- set<T>(key: string, value: T, ttl: number): void;
28
- get<T>(key: string): T | null;
29
- forget(key: string): void;
30
- clear(): void;
31
- }
32
-
33
- type WarpChainEnv = 'mainnet' | 'testnet' | 'devnet';
34
- type ProtocolName = 'warp' | 'brand' | 'abi';
35
20
 
36
21
  type WarpChain = string;
37
- type WarpInitConfig = {
38
- env: WarpChainEnv;
39
- clientUrl?: string;
40
- currentUrl?: string;
41
- vars?: Record<string, string | number>;
42
- user?: {
43
- wallet?: string;
44
- };
45
- schema?: {
46
- warp?: string;
47
- brand?: string;
48
- };
49
- cache?: {
50
- ttl?: number;
51
- type?: CacheType;
52
- };
53
- registry?: {
54
- contract?: string;
55
- };
56
- index?: {
57
- url?: string;
58
- apiKey?: string;
59
- searchParamName?: string;
60
- };
61
- };
62
- type WarpCacheConfig = {
63
- ttl?: number;
64
- };
22
+ type WarpExplorerName = string;
65
23
  type WarpChainInfo = {
66
- name: WarpChain;
24
+ name: string;
67
25
  displayName: string;
68
26
  chainId: string;
69
27
  blockTime: number;
70
28
  addressHrp: string;
71
- apiUrl: string;
72
- explorerUrl: string;
29
+ defaultApiUrl: string;
30
+ nativeToken: string;
73
31
  };
74
32
  type WarpIdType = 'hash' | 'alias';
75
33
  type WarpVarPlaceholder = string;
@@ -91,11 +49,13 @@ type Warp = {
91
49
  meta?: WarpMeta;
92
50
  };
93
51
  type WarpMeta = {
52
+ chain: WarpChain;
94
53
  hash: string;
95
54
  creator: string;
96
55
  createdAt: string;
97
56
  };
98
57
  type WarpAction = WarpTransferAction | WarpContractAction | WarpQueryAction | WarpCollectAction | WarpLinkAction;
58
+ type WarpActionIndex = number;
99
59
  type WarpActionType = 'transfer' | 'contract' | 'query' | 'collect' | 'link';
100
60
  type WarpTransferAction = {
101
61
  type: WarpActionType;
@@ -105,7 +65,7 @@ type WarpTransferAction = {
105
65
  address?: string;
106
66
  data?: string;
107
67
  value?: string;
108
- transfers?: WarpContractActionTransfer[];
68
+ transfers?: string[];
109
69
  inputs?: WarpActionInput[];
110
70
  next?: string;
111
71
  };
@@ -114,29 +74,24 @@ type WarpContractAction = {
114
74
  chain?: WarpChain;
115
75
  label: string;
116
76
  description?: string | null;
117
- address: string;
118
- func: string | null;
119
- args: string[];
77
+ address?: string;
78
+ func?: string | null;
79
+ args?: string[];
120
80
  value?: string;
121
81
  gasLimit: number;
122
- transfers?: WarpContractActionTransfer[];
82
+ transfers?: string[];
123
83
  abi?: string;
124
84
  inputs?: WarpActionInput[];
125
85
  next?: string;
126
86
  };
127
- type WarpContractActionTransfer = {
128
- token: string;
129
- nonce?: number;
130
- amount?: string;
131
- };
132
87
  type WarpQueryAction = {
133
88
  type: WarpActionType;
134
89
  chain?: WarpChain;
135
90
  label: string;
136
91
  description?: string | null;
137
- address: string;
138
- func: string;
139
- args: string[];
92
+ address?: string;
93
+ func?: string;
94
+ args?: string[];
140
95
  abi?: string;
141
96
  inputs?: WarpActionInput[];
142
97
  next?: string;
@@ -163,9 +118,10 @@ type WarpLinkAction = {
163
118
  inputs?: WarpActionInput[];
164
119
  };
165
120
  type WarpActionInputSource = 'field' | 'query' | 'user:wallet';
166
- type BaseWarpActionInputType = 'string' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'biguint' | 'bool' | 'address' | 'token' | 'codemeta' | 'hex' | 'esdt' | 'nft';
121
+ type BaseWarpActionInputType = 'string' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'biguint' | 'bool' | 'address' | 'hex' | string;
167
122
  type WarpActionInputType = string;
168
- type WarpActionInputPosition = 'receiver' | 'value' | 'transfer' | `arg:${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | 'data';
123
+ type WarpNativeValue = string | number | bigint | boolean | WarpChainAssetValue | null | WarpNativeValue[];
124
+ type WarpActionInputPosition = 'receiver' | 'value' | 'transfer' | `arg:${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | 'data' | 'chain';
169
125
  type WarpActionInputModifier = 'scale';
170
126
  type WarpActionInput = {
171
127
  name: string;
@@ -184,6 +140,7 @@ type WarpActionInput = {
184
140
  [key: string]: string;
185
141
  };
186
142
  modifier?: string;
143
+ default?: string | number | boolean;
187
144
  };
188
145
  type ResolvedInput = {
189
146
  input: WarpActionInput;
@@ -198,8 +155,19 @@ type WarpContractVerification = {
198
155
  codeHash: string;
199
156
  abi: object;
200
157
  };
158
+ type WarpExecutable = {
159
+ chain: WarpChainInfo;
160
+ warp: Warp;
161
+ action: number;
162
+ destination: string;
163
+ args: string[];
164
+ value: bigint;
165
+ transfers: string[];
166
+ data: string | null;
167
+ resolvedInputs: ResolvedInput[];
168
+ };
201
169
 
202
- type WarpWarpAbi = {
170
+ type WarpAbi = {
203
171
  protocol: string;
204
172
  content: WarpAbiContents;
205
173
  meta?: WarpMeta;
@@ -213,35 +181,44 @@ type WarpAbiContents = {
213
181
  events?: any[];
214
182
  };
215
183
 
216
- type Brand = {
184
+ type WarpBrand = {
217
185
  protocol: string;
218
186
  name: string;
219
187
  description: string;
220
188
  logo: string;
221
- urls?: BrandUrls;
222
- colors?: BrandColors;
223
- cta?: BrandCta;
224
- meta?: BrandMeta;
189
+ urls?: WarpBrandUrls;
190
+ colors?: WarpBrandColors;
191
+ cta?: WarpBrandCta;
192
+ meta?: WarpBrandMeta;
225
193
  };
226
- type BrandUrls = {
194
+ type WarpBrandUrls = {
227
195
  web?: string;
228
196
  };
229
- type BrandColors = {
197
+ type WarpBrandColors = {
230
198
  primary?: string;
231
199
  secondary?: string;
232
200
  };
233
- type BrandCta = {
201
+ type WarpBrandCta = {
234
202
  title: string;
235
203
  description: string;
236
204
  label: string;
237
205
  url: string;
238
206
  };
239
- type BrandMeta = {
207
+ type WarpBrandMeta = {
240
208
  hash: string;
241
209
  creator: string;
242
210
  createdAt: string;
243
211
  };
244
212
 
213
+ type ClientCacheConfig = {
214
+ ttl?: number;
215
+ type?: WarpCacheType;
216
+ };
217
+ type WarpCacheType = 'memory' | 'localStorage';
218
+
219
+ type WarpChainEnv = 'mainnet' | 'testnet' | 'devnet';
220
+ type ProtocolName = 'warp' | 'brand' | 'abi';
221
+
245
222
  type WarpTrustStatus = 'unverified' | 'verified' | 'blacklisted';
246
223
  type WarpRegistryInfo = {
247
224
  hash: string;
@@ -276,6 +253,11 @@ type WarpExecutionNextInfo = {
276
253
  type WarpExecutionResults = Record<WarpResultName, any | null>;
277
254
  type WarpExecutionMessages = Record<WarpMessageName, string | null>;
278
255
 
256
+ type ClientIndexConfig = {
257
+ url?: string;
258
+ apiKey?: string;
259
+ searchParamName?: string;
260
+ };
279
261
  type WarpSearchResult = {
280
262
  hits: WarpSearchHit[];
281
263
  };
@@ -291,71 +273,160 @@ type WarpSearchHit = {
291
273
  featured: boolean;
292
274
  };
293
275
 
294
- declare class BrandBuilder {
295
- private config;
296
- private pendingBrand;
297
- constructor(config: WarpInitConfig);
298
- createInscriptionTransaction(brand: Brand): Transaction;
299
- createFromRaw(encoded: string, validateSchema?: boolean): Promise<Brand>;
300
- createFromTransaction(tx: TransactionOnNetwork, validateSchema?: boolean): Promise<Brand>;
301
- createFromTransactionHash(hash: string): Promise<Brand | null>;
302
- setName(name: string): BrandBuilder;
303
- setDescription(description: string): BrandBuilder;
304
- setLogo(logo: string): BrandBuilder;
305
- setUrls(urls: BrandUrls): BrandBuilder;
306
- setColors(colors: BrandColors): BrandBuilder;
307
- setCta(cta: BrandCta): BrandBuilder;
308
- build(): Promise<Brand>;
309
- private ensure;
310
- private ensureValidSchema;
276
+ interface TransformRunner {
277
+ run(code: string, context: any): Promise<any>;
311
278
  }
312
-
313
- declare const WarpProtocolVersions: {
314
- Warp: string;
315
- Brand: string;
316
- Abi: string;
279
+ type ClientTransformConfig = {
280
+ runner?: TransformRunner | null;
317
281
  };
318
- declare const WarpConfig: {
319
- LatestWarpSchemaUrl: string;
320
- LatestBrandSchemaUrl: string;
321
- DefaultClientUrl: (env: WarpChainEnv) => "https://usewarp.to" | "https://testnet.usewarp.to" | "https://devnet.usewarp.to";
322
- SuperClientUrls: string[];
323
- MainChain: {
324
- Name: string;
325
- DisplayName: string;
326
- ApiUrl: (env: WarpChainEnv) => "https://devnet-api.multiversx.com" | "https://testnet-api.multiversx.com" | "https://api.multiversx.com";
327
- ExplorerUrl: (env: WarpChainEnv) => "https://devnet-explorer.multiversx.com" | "https://testnet-explorer.multiversx.com" | "https://explorer.multiversx.com";
328
- BlockTime: (env: WarpChainEnv) => number;
329
- AddressHrp: string;
330
- ChainId: (env: WarpChainEnv) => "D" | "T" | "1";
282
+
283
+ type WarpUserWallets = Record<WarpChain, string | null>;
284
+ type WarpProviderConfig = Record<WarpChainEnv, string>;
285
+ type WarpClientConfig = {
286
+ env: WarpChainEnv;
287
+ clientUrl?: string;
288
+ currentUrl?: string;
289
+ vars?: Record<string, string | number>;
290
+ user?: {
291
+ wallets?: WarpUserWallets;
331
292
  };
332
- Registry: {
333
- Contract: (env: WarpChainEnv) => "erd1qqqqqqqqqqqqqpgqje2f99vr6r7sk54thg03c9suzcvwr4nfl3tsfkdl36" | "####" | "erd1qqqqqqqqqqqqqpgq3mrpj3u6q7tejv6d7eqhnyd27n9v5c5tl3ts08mffe";
293
+ preferences?: {
294
+ explorers?: Record<WarpChain, WarpExplorerName>;
334
295
  };
335
- AvailableActionInputSources: WarpActionInputSource[];
336
- AvailableActionInputTypes: WarpActionInputType[];
337
- AvailableActionInputPositions: WarpActionInputPosition[];
296
+ providers?: Record<WarpChain, WarpProviderConfig>;
297
+ schema?: {
298
+ warp?: string;
299
+ brand?: string;
300
+ };
301
+ cache?: ClientCacheConfig;
302
+ transform?: ClientTransformConfig;
303
+ index?: ClientIndexConfig;
338
304
  };
339
-
340
- type InterpolationBag = {
341
- config: WarpInitConfig;
342
- chain: WarpChainInfo;
305
+ type WarpCacheConfig = {
306
+ ttl?: number;
343
307
  };
344
- declare class WarpInterpolator {
345
- static apply(config: WarpInitConfig, warp: Warp): Promise<Warp>;
346
- static applyGlobals(config: WarpInitConfig, warp: Warp): Promise<Warp>;
347
- static applyVars(config: WarpInitConfig, warp: Warp): Warp;
348
- private static applyRootGlobals;
349
- private static applyActionGlobals;
308
+ type AdapterFactory = (config: WarpClientConfig, fallback?: Adapter) => Adapter;
309
+ type Adapter = {
310
+ chainInfo: WarpChainInfo;
311
+ prefix: string;
312
+ builder: () => CombinedWarpBuilder;
313
+ executor: AdapterWarpExecutor;
314
+ results: AdapterWarpResults;
315
+ serializer: AdapterWarpSerializer;
316
+ registry: AdapterWarpRegistry;
317
+ explorer: AdapterWarpExplorer;
318
+ abiBuilder: () => AdapterWarpAbiBuilder;
319
+ brandBuilder: () => AdapterWarpBrandBuilder;
320
+ dataLoader: AdapterWarpDataLoader;
321
+ registerTypes?: (typeRegistry: WarpTypeRegistry) => void;
322
+ };
323
+ type WarpAdapterGenericTransaction = any;
324
+ type WarpAdapterGenericRemoteTransaction = any;
325
+ type WarpAdapterGenericValue = any;
326
+ type WarpAdapterGenericType = any;
327
+ interface WarpTypeHandler {
328
+ stringToNative(value: string): any;
329
+ nativeToString(value: any): string;
330
+ }
331
+ interface WarpTypeRegistry {
332
+ registerType(typeName: string, handler: WarpTypeHandler): void;
333
+ hasType(typeName: string): boolean;
334
+ getHandler(typeName: string): WarpTypeHandler | undefined;
335
+ getRegisteredTypes(): string[];
336
+ }
337
+ interface BaseWarpBuilder {
338
+ createFromRaw(encoded: string): Promise<Warp>;
339
+ createFromUrl(url: string): Promise<Warp>;
340
+ setName(name: string): BaseWarpBuilder;
341
+ setTitle(title: string): BaseWarpBuilder;
342
+ setDescription(description: string): BaseWarpBuilder;
343
+ setPreview(preview: string): BaseWarpBuilder;
344
+ setActions(actions: WarpAction[]): BaseWarpBuilder;
345
+ addAction(action: WarpAction): BaseWarpBuilder;
346
+ build(): Promise<Warp>;
347
+ }
348
+ interface AdapterWarpBuilder {
349
+ createInscriptionTransaction(warp: Warp): WarpAdapterGenericTransaction;
350
+ createFromTransaction(tx: WarpAdapterGenericTransaction, validate?: boolean): Promise<Warp>;
351
+ createFromTransactionHash(hash: string, cache?: WarpCacheConfig): Promise<Warp | null>;
352
+ }
353
+ type CombinedWarpBuilder = AdapterWarpBuilder & BaseWarpBuilder;
354
+ interface AdapterWarpAbiBuilder {
355
+ createFromRaw(encoded: string): Promise<any>;
356
+ createFromTransaction(tx: WarpAdapterGenericTransaction): Promise<any>;
357
+ createFromTransactionHash(hash: string, cache?: WarpCacheConfig): Promise<any | null>;
358
+ }
359
+ interface AdapterWarpBrandBuilder {
360
+ createInscriptionTransaction(brand: WarpBrand): WarpAdapterGenericTransaction;
361
+ createFromTransaction(tx: WarpAdapterGenericTransaction, validate?: boolean): Promise<WarpBrand>;
362
+ createFromTransactionHash(hash: string, cache?: WarpCacheConfig): Promise<WarpBrand | null>;
363
+ }
364
+ interface AdapterWarpExecutor {
365
+ createTransaction(executable: WarpExecutable): Promise<WarpAdapterGenericTransaction>;
366
+ preprocessInput(chain: WarpChainInfo, input: string, type: WarpActionInputType, value: string): Promise<string>;
367
+ signMessage(message: string, privateKey: string): Promise<string>;
368
+ }
369
+ interface AdapterWarpResults {
370
+ getTransactionExecutionResults(warp: Warp, tx: WarpAdapterGenericRemoteTransaction): Promise<WarpExecution>;
371
+ }
372
+ interface AdapterWarpSerializer {
373
+ typedToString(value: WarpAdapterGenericValue): string;
374
+ typedToNative(value: WarpAdapterGenericValue): [WarpActionInputType, WarpNativeValue];
375
+ nativeToTyped(type: WarpActionInputType, value: WarpNativeValue): WarpAdapterGenericValue;
376
+ nativeToType(type: BaseWarpActionInputType): WarpAdapterGenericType;
377
+ stringToTyped(value: string): WarpAdapterGenericValue;
378
+ }
379
+ interface AdapterWarpRegistry {
380
+ init(): Promise<void>;
381
+ getRegistryConfig(): WarpRegistryConfigInfo;
382
+ createWarpRegisterTransaction(txHash: string, alias?: string | null, brand?: string | null): Promise<WarpAdapterGenericTransaction>;
383
+ createWarpUnregisterTransaction(txHash: string): Promise<WarpAdapterGenericTransaction>;
384
+ createWarpUpgradeTransaction(alias: string, txHash: string): Promise<WarpAdapterGenericTransaction>;
385
+ createWarpAliasSetTransaction(txHash: string, alias: string): Promise<WarpAdapterGenericTransaction>;
386
+ createWarpVerifyTransaction(txHash: string): Promise<WarpAdapterGenericTransaction>;
387
+ createWarpTransferOwnershipTransaction(txHash: string, newOwner: string): Promise<WarpAdapterGenericTransaction>;
388
+ createBrandRegisterTransaction(txHash: string): Promise<WarpAdapterGenericTransaction>;
389
+ createWarpBrandingTransaction(warpHash: string, brandHash: string): Promise<WarpAdapterGenericTransaction>;
390
+ getInfoByAlias(alias: string, cache?: WarpCacheConfig): Promise<{
391
+ registryInfo: WarpRegistryInfo | null;
392
+ brand: WarpBrand | null;
393
+ }>;
394
+ getInfoByHash(hash: string, cache?: WarpCacheConfig): Promise<{
395
+ registryInfo: WarpRegistryInfo | null;
396
+ brand: WarpBrand | null;
397
+ }>;
398
+ getUserWarpRegistryInfos(user?: string): Promise<WarpRegistryInfo[]>;
399
+ getUserBrands(user?: string): Promise<WarpBrand[]>;
400
+ fetchBrand(hash: string, cache?: WarpCacheConfig): Promise<WarpBrand | null>;
401
+ }
402
+ interface AdapterWarpExplorer {
403
+ getAccountUrl(address: string): string;
404
+ getTransactionUrl(hash: string): string;
405
+ getAssetUrl(identifier: string): string;
406
+ getContractUrl(address: string): string;
407
+ }
408
+ interface AdapterWarpDataLoader {
409
+ getAccount(address: string): Promise<WarpChainAccount>;
410
+ getAccountAssets(address: string): Promise<WarpChainAsset[]>;
350
411
  }
351
412
 
413
+ declare enum WarpChainName {
414
+ Multiversx = "multiversx",
415
+ Vibechain = "vibechain",
416
+ Sui = "sui",
417
+ Ethereum = "ethereum",
418
+ Base = "base",
419
+ Arbitrum = "arbitrum"
420
+ }
352
421
  declare const WarpConstants: {
353
422
  HttpProtocolPrefix: string;
354
423
  IdentifierParamName: string;
355
- IdentifierParamSeparator: string;
424
+ IdentifierParamSeparator: string[];
425
+ IdentifierParamSeparatorDefault: string;
426
+ IdentifierChainDefault: string;
356
427
  IdentifierType: {
357
- Alias: string;
358
- Hash: string;
428
+ Alias: WarpIdType;
429
+ Hash: WarpIdType;
359
430
  };
360
431
  Source: {
361
432
  UserWallet: string;
@@ -363,13 +434,13 @@ declare const WarpConstants: {
363
434
  Globals: {
364
435
  UserWallet: {
365
436
  Placeholder: string;
366
- Accessor: (bag: InterpolationBag) => string | undefined;
437
+ Accessor: (bag: InterpolationBag) => string | null | undefined;
367
438
  };
368
439
  ChainApiUrl: {
369
440
  Placeholder: string;
370
441
  Accessor: (bag: InterpolationBag) => string;
371
442
  };
372
- ChainExplorerUrl: {
443
+ ChainAddressHrp: {
373
444
  Placeholder: string;
374
445
  Accessor: (bag: InterpolationBag) => string;
375
446
  };
@@ -383,103 +454,203 @@ declare const WarpConstants: {
383
454
  Transform: {
384
455
  Prefix: string;
385
456
  };
386
- Egld: {
387
- Identifier: string;
388
- EsdtIdentifier: string;
389
- DisplayName: string;
390
- Decimals: number;
391
- };
457
+ };
458
+ declare const WarpInputTypes: {
459
+ Option: string;
460
+ Optional: string;
461
+ List: string;
462
+ Variadic: string;
463
+ Composite: string;
464
+ String: string;
465
+ U8: string;
466
+ U16: string;
467
+ U32: string;
468
+ U64: string;
469
+ Biguint: string;
470
+ Boolean: string;
471
+ Address: string;
472
+ Asset: string;
473
+ Hex: string;
474
+ };
475
+
476
+ type InterpolationBag = {
477
+ config: WarpClientConfig;
478
+ chain: WarpChainName;
479
+ chainInfo: WarpChainInfo;
480
+ };
481
+
482
+ declare const WarpProtocolVersions: {
483
+ Warp: string;
484
+ Brand: string;
485
+ Abi: string;
486
+ };
487
+ declare const WarpConfig: {
488
+ LatestWarpSchemaUrl: string;
489
+ LatestBrandSchemaUrl: string;
490
+ DefaultClientUrl: (env: WarpChainEnv) => "https://usewarp.to" | "https://testnet.usewarp.to" | "https://devnet.usewarp.to";
491
+ DefaultChainPrefix: string;
492
+ SuperClientUrls: string[];
493
+ AvailableActionInputSources: WarpActionInputSource[];
494
+ AvailableActionInputTypes: WarpActionInputType[];
495
+ AvailableActionInputPositions: WarpActionInputPosition[];
392
496
  };
393
497
 
394
- declare const getMainChainInfo: (config: WarpInitConfig) => WarpChainInfo;
395
- declare const getChainExplorerUrl: (chain: WarpChainInfo, path?: string) => string;
498
+ interface CryptoProvider {
499
+ getRandomBytes(size: number): Promise<Uint8Array>;
500
+ }
501
+ declare class BrowserCryptoProvider implements CryptoProvider {
502
+ getRandomBytes(size: number): Promise<Uint8Array>;
503
+ }
504
+ declare class NodeCryptoProvider implements CryptoProvider {
505
+ getRandomBytes(size: number): Promise<Uint8Array>;
506
+ }
507
+ declare function getCryptoProvider(): CryptoProvider;
508
+ declare function setCryptoProvider(provider: CryptoProvider): void;
509
+ declare function getRandomBytes(size: number, cryptoProvider?: CryptoProvider): Promise<Uint8Array>;
510
+ declare function bytesToHex(bytes: Uint8Array): string;
511
+ declare function bytesToBase64(bytes: Uint8Array): string;
512
+ declare function getRandomHex(length: number, cryptoProvider?: CryptoProvider): Promise<string>;
513
+ declare function testCryptoAvailability(): Promise<{
514
+ randomBytes: boolean;
515
+ environment: 'browser' | 'nodejs' | 'unknown';
516
+ }>;
517
+ declare function createCryptoProvider(): CryptoProvider;
518
+
519
+ declare const findWarpAdapterForChain: (chain: WarpChain, adapters: Adapter[]) => Adapter;
520
+ declare const findWarpAdapterByPrefix: (prefix: string, adapters: Adapter[]) => Adapter;
396
521
  declare const getLatestProtocolIdentifier: (name: ProtocolName) => string;
397
522
  declare const getWarpActionByIndex: (warp: Warp, index: number) => WarpAction;
398
- declare const toTypedChainInfo: (chainInfo: any) => WarpChainInfo;
399
- declare const shiftBigintBy: (value: bigint | string, decimals: number) => bigint;
523
+ declare const findWarpExecutableAction: (warp: Warp) => {
524
+ action: WarpAction;
525
+ actionIndex: WarpActionIndex;
526
+ };
527
+ declare const shiftBigintBy: (value: bigint | string | number, decimals: number) => bigint;
400
528
  declare const toPreviewText: (text: string, maxChars?: number) => string;
401
529
  declare const replacePlaceholders: (message: string, bag: Record<string, any>) => string;
530
+ declare const applyResultsToMessages: (warp: Warp, results: Record<string, any>) => Record<string, string>;
402
531
 
403
- declare const option: (value: TypedValue | null, type?: Type) => OptionValue;
404
- declare const optional: (value: TypedValue | null, type?: Type) => OptionalValue;
405
- declare const list: (values: TypedValue[]) => List;
406
- declare const variadic: (values: TypedValue[]) => VariadicValue;
407
- declare const composite: (values: TypedValue[]) => CompositeValue;
408
- declare const string: (value: string) => StringValue;
409
- declare const u8: (value: number) => U8Value;
410
- declare const u16: (value: number) => U16Value;
411
- declare const u32: (value: number) => U32Value;
412
- declare const u64: (value: bigint) => U64Value;
413
- declare const biguint: (value: bigint | string | number) => BigUIntValue;
414
- declare const boolean: (value: boolean) => BooleanValue;
415
- declare const address: (value: string) => AddressValue;
416
- declare const token: (value: string) => TokenIdentifierValue;
417
- declare const hex: (value: string) => BytesValue;
418
- declare const esdt: (value: TokenTransfer) => Struct;
419
- declare const codemeta: (hexString: string) => CodeMetadataValue;
420
- declare const nothing: () => NothingValue;
421
-
422
- declare class WarpAbiBuilder {
423
- private config;
424
- private cache;
425
- constructor(config: WarpInitConfig);
426
- createInscriptionTransaction(abi: WarpAbiContents): Transaction;
427
- createFromRaw(encoded: string): Promise<WarpWarpAbi>;
428
- createFromTransaction(tx: TransactionOnNetwork): Promise<WarpWarpAbi>;
429
- createFromTransactionHash(hash: string, cache?: WarpCacheConfig): Promise<WarpWarpAbi | null>;
532
+ declare const getWarpInfoFromIdentifier: (prefixedIdentifier: string) => {
533
+ chainPrefix: string;
534
+ type: WarpIdType;
535
+ identifier: string;
536
+ identifierBase: string;
537
+ } | null;
538
+ declare const extractIdentifierInfoFromUrl: (url: string) => {
539
+ chainPrefix: string;
540
+ type: WarpIdType;
541
+ identifier: string;
542
+ identifierBase: string;
543
+ } | null;
544
+
545
+ declare const getNextInfo: (config: WarpClientConfig, adapters: Adapter[], warp: Warp, actionIndex: number, results: WarpExecutionResults) => WarpExecutionNextInfo | null;
546
+
547
+ declare const getProviderUrl: (config: WarpClientConfig, chain: WarpChain, env: WarpChainEnv, defaultProvider: string) => string;
548
+ declare const getProviderConfig: (config: WarpClientConfig, chain: WarpChain) => WarpProviderConfig | undefined;
549
+
550
+ declare const extractCollectResults: (warp: Warp, response: any, actionIndex: number, inputs: ResolvedInput[], transformRunner?: TransformRunner | null) => Promise<{
551
+ values: any[];
552
+ results: WarpExecutionResults;
553
+ }>;
554
+ declare const evaluateResultsCommon: (warp: Warp, baseResults: WarpExecutionResults, actionIndex: number, inputs: ResolvedInput[], transformRunner?: TransformRunner | null) => Promise<WarpExecutionResults>;
555
+ /**
556
+ * Parses out[N] notation and returns the action index (1-based) or null if invalid.
557
+ * Also handles plain "out" which defaults to action index 1.
558
+ */
559
+ declare const parseResultsOutIndex: (resultPath: string) => number | null;
560
+
561
+ /**
562
+ * Signing utilities for creating and validating signed messages
563
+ * Works with any crypto provider or uses automatic detection
564
+ */
565
+
566
+ interface SignableMessage {
567
+ wallet: string;
568
+ nonce: string;
569
+ expiresAt: string;
570
+ purpose: string;
430
571
  }
572
+ type HttpAuthHeaders = Record<string, string> & {
573
+ 'X-Signer-Wallet': string;
574
+ 'X-Signer-Signature': string;
575
+ 'X-Signer-Nonce': string;
576
+ 'X-Signer-ExpiresAt': string;
577
+ };
578
+ /**
579
+ * Creates a signable message with standard security fields
580
+ * This can be used for any type of proof or authentication
581
+ */
582
+ declare function createSignableMessage(walletAddress: string, purpose: string, cryptoProvider?: CryptoProvider, expiresInMinutes?: number): Promise<{
583
+ message: string;
584
+ nonce: string;
585
+ expiresAt: string;
586
+ }>;
587
+ /**
588
+ * Creates a signable message for HTTP authentication
589
+ * This is a convenience function that uses the standard format
590
+ */
591
+ declare function createAuthMessage(walletAddress: string, appName: string, cryptoProvider?: CryptoProvider, purpose?: string): Promise<{
592
+ message: string;
593
+ nonce: string;
594
+ expiresAt: string;
595
+ }>;
596
+ /**
597
+ * Creates HTTP authentication headers from a signature
598
+ */
599
+ declare function createAuthHeaders(walletAddress: string, signature: string, nonce: string, expiresAt: string): HttpAuthHeaders;
600
+ /**
601
+ * Creates HTTP authentication headers for a wallet using the provided signing function
602
+ */
603
+ declare function createHttpAuthHeaders(walletAddress: string, signMessage: (message: string) => Promise<string>, appName: string, cryptoProvider?: CryptoProvider): Promise<HttpAuthHeaders>;
604
+ /**
605
+ * Validates a signed message by checking expiration
606
+ */
607
+ declare function validateSignedMessage(expiresAt: string): boolean;
608
+ /**
609
+ * Parses a signed message to extract its components
610
+ */
611
+ declare function parseSignedMessage(message: string): SignableMessage;
431
612
 
432
- type TxComponents = {
433
- destination: Address;
434
- args: string[];
435
- value: bigint;
436
- transfers: TokenTransfer$1[];
437
- data: Buffer | null;
438
- resolvedInputs: ResolvedInput[];
613
+ type KnownToken = {
614
+ id: string;
615
+ name: string;
616
+ decimals: number;
439
617
  };
440
- declare class WarpActionExecutor {
441
- private config;
442
- private url;
443
- private serializer;
444
- private contractLoader;
445
- private cache;
446
- constructor(config: WarpInitConfig);
447
- createTransactionForExecute(warp: Warp, actionIndex: number, inputs: string[]): Promise<Transaction>;
448
- getTransactionExecutionResults(warp: Warp, actionIndex: number, tx: TransactionOnNetwork): Promise<WarpExecution>;
449
- executeQuery(warp: Warp, actionIndex: number, inputs: string[]): Promise<WarpExecution>;
450
- executeCollect(warp: Warp, actionIndex: number, inputs: string[], meta?: Record<string, any>): Promise<WarpExecution>;
451
- getTxComponentsFromInputs(chain: WarpChainInfo, action: WarpTransferAction | WarpContractAction | WarpQueryAction, inputs: string[], sender?: Address): Promise<TxComponents>;
452
- getResolvedInputs(chain: WarpChainInfo, action: WarpAction, inputArgs: string[]): Promise<ResolvedInput[]>;
453
- getModifiedInputs(inputs: ResolvedInput[]): ResolvedInput[];
454
- preprocessInput(chain: WarpChainInfo, input: string): Promise<string>;
455
- getAbiForAction(action: WarpContractAction | WarpQueryAction): Promise<AbiRegistry>;
456
- private getPreparedArgs;
457
- private getPreparedMessages;
458
- private fetchAbi;
459
- private toTypedTransfer;
460
- }
618
+ declare const KnownTokens: KnownToken[];
619
+ declare const findKnownTokenById: (id: string) => KnownToken | null;
461
620
 
462
- type WarpNativeValue = string | number | bigint | boolean | null | TokenTransfer | WarpNativeValue[];
463
- declare class WarpArgSerializer {
464
- nativeToString(type: WarpActionInputType, value: WarpNativeValue): string;
465
- typedToString(value: TypedValue): string;
466
- typedToNative(value: TypedValue): [WarpActionInputType, WarpNativeValue];
467
- nativeToTyped(type: WarpActionInputType, value: WarpNativeValue): TypedValue;
468
- nativeToType(type: BaseWarpActionInputType): Type;
469
- stringToNative(value: string): [WarpActionInputType, WarpNativeValue];
470
- stringToTyped(value: string): TypedValue;
471
- typeToString(type: Type): WarpActionInputType;
472
- }
621
+ declare const string: (value: string) => string;
622
+ declare const u8: (value: number) => string;
623
+ declare const u16: (value: number) => string;
624
+ declare const u32: (value: number) => string;
625
+ declare const u64: (value: bigint | number) => string;
626
+ declare const biguint: (value: bigint | string | number) => string;
627
+ declare const boolean: (value: boolean) => string;
628
+ declare const address: (value: string) => string;
629
+ declare const asset: (value: WarpChainAsset) => string;
630
+ declare const hex: (value: string) => string;
473
631
 
474
- declare class WarpBuilder {
632
+ declare class WarpBrandBuilder {
475
633
  private config;
476
- private cache;
634
+ private pendingBrand;
635
+ constructor(config: WarpClientConfig);
636
+ createFromRaw(encoded: string, validateSchema?: boolean): Promise<WarpBrand>;
637
+ setName(name: string): WarpBrandBuilder;
638
+ setDescription(description: string): WarpBrandBuilder;
639
+ setLogo(logo: string): WarpBrandBuilder;
640
+ setUrls(urls: WarpBrandUrls): WarpBrandBuilder;
641
+ setColors(colors: WarpBrandColors): WarpBrandBuilder;
642
+ setCta(cta: WarpBrandCta): WarpBrandBuilder;
643
+ build(): Promise<WarpBrand>;
644
+ private ensure;
645
+ private ensureValidSchema;
646
+ }
647
+
648
+ declare class WarpBuilder implements BaseWarpBuilder {
649
+ protected readonly config: WarpClientConfig;
477
650
  private pendingWarp;
478
- constructor(config: WarpInitConfig);
479
- createInscriptionTransaction(warp: Warp): Transaction;
651
+ constructor(config: WarpClientConfig);
480
652
  createFromRaw(encoded: string, validate?: boolean): Promise<Warp>;
481
- createFromTransaction(tx: TransactionOnNetwork, validate?: boolean): Promise<Warp>;
482
- createFromTransactionHash(hash: string, cache?: WarpCacheConfig): Promise<Warp | null>;
653
+ createFromUrl(url: string): Promise<Warp>;
483
654
  setName(name: string): WarpBuilder;
484
655
  setTitle(title: string): WarpBuilder;
485
656
  setDescription(description: string): WarpBuilder;
@@ -492,25 +663,95 @@ declare class WarpBuilder {
492
663
  private validate;
493
664
  }
494
665
 
495
- declare class WarpContractLoader {
496
- private readonly config;
497
- constructor(config: WarpInitConfig);
498
- getContract(address: string, chain: WarpChainInfo): Promise<WarpContract | null>;
499
- getVerificationInfo(address: string, chain: WarpChainInfo): Promise<WarpContractVerification | null>;
666
+ declare const CacheTtl: {
667
+ OneMinute: number;
668
+ OneHour: number;
669
+ OneDay: number;
670
+ OneWeek: number;
671
+ OneMonth: number;
672
+ OneYear: number;
673
+ };
674
+ declare const WarpCacheKey: {
675
+ Warp: (env: WarpChainEnv, id: string) => string;
676
+ WarpAbi: (env: WarpChainEnv, id: string) => string;
677
+ WarpExecutable: (env: WarpChainEnv, id: string, action: number) => string;
678
+ RegistryInfo: (env: WarpChainEnv, id: string) => string;
679
+ Brand: (env: WarpChainEnv, hash: string) => string;
680
+ };
681
+ declare class WarpCache {
682
+ private strategy;
683
+ constructor(type?: WarpCacheType);
684
+ private selectStrategy;
685
+ set<T>(key: string, value: T, ttl: number): void;
686
+ get<T>(key: string): T | null;
687
+ forget(key: string): void;
688
+ clear(): void;
689
+ }
690
+
691
+ type ExecutionHandlers = {
692
+ onExecuted?: (result: WarpExecution) => void;
693
+ onError?: (params: {
694
+ message: string;
695
+ }) => void;
696
+ onSignRequest?: (params: {
697
+ message: string;
698
+ chain: WarpChainInfo;
699
+ }) => Promise<string>;
700
+ };
701
+ declare class WarpExecutor {
702
+ private config;
703
+ private adapters;
704
+ private handlers?;
705
+ private factory;
706
+ private serializer;
707
+ constructor(config: WarpClientConfig, adapters: Adapter[], handlers?: ExecutionHandlers | undefined);
708
+ execute(warp: Warp, inputs: string[]): Promise<{
709
+ tx: WarpAdapterGenericTransaction | null;
710
+ chain: WarpChainInfo | null;
711
+ }>;
712
+ evaluateResults(warp: Warp, chain: WarpChain, tx: WarpAdapterGenericRemoteTransaction): Promise<void>;
713
+ private executeCollect;
714
+ }
715
+
716
+ declare class WarpFactory {
717
+ private config;
718
+ private adapters;
719
+ private url;
720
+ private serializer;
721
+ private cache;
722
+ constructor(config: WarpClientConfig, adapters: Adapter[]);
723
+ createExecutable(warp: Warp, actionIndex: number, inputs: string[]): Promise<WarpExecutable>;
724
+ getChainInfoForAction(action: WarpAction, inputs?: string[]): Promise<WarpChainInfo>;
725
+ getResolvedInputs(chain: WarpChain, action: WarpAction, inputArgs: string[]): Promise<ResolvedInput[]>;
726
+ getModifiedInputs(inputs: ResolvedInput[]): ResolvedInput[];
727
+ preprocessInput(chain: WarpChain, input: string): Promise<string>;
728
+ private getPreparedArgs;
729
+ private tryGetChainFromInputs;
500
730
  }
501
731
 
502
732
  declare class WarpIndex {
503
733
  private config;
504
- constructor(config: WarpInitConfig);
734
+ constructor(config: WarpClientConfig);
505
735
  search(query: string, params?: Record<string, any>, headers?: Record<string, string>): Promise<WarpSearchHit[]>;
506
736
  }
507
737
 
738
+ declare class WarpLinkBuilder {
739
+ private readonly config;
740
+ private readonly adapters;
741
+ constructor(config: WarpClientConfig, adapters: Adapter[]);
742
+ isValid(url: string): boolean;
743
+ build(chain: WarpChain, type: WarpIdType, id: string): string;
744
+ buildFromPrefixedIdentifier(identifier: string): string | null;
745
+ generateQrCode(chain: WarpChain, type: WarpIdType, id: string, size?: number, background?: string, color?: string, logoColor?: string): QRCodeStyling;
746
+ }
747
+
508
748
  type DetectionResult = {
509
749
  match: boolean;
510
750
  url: string;
511
751
  warp: Warp | null;
752
+ chain: WarpChain | null;
512
753
  registryInfo: WarpRegistryInfo | null;
513
- brand: Brand | null;
754
+ brand: WarpBrand | null;
514
755
  };
515
756
  type DetectionResultFromHtml = {
516
757
  match: boolean;
@@ -519,63 +760,79 @@ type DetectionResultFromHtml = {
519
760
  warp: Warp;
520
761
  }[];
521
762
  };
522
- declare class WarpLink {
763
+ declare class WarpLinkDetecter {
523
764
  private config;
524
- constructor(config: WarpInitConfig);
765
+ private adapters;
766
+ constructor(config: WarpClientConfig, adapters: Adapter[]);
525
767
  isValid(url: string): boolean;
526
768
  detectFromHtml(content: string): Promise<DetectionResultFromHtml>;
527
769
  detect(url: string, cache?: WarpCacheConfig): Promise<DetectionResult>;
528
- build(type: WarpIdType, id: string): string;
529
- buildFromPrefixedIdentifier(prefixedIdentifier: string): string;
530
- generateQrCode(type: WarpIdType, id: string, size?: number, background?: string, color?: string, logoColor?: string): QRCodeStyling;
531
- private extractIdentifierInfoFromUrl;
532
770
  }
533
771
 
534
- declare class WarpRegistry {
772
+ declare class WarpClient {
535
773
  private config;
536
- private cache;
537
- registryConfig: WarpRegistryConfigInfo;
538
- constructor(config: WarpInitConfig);
539
- init(): Promise<void>;
540
- createWarpRegisterTransaction(txHash: string, alias?: string | null, brand?: string | null): Transaction$1;
541
- createWarpUnregisterTransaction(txHash: string): Transaction$1;
542
- createWarpUpgradeTransaction(alias: string, txHash: string): Transaction$1;
543
- createWarpAliasSetTransaction(txHash: string, alias: string): Transaction$1;
544
- createWarpVerifyTransaction(txHash: string): Transaction$1;
545
- createWarpTransferOwnershipTransaction(txHash: string, newOwner: string): Transaction$1;
546
- createBrandRegisterTransaction(txHash: string): Transaction$1;
547
- createWarpBrandingTransaction(warpHash: string, brandHash: string): Transaction$1;
548
- getInfoByAlias(alias: string, cache?: WarpCacheConfig): Promise<{
549
- registryInfo: WarpRegistryInfo | null;
550
- brand: Brand | null;
551
- }>;
552
- getInfoByHash(hash: string, cache?: WarpCacheConfig): Promise<{
553
- registryInfo: WarpRegistryInfo | null;
554
- brand: Brand | null;
774
+ private adapters;
775
+ constructor(config: WarpClientConfig, adapters: Adapter[]);
776
+ getConfig(): WarpClientConfig;
777
+ setConfig(config: WarpClientConfig): WarpClient;
778
+ getAdapters(): Adapter[];
779
+ addAdapter(adapter: Adapter): WarpClient;
780
+ createExecutor(handlers?: ExecutionHandlers): WarpExecutor;
781
+ detectWarp(urlOrId: string, cache?: WarpCacheConfig): Promise<DetectionResult>;
782
+ executeWarp(identifier: string, inputs: string[], handlers?: ExecutionHandlers, options?: {
783
+ cache?: WarpCacheConfig;
784
+ }): Promise<{
785
+ tx: WarpAdapterGenericTransaction | null;
786
+ chain: WarpChainInfo | null;
787
+ evaluateResults: (remoteTx: WarpAdapterGenericRemoteTransaction) => Promise<void>;
555
788
  }>;
556
- getUserWarpRegistryInfos(user?: string): Promise<WarpRegistryInfo[]>;
557
- getUserBrands(user?: string): Promise<Brand[]>;
558
- getChainInfos(cache?: WarpCacheConfig): Promise<WarpChainInfo[]>;
559
- getChainInfo(chain: WarpChain, cache?: WarpCacheConfig): Promise<WarpChainInfo | null>;
560
- fetchBrand(hash: string, cache?: WarpCacheConfig): Promise<Brand | null>;
561
- getRegistryContractAddress(): Address$1;
562
- private loadRegistryConfigs;
563
- private getFactory;
564
- private getController;
565
- private isCurrentUserAdmin;
566
- }
567
-
568
- declare class WarpUtils {
569
- static getInfoFromPrefixedIdentifier(prefixedIdentifier: string): {
570
- type: WarpIdType;
571
- identifier: string;
572
- identifierBase: string;
573
- } | null;
574
- static getNextInfo(config: WarpInitConfig, warp: Warp, actionIndex: number, results: WarpExecutionResults): WarpExecutionNextInfo | null;
575
- private static buildNextUrl;
576
- private static getNestedValue;
577
- static getChainInfoForAction(config: WarpInitConfig, action: WarpAction): Promise<WarpChainInfo>;
578
- static getChainEntrypoint(chainInfo: WarpChainInfo, env: WarpChainEnv): NetworkEntrypoint;
789
+ createInscriptionTransaction(chain: WarpChain, warp: Warp): WarpAdapterGenericTransaction;
790
+ createFromTransaction(chain: WarpChain, tx: WarpAdapterGenericRemoteTransaction, validate?: boolean): Promise<Warp>;
791
+ createFromTransactionHash(hash: string, cache?: WarpCacheConfig): Promise<Warp | null>;
792
+ signMessage(chain: WarpChain, message: string, privateKey: string): Promise<string>;
793
+ getExplorer(chain: WarpChain): AdapterWarpExplorer;
794
+ getResults(chain: WarpChain): AdapterWarpResults;
795
+ getRegistry(chain: WarpChain): Promise<AdapterWarpRegistry>;
796
+ getDataLoader(chain: WarpChain): AdapterWarpDataLoader;
797
+ get factory(): WarpFactory;
798
+ get index(): WarpIndex;
799
+ get linkBuilder(): WarpLinkBuilder;
800
+ createBuilder(chain: WarpChain): CombinedWarpBuilder;
801
+ createAbiBuilder(chain: WarpChain): AdapterWarpAbiBuilder;
802
+ createBrandBuilder(chain: WarpChain): AdapterWarpBrandBuilder;
803
+ }
804
+
805
+ declare class WarpInterpolator {
806
+ private config;
807
+ private adapter;
808
+ constructor(config: WarpClientConfig, adapter: Adapter);
809
+ apply(config: WarpClientConfig, warp: Warp): Promise<Warp>;
810
+ applyGlobals(config: WarpClientConfig, warp: Warp): Promise<Warp>;
811
+ applyVars(config: WarpClientConfig, warp: Warp): Warp;
812
+ private applyRootGlobals;
813
+ private applyActionGlobals;
814
+ }
815
+
816
+ declare class WarpLogger {
817
+ private static isTestEnv;
818
+ static info(...args: any[]): void;
819
+ static warn(...args: any[]): void;
820
+ static error(...args: any[]): void;
821
+ }
822
+
823
+ declare class WarpSerializer {
824
+ private typeRegistry;
825
+ setTypeRegistry(typeRegistry: WarpTypeRegistry): void;
826
+ nativeToString(type: WarpActionInputType, value: WarpNativeValue): string;
827
+ stringToNative(value: string): [WarpActionInputType, WarpNativeValue];
828
+ }
829
+
830
+ declare class WarpTypeRegistryImpl implements WarpTypeRegistry {
831
+ private typeHandlers;
832
+ registerType(typeName: string, handler: WarpTypeHandler): void;
833
+ hasType(typeName: string): boolean;
834
+ getHandler(typeName: string): WarpTypeHandler | undefined;
835
+ getRegisteredTypes(): string[];
579
836
  }
580
837
 
581
838
  type ValidationResult = {
@@ -585,7 +842,7 @@ type ValidationResult = {
585
842
  type ValidationError = string;
586
843
  declare class WarpValidator {
587
844
  private config;
588
- constructor(config: WarpInitConfig);
845
+ constructor(config: WarpClientConfig);
589
846
  validate(warp: Warp): Promise<ValidationResult>;
590
847
  private validateMaxOneValuePosition;
591
848
  private validateVariableNamesAndResultNamesUppercase;
@@ -593,4 +850,4 @@ declare class WarpValidator {
593
850
  private validateSchema;
594
851
  }
595
852
 
596
- export { type BaseWarpActionInputType, type Brand, BrandBuilder, type BrandColors, type BrandCta, type BrandMeta, type BrandUrls, CacheKey, CacheTtl, type CacheType, type InterpolationBag, type ProtocolName, type ResolvedInput, type Warp, WarpAbiBuilder, type WarpAbiContents, type WarpAction, WarpActionExecutor, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, WarpArgSerializer, WarpBuilder, WarpCache, type WarpCacheConfig, type WarpChain, type WarpChainEnv, type WarpChainInfo, type WarpCollectAction, WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractActionTransfer, WarpContractLoader, type WarpContractVerification, type WarpExecution, type WarpExecutionMessages, type WarpExecutionNextInfo, type WarpExecutionResults, type WarpIdType, WarpIndex, type WarpInitConfig, WarpInterpolator, WarpLink, type WarpLinkAction, type WarpMessageName, type WarpMeta, type WarpNativeValue, WarpProtocolVersions, type WarpQueryAction, WarpRegistry, type WarpRegistryConfigInfo, type WarpRegistryInfo, type WarpResultName, type WarpResulutionPath, type WarpSearchHit, type WarpSearchResult, type WarpTransferAction, type WarpTrustStatus, WarpUtils, WarpValidator, type WarpVarPlaceholder, type WarpWarpAbi, address, biguint, boolean, codemeta, composite, esdt, getChainExplorerUrl, getLatestProtocolIdentifier, getMainChainInfo, getWarpActionByIndex, hex, list, nothing, option, optional, replacePlaceholders, shiftBigintBy, string, toPreviewText, toTypedChainInfo, token, u16, u32, u64, u8, variadic };
853
+ export { type Adapter, type AdapterFactory, type AdapterWarpAbiBuilder, type AdapterWarpBrandBuilder, type AdapterWarpBuilder, type AdapterWarpDataLoader, type AdapterWarpExecutor, type AdapterWarpExplorer, type AdapterWarpRegistry, type AdapterWarpResults, type AdapterWarpSerializer, type BaseWarpActionInputType, type BaseWarpBuilder, BrowserCryptoProvider, CacheTtl, type ClientIndexConfig, type ClientTransformConfig, type CombinedWarpBuilder, type CryptoProvider, type DetectionResult, type DetectionResultFromHtml, type ExecutionHandlers, type HttpAuthHeaders, type InterpolationBag, type KnownToken, KnownTokens, NodeCryptoProvider, type ProtocolName, type ResolvedInput, type SignableMessage, type TransformRunner, type Warp, type WarpAbi, type WarpAbiContents, type WarpAction, type WarpActionIndex, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, type WarpAdapterGenericRemoteTransaction, type WarpAdapterGenericTransaction, type WarpAdapterGenericType, type WarpAdapterGenericValue, type WarpBrand, WarpBrandBuilder, type WarpBrandColors, type WarpBrandCta, type WarpBrandMeta, type WarpBrandUrls, WarpBuilder, WarpCache, type WarpCacheConfig, WarpCacheKey, type WarpChain, type WarpChainAccount, type WarpChainAsset, type WarpChainAssetValue, type WarpChainEnv, type WarpChainInfo, WarpChainName, WarpClient, type WarpClientConfig, type WarpCollectAction, WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractVerification, type WarpExecutable, type WarpExecution, type WarpExecutionMessages, type WarpExecutionNextInfo, type WarpExecutionResults, WarpExecutor, type WarpExplorerName, WarpFactory, type WarpIdType, WarpIndex, WarpInputTypes, WarpInterpolator, type WarpLinkAction, WarpLinkBuilder, WarpLinkDetecter, WarpLogger, type WarpMessageName, type WarpMeta, type WarpNativeValue, WarpProtocolVersions, type WarpProviderConfig, type WarpQueryAction, type WarpRegistryConfigInfo, type WarpRegistryInfo, type WarpResultName, type WarpResulutionPath, type WarpSearchHit, type WarpSearchResult, WarpSerializer, type WarpTransferAction, type WarpTrustStatus, type WarpTypeHandler, type WarpTypeRegistry, WarpTypeRegistryImpl, type WarpUserWallets, WarpValidator, type WarpVarPlaceholder, address, applyResultsToMessages, asset, biguint, boolean, bytesToBase64, bytesToHex, createAuthHeaders, createAuthMessage, createCryptoProvider, createHttpAuthHeaders, createSignableMessage, evaluateResultsCommon, extractCollectResults, extractIdentifierInfoFromUrl, findKnownTokenById, findWarpAdapterByPrefix, findWarpAdapterForChain, findWarpExecutableAction, getCryptoProvider, getLatestProtocolIdentifier, getNextInfo, getProviderConfig, getProviderUrl, getRandomBytes, getRandomHex, getWarpActionByIndex, getWarpInfoFromIdentifier, hex, parseResultsOutIndex, parseSignedMessage, replacePlaceholders, setCryptoProvider, shiftBigintBy, string, testCryptoAvailability, toPreviewText, u16, u32, u64, u8, validateSignedMessage };