@vleap/warps 3.0.0-beta.183 → 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 +134 -129
- package/dist/index.d.ts +134 -129
- 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 = {
|
|
@@ -126,12 +207,14 @@ interface WalletProvider {
|
|
|
126
207
|
getPublicKey(): Promise<string | null>;
|
|
127
208
|
signTransaction(tx: any): Promise<any>;
|
|
128
209
|
signMessage(message: string): Promise<string>;
|
|
129
|
-
|
|
130
|
-
|
|
210
|
+
importFromMnemonic(mnemonic: string): Promise<WarpWalletDetails>;
|
|
211
|
+
importFromPrivateKey(privateKey: string): Promise<WarpWalletDetails>;
|
|
212
|
+
export(): Promise<WarpWalletDetails>;
|
|
213
|
+
generate(): Promise<WarpWalletDetails>;
|
|
131
214
|
}
|
|
132
215
|
type WalletProviderFactory = (config: WarpClientConfig, chain: WarpChainInfo) => WalletProvider | null;
|
|
133
216
|
|
|
134
|
-
type WarpWalletProvider = 'mnemonic' | 'privateKey' | 'privy' | 'gaupa';
|
|
217
|
+
type WarpWalletProvider = 'mnemonic' | 'privateKey' | 'coinbase' | 'privy' | 'gaupa';
|
|
135
218
|
type WarpWalletDetails = {
|
|
136
219
|
provider: WarpWalletProvider;
|
|
137
220
|
address: string;
|
|
@@ -139,7 +222,7 @@ type WarpWalletDetails = {
|
|
|
139
222
|
privateKey?: string | null;
|
|
140
223
|
externalId?: string | null;
|
|
141
224
|
};
|
|
142
|
-
type WarpUserWallets = Record<
|
|
225
|
+
type WarpUserWallets = Record<WarpChainName, WarpWalletDetails | string | null>;
|
|
143
226
|
type WarpProviderPreferences = Partial<Record<WarpChainEnv, string | WarpProviderConfig>>;
|
|
144
227
|
type WarpProviderConfig = {
|
|
145
228
|
url: string;
|
|
@@ -151,16 +234,17 @@ type WarpClientConfig = {
|
|
|
151
234
|
currentUrl?: string;
|
|
152
235
|
vars?: Record<string, string | number>;
|
|
153
236
|
user?: {
|
|
237
|
+
id?: string;
|
|
154
238
|
wallets?: WarpUserWallets;
|
|
155
239
|
};
|
|
156
240
|
preferences?: {
|
|
157
241
|
locale?: WarpLocale;
|
|
158
242
|
theme?: WarpTheme;
|
|
159
|
-
explorers?: Record<
|
|
160
|
-
providers?: Record<
|
|
243
|
+
explorers?: Partial<Record<WarpChainName, WarpExplorerName>>;
|
|
244
|
+
providers?: Partial<Record<WarpChainName, WarpProviderPreferences>>;
|
|
161
245
|
};
|
|
162
|
-
walletProviders?: Record<
|
|
163
|
-
fallback?:
|
|
246
|
+
walletProviders?: Partial<Record<WarpChainName, Partial<Record<WarpWalletProvider, WalletProviderFactory>>>>;
|
|
247
|
+
fallback?: WarpChainName;
|
|
164
248
|
schema?: {
|
|
165
249
|
warp?: string;
|
|
166
250
|
brand?: string;
|
|
@@ -295,15 +379,17 @@ interface AdapterWarpWallet {
|
|
|
295
379
|
signMessage(message: string): Promise<string>;
|
|
296
380
|
sendTransactions(txs: WarpAdapterGenericTransaction[]): Promise<string[]>;
|
|
297
381
|
sendTransaction(tx: WarpAdapterGenericTransaction): Promise<string>;
|
|
298
|
-
|
|
299
|
-
|
|
382
|
+
importFromMnemonic(mnemonic: string): Promise<WarpWalletDetails>;
|
|
383
|
+
importFromPrivateKey(privateKey: string): Promise<WarpWalletDetails>;
|
|
384
|
+
export(provider: WarpWalletProvider): Promise<WarpWalletDetails>;
|
|
385
|
+
generate(provider: WarpWalletProvider): Promise<WarpWalletDetails>;
|
|
300
386
|
getAddress(): string | null;
|
|
301
387
|
getPublicKey(): string | null;
|
|
302
388
|
registerX402Handlers?(client: unknown): Promise<Record<string, () => void>>;
|
|
303
389
|
}
|
|
304
390
|
|
|
305
391
|
type WarpChainAccount = {
|
|
306
|
-
chain:
|
|
392
|
+
chain: WarpChainName;
|
|
307
393
|
address: string;
|
|
308
394
|
balance: bigint;
|
|
309
395
|
};
|
|
@@ -314,7 +400,7 @@ type WarpChainAssetValue = {
|
|
|
314
400
|
type WarpChainAssetLogoThemed = Record<WarpTheme, string>;
|
|
315
401
|
type WarpChainAssetLogo = string | WarpChainAssetLogoThemed | null;
|
|
316
402
|
type WarpChainAsset = {
|
|
317
|
-
chain:
|
|
403
|
+
chain: WarpChainName;
|
|
318
404
|
identifier: string;
|
|
319
405
|
name: string;
|
|
320
406
|
symbol: string;
|
|
@@ -325,7 +411,7 @@ type WarpChainAsset = {
|
|
|
325
411
|
supply?: bigint;
|
|
326
412
|
};
|
|
327
413
|
type WarpChainAction = {
|
|
328
|
-
chain:
|
|
414
|
+
chain: WarpChainName;
|
|
329
415
|
id: string;
|
|
330
416
|
sender: string;
|
|
331
417
|
receiver: string;
|
|
@@ -338,12 +424,11 @@ type WarpChainAction = {
|
|
|
338
424
|
};
|
|
339
425
|
type WarpChainActionStatus = 'pending' | 'success' | 'failed';
|
|
340
426
|
|
|
341
|
-
type WarpChain = string;
|
|
342
427
|
type WarpExplorerName = string;
|
|
343
428
|
type WarpChainInfoLogoThemed = Record<WarpTheme, string>;
|
|
344
429
|
type WarpChainInfoLogo = string | WarpChainInfoLogoThemed;
|
|
345
430
|
type WarpChainInfo = {
|
|
346
|
-
name:
|
|
431
|
+
name: WarpChainName;
|
|
347
432
|
displayName: string;
|
|
348
433
|
chainId: string;
|
|
349
434
|
blockTime: number;
|
|
@@ -359,7 +444,7 @@ type WarpResulutionPath = string;
|
|
|
359
444
|
type WarpMessageName = string;
|
|
360
445
|
type Warp = {
|
|
361
446
|
protocol: string;
|
|
362
|
-
chain?:
|
|
447
|
+
chain?: WarpChainName;
|
|
363
448
|
name: string;
|
|
364
449
|
title: WarpText;
|
|
365
450
|
description: WarpText | null;
|
|
@@ -376,7 +461,7 @@ type Warp = {
|
|
|
376
461
|
meta?: WarpMeta;
|
|
377
462
|
};
|
|
378
463
|
type WarpMeta = {
|
|
379
|
-
chain:
|
|
464
|
+
chain: WarpChainName;
|
|
380
465
|
identifier: string;
|
|
381
466
|
query: string | null;
|
|
382
467
|
hash: string;
|
|
@@ -572,87 +657,6 @@ declare const WarpConfig: {
|
|
|
572
657
|
AvailableActionInputPositions: WarpActionInputPosition[];
|
|
573
658
|
};
|
|
574
659
|
|
|
575
|
-
declare enum WarpChainName {
|
|
576
|
-
Multiversx = "multiversx",
|
|
577
|
-
Vibechain = "vibechain",
|
|
578
|
-
Sui = "sui",
|
|
579
|
-
Ethereum = "ethereum",
|
|
580
|
-
Base = "base",
|
|
581
|
-
Arbitrum = "arbitrum",
|
|
582
|
-
Somnia = "somnia",
|
|
583
|
-
Fastset = "fastset",
|
|
584
|
-
Solana = "solana",
|
|
585
|
-
Near = "near"
|
|
586
|
-
}
|
|
587
|
-
declare const WarpConstants: {
|
|
588
|
-
HttpProtocolPrefix: string;
|
|
589
|
-
IdentifierParamName: string;
|
|
590
|
-
IdentifierParamSeparator: string;
|
|
591
|
-
IdentifierChainDefault: string;
|
|
592
|
-
IdentifierType: {
|
|
593
|
-
Alias: WarpIdentifierType;
|
|
594
|
-
Hash: WarpIdentifierType;
|
|
595
|
-
};
|
|
596
|
-
IdentifierAliasMarker: string;
|
|
597
|
-
Globals: {
|
|
598
|
-
UserWallet: {
|
|
599
|
-
Placeholder: string;
|
|
600
|
-
Accessor: (bag: InterpolationBag) => string | WarpWalletDetails | null | undefined;
|
|
601
|
-
};
|
|
602
|
-
UserWalletPublicKey: {
|
|
603
|
-
Placeholder: string;
|
|
604
|
-
Accessor: (bag: InterpolationBag) => string | null;
|
|
605
|
-
};
|
|
606
|
-
ChainApiUrl: {
|
|
607
|
-
Placeholder: string;
|
|
608
|
-
Accessor: (bag: InterpolationBag) => string;
|
|
609
|
-
};
|
|
610
|
-
ChainAddressHrp: {
|
|
611
|
-
Placeholder: string;
|
|
612
|
-
Accessor: (bag: InterpolationBag) => string;
|
|
613
|
-
};
|
|
614
|
-
};
|
|
615
|
-
Vars: {
|
|
616
|
-
Query: string;
|
|
617
|
-
Env: string;
|
|
618
|
-
};
|
|
619
|
-
ArgParamsSeparator: string;
|
|
620
|
-
ArgCompositeSeparator: string;
|
|
621
|
-
ArgListSeparator: string;
|
|
622
|
-
ArgStructSeparator: string;
|
|
623
|
-
Transform: {
|
|
624
|
-
Prefix: string;
|
|
625
|
-
};
|
|
626
|
-
Source: {
|
|
627
|
-
UserWallet: string;
|
|
628
|
-
};
|
|
629
|
-
Position: {
|
|
630
|
-
Payload: string;
|
|
631
|
-
};
|
|
632
|
-
Alerts: {
|
|
633
|
-
TriggerEventPrefix: string;
|
|
634
|
-
};
|
|
635
|
-
};
|
|
636
|
-
declare const WarpInputTypes: {
|
|
637
|
-
Option: string;
|
|
638
|
-
Vector: string;
|
|
639
|
-
Tuple: string;
|
|
640
|
-
Struct: string;
|
|
641
|
-
String: string;
|
|
642
|
-
Uint8: string;
|
|
643
|
-
Uint16: string;
|
|
644
|
-
Uint32: string;
|
|
645
|
-
Uint64: string;
|
|
646
|
-
Uint128: string;
|
|
647
|
-
Uint256: string;
|
|
648
|
-
Biguint: string;
|
|
649
|
-
Bool: string;
|
|
650
|
-
Address: string;
|
|
651
|
-
Asset: string;
|
|
652
|
-
Hex: string;
|
|
653
|
-
};
|
|
654
|
-
declare const safeWindow: Window;
|
|
655
|
-
|
|
656
660
|
declare const withAdapterFallback: (factory: ChainAdapterFactory, fallbackFactory: ChainAdapterFactory) => ChainAdapterFactory;
|
|
657
661
|
|
|
658
662
|
declare const getEventNameFromWarp: (warp: Warp, alertName: string) => string | null;
|
|
@@ -684,7 +688,7 @@ declare function createCryptoProvider(): CryptoProvider;
|
|
|
684
688
|
|
|
685
689
|
declare const extractWarpSecrets: (warp: Warp) => WarpSecret[];
|
|
686
690
|
|
|
687
|
-
declare const findWarpAdapterForChain: (chain:
|
|
691
|
+
declare const findWarpAdapterForChain: (chain: WarpChainName, adapters: ChainAdapter[]) => ChainAdapter;
|
|
688
692
|
declare const getLatestProtocolIdentifier: (name: ProtocolName) => string;
|
|
689
693
|
declare const getWarpActionByIndex: (warp: Warp, index: number) => WarpAction;
|
|
690
694
|
declare const getWarpPrimaryAction: (warp: Warp) => {
|
|
@@ -732,15 +736,15 @@ declare const createWarpI18nText: (translations: Record<string, string>) => Warp
|
|
|
732
736
|
|
|
733
737
|
declare const cleanWarpIdentifier: (identifier: string) => string;
|
|
734
738
|
declare const isEqualWarpIdentifier: (identifier1: string | null | undefined, identifier2: string | null | undefined) => boolean;
|
|
735
|
-
declare const createWarpIdentifier: (chain:
|
|
739
|
+
declare const createWarpIdentifier: (chain: WarpChainName, type: WarpIdentifierType, identifier: string) => string;
|
|
736
740
|
declare const getWarpInfoFromIdentifier: (prefixedIdentifier: string) => {
|
|
737
|
-
chain:
|
|
741
|
+
chain: WarpChainName;
|
|
738
742
|
type: WarpIdentifierType;
|
|
739
743
|
identifier: string;
|
|
740
744
|
identifierBase: string;
|
|
741
745
|
} | null;
|
|
742
746
|
declare const extractIdentifierInfoFromUrl: (url: string) => {
|
|
743
|
-
chain:
|
|
747
|
+
chain: WarpChainName;
|
|
744
748
|
type: WarpIdentifierType;
|
|
745
749
|
identifier: string;
|
|
746
750
|
identifierBase: string;
|
|
@@ -825,7 +829,7 @@ declare function extractResolvedInputValues(inputs: ResolvedInput[]): string[];
|
|
|
825
829
|
*/
|
|
826
830
|
declare function buildMappedOutput(inputs: ResolvedInput[], serializer: WarpSerializer): Record<string, any>;
|
|
827
831
|
|
|
828
|
-
declare const getProviderConfig: (config: WarpClientConfig, chain:
|
|
832
|
+
declare const getProviderConfig: (config: WarpClientConfig, chain: WarpChainName, env: WarpChainEnv, defaultProvider: string) => WarpProviderConfig;
|
|
829
833
|
|
|
830
834
|
/**
|
|
831
835
|
* Signing utilities for creating and validating signed messages
|
|
@@ -879,17 +883,18 @@ declare function validateSignedMessage(expiresAt: string): boolean;
|
|
|
879
883
|
*/
|
|
880
884
|
declare function parseSignedMessage(message: string): SignableMessage;
|
|
881
885
|
|
|
882
|
-
declare const getWalletFromConfigOrFail: (config: WarpClientConfig, chain:
|
|
886
|
+
declare const getWalletFromConfigOrFail: (config: WarpClientConfig, chain: WarpChainName) => string | WarpWalletDetails;
|
|
883
887
|
declare const getWarpWalletAddress: (wallet: WarpWalletDetails | string | null | undefined) => string | null;
|
|
884
|
-
declare const getWarpWalletAddressFromConfig: (config: WarpClientConfig, chain:
|
|
888
|
+
declare const getWarpWalletAddressFromConfig: (config: WarpClientConfig, chain: WarpChainName) => string | null;
|
|
885
889
|
declare const getWarpWalletPrivateKey: (wallet: WarpWalletDetails | string | null | undefined) => string | null;
|
|
886
890
|
declare const getWarpWalletMnemonic: (wallet: WarpWalletDetails | string | null | undefined) => string | null;
|
|
887
891
|
declare const getWarpWalletExternalId: (wallet: WarpWalletDetails | string | null | undefined) => string | null;
|
|
888
|
-
declare const getWarpWalletPrivateKeyFromConfig: (config: WarpClientConfig, chain:
|
|
889
|
-
declare const getWarpWalletMnemonicFromConfig: (config: WarpClientConfig, chain:
|
|
890
|
-
declare const getWarpWalletExternalIdFromConfig: (config: WarpClientConfig, chain:
|
|
891
|
-
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;
|
|
892
896
|
declare const isWarpWalletReadOnly: (wallet: WarpWalletDetails | string | null | undefined) => boolean;
|
|
897
|
+
declare const setWarpWalletInConfig: (config: WarpClientConfig, chain: WarpChainName, wallet: WarpWalletDetails) => void;
|
|
893
898
|
|
|
894
899
|
interface WalletCache {
|
|
895
900
|
address: string | null;
|
|
@@ -942,7 +947,7 @@ declare class WarpBuilder implements BaseWarpBuilder {
|
|
|
942
947
|
constructor(config: WarpClientConfig);
|
|
943
948
|
createFromRaw(encoded: string, validate?: boolean): Promise<Warp>;
|
|
944
949
|
createFromUrl(url: string): Promise<Warp>;
|
|
945
|
-
setChain(chain:
|
|
950
|
+
setChain(chain: WarpChainName): WarpBuilder;
|
|
946
951
|
setName(name: string): WarpBuilder;
|
|
947
952
|
setTitle(title: WarpText): WarpBuilder;
|
|
948
953
|
setDescription(description: WarpText | null): WarpBuilder;
|
|
@@ -1077,7 +1082,7 @@ declare class WarpFactory {
|
|
|
1077
1082
|
}): Promise<WarpExecutable>;
|
|
1078
1083
|
getChainInfoForWarp(warp: Warp, inputs?: string[]): Promise<WarpChainInfo>;
|
|
1079
1084
|
getStringTypedInputs(action: WarpAction, inputs: string[]): string[];
|
|
1080
|
-
getResolvedInputs(chain:
|
|
1085
|
+
getResolvedInputs(chain: WarpChainName, action: WarpAction, inputArgs: string[], interpolator?: WarpInterpolator): Promise<ResolvedInput[]>;
|
|
1081
1086
|
private requiresPayloadInputs;
|
|
1082
1087
|
private resolveActionInputs;
|
|
1083
1088
|
getModifiedInputs(inputs: ResolvedInput[]): Promise<ResolvedInput[]>;
|
|
@@ -1114,7 +1119,7 @@ declare class WarpFactory {
|
|
|
1114
1119
|
* @returns Context object with all previous inputs accessible by name/as
|
|
1115
1120
|
*/
|
|
1116
1121
|
private buildInputContext;
|
|
1117
|
-
preprocessInput(chain:
|
|
1122
|
+
preprocessInput(chain: WarpChainName, input: string): Promise<string>;
|
|
1118
1123
|
private getDestinationFromAction;
|
|
1119
1124
|
private getPreparedArgs;
|
|
1120
1125
|
private tryGetChainFromInputs;
|
|
@@ -1131,16 +1136,16 @@ declare class WarpLinkBuilder {
|
|
|
1131
1136
|
private readonly adapters;
|
|
1132
1137
|
constructor(config: WarpClientConfig, adapters: ChainAdapter[]);
|
|
1133
1138
|
isValid(url: string): boolean;
|
|
1134
|
-
build(chain:
|
|
1139
|
+
build(chain: WarpChainName, type: WarpIdentifierType, id: string): string;
|
|
1135
1140
|
buildFromPrefixedIdentifier(identifier: string): string | null;
|
|
1136
|
-
generateQrCode(chain:
|
|
1141
|
+
generateQrCode(chain: WarpChainName, type: WarpIdentifierType, id: string, size?: number, background?: string, color?: string, logoColor?: string): QRCodeStyling;
|
|
1137
1142
|
}
|
|
1138
1143
|
|
|
1139
1144
|
type DetectionResult = {
|
|
1140
1145
|
match: boolean;
|
|
1141
1146
|
url: string;
|
|
1142
1147
|
warp: Warp | null;
|
|
1143
|
-
chain:
|
|
1148
|
+
chain: WarpChainName | null;
|
|
1144
1149
|
registryInfo: WarpRegistryInfo | null;
|
|
1145
1150
|
brand: WarpBrand | null;
|
|
1146
1151
|
};
|
|
@@ -1181,23 +1186,23 @@ declare class WarpClient {
|
|
|
1181
1186
|
evaluateOutput: (remoteTxs: WarpAdapterGenericRemoteTransaction[]) => Promise<void>;
|
|
1182
1187
|
resolvedInputs: string[];
|
|
1183
1188
|
}>;
|
|
1184
|
-
createInscriptionTransaction(chain:
|
|
1185
|
-
createFromTransaction(chain:
|
|
1189
|
+
createInscriptionTransaction(chain: WarpChainName, warp: Warp): Promise<WarpAdapterGenericTransaction>;
|
|
1190
|
+
createFromTransaction(chain: WarpChainName, tx: WarpAdapterGenericRemoteTransaction, validate?: boolean): Promise<Warp>;
|
|
1186
1191
|
createFromTransactionHash(hash: string, cache?: WarpCacheConfig): Promise<Warp | null>;
|
|
1187
|
-
signMessage(chain:
|
|
1188
|
-
getActions(chain:
|
|
1189
|
-
getExplorer(chain:
|
|
1190
|
-
getOutput(chain:
|
|
1191
|
-
getRegistry(chain:
|
|
1192
|
-
getDataLoader(chain:
|
|
1193
|
-
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;
|
|
1194
1199
|
get factory(): WarpFactory;
|
|
1195
1200
|
get index(): WarpIndex;
|
|
1196
1201
|
get linkBuilder(): WarpLinkBuilder;
|
|
1197
|
-
createBuilder(chain:
|
|
1198
|
-
createAbiBuilder(chain:
|
|
1199
|
-
createBrandBuilder(chain:
|
|
1200
|
-
createSerializer(chain:
|
|
1202
|
+
createBuilder(chain: WarpChainName): CombinedWarpBuilder;
|
|
1203
|
+
createAbiBuilder(chain: WarpChainName): AdapterWarpAbiBuilder;
|
|
1204
|
+
createBrandBuilder(chain: WarpChainName): AdapterWarpBrandBuilder;
|
|
1205
|
+
createSerializer(chain: WarpChainName): AdapterWarpSerializer;
|
|
1201
1206
|
resolveText(warpText: WarpText): string;
|
|
1202
1207
|
}
|
|
1203
1208
|
|
|
@@ -1237,4 +1242,4 @@ declare class WarpValidator {
|
|
|
1237
1242
|
private validateSchema;
|
|
1238
1243
|
}
|
|
1239
1244
|
|
|
1240
|
-
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 };
|