@vleap/warps 3.0.0-beta.184 → 3.0.0-beta.185
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 +126 -127
- package/dist/index.d.ts +126 -127
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,86 @@
|
|
|
1
1
|
import QRCodeStyling from 'qr-code-styling';
|
|
2
2
|
|
|
3
|
+
declare enum WarpChainName {
|
|
4
|
+
Multiversx = "multiversx",
|
|
5
|
+
Vibechain = "vibechain",
|
|
6
|
+
Sui = "sui",
|
|
7
|
+
Ethereum = "ethereum",
|
|
8
|
+
Base = "base",
|
|
9
|
+
Arbitrum = "arbitrum",
|
|
10
|
+
Somnia = "somnia",
|
|
11
|
+
Fastset = "fastset",
|
|
12
|
+
Solana = "solana",
|
|
13
|
+
Near = "near"
|
|
14
|
+
}
|
|
15
|
+
declare const WarpConstants: {
|
|
16
|
+
HttpProtocolPrefix: string;
|
|
17
|
+
IdentifierParamName: string;
|
|
18
|
+
IdentifierParamSeparator: string;
|
|
19
|
+
IdentifierChainDefault: WarpChainName;
|
|
20
|
+
IdentifierType: {
|
|
21
|
+
Alias: WarpIdentifierType;
|
|
22
|
+
Hash: WarpIdentifierType;
|
|
23
|
+
};
|
|
24
|
+
IdentifierAliasMarker: string;
|
|
25
|
+
Globals: {
|
|
26
|
+
UserWallet: {
|
|
27
|
+
Placeholder: string;
|
|
28
|
+
Accessor: (bag: InterpolationBag) => string | WarpWalletDetails | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
UserWalletPublicKey: {
|
|
31
|
+
Placeholder: string;
|
|
32
|
+
Accessor: (bag: InterpolationBag) => string | null;
|
|
33
|
+
};
|
|
34
|
+
ChainApiUrl: {
|
|
35
|
+
Placeholder: string;
|
|
36
|
+
Accessor: (bag: InterpolationBag) => string;
|
|
37
|
+
};
|
|
38
|
+
ChainAddressHrp: {
|
|
39
|
+
Placeholder: string;
|
|
40
|
+
Accessor: (bag: InterpolationBag) => string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
Vars: {
|
|
44
|
+
Query: string;
|
|
45
|
+
Env: string;
|
|
46
|
+
};
|
|
47
|
+
ArgParamsSeparator: string;
|
|
48
|
+
ArgCompositeSeparator: string;
|
|
49
|
+
ArgListSeparator: string;
|
|
50
|
+
ArgStructSeparator: string;
|
|
51
|
+
Transform: {
|
|
52
|
+
Prefix: string;
|
|
53
|
+
};
|
|
54
|
+
Source: {
|
|
55
|
+
UserWallet: string;
|
|
56
|
+
};
|
|
57
|
+
Position: {
|
|
58
|
+
Payload: string;
|
|
59
|
+
};
|
|
60
|
+
Alerts: {
|
|
61
|
+
TriggerEventPrefix: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
declare const WarpInputTypes: {
|
|
65
|
+
Option: string;
|
|
66
|
+
Vector: string;
|
|
67
|
+
Tuple: string;
|
|
68
|
+
Struct: string;
|
|
69
|
+
String: string;
|
|
70
|
+
Uint8: string;
|
|
71
|
+
Uint16: string;
|
|
72
|
+
Uint32: string;
|
|
73
|
+
Uint64: string;
|
|
74
|
+
Uint128: string;
|
|
75
|
+
Uint256: string;
|
|
76
|
+
Biguint: string;
|
|
77
|
+
Bool: string;
|
|
78
|
+
Address: string;
|
|
79
|
+
Asset: string;
|
|
80
|
+
Hex: string;
|
|
81
|
+
};
|
|
82
|
+
declare const safeWindow: Window;
|
|
83
|
+
|
|
3
84
|
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
85
|
type WarpText = string | WarpI18nText;
|
|
5
86
|
type WarpI18nText = {
|
|
@@ -141,7 +222,7 @@ type WarpWalletDetails = {
|
|
|
141
222
|
privateKey?: string | null;
|
|
142
223
|
externalId?: string | null;
|
|
143
224
|
};
|
|
144
|
-
type WarpUserWallets = Record<
|
|
225
|
+
type WarpUserWallets = Record<WarpChainName, WarpWalletDetails | string | null>;
|
|
145
226
|
type WarpProviderPreferences = Partial<Record<WarpChainEnv, string | WarpProviderConfig>>;
|
|
146
227
|
type WarpProviderConfig = {
|
|
147
228
|
url: string;
|
|
@@ -159,11 +240,11 @@ type WarpClientConfig = {
|
|
|
159
240
|
preferences?: {
|
|
160
241
|
locale?: WarpLocale;
|
|
161
242
|
theme?: WarpTheme;
|
|
162
|
-
explorers?: Record<
|
|
163
|
-
providers?: Record<
|
|
243
|
+
explorers?: Partial<Record<WarpChainName, WarpExplorerName>>;
|
|
244
|
+
providers?: Partial<Record<WarpChainName, WarpProviderPreferences>>;
|
|
164
245
|
};
|
|
165
|
-
walletProviders?: Record<
|
|
166
|
-
fallback?:
|
|
246
|
+
walletProviders?: Partial<Record<WarpChainName, Partial<Record<WarpWalletProvider, WalletProviderFactory>>>>;
|
|
247
|
+
fallback?: WarpChainName;
|
|
167
248
|
schema?: {
|
|
168
249
|
warp?: string;
|
|
169
250
|
brand?: string;
|
|
@@ -298,8 +379,8 @@ interface AdapterWarpWallet {
|
|
|
298
379
|
signMessage(message: string): Promise<string>;
|
|
299
380
|
sendTransactions(txs: WarpAdapterGenericTransaction[]): Promise<string[]>;
|
|
300
381
|
sendTransaction(tx: WarpAdapterGenericTransaction): Promise<string>;
|
|
301
|
-
importFromMnemonic(
|
|
302
|
-
importFromPrivateKey(
|
|
382
|
+
importFromMnemonic(mnemonic: string): Promise<WarpWalletDetails>;
|
|
383
|
+
importFromPrivateKey(privateKey: string): Promise<WarpWalletDetails>;
|
|
303
384
|
export(provider: WarpWalletProvider): Promise<WarpWalletDetails>;
|
|
304
385
|
generate(provider: WarpWalletProvider): Promise<WarpWalletDetails>;
|
|
305
386
|
getAddress(): string | null;
|
|
@@ -308,7 +389,7 @@ interface AdapterWarpWallet {
|
|
|
308
389
|
}
|
|
309
390
|
|
|
310
391
|
type WarpChainAccount = {
|
|
311
|
-
chain:
|
|
392
|
+
chain: WarpChainName;
|
|
312
393
|
address: string;
|
|
313
394
|
balance: bigint;
|
|
314
395
|
};
|
|
@@ -319,7 +400,7 @@ type WarpChainAssetValue = {
|
|
|
319
400
|
type WarpChainAssetLogoThemed = Record<WarpTheme, string>;
|
|
320
401
|
type WarpChainAssetLogo = string | WarpChainAssetLogoThemed | null;
|
|
321
402
|
type WarpChainAsset = {
|
|
322
|
-
chain:
|
|
403
|
+
chain: WarpChainName;
|
|
323
404
|
identifier: string;
|
|
324
405
|
name: string;
|
|
325
406
|
symbol: string;
|
|
@@ -330,7 +411,7 @@ type WarpChainAsset = {
|
|
|
330
411
|
supply?: bigint;
|
|
331
412
|
};
|
|
332
413
|
type WarpChainAction = {
|
|
333
|
-
chain:
|
|
414
|
+
chain: WarpChainName;
|
|
334
415
|
id: string;
|
|
335
416
|
sender: string;
|
|
336
417
|
receiver: string;
|
|
@@ -343,12 +424,11 @@ type WarpChainAction = {
|
|
|
343
424
|
};
|
|
344
425
|
type WarpChainActionStatus = 'pending' | 'success' | 'failed';
|
|
345
426
|
|
|
346
|
-
type WarpChain = string;
|
|
347
427
|
type WarpExplorerName = string;
|
|
348
428
|
type WarpChainInfoLogoThemed = Record<WarpTheme, string>;
|
|
349
429
|
type WarpChainInfoLogo = string | WarpChainInfoLogoThemed;
|
|
350
430
|
type WarpChainInfo = {
|
|
351
|
-
name:
|
|
431
|
+
name: WarpChainName;
|
|
352
432
|
displayName: string;
|
|
353
433
|
chainId: string;
|
|
354
434
|
blockTime: number;
|
|
@@ -364,7 +444,7 @@ type WarpResulutionPath = string;
|
|
|
364
444
|
type WarpMessageName = string;
|
|
365
445
|
type Warp = {
|
|
366
446
|
protocol: string;
|
|
367
|
-
chain?:
|
|
447
|
+
chain?: WarpChainName;
|
|
368
448
|
name: string;
|
|
369
449
|
title: WarpText;
|
|
370
450
|
description: WarpText | null;
|
|
@@ -381,7 +461,7 @@ type Warp = {
|
|
|
381
461
|
meta?: WarpMeta;
|
|
382
462
|
};
|
|
383
463
|
type WarpMeta = {
|
|
384
|
-
chain:
|
|
464
|
+
chain: WarpChainName;
|
|
385
465
|
identifier: string;
|
|
386
466
|
query: string | null;
|
|
387
467
|
hash: string;
|
|
@@ -577,87 +657,6 @@ declare const WarpConfig: {
|
|
|
577
657
|
AvailableActionInputPositions: WarpActionInputPosition[];
|
|
578
658
|
};
|
|
579
659
|
|
|
580
|
-
declare enum WarpChainName {
|
|
581
|
-
Multiversx = "multiversx",
|
|
582
|
-
Vibechain = "vibechain",
|
|
583
|
-
Sui = "sui",
|
|
584
|
-
Ethereum = "ethereum",
|
|
585
|
-
Base = "base",
|
|
586
|
-
Arbitrum = "arbitrum",
|
|
587
|
-
Somnia = "somnia",
|
|
588
|
-
Fastset = "fastset",
|
|
589
|
-
Solana = "solana",
|
|
590
|
-
Near = "near"
|
|
591
|
-
}
|
|
592
|
-
declare const WarpConstants: {
|
|
593
|
-
HttpProtocolPrefix: string;
|
|
594
|
-
IdentifierParamName: string;
|
|
595
|
-
IdentifierParamSeparator: string;
|
|
596
|
-
IdentifierChainDefault: string;
|
|
597
|
-
IdentifierType: {
|
|
598
|
-
Alias: WarpIdentifierType;
|
|
599
|
-
Hash: WarpIdentifierType;
|
|
600
|
-
};
|
|
601
|
-
IdentifierAliasMarker: string;
|
|
602
|
-
Globals: {
|
|
603
|
-
UserWallet: {
|
|
604
|
-
Placeholder: string;
|
|
605
|
-
Accessor: (bag: InterpolationBag) => string | WarpWalletDetails | null | undefined;
|
|
606
|
-
};
|
|
607
|
-
UserWalletPublicKey: {
|
|
608
|
-
Placeholder: string;
|
|
609
|
-
Accessor: (bag: InterpolationBag) => string | null;
|
|
610
|
-
};
|
|
611
|
-
ChainApiUrl: {
|
|
612
|
-
Placeholder: string;
|
|
613
|
-
Accessor: (bag: InterpolationBag) => string;
|
|
614
|
-
};
|
|
615
|
-
ChainAddressHrp: {
|
|
616
|
-
Placeholder: string;
|
|
617
|
-
Accessor: (bag: InterpolationBag) => string;
|
|
618
|
-
};
|
|
619
|
-
};
|
|
620
|
-
Vars: {
|
|
621
|
-
Query: string;
|
|
622
|
-
Env: string;
|
|
623
|
-
};
|
|
624
|
-
ArgParamsSeparator: string;
|
|
625
|
-
ArgCompositeSeparator: string;
|
|
626
|
-
ArgListSeparator: string;
|
|
627
|
-
ArgStructSeparator: string;
|
|
628
|
-
Transform: {
|
|
629
|
-
Prefix: string;
|
|
630
|
-
};
|
|
631
|
-
Source: {
|
|
632
|
-
UserWallet: string;
|
|
633
|
-
};
|
|
634
|
-
Position: {
|
|
635
|
-
Payload: string;
|
|
636
|
-
};
|
|
637
|
-
Alerts: {
|
|
638
|
-
TriggerEventPrefix: string;
|
|
639
|
-
};
|
|
640
|
-
};
|
|
641
|
-
declare const WarpInputTypes: {
|
|
642
|
-
Option: string;
|
|
643
|
-
Vector: string;
|
|
644
|
-
Tuple: string;
|
|
645
|
-
Struct: string;
|
|
646
|
-
String: string;
|
|
647
|
-
Uint8: string;
|
|
648
|
-
Uint16: string;
|
|
649
|
-
Uint32: string;
|
|
650
|
-
Uint64: string;
|
|
651
|
-
Uint128: string;
|
|
652
|
-
Uint256: string;
|
|
653
|
-
Biguint: string;
|
|
654
|
-
Bool: string;
|
|
655
|
-
Address: string;
|
|
656
|
-
Asset: string;
|
|
657
|
-
Hex: string;
|
|
658
|
-
};
|
|
659
|
-
declare const safeWindow: Window;
|
|
660
|
-
|
|
661
660
|
declare const withAdapterFallback: (factory: ChainAdapterFactory, fallbackFactory: ChainAdapterFactory) => ChainAdapterFactory;
|
|
662
661
|
|
|
663
662
|
declare const getEventNameFromWarp: (warp: Warp, alertName: string) => string | null;
|
|
@@ -689,7 +688,7 @@ declare function createCryptoProvider(): CryptoProvider;
|
|
|
689
688
|
|
|
690
689
|
declare const extractWarpSecrets: (warp: Warp) => WarpSecret[];
|
|
691
690
|
|
|
692
|
-
declare const findWarpAdapterForChain: (chain:
|
|
691
|
+
declare const findWarpAdapterForChain: (chain: WarpChainName, adapters: ChainAdapter[]) => ChainAdapter;
|
|
693
692
|
declare const getLatestProtocolIdentifier: (name: ProtocolName) => string;
|
|
694
693
|
declare const getWarpActionByIndex: (warp: Warp, index: number) => WarpAction;
|
|
695
694
|
declare const getWarpPrimaryAction: (warp: Warp) => {
|
|
@@ -737,15 +736,15 @@ declare const createWarpI18nText: (translations: Record<string, string>) => Warp
|
|
|
737
736
|
|
|
738
737
|
declare const cleanWarpIdentifier: (identifier: string) => string;
|
|
739
738
|
declare const isEqualWarpIdentifier: (identifier1: string | null | undefined, identifier2: string | null | undefined) => boolean;
|
|
740
|
-
declare const createWarpIdentifier: (chain:
|
|
739
|
+
declare const createWarpIdentifier: (chain: WarpChainName, type: WarpIdentifierType, identifier: string) => string;
|
|
741
740
|
declare const getWarpInfoFromIdentifier: (prefixedIdentifier: string) => {
|
|
742
|
-
chain:
|
|
741
|
+
chain: WarpChainName;
|
|
743
742
|
type: WarpIdentifierType;
|
|
744
743
|
identifier: string;
|
|
745
744
|
identifierBase: string;
|
|
746
745
|
} | null;
|
|
747
746
|
declare const extractIdentifierInfoFromUrl: (url: string) => {
|
|
748
|
-
chain:
|
|
747
|
+
chain: WarpChainName;
|
|
749
748
|
type: WarpIdentifierType;
|
|
750
749
|
identifier: string;
|
|
751
750
|
identifierBase: string;
|
|
@@ -830,7 +829,7 @@ declare function extractResolvedInputValues(inputs: ResolvedInput[]): string[];
|
|
|
830
829
|
*/
|
|
831
830
|
declare function buildMappedOutput(inputs: ResolvedInput[], serializer: WarpSerializer): Record<string, any>;
|
|
832
831
|
|
|
833
|
-
declare const getProviderConfig: (config: WarpClientConfig, chain:
|
|
832
|
+
declare const getProviderConfig: (config: WarpClientConfig, chain: WarpChainName, env: WarpChainEnv, defaultProvider: string) => WarpProviderConfig;
|
|
834
833
|
|
|
835
834
|
/**
|
|
836
835
|
* Signing utilities for creating and validating signed messages
|
|
@@ -884,18 +883,18 @@ declare function validateSignedMessage(expiresAt: string): boolean;
|
|
|
884
883
|
*/
|
|
885
884
|
declare function parseSignedMessage(message: string): SignableMessage;
|
|
886
885
|
|
|
887
|
-
declare const getWalletFromConfigOrFail: (config: WarpClientConfig, chain:
|
|
886
|
+
declare const getWalletFromConfigOrFail: (config: WarpClientConfig, chain: WarpChainName) => string | WarpWalletDetails;
|
|
888
887
|
declare const getWarpWalletAddress: (wallet: WarpWalletDetails | string | null | undefined) => string | null;
|
|
889
|
-
declare const getWarpWalletAddressFromConfig: (config: WarpClientConfig, chain:
|
|
888
|
+
declare const getWarpWalletAddressFromConfig: (config: WarpClientConfig, chain: WarpChainName) => string | null;
|
|
890
889
|
declare const getWarpWalletPrivateKey: (wallet: WarpWalletDetails | string | null | undefined) => string | null;
|
|
891
890
|
declare const getWarpWalletMnemonic: (wallet: WarpWalletDetails | string | null | undefined) => string | null;
|
|
892
891
|
declare const getWarpWalletExternalId: (wallet: WarpWalletDetails | string | null | undefined) => string | null;
|
|
893
|
-
declare const getWarpWalletPrivateKeyFromConfig: (config: WarpClientConfig, chain:
|
|
894
|
-
declare const getWarpWalletMnemonicFromConfig: (config: WarpClientConfig, chain:
|
|
895
|
-
declare const getWarpWalletExternalIdFromConfig: (config: WarpClientConfig, chain:
|
|
896
|
-
declare const getWarpWalletExternalIdFromConfigOrFail: (config: WarpClientConfig, chain:
|
|
892
|
+
declare const getWarpWalletPrivateKeyFromConfig: (config: WarpClientConfig, chain: WarpChainName) => string | null;
|
|
893
|
+
declare const getWarpWalletMnemonicFromConfig: (config: WarpClientConfig, chain: WarpChainName) => string | null;
|
|
894
|
+
declare const getWarpWalletExternalIdFromConfig: (config: WarpClientConfig, chain: WarpChainName) => string | null;
|
|
895
|
+
declare const getWarpWalletExternalIdFromConfigOrFail: (config: WarpClientConfig, chain: WarpChainName) => string;
|
|
897
896
|
declare const isWarpWalletReadOnly: (wallet: WarpWalletDetails | string | null | undefined) => boolean;
|
|
898
|
-
declare const setWarpWalletInConfig: (config: WarpClientConfig, chain:
|
|
897
|
+
declare const setWarpWalletInConfig: (config: WarpClientConfig, chain: WarpChainName, wallet: WarpWalletDetails) => void;
|
|
899
898
|
|
|
900
899
|
interface WalletCache {
|
|
901
900
|
address: string | null;
|
|
@@ -948,7 +947,7 @@ declare class WarpBuilder implements BaseWarpBuilder {
|
|
|
948
947
|
constructor(config: WarpClientConfig);
|
|
949
948
|
createFromRaw(encoded: string, validate?: boolean): Promise<Warp>;
|
|
950
949
|
createFromUrl(url: string): Promise<Warp>;
|
|
951
|
-
setChain(chain:
|
|
950
|
+
setChain(chain: WarpChainName): WarpBuilder;
|
|
952
951
|
setName(name: string): WarpBuilder;
|
|
953
952
|
setTitle(title: WarpText): WarpBuilder;
|
|
954
953
|
setDescription(description: WarpText | null): WarpBuilder;
|
|
@@ -1083,7 +1082,7 @@ declare class WarpFactory {
|
|
|
1083
1082
|
}): Promise<WarpExecutable>;
|
|
1084
1083
|
getChainInfoForWarp(warp: Warp, inputs?: string[]): Promise<WarpChainInfo>;
|
|
1085
1084
|
getStringTypedInputs(action: WarpAction, inputs: string[]): string[];
|
|
1086
|
-
getResolvedInputs(chain:
|
|
1085
|
+
getResolvedInputs(chain: WarpChainName, action: WarpAction, inputArgs: string[], interpolator?: WarpInterpolator): Promise<ResolvedInput[]>;
|
|
1087
1086
|
private requiresPayloadInputs;
|
|
1088
1087
|
private resolveActionInputs;
|
|
1089
1088
|
getModifiedInputs(inputs: ResolvedInput[]): Promise<ResolvedInput[]>;
|
|
@@ -1120,7 +1119,7 @@ declare class WarpFactory {
|
|
|
1120
1119
|
* @returns Context object with all previous inputs accessible by name/as
|
|
1121
1120
|
*/
|
|
1122
1121
|
private buildInputContext;
|
|
1123
|
-
preprocessInput(chain:
|
|
1122
|
+
preprocessInput(chain: WarpChainName, input: string): Promise<string>;
|
|
1124
1123
|
private getDestinationFromAction;
|
|
1125
1124
|
private getPreparedArgs;
|
|
1126
1125
|
private tryGetChainFromInputs;
|
|
@@ -1137,16 +1136,16 @@ declare class WarpLinkBuilder {
|
|
|
1137
1136
|
private readonly adapters;
|
|
1138
1137
|
constructor(config: WarpClientConfig, adapters: ChainAdapter[]);
|
|
1139
1138
|
isValid(url: string): boolean;
|
|
1140
|
-
build(chain:
|
|
1139
|
+
build(chain: WarpChainName, type: WarpIdentifierType, id: string): string;
|
|
1141
1140
|
buildFromPrefixedIdentifier(identifier: string): string | null;
|
|
1142
|
-
generateQrCode(chain:
|
|
1141
|
+
generateQrCode(chain: WarpChainName, type: WarpIdentifierType, id: string, size?: number, background?: string, color?: string, logoColor?: string): QRCodeStyling;
|
|
1143
1142
|
}
|
|
1144
1143
|
|
|
1145
1144
|
type DetectionResult = {
|
|
1146
1145
|
match: boolean;
|
|
1147
1146
|
url: string;
|
|
1148
1147
|
warp: Warp | null;
|
|
1149
|
-
chain:
|
|
1148
|
+
chain: WarpChainName | null;
|
|
1150
1149
|
registryInfo: WarpRegistryInfo | null;
|
|
1151
1150
|
brand: WarpBrand | null;
|
|
1152
1151
|
};
|
|
@@ -1187,23 +1186,23 @@ declare class WarpClient {
|
|
|
1187
1186
|
evaluateOutput: (remoteTxs: WarpAdapterGenericRemoteTransaction[]) => Promise<void>;
|
|
1188
1187
|
resolvedInputs: string[];
|
|
1189
1188
|
}>;
|
|
1190
|
-
createInscriptionTransaction(chain:
|
|
1191
|
-
createFromTransaction(chain:
|
|
1189
|
+
createInscriptionTransaction(chain: WarpChainName, warp: Warp): Promise<WarpAdapterGenericTransaction>;
|
|
1190
|
+
createFromTransaction(chain: WarpChainName, tx: WarpAdapterGenericRemoteTransaction, validate?: boolean): Promise<Warp>;
|
|
1192
1191
|
createFromTransactionHash(hash: string, cache?: WarpCacheConfig): Promise<Warp | null>;
|
|
1193
|
-
signMessage(chain:
|
|
1194
|
-
getActions(chain:
|
|
1195
|
-
getExplorer(chain:
|
|
1196
|
-
getOutput(chain:
|
|
1197
|
-
getRegistry(chain:
|
|
1198
|
-
getDataLoader(chain:
|
|
1199
|
-
getWallet(chain:
|
|
1192
|
+
signMessage(chain: WarpChainName, message: string): Promise<string>;
|
|
1193
|
+
getActions(chain: WarpChainName, ids: string[], awaitCompleted?: boolean): Promise<WarpChainAction[]>;
|
|
1194
|
+
getExplorer(chain: WarpChainName): AdapterWarpExplorer;
|
|
1195
|
+
getOutput(chain: WarpChainName): AdapterWarpOutput;
|
|
1196
|
+
getRegistry(chain: WarpChainName): Promise<AdapterWarpRegistry>;
|
|
1197
|
+
getDataLoader(chain: WarpChainName): AdapterWarpDataLoader;
|
|
1198
|
+
getWallet(chain: WarpChainName): AdapterWarpWallet;
|
|
1200
1199
|
get factory(): WarpFactory;
|
|
1201
1200
|
get index(): WarpIndex;
|
|
1202
1201
|
get linkBuilder(): WarpLinkBuilder;
|
|
1203
|
-
createBuilder(chain:
|
|
1204
|
-
createAbiBuilder(chain:
|
|
1205
|
-
createBrandBuilder(chain:
|
|
1206
|
-
createSerializer(chain:
|
|
1202
|
+
createBuilder(chain: WarpChainName): CombinedWarpBuilder;
|
|
1203
|
+
createAbiBuilder(chain: WarpChainName): AdapterWarpAbiBuilder;
|
|
1204
|
+
createBrandBuilder(chain: WarpChainName): AdapterWarpBrandBuilder;
|
|
1205
|
+
createSerializer(chain: WarpChainName): AdapterWarpSerializer;
|
|
1207
1206
|
resolveText(warpText: WarpText): string;
|
|
1208
1207
|
}
|
|
1209
1208
|
|
|
@@ -1243,4 +1242,4 @@ declare class WarpValidator {
|
|
|
1243
1242
|
private validateSchema;
|
|
1244
1243
|
}
|
|
1245
1244
|
|
|
1246
|
-
export { 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 ChainAdapter, type ChainAdapterFactory, 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 WalletCache, type WalletProvider, type WalletProviderFactory, type Warp, type WarpAbi, type WarpAbiContents, type WarpAction, type WarpActionExecutionResult, type WarpActionExecutionStatus, type WarpActionIndex, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputPositionAssetObject, 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
|
|
1245
|
+
export { 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 ChainAdapter, type ChainAdapterFactory, 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 WalletCache, type WalletProvider, type WalletProviderFactory, type Warp, type WarpAbi, type WarpAbiContents, type WarpAction, type WarpActionExecutionResult, type WarpActionExecutionStatus, type WarpActionIndex, type WarpActionInput, type WarpActionInputModifier, type WarpActionInputPosition, type WarpActionInputPositionAssetObject, 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 WarpChainAccount, type WarpChainAction, type WarpChainActionStatus, type WarpChainAsset, type WarpChainAssetLogo, type WarpChainAssetLogoThemed, type WarpChainAssetValue, type WarpChainEnv, type WarpChainInfo, type WarpChainInfoLogo, type WarpChainInfoLogoThemed, 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 WarpMcpAction, type WarpMcpDestination, 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 WarpTheme, type WarpTransferAction, type WarpTrustStatus, type WarpTypeHandler, WarpTypeRegistry, type WarpUserWallets, WarpValidator, type WarpVarPlaceholder, type WarpWalletDetails, type WarpWalletProvider, address, applyOutputToMessages, asset, biguint, bool, buildMappedOutput, buildNestedPayload, bytesToBase64, bytesToHex, cleanWarpIdentifier, createAuthHeaders, createAuthMessage, createCryptoProvider, createDefaultWalletProvider, createHttpAuthHeaders, createSignableMessage, createWarpI18nText, createWarpIdentifier, evaluateOutputCommon, evaluateWhenCondition, extractCollectOutput, extractIdentifierInfoFromUrl, extractQueryStringFromIdentifier, extractQueryStringFromUrl, extractResolvedInputValues, extractWarpSecrets, findWarpAdapterForChain, getCryptoProvider, getEventNameFromWarp, getLatestProtocolIdentifier, getNextInfo, getProviderConfig, getRandomBytes, getRandomHex, getWalletFromConfigOrFail, getWarpActionByIndex, getWarpBrandLogoUrl, getWarpChainAssetLogoUrl, getWarpChainInfoLogoUrl, getWarpInfoFromIdentifier, getWarpPrimaryAction, getWarpWalletAddress, getWarpWalletAddressFromConfig, getWarpWalletExternalId, getWarpWalletExternalIdFromConfig, getWarpWalletExternalIdFromConfigOrFail, getWarpWalletMnemonic, getWarpWalletMnemonicFromConfig, getWarpWalletPrivateKey, getWarpWalletPrivateKeyFromConfig, handleX402Payment, hasInputPrefix, hex, initializeWalletCache, isEqualWarpIdentifier, isWarpActionAutoExecute, isWarpI18nText, isWarpWalletReadOnly, mergeNestedPayload, option, parseOutputOutIndex, parseSignedMessage, replacePlaceholders, replacePlaceholdersInWhenExpression, resolveWarpText, safeWindow, setCryptoProvider, setWarpWalletInConfig, shiftBigintBy, splitInput, string, struct, testCryptoAvailability, toInputPayloadValue, toPreviewText, tuple, uint16, uint32, uint64, uint8, validateSignedMessage, vector, withAdapterFallback };
|