UNPKG

@tunghm/relay-kit

Version:
40 lines 1.89 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RPC_4337_CALLS = exports.INTERFACES = exports.EIP712_SAFE_OPERATION_TYPE = exports.DEFAULT_SAFE_MODULES_VERSION = exports.DEFAULT_SAFE_VERSION = void 0; const ethers_1 = require("ethers"); exports.DEFAULT_SAFE_VERSION = '1.4.1'; exports.DEFAULT_SAFE_MODULES_VERSION = '0.2.0'; exports.EIP712_SAFE_OPERATION_TYPE = { SafeOp: [ { type: 'address', name: 'safe' }, { type: 'uint256', name: 'nonce' }, { type: 'bytes', name: 'initCode' }, { type: 'bytes', name: 'callData' }, { type: 'uint256', name: 'callGasLimit' }, { type: 'uint256', name: 'verificationGasLimit' }, { type: 'uint256', name: 'preVerificationGas' }, { type: 'uint256', name: 'maxFeePerGas' }, { type: 'uint256', name: 'maxPriorityFeePerGas' }, { type: 'bytes', name: 'paymasterAndData' }, { type: 'uint48', name: 'validAfter' }, { type: 'uint48', name: 'validUntil' }, { type: 'address', name: 'entryPoint' } ] }; exports.INTERFACES = new ethers_1.ethers.Interface([ 'function enableModules(address[])', 'function multiSend(bytes memory transactions) public payable', 'function executeUserOp(address to, uint256 value, bytes data, uint8 operation)', 'function approve(address _spender, uint256 _value)' ]); exports.RPC_4337_CALLS = { ESTIMATE_USER_OPERATION_GAS: 'eth_estimateUserOperationGas', SEND_USER_OPERATION: 'eth_sendUserOperation', GET_USER_OPERATION_BY_HASH: 'eth_getUserOperationByHash', GET_USER_OPERATION_RECEIPT: 'eth_getUserOperationReceipt', SUPPORTED_ENTRY_POINTS: 'eth_supportedEntryPoints', CHAIN_ID: 'eth_chainId', SPONSOR_USER_OPERATION: 'pm_sponsorUserOperation', ESTIMATE_GAS_PRICE: 'pimlico_getUserOperationGasPrice' }; //# sourceMappingURL=constants.js.map