@relayprotocol/relay-sdk 5.1.1 → 5.2.0
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/_cjs/src/actions/gaslessBatch.js +185 -0
- package/_cjs/src/actions/gaslessBatch.js.map +1 -0
- package/_cjs/src/actions/index.js +1 -0
- package/_cjs/src/actions/index.js.map +1 -1
- package/_cjs/src/constants/calibur.js +73 -0
- package/_cjs/src/constants/calibur.js.map +1 -0
- package/_cjs/src/constants/index.js +1 -0
- package/_cjs/src/constants/index.js.map +1 -1
- package/_cjs/src/types/BatchExecutor.js +3 -0
- package/_cjs/src/types/BatchExecutor.js.map +1 -0
- package/_cjs/src/types/index.js +1 -0
- package/_cjs/src/types/index.js.map +1 -1
- package/_cjs/src/utils/caliburExecutor.js +61 -0
- package/_cjs/src/utils/caliburExecutor.js.map +1 -0
- package/_cjs/src/utils/index.js +4 -1
- package/_cjs/src/utils/index.js.map +1 -1
- package/_cjs/src/version.js +1 -1
- package/_cjs/tsconfig.build.tsbuildinfo +1 -1
- package/_esm/src/actions/gaslessBatch.js +206 -0
- package/_esm/src/actions/gaslessBatch.js.map +1 -0
- package/_esm/src/actions/index.js +1 -0
- package/_esm/src/actions/index.js.map +1 -1
- package/_esm/src/constants/calibur.js +80 -0
- package/_esm/src/constants/calibur.js.map +1 -0
- package/_esm/src/constants/index.js +1 -0
- package/_esm/src/constants/index.js.map +1 -1
- package/_esm/src/types/BatchExecutor.js +2 -0
- package/_esm/src/types/BatchExecutor.js.map +1 -0
- package/_esm/src/types/index.js +1 -0
- package/_esm/src/types/index.js.map +1 -1
- package/_esm/src/utils/caliburExecutor.js +57 -0
- package/_esm/src/utils/caliburExecutor.js.map +1 -0
- package/_esm/src/utils/index.js +1 -0
- package/_esm/src/utils/index.js.map +1 -1
- package/_esm/src/version.js +1 -1
- package/_esm/tsconfig.build.tsbuildinfo +1 -1
- package/_types/src/actions/gaslessBatch.d.ts +44 -0
- package/_types/src/actions/gaslessBatch.d.ts.map +1 -0
- package/_types/src/actions/index.d.ts +1 -0
- package/_types/src/actions/index.d.ts.map +1 -1
- package/_types/src/client.d.ts +31 -29
- package/_types/src/client.d.ts.map +1 -1
- package/_types/src/constants/calibur.d.ts +107 -0
- package/_types/src/constants/calibur.d.ts.map +1 -0
- package/_types/src/constants/index.d.ts +1 -0
- package/_types/src/constants/index.d.ts.map +1 -1
- package/_types/src/types/BatchExecutor.d.ts +41 -0
- package/_types/src/types/BatchExecutor.d.ts.map +1 -0
- package/_types/src/types/index.d.ts +1 -0
- package/_types/src/types/index.d.ts.map +1 -1
- package/_types/src/utils/caliburExecutor.d.ts +4 -0
- package/_types/src/utils/caliburExecutor.d.ts.map +1 -0
- package/_types/src/utils/index.d.ts +1 -0
- package/_types/src/utils/index.d.ts.map +1 -1
- package/_types/src/version.d.ts +1 -1
- package/_types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type WalletClient } from 'viem';
|
|
2
|
+
import type { Execute } from '../types/Execute.js';
|
|
3
|
+
import type { BatchExecutorConfig } from '../types/BatchExecutor.js';
|
|
4
|
+
export type GaslessBatchProgress = {
|
|
5
|
+
status: 'signing_authorization' | 'signing_batch' | 'submitting' | 'polling' | 'success' | 'failure';
|
|
6
|
+
requestId?: string;
|
|
7
|
+
details?: any;
|
|
8
|
+
};
|
|
9
|
+
export type ExecuteGaslessBatchParameters = {
|
|
10
|
+
/** The quote obtained from getQuote() */
|
|
11
|
+
quote: Execute;
|
|
12
|
+
/** viem WalletClient with an account attached */
|
|
13
|
+
walletClient: WalletClient;
|
|
14
|
+
/** Batch executor config — defaults to Calibur */
|
|
15
|
+
executor?: BatchExecutorConfig;
|
|
16
|
+
/** Whether the sponsor pays all fees (default: false) */
|
|
17
|
+
subsidizeFees?: boolean;
|
|
18
|
+
/** Gas overhead for the origin chain gasless transaction.
|
|
19
|
+
* Overrides the executor's default if provided (Calibur default: 80,000). */
|
|
20
|
+
originGasOverhead?: number;
|
|
21
|
+
/** Progress callback for each stage of the flow */
|
|
22
|
+
onProgress?: (data: GaslessBatchProgress) => void;
|
|
23
|
+
};
|
|
24
|
+
export type GaslessBatchResult = {
|
|
25
|
+
requestId: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Execute a gasless batch swap using EIP-7702 delegation.
|
|
29
|
+
*
|
|
30
|
+
* Takes a quote from getQuote(), delegates the user's EOA to a batch executor
|
|
31
|
+
* (defaults to Calibur), batches the quote's transaction steps atomically,
|
|
32
|
+
* and submits via Relay's /execute API with the sponsor covering gas costs.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const quote = await getQuote({ ... })
|
|
37
|
+
* const result = await executeGaslessBatch({ quote, walletClient })
|
|
38
|
+
* console.log(result.requestId)
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @param parameters - {@link ExecuteGaslessBatchParameters}
|
|
42
|
+
*/
|
|
43
|
+
export declare function executeGaslessBatch(parameters: ExecuteGaslessBatchParameters): Promise<GaslessBatchResult>;
|
|
44
|
+
//# sourceMappingURL=gaslessBatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gaslessBatch.d.ts","sourceRoot":"","sources":["../../../src/actions/gaslessBatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAClB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAa,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAe/E,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EACF,uBAAuB,GACvB,eAAe,GACf,YAAY,GACZ,SAAS,GACT,SAAS,GACT,SAAS,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,GAAG,CAAA;CACd,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,yCAAyC;IACzC,KAAK,EAAE,OAAO,CAAA;IACd,iDAAiD;IACjD,YAAY,EAAE,YAAY,CAAA;IAC1B,kDAAkD;IAClD,QAAQ,CAAC,EAAE,mBAAmB,CAAA;IAC9B,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;kFAC8E;IAC9E,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,mDAAmD;IACnD,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAA;CAClD,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,6BAA6B,GACxC,OAAO,CAAC,kBAAkB,CAAC,CAkS7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA"}
|
package/_types/src/client.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export declare class RelayClient {
|
|
|
85
85
|
type: string;
|
|
86
86
|
uid: string;
|
|
87
87
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
88
|
-
deployContract: <const abi extends
|
|
88
|
+
deployContract: <const abi extends import("viem").Abi | readonly unknown[], chainOverride extends import("viem/chains").Chain | undefined>(args: import("viem").DeployContractParameters<abi, import("viem/chains").Chain | undefined, import("viem").Account | undefined, chainOverride>) => Promise<`0x${string}`>;
|
|
89
89
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
90
90
|
getCallsStatus: (parameters: import("viem").GetCallsStatusParameters) => Promise<{
|
|
91
91
|
id: string;
|
|
@@ -3405,7 +3405,7 @@ export declare class RelayClient {
|
|
|
3405
3405
|
authorizationList: import("viem").SignedAuthorizationList;
|
|
3406
3406
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_26 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
|
|
3407
3407
|
chainId?: number | undefined;
|
|
3408
|
-
}, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "
|
|
3408
|
+
}, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") extends infer T_27 ? T_27 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") ? T_27 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_27 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">) extends infer T_1 ? { [K_1 in keyof T_1]: (import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<import("viem/chains").Chain | undefined, chainOverride_1>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<import("viem/chains").Chain | undefined, chainOverride_1> extends infer T_2 ? T_2 extends import("viem").DeriveChain<import("viem/chains").Chain | undefined, chainOverride_1> ? T_2 extends import("viem/chains").Chain ? {
|
|
3409
3409
|
chain: T_2;
|
|
3410
3410
|
} : {
|
|
3411
3411
|
chain?: undefined;
|
|
@@ -6657,7 +6657,7 @@ export declare class RelayClient {
|
|
|
6657
6657
|
authorizationList: import("viem").SignedAuthorizationList;
|
|
6658
6658
|
} ? "eip7702" : never) | (request["type"] extends string | undefined ? Extract<request["type"], string> : never)>) ? T_13 extends "eip7702" ? import("viem").TransactionRequestEIP7702 : never : never : never)>> & {
|
|
6659
6659
|
chainId?: number | undefined;
|
|
6660
|
-
}, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "
|
|
6660
|
+
}, (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") extends infer T_14 ? T_14 extends (request["parameters"] extends readonly import("viem").PrepareTransactionRequestParameterType[] ? request["parameters"][number] : "fees" | "type" | "gas" | "nonce" | "blobVersionedHashes" | "chainId") ? T_14 extends "fees" ? "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" : T_14 : never : never> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">))[K_1]; } : never>;
|
|
6661
6661
|
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
6662
6662
|
requestPermissions: (args: {
|
|
6663
6663
|
[x: string]: Record<string, any>;
|
|
@@ -7570,26 +7570,25 @@ export declare class RelayClient {
|
|
|
7570
7570
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
7571
7571
|
[x: `string[${string}]`]: undefined;
|
|
7572
7572
|
[x: `function[${string}]`]: undefined;
|
|
7573
|
-
[x: `uint256[${string}]`]: undefined;
|
|
7574
7573
|
[x: `address[${string}]`]: undefined;
|
|
7575
7574
|
[x: `bool[${string}]`]: undefined;
|
|
7576
7575
|
[x: `bytes[${string}]`]: undefined;
|
|
7577
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
7578
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
7579
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
7580
7576
|
[x: `bytes1[${string}]`]: undefined;
|
|
7581
|
-
[x: `
|
|
7582
|
-
[x: `
|
|
7583
|
-
[x: `
|
|
7584
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
7577
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
7578
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
7579
|
+
[x: `bytes4[${string}]`]: undefined;
|
|
7585
7580
|
[x: `bytes5[${string}]`]: undefined;
|
|
7581
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
7586
7582
|
[x: `bytes7[${string}]`]: undefined;
|
|
7587
7583
|
[x: `bytes8[${string}]`]: undefined;
|
|
7588
7584
|
[x: `bytes9[${string}]`]: undefined;
|
|
7585
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
7589
7586
|
[x: `bytes11[${string}]`]: undefined;
|
|
7590
7587
|
[x: `bytes12[${string}]`]: undefined;
|
|
7591
7588
|
[x: `bytes13[${string}]`]: undefined;
|
|
7592
7589
|
[x: `bytes14[${string}]`]: undefined;
|
|
7590
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
7591
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
7593
7592
|
[x: `bytes17[${string}]`]: undefined;
|
|
7594
7593
|
[x: `bytes18[${string}]`]: undefined;
|
|
7595
7594
|
[x: `bytes19[${string}]`]: undefined;
|
|
@@ -7607,9 +7606,8 @@ export declare class RelayClient {
|
|
|
7607
7606
|
[x: `bytes31[${string}]`]: undefined;
|
|
7608
7607
|
[x: `bytes32[${string}]`]: undefined;
|
|
7609
7608
|
[x: `int[${string}]`]: undefined;
|
|
7610
|
-
[x: `int16[${string}]`]: undefined;
|
|
7611
|
-
[x: `int200[${string}]`]: undefined;
|
|
7612
7609
|
[x: `int8[${string}]`]: undefined;
|
|
7610
|
+
[x: `int16[${string}]`]: undefined;
|
|
7613
7611
|
[x: `int24[${string}]`]: undefined;
|
|
7614
7612
|
[x: `int32[${string}]`]: undefined;
|
|
7615
7613
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -7632,6 +7630,7 @@ export declare class RelayClient {
|
|
|
7632
7630
|
[x: `int176[${string}]`]: undefined;
|
|
7633
7631
|
[x: `int184[${string}]`]: undefined;
|
|
7634
7632
|
[x: `int192[${string}]`]: undefined;
|
|
7633
|
+
[x: `int200[${string}]`]: undefined;
|
|
7635
7634
|
[x: `int208[${string}]`]: undefined;
|
|
7636
7635
|
[x: `int216[${string}]`]: undefined;
|
|
7637
7636
|
[x: `int224[${string}]`]: undefined;
|
|
@@ -7640,9 +7639,8 @@ export declare class RelayClient {
|
|
|
7640
7639
|
[x: `int248[${string}]`]: undefined;
|
|
7641
7640
|
[x: `int256[${string}]`]: undefined;
|
|
7642
7641
|
[x: `uint[${string}]`]: undefined;
|
|
7643
|
-
[x: `uint16[${string}]`]: undefined;
|
|
7644
|
-
[x: `uint200[${string}]`]: undefined;
|
|
7645
7642
|
[x: `uint8[${string}]`]: undefined;
|
|
7643
|
+
[x: `uint16[${string}]`]: undefined;
|
|
7646
7644
|
[x: `uint24[${string}]`]: undefined;
|
|
7647
7645
|
[x: `uint32[${string}]`]: undefined;
|
|
7648
7646
|
[x: `uint40[${string}]`]: undefined;
|
|
@@ -7665,33 +7663,34 @@ export declare class RelayClient {
|
|
|
7665
7663
|
[x: `uint176[${string}]`]: undefined;
|
|
7666
7664
|
[x: `uint184[${string}]`]: undefined;
|
|
7667
7665
|
[x: `uint192[${string}]`]: undefined;
|
|
7666
|
+
[x: `uint200[${string}]`]: undefined;
|
|
7668
7667
|
[x: `uint208[${string}]`]: undefined;
|
|
7669
7668
|
[x: `uint216[${string}]`]: undefined;
|
|
7670
7669
|
[x: `uint224[${string}]`]: undefined;
|
|
7671
7670
|
[x: `uint232[${string}]`]: undefined;
|
|
7672
7671
|
[x: `uint240[${string}]`]: undefined;
|
|
7673
7672
|
[x: `uint248[${string}]`]: undefined;
|
|
7673
|
+
[x: `uint256[${string}]`]: undefined;
|
|
7674
7674
|
string?: undefined;
|
|
7675
|
-
uint256?: undefined;
|
|
7676
7675
|
address?: undefined;
|
|
7677
7676
|
bool?: undefined;
|
|
7678
7677
|
bytes?: undefined;
|
|
7679
|
-
bytes4?: undefined;
|
|
7680
|
-
bytes3?: undefined;
|
|
7681
|
-
bytes2?: undefined;
|
|
7682
7678
|
bytes1?: undefined;
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
bytes10?: undefined;
|
|
7679
|
+
bytes2?: undefined;
|
|
7680
|
+
bytes3?: undefined;
|
|
7681
|
+
bytes4?: undefined;
|
|
7687
7682
|
bytes5?: undefined;
|
|
7683
|
+
bytes6?: undefined;
|
|
7688
7684
|
bytes7?: undefined;
|
|
7689
7685
|
bytes8?: undefined;
|
|
7690
7686
|
bytes9?: undefined;
|
|
7687
|
+
bytes10?: undefined;
|
|
7691
7688
|
bytes11?: undefined;
|
|
7692
7689
|
bytes12?: undefined;
|
|
7693
7690
|
bytes13?: undefined;
|
|
7694
7691
|
bytes14?: undefined;
|
|
7692
|
+
bytes15?: undefined;
|
|
7693
|
+
bytes16?: undefined;
|
|
7695
7694
|
bytes17?: undefined;
|
|
7696
7695
|
bytes18?: undefined;
|
|
7697
7696
|
bytes19?: undefined;
|
|
@@ -7708,9 +7707,8 @@ export declare class RelayClient {
|
|
|
7708
7707
|
bytes30?: undefined;
|
|
7709
7708
|
bytes31?: undefined;
|
|
7710
7709
|
bytes32?: undefined;
|
|
7711
|
-
int16?: undefined;
|
|
7712
|
-
int200?: undefined;
|
|
7713
7710
|
int8?: undefined;
|
|
7711
|
+
int16?: undefined;
|
|
7714
7712
|
int24?: undefined;
|
|
7715
7713
|
int32?: undefined;
|
|
7716
7714
|
int40?: undefined;
|
|
@@ -7733,6 +7731,7 @@ export declare class RelayClient {
|
|
|
7733
7731
|
int176?: undefined;
|
|
7734
7732
|
int184?: undefined;
|
|
7735
7733
|
int192?: undefined;
|
|
7734
|
+
int200?: undefined;
|
|
7736
7735
|
int208?: undefined;
|
|
7737
7736
|
int216?: undefined;
|
|
7738
7737
|
int224?: undefined;
|
|
@@ -7740,9 +7739,8 @@ export declare class RelayClient {
|
|
|
7740
7739
|
int240?: undefined;
|
|
7741
7740
|
int248?: undefined;
|
|
7742
7741
|
int256?: undefined;
|
|
7743
|
-
uint16?: undefined;
|
|
7744
|
-
uint200?: undefined;
|
|
7745
7742
|
uint8?: undefined;
|
|
7743
|
+
uint16?: undefined;
|
|
7746
7744
|
uint24?: undefined;
|
|
7747
7745
|
uint32?: undefined;
|
|
7748
7746
|
uint40?: undefined;
|
|
@@ -7765,12 +7763,14 @@ export declare class RelayClient {
|
|
|
7765
7763
|
uint176?: undefined;
|
|
7766
7764
|
uint184?: undefined;
|
|
7767
7765
|
uint192?: undefined;
|
|
7766
|
+
uint200?: undefined;
|
|
7768
7767
|
uint208?: undefined;
|
|
7769
7768
|
uint216?: undefined;
|
|
7770
7769
|
uint224?: undefined;
|
|
7771
7770
|
uint232?: undefined;
|
|
7772
7771
|
uint240?: undefined;
|
|
7773
7772
|
uint248?: undefined;
|
|
7773
|
+
uint256?: undefined;
|
|
7774
7774
|
} | {
|
|
7775
7775
|
[key: string]: unknown;
|
|
7776
7776
|
}, primaryType extends string>(args: import("viem").SignTypedDataParameters<typedData, primaryType, import("viem").Account | undefined>) => Promise<`0x${string}`>;
|
|
@@ -7790,7 +7790,7 @@ export declare class RelayClient {
|
|
|
7790
7790
|
status: "failure" | "pending" | "success" | undefined;
|
|
7791
7791
|
}>;
|
|
7792
7792
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
7793
|
-
writeContract: <const abi_1 extends
|
|
7793
|
+
writeContract: <const abi_1 extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi_1, "nonpayable" | "payable">, args extends import("viem").ContractFunctionArgs<abi_1, "nonpayable" | "payable", functionName>, chainOverride_5 extends import("viem/chains").Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_1, functionName, args, import("viem/chains").Chain | undefined, import("viem").Account | undefined, chainOverride_5>) => Promise<`0x${string}`>;
|
|
7794
7794
|
extend: <const client extends {
|
|
7795
7795
|
[x: string]: unknown;
|
|
7796
7796
|
account?: undefined;
|
|
@@ -7805,7 +7805,7 @@ export declare class RelayClient {
|
|
|
7805
7805
|
transport?: undefined;
|
|
7806
7806
|
type?: undefined;
|
|
7807
7807
|
uid?: undefined;
|
|
7808
|
-
} & import("viem").ExactPartial<Pick<import("viem").PublicActions<import("viem").Transport, import("viem/chains").Chain | undefined, import("viem").Account | undefined>, "
|
|
7808
|
+
} & import("viem").ExactPartial<Pick<import("viem").PublicActions<import("viem").Transport, import("viem/chains").Chain | undefined, import("viem").Account | undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<import("viem/chains").Chain | undefined, import("viem").Account | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").Transport, import("viem/chains").Chain | undefined, import("viem").Account | undefined, import("viem").WalletRpcSchema, import("viem").WalletActions<import("viem/chains").Chain | undefined, import("viem").Account | undefined>>) => client) => import("viem").Client<import("viem").Transport, import("viem/chains").Chain | undefined, import("viem").Account | undefined, import("viem").WalletRpcSchema, { [K_2 in keyof client]: client[K_2]; } & import("viem").WalletActions<import("viem/chains").Chain | undefined, import("viem").Account | undefined>>;
|
|
7809
7809
|
}) => import("./types/AdaptedWallet.js").AdaptedWallet;
|
|
7810
7810
|
isViemWalletClient: typeof utils.isViemWalletClient;
|
|
7811
7811
|
convertViemChainToRelayChain: (chain: import("viem/chains").Chain) => RelayChain & Required<Pick<RelayChain, "viemChain">>;
|
|
@@ -7933,6 +7933,8 @@ export declare class RelayClient {
|
|
|
7933
7933
|
prepareHyperliquidSteps: typeof utils.prepareHyperliquidSteps;
|
|
7934
7934
|
isRelayApiUrl: typeof utils.isRelayApiUrl;
|
|
7935
7935
|
getApiKeyHeader: typeof utils.getApiKeyHeader;
|
|
7936
|
+
createCaliburExecutor: typeof utils.createCaliburExecutor;
|
|
7937
|
+
CALIBUR_ORIGIN_GAS_OVERHEAD: 80000;
|
|
7936
7938
|
};
|
|
7937
7939
|
readonly actions: typeof actions;
|
|
7938
7940
|
constructor(options: RelayClientOptions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAA;AAIzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,+BAA+B,CAAC,EAAE,MAAM,CAAA;IACxC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAA;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAe;IAC7B,QAAQ,CAAC,OAAO,iBAAU;gBAEd,OAAO,EAAE,kBAAkB;IAyCvC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,kBAAkB,CAAC;CAyC/C;AAED,wBAAgB,SAAS,gBAExB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,kBAAkB,eAQvD"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calibur — Uniswap's minimal batch executor for EIP-7702 delegated EOAs.
|
|
3
|
+
* Deployed at the same address on all supported chains.
|
|
4
|
+
* https://github.com/Uniswap/calibur
|
|
5
|
+
*/
|
|
6
|
+
export declare const CALIBUR_ADDRESS: `0x${string}`;
|
|
7
|
+
export declare const CALIBUR_ABI: readonly [{
|
|
8
|
+
readonly name: "execute";
|
|
9
|
+
readonly type: "function";
|
|
10
|
+
readonly stateMutability: "payable";
|
|
11
|
+
readonly inputs: readonly [{
|
|
12
|
+
readonly name: "signedBatchedCall";
|
|
13
|
+
readonly type: "tuple";
|
|
14
|
+
readonly components: readonly [{
|
|
15
|
+
readonly name: "batchedCall";
|
|
16
|
+
readonly type: "tuple";
|
|
17
|
+
readonly components: readonly [{
|
|
18
|
+
readonly name: "calls";
|
|
19
|
+
readonly type: "tuple[]";
|
|
20
|
+
readonly components: readonly [{
|
|
21
|
+
readonly name: "to";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "value";
|
|
25
|
+
readonly type: "uint256";
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "data";
|
|
28
|
+
readonly type: "bytes";
|
|
29
|
+
}];
|
|
30
|
+
}, {
|
|
31
|
+
readonly name: "revertOnFailure";
|
|
32
|
+
readonly type: "bool";
|
|
33
|
+
}];
|
|
34
|
+
}, {
|
|
35
|
+
readonly name: "nonce";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "keyHash";
|
|
39
|
+
readonly type: "bytes32";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "executor";
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "deadline";
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
}];
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "wrappedSignature";
|
|
49
|
+
readonly type: "bytes";
|
|
50
|
+
}];
|
|
51
|
+
readonly outputs: readonly [];
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "getSeq";
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
readonly stateMutability: "view";
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly name: "key";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
readonly outputs: readonly [{
|
|
61
|
+
readonly name: "";
|
|
62
|
+
readonly type: "uint256";
|
|
63
|
+
}];
|
|
64
|
+
}];
|
|
65
|
+
export declare const CALIBUR_EIP712_TYPES: {
|
|
66
|
+
readonly SignedBatchedCall: readonly [{
|
|
67
|
+
readonly name: "batchedCall";
|
|
68
|
+
readonly type: "BatchedCall";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "nonce";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "keyHash";
|
|
74
|
+
readonly type: "bytes32";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "executor";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "deadline";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}];
|
|
82
|
+
readonly BatchedCall: readonly [{
|
|
83
|
+
readonly name: "calls";
|
|
84
|
+
readonly type: "Call[]";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "revertOnFailure";
|
|
87
|
+
readonly type: "bool";
|
|
88
|
+
}];
|
|
89
|
+
readonly Call: readonly [{
|
|
90
|
+
readonly name: "to";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "value";
|
|
94
|
+
readonly type: "uint256";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "data";
|
|
97
|
+
readonly type: "bytes";
|
|
98
|
+
}];
|
|
99
|
+
};
|
|
100
|
+
/** bytes32(0) — the root key hash, meaning the EOA owner's key */
|
|
101
|
+
export declare const ROOT_KEY_HASH: `0x${string}`;
|
|
102
|
+
/**
|
|
103
|
+
* EIP-712 domain salt for Calibur.
|
|
104
|
+
* salt = pad(implementationAddress) with left-padding to 32 bytes.
|
|
105
|
+
*/
|
|
106
|
+
export declare const CALIBUR_SALT: `0x${string}`;
|
|
107
|
+
//# sourceMappingURL=calibur.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calibur.d.ts","sourceRoot":"","sources":["../../../src/constants/calibur.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,eAAe,eAC6B,CAAA;AAEzD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2Cd,CAAA;AAEV,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBvB,CAAA;AAEV,kEAAkE;AAClE,eAAO,MAAM,aAAa,eACmD,CAAA;AAE7E;;;GAGG;AACH,eAAO,MAAM,YAAY,eAGvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Address, Hex, PublicClient } from 'viem';
|
|
2
|
+
export type BatchCall = {
|
|
3
|
+
to: Address;
|
|
4
|
+
value: bigint;
|
|
5
|
+
data: Hex;
|
|
6
|
+
};
|
|
7
|
+
export type BatchExecutorConfig = {
|
|
8
|
+
/** Contract address of the batch executor (e.g., Calibur) */
|
|
9
|
+
address: Address;
|
|
10
|
+
/** ABI for the batch executor contract */
|
|
11
|
+
abi: readonly Record<string, unknown>[];
|
|
12
|
+
/** Default gas overhead for origin chain gasless transactions (e.g., 80_000 for Calibur) */
|
|
13
|
+
originGasOverhead?: number;
|
|
14
|
+
/** EIP-712 types for the signed batch call */
|
|
15
|
+
eip712Types: Record<string, Array<{
|
|
16
|
+
name: string;
|
|
17
|
+
type: string;
|
|
18
|
+
}> | readonly {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly type: string;
|
|
21
|
+
}[]>;
|
|
22
|
+
/** EIP-712 primary type name */
|
|
23
|
+
eip712PrimaryType: string;
|
|
24
|
+
/** EIP-712 domain salt */
|
|
25
|
+
salt: Hex;
|
|
26
|
+
/** Build the EIP-712 domain for signing */
|
|
27
|
+
buildSignDomain: (chainId: number, verifyingContract: Address) => {
|
|
28
|
+
name: string;
|
|
29
|
+
version: string;
|
|
30
|
+
chainId: bigint;
|
|
31
|
+
verifyingContract: Address;
|
|
32
|
+
salt: Hex;
|
|
33
|
+
};
|
|
34
|
+
/** Build the EIP-712 message to sign */
|
|
35
|
+
buildSignMessage: (calls: BatchCall[], nonce: bigint) => Record<string, unknown>;
|
|
36
|
+
/** Encode the execute calldata from the signed message + wrapped signature */
|
|
37
|
+
encodeExecute: (signedMessage: Record<string, unknown>, wrappedSignature: Hex) => Hex;
|
|
38
|
+
/** Read the current nonce from the executor contract */
|
|
39
|
+
getNonce: (publicClient: PublicClient, userAddress: Address) => Promise<bigint>;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=BatchExecutor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchExecutor.d.ts","sourceRoot":"","sources":["../../../src/types/BatchExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAEtD,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,OAAO,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,GAAG,CAAA;CACV,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,6DAA6D;IAC7D,OAAO,EAAE,OAAO,CAAA;IAEhB,0CAA0C;IAC1C,GAAG,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;IAEvC,4FAA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Ac,0BAA0B,CAAA;AACxC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caliburExecutor.d.ts","sourceRoot":"","sources":["../../../src/utils/caliburExecutor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAa,MAAM,2BAA2B,CAAA;AAW/E,eAAO,MAAM,2BAA2B,QAAS,CAAA;AAEjD,wBAAgB,qBAAqB,IAAI,mBAAmB,CA4D3D"}
|
|
@@ -13,4 +13,5 @@ export { safeStructuredClone } from './structuredClone.js';
|
|
|
13
13
|
export { repeatUntilOk } from './repeatUntilOk.js';
|
|
14
14
|
export { prepareHyperliquidSteps } from './hyperliquid.js';
|
|
15
15
|
export { isRelayApiUrl, getApiKeyHeader } from './apiKey.js';
|
|
16
|
+
export { createCaliburExecutor, CALIBUR_ORIGIN_GAS_OVERHEAD } from './caliburExecutor.js';
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAE,O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e,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,4BAA4B,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EACL,KAAK,uBAAuB,EAC5B,yBAAyB,EAC1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,sBAAsB,CAAA"}
|
package/_types/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "5.
|
|
1
|
+
export declare const SDK_VERSION = "5.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|