permissionless 0.0.6 → 0.0.8
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/CHANGELOG.md +13 -0
- package/_cjs/actions/bundler/chainId.js +11 -0
- package/_cjs/actions/bundler/chainId.js.map +1 -0
- package/_cjs/actions/bundler/estimateUserOperationGas.js +18 -0
- package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -0
- package/_cjs/actions/bundler/getUserOperationByHash.js +30 -0
- package/_cjs/actions/bundler/getUserOperationByHash.js.map +1 -0
- package/_cjs/actions/bundler/getUserOperationReceipt.js +48 -0
- package/_cjs/actions/bundler/getUserOperationReceipt.js.map +1 -0
- package/_cjs/actions/bundler/sendUserOperation.js +13 -0
- package/_cjs/actions/bundler/sendUserOperation.js.map +1 -0
- package/_cjs/actions/bundler/supportedEntryPoints.js +11 -0
- package/_cjs/actions/bundler/supportedEntryPoints.js.map +1 -0
- package/_cjs/actions/bundler/waitForUserOperationReceipt.js +46 -0
- package/_cjs/actions/bundler/waitForUserOperationReceipt.js.map +1 -0
- package/_cjs/actions/index.js +22 -12
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/pimlico/getUserOperationGasPrice.js +25 -0
- package/_cjs/actions/pimlico/getUserOperationGasPrice.js.map +1 -0
- package/_cjs/actions/pimlico/getUserOperationStatus.js +11 -0
- package/_cjs/actions/pimlico/getUserOperationStatus.js.map +1 -0
- package/_cjs/actions/pimlico/sponsorUserOperation.js +18 -0
- package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -0
- package/_cjs/actions/pimlico.js +10 -52
- package/_cjs/actions/pimlico.js.map +1 -1
- package/_cjs/actions/public/getAccountNonce.js +35 -0
- package/_cjs/actions/public/getAccountNonce.js.map +1 -0
- package/_cjs/actions/{public.js → public/getSenderAddress.js} +2 -33
- package/_cjs/actions/public/getSenderAddress.js.map +1 -0
- package/_cjs/actions/stackup/accounts.js +12 -0
- package/_cjs/actions/stackup/accounts.js.map +1 -0
- package/_cjs/actions/stackup/sponsorUserOperation.js +18 -0
- package/_cjs/actions/stackup/sponsorUserOperation.js.map +1 -0
- package/_cjs/actions/stackup.js +10 -0
- package/_cjs/actions/stackup.js.map +1 -0
- package/_cjs/clients/bundler.js +2 -2
- package/_cjs/clients/bundler.js.map +1 -1
- package/_cjs/clients/decorators/bundler.js +21 -0
- package/_cjs/clients/decorators/bundler.js.map +1 -0
- package/_cjs/clients/decorators/pimlico.js +16 -0
- package/_cjs/clients/decorators/pimlico.js.map +1 -0
- package/_cjs/clients/decorators/stackup.js +11 -0
- package/_cjs/clients/decorators/stackup.js.map +1 -0
- package/_cjs/clients/pimlico.js +4 -4
- package/_cjs/clients/pimlico.js.map +1 -1
- package/_cjs/clients/stackup.js +18 -0
- package/_cjs/clients/stackup.js.map +1 -0
- package/_cjs/index.js +28 -4
- package/_cjs/index.js.map +1 -1
- package/_cjs/types/stackup.js +3 -0
- package/_cjs/types/stackup.js.map +1 -0
- package/_cjs/{actions/utils.js → utils/deepHexlify.js} +1 -1
- package/_cjs/utils/deepHexlify.js.map +1 -0
- package/_cjs/utils/getUserOperationHash.js +38 -0
- package/_cjs/utils/getUserOperationHash.js.map +1 -0
- package/_cjs/utils/index.js +2 -34
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/observe.js +39 -0
- package/_cjs/utils/observe.js.map +1 -0
- package/_esm/actions/bundler/chainId.js +29 -0
- package/_esm/actions/bundler/chainId.js.map +1 -0
- package/_esm/actions/bundler/estimateUserOperationGas.js +41 -0
- package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -0
- package/_esm/actions/bundler/getUserOperationByHash.js +48 -0
- package/_esm/actions/bundler/getUserOperationByHash.js.map +1 -0
- package/_esm/actions/bundler/getUserOperationReceipt.js +66 -0
- package/_esm/actions/bundler/getUserOperationReceipt.js.map +1 -0
- package/_esm/actions/bundler/sendUserOperation.js +36 -0
- package/_esm/actions/bundler/sendUserOperation.js.map +1 -0
- package/_esm/actions/bundler/supportedEntryPoints.js +29 -0
- package/_esm/actions/bundler/supportedEntryPoints.js.map +1 -0
- package/_esm/actions/bundler/waitForUserOperationReceipt.js +63 -0
- package/_esm/actions/bundler/waitForUserOperationReceipt.js.map +1 -0
- package/_esm/actions/index.js +11 -3
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/pimlico/getUserOperationGasPrice.js +42 -0
- package/_esm/actions/pimlico/getUserOperationGasPrice.js.map +1 -0
- package/_esm/actions/pimlico/getUserOperationStatus.js +29 -0
- package/_esm/actions/pimlico/getUserOperationStatus.js.map +1 -0
- package/_esm/actions/pimlico/sponsorUserOperation.js +39 -0
- package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -0
- package/_esm/actions/pimlico.js +5 -123
- package/_esm/actions/pimlico.js.map +1 -1
- package/_esm/actions/public/getAccountNonce.js +57 -0
- package/_esm/actions/public/getAccountNonce.js.map +1 -0
- package/_esm/actions/{public.js → public/getSenderAddress.js} +1 -57
- package/_esm/actions/public/getSenderAddress.js.map +1 -0
- package/_esm/actions/stackup/accounts.js +30 -0
- package/_esm/actions/stackup/accounts.js.map +1 -0
- package/_esm/actions/stackup/sponsorUserOperation.js +40 -0
- package/_esm/actions/stackup/sponsorUserOperation.js.map +1 -0
- package/_esm/actions/stackup.js +5 -0
- package/_esm/actions/stackup.js.map +1 -0
- package/_esm/clients/bundler.js +1 -1
- package/_esm/clients/bundler.js.map +1 -1
- package/_esm/clients/decorators/bundler.js +18 -0
- package/_esm/clients/decorators/bundler.js.map +1 -0
- package/_esm/clients/decorators/pimlico.js +20 -0
- package/_esm/clients/decorators/pimlico.js.map +1 -0
- package/_esm/clients/decorators/stackup.js +8 -0
- package/_esm/clients/decorators/stackup.js.map +1 -0
- package/_esm/clients/pimlico.js +2 -2
- package/_esm/clients/pimlico.js.map +1 -1
- package/_esm/clients/stackup.js +33 -0
- package/_esm/clients/stackup.js.map +1 -0
- package/_esm/index.js +17 -4
- package/_esm/index.js.map +1 -1
- package/_esm/types/stackup.js +2 -0
- package/_esm/types/stackup.js.map +1 -0
- package/_esm/{actions/utils.js → utils/deepHexlify.js} +1 -1
- package/_esm/utils/deepHexlify.js.map +1 -0
- package/_esm/utils/getUserOperationHash.js +55 -0
- package/_esm/utils/getUserOperationHash.js.map +1 -0
- package/_esm/utils/index.js +1 -54
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/observe.js +42 -0
- package/_esm/utils/observe.js.map +1 -0
- package/_types/actions/bundler/chainId.d.ts +25 -0
- package/_types/actions/bundler/chainId.d.ts.map +1 -0
- package/_types/actions/bundler/estimateUserOperationGas.d.ts +42 -0
- package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -0
- package/_types/actions/bundler/getUserOperationByHash.d.ts +37 -0
- package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -0
- package/_types/actions/bundler/getUserOperationReceipt.d.ts +62 -0
- package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -0
- package/_types/actions/bundler/sendUserOperation.d.ts +36 -0
- package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -0
- package/_types/actions/bundler/supportedEntryPoints.d.ts +26 -0
- package/_types/actions/bundler/supportedEntryPoints.d.ts.map +1 -0
- package/_types/actions/bundler/waitForUserOperationReceipt.d.ts +43 -0
- package/_types/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -0
- package/_types/actions/index.d.ts +19 -6
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/pimlico/getUserOperationGasPrice.d.ts +38 -0
- package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -0
- package/_types/actions/pimlico/getUserOperationStatus.d.ts +31 -0
- package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -0
- package/_types/actions/pimlico/sponsorUserOperation.d.ts +41 -0
- package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -0
- package/_types/actions/pimlico.d.ts +7 -177
- package/_types/actions/pimlico.d.ts.map +1 -1
- package/_types/actions/public/getAccountNonce.d.ts +34 -0
- package/_types/actions/public/getAccountNonce.d.ts.map +1 -0
- package/_types/actions/{public.d.ts → public/getSenderAddress.d.ts} +2 -35
- package/_types/actions/public/getSenderAddress.d.ts.map +1 -0
- package/_types/actions/stackup/accounts.d.ts +29 -0
- package/_types/actions/stackup/accounts.d.ts.map +1 -0
- package/_types/actions/stackup/sponsorUserOperation.d.ts +43 -0
- package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -0
- package/_types/actions/stackup.d.ts +7 -0
- package/_types/actions/stackup.d.ts.map +1 -0
- package/_types/clients/bundler.d.ts +3 -3
- package/_types/clients/bundler.d.ts.map +1 -1
- package/_types/clients/decorators/bundler.d.ts +173 -0
- package/_types/clients/decorators/bundler.d.ts.map +1 -0
- package/_types/clients/decorators/pimlico.d.ts +78 -0
- package/_types/clients/decorators/pimlico.d.ts.map +1 -0
- package/_types/clients/decorators/stackup.d.ts +54 -0
- package/_types/clients/decorators/stackup.d.ts.map +1 -0
- package/_types/clients/pimlico.d.ts +3 -3
- package/_types/clients/pimlico.d.ts.map +1 -1
- package/_types/clients/stackup.d.ts +39 -0
- package/_types/clients/stackup.d.ts.map +1 -0
- package/_types/index.d.ts +28 -4
- package/_types/index.d.ts.map +1 -1
- package/_types/types/bundler.d.ts +1 -1
- package/_types/types/bundler.d.ts.map +1 -1
- package/_types/types/index.d.ts +1 -1
- package/_types/types/index.d.ts.map +1 -1
- package/_types/types/pimlico.d.ts +1 -1
- package/_types/types/pimlico.d.ts.map +1 -1
- package/_types/types/stackup.d.ts +35 -0
- package/_types/types/stackup.d.ts.map +1 -0
- package/_types/{actions/utils.d.ts → utils/deepHexlify.d.ts} +1 -1
- package/_types/utils/deepHexlify.d.ts.map +1 -0
- package/_types/utils/getUserOperationHash.d.ts +30 -0
- package/_types/utils/getUserOperationHash.d.ts.map +1 -0
- package/_types/utils/index.d.ts +2 -30
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/observe.d.ts +17 -0
- package/_types/utils/observe.d.ts.map +1 -0
- package/actions/bundler/chainId.ts +32 -0
- package/actions/bundler/estimateUserOperationGas.ts +62 -0
- package/actions/bundler/getUserOperationByHash.ts +69 -0
- package/actions/bundler/getUserOperationReceipt.ts +112 -0
- package/actions/bundler/sendUserOperation.ts +45 -0
- package/actions/bundler/supportedEntryPoints.ts +31 -0
- package/actions/bundler/waitForUserOperationReceipt.ts +80 -0
- package/actions/index.ts +30 -21
- package/actions/pimlico/getUserOperationGasPrice.ts +61 -0
- package/actions/pimlico/getUserOperationStatus.ts +41 -0
- package/actions/pimlico/sponsorUserOperation.ts +62 -0
- package/actions/pimlico.ts +34 -251
- package/actions/public/getAccountNonce.ts +63 -0
- package/actions/{public.ts → public/getSenderAddress.ts} +7 -68
- package/actions/stackup/accounts.ts +40 -0
- package/actions/stackup/sponsorUserOperation.ts +64 -0
- package/actions/stackup.ts +17 -0
- package/clients/bundler.ts +9 -4
- package/clients/decorators/bundler.ts +211 -0
- package/clients/decorators/pimlico.ts +107 -0
- package/clients/decorators/stackup.ts +65 -0
- package/clients/pimlico.ts +3 -4
- package/clients/stackup.ts +44 -0
- package/index.ts +70 -4
- package/package.json +11 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/bundler.ts +1 -1
- package/types/index.ts +1 -1
- package/types/pimlico.ts +1 -1
- package/types/stackup.ts +36 -0
- package/utils/getUserOperationHash.ts +68 -0
- package/utils/index.ts +2 -69
- package/utils/observe.ts +61 -0
- package/_cjs/actions/bundler.js +0 -118
- package/_cjs/actions/bundler.js.map +0 -1
- package/_cjs/actions/public.js.map +0 -1
- package/_cjs/actions/utils.js.map +0 -1
- package/_cjs/clients/index.js +0 -6
- package/_cjs/clients/index.js.map +0 -1
- package/_esm/actions/bundler.js +0 -251
- package/_esm/actions/bundler.js.map +0 -1
- package/_esm/actions/public.js.map +0 -1
- package/_esm/actions/utils.js.map +0 -1
- package/_esm/clients/index.js +0 -3
- package/_esm/clients/index.js.map +0 -1
- package/_types/actions/bundler.d.ts +0 -393
- package/_types/actions/bundler.d.ts.map +0 -1
- package/_types/actions/public.d.ts.map +0 -1
- package/_types/actions/utils.d.ts.map +0 -1
- package/_types/clients/index.d.ts +0 -3
- package/_types/clients/index.d.ts.map +0 -1
- package/actions/bundler.ts +0 -498
- package/clients/index.ts +0 -3
- /package/{actions/utils.ts → utils/deepHexlify.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# permissionless
|
|
2
2
|
|
|
3
|
+
## 0.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 09d693d: Added waitForUserOperationReceipt
|
|
8
|
+
|
|
9
|
+
## 0.0.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6f868d8: Added stackup paymaster actions
|
|
14
|
+
- 37d2171: Made esm build compatible with Node
|
|
15
|
+
|
|
3
16
|
## 0.0.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chainId = void 0;
|
|
4
|
+
const chainId = async (client) => {
|
|
5
|
+
return Number(await client.request({
|
|
6
|
+
method: "eth_chainId",
|
|
7
|
+
params: []
|
|
8
|
+
}));
|
|
9
|
+
};
|
|
10
|
+
exports.chainId = chainId;
|
|
11
|
+
//# sourceMappingURL=chainId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chainId.js","sourceRoot":"","sources":["../../../actions/bundler/chainId.ts"],"names":[],"mappings":";;;AAwBO,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,EAAE;IACnD,OAAO,MAAM,CACT,MAAM,MAAM,CAAC,OAAO,CAAC;QACjB,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,EAAE;KACb,CAAC,CACL,CAAA;AACL,CAAC,CAAA;AAPY,QAAA,OAAO,WAOnB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.estimateUserOperationGas = void 0;
|
|
4
|
+
const deepHexlify_js_1 = require("../../utils/deepHexlify.js");
|
|
5
|
+
const estimateUserOperationGas = async (client, args) => {
|
|
6
|
+
const { userOperation, entryPoint } = args;
|
|
7
|
+
const response = await client.request({
|
|
8
|
+
method: "eth_estimateUserOperationGas",
|
|
9
|
+
params: [(0, deepHexlify_js_1.deepHexlify)(userOperation), entryPoint]
|
|
10
|
+
});
|
|
11
|
+
return {
|
|
12
|
+
preVerificationGas: BigInt(response.preVerificationGas || 0),
|
|
13
|
+
verificationGasLimit: BigInt(response.verificationGasLimit || 0),
|
|
14
|
+
callGasLimit: BigInt(response.callGasLimit || 0)
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.estimateUserOperationGas = estimateUserOperationGas;
|
|
18
|
+
//# sourceMappingURL=estimateUserOperationGas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimateUserOperationGas.js","sourceRoot":"","sources":["../../../actions/bundler/estimateUserOperationGas.ts"],"names":[],"mappings":";;;AAKA,+DAAwD;AAwCjD,MAAM,wBAAwB,GAAG,KAAK,EACzC,MAAqB,EACrB,IAAwC,EACG,EAAE;IAC7C,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IAE1C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,8BAA8B;QACtC,MAAM,EAAE,CAAC,IAAA,4BAAW,EAAC,aAAa,CAAiC,EAAE,UAAqB,CAAC;KAC9F,CAAC,CAAA;IAEF,OAAO;QACH,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,IAAI,CAAC,CAAC;QAC5D,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,oBAAoB,IAAI,CAAC,CAAC;QAChE,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,YAAY,IAAI,CAAC,CAAC;KACnD,CAAA;AACL,CAAC,CAAA;AAhBY,QAAA,wBAAwB,4BAgBpC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUserOperationByHash = void 0;
|
|
4
|
+
const getUserOperationByHash = async (client, { hash }) => {
|
|
5
|
+
const params = [hash];
|
|
6
|
+
const response = await client.request({
|
|
7
|
+
method: "eth_getUserOperationByHash",
|
|
8
|
+
params
|
|
9
|
+
});
|
|
10
|
+
if (!response)
|
|
11
|
+
return null;
|
|
12
|
+
const { userOperation, entryPoint, transactionHash, blockHash, blockNumber } = response;
|
|
13
|
+
return {
|
|
14
|
+
userOperation: {
|
|
15
|
+
...userOperation,
|
|
16
|
+
nonce: BigInt(userOperation.nonce),
|
|
17
|
+
callGasLimit: BigInt(userOperation.callGasLimit),
|
|
18
|
+
verificationGasLimit: BigInt(userOperation.verificationGasLimit),
|
|
19
|
+
preVerificationGas: BigInt(userOperation.preVerificationGas),
|
|
20
|
+
maxFeePerGas: BigInt(userOperation.maxFeePerGas),
|
|
21
|
+
maxPriorityFeePerGas: BigInt(userOperation.maxPriorityFeePerGas)
|
|
22
|
+
},
|
|
23
|
+
entryPoint: entryPoint,
|
|
24
|
+
transactionHash: transactionHash,
|
|
25
|
+
blockHash: blockHash,
|
|
26
|
+
blockNumber: BigInt(blockNumber)
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
exports.getUserOperationByHash = getUserOperationByHash;
|
|
30
|
+
//# sourceMappingURL=getUserOperationByHash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserOperationByHash.js","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationByHash.ts"],"names":[],"mappings":";;;AAsCO,MAAM,sBAAsB,GAAG,KAAK,EACvC,MAAqB,EACrB,EAAE,IAAI,EAAoC,EACD,EAAE;IAC3C,MAAM,MAAM,GAAW,CAAC,IAAI,CAAC,CAAA;IAE7B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,4BAA4B;QACpC,MAAM;KACT,CAAC,CAAA;IAEF,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAA;IAE1B,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAA;IAEvF,OAAO;QACH,aAAa,EAAE;YACX,GAAG,aAAa;YAChB,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;YAClC,YAAY,EAAE,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC;YAChD,oBAAoB,EAAE,MAAM,CAAC,aAAa,CAAC,oBAAoB,CAAC;YAChE,kBAAkB,EAAE,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC;YAC5D,YAAY,EAAE,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC;YAChD,oBAAoB,EAAE,MAAM,CAAC,aAAa,CAAC,oBAAoB,CAAC;SAClD;QAClB,UAAU,EAAE,UAAU;QACtB,eAAe,EAAE,eAAe;QAChC,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;KACnC,CAAA;AACL,CAAC,CAAA;AA9BY,QAAA,sBAAsB,0BA8BlC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUserOperationReceipt = void 0;
|
|
4
|
+
const deepHexlify_js_1 = require("../../utils/deepHexlify.js");
|
|
5
|
+
const getUserOperationReceipt = async (client, { hash }) => {
|
|
6
|
+
const params = [hash];
|
|
7
|
+
const response = await client.request({
|
|
8
|
+
method: "eth_getUserOperationReceipt",
|
|
9
|
+
params
|
|
10
|
+
});
|
|
11
|
+
if (!response)
|
|
12
|
+
return null;
|
|
13
|
+
const userOperationReceipt = {
|
|
14
|
+
userOpHash: response.userOpHash,
|
|
15
|
+
sender: response.sender,
|
|
16
|
+
nonce: BigInt(response.nonce),
|
|
17
|
+
actualGasUsed: BigInt(response.actualGasUsed),
|
|
18
|
+
actualGasCost: BigInt(response.actualGasCost),
|
|
19
|
+
success: response.success,
|
|
20
|
+
receipt: {
|
|
21
|
+
transactionHash: response.receipt.transactionHash,
|
|
22
|
+
transactionIndex: BigInt(response.receipt.transactionIndex),
|
|
23
|
+
blockHash: response.receipt.blockHash,
|
|
24
|
+
blockNumber: BigInt(response.receipt.blockNumber),
|
|
25
|
+
from: response.receipt.from,
|
|
26
|
+
to: response.receipt.to,
|
|
27
|
+
cumulativeGasUsed: BigInt(response.receipt.cumulativeGasUsed),
|
|
28
|
+
status: deepHexlify_js_1.transactionReceiptStatus[response.receipt.status],
|
|
29
|
+
gasUsed: BigInt(response.receipt.gasUsed),
|
|
30
|
+
contractAddress: response.receipt.contractAddress,
|
|
31
|
+
logsBloom: response.receipt.logsBloom,
|
|
32
|
+
effectiveGasPrice: BigInt(response.receipt.effectiveGasPrice)
|
|
33
|
+
},
|
|
34
|
+
logs: response.logs.map((log) => ({
|
|
35
|
+
data: log.data,
|
|
36
|
+
blockNumber: BigInt(log.blockNumber),
|
|
37
|
+
blockHash: log.blockHash,
|
|
38
|
+
transactionHash: log.transactionHash,
|
|
39
|
+
logIndex: BigInt(log.logIndex),
|
|
40
|
+
transactionIndex: BigInt(log.transactionIndex),
|
|
41
|
+
address: log.address,
|
|
42
|
+
topics: log.topics
|
|
43
|
+
}))
|
|
44
|
+
};
|
|
45
|
+
return userOperationReceipt;
|
|
46
|
+
};
|
|
47
|
+
exports.getUserOperationReceipt = getUserOperationReceipt;
|
|
48
|
+
//# sourceMappingURL=getUserOperationReceipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserOperationReceipt.js","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationReceipt.ts"],"names":[],"mappings":";;;AAGA,+DAAqE;AA6D9D,MAAM,uBAAuB,GAAG,KAAK,EACxC,MAAqB,EACrB,EAAE,IAAI,EAAqC,EACM,EAAE;IACnD,MAAM,MAAM,GAAW,CAAC,IAAI,CAAC,CAAA;IAE7B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,6BAA6B;QACrC,MAAM;KACT,CAAC,CAAA;IAEF,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAA;IAE1B,MAAM,oBAAoB,GAAsC;QAC5D,UAAU,EAAE,QAAQ,CAAC,UAAU;QAC/B,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAC7B,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC;QAC7C,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC;QAC7C,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,OAAO,EAAE;YACL,eAAe,EAAE,QAAQ,CAAC,OAAO,CAAC,eAAe;YACjD,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,CAAC;YAC3D,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,SAAS;YACrC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC;YACjD,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,IAAI;YAC3B,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE;YACvB,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC;YAC7D,MAAM,EAAE,yCAAwB,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC;YACzD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;YACzC,eAAe,EAAE,QAAQ,CAAC,OAAO,CAAC,eAAe;YACjD,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,SAAS;YACrC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC;SAChE;QACD,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAC9B,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC;YACpC,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,eAAe,EAAE,GAAG,CAAC,eAAe;YACpC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC9B,gBAAgB,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;YAC9C,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC,CAAC;KACN,CAAA;IAED,OAAO,oBAAoB,CAAA;AAC/B,CAAC,CAAA;AA/CY,QAAA,uBAAuB,2BA+CnC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendUserOperation = void 0;
|
|
4
|
+
const deepHexlify_js_1 = require("../../utils/deepHexlify.js");
|
|
5
|
+
const sendUserOperation = async (client, args) => {
|
|
6
|
+
const { userOperation, entryPoint } = args;
|
|
7
|
+
return client.request({
|
|
8
|
+
method: "eth_sendUserOperation",
|
|
9
|
+
params: [(0, deepHexlify_js_1.deepHexlify)(userOperation), entryPoint]
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.sendUserOperation = sendUserOperation;
|
|
13
|
+
//# sourceMappingURL=sendUserOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../../actions/bundler/sendUserOperation.ts"],"names":[],"mappings":";;;AAGA,+DAAwD;AAkCjD,MAAM,iBAAiB,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAiC,EAAiB,EAAE;IAC/G,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IAE1C,OAAO,MAAM,CAAC,OAAO,CAAC;QAClB,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EAAE,CAAC,IAAA,4BAAW,EAAC,aAAa,CAAiC,EAAE,UAAqB,CAAC;KAC9F,CAAC,CAAA;AACN,CAAC,CAAA;AAPY,QAAA,iBAAiB,qBAO7B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.supportedEntryPoints = void 0;
|
|
4
|
+
const supportedEntryPoints = async (client) => {
|
|
5
|
+
return client.request({
|
|
6
|
+
method: "eth_supportedEntryPoints",
|
|
7
|
+
params: []
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
exports.supportedEntryPoints = supportedEntryPoints;
|
|
11
|
+
//# sourceMappingURL=supportedEntryPoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportedEntryPoints.js","sourceRoot":"","sources":["../../../actions/bundler/supportedEntryPoints.ts"],"names":[],"mappings":";;;AAyBO,MAAM,oBAAoB,GAAG,KAAK,EAAE,MAAqB,EAAsB,EAAE;IACpF,OAAO,MAAM,CAAC,OAAO,CAAC;QAClB,MAAM,EAAE,0BAA0B;QAClC,MAAM,EAAE,EAAE;KACb,CAAC,CAAA;AACN,CAAC,CAAA;AALY,QAAA,oBAAoB,wBAKhC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitForUserOperationReceipt = exports.WaitForUserOperationReceiptTimeoutError = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const observe_1 = require("../../utils/observe");
|
|
6
|
+
const getUserOperationReceipt_1 = require("./getUserOperationReceipt");
|
|
7
|
+
class WaitForUserOperationReceiptTimeoutError extends viem_1.BaseError {
|
|
8
|
+
constructor({ hash }) {
|
|
9
|
+
super(`Timed out while waiting for transaction with hash "${hash}" to be confirmed.`);
|
|
10
|
+
Object.defineProperty(this, "name", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: "WaitForUserOperationReceiptTimeoutError"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.WaitForUserOperationReceiptTimeoutError = WaitForUserOperationReceiptTimeoutError;
|
|
19
|
+
const waitForUserOperationReceipt = (bundlerClient, { hash, pollingInterval = bundlerClient.pollingInterval, timeout }) => {
|
|
20
|
+
const observerId = (0, viem_1.stringify)(["waitForUserOperationReceipt", bundlerClient.uid, hash]);
|
|
21
|
+
let userOperationReceipt;
|
|
22
|
+
return new Promise((resolve, reject) => {
|
|
23
|
+
if (timeout) {
|
|
24
|
+
setTimeout(() => reject(new WaitForUserOperationReceiptTimeoutError({ hash })), timeout);
|
|
25
|
+
}
|
|
26
|
+
const _unobserve = (0, observe_1.observe)(observerId, { resolve, reject }, async (emit) => {
|
|
27
|
+
const _removeInterval = setInterval(async () => {
|
|
28
|
+
const done = (fn) => {
|
|
29
|
+
clearInterval(_removeInterval);
|
|
30
|
+
fn();
|
|
31
|
+
_unobserve();
|
|
32
|
+
};
|
|
33
|
+
const _userOperationReceipt = await (0, getUserOperationReceipt_1.getUserOperationReceipt)(bundlerClient, { hash });
|
|
34
|
+
if (_userOperationReceipt !== null) {
|
|
35
|
+
userOperationReceipt = _userOperationReceipt;
|
|
36
|
+
}
|
|
37
|
+
if (userOperationReceipt) {
|
|
38
|
+
done(() => emit.resolve(userOperationReceipt));
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
}, pollingInterval);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
exports.waitForUserOperationReceipt = waitForUserOperationReceipt;
|
|
46
|
+
//# sourceMappingURL=waitForUserOperationReceipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForUserOperationReceipt.js","sourceRoot":"","sources":["../../../actions/bundler/waitForUserOperationReceipt.ts"],"names":[],"mappings":";;;AAAA,+BAAkE;AAElE,iDAA6C;AAC7C,uEAA2G;AAE3G,MAAa,uCAAwC,SAAQ,gBAAS;IAElE,YAAY,EAAE,IAAI,EAAkB;QAChC,KAAK,CAAC,sDAAsD,IAAI,oBAAoB,CAAC,CAAA;QAFhF;;;;mBAAO,yCAAyC;WAAA;IAGzD,CAAC;CACJ;AALD,0FAKC;AAmCM,MAAM,2BAA2B,GAAG,CACvC,aAAoC,EACpC,EAAE,IAAI,EAAE,eAAe,GAAG,aAAa,CAAC,eAAe,EAAE,OAAO,EAAyC,EAC/D,EAAE;IAC5C,MAAM,UAAU,GAAG,IAAA,gBAAS,EAAC,CAAC,6BAA6B,EAAE,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAA;IAEtF,IAAI,oBAAuD,CAAA;IAE3D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACnC,IAAI,OAAO,EAAE;YACT,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,uCAAuC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA;SAC3F;QAED,MAAM,UAAU,GAAG,IAAA,iBAAO,EAAC,UAAU,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACvE,MAAM,eAAe,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;gBAC3C,MAAM,IAAI,GAAG,CAAC,EAAc,EAAE,EAAE;oBAC5B,aAAa,CAAC,eAAe,CAAC,CAAA;oBAC9B,EAAE,EAAE,CAAA;oBACJ,UAAU,EAAE,CAAA;gBAChB,CAAC,CAAA;gBAED,MAAM,qBAAqB,GAAG,MAAM,IAAA,iDAAuB,EAAC,aAAa,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;gBAEpF,IAAI,qBAAqB,KAAK,IAAI,EAAE;oBAChC,oBAAoB,GAAG,qBAAqB,CAAA;iBAC/C;gBAED,IAAI,oBAAoB,EAAE;oBACtB,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAA;oBAC9C,OAAM;iBACT;YACL,CAAC,EAAE,eAAe,CAAC,CAAA;QACvB,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;AACN,CAAC,CAAA;AAlCY,QAAA,2BAA2B,+BAkCvC"}
|
package/_cjs/actions/index.js
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAccountNonce = exports.getSenderAddress = exports.getUserOperationReceipt = exports.getUserOperationByHash = exports.chainId = exports.supportedEntryPoints = exports.estimateUserOperationGas = exports.sendUserOperation =
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "
|
|
6
|
-
Object.defineProperty(exports, "
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.WaitForUserOperationReceiptTimeoutError = exports.waitForUserOperationReceipt = exports.InvalidEntryPointError = exports.getAccountNonce = exports.getSenderAddress = exports.getUserOperationReceipt = exports.getUserOperationByHash = exports.chainId = exports.supportedEntryPoints = exports.estimateUserOperationGas = exports.sendUserOperation = void 0;
|
|
4
|
+
const getSenderAddress_js_1 = require("./public/getSenderAddress.js");
|
|
5
|
+
Object.defineProperty(exports, "InvalidEntryPointError", { enumerable: true, get: function () { return getSenderAddress_js_1.InvalidEntryPointError; } });
|
|
6
|
+
Object.defineProperty(exports, "getSenderAddress", { enumerable: true, get: function () { return getSenderAddress_js_1.getSenderAddress; } });
|
|
7
|
+
const chainId_js_1 = require("./bundler/chainId.js");
|
|
8
|
+
Object.defineProperty(exports, "chainId", { enumerable: true, get: function () { return chainId_js_1.chainId; } });
|
|
9
|
+
const estimateUserOperationGas_js_1 = require("./bundler/estimateUserOperationGas.js");
|
|
10
|
+
Object.defineProperty(exports, "estimateUserOperationGas", { enumerable: true, get: function () { return estimateUserOperationGas_js_1.estimateUserOperationGas; } });
|
|
11
|
+
const getUserOperationByHash_js_1 = require("./bundler/getUserOperationByHash.js");
|
|
12
|
+
Object.defineProperty(exports, "getUserOperationByHash", { enumerable: true, get: function () { return getUserOperationByHash_js_1.getUserOperationByHash; } });
|
|
13
|
+
const getUserOperationReceipt_js_1 = require("./bundler/getUserOperationReceipt.js");
|
|
14
|
+
Object.defineProperty(exports, "getUserOperationReceipt", { enumerable: true, get: function () { return getUserOperationReceipt_js_1.getUserOperationReceipt; } });
|
|
15
|
+
const sendUserOperation_js_1 = require("./bundler/sendUserOperation.js");
|
|
16
|
+
Object.defineProperty(exports, "sendUserOperation", { enumerable: true, get: function () { return sendUserOperation_js_1.sendUserOperation; } });
|
|
17
|
+
const supportedEntryPoints_js_1 = require("./bundler/supportedEntryPoints.js");
|
|
18
|
+
Object.defineProperty(exports, "supportedEntryPoints", { enumerable: true, get: function () { return supportedEntryPoints_js_1.supportedEntryPoints; } });
|
|
19
|
+
const waitForUserOperationReceipt_js_1 = require("./bundler/waitForUserOperationReceipt.js");
|
|
20
|
+
Object.defineProperty(exports, "waitForUserOperationReceipt", { enumerable: true, get: function () { return waitForUserOperationReceipt_js_1.waitForUserOperationReceipt; } });
|
|
21
|
+
const waitForUserOperationReceipt_js_2 = require("./bundler/waitForUserOperationReceipt.js");
|
|
22
|
+
Object.defineProperty(exports, "WaitForUserOperationReceiptTimeoutError", { enumerable: true, get: function () { return waitForUserOperationReceipt_js_2.WaitForUserOperationReceiptTimeoutError; } });
|
|
23
|
+
const getAccountNonce_js_1 = require("./public/getAccountNonce.js");
|
|
24
|
+
Object.defineProperty(exports, "getAccountNonce", { enumerable: true, get: function () { return getAccountNonce_js_1.getAccountNonce; } });
|
|
15
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":";;;AAaA,sEAAuF;AAsCnF,uGAtCK,4CAAsB,OAsCL;AAFtB,iGApC6B,sCAAgB,OAoC7B;AAlCpB,qDAA8C;AA+B1C,wFA/BK,oBAAO,OA+BL;AA9BX,uFAAgF;AA4B5E,yGA5BK,sDAAwB,OA4BL;AA3B5B,mFAA4E;AA8BxE,uGA9BK,kDAAsB,OA8BL;AA7B1B,qFAA8E;AA8B1E,wGA9BK,oDAAuB,OA8BL;AA7B3B,yEAAkE;AAwB9D,kGAxBK,wCAAiB,OAwBL;AAvBrB,+EAAwE;AAyBpE,qGAzBK,8CAAoB,OAyBL;AAxBxB,6FAAsF;AA+BlF,4GA/BK,4DAA2B,OA+BL;AA9B/B,6FAGiD;AA4B7C,wHA7BA,wEAAuC,OA6BA;AA1B3C,oEAA6D;AAuBzD,gGAvBK,oCAAe,OAuBL"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUserOperationGasPrice = void 0;
|
|
4
|
+
const getUserOperationGasPrice = async (client) => {
|
|
5
|
+
const gasPrices = await client.request({
|
|
6
|
+
method: "pimlico_getUserOperationGasPrice",
|
|
7
|
+
params: []
|
|
8
|
+
});
|
|
9
|
+
return {
|
|
10
|
+
slow: {
|
|
11
|
+
maxFeePerGas: BigInt(gasPrices.slow.maxFeePerGas),
|
|
12
|
+
maxPriorityFeePerGas: BigInt(gasPrices.slow.maxPriorityFeePerGas)
|
|
13
|
+
},
|
|
14
|
+
standard: {
|
|
15
|
+
maxFeePerGas: BigInt(gasPrices.standard.maxFeePerGas),
|
|
16
|
+
maxPriorityFeePerGas: BigInt(gasPrices.standard.maxPriorityFeePerGas)
|
|
17
|
+
},
|
|
18
|
+
fast: {
|
|
19
|
+
maxFeePerGas: BigInt(gasPrices.fast.maxFeePerGas),
|
|
20
|
+
maxPriorityFeePerGas: BigInt(gasPrices.fast.maxPriorityFeePerGas)
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
exports.getUserOperationGasPrice = getUserOperationGasPrice;
|
|
25
|
+
//# sourceMappingURL=getUserOperationGasPrice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserOperationGasPrice.js","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationGasPrice.ts"],"names":[],"mappings":";;;AAsCO,MAAM,wBAAwB,GAAG,KAAK,EACzC,MAA4B,EACe,EAAE;IAC7C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QACnC,MAAM,EAAE,kCAAkC;QAC1C,MAAM,EAAE,EAAE;KACb,CAAC,CAAA;IAEF,OAAO;QACH,IAAI,EAAE;YACF,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YACjD,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC;SACpE;QACD,QAAQ,EAAE;YACN,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC;YACrD,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC;SACxE;QACD,IAAI,EAAE;YACF,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YACjD,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC;SACpE;KACJ,CAAA;AACL,CAAC,CAAA;AAtBY,QAAA,wBAAwB,4BAsBpC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUserOperationStatus = void 0;
|
|
4
|
+
const getUserOperationStatus = async (client, { hash }) => {
|
|
5
|
+
return client.request({
|
|
6
|
+
method: "pimlico_getUserOperationStatus",
|
|
7
|
+
params: [hash]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
exports.getUserOperationStatus = getUserOperationStatus;
|
|
11
|
+
//# sourceMappingURL=getUserOperationStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUserOperationStatus.js","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationStatus.ts"],"names":[],"mappings":";;;AAgCO,MAAM,sBAAsB,GAAG,KAAK,EACvC,MAA4B,EAC5B,EAAE,IAAI,EAAoC,EACD,EAAE;IAC3C,OAAO,MAAM,CAAC,OAAO,CAAC;QAClB,MAAM,EAAE,gCAAgC;QACxC,MAAM,EAAE,CAAC,IAAI,CAAC;KACjB,CAAC,CAAA;AACN,CAAC,CAAA;AARY,QAAA,sBAAsB,0BAQlC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sponsorUserOperation = void 0;
|
|
4
|
+
const deepHexlify_js_1 = require("../../utils/deepHexlify.js");
|
|
5
|
+
const sponsorUserOperation = async (client, args) => {
|
|
6
|
+
const response = await client.request({
|
|
7
|
+
method: "pm_sponsorUserOperation",
|
|
8
|
+
params: [(0, deepHexlify_js_1.deepHexlify)(args.userOperation), args.entryPoint]
|
|
9
|
+
});
|
|
10
|
+
return {
|
|
11
|
+
paymasterAndData: response.paymasterAndData,
|
|
12
|
+
preVerificationGas: BigInt(response.preVerificationGas),
|
|
13
|
+
verificationGasLimit: BigInt(response.verificationGasLimit),
|
|
14
|
+
callGasLimit: BigInt(response.callGasLimit)
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.sponsorUserOperation = sponsorUserOperation;
|
|
18
|
+
//# sourceMappingURL=sponsorUserOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sponsorUserOperation.js","sourceRoot":"","sources":["../../../actions/pimlico/sponsorUserOperation.ts"],"names":[],"mappings":";;;AAIA,+DAAwD;AA0CjD,MAAM,oBAAoB,GAAG,KAAK,EACrC,MAA8B,EAC9B,IAAoC,EACG,EAAE;IACzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,yBAAyB;QACjC,MAAM,EAAE,CAAC,IAAA,4BAAW,EAAC,IAAI,CAAC,aAAa,CAAiC,EAAE,IAAI,CAAC,UAAU,CAAC;KAC7F,CAAC,CAAA;IAEF,OAAO;QACH,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;QAC3C,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QACvD,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC;QAC3D,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;KAC9C,CAAA;AACL,CAAC,CAAA;AAfY,QAAA,oBAAoB,wBAehC"}
|
package/_cjs/actions/pimlico.js
CHANGED
|
@@ -1,55 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pimlicoPaymasterActions = exports.
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
maxPriorityFeePerGas: BigInt(gasPrices.slow.maxPriorityFeePerGas)
|
|
14
|
-
},
|
|
15
|
-
standard: {
|
|
16
|
-
maxFeePerGas: BigInt(gasPrices.standard.maxFeePerGas),
|
|
17
|
-
maxPriorityFeePerGas: BigInt(gasPrices.standard.maxPriorityFeePerGas)
|
|
18
|
-
},
|
|
19
|
-
fast: {
|
|
20
|
-
maxFeePerGas: BigInt(gasPrices.fast.maxFeePerGas),
|
|
21
|
-
maxPriorityFeePerGas: BigInt(gasPrices.fast.maxPriorityFeePerGas)
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
exports.getUserOperationGasPrice = getUserOperationGasPrice;
|
|
26
|
-
const getUserOperationStatus = async (client, { hash }) => {
|
|
27
|
-
return client.request({
|
|
28
|
-
method: "pimlico_getUserOperationStatus",
|
|
29
|
-
params: [hash]
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
exports.getUserOperationStatus = getUserOperationStatus;
|
|
33
|
-
const pimlicoBundlerActions = (client) => ({
|
|
34
|
-
getUserOperationGasPrice: async () => (0, exports.getUserOperationGasPrice)(client),
|
|
35
|
-
getUserOperationStatus: async (args) => (0, exports.getUserOperationStatus)(client, args)
|
|
36
|
-
});
|
|
37
|
-
exports.pimlicoBundlerActions = pimlicoBundlerActions;
|
|
38
|
-
const sponsorUserOperation = async (client, args) => {
|
|
39
|
-
const response = await client.request({
|
|
40
|
-
method: "pm_sponsorUserOperation",
|
|
41
|
-
params: [(0, utils_1.deepHexlify)(args.userOperation), args.entryPoint]
|
|
42
|
-
});
|
|
43
|
-
return {
|
|
44
|
-
paymasterAndData: response.paymasterAndData,
|
|
45
|
-
preVerificationGas: BigInt(response.preVerificationGas),
|
|
46
|
-
verificationGasLimit: BigInt(response.verificationGasLimit),
|
|
47
|
-
callGasLimit: BigInt(response.callGasLimit)
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
exports.sponsorUserOperation = sponsorUserOperation;
|
|
51
|
-
const pimlicoPaymasterActions = (client) => ({
|
|
52
|
-
sponsorUserOperation: async (args) => (0, exports.sponsorUserOperation)(client, args)
|
|
53
|
-
});
|
|
54
|
-
exports.pimlicoPaymasterActions = pimlicoPaymasterActions;
|
|
3
|
+
exports.pimlicoPaymasterActions = exports.pimlicoBundlerActions = exports.sponsorUserOperation = exports.getUserOperationStatus = exports.getUserOperationGasPrice = void 0;
|
|
4
|
+
const getUserOperationGasPrice_js_1 = require("./pimlico/getUserOperationGasPrice.js");
|
|
5
|
+
Object.defineProperty(exports, "getUserOperationGasPrice", { enumerable: true, get: function () { return getUserOperationGasPrice_js_1.getUserOperationGasPrice; } });
|
|
6
|
+
const getUserOperationStatus_js_1 = require("./pimlico/getUserOperationStatus.js");
|
|
7
|
+
Object.defineProperty(exports, "getUserOperationStatus", { enumerable: true, get: function () { return getUserOperationStatus_js_1.getUserOperationStatus; } });
|
|
8
|
+
const sponsorUserOperation_js_1 = require("./pimlico/sponsorUserOperation.js");
|
|
9
|
+
Object.defineProperty(exports, "sponsorUserOperation", { enumerable: true, get: function () { return sponsorUserOperation_js_1.sponsorUserOperation; } });
|
|
10
|
+
const pimlico_js_1 = require("../clients/decorators/pimlico.js");
|
|
11
|
+
Object.defineProperty(exports, "pimlicoBundlerActions", { enumerable: true, get: function () { return pimlico_js_1.pimlicoBundlerActions; } });
|
|
12
|
+
Object.defineProperty(exports, "pimlicoPaymasterActions", { enumerable: true, get: function () { return pimlico_js_1.pimlicoPaymasterActions; } });
|
|
55
13
|
//# sourceMappingURL=pimlico.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":";;;AAAA,uFAG8C;AA0B1C,yGA3BA,sDAAwB,OA2BA;AAzB5B,mFAI4C;AAsBxC,uGAvBA,kDAAsB,OAuBA;AArB1B,+EAI0C;AAkBtC,qGAnBA,8CAAoB,OAmBA;AAfxB,iEAAiG;AAgB7F,sGAhBK,kCAAqB,OAgBL;AACrB,wGAjB4B,oCAAuB,OAiB5B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAccountNonce = void 0;
|
|
4
|
+
const getAccountNonce = async (publicClient, { sender, entryPoint, key = BigInt(0) }) => {
|
|
5
|
+
return await publicClient.readContract({
|
|
6
|
+
address: entryPoint,
|
|
7
|
+
abi: [
|
|
8
|
+
{
|
|
9
|
+
inputs: [
|
|
10
|
+
{
|
|
11
|
+
name: "sender",
|
|
12
|
+
type: "address"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "key",
|
|
16
|
+
type: "uint192"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
name: "getNonce",
|
|
20
|
+
outputs: [
|
|
21
|
+
{
|
|
22
|
+
name: "nonce",
|
|
23
|
+
type: "uint256"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
stateMutability: "view",
|
|
27
|
+
type: "function"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
functionName: "getNonce",
|
|
31
|
+
args: [sender, key]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
exports.getAccountNonce = getAccountNonce;
|
|
35
|
+
//# sourceMappingURL=getAccountNonce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAccountNonce.js","sourceRoot":"","sources":["../../../actions/public/getAccountNonce.ts"],"names":[],"mappings":";;;AA8BO,MAAM,eAAe,GAAG,KAAK,EAChC,YAA0B,EAC1B,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAyB,EAC/C,EAAE;IACjB,OAAO,MAAM,YAAY,CAAC,YAAY,CAAC;QACnC,OAAO,EAAE,UAAU;QACnB,GAAG,EAAE;YACD;gBACI,MAAM,EAAE;oBACJ;wBACI,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,SAAS;qBAClB;oBACD;wBACI,IAAI,EAAE,KAAK;wBACX,IAAI,EAAE,SAAS;qBAClB;iBACJ;gBACD,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,SAAS;qBAClB;iBACJ;gBACD,eAAe,EAAE,MAAM;gBACvB,IAAI,EAAE,UAAU;aACnB;SACJ;QACD,YAAY,EAAE,UAAU;QACxB,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC;KACtB,CAAC,CAAA;AACN,CAAC,CAAA;AAhCY,QAAA,eAAe,mBAgC3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getSenderAddress = exports.InvalidEntryPointError = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
class InvalidEntryPointError extends viem_1.BaseError {
|
|
6
6
|
constructor({ cause, entryPoint } = {}) {
|
|
@@ -64,35 +64,4 @@ const getSenderAddress = async (publicClient, { initCode, entryPoint }) => {
|
|
|
64
64
|
throw new InvalidEntryPointError({ entryPoint });
|
|
65
65
|
};
|
|
66
66
|
exports.getSenderAddress = getSenderAddress;
|
|
67
|
-
|
|
68
|
-
return await publicClient.readContract({
|
|
69
|
-
address: entryPoint,
|
|
70
|
-
abi: [
|
|
71
|
-
{
|
|
72
|
-
inputs: [
|
|
73
|
-
{
|
|
74
|
-
name: "sender",
|
|
75
|
-
type: "address"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: "key",
|
|
79
|
-
type: "uint192"
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
name: "getNonce",
|
|
83
|
-
outputs: [
|
|
84
|
-
{
|
|
85
|
-
name: "nonce",
|
|
86
|
-
type: "uint256"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
stateMutability: "view",
|
|
90
|
-
type: "function"
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
functionName: "getNonce",
|
|
94
|
-
args: [address, key]
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
exports.getAccountNonce = getAccountNonce;
|
|
98
|
-
//# sourceMappingURL=public.js.map
|
|
67
|
+
//# sourceMappingURL=getSenderAddress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSenderAddress.js","sourceRoot":"","sources":["../../../actions/public/getSenderAddress.ts"],"names":[],"mappings":";;;AAAA,+BAOa;AAIb,MAAa,sBAAuB,SAAQ,gBAAS;IAGjD,YAAY,EAAE,KAAK,EAAE,UAAU,KAAkD,EAAE;QAC/E,KAAK,CACD,0CACI,UAAU,CAAC,CAAC,CAAC,MAAM,UAAU,EAAE,CAAC,CAAC,CAAC,EACtC,iGAAiG,EACjG;YACI,KAAK;SACR,CACJ,CAAA;QAVI;;;;mBAAO,wBAAwB;WAAA;IAWxC,CAAC;CACJ;AAbD,wDAaC;AA4BM,MAAM,gBAAgB,GAAG,KAAK,EACjC,YAA0B,EAC1B,EAAE,QAAQ,EAAE,UAAU,EAA0B,EAChC,EAAE;IAClB,IAAI;QACA,MAAM,YAAY,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,UAAU;YACnB,GAAG,EAAE;gBACD;oBACI,MAAM,EAAE;wBACJ;4BACI,YAAY,EAAE,SAAS;4BACvB,IAAI,EAAE,QAAQ;4BACd,IAAI,EAAE,SAAS;yBAClB;qBACJ;oBACD,IAAI,EAAE,qBAAqB;oBAC3B,IAAI,EAAE,OAAO;iBAChB;gBACD;oBACI,MAAM,EAAE;wBACJ;4BACI,YAAY,EAAE,OAAO;4BACrB,IAAI,EAAE,UAAU;4BAChB,IAAI,EAAE,OAAO;yBAChB;qBACJ;oBACD,IAAI,EAAE,kBAAkB;oBACxB,OAAO,EAAE,EAAE;oBACX,eAAe,EAAE,YAAY;oBAC7B,IAAI,EAAE,UAAU;iBACnB;aACJ;YACD,YAAY,EAAE,kBAAkB;YAChC,IAAI,EAAE,CAAC,QAAQ,CAAC;SACnB,CAAC,CAAA;KACL;IAAC,OAAO,CAAC,EAAE;QACR,MAAM,GAAG,GAAG,CAAuC,CAAA;QAEnD,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,+BAA+B,EAAE;YACpD,MAAM,WAAW,GAAG,GAAG,CAAC,KAA0C,CAAA;YAClE,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,EAAE,SAAS,IAAI,EAAE,CAAA;YACnD,IAAI,SAAS,KAAK,qBAAqB,IAAI,WAAW,CAAC,IAAI,EAAE,IAAI,IAAI,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE;gBAC5F,OAAO,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAY,CAAA;aAC9C;SACJ;QAED,MAAM,CAAC,CAAA;KACV;IAED,MAAM,IAAI,sBAAsB,CAAC,EAAE,UAAU,EAAE,CAAC,CAAA;AACpD,CAAC,CAAA;AAnDY,QAAA,gBAAgB,oBAmD5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.accounts = void 0;
|
|
4
|
+
const accounts = async (client, { entryPoint }) => {
|
|
5
|
+
const response = await client.request({
|
|
6
|
+
method: "pm_accounts",
|
|
7
|
+
params: [entryPoint]
|
|
8
|
+
});
|
|
9
|
+
return response;
|
|
10
|
+
};
|
|
11
|
+
exports.accounts = accounts;
|
|
12
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../actions/stackup/accounts.ts"],"names":[],"mappings":";;;AA6BO,MAAM,QAAQ,GAAG,KAAK,EACzB,MAA8B,EAC9B,EAAE,UAAU,EAAsB,EAChB,EAAE;IACpB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,CAAC,UAAU,CAAC;KACvB,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAA;AACnB,CAAC,CAAA;AAVY,QAAA,QAAQ,YAUpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sponsorUserOperation = void 0;
|
|
4
|
+
const deepHexlify_js_1 = require("../../utils/deepHexlify.js");
|
|
5
|
+
const sponsorUserOperation = async (client, args) => {
|
|
6
|
+
const response = await client.request({
|
|
7
|
+
method: "pm_sponsorUserOperation",
|
|
8
|
+
params: [(0, deepHexlify_js_1.deepHexlify)(args.userOperation), args.entryPoint, args.context]
|
|
9
|
+
});
|
|
10
|
+
return {
|
|
11
|
+
paymasterAndData: response.paymasterAndData,
|
|
12
|
+
preVerificationGas: BigInt(response.preVerificationGas),
|
|
13
|
+
verificationGasLimit: BigInt(response.verificationGasLimit),
|
|
14
|
+
callGasLimit: BigInt(response.callGasLimit)
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
exports.sponsorUserOperation = sponsorUserOperation;
|
|
18
|
+
//# sourceMappingURL=sponsorUserOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sponsorUserOperation.js","sourceRoot":"","sources":["../../../actions/stackup/sponsorUserOperation.ts"],"names":[],"mappings":";;;AAKA,+DAAwD;AA2CjD,MAAM,oBAAoB,GAAG,KAAK,EACrC,MAA8B,EAC9B,IAAoC,EACG,EAAE;IACzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,yBAAyB;QACjC,MAAM,EAAE,CAAC,IAAA,4BAAW,EAAC,IAAI,CAAC,aAAa,CAAiC,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC;KAC3G,CAAC,CAAA;IAEF,OAAO;QACH,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;QAC3C,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QACvD,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC;QAC3D,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;KAC9C,CAAA;AACL,CAAC,CAAA;AAfY,QAAA,oBAAoB,wBAehC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stackupPaymasterActions = exports.accounts = exports.sponsorUserOperation = void 0;
|
|
4
|
+
const stackup_js_1 = require("../clients/decorators/stackup.js");
|
|
5
|
+
Object.defineProperty(exports, "stackupPaymasterActions", { enumerable: true, get: function () { return stackup_js_1.stackupPaymasterActions; } });
|
|
6
|
+
const accounts_js_1 = require("./stackup/accounts.js");
|
|
7
|
+
Object.defineProperty(exports, "accounts", { enumerable: true, get: function () { return accounts_js_1.accounts; } });
|
|
8
|
+
const sponsorUserOperation_js_1 = require("./stackup/sponsorUserOperation.js");
|
|
9
|
+
Object.defineProperty(exports, "sponsorUserOperation", { enumerable: true, get: function () { return sponsorUserOperation_js_1.sponsorUserOperation; } });
|
|
10
|
+
//# sourceMappingURL=stackup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stackup.js","sourceRoot":"","sources":["../../actions/stackup.ts"],"names":[],"mappings":";;;AACA,iEAA0E;AAejC,wGAfhC,oCAAuB,OAegC;AAdhE,uDAAyE;AAc1C,yFAdG,sBAAQ,OAcH;AAbvC,+EAI0C;AASjC,qGAVL,8CAAoB,OAUK"}
|
package/_cjs/clients/bundler.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createBundlerClient = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
|
-
const
|
|
5
|
+
const bundler_js_1 = require("./decorators/bundler.js");
|
|
6
6
|
const createBundlerClient = (parameters) => {
|
|
7
7
|
const { key = "public", name = "Bundler Client" } = parameters;
|
|
8
8
|
const client = (0, viem_1.createClient)({
|
|
@@ -11,7 +11,7 @@ const createBundlerClient = (parameters) => {
|
|
|
11
11
|
name,
|
|
12
12
|
type: "bundlerClient"
|
|
13
13
|
});
|
|
14
|
-
return client.extend(
|
|
14
|
+
return client.extend(bundler_js_1.bundlerActions);
|
|
15
15
|
};
|
|
16
16
|
exports.createBundlerClient = createBundlerClient;
|
|
17
17
|
//# sourceMappingURL=bundler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../clients/bundler.ts"],"names":[],"mappings":";;;AACA,+BAAmC;
|
|
1
|
+
{"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../clients/bundler.ts"],"names":[],"mappings":";;;AACA,+BAAmC;AAEnC,wDAA6E;AA4BtE,MAAM,mBAAmB,GAAG,CAC/B,UAAgD,EACnC,EAAE;IACf,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,gBAAgB,EAAE,GAAG,UAAU,CAAA;IAC9D,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;QACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,eAAe;KACxB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,2BAAc,CAAC,CAAA;AACxC,CAAC,CAAA;AAXY,QAAA,mBAAmB,uBAW/B"}
|