@account-kit/infra 4.45.0 → 4.46.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/dist/esm/actions/types.d.ts +14 -4
- package/dist/esm/actions/types.js.map +1 -1
- package/dist/esm/client/types.d.ts +3 -3
- package/dist/esm/client/types.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/actions/types.d.ts +14 -4
- package/dist/types/actions/types.d.ts.map +1 -1
- package/dist/types/client/types.d.ts +3 -3
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
- package/src/actions/types.ts +14 -4
- package/src/client/types.ts +4 -4
- package/src/version.ts +1 -1
|
@@ -58,12 +58,22 @@ export type RequestGasAndPaymasterAndDataRequest = [
|
|
|
58
58
|
export type RequestGasAndPaymasterAndDataResponse<TEntryPointVersion extends EntryPointVersion = EntryPointVersion> = Pick<UserOperationRequest, "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "maxFeePerGas" | "maxPriorityFeePerGas"> & (TEntryPointVersion extends "0.6.0" ? {
|
|
59
59
|
paymasterAndData: UserOperationRequest<"0.6.0">["paymasterAndData"];
|
|
60
60
|
} : TEntryPointVersion extends "0.7.0" ? Pick<UserOperationRequest<"0.7.0">, "paymaster" | "paymasterData" | "paymasterVerificationGasLimit" | "paymasterPostOpGasLimit"> : never);
|
|
61
|
-
export type
|
|
61
|
+
export type RequestPaymasterTokenQuoteRequest = [
|
|
62
62
|
{
|
|
63
63
|
policyId: string;
|
|
64
|
-
|
|
64
|
+
entryPoint: Address;
|
|
65
|
+
erc20Context?: {
|
|
66
|
+
tokenAddress: Address;
|
|
67
|
+
permit?: Hex;
|
|
68
|
+
maxTokenAmount?: BigInt;
|
|
69
|
+
};
|
|
70
|
+
dummySignature: Hex;
|
|
71
|
+
userOperation: UserOperationRequest;
|
|
72
|
+
overrides?: UserOperationOverrides;
|
|
65
73
|
}
|
|
66
74
|
];
|
|
67
|
-
export type
|
|
68
|
-
|
|
75
|
+
export type RequestPaymasterTokenQuoteResponse = {
|
|
76
|
+
tokensPerEth: string;
|
|
77
|
+
estimatedTokenAmount: string;
|
|
78
|
+
estimatedUsd: number;
|
|
69
79
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/actions/types.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,iBAUX;AAVD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB;;;OAGG;IACH,gDAA2B,CAAA;AAC7B,CAAC,EAVW,iBAAiB,KAAjB,iBAAiB,QAU5B;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import type {\n UserOperationStruct,\n UserOperationRequest,\n UserOperationOverrides,\n EntryPointVersion,\n} from \"@aa-sdk/core\";\nimport type { Address, Hash, Hex } from \"viem\";\n\nexport enum SimulateAssetType {\n NATIVE = \"NATIVE\",\n ERC20 = \"ERC20\",\n ERC721 = \"ERC721\",\n ERC1155 = \"ERC1155\",\n /**\n * Special contracts that don't follow ERC 721/1155. Currently limited to\n * CryptoKitties and CryptoPunks.\n */\n SPECIAL_NFT = \"SPECIAL_NFT\",\n}\n\nexport enum SimulateChangeType {\n APPROVE = \"APPROVE\",\n TRANSFER = \"TRANSFER\",\n}\n\nexport type SimulateUserOperationAssetChangesRequest = [\n UserOperationStruct,\n entryPoint: Address,\n blockNumber?: Hash,\n];\n\nexport type SimulateUserOperationAssetChangesResponse = {\n changes: SimulateAssetChange[];\n error?: SimulateAssetChangesError;\n};\n\nexport interface SimulateAssetChangesError extends Record<string, any> {\n message: string;\n}\n\nexport interface SimulateAssetChange {\n assetType: SimulateAssetType;\n changeType: SimulateChangeType;\n from: Address;\n to: Address;\n rawAmount?: string;\n amount?: string;\n contactAddress: Address;\n tokenId?: string;\n decimals: number;\n symbol: string;\n name?: string;\n logo?: string;\n}\n\nexport type RequestGasAndPaymasterAndDataRequest = [\n {\n policyId: string | string[];\n entryPoint: Address;\n erc20Context?: {\n tokenAddress: Address;\n permit?: Hex;\n maxTokenAmount?: BigInt;\n };\n dummySignature: Hex;\n userOperation: UserOperationRequest;\n overrides?: UserOperationOverrides;\n },\n];\n\nexport type RequestGasAndPaymasterAndDataResponse<\n TEntryPointVersion extends EntryPointVersion = EntryPointVersion,\n> = Pick<\n UserOperationRequest,\n | \"callGasLimit\"\n | \"preVerificationGas\"\n | \"verificationGasLimit\"\n | \"maxFeePerGas\"\n | \"maxPriorityFeePerGas\"\n> &\n (TEntryPointVersion extends \"0.6.0\"\n ? {\n paymasterAndData: UserOperationRequest<\"0.6.0\">[\"paymasterAndData\"];\n }\n : TEntryPointVersion extends \"0.7.0\"\n ? Pick<\n UserOperationRequest<\"0.7.0\">,\n | \"paymaster\"\n | \"paymasterData\"\n | \"paymasterVerificationGasLimit\"\n | \"paymasterPostOpGasLimit\"\n >\n : never);\n\nexport type
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/actions/types.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,iBAUX;AAVD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB;;;OAGG;IACH,gDAA2B,CAAA;AAC7B,CAAC,EAVW,iBAAiB,KAAjB,iBAAiB,QAU5B;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import type {\n UserOperationStruct,\n UserOperationRequest,\n UserOperationOverrides,\n EntryPointVersion,\n} from \"@aa-sdk/core\";\nimport type { Address, Hash, Hex } from \"viem\";\n\nexport enum SimulateAssetType {\n NATIVE = \"NATIVE\",\n ERC20 = \"ERC20\",\n ERC721 = \"ERC721\",\n ERC1155 = \"ERC1155\",\n /**\n * Special contracts that don't follow ERC 721/1155. Currently limited to\n * CryptoKitties and CryptoPunks.\n */\n SPECIAL_NFT = \"SPECIAL_NFT\",\n}\n\nexport enum SimulateChangeType {\n APPROVE = \"APPROVE\",\n TRANSFER = \"TRANSFER\",\n}\n\nexport type SimulateUserOperationAssetChangesRequest = [\n UserOperationStruct,\n entryPoint: Address,\n blockNumber?: Hash,\n];\n\nexport type SimulateUserOperationAssetChangesResponse = {\n changes: SimulateAssetChange[];\n error?: SimulateAssetChangesError;\n};\n\nexport interface SimulateAssetChangesError extends Record<string, any> {\n message: string;\n}\n\nexport interface SimulateAssetChange {\n assetType: SimulateAssetType;\n changeType: SimulateChangeType;\n from: Address;\n to: Address;\n rawAmount?: string;\n amount?: string;\n contactAddress: Address;\n tokenId?: string;\n decimals: number;\n symbol: string;\n name?: string;\n logo?: string;\n}\n\nexport type RequestGasAndPaymasterAndDataRequest = [\n {\n policyId: string | string[];\n entryPoint: Address;\n erc20Context?: {\n tokenAddress: Address;\n permit?: Hex;\n maxTokenAmount?: BigInt;\n };\n dummySignature: Hex;\n userOperation: UserOperationRequest;\n overrides?: UserOperationOverrides;\n },\n];\n\nexport type RequestGasAndPaymasterAndDataResponse<\n TEntryPointVersion extends EntryPointVersion = EntryPointVersion,\n> = Pick<\n UserOperationRequest,\n | \"callGasLimit\"\n | \"preVerificationGas\"\n | \"verificationGasLimit\"\n | \"maxFeePerGas\"\n | \"maxPriorityFeePerGas\"\n> &\n (TEntryPointVersion extends \"0.6.0\"\n ? {\n paymasterAndData: UserOperationRequest<\"0.6.0\">[\"paymasterAndData\"];\n }\n : TEntryPointVersion extends \"0.7.0\"\n ? Pick<\n UserOperationRequest<\"0.7.0\">,\n | \"paymaster\"\n | \"paymasterData\"\n | \"paymasterVerificationGasLimit\"\n | \"paymasterPostOpGasLimit\"\n >\n : never);\n\nexport type RequestPaymasterTokenQuoteRequest = [\n {\n policyId: string;\n entryPoint: Address;\n erc20Context?: {\n tokenAddress: Address;\n permit?: Hex;\n maxTokenAmount?: BigInt;\n };\n dummySignature: Hex;\n userOperation: UserOperationRequest;\n overrides?: UserOperationOverrides;\n },\n];\n\nexport type RequestPaymasterTokenQuoteResponse = {\n tokensPerEth: string;\n estimatedTokenAmount: string;\n estimatedUsd: number;\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BundlerClient, type Erc7677RpcSchema, type UserOperationRequest } from "@aa-sdk/core";
|
|
2
|
-
import type { SimulateUserOperationAssetChangesRequest, SimulateUserOperationAssetChangesResponse, RequestGasAndPaymasterAndDataRequest, RequestGasAndPaymasterAndDataResponse,
|
|
2
|
+
import type { SimulateUserOperationAssetChangesRequest, SimulateUserOperationAssetChangesResponse, RequestGasAndPaymasterAndDataRequest, RequestGasAndPaymasterAndDataResponse, RequestPaymasterTokenQuoteRequest, RequestPaymasterTokenQuoteResponse } from "../actions/types";
|
|
3
3
|
import type { AlchemyTransport } from "../alchemyTransport";
|
|
4
4
|
export type AlchemyRpcSchema = [
|
|
5
5
|
{
|
|
@@ -22,8 +22,8 @@ export type AlchemyRpcSchema = [
|
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
Method: "alchemy_requestPaymasterTokenQuote";
|
|
25
|
-
Parameters:
|
|
26
|
-
ReturnType:
|
|
25
|
+
Parameters: RequestPaymasterTokenQuoteRequest;
|
|
26
|
+
ReturnType: RequestPaymasterTokenQuoteResponse;
|
|
27
27
|
}
|
|
28
28
|
];
|
|
29
29
|
export type ClientWithAlchemyMethods = BundlerClient<AlchemyTransport> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/client/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,MAAM,cAAc,CAAC","sourcesContent":["import {\n type BundlerClient,\n type Erc7677RpcSchema,\n type UserOperationRequest,\n} from \"@aa-sdk/core\";\nimport type {\n SimulateUserOperationAssetChangesRequest,\n SimulateUserOperationAssetChangesResponse,\n RequestGasAndPaymasterAndDataRequest,\n RequestGasAndPaymasterAndDataResponse,\n
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/client/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,MAAM,cAAc,CAAC","sourcesContent":["import {\n type BundlerClient,\n type Erc7677RpcSchema,\n type UserOperationRequest,\n} from \"@aa-sdk/core\";\nimport type {\n SimulateUserOperationAssetChangesRequest,\n SimulateUserOperationAssetChangesResponse,\n RequestGasAndPaymasterAndDataRequest,\n RequestGasAndPaymasterAndDataResponse,\n RequestPaymasterTokenQuoteRequest,\n RequestPaymasterTokenQuoteResponse,\n} from \"../actions/types\";\nimport type { AlchemyTransport } from \"../alchemyTransport\";\n\nexport type AlchemyRpcSchema = [\n {\n Method: \"alchemy_simulateUserOperationAssetChanges\";\n Parameters: SimulateUserOperationAssetChangesRequest;\n ReturnType: SimulateUserOperationAssetChangesResponse;\n },\n {\n Method: \"rundler_maxPriorityFeePerGas\";\n Parameters: [];\n ReturnType: UserOperationRequest[\"maxPriorityFeePerGas\"];\n },\n ...Erc7677RpcSchema<{ policyId: string }>,\n {\n Method: \"alchemy_requestGasAndPaymasterAndData\";\n Parameters: RequestGasAndPaymasterAndDataRequest;\n ReturnType: RequestGasAndPaymasterAndDataResponse;\n },\n {\n Method: \"alchemy_requestPaymasterTokenQuote\";\n Parameters: RequestPaymasterTokenQuoteRequest;\n ReturnType: RequestPaymasterTokenQuoteResponse;\n },\n];\n\nexport type ClientWithAlchemyMethods = BundlerClient<AlchemyTransport> & {\n request: BundlerClient<AlchemyTransport>[\"request\"] &\n {\n request(args: {\n method: \"alchemy_simulateUserOperationAssetChanges\";\n params: SimulateUserOperationAssetChangesRequest;\n }): Promise<SimulateUserOperationAssetChangesResponse>;\n\n request(args: {\n method: \"rundler_maxPriorityFeePerGas\";\n params: [];\n }): Promise<UserOperationRequest[\"maxPriorityFeePerGas\"]>;\n\n request(args: {\n method: \"alchemy_requestGasAndPaymasterAndData\";\n params: RequestGasAndPaymasterAndDataRequest;\n }): Promise<RequestGasAndPaymasterAndDataResponse>;\n }[\"request\"];\n};\n"]}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.46.0";
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.46.0\";\n"]}
|
|
@@ -58,13 +58,23 @@ export type RequestGasAndPaymasterAndDataRequest = [
|
|
|
58
58
|
export type RequestGasAndPaymasterAndDataResponse<TEntryPointVersion extends EntryPointVersion = EntryPointVersion> = Pick<UserOperationRequest, "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "maxFeePerGas" | "maxPriorityFeePerGas"> & (TEntryPointVersion extends "0.6.0" ? {
|
|
59
59
|
paymasterAndData: UserOperationRequest<"0.6.0">["paymasterAndData"];
|
|
60
60
|
} : TEntryPointVersion extends "0.7.0" ? Pick<UserOperationRequest<"0.7.0">, "paymaster" | "paymasterData" | "paymasterVerificationGasLimit" | "paymasterPostOpGasLimit"> : never);
|
|
61
|
-
export type
|
|
61
|
+
export type RequestPaymasterTokenQuoteRequest = [
|
|
62
62
|
{
|
|
63
63
|
policyId: string;
|
|
64
|
-
|
|
64
|
+
entryPoint: Address;
|
|
65
|
+
erc20Context?: {
|
|
66
|
+
tokenAddress: Address;
|
|
67
|
+
permit?: Hex;
|
|
68
|
+
maxTokenAmount?: BigInt;
|
|
69
|
+
};
|
|
70
|
+
dummySignature: Hex;
|
|
71
|
+
userOperation: UserOperationRequest;
|
|
72
|
+
overrides?: UserOperationOverrides;
|
|
65
73
|
}
|
|
66
74
|
];
|
|
67
|
-
export type
|
|
68
|
-
|
|
75
|
+
export type RequestPaymasterTokenQuoteResponse = {
|
|
76
|
+
tokensPerEth: string;
|
|
77
|
+
estimatedTokenAmount: string;
|
|
78
|
+
estimatedUsd: number;
|
|
69
79
|
};
|
|
70
80
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE/C,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB;;;OAGG;IACH,WAAW,gBAAgB;CAC5B;AAED,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,wCAAwC,GAAG;IACrD,mBAAmB;IACnB,UAAU,EAAE,OAAO;IACnB,WAAW,CAAC,EAAE,IAAI;CACn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C;QACpB,YAAY,CAAC,EAAE;YACb,YAAY,EAAE,OAAO,CAAC;YACtB,MAAM,CAAC,EAAE,GAAG,CAAC;YACb,cAAc,CAAC,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,cAAc,EAAE,GAAG,CAAC;QACpB,aAAa,EAAE,oBAAoB,CAAC;QACpC,SAAS,CAAC,EAAE,sBAAsB,CAAC;KACpC;CACF,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BundlerClient, type Erc7677RpcSchema, type UserOperationRequest } from "@aa-sdk/core";
|
|
2
|
-
import type { SimulateUserOperationAssetChangesRequest, SimulateUserOperationAssetChangesResponse, RequestGasAndPaymasterAndDataRequest, RequestGasAndPaymasterAndDataResponse,
|
|
2
|
+
import type { SimulateUserOperationAssetChangesRequest, SimulateUserOperationAssetChangesResponse, RequestGasAndPaymasterAndDataRequest, RequestGasAndPaymasterAndDataResponse, RequestPaymasterTokenQuoteRequest, RequestPaymasterTokenQuoteResponse } from "../actions/types";
|
|
3
3
|
import type { AlchemyTransport } from "../alchemyTransport";
|
|
4
4
|
export type AlchemyRpcSchema = [
|
|
5
5
|
{
|
|
@@ -22,8 +22,8 @@ export type AlchemyRpcSchema = [
|
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
Method: "alchemy_requestPaymasterTokenQuote";
|
|
25
|
-
Parameters:
|
|
26
|
-
ReturnType:
|
|
25
|
+
Parameters: RequestPaymasterTokenQuoteRequest;
|
|
26
|
+
ReturnType: RequestPaymasterTokenQuoteResponse;
|
|
27
27
|
}
|
|
28
28
|
];
|
|
29
29
|
export type ClientWithAlchemyMethods = BundlerClient<AlchemyTransport> & {
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.46.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@account-kit/infra",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.46.0",
|
|
4
4
|
"description": "adapters for @aa-sdk/core for interacting with alchemy services",
|
|
5
5
|
"author": "Alchemy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"typescript-template": "*"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@aa-sdk/core": "^4.
|
|
47
|
-
"@account-kit/logging": "^4.
|
|
46
|
+
"@aa-sdk/core": "^4.46.0",
|
|
47
|
+
"@account-kit/logging": "^4.46.0",
|
|
48
48
|
"eventemitter3": "^5.0.1",
|
|
49
49
|
"zod": "^3.22.4"
|
|
50
50
|
},
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"url": "https://github.com/alchemyplatform/aa-sdk/issues"
|
|
64
64
|
},
|
|
65
65
|
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "fb516cc1ba7059a257fb329fb8663c7cc90947bb",
|
|
67
67
|
"optionalDependencies": {
|
|
68
68
|
"alchemy-sdk": "^3.0.0"
|
|
69
69
|
}
|
package/src/actions/types.ts
CHANGED
|
@@ -92,13 +92,23 @@ export type RequestGasAndPaymasterAndDataResponse<
|
|
|
92
92
|
>
|
|
93
93
|
: never);
|
|
94
94
|
|
|
95
|
-
export type
|
|
95
|
+
export type RequestPaymasterTokenQuoteRequest = [
|
|
96
96
|
{
|
|
97
97
|
policyId: string;
|
|
98
|
-
|
|
98
|
+
entryPoint: Address;
|
|
99
|
+
erc20Context?: {
|
|
100
|
+
tokenAddress: Address;
|
|
101
|
+
permit?: Hex;
|
|
102
|
+
maxTokenAmount?: BigInt;
|
|
103
|
+
};
|
|
104
|
+
dummySignature: Hex;
|
|
105
|
+
userOperation: UserOperationRequest;
|
|
106
|
+
overrides?: UserOperationOverrides;
|
|
99
107
|
},
|
|
100
108
|
];
|
|
101
109
|
|
|
102
|
-
export type
|
|
103
|
-
|
|
110
|
+
export type RequestPaymasterTokenQuoteResponse = {
|
|
111
|
+
tokensPerEth: string;
|
|
112
|
+
estimatedTokenAmount: string;
|
|
113
|
+
estimatedUsd: number;
|
|
104
114
|
};
|
package/src/client/types.ts
CHANGED
|
@@ -8,8 +8,8 @@ import type {
|
|
|
8
8
|
SimulateUserOperationAssetChangesResponse,
|
|
9
9
|
RequestGasAndPaymasterAndDataRequest,
|
|
10
10
|
RequestGasAndPaymasterAndDataResponse,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
RequestPaymasterTokenQuoteRequest,
|
|
12
|
+
RequestPaymasterTokenQuoteResponse,
|
|
13
13
|
} from "../actions/types";
|
|
14
14
|
import type { AlchemyTransport } from "../alchemyTransport";
|
|
15
15
|
|
|
@@ -32,8 +32,8 @@ export type AlchemyRpcSchema = [
|
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
Method: "alchemy_requestPaymasterTokenQuote";
|
|
35
|
-
Parameters:
|
|
36
|
-
ReturnType:
|
|
35
|
+
Parameters: RequestPaymasterTokenQuoteRequest;
|
|
36
|
+
ReturnType: RequestPaymasterTokenQuoteResponse;
|
|
37
37
|
},
|
|
38
38
|
];
|
|
39
39
|
|
package/src/version.ts
CHANGED