@t402/evm 2.0.0 → 2.1.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/cjs/index.js +9 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +16 -3
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +17 -17
package/dist/cjs/index.js
CHANGED
|
@@ -2078,8 +2078,14 @@ function decodePaymasterAndData(paymasterAndData) {
|
|
|
2078
2078
|
};
|
|
2079
2079
|
}
|
|
2080
2080
|
|
|
2081
|
-
// src/erc4337/
|
|
2081
|
+
// src/erc4337/paymasters/pimlico.ts
|
|
2082
2082
|
var import_viem7 = require("viem");
|
|
2083
|
+
|
|
2084
|
+
// src/erc4337/accounts/safe.ts
|
|
2085
|
+
var import_viem8 = require("viem");
|
|
2086
|
+
|
|
2087
|
+
// src/erc4337/t402.ts
|
|
2088
|
+
var import_viem9 = require("viem");
|
|
2083
2089
|
var ERC20_TRANSFER_ABI = [
|
|
2084
2090
|
{
|
|
2085
2091
|
inputs: [
|
|
@@ -2210,7 +2216,7 @@ var GaslessT402Client = class {
|
|
|
2210
2216
|
* Build call data for a simple ERC20 transfer
|
|
2211
2217
|
*/
|
|
2212
2218
|
buildTransferCallData(params) {
|
|
2213
|
-
return (0,
|
|
2219
|
+
return (0, import_viem9.encodeFunctionData)({
|
|
2214
2220
|
abi: ERC20_TRANSFER_ABI,
|
|
2215
2221
|
functionName: "transfer",
|
|
2216
2222
|
args: [params.to, params.amount]
|
|
@@ -2227,7 +2233,7 @@ var GaslessT402Client = class {
|
|
|
2227
2233
|
const r = `0x${sig.slice(2, 66)}`;
|
|
2228
2234
|
const s = `0x${sig.slice(66, 130)}`;
|
|
2229
2235
|
const v = parseInt(sig.slice(130, 132), 16);
|
|
2230
|
-
return (0,
|
|
2236
|
+
return (0, import_viem9.encodeFunctionData)({
|
|
2231
2237
|
abi: EIP3009_TRANSFER_ABI,
|
|
2232
2238
|
functionName: "transferWithAuthorization",
|
|
2233
2239
|
args: [
|