diff --git a/packages/account/package.json b/packages/account/package.json index 86ca482f6..da1d5a7a6 100644 --- a/packages/account/package.json +++ b/packages/account/package.json @@ -9,8 +9,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "default": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": "./dist/cjs/index.js" }, "./package.json": "./package.json" }, diff --git a/packages/account/src/index.ts b/packages/account/src/index.ts index c2d85b676..615c0a6da 100644 --- a/packages/account/src/index.ts +++ b/packages/account/src/index.ts @@ -14,9 +14,18 @@ export { type PaymasterFeeQuote, type SponsorUserOperationDto, type FeeQuotesOrDataResponse, + createPaymaster, } from "@biconomy/paymaster"; -export { EthersSigner, convertSigner } from "@biconomy/common"; -export { Bundler, type IBundler, extractChainIdFromBundlerUrl, type UserOpResponse, type UserOpStatus, type UserOpReceipt } from "@biconomy/bundler"; +export { EthersSigner, convertSigner, type LightSigner } from "@biconomy/common"; +export { + Bundler, + type IBundler, + extractChainIdFromBundlerUrl, + type UserOpResponse, + type UserOpStatus, + type UserOpReceipt, + createBundler, +} from "@biconomy/bundler"; export { createECDSAOwnershipValidationModule, createERC20SessionValidationModule, diff --git a/packages/bundler/CHANGELOG.md b/packages/bundler/CHANGELOG.md index 8e768924c..35465063e 100644 --- a/packages/bundler/CHANGELOG.md +++ b/packages/bundler/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 4.0.0 (2023-07-02) + +Export createBundler alias for static Bundler.create call + ## 3.1.3 (2023-12-28) VERSION Bump Only. @@ -11,29 +15,23 @@ VERSION Bump Only. ### Features -* Make entrypoint address optional in bundler config ([547724a](https://github.com/bcnmy/biconomy-client-sdk/pull/337/commits/547724a15366ee1e63aee80fdee0edc128a84c41)) +- Make entrypoint address optional in bundler config ([547724a](https://github.com/bcnmy/biconomy-client-sdk/pull/337/commits/547724a15366ee1e63aee80fdee0edc128a84c41)) ### Bug Fixes -* use undefined in place of ! + check on limits returned by paymaster and throw ([0376901](https://github.com/bcnmy/biconomy-client-sdk/commit/0376901b7aec8c268a6a3c654d147335974d78f3)) +- use undefined in place of ! + check on limits returned by paymaster and throw ([0376901](https://github.com/bcnmy/biconomy-client-sdk/commit/0376901b7aec8c268a6a3c654d147335974d78f3)) ## 3.1.1 (2023-11-09) - ### Bug Fixes -* resolve comments ([34fd6a3](https://github.com/bcnmy/biconomy-client-sdk/commit/34fd6a308805061d9faf408f1ce6da9cac0ee819)) - +- resolve comments ([34fd6a3](https://github.com/bcnmy/biconomy-client-sdk/commit/34fd6a308805061d9faf408f1ce6da9cac0ee819)) ### Features -* add linea mainnet ([c3d1283](https://github.com/bcnmy/biconomy-client-sdk/commit/c3d12832002c18e187f910b5f7dac5ef5b797abf)) -* chain integration ([ddc5d91](https://github.com/bcnmy/biconomy-client-sdk/commit/ddc5d91d5df10a10266f4500644d24e0bc1ea684)) -* chain integration ([738556e](https://github.com/bcnmy/biconomy-client-sdk/commit/738556efcfda70fedc652befc0b35f8835c5e360)) - - - - +- add linea mainnet ([c3d1283](https://github.com/bcnmy/biconomy-client-sdk/commit/c3d12832002c18e187f910b5f7dac5ef5b797abf)) +- chain integration ([ddc5d91](https://github.com/bcnmy/biconomy-client-sdk/commit/ddc5d91d5df10a10266f4500644d24e0bc1ea684)) +- chain integration ([738556e](https://github.com/bcnmy/biconomy-client-sdk/commit/738556efcfda70fedc652befc0b35f8835c5e360)) ## 3.1.0 (2023-09-20) @@ -41,20 +39,15 @@ Modular Account Abstraction is here. ### Bug Fixes -* lint warning and errors ([2135498](https://github.com/bcnmy/biconomy-client-sdk/commit/2135498896beb54d25add820c1521ffa22d5db7c)) -* linting ([563befe](https://github.com/bcnmy/biconomy-client-sdk/commit/563befedcc37aee4c531e01809b47e559a33f526)) -* more lint issues ([10df908](https://github.com/bcnmy/biconomy-client-sdk/commit/10df90821b473fd668907cf3e447dfe3825317fc)) - +- lint warning and errors ([2135498](https://github.com/bcnmy/biconomy-client-sdk/commit/2135498896beb54d25add820c1521ffa22d5db7c)) +- linting ([563befe](https://github.com/bcnmy/biconomy-client-sdk/commit/563befedcc37aee4c531e01809b47e559a33f526)) +- more lint issues ([10df908](https://github.com/bcnmy/biconomy-client-sdk/commit/10df90821b473fd668907cf3e447dfe3825317fc)) ### Features -* base mainnet integration ([c17f5d6](https://github.com/bcnmy/biconomy-client-sdk/commit/c17f5d6c2fe34b106e6d9755f54fab2493db6fbe)) -* chain integration ([ddc5d91](https://github.com/bcnmy/biconomy-client-sdk/commit/ddc5d91d5df10a10266f4500644d24e0bc1ea684)) -* chain integration ([738556e](https://github.com/bcnmy/biconomy-client-sdk/commit/738556efcfda70fedc652befc0b35f8835c5e360)) - - - - +- base mainnet integration ([c17f5d6](https://github.com/bcnmy/biconomy-client-sdk/commit/c17f5d6c2fe34b106e6d9755f54fab2493db6fbe)) +- chain integration ([ddc5d91](https://github.com/bcnmy/biconomy-client-sdk/commit/ddc5d91d5df10a10266f4500644d24e0bc1ea684)) +- chain integration ([738556e](https://github.com/bcnmy/biconomy-client-sdk/commit/738556efcfda70fedc652befc0b35f8835c5e360)) ## 3.0.0 (2023-08-28) @@ -62,33 +55,20 @@ Modular SDK - consists stable version of below updates done in Alphas. ### Features -* base mainnet integration ([c17f5d6](https://github.com/bcnmy/biconomy-client-sdk/commit/c17f5d6c2fe34b106e6d9755f54fab2493db6fbe)) - - - - +- base mainnet integration ([c17f5d6](https://github.com/bcnmy/biconomy-client-sdk/commit/c17f5d6c2fe34b106e6d9755f54fab2493db6fbe)) ## 3.0.0-alpha.0 (2023-08-02) VERSION Bump Only. - - - # 3.1.0-alpha.0 (2023-07-24) - ### Features -* chain integration ([738556e](https://github.com/bcnmy/biconomy-client-sdk/commit/738556efcfda70fedc652befc0b35f8835c5e360)) - - - - +- chain integration ([738556e](https://github.com/bcnmy/biconomy-client-sdk/commit/738556efcfda70fedc652befc0b35f8835c5e360)) ## 3.0.0-alpha.0 (2023-07-12) - ### Bug Fixes -* linting ([563befe](https://github.com/bcnmy/biconomy-client-sdk/commit/563befedcc37aee4c531e01809b47e559a33f526)) +- linting ([563befe](https://github.com/bcnmy/biconomy-client-sdk/commit/563befedcc37aee4c531e01809b47e559a33f526)) diff --git a/packages/bundler/Readme.md b/packages/bundler/Readme.md index ef4ad69be..06e0c4af6 100644 --- a/packages/bundler/Readme.md +++ b/packages/bundler/Readme.md @@ -28,16 +28,12 @@ yarn add @biconomy/bundler ```typescript // This is how you create bundler instance in your dapp's -import { IBundler, Bundler } from "@biconomy/bundler"; +import { IBundler, createBundler } from "@biconomy/bundler"; // Make use of core-types package import { ChainId } from "@biconomy/core-types"; -const bundler: IBundler = new Bundler({ - bundlerUrl: "", - chainId: ChainId.POLYGON_MAINNET, - entryPointAddress: "", -}); +const bundler: IBundler = await createBundler({ bundlerUrl: "" }); // you can get this value from biconomy dashboard. https://dashboard.biconomy.io ``` Following are the methods that can be call on bundler instance @@ -51,7 +47,7 @@ export interface IBundler { } ``` -**estimateUserOpGas** +**[estimateUserOpGas](https://bcnmy.github.io/biconomy-client-sdk/classes/Bundler.html#estimateUserOpGas)** Estimate the gas values for a UserOperation. Given UserOperation optionally without gas limits and gas prices, return the needed gas limits. The signature field is ignored by the wallet, so that the operation will not require user's approval. Still, it might require putting a "semi-valid" signature (e.g. a signature in the right length) **Return Values** @@ -62,7 +58,7 @@ Estimate the gas values for a UserOperation. Given UserOperation optionally with -------------------------------- -**sendUserOp** +**[sendUserOp](https://bcnmy.github.io/biconomy-client-sdk/classes/Bundler.html#sendUserOp)** it submits a User Operation object to the User Operation pool of the client. The client MUST validate the UserOperation, and return a result accordingly. The result SHOULD be set to the userOpHash if and only if the request passed simulation and was accepted in the client's User Operation pool. If the validation, simulation, or User Operation pool inclusion fails, result SHOULD NOT be returned. Rather, the client SHOULD return the failure reason. @@ -72,7 +68,7 @@ If the UserOperation is valid, the client MUST return the calculated userOpHash -------------------------------- -**getUserOpByHash** +**[getUserOpByHash](https://bcnmy.github.io/biconomy-client-sdk/classes/Bundler.html#getUserOpByHash)** Return a UserOperation based on a hash (userOpHash) returned by sendUserOp (eth_sendUserOperation) **Return Values** @@ -81,7 +77,7 @@ null in case the UserOperation is not yet included in a block, or a full UserOpe -------------------------------- -**getUserOpReceipt** +**[getUserOpReceipt](https://bcnmy.github.io/biconomy-client-sdk/classes/Bundler.html#getUserOpReceipt)** Return a UserOperation receipt based on a hash (userOpHash) returned by eth_sendUserOperation diff --git a/packages/bundler/package.json b/packages/bundler/package.json index f0db322b1..785cb6d0c 100644 --- a/packages/bundler/package.json +++ b/packages/bundler/package.json @@ -9,8 +9,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "default": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": "./dist/cjs/index.js" }, "./package.json": "./package.json" }, diff --git a/packages/bundler/src/Bundler.ts b/packages/bundler/src/Bundler.ts index 69bedf8a0..a20fadfb4 100644 --- a/packages/bundler/src/Bundler.ts +++ b/packages/bundler/src/Bundler.ts @@ -16,7 +16,7 @@ import { UserOpStatus, GetUserOperationStatusResponse, SimulationType, - BunderConfigWithChainId, + BundlerConfigWithChainId, } from "./utils/Types.js"; import { transformUserOP, getTimestampInSeconds } from "./utils/HelperFunction.js"; import { @@ -35,7 +35,7 @@ import { sendRequest, HttpMethod } from "@biconomy/common"; * Checkout the proposal for more details on Bundlers. */ export class Bundler implements IBundler { - private bundlerConfig: BunderConfigWithChainId; + private bundlerConfig: BundlerConfigWithChainId; // eslint-disable-next-line no-unused-vars UserOpReceiptIntervals!: { [key in number]?: number }; @@ -325,4 +325,8 @@ export class Bundler implements IBundler { ); return response.result; } + + public static async create(config: Bundlerconfig): Promise { + return new Bundler(config); + } } diff --git a/packages/bundler/src/index.ts b/packages/bundler/src/index.ts index 785c6050e..7a779f5d5 100644 --- a/packages/bundler/src/index.ts +++ b/packages/bundler/src/index.ts @@ -1,4 +1,8 @@ +import { Bundler } from "./Bundler.js"; + export * from "./interfaces/IBundler.js"; export * from "./Bundler.js"; export * from "./utils/Types.js"; export * from "./utils/Utils.js"; + +export const createBundler = Bundler.create; diff --git a/packages/bundler/src/utils/Types.ts b/packages/bundler/src/utils/Types.ts index 504819848..746d1b24e 100644 --- a/packages/bundler/src/utils/Types.ts +++ b/packages/bundler/src/utils/Types.ts @@ -11,7 +11,7 @@ export type Bundlerconfig = { userOpReceiptMaxDurationIntervals?: { [key in number]?: number }; userOpWaitForTxHashMaxDurationIntervals?: { [key in number]?: number }; }; -export type BunderConfigWithChainId = Bundlerconfig & { chainId: number }; +export type BundlerConfigWithChainId = Bundlerconfig & { chainId: number }; export type UserOpReceipt = { /* The request hash of the UserOperation. */ diff --git a/packages/common/package.json b/packages/common/package.json index e61936dc0..2f06ca128 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -15,8 +15,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "default": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": "./dist/cjs/index.js" }, "./package.json": "./package.json" }, diff --git a/packages/common/src/utils/Types.ts b/packages/common/src/utils/Types.ts index 5b20e33db..69508e21f 100644 --- a/packages/common/src/utils/Types.ts +++ b/packages/common/src/utils/Types.ts @@ -3,11 +3,11 @@ import { Signer } from "@ethersproject/abstract-signer"; import { SmartAccountSigner } from "@alchemy/aa-core"; export type SupportedSignerName = "alchemy" | "ethers" | "viem"; -export type SupportedSigner = SmartAccountSigner | WalletClient | Signer | EthersV6Signer; +export type SupportedSigner = SmartAccountSigner | WalletClient | Signer | LightSigner; export type Service = "Bundler" | "Paymaster"; -export interface EthersV6Signer { +export interface LightSigner { getAddress(): Promise; signMessage(message: string | Uint8Array): Promise; } diff --git a/packages/modules/package.json b/packages/modules/package.json index fd992415d..93bb8d6d6 100644 --- a/packages/modules/package.json +++ b/packages/modules/package.json @@ -9,8 +9,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "default": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": "./dist/cjs/index.js" }, "./package.json": "./package.json" }, diff --git a/packages/particle-auth/package.json b/packages/particle-auth/package.json index 8b3b173ba..9568c4b47 100644 --- a/packages/particle-auth/package.json +++ b/packages/particle-auth/package.json @@ -9,8 +9,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "default": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": "./dist/cjs/index.js" }, "./package.json": "./package.json" }, diff --git a/packages/paymaster/CHANGELOG.md b/packages/paymaster/CHANGELOG.md index 27767c9bf..abbc2cae6 100644 --- a/packages/paymaster/CHANGELOG.md +++ b/packages/paymaster/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 4.0.0 (2023-07-02) + +Export createPaymaster alias for static Paymaster.create call + ## 3.1.3 (2023-12-28) VERSION Bump Only. @@ -13,52 +17,42 @@ VERSION Bump Only. ## 3.1.1 (2023-11-09) - ### Bug Fixes -* lint warning and errors ([2135498](https://github.com/bcnmy/biconomy-client-sdk/commit/2135498896beb54d25add820c1521ffa22d5db7c)) - - +- lint warning and errors ([2135498](https://github.com/bcnmy/biconomy-client-sdk/commit/2135498896beb54d25add820c1521ffa22d5db7c)) ## 3.1.0 (2023-09-20) -Version Bump Only. +Version Bump Only. ## 3.0.0 (2023-08-28) Modular SDK - consists stable version of below updates done in Alphas. - - ## 3.0.0-alpha.0 (2023-08-02) ### Features -* letting maxFee and maxPriority not be undefined([46b985c](https://github.com/bcnmy/biconomy-client-sdk/commit/46b985c75fd135f151c9ac4380a65438cccc6f39)) -* passing on paymasterAndData([ae267f1])(https://github.com/bcnmy/biconomy-client-sdk/commit/ae267f1a103f37856eb233a38db7063bfcc4cb45) -* handle undefined values([e53d4a7])(https://github.com/bcnmy/biconomy-client-sdk/commit/e53d4a78aded8c8802786173daf12b27d445d4a0) -* handling userOp null values([c89ac42])(https://github.com/bcnmy/biconomy-client-sdk/commit/c89ac42ae1d7fd985ef2396d925cc63ec5cf926b) -* using signature provided by userop([0c40641])(https://github.com/bcnmy/biconomy-client-sdk/commit/0c40641e4cd6133f7348bb3e3022f8ab78fe299b) - - +- letting maxFee and maxPriority not be undefined([46b985c](https://github.com/bcnmy/biconomy-client-sdk/commit/46b985c75fd135f151c9ac4380a65438cccc6f39)) +- passing on paymasterAndData([ae267f1])(https://github.com/bcnmy/biconomy-client-sdk/commit/ae267f1a103f37856eb233a38db7063bfcc4cb45) +- handle undefined values([e53d4a7])(https://github.com/bcnmy/biconomy-client-sdk/commit/e53d4a78aded8c8802786173daf12b27d445d4a0) +- handling userOp null values([c89ac42])(https://github.com/bcnmy/biconomy-client-sdk/commit/c89ac42ae1d7fd985ef2396d925cc63ec5cf926b) +- using signature provided by userop([0c40641])(https://github.com/bcnmy/biconomy-client-sdk/commit/0c40641e4cd6133f7348bb3e3022f8ab78fe299b) # 3.1.0-alpha.0 (2023-07-24) VERSION Bump Only. - ## 3.0.0-alpha.0 (2023-07-12) - ### Bug Fixes -* linting ([563befe](https://github.com/bcnmy/biconomy-client-sdk/commit/563befedcc37aee4c531e01809b47e559a33f526)) -* linting ([d2f5f1a](https://github.com/bcnmy/biconomy-client-sdk/commit/d2f5f1afadc2a561c4ef01c0821a25b9d7fe776e)) - +- linting ([563befe](https://github.com/bcnmy/biconomy-client-sdk/commit/563befedcc37aee4c531e01809b47e559a33f526)) +- linting ([d2f5f1a](https://github.com/bcnmy/biconomy-client-sdk/commit/d2f5f1afadc2a561c4ef01c0821a25b9d7fe776e)) ### Features -* covert gas limits to numbers for making pm service call ([b1fe96f](https://github.com/bcnmy/biconomy-client-sdk/commit/b1fe96f7a312ceaf7aa689939b7c69718c710dd1)) -* get fee quote or data method in biconomy paymaster ([47748a6](https://github.com/bcnmy/biconomy-client-sdk/commit/47748a6384c2b74e1d9be4d570554098e1ac02e7)) -* update responses to support calculateGasLimits flag + update interfaces ([55bbd38](https://github.com/bcnmy/biconomy-client-sdk/commit/55bbd38b4ef8acaf8da1d52e36846557b134aba4)) -* using hybrid paymaster interface ([5fc56a7](https://github.com/bcnmy/biconomy-client-sdk/commit/5fc56a7db2de4a3f4bb87cd4d75584e79010b206)) +- covert gas limits to numbers for making pm service call ([b1fe96f](https://github.com/bcnmy/biconomy-client-sdk/commit/b1fe96f7a312ceaf7aa689939b7c69718c710dd1)) +- get fee quote or data method in biconomy paymaster ([47748a6](https://github.com/bcnmy/biconomy-client-sdk/commit/47748a6384c2b74e1d9be4d570554098e1ac02e7)) +- update responses to support calculateGasLimits flag + update interfaces ([55bbd38](https://github.com/bcnmy/biconomy-client-sdk/commit/55bbd38b4ef8acaf8da1d52e36846557b134aba4)) +- using hybrid paymaster interface ([5fc56a7](https://github.com/bcnmy/biconomy-client-sdk/commit/5fc56a7db2de4a3f4bb87cd4d75584e79010b206)) diff --git a/packages/paymaster/Readme.md b/packages/paymaster/Readme.md index fce6d8384..562a790f6 100644 --- a/packages/paymaster/Readme.md +++ b/packages/paymaster/Readme.md @@ -22,11 +22,11 @@ yarn add @biconomy/paymaster ```typescript // This is how you create paymaster instance in your dapp's -import { IPaymaster, BiconomyPaymaster } from "@biconomy/paymaster"; +import { IPaymaster, createPaymaster } from "@biconomy/paymaster"; // Currently this package only exports Biconomy Paymaster which acts as a Hybrid paymaster for gas abstraction. You can sponsor user transactions but can also make users pay gas in supported ERC20 tokens. -const paymaster = new BiconomyPaymaster({ +const paymaster = await createPaymaster({ paymasterUrl: "", // you can get this value from biconomy dashboard. https://dashboard.biconomy.io }); ``` @@ -57,17 +57,17 @@ export interface IPaymaster { ### Below API methods can be used for Biconomy Hybrid paymaster -**getPaymasterAndData** +**[getPaymasterAndData](https://bcnmy.github.io/biconomy-client-sdk/classes/Paymaster.html#getPaymasterAndData)** This function accepts a **`Partial`** object that includes all properties of **`userOp`** except for the **`signature`** and **`paymasterAndData`** field. It returns **`paymasterAndData`** as part of the **`PaymasterAndDataResponse`** -**buildTokenApprovalTransaction** +**[buildTokenApprovalTransaction](https://bcnmy.github.io/biconomy-client-sdk/classes/Paymaster.html#buildTokenApprovalTransaction)** This function is specifically used for token paymaster sponsorship. The primary purpose of this function is to create an approve transaction for paymaster that gets batched with the rest of your transactions. Note: You don't need to call this function. It will automatically get called as part of the **`buildTokenPaymasterUserOp`** function call. -**getPaymasterFeeQuotesOrData** +**[getPaymasterFeeQuotesOrData](https://bcnmy.github.io/biconomy-client-sdk/classes/Paymaster.html#getPaymasterFeeQuotesOrData)** This function is used to fetch quote information or paymaster data based on provided userOperation and paymasterServiceData. If explicit mode is not provided it tries for sponsorship first and then falls back to serving fee quotes for supported/requested token/s diff --git a/packages/paymaster/package.json b/packages/paymaster/package.json index ea045d0c9..cc40d7de7 100644 --- a/packages/paymaster/package.json +++ b/packages/paymaster/package.json @@ -9,8 +9,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "default": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": "./dist/cjs/index.js" }, "./package.json": "./package.json" }, diff --git a/packages/paymaster/src/BiconomyPaymaster.ts b/packages/paymaster/src/BiconomyPaymaster.ts index 3f4eb66bd..bfe04699c 100644 --- a/packages/paymaster/src/BiconomyPaymaster.ts +++ b/packages/paymaster/src/BiconomyPaymaster.ts @@ -342,4 +342,8 @@ export class BiconomyPaymaster implements IHybridPaymaster { return "0x"; } + + public static async create(config: PaymasterConfig): Promise { + return new BiconomyPaymaster(config); + } } diff --git a/packages/paymaster/src/index.ts b/packages/paymaster/src/index.ts index da98ace55..4d78b3a0a 100644 --- a/packages/paymaster/src/index.ts +++ b/packages/paymaster/src/index.ts @@ -1,4 +1,8 @@ +import { BiconomyPaymaster } from "./BiconomyPaymaster.js"; export * from "./interfaces/IPaymaster.js"; export * from "./interfaces/IHybridPaymaster.js"; export * from "./utils/Types.js"; export * from "./BiconomyPaymaster.js"; + +export const Paymaster = BiconomyPaymaster; +export const createPaymaster = Paymaster.create; diff --git a/packages/paymaster/src/utils/Types.ts b/packages/paymaster/src/utils/Types.ts index e4f07e877..d1dd7ec9f 100644 --- a/packages/paymaster/src/utils/Types.ts +++ b/packages/paymaster/src/utils/Types.ts @@ -112,7 +112,7 @@ export type FeeQuotesOrDataResponse = { feeQuotes?: PaymasterFeeQuote[]; /** Normally set to the spender in the proceeding call to send the tx */ tokenPaymasterAddress?: Hex; - /** Normally set to the spender in the proceeding call to send the tx */ + /** Relevant Data returned from the paymaster */ paymasterAndData?: Uint8Array | Hex; /* Gas overhead of this UserOperation */ preVerificationGas?: BigNumberish; diff --git a/packages/transak/package.json b/packages/transak/package.json index 6224620c9..8955eb6f6 100644 --- a/packages/transak/package.json +++ b/packages/transak/package.json @@ -9,8 +9,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "default": "./dist/cjs/index.js", - "types": "./dist/types/index.d.ts" + "types": "./dist/types/index.d.ts", + "default": "./dist/cjs/index.js" }, "./package.json": "./package.json" },