@vleap/warps 3.0.0-alpha.98 → 3.0.0-beta.153

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.cts CHANGED
@@ -1,15 +1,36 @@
1
1
  import QRCodeStyling from 'qr-code-styling';
2
2
 
3
+ type WarpLocale = 'en' | 'es' | 'fr' | 'de' | 'it' | 'pt' | 'ru' | 'zh' | 'ja' | 'ko' | 'ar' | 'hi' | 'nl' | 'sv' | 'da' | 'no' | 'fi' | 'pl' | 'tr' | 'el' | 'he' | 'th' | 'vi' | 'id' | 'ms' | 'tl' | string;
4
+ type WarpText = string | WarpI18nText;
5
+ type WarpI18nText = {
6
+ [language: string]: string;
7
+ };
8
+
9
+ type WarpAlertName = string;
10
+ type WarpAlert = {
11
+ label: WarpText;
12
+ trigger: string;
13
+ subject: WarpText;
14
+ body: WarpText;
15
+ action?: string;
16
+ };
17
+ type WarpAlerts = Record<WarpAlertName, WarpAlert>;
18
+
3
19
  type WarpBrand = {
4
20
  protocol: string;
5
- name: string;
6
- description: string;
7
- logo: string;
21
+ name: WarpText;
22
+ description: WarpText;
23
+ logo: WarpBrandLogo;
8
24
  urls?: WarpBrandUrls;
9
25
  colors?: WarpBrandColors;
10
26
  cta?: WarpBrandCta;
11
27
  meta?: WarpMeta;
12
28
  };
29
+ type WarpBrandLogoThemed = {
30
+ light: string;
31
+ dark: string;
32
+ };
33
+ type WarpBrandLogo = string | WarpBrandLogoThemed;
13
34
  type WarpBrandUrls = {
14
35
  web?: string;
15
36
  };
@@ -18,9 +39,9 @@ type WarpBrandColors = {
18
39
  secondary?: string;
19
40
  };
20
41
  type WarpBrandCta = {
21
- title: string;
22
- description: string;
23
- label: string;
42
+ title: WarpText;
43
+ description: WarpText;
44
+ label: WarpText;
24
45
  url: string;
25
46
  };
26
47
 
@@ -49,24 +70,27 @@ type WarpRegistryConfigInfo = {
49
70
  admins: string[];
50
71
  };
51
72
 
52
- type WarpExecution = {
53
- success: boolean;
73
+ type WarpActionExecutionStatus = 'success' | 'error' | 'unhandled';
74
+ type WarpActionExecutionResult = {
75
+ status: WarpActionExecutionStatus;
54
76
  warp: Warp;
55
77
  action: number;
56
78
  user: string | null;
57
79
  txHash: string | null;
58
80
  tx: WarpAdapterGenericTransaction | null;
59
81
  next: WarpExecutionNextInfo | null;
60
- values: any[];
61
- valuesRaw: any[];
62
- results: WarpExecutionResults;
82
+ values: {
83
+ string: string[];
84
+ native: WarpNativeValue[];
85
+ };
86
+ output: WarpExecutionOutput;
63
87
  messages: WarpExecutionMessages;
64
88
  };
65
89
  type WarpExecutionNextInfo = {
66
90
  identifier: string | null;
67
91
  url: string;
68
92
  }[];
69
- type WarpExecutionResults = Record<WarpResultName, any | null>;
93
+ type WarpExecutionOutput = Record<WarpOutputName, any | null>;
70
94
  type WarpExecutionMessages = Record<WarpMessageName, string | null>;
71
95
 
72
96
  type ClientIndexConfig = {
@@ -96,8 +120,17 @@ type ClientTransformConfig = {
96
120
  runner?: TransformRunner | null;
97
121
  };
98
122
 
99
- type WarpUserWallets = Record<WarpChain, string | null>;
100
- type WarpProviderConfig = Record<WarpChainEnv, string>;
123
+ type WarpWalletDetails = {
124
+ address: string;
125
+ mnemonic?: string | null;
126
+ privateKey?: string | null;
127
+ };
128
+ type WarpUserWallets = Record<WarpChain, WarpWalletDetails | string | null>;
129
+ type WarpProviderPreferences = Partial<Record<WarpChainEnv, string | WarpProviderConfig>>;
130
+ type WarpProviderConfig = {
131
+ url: string;
132
+ headers?: Record<string, string>;
133
+ };
101
134
  type WarpClientConfig = {
102
135
  env: WarpChainEnv;
103
136
  clientUrl?: string;
@@ -107,9 +140,10 @@ type WarpClientConfig = {
107
140
  wallets?: WarpUserWallets;
108
141
  };
109
142
  preferences?: {
143
+ locale?: WarpLocale;
110
144
  explorers?: Record<WarpChain, WarpExplorerName>;
145
+ providers?: Record<WarpChain, WarpProviderPreferences>;
111
146
  };
112
- providers?: Record<WarpChain, WarpProviderConfig>;
113
147
  schema?: {
114
148
  warp?: string;
115
149
  brand?: string;
@@ -117,6 +151,9 @@ type WarpClientConfig = {
117
151
  cache?: ClientCacheConfig;
118
152
  transform?: ClientTransformConfig;
119
153
  index?: ClientIndexConfig;
154
+ interceptors?: {
155
+ openLink?: (url: string) => Promise<void>;
156
+ };
120
157
  };
121
158
  type WarpCacheConfig = {
122
159
  ttl?: number;
@@ -124,17 +161,16 @@ type WarpCacheConfig = {
124
161
  type AdapterFactory = (config: WarpClientConfig, fallback?: Adapter) => Adapter;
125
162
  type Adapter = {
126
163
  chainInfo: WarpChainInfo;
127
- prefix: string;
128
164
  builder: () => CombinedWarpBuilder;
129
165
  executor: AdapterWarpExecutor;
130
- results: AdapterWarpResults;
166
+ output: AdapterWarpOutput;
131
167
  serializer: AdapterWarpSerializer;
132
168
  registry: AdapterWarpRegistry;
133
169
  explorer: AdapterWarpExplorer;
134
170
  abiBuilder: () => AdapterWarpAbiBuilder;
135
171
  brandBuilder: () => AdapterWarpBrandBuilder;
136
172
  dataLoader: AdapterWarpDataLoader;
137
- registerTypes?: (typeRegistry: WarpTypeRegistry) => void;
173
+ wallet: AdapterWarpWallet;
138
174
  };
139
175
  type WarpAdapterGenericTransaction = any;
140
176
  type WarpAdapterGenericRemoteTransaction = any;
@@ -144,10 +180,13 @@ interface WarpTypeHandler {
144
180
  stringToNative(value: string): any;
145
181
  nativeToString(value: any): string;
146
182
  }
147
- interface WarpTypeRegistry {
183
+ interface AdapterTypeRegistry {
148
184
  registerType(typeName: string, handler: WarpTypeHandler): void;
185
+ registerTypeAlias(typeName: string, alias: string): void;
149
186
  hasType(typeName: string): boolean;
150
187
  getHandler(typeName: string): WarpTypeHandler | undefined;
188
+ getAlias(typeName: string): string | undefined;
189
+ resolveType(typeName: string): string;
151
190
  getRegisteredTypes(): string[];
152
191
  }
153
192
  interface BaseWarpBuilder {
@@ -180,11 +219,10 @@ interface AdapterWarpBrandBuilder {
180
219
  }
181
220
  interface AdapterWarpExecutor {
182
221
  createTransaction(executable: WarpExecutable): Promise<WarpAdapterGenericTransaction>;
183
- executeQuery(executable: WarpExecutable): Promise<WarpExecution>;
184
- signMessage(message: string, privateKey: string): Promise<string>;
222
+ executeQuery(executable: WarpExecutable): Promise<WarpActionExecutionResult>;
185
223
  }
186
- interface AdapterWarpResults {
187
- getTransactionExecutionResults(warp: Warp, tx: WarpAdapterGenericRemoteTransaction): Promise<WarpExecution>;
224
+ interface AdapterWarpOutput {
225
+ getActionExecution(warp: Warp, actionIndex: WarpActionIndex, tx: WarpAdapterGenericRemoteTransaction): Promise<WarpActionExecutionResult>;
188
226
  }
189
227
  interface AdapterWarpSerializer {
190
228
  typedToString(value: WarpAdapterGenericValue): string;
@@ -233,6 +271,16 @@ interface AdapterWarpDataLoader {
233
271
  getAction(identifier: string, awaitCompleted?: boolean): Promise<WarpChainAction | null>;
234
272
  getAccountActions(address: string, options?: WarpDataLoaderOptions): Promise<WarpChainAction[]>;
235
273
  }
274
+ interface AdapterWarpWallet {
275
+ signTransaction(tx: WarpAdapterGenericTransaction): Promise<WarpAdapterGenericTransaction>;
276
+ signTransactions(txs: WarpAdapterGenericTransaction[]): Promise<WarpAdapterGenericTransaction[]>;
277
+ signMessage(message: string): Promise<string>;
278
+ sendTransactions(txs: WarpAdapterGenericTransaction[]): Promise<string[]>;
279
+ sendTransaction(tx: WarpAdapterGenericTransaction): Promise<string>;
280
+ create(mnemonic: string): WarpWalletDetails;
281
+ generate(): WarpWalletDetails;
282
+ getAddress(): string | null;
283
+ }
236
284
 
237
285
  type WarpChainAccount = {
238
286
  chain: WarpChain;
@@ -250,7 +298,9 @@ type WarpChainAsset = {
250
298
  symbol: string;
251
299
  amount?: bigint;
252
300
  decimals?: number;
253
- logoUrl?: string;
301
+ logoUrl?: string | null;
302
+ price?: number;
303
+ supply?: bigint;
254
304
  };
255
305
  type WarpChainAction = {
256
306
  chain: WarpChain;
@@ -275,29 +325,35 @@ type WarpChainInfo = {
275
325
  blockTime: number;
276
326
  addressHrp: string;
277
327
  defaultApiUrl: string;
328
+ logoUrl: string;
278
329
  nativeToken: WarpChainAsset;
279
330
  };
280
- type WarpIdType = 'hash' | 'alias';
331
+ type WarpIdentifierType = 'hash' | 'alias';
281
332
  type WarpVarPlaceholder = string;
282
- type WarpResultName = string;
333
+ type WarpOutputName = string;
283
334
  type WarpResulutionPath = string;
284
335
  type WarpMessageName = string;
285
336
  type Warp = {
286
337
  protocol: string;
338
+ chain?: WarpChain;
287
339
  name: string;
288
- title: string;
289
- description: string | null;
340
+ title: WarpText;
341
+ description: WarpText | null;
290
342
  bot?: string;
291
343
  preview?: string;
292
344
  vars?: Record<WarpVarPlaceholder, string>;
293
345
  actions: WarpAction[];
294
346
  next?: string;
295
- results?: Record<WarpResultName, WarpResulutionPath>;
296
- messages?: Record<WarpMessageName, string>;
347
+ output?: Record<WarpOutputName, WarpResulutionPath>;
348
+ messages?: Record<WarpMessageName, WarpText>;
349
+ alerts?: WarpAlerts;
350
+ related?: string[];
297
351
  meta?: WarpMeta;
298
352
  };
299
353
  type WarpMeta = {
300
354
  chain: WarpChain;
355
+ identifier: string;
356
+ query: string | null;
301
357
  hash: string;
302
358
  creator: string;
303
359
  createdAt: string;
@@ -307,21 +363,21 @@ type WarpActionIndex = number;
307
363
  type WarpActionType = 'transfer' | 'contract' | 'query' | 'collect' | 'link';
308
364
  type WarpTransferAction = {
309
365
  type: WarpActionType;
310
- chain?: WarpChain;
311
- label: string;
312
- description?: string | null;
366
+ label: WarpText;
367
+ description?: WarpText | null;
313
368
  address?: string;
314
369
  data?: string;
315
370
  value?: string;
316
371
  transfers?: string[];
317
372
  inputs?: WarpActionInput[];
373
+ primary?: boolean;
374
+ auto?: boolean;
318
375
  next?: string;
319
376
  };
320
377
  type WarpContractAction = {
321
378
  type: WarpActionType;
322
- chain?: WarpChain;
323
- label: string;
324
- description?: string | null;
379
+ label: WarpText;
380
+ description?: WarpText | null;
325
381
  address?: string;
326
382
  func?: string | null;
327
383
  args?: string[];
@@ -330,51 +386,62 @@ type WarpContractAction = {
330
386
  transfers?: string[];
331
387
  abi?: string;
332
388
  inputs?: WarpActionInput[];
389
+ primary?: boolean;
390
+ auto?: boolean;
333
391
  next?: string;
334
392
  };
335
393
  type WarpQueryAction = {
336
394
  type: WarpActionType;
337
- chain?: WarpChain;
338
- label: string;
339
- description?: string | null;
395
+ label: WarpText;
396
+ description?: WarpText | null;
340
397
  address?: string;
341
398
  func?: string;
342
399
  args?: string[];
343
400
  abi?: string;
344
401
  inputs?: WarpActionInput[];
402
+ primary?: boolean;
403
+ auto?: boolean;
345
404
  next?: string;
346
405
  };
347
406
  type WarpCollectAction = {
348
407
  type: WarpActionType;
349
- chain?: WarpChain;
350
- label: string;
351
- description?: string | null;
352
- destination: {
353
- url: string;
354
- method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
355
- headers?: Record<string, string>;
356
- };
408
+ label: WarpText;
409
+ description?: WarpText | null;
410
+ destination?: WarpCollectDestination;
357
411
  inputs?: WarpActionInput[];
412
+ primary?: boolean;
413
+ auto?: boolean;
358
414
  next?: string;
359
415
  };
416
+ type WarpCollectDestination = WarpCollectDestinationHttp | string;
417
+ type WarpCollectDestinationHttp = {
418
+ url: string;
419
+ method?: 'GET' | 'POST' | 'PUT' | 'DELETE';
420
+ headers?: Record<string, string>;
421
+ };
360
422
  type WarpLinkAction = {
361
423
  type: WarpActionType;
362
- chain?: WarpChain;
363
- label: string;
364
- description?: string | null;
424
+ label: WarpText;
425
+ description?: WarpText | null;
365
426
  url: string;
366
427
  inputs?: WarpActionInput[];
428
+ primary?: boolean;
429
+ auto?: boolean;
367
430
  };
368
431
  type WarpActionInputSource = 'field' | 'query' | 'user:wallet' | 'hidden';
369
432
  type BaseWarpActionInputType = 'string' | 'uint8' | 'uint16' | 'uint32' | 'uint64' | 'uint128' | 'uint256' | 'biguint' | 'bool' | 'address' | 'hex' | string;
370
433
  type WarpActionInputType = string;
371
- type WarpNativeValue = string | number | bigint | boolean | WarpChainAssetValue | null | WarpNativeValue[];
372
- type WarpActionInputPosition = 'receiver' | 'value' | 'transfer' | `arg:${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | 'data' | 'chain' | `payload:${string}`;
434
+ interface WarpStructValue {
435
+ [key: string]: WarpNativeValue;
436
+ }
437
+ type WarpNativeValue = string | number | bigint | boolean | WarpChainAssetValue | null | WarpNativeValue[] | WarpStructValue;
438
+ type WarpActionInputPosition = 'receiver' | 'value' | 'transfer' | `arg:${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | 'data' | 'chain' | `payload:${string}` | 'destination';
373
439
  type WarpActionInputModifier = 'scale';
374
440
  type WarpActionInput = {
375
441
  name: string;
376
442
  as?: string;
377
- description?: string | null;
443
+ label?: WarpText;
444
+ description?: WarpText | null;
378
445
  bot?: string;
379
446
  type: WarpActionInputType;
380
447
  position?: WarpActionInputPosition;
@@ -383,9 +450,9 @@ type WarpActionInput = {
383
450
  min?: number | WarpVarPlaceholder;
384
451
  max?: number | WarpVarPlaceholder;
385
452
  pattern?: string;
386
- patternDescription?: string;
453
+ patternDescription?: WarpText;
387
454
  options?: string[] | {
388
- [key: string]: string;
455
+ [key: string]: WarpText;
389
456
  };
390
457
  modifier?: string;
391
458
  default?: string | number | boolean;
@@ -407,7 +474,7 @@ type WarpExecutable = {
407
474
  chain: WarpChainInfo;
408
475
  warp: Warp;
409
476
  action: number;
410
- destination: string;
477
+ destination: string | null;
411
478
  args: string[];
412
479
  value: bigint;
413
480
  transfers: WarpChainAssetValue[];
@@ -429,6 +496,31 @@ type WarpAbiContents = {
429
496
  events?: any[];
430
497
  };
431
498
 
499
+ type WarpSecret = {
500
+ key: string;
501
+ description?: string | null;
502
+ };
503
+
504
+ type InterpolationBag = {
505
+ config: WarpClientConfig;
506
+ chain: WarpChainInfo;
507
+ };
508
+
509
+ declare const WarpProtocolVersions: {
510
+ Warp: string;
511
+ Brand: string;
512
+ Abi: string;
513
+ };
514
+ declare const WarpConfig: {
515
+ LatestWarpSchemaUrl: string;
516
+ LatestBrandSchemaUrl: string;
517
+ DefaultClientUrl: (env: WarpChainEnv) => "https://usewarp.to" | "https://testnet.usewarp.to" | "https://devnet.usewarp.to";
518
+ SuperClientUrls: string[];
519
+ AvailableActionInputSources: WarpActionInputSource[];
520
+ AvailableActionInputTypes: WarpActionInputType[];
521
+ AvailableActionInputPositions: WarpActionInputPosition[];
522
+ };
523
+
432
524
  declare enum WarpChainName {
433
525
  Multiversx = "multiversx",
434
526
  Vibechain = "vibechain",
@@ -442,17 +534,17 @@ declare enum WarpChainName {
442
534
  declare const WarpConstants: {
443
535
  HttpProtocolPrefix: string;
444
536
  IdentifierParamName: string;
445
- IdentifierParamSeparator: string[];
446
- IdentifierParamSeparatorDefault: string;
537
+ IdentifierParamSeparator: string;
447
538
  IdentifierChainDefault: string;
448
539
  IdentifierType: {
449
- Alias: WarpIdType;
450
- Hash: WarpIdType;
540
+ Alias: WarpIdentifierType;
541
+ Hash: WarpIdentifierType;
451
542
  };
543
+ IdentifierAliasMarker: string;
452
544
  Globals: {
453
545
  UserWallet: {
454
546
  Placeholder: string;
455
- Accessor: (bag: InterpolationBag) => string | null | undefined;
547
+ Accessor: (bag: InterpolationBag) => string | WarpWalletDetails | null | undefined;
456
548
  };
457
549
  ChainApiUrl: {
458
550
  Placeholder: string;
@@ -469,6 +561,8 @@ declare const WarpConstants: {
469
561
  };
470
562
  ArgParamsSeparator: string;
471
563
  ArgCompositeSeparator: string;
564
+ ArgListSeparator: string;
565
+ ArgStructSeparator: string;
472
566
  Transform: {
473
567
  Prefix: string;
474
568
  };
@@ -478,48 +572,35 @@ declare const WarpConstants: {
478
572
  Position: {
479
573
  Payload: string;
480
574
  };
575
+ Alerts: {
576
+ TriggerEventPrefix: string;
577
+ };
481
578
  };
482
579
  declare const WarpInputTypes: {
483
580
  Option: string;
484
- Optional: string;
485
- List: string;
486
- Variadic: string;
487
- Composite: string;
581
+ Vector: string;
582
+ Tuple: string;
583
+ Struct: string;
488
584
  String: string;
489
- U8: string;
490
- U16: string;
491
- U32: string;
492
- U64: string;
493
- U128: string;
494
- U256: string;
585
+ Uint8: string;
586
+ Uint16: string;
587
+ Uint32: string;
588
+ Uint64: string;
589
+ Uint128: string;
590
+ Uint256: string;
495
591
  Biguint: string;
496
- Boolean: string;
592
+ Bool: string;
497
593
  Address: string;
498
594
  Asset: string;
499
595
  Hex: string;
500
596
  };
597
+ declare const safeWindow: Window;
501
598
 
502
- type InterpolationBag = {
503
- config: WarpClientConfig;
504
- chain: WarpChainName;
505
- chainInfo: WarpChainInfo;
506
- };
599
+ declare const getEventNameFromWarp: (warp: Warp, alertName: string) => string | null;
507
600
 
508
- declare const WarpProtocolVersions: {
509
- Warp: string;
510
- Brand: string;
511
- Abi: string;
512
- };
513
- declare const WarpConfig: {
514
- LatestWarpSchemaUrl: string;
515
- LatestBrandSchemaUrl: string;
516
- DefaultClientUrl: (env: WarpChainEnv) => "https://usewarp.to" | "https://testnet.usewarp.to" | "https://devnet.usewarp.to";
517
- DefaultChainPrefix: string;
518
- SuperClientUrls: string[];
519
- AvailableActionInputSources: WarpActionInputSource[];
520
- AvailableActionInputTypes: WarpActionInputType[];
521
- AvailableActionInputPositions: WarpActionInputPosition[];
522
- };
601
+ declare const getWarpBrandLogoUrl: (brand: WarpBrand, preferences?: {
602
+ scheme: "light" | "dark";
603
+ }) => string;
523
604
 
524
605
  interface CryptoProvider {
525
606
  getRandomBytes(size: number): Promise<Uint8Array>;
@@ -542,31 +623,67 @@ declare function testCryptoAvailability(): Promise<{
542
623
  }>;
543
624
  declare function createCryptoProvider(): CryptoProvider;
544
625
 
626
+ declare const extractWarpSecrets: (warp: Warp) => WarpSecret[];
627
+
545
628
  declare const findWarpAdapterForChain: (chain: WarpChain, adapters: Adapter[]) => Adapter;
546
- declare const findWarpAdapterByPrefix: (prefix: string, adapters: Adapter[]) => Adapter;
547
629
  declare const getLatestProtocolIdentifier: (name: ProtocolName) => string;
548
630
  declare const getWarpActionByIndex: (warp: Warp, index: number) => WarpAction;
549
- declare const findWarpExecutableAction: (warp: Warp) => {
631
+ declare const getWarpPrimaryAction: (warp: Warp) => {
550
632
  action: WarpAction;
551
- actionIndex: WarpActionIndex;
633
+ index: number;
552
634
  };
635
+ declare const isWarpActionAutoExecute: (action: WarpAction, warp: Warp) => boolean;
553
636
  declare const shiftBigintBy: (value: bigint | string | number, decimals: number) => bigint;
554
637
  declare const toPreviewText: (text: string, maxChars?: number) => string;
555
638
  declare const replacePlaceholders: (message: string, bag: Record<string, any>) => string;
556
- declare const applyResultsToMessages: (warp: Warp, results: Record<string, any>) => Record<string, string>;
557
639
 
640
+ declare const WARP_LANGUAGES: {
641
+ readonly de: "German";
642
+ readonly en: "English";
643
+ readonly es: "Spanish";
644
+ readonly fr: "French";
645
+ readonly it: "Italian";
646
+ readonly pt: "Portuguese";
647
+ readonly ru: "Russian";
648
+ readonly zh: "Chinese";
649
+ readonly ja: "Japanese";
650
+ readonly ko: "Korean";
651
+ readonly ar: "Arabic";
652
+ readonly hi: "Hindi";
653
+ readonly nl: "Dutch";
654
+ readonly sv: "Swedish";
655
+ readonly da: "Danish";
656
+ readonly no: "Norwegian";
657
+ readonly fi: "Finnish";
658
+ readonly pl: "Polish";
659
+ readonly tr: "Turkish";
660
+ readonly el: "Greek";
661
+ readonly he: "Hebrew";
662
+ readonly th: "Thai";
663
+ readonly vi: "Vietnamese";
664
+ readonly id: "Indonesian";
665
+ readonly ms: "Malay";
666
+ readonly tl: "Tagalog";
667
+ };
668
+ declare const resolveWarpText: (text: WarpText, config?: WarpClientConfig) => string;
669
+ declare const isWarpI18nText: (text: WarpText) => text is WarpI18nText;
670
+ declare const createWarpI18nText: (translations: Record<string, string>) => WarpI18nText;
671
+
672
+ declare const createWarpIdentifier: (chain: WarpChain, type: WarpIdentifierType, identifier: string) => string;
558
673
  declare const getWarpInfoFromIdentifier: (prefixedIdentifier: string) => {
559
- chainPrefix: string;
560
- type: WarpIdType;
674
+ chain: WarpChain;
675
+ type: WarpIdentifierType;
561
676
  identifier: string;
562
677
  identifierBase: string;
563
678
  } | null;
564
679
  declare const extractIdentifierInfoFromUrl: (url: string) => {
565
- chainPrefix: string;
566
- type: WarpIdType;
680
+ chain: WarpChain;
681
+ type: WarpIdentifierType;
567
682
  identifier: string;
568
683
  identifierBase: string;
569
684
  } | null;
685
+ declare const extractQueryStringFromUrl: (url: string) => string | null;
686
+ declare const extractQueryStringFromIdentifier: (identifier: string) => string | null;
570
687
 
571
688
  /**
572
689
  * Splits an input string into type and value, using only the first colon as separator.
@@ -575,7 +692,9 @@ declare const extractIdentifierInfoFromUrl: (url: string) => {
575
692
  declare const splitInput: (input: string) => [WarpActionInputType, string];
576
693
  declare const hasInputPrefix: (input: string) => boolean;
577
694
 
578
- declare const getNextInfo: (config: WarpClientConfig, adapters: Adapter[], warp: Warp, actionIndex: number, results: WarpExecutionResults) => WarpExecutionNextInfo | null;
695
+ declare const applyOutputToMessages: (warp: Warp, output: Record<string, any>, config: WarpClientConfig) => Record<string, string>;
696
+
697
+ declare const getNextInfo: (config: WarpClientConfig, adapters: Adapter[], warp: Warp, actionIndex: number, output: WarpExecutionOutput) => WarpExecutionNextInfo | null;
579
698
 
580
699
  /**
581
700
  * Builds a nested payload object from a position string and field value.
@@ -598,19 +717,27 @@ declare function buildNestedPayload(position: string, fieldName: string, value:
598
717
  */
599
718
  declare function mergeNestedPayload(target: any, source: any): any;
600
719
 
601
- declare const getProviderUrl: (config: WarpClientConfig, chain: WarpChain, env: WarpChainEnv, defaultProvider: string) => string;
602
- declare const getProviderConfig: (config: WarpClientConfig, chain: WarpChain) => WarpProviderConfig | undefined;
720
+ declare const getProviderConfig: (config: WarpClientConfig, chain: WarpChain, env: WarpChainEnv, defaultProvider: string) => WarpProviderConfig;
603
721
 
604
- declare const extractCollectResults: (warp: Warp, response: any, actionIndex: number, inputs: ResolvedInput[], transformRunner?: TransformRunner | null) => Promise<{
605
- values: any[];
606
- results: WarpExecutionResults;
722
+ declare class WarpSerializer {
723
+ private readonly typeRegistry?;
724
+ constructor(options?: {
725
+ typeRegistry?: AdapterTypeRegistry;
726
+ });
727
+ nativeToString(type: WarpActionInputType, value: WarpNativeValue): string;
728
+ stringToNative(value: string): [WarpActionInputType, WarpNativeValue];
729
+ private getTypeAndValue;
730
+ }
731
+
732
+ declare const extractCollectOutput: (warp: Warp, response: any, actionIndex: number, inputs: ResolvedInput[], serializer: WarpSerializer, config: WarpClientConfig) => Promise<{
733
+ values: {
734
+ string: string[];
735
+ native: any[];
736
+ };
737
+ output: WarpExecutionOutput;
607
738
  }>;
608
- declare const evaluateResultsCommon: (warp: Warp, baseResults: WarpExecutionResults, actionIndex: number, inputs: ResolvedInput[], transformRunner?: TransformRunner | null) => Promise<WarpExecutionResults>;
609
- /**
610
- * Parses out[N] notation and returns the action index (1-based) or null if invalid.
611
- * Also handles plain "out" which defaults to action index 1.
612
- */
613
- declare const parseResultsOutIndex: (resultPath: string) => number | null;
739
+ declare const evaluateOutputCommon: (warp: Warp, baseOutput: WarpExecutionOutput, actionIndex: number, inputs: ResolvedInput[], serializer: WarpSerializer, config: WarpClientConfig) => Promise<WarpExecutionOutput>;
740
+ declare const parseOutputOutIndex: (outputPath: string) => number | null;
614
741
 
615
742
  /**
616
743
  * Signing utilities for creating and validating signed messages
@@ -664,30 +791,45 @@ declare function validateSignedMessage(expiresAt: string): boolean;
664
791
  */
665
792
  declare function parseSignedMessage(message: string): SignableMessage;
666
793
 
667
- declare const string: (value: string) => string;
668
- declare const u8: (value: number) => string;
669
- declare const u16: (value: number) => string;
670
- declare const u32: (value: number) => string;
671
- declare const u64: (value: bigint | number) => string;
672
- declare const biguint: (value: bigint | string | number) => string;
673
- declare const boolean: (value: boolean) => string;
674
- declare const address: (value: string) => string;
675
- declare const asset: (value: WarpChainAsset) => string;
676
- declare const hex: (value: string) => string;
794
+ declare const getWarpWalletAddress: (wallet: WarpWalletDetails | string | null | undefined) => string | null;
795
+ declare const getWarpWalletAddressFromConfig: (config: WarpClientConfig, chain: WarpChain) => string | null;
796
+ declare const getWarpWalletPrivateKey: (wallet: WarpWalletDetails | string | null | undefined) => string | null | undefined;
797
+ declare const getWarpWalletMnemonic: (wallet: WarpWalletDetails | string | null | undefined) => string | null | undefined;
798
+ declare const getWarpWalletPrivateKeyFromConfig: (config: WarpClientConfig, chain: WarpChain) => string | null;
799
+ declare const getWarpWalletMnemonicFromConfig: (config: WarpClientConfig, chain: WarpChain) => string | null;
800
+
801
+ type CodecFunc<T extends WarpNativeValue = WarpNativeValue> = (value: T) => string;
802
+ declare const string: CodecFunc<string>;
803
+ declare const uint8: CodecFunc<number>;
804
+ declare const uint16: CodecFunc<number>;
805
+ declare const uint32: CodecFunc<number>;
806
+ declare const uint64: CodecFunc<bigint | number>;
807
+ declare const biguint: CodecFunc<bigint | string | number>;
808
+ declare const bool: CodecFunc<boolean>;
809
+ declare const address: CodecFunc<string>;
810
+ declare const asset: CodecFunc<WarpChainAssetValue & {
811
+ decimals?: number;
812
+ }>;
813
+ declare const hex: CodecFunc<string>;
814
+ declare const option: <T extends WarpNativeValue>(codecFunc: CodecFunc<T>, value: T | null) => string;
815
+ declare const tuple: (...values: WarpNativeValue[]) => string;
816
+ declare const struct: CodecFunc<WarpStructValue>;
817
+ declare const vector: CodecFunc<WarpNativeValue[]>;
677
818
 
678
819
  declare class WarpBrandBuilder {
679
820
  private config;
680
821
  private pendingBrand;
681
822
  constructor(config: WarpClientConfig);
682
823
  createFromRaw(encoded: string, validateSchema?: boolean): Promise<WarpBrand>;
683
- setName(name: string): WarpBrandBuilder;
684
- setDescription(description: string): WarpBrandBuilder;
685
- setLogo(logo: string): WarpBrandBuilder;
824
+ setName(name: WarpText): WarpBrandBuilder;
825
+ setDescription(description: WarpText): WarpBrandBuilder;
826
+ setLogo(logo: WarpBrandLogo): WarpBrandBuilder;
686
827
  setUrls(urls: WarpBrandUrls): WarpBrandBuilder;
687
828
  setColors(colors: WarpBrandColors): WarpBrandBuilder;
688
829
  setCta(cta: WarpBrandCta): WarpBrandBuilder;
689
830
  build(): Promise<WarpBrand>;
690
831
  private ensure;
832
+ private ensureWarpText;
691
833
  private ensureValidSchema;
692
834
  }
693
835
 
@@ -697,15 +839,17 @@ declare class WarpBuilder implements BaseWarpBuilder {
697
839
  constructor(config: WarpClientConfig);
698
840
  createFromRaw(encoded: string, validate?: boolean): Promise<Warp>;
699
841
  createFromUrl(url: string): Promise<Warp>;
842
+ setChain(chain: WarpChain): WarpBuilder;
700
843
  setName(name: string): WarpBuilder;
701
- setTitle(title: string): WarpBuilder;
702
- setDescription(description: string): WarpBuilder;
844
+ setTitle(title: WarpText): WarpBuilder;
845
+ setDescription(description: WarpText): WarpBuilder;
703
846
  setPreview(preview: string): WarpBuilder;
704
847
  setActions(actions: WarpAction[]): WarpBuilder;
705
848
  addAction(action: WarpAction): WarpBuilder;
706
849
  build(): Promise<Warp>;
707
850
  getDescriptionPreview(description: string, maxChars?: number): string;
708
851
  private ensure;
852
+ private ensureWarpText;
709
853
  private validate;
710
854
  }
711
855
 
@@ -736,28 +880,54 @@ declare class WarpCache {
736
880
  }
737
881
 
738
882
  type ExecutionHandlers = {
739
- onExecuted?: (result: WarpExecution) => void;
883
+ onExecuted?: (result: WarpActionExecutionResult) => void | Promise<void>;
740
884
  onError?: (params: {
741
885
  message: string;
742
886
  }) => void;
743
887
  onSignRequest?: (params: {
744
888
  message: string;
745
889
  chain: WarpChainInfo;
746
- }) => Promise<string>;
890
+ }) => string | Promise<string>;
891
+ onActionExecuted?: (params: {
892
+ action: WarpActionIndex;
893
+ chain: WarpChainInfo | null;
894
+ execution: WarpActionExecutionResult | null;
895
+ tx: WarpAdapterGenericTransaction | null;
896
+ }) => void;
897
+ onActionUnhandled?: (params: {
898
+ action: WarpActionIndex;
899
+ chain: WarpChainInfo | null;
900
+ execution: WarpActionExecutionResult | null;
901
+ tx: WarpAdapterGenericTransaction | null;
902
+ }) => void;
747
903
  };
748
904
  declare class WarpExecutor {
749
905
  private config;
750
906
  private adapters;
751
907
  private handlers?;
752
908
  private factory;
753
- private serializer;
754
909
  constructor(config: WarpClientConfig, adapters: Adapter[], handlers?: ExecutionHandlers | undefined);
755
- execute(warp: Warp, inputs: string[]): Promise<{
910
+ execute(warp: Warp, inputs: string[], meta?: {
911
+ envs?: Record<string, any>;
912
+ queries?: Record<string, any>;
913
+ }): Promise<{
914
+ txs: WarpAdapterGenericTransaction[];
915
+ chain: WarpChainInfo | null;
916
+ immediateExecutions: WarpActionExecutionResult[];
917
+ }>;
918
+ executeAction(warp: Warp, actionIndex: WarpActionIndex, inputs: string[], meta?: {
919
+ envs?: Record<string, any>;
920
+ queries?: Record<string, any>;
921
+ }): Promise<{
756
922
  tx: WarpAdapterGenericTransaction | null;
757
923
  chain: WarpChainInfo | null;
924
+ immediateExecution: WarpActionExecutionResult | null;
758
925
  }>;
759
- evaluateResults(warp: Warp, chain: WarpChain, tx: WarpAdapterGenericRemoteTransaction): Promise<void>;
926
+ evaluateOutput(warp: Warp, actions: WarpChainAction[]): Promise<void>;
760
927
  private executeCollect;
928
+ private doHttpRequest;
929
+ private buildCollectResult;
930
+ private callHandler;
761
931
  }
762
932
 
763
933
  declare class WarpFactory {
@@ -767,8 +937,13 @@ declare class WarpFactory {
767
937
  private serializer;
768
938
  private cache;
769
939
  constructor(config: WarpClientConfig, adapters: Adapter[]);
770
- createExecutable(warp: Warp, actionIndex: number, inputs: string[]): Promise<WarpExecutable>;
771
- getChainInfoForAction(action: WarpAction, inputs?: string[]): Promise<WarpChainInfo>;
940
+ getSerializer(): WarpSerializer;
941
+ createExecutable(warp: Warp, actionIndex: number, inputs: string[], meta?: {
942
+ envs?: Record<string, any>;
943
+ queries?: Record<string, any>;
944
+ }): Promise<WarpExecutable>;
945
+ getChainInfoForWarp(warp: Warp, inputs?: string[]): Promise<WarpChainInfo>;
946
+ getStringTypedInputs(action: WarpAction, inputs: string[]): string[];
772
947
  getResolvedInputs(chain: WarpChain, action: WarpAction, inputArgs: string[]): Promise<ResolvedInput[]>;
773
948
  getModifiedInputs(inputs: ResolvedInput[]): ResolvedInput[];
774
949
  preprocessInput(chain: WarpChain, input: string): Promise<string>;
@@ -788,9 +963,9 @@ declare class WarpLinkBuilder {
788
963
  private readonly adapters;
789
964
  constructor(config: WarpClientConfig, adapters: Adapter[]);
790
965
  isValid(url: string): boolean;
791
- build(chain: WarpChain, type: WarpIdType, id: string): string;
966
+ build(chain: WarpChain, type: WarpIdentifierType, id: string): string;
792
967
  buildFromPrefixedIdentifier(identifier: string): string | null;
793
- generateQrCode(chain: WarpChain, type: WarpIdType, id: string, size?: number, background?: string, color?: string, logoColor?: string): QRCodeStyling;
968
+ generateQrCode(chain: WarpChain, type: WarpIdentifierType, id: string, size?: number, background?: string, color?: string, logoColor?: string): QRCodeStyling;
794
969
  }
795
970
 
796
971
  type DetectionResult = {
@@ -803,7 +978,7 @@ type DetectionResult = {
803
978
  };
804
979
  type DetectionResultFromHtml = {
805
980
  match: boolean;
806
- results: {
981
+ output: {
807
982
  url: string;
808
983
  warp: Warp;
809
984
  }[];
@@ -814,7 +989,7 @@ declare class WarpLinkDetecter {
814
989
  constructor(config: WarpClientConfig, adapters: Adapter[]);
815
990
  isValid(url: string): boolean;
816
991
  detectFromHtml(content: string): Promise<DetectionResultFromHtml>;
817
- detect(url: string, cache?: WarpCacheConfig): Promise<DetectionResult>;
992
+ detect(urlOrId: string, cache?: WarpCacheConfig): Promise<DetectionResult>;
818
993
  }
819
994
 
820
995
  declare class WarpClient {
@@ -826,59 +1001,70 @@ declare class WarpClient {
826
1001
  addAdapter(adapter: Adapter): WarpClient;
827
1002
  createExecutor(handlers?: ExecutionHandlers): WarpExecutor;
828
1003
  detectWarp(urlOrId: string, cache?: WarpCacheConfig): Promise<DetectionResult>;
829
- executeWarp(warpOrIdentifierOrUrl: string | Warp, inputs: string[], handlers?: ExecutionHandlers, options?: {
1004
+ executeWarp(warpOrIdentifierOrUrl: string | Warp, inputs: string[], handlers?: ExecutionHandlers, params?: {
830
1005
  cache?: WarpCacheConfig;
1006
+ queries?: Record<string, any>;
831
1007
  }): Promise<{
832
- tx: WarpAdapterGenericTransaction | null;
1008
+ txs: WarpAdapterGenericTransaction[];
833
1009
  chain: WarpChainInfo | null;
834
- evaluateResults: (remoteTx: WarpAdapterGenericRemoteTransaction) => Promise<void>;
1010
+ immediateExecutions: WarpActionExecutionResult[];
1011
+ evaluateOutput: (remoteTxs: WarpAdapterGenericRemoteTransaction[]) => Promise<void>;
835
1012
  }>;
836
- createInscriptionTransaction(chain: WarpChain, warp: Warp): WarpAdapterGenericTransaction;
1013
+ createInscriptionTransaction(chain: WarpChain, warp: Warp): Promise<WarpAdapterGenericTransaction>;
837
1014
  createFromTransaction(chain: WarpChain, tx: WarpAdapterGenericRemoteTransaction, validate?: boolean): Promise<Warp>;
838
1015
  createFromTransactionHash(hash: string, cache?: WarpCacheConfig): Promise<Warp | null>;
839
- signMessage(chain: WarpChain, message: string, privateKey: string): Promise<string>;
1016
+ signMessage(chain: WarpChain, message: string): Promise<string>;
1017
+ getActions(chain: WarpChain, ids: string[], awaitCompleted?: boolean): Promise<WarpChainAction[]>;
840
1018
  getExplorer(chain: WarpChain): AdapterWarpExplorer;
841
- getResults(chain: WarpChain): AdapterWarpResults;
1019
+ getOutput(chain: WarpChain): AdapterWarpOutput;
842
1020
  getRegistry(chain: WarpChain): Promise<AdapterWarpRegistry>;
843
1021
  getDataLoader(chain: WarpChain): AdapterWarpDataLoader;
1022
+ getWallet(chain: WarpChain): AdapterWarpWallet;
844
1023
  get factory(): WarpFactory;
845
1024
  get index(): WarpIndex;
846
1025
  get linkBuilder(): WarpLinkBuilder;
847
1026
  createBuilder(chain: WarpChain): CombinedWarpBuilder;
848
1027
  createAbiBuilder(chain: WarpChain): AdapterWarpAbiBuilder;
849
1028
  createBrandBuilder(chain: WarpChain): AdapterWarpBrandBuilder;
1029
+ createSerializer(chain: WarpChain): AdapterWarpSerializer;
1030
+ resolveText(warpText: WarpText): string;
850
1031
  }
851
1032
 
852
1033
  declare class WarpInterpolator {
853
1034
  private config;
854
1035
  private adapter;
855
1036
  constructor(config: WarpClientConfig, adapter: Adapter);
856
- apply(config: WarpClientConfig, warp: Warp): Promise<Warp>;
1037
+ apply(config: WarpClientConfig, warp: Warp, meta?: {
1038
+ envs?: Record<string, any>;
1039
+ queries?: Record<string, any>;
1040
+ }): Promise<Warp>;
857
1041
  applyGlobals(config: WarpClientConfig, warp: Warp): Promise<Warp>;
858
- applyVars(config: WarpClientConfig, warp: Warp): Warp;
1042
+ applyVars(config: WarpClientConfig, warp: Warp, meta?: {
1043
+ envs?: Record<string, any>;
1044
+ queries?: Record<string, any>;
1045
+ }): Warp;
859
1046
  private applyRootGlobals;
860
1047
  private applyActionGlobals;
1048
+ applyInputs(text: string, resolvedInputs: ResolvedInput[], serializer: WarpSerializer): string;
861
1049
  }
862
1050
 
863
1051
  declare class WarpLogger {
864
1052
  private static isTestEnv;
1053
+ static debug(...args: any[]): void;
865
1054
  static info(...args: any[]): void;
866
1055
  static warn(...args: any[]): void;
867
1056
  static error(...args: any[]): void;
868
1057
  }
869
1058
 
870
- declare class WarpSerializer {
871
- private typeRegistry;
872
- setTypeRegistry(typeRegistry: WarpTypeRegistry): void;
873
- nativeToString(type: WarpActionInputType, value: WarpNativeValue): string;
874
- stringToNative(value: string): [WarpActionInputType, WarpNativeValue];
875
- }
876
-
877
- declare class WarpTypeRegistryImpl implements WarpTypeRegistry {
1059
+ declare class WarpTypeRegistry implements AdapterTypeRegistry {
878
1060
  private typeHandlers;
1061
+ private typeAliases;
879
1062
  registerType(typeName: string, handler: WarpTypeHandler): void;
1063
+ registerTypeAlias(typeName: string, alias: string): void;
880
1064
  hasType(typeName: string): boolean;
881
1065
  getHandler(typeName: string): WarpTypeHandler | undefined;
1066
+ getAlias(typeName: string): string | undefined;
1067
+ resolveType(typeName: string): string;
882
1068
  getRegisteredTypes(): string[];
883
1069
  }
884
1070
 
@@ -891,10 +1077,11 @@ declare class WarpValidator {
891
1077
  private config;
892
1078
  constructor(config: WarpClientConfig);
893
1079
  validate(warp: Warp): Promise<ValidationResult>;
1080
+ private validatePrimaryAction;
894
1081
  private validateMaxOneValuePosition;
895
1082
  private validateVariableNamesAndResultNamesUppercase;
896
1083
  private validateAbiIsSetIfApplicable;
897
1084
  private validateSchema;
898
1085
  }
899
1086
 
900
- 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, 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 WarpBrandUrls, WarpBuilder, WarpCache, type WarpCacheConfig, WarpCacheKey, type WarpChain, type WarpChainAccount, type WarpChainAction, type WarpChainActionStatus, type WarpChainAsset, type WarpChainAssetValue, type WarpChainEnv, type WarpChainInfo, WarpChainName, WarpClient, type WarpClientConfig, type WarpCollectAction, WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractVerification, type WarpDataLoaderOptions, 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, buildNestedPayload, bytesToBase64, bytesToHex, createAuthHeaders, createAuthMessage, createCryptoProvider, createHttpAuthHeaders, createSignableMessage, evaluateResultsCommon, extractCollectResults, extractIdentifierInfoFromUrl, findWarpAdapterByPrefix, findWarpAdapterForChain, findWarpExecutableAction, getCryptoProvider, getLatestProtocolIdentifier, getNextInfo, getProviderConfig, getProviderUrl, getRandomBytes, getRandomHex, getWarpActionByIndex, getWarpInfoFromIdentifier, hasInputPrefix, hex, mergeNestedPayload, parseResultsOutIndex, parseSignedMessage, replacePlaceholders, setCryptoProvider, shiftBigintBy, splitInput, string, testCryptoAvailability, toPreviewText, u16, u32, u64, u8, validateSignedMessage };
1087
+ export { type Adapter, type AdapterFactory, type AdapterTypeRegistry, type AdapterWarpAbiBuilder, type AdapterWarpBrandBuilder, type AdapterWarpBuilder, type AdapterWarpDataLoader, type AdapterWarpExecutor, type AdapterWarpExplorer, type AdapterWarpOutput, type AdapterWarpRegistry, type AdapterWarpSerializer, type AdapterWarpWallet, type BaseWarpActionInputType, type BaseWarpBuilder, BrowserCryptoProvider, CacheTtl, type ClientIndexConfig, type ClientTransformConfig, type CodecFunc, type CombinedWarpBuilder, type CryptoProvider, type DetectionResult, type DetectionResultFromHtml, type ExecutionHandlers, type HttpAuthHeaders, type InterpolationBag, NodeCryptoProvider, type ProtocolName, type ResolvedInput, type SignableMessage, type TransformRunner, WARP_LANGUAGES, type Warp, type WarpAbi, type WarpAbiContents, type WarpAction, type WarpActionExecutionResult, type WarpActionExecutionStatus, type WarpActionIndex, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputSource, type WarpActionInputType, type WarpActionType, type WarpAdapterGenericRemoteTransaction, type WarpAdapterGenericTransaction, type WarpAdapterGenericType, type WarpAdapterGenericValue, type WarpAlert, type WarpAlertName, type WarpAlerts, type WarpBrand, WarpBrandBuilder, type WarpBrandColors, type WarpBrandCta, type WarpBrandLogo, type WarpBrandLogoThemed, type WarpBrandUrls, WarpBuilder, WarpCache, type WarpCacheConfig, WarpCacheKey, type WarpChain, type WarpChainAccount, type WarpChainAction, type WarpChainActionStatus, type WarpChainAsset, type WarpChainAssetValue, type WarpChainEnv, type WarpChainInfo, WarpChainName, WarpClient, type WarpClientConfig, type WarpCollectAction, type WarpCollectDestination, type WarpCollectDestinationHttp, WarpConfig, WarpConstants, type WarpContract, type WarpContractAction, type WarpContractVerification, type WarpDataLoaderOptions, type WarpExecutable, type WarpExecutionMessages, type WarpExecutionNextInfo, type WarpExecutionOutput, WarpExecutor, type WarpExplorerName, WarpFactory, type WarpI18nText, type WarpIdentifierType, WarpIndex, WarpInputTypes, WarpInterpolator, type WarpLinkAction, WarpLinkBuilder, WarpLinkDetecter, type WarpLocale, WarpLogger, type WarpMessageName, type WarpMeta, type WarpNativeValue, type WarpOutputName, WarpProtocolVersions, type WarpProviderConfig, type WarpProviderPreferences, type WarpQueryAction, type WarpRegistryConfigInfo, type WarpRegistryInfo, type WarpResulutionPath, type WarpSearchHit, type WarpSearchResult, type WarpSecret, WarpSerializer, type WarpStructValue, type WarpText, type WarpTransferAction, type WarpTrustStatus, type WarpTypeHandler, WarpTypeRegistry, type WarpUserWallets, WarpValidator, type WarpVarPlaceholder, type WarpWalletDetails, address, applyOutputToMessages, asset, biguint, bool, buildNestedPayload, bytesToBase64, bytesToHex, createAuthHeaders, createAuthMessage, createCryptoProvider, createHttpAuthHeaders, createSignableMessage, createWarpI18nText, createWarpIdentifier, evaluateOutputCommon, extractCollectOutput, extractIdentifierInfoFromUrl, extractQueryStringFromIdentifier, extractQueryStringFromUrl, extractWarpSecrets, findWarpAdapterForChain, getCryptoProvider, getEventNameFromWarp, getLatestProtocolIdentifier, getNextInfo, getProviderConfig, getRandomBytes, getRandomHex, getWarpActionByIndex, getWarpBrandLogoUrl, getWarpInfoFromIdentifier, getWarpPrimaryAction, getWarpWalletAddress, getWarpWalletAddressFromConfig, getWarpWalletMnemonic, getWarpWalletMnemonicFromConfig, getWarpWalletPrivateKey, getWarpWalletPrivateKeyFromConfig, hasInputPrefix, hex, isWarpActionAutoExecute, isWarpI18nText, mergeNestedPayload, option, parseOutputOutIndex, parseSignedMessage, replacePlaceholders, resolveWarpText, safeWindow, setCryptoProvider, shiftBigintBy, splitInput, string, struct, testCryptoAvailability, toPreviewText, tuple, uint16, uint32, uint64, uint8, validateSignedMessage, vector };