ox 1.0.0-beta.8 → 1.0.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/CHANGELOG.md +1143 -0
- package/dist/core/Abi.d.ts +6 -2
- package/dist/core/Abi.d.ts.map +1 -1
- package/dist/core/Abi.js +6 -3
- package/dist/core/Abi.js.map +1 -1
- package/dist/core/AbiConstructor.d.ts +2 -1
- package/dist/core/AbiConstructor.d.ts.map +1 -1
- package/dist/core/AbiConstructor.js +2 -2
- package/dist/core/AbiConstructor.js.map +1 -1
- package/dist/core/AbiError.d.ts +3 -1
- package/dist/core/AbiError.d.ts.map +1 -1
- package/dist/core/AbiError.js +2 -2
- package/dist/core/AbiError.js.map +1 -1
- package/dist/core/AbiEvent.d.ts +3 -1
- package/dist/core/AbiEvent.d.ts.map +1 -1
- package/dist/core/AbiEvent.js +2 -2
- package/dist/core/AbiEvent.js.map +1 -1
- package/dist/core/AbiFunction.d.ts +3 -1
- package/dist/core/AbiFunction.d.ts.map +1 -1
- package/dist/core/AbiFunction.js +2 -2
- package/dist/core/AbiFunction.js.map +1 -1
- package/dist/core/AbiItem.d.ts +6 -3
- package/dist/core/AbiItem.d.ts.map +1 -1
- package/dist/core/AbiItem.js +9 -7
- package/dist/core/AbiItem.js.map +1 -1
- package/dist/core/AbiParameter.d.ts +88 -0
- package/dist/core/AbiParameter.d.ts.map +1 -0
- package/dist/core/AbiParameter.js +82 -0
- package/dist/core/AbiParameter.js.map +1 -0
- package/dist/core/AbiParameters.d.ts +58 -2
- package/dist/core/AbiParameters.d.ts.map +1 -1
- package/dist/core/AbiParameters.js +60 -6
- package/dist/core/AbiParameters.js.map +1 -1
- package/dist/core/Rlp.d.ts +27 -5
- package/dist/core/Rlp.d.ts.map +1 -1
- package/dist/core/Rlp.js +40 -4
- package/dist/core/Rlp.js.map +1 -1
- package/dist/core/RpcSchema.d.ts +2 -2
- package/dist/core/internal/abiParameters.d.ts.map +1 -1
- package/dist/core/internal/abiParameters.js +21 -3
- package/dist/core/internal/abiParameters.js.map +1 -1
- package/dist/core/internal/human-readable/errors.d.ts +103 -0
- package/dist/core/internal/human-readable/errors.d.ts.map +1 -0
- package/dist/core/internal/human-readable/errors.js +142 -0
- package/dist/core/internal/human-readable/errors.js.map +1 -0
- package/dist/core/internal/human-readable/formatAbi.d.ts +19 -0
- package/dist/core/internal/human-readable/formatAbi.d.ts.map +1 -0
- package/dist/core/internal/human-readable/formatAbi.js +18 -0
- package/dist/core/internal/human-readable/formatAbi.js.map +1 -0
- package/dist/core/internal/human-readable/formatAbiItem.d.ts +23 -0
- package/dist/core/internal/human-readable/formatAbiItem.d.ts.map +1 -0
- package/dist/core/internal/human-readable/formatAbiItem.js +25 -0
- package/dist/core/internal/human-readable/formatAbiItem.js.map +1 -0
- package/dist/core/internal/human-readable/formatAbiParameter.d.ts +41 -0
- package/dist/core/internal/human-readable/formatAbiParameter.d.ts.map +1 -0
- package/dist/core/internal/human-readable/formatAbiParameter.js +36 -0
- package/dist/core/internal/human-readable/formatAbiParameter.js.map +1 -0
- package/dist/core/internal/human-readable/formatAbiParameters.d.ts +26 -0
- package/dist/core/internal/human-readable/formatAbiParameters.d.ts.map +1 -0
- package/dist/core/internal/human-readable/formatAbiParameters.js +19 -0
- package/dist/core/internal/human-readable/formatAbiParameters.js.map +1 -0
- package/dist/core/internal/human-readable/parseAbi.d.ts +22 -0
- package/dist/core/internal/human-readable/parseAbi.d.ts.map +1 -0
- package/dist/core/internal/human-readable/parseAbi.js +22 -0
- package/dist/core/internal/human-readable/parseAbi.js.map +1 -0
- package/dist/core/internal/human-readable/parseAbiItem.d.ts +23 -0
- package/dist/core/internal/human-readable/parseAbiItem.d.ts.map +1 -0
- package/dist/core/internal/human-readable/parseAbiItem.js +30 -0
- package/dist/core/internal/human-readable/parseAbiItem.js.map +1 -0
- package/dist/core/internal/human-readable/parseAbiParameter.d.ts +28 -0
- package/dist/core/internal/human-readable/parseAbiParameter.d.ts.map +1 -0
- package/dist/core/internal/human-readable/parseAbiParameter.js +32 -0
- package/dist/core/internal/human-readable/parseAbiParameter.js.map +1 -0
- package/dist/core/internal/human-readable/parseAbiParameters.d.ts +38 -0
- package/dist/core/internal/human-readable/parseAbiParameters.d.ts.map +1 -0
- package/dist/core/internal/human-readable/parseAbiParameters.js +39 -0
- package/dist/core/internal/human-readable/parseAbiParameters.js.map +1 -0
- package/dist/core/internal/human-readable/regex.d.ts +9 -0
- package/dist/core/internal/human-readable/regex.d.ts.map +1 -0
- package/dist/core/internal/human-readable/regex.js +12 -0
- package/dist/core/internal/human-readable/regex.js.map +1 -0
- package/dist/core/internal/human-readable/runtime/cache.d.ts +22 -0
- package/dist/core/internal/human-readable/runtime/cache.d.ts.map +1 -0
- package/dist/core/internal/human-readable/runtime/cache.js +86 -0
- package/dist/core/internal/human-readable/runtime/cache.js.map +1 -0
- package/dist/core/internal/human-readable/runtime/signatures.d.ts +39 -0
- package/dist/core/internal/human-readable/runtime/signatures.d.ts.map +1 -0
- package/dist/core/internal/human-readable/runtime/signatures.js +67 -0
- package/dist/core/internal/human-readable/runtime/signatures.js.map +1 -0
- package/dist/core/internal/human-readable/runtime/structs.d.ts +3 -0
- package/dist/core/internal/human-readable/runtime/structs.d.ts.map +1 -0
- package/dist/core/internal/human-readable/runtime/structs.js +79 -0
- package/dist/core/internal/human-readable/runtime/structs.js.map +1 -0
- package/dist/core/internal/human-readable/runtime/utils.d.ts +205 -0
- package/dist/core/internal/human-readable/runtime/utils.d.ts.map +1 -0
- package/dist/core/internal/human-readable/runtime/utils.js +232 -0
- package/dist/core/internal/human-readable/runtime/utils.js.map +1 -0
- package/dist/core/internal/human-readable/types/signatures.d.ts +38 -0
- package/dist/core/internal/human-readable/types/signatures.d.ts.map +1 -0
- package/dist/core/internal/human-readable/types/signatures.js +2 -0
- package/dist/core/internal/human-readable/types/signatures.js.map +1 -0
- package/dist/core/internal/human-readable/types/structs.d.ts +48 -0
- package/dist/core/internal/human-readable/types/structs.d.ts.map +1 -0
- package/dist/core/internal/human-readable/types/structs.js +2 -0
- package/dist/core/internal/human-readable/types/structs.js.map +1 -0
- package/dist/core/internal/human-readable/types/utils.d.ts +163 -0
- package/dist/core/internal/human-readable/types/utils.d.ts.map +1 -0
- package/dist/core/internal/human-readable/types/utils.js +2 -0
- package/dist/core/internal/human-readable/types/utils.js.map +1 -0
- package/dist/core/internal/human-readable/types.d.ts +29 -0
- package/dist/core/internal/human-readable/types.d.ts.map +1 -0
- package/dist/core/internal/human-readable/types.js +2 -0
- package/dist/core/internal/human-readable/types.js.map +1 -0
- package/dist/core/internal/rpcSchemas/eth.d.ts +36 -0
- package/dist/core/internal/rpcSchemas/eth.d.ts.map +1 -1
- package/dist/erc4337/EntryPoint.d.ts +1072 -1
- package/dist/erc4337/EntryPoint.d.ts.map +1 -1
- package/dist/erc4337/EntryPoint.js +872 -0
- package/dist/erc4337/EntryPoint.js.map +1 -1
- package/dist/erc4337/RpcSchema.d.ts +2 -2
- package/dist/erc4337/RpcSchema.d.ts.map +1 -1
- package/dist/erc4337/UserOperation.d.ts +39 -10
- package/dist/erc4337/UserOperation.d.ts.map +1 -1
- package/dist/erc4337/UserOperation.js +62 -48
- package/dist/erc4337/UserOperation.js.map +1 -1
- package/dist/erc4337/UserOperationGas.d.ts +9 -5
- package/dist/erc4337/UserOperationGas.d.ts.map +1 -1
- package/dist/erc4337/UserOperationGas.js +17 -15
- package/dist/erc4337/UserOperationGas.js.map +1 -1
- package/dist/erc4337/UserOperationReceipt.d.ts +4 -4
- package/dist/erc4337/UserOperationReceipt.d.ts.map +1 -1
- package/dist/erc4337/UserOperationReceipt.js.map +1 -1
- package/dist/index.d.ts +37 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -1
- package/dist/tempo/Channel.d.ts +8 -14
- package/dist/tempo/Channel.d.ts.map +1 -1
- package/dist/tempo/Channel.js +4 -8
- package/dist/tempo/Channel.js.map +1 -1
- package/dist/tempo/KeyAuthorization.d.ts +5 -5
- package/dist/tempo/KeyAuthorization.d.ts.map +1 -1
- package/dist/tempo/KeyAuthorization.js +4 -4
- package/dist/tempo/KeyAuthorization.js.map +1 -1
- package/dist/tempo/MultisigConfig.d.ts +37 -85
- package/dist/tempo/MultisigConfig.d.ts.map +1 -1
- package/dist/tempo/MultisigConfig.js +39 -83
- package/dist/tempo/MultisigConfig.js.map +1 -1
- package/dist/tempo/PoolId.d.ts +8 -7
- package/dist/tempo/PoolId.d.ts.map +1 -1
- package/dist/tempo/PoolId.js +10 -6
- package/dist/tempo/PoolId.js.map +1 -1
- package/dist/tempo/SignatureEnvelope.d.ts +32 -30
- package/dist/tempo/SignatureEnvelope.d.ts.map +1 -1
- package/dist/tempo/SignatureEnvelope.js +56 -51
- package/dist/tempo/SignatureEnvelope.js.map +1 -1
- package/dist/tempo/Transaction.d.ts +16 -5
- package/dist/tempo/Transaction.d.ts.map +1 -1
- package/dist/tempo/Transaction.js +34 -7
- package/dist/tempo/Transaction.js.map +1 -1
- package/dist/tempo/TransactionReceipt.d.ts +3 -3
- package/dist/tempo/TransactionReceipt.d.ts.map +1 -1
- package/dist/tempo/TransactionReceipt.js +8 -1
- package/dist/tempo/TransactionReceipt.js.map +1 -1
- package/dist/tempo/TransactionRequest.d.ts +15 -2
- package/dist/tempo/TransactionRequest.d.ts.map +1 -1
- package/dist/tempo/TransactionRequest.js +65 -29
- package/dist/tempo/TransactionRequest.js.map +1 -1
- package/dist/tempo/TxEnvelopeTempo.d.ts +2 -3
- package/dist/tempo/TxEnvelopeTempo.d.ts.map +1 -1
- package/dist/tempo/TxEnvelopeTempo.js +5 -6
- package/dist/tempo/TxEnvelopeTempo.js.map +1 -1
- package/dist/tempo/index.d.ts +6 -26
- package/dist/tempo/index.d.ts.map +1 -1
- package/dist/tempo/index.js +6 -26
- package/dist/tempo/index.js.map +1 -1
- package/dist/zod/Abi.d.ts +214 -0
- package/dist/zod/Abi.d.ts.map +1 -0
- package/dist/zod/Abi.js +5 -0
- package/dist/zod/Abi.js.map +1 -0
- package/dist/zod/AbiConstructor.d.ts +58 -0
- package/dist/zod/AbiConstructor.d.ts.map +1 -0
- package/dist/zod/AbiConstructor.js +18 -0
- package/dist/zod/AbiConstructor.js.map +1 -0
- package/dist/zod/AbiError.d.ts +20 -0
- package/dist/zod/AbiError.d.ts.map +1 -0
- package/dist/zod/AbiError.js +9 -0
- package/dist/zod/AbiError.js.map +1 -0
- package/dist/zod/AbiEvent.d.ts +23 -0
- package/dist/zod/AbiEvent.d.ts.map +1 -0
- package/dist/zod/AbiEvent.js +11 -0
- package/dist/zod/AbiEvent.js.map +1 -0
- package/dist/zod/AbiFallback.d.ts +16 -0
- package/dist/zod/AbiFallback.d.ts.map +1 -0
- package/dist/zod/AbiFallback.js +16 -0
- package/dist/zod/AbiFallback.js.map +1 -0
- package/dist/zod/AbiFunction.d.ts +109 -0
- package/dist/zod/AbiFunction.d.ts.map +1 -0
- package/dist/zod/AbiFunction.js +26 -0
- package/dist/zod/AbiFunction.js.map +1 -0
- package/dist/zod/AbiItem.d.ts +216 -0
- package/dist/zod/AbiItem.d.ts.map +1 -0
- package/dist/zod/AbiItem.js +26 -0
- package/dist/zod/AbiItem.js.map +1 -0
- package/dist/zod/AbiParameter.d.ts +32 -0
- package/dist/zod/AbiParameter.d.ts.map +1 -0
- package/dist/zod/AbiParameter.js +28 -0
- package/dist/zod/AbiParameter.js.map +1 -0
- package/dist/zod/AbiParameters.d.ts +30 -0
- package/dist/zod/AbiParameters.d.ts.map +1 -0
- package/dist/zod/AbiParameters.js +6 -0
- package/dist/zod/AbiParameters.js.map +1 -0
- package/dist/zod/AbiReceive.d.ts +6 -0
- package/dist/zod/AbiReceive.d.ts.map +1 -0
- package/dist/zod/AbiReceive.js +7 -0
- package/dist/zod/AbiReceive.js.map +1 -0
- package/dist/zod/RpcSchema.d.ts +6 -5
- package/dist/zod/RpcSchema.d.ts.map +1 -1
- package/dist/zod/Solidity.d.ts +15 -0
- package/dist/zod/Solidity.d.ts.map +1 -0
- package/dist/zod/Solidity.js +41 -0
- package/dist/zod/Solidity.js.map +1 -0
- package/dist/zod/TypedData.d.ts +226 -0
- package/dist/zod/TypedData.d.ts.map +1 -0
- package/dist/zod/TypedData.js +84 -0
- package/dist/zod/TypedData.js.map +1 -0
- package/dist/zod/internal/rpcSchemas/Eth.d.ts +1 -0
- package/dist/zod/internal/rpcSchemas/Eth.d.ts.map +1 -1
- package/dist/zod/internal/rpcSchemas/Eth.js +5 -0
- package/dist/zod/internal/rpcSchemas/Eth.js.map +1 -1
- package/dist/zod/tempo/AuthorizationTempo.d.ts +0 -20
- package/dist/zod/tempo/AuthorizationTempo.d.ts.map +1 -1
- package/dist/zod/tempo/KeyAuthorization.d.ts +503 -67
- package/dist/zod/tempo/KeyAuthorization.d.ts.map +1 -1
- package/dist/zod/tempo/KeyAuthorization.js +32 -15
- package/dist/zod/tempo/KeyAuthorization.js.map +1 -1
- package/dist/zod/tempo/RpcSchemaTempo.d.ts +216 -34
- package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/zod/tempo/SignatureEnvelope.d.ts +0 -6
- package/dist/zod/tempo/SignatureEnvelope.d.ts.map +1 -1
- package/dist/zod/tempo/SignatureEnvelope.js +0 -2
- package/dist/zod/tempo/SignatureEnvelope.js.map +1 -1
- package/dist/zod/tempo/Transaction.d.ts +1479 -333
- package/dist/zod/tempo/Transaction.d.ts.map +1 -1
- package/dist/zod/tempo/Transaction.js +65 -16
- package/dist/zod/tempo/Transaction.js.map +1 -1
- package/dist/zod/tempo/TransactionRequest.d.ts +410 -57
- package/dist/zod/tempo/TransactionRequest.d.ts.map +1 -1
- package/dist/zod/tempo/TransactionRequest.js +81 -18
- package/dist/zod/tempo/TransactionRequest.js.map +1 -1
- package/dist/zod/tempo/TxEnvelopeTempo.d.ts +225 -18
- package/dist/zod/tempo/TxEnvelopeTempo.d.ts.map +1 -1
- package/dist/zod/tempo/TxEnvelopeTempo.js +1 -1
- package/dist/zod/tempo/TxEnvelopeTempo.js.map +1 -1
- package/dist/zod/tempo/ZoneRpcAuthentication.d.ts +0 -3
- package/dist/zod/tempo/ZoneRpcAuthentication.d.ts.map +1 -1
- package/dist/zod/tempo/z.d.ts +0 -1
- package/dist/zod/tempo/z.d.ts.map +1 -1
- package/dist/zod/tempo/z.js +0 -1
- package/dist/zod/tempo/z.js.map +1 -1
- package/dist/zod/z.d.ts +12 -0
- package/dist/zod/z.d.ts.map +1 -1
- package/dist/zod/z.js +12 -0
- package/dist/zod/z.js.map +1 -1
- package/package.json +67 -11
- package/src/core/Abi.bench.ts +30 -0
- package/src/core/Abi.ts +13 -4
- package/src/core/AbiConstructor.ts +3 -2
- package/src/core/AbiError.ts +6 -2
- package/src/core/AbiEvent.ts +6 -2
- package/src/core/AbiFunction.ts +6 -2
- package/src/core/AbiItem.bench.ts +19 -0
- package/src/core/AbiItem.ts +20 -10
- package/src/core/AbiParameter.bench.ts +35 -0
- package/src/core/AbiParameter.ts +126 -0
- package/src/core/AbiParameters.bench.ts +22 -0
- package/src/core/AbiParameters.ts +77 -8
- package/src/core/Rlp.ts +66 -3
- package/src/core/RpcSchema.ts +2 -2
- package/src/core/_test/Abi.test.ts +4 -0
- package/src/core/_test/AbiItem.test.ts +3 -0
- package/src/core/_test/AbiParameter.test-d.ts +41 -0
- package/src/core/_test/AbiParameter.test.ts +84 -0
- package/src/core/_test/AbiParameters.decode.test.ts +88 -12
- package/src/core/_test/AbiParameters.encode.test.ts +68 -0
- package/src/core/_test/AbiParameters.test.ts +7 -0
- package/src/core/_test/Rlp.test.ts +101 -0
- package/src/core/_test/index.test.ts +1 -0
- package/src/core/internal/abiParameters.ts +21 -3
- package/src/core/internal/human-readable/_snap/formatAbi.test.ts.snap +74 -0
- package/src/core/internal/human-readable/_snap/parseAbi.test.ts.snap +2353 -0
- package/src/core/internal/human-readable/errors.test.ts +258 -0
- package/src/core/internal/human-readable/errors.ts +205 -0
- package/src/core/internal/human-readable/formatAbi.test-d.ts +144 -0
- package/src/core/internal/human-readable/formatAbi.test.ts +23 -0
- package/src/core/internal/human-readable/formatAbi.ts +37 -0
- package/src/core/internal/human-readable/formatAbiItem.test-d.ts +115 -0
- package/src/core/internal/human-readable/formatAbiItem.test.ts +102 -0
- package/src/core/internal/human-readable/formatAbiItem.ts +136 -0
- package/src/core/internal/human-readable/formatAbiParameter.test-d.ts +125 -0
- package/src/core/internal/human-readable/formatAbiParameter.test.ts +126 -0
- package/src/core/internal/human-readable/formatAbiParameter.ts +86 -0
- package/src/core/internal/human-readable/formatAbiParameters.test-d.ts +92 -0
- package/src/core/internal/human-readable/formatAbiParameters.test.ts +32 -0
- package/src/core/internal/human-readable/formatAbiParameters.ts +46 -0
- package/src/core/internal/human-readable/human-readable.bench-d.ts +58 -0
- package/src/core/internal/human-readable/integration.test.ts +68 -0
- package/src/core/internal/human-readable/parseAbi.test-d.ts +188 -0
- package/src/core/internal/human-readable/parseAbi.test.ts +82 -0
- package/src/core/internal/human-readable/parseAbi.ts +59 -0
- package/src/core/internal/human-readable/parseAbiItem.test-d.ts +183 -0
- package/src/core/internal/human-readable/parseAbiItem.test.ts +264 -0
- package/src/core/internal/human-readable/parseAbiItem.ts +91 -0
- package/src/core/internal/human-readable/parseAbiParameter.test-d.ts +68 -0
- package/src/core/internal/human-readable/parseAbiParameter.test.ts +207 -0
- package/src/core/internal/human-readable/parseAbiParameter.ts +95 -0
- package/src/core/internal/human-readable/parseAbiParameters.test-d.ts +160 -0
- package/src/core/internal/human-readable/parseAbiParameters.test.ts +80 -0
- package/src/core/internal/human-readable/parseAbiParameters.ts +123 -0
- package/src/core/internal/human-readable/regex.ts +15 -0
- package/src/core/internal/human-readable/runtime/cache.ts +96 -0
- package/src/core/internal/human-readable/runtime/signatures.test.ts +236 -0
- package/src/core/internal/human-readable/runtime/signatures.ts +106 -0
- package/src/core/internal/human-readable/runtime/structs.test.ts +210 -0
- package/src/core/internal/human-readable/runtime/structs.ts +97 -0
- package/src/core/internal/human-readable/runtime/utils.test.ts +717 -0
- package/src/core/internal/human-readable/runtime/utils.ts +344 -0
- package/src/core/internal/human-readable/types/signatures.test-d.ts +255 -0
- package/src/core/internal/human-readable/types/signatures.ts +369 -0
- package/src/core/internal/human-readable/types/structs.test-d.ts +221 -0
- package/src/core/internal/human-readable/types/structs.ts +88 -0
- package/src/core/internal/human-readable/types/utils.test-d.ts +1029 -0
- package/src/core/internal/human-readable/types/utils.ts +392 -0
- package/src/core/internal/human-readable/types.ts +69 -0
- package/src/core/internal/rpcSchemas/eth.ts +36 -0
- package/src/erc4337/EntryPoint.ts +875 -1
- package/src/erc4337/RpcSchema.ts +4 -2
- package/src/erc4337/UserOperation.ts +130 -60
- package/src/erc4337/UserOperationGas.ts +36 -28
- package/src/erc4337/UserOperationReceipt.ts +15 -7
- package/src/erc4337/_test/EntryPoint.test.ts +48 -0
- package/src/erc4337/_test/RpcSchema.test-d.ts +56 -0
- package/src/erc4337/_test/UserOperation.snap-d.ts +31 -0
- package/src/erc4337/_test/UserOperation.test.ts +221 -5
- package/src/erc4337/_test/UserOperationGas.test.ts +30 -1
- package/src/index.ts +38 -0
- package/src/tempo/Channel.test.ts +2 -23
- package/src/tempo/Channel.ts +10 -22
- package/src/tempo/KeyAuthorization.test.ts +22 -0
- package/src/tempo/KeyAuthorization.ts +9 -9
- package/src/tempo/MultisigConfig.test.ts +54 -37
- package/src/tempo/MultisigConfig.ts +59 -134
- package/src/tempo/PoolId.test.ts +7 -41
- package/src/tempo/PoolId.ts +15 -10
- package/src/tempo/SignatureEnvelope.test.ts +118 -17
- package/src/tempo/SignatureEnvelope.ts +77 -72
- package/src/tempo/Transaction.test.ts +0 -15
- package/src/tempo/Transaction.ts +63 -12
- package/src/tempo/TransactionReceipt.test.ts +76 -0
- package/src/tempo/TransactionReceipt.ts +11 -5
- package/src/tempo/TransactionRequest.test.ts +174 -1
- package/src/tempo/TransactionRequest.ts +84 -32
- package/src/tempo/TxEnvelopeTempo.test.ts +2 -2
- package/src/tempo/TxEnvelopeTempo.ts +7 -7
- package/src/tempo/e2e.test.ts +228 -50
- package/src/tempo/index.ts +6 -26
- package/src/version.ts +1 -1
- package/src/zod/Abi.ts +5 -0
- package/src/zod/AbiConstructor.ts +24 -0
- package/src/zod/AbiError.ts +9 -0
- package/src/zod/AbiEvent.ts +11 -0
- package/src/zod/AbiFallback.ts +22 -0
- package/src/zod/AbiFunction.ts +32 -0
- package/src/zod/AbiItem.ts +28 -0
- package/src/zod/AbiParameter.ts +36 -0
- package/src/zod/AbiParameters.ts +7 -0
- package/src/zod/AbiReceive.ts +7 -0
- package/src/zod/RpcSchema.ts +5 -5
- package/src/zod/Solidity.ts +83 -0
- package/src/zod/TypedData.ts +111 -0
- package/src/zod/_test/Abi.test-d.ts +46 -0
- package/src/zod/_test/Abi.test.ts +163 -0
- package/src/zod/_test/TypedData.test-d.ts +20 -0
- package/src/zod/_test/TypedData.test.ts +87 -0
- package/src/zod/_test/z.test-d.ts +6 -0
- package/src/zod/_test/z.test.ts +17 -0
- package/src/zod/internal/rpcSchemas/Eth.ts +6 -0
- package/src/zod/tempo/KeyAuthorization.ts +34 -15
- package/src/zod/tempo/SignatureEnvelope.ts +0 -2
- package/src/zod/tempo/Transaction.ts +84 -22
- package/src/zod/tempo/TransactionRequest.ts +86 -20
- package/src/zod/tempo/TxEnvelopeTempo.ts +1 -1
- package/src/zod/tempo/_test/KeyAuthorization.test.ts +53 -0
- package/src/zod/tempo/_test/SignatureEnvelope.test.ts +0 -2
- package/src/zod/tempo/_test/Transaction.test.ts +155 -0
- package/src/zod/tempo/_test/TransactionRequest.test.ts +44 -0
- package/src/zod/tempo/z.ts +0 -1
- package/src/zod/z.ts +12 -0
- package/dist/tempo/TokenId.d.ts +0 -87
- package/dist/tempo/TokenId.d.ts.map +0 -1
- package/dist/tempo/TokenId.js +0 -123
- package/dist/tempo/TokenId.js.map +0 -1
- package/dist/zod/tempo/TokenId.d.ts +0 -6
- package/dist/zod/tempo/TokenId.d.ts.map +0 -1
- package/dist/zod/tempo/TokenId.js +0 -14
- package/dist/zod/tempo/TokenId.js.map +0 -1
- package/src/CHANGELOG.md +0 -820
- package/src/tempo/TokenId.bench.ts +0 -36
- package/src/tempo/TokenId.test.ts +0 -79
- package/src/tempo/TokenId.ts +0 -141
- package/src/zod/tempo/TokenId.ts +0 -15
- package/src/zod/tempo/_test/TokenId.test-d.ts +0 -17
- package/src/zod/tempo/_test/TokenId.test.ts +0 -21
|
@@ -2005,10 +2005,882 @@ export const abiV08 = [
|
|
|
2005
2005
|
},
|
|
2006
2006
|
{ stateMutability: 'payable', type: 'receive' },
|
|
2007
2007
|
];
|
|
2008
|
+
/** EntryPoint 0.9 ABI. */
|
|
2009
|
+
export const abiV09 = [
|
|
2010
|
+
{ inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
|
|
2011
|
+
{
|
|
2012
|
+
inputs: [
|
|
2013
|
+
{ internalType: 'bool', name: 'success', type: 'bool' },
|
|
2014
|
+
{ internalType: 'bytes', name: 'ret', type: 'bytes' },
|
|
2015
|
+
],
|
|
2016
|
+
name: 'DelegateAndRevert',
|
|
2017
|
+
type: 'error',
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
inputs: [
|
|
2021
|
+
{ internalType: 'address', name: 'account', type: 'address' },
|
|
2022
|
+
{ internalType: 'address', name: 'withdrawAddress', type: 'address' },
|
|
2023
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
2024
|
+
{ internalType: 'bytes', name: 'revertReason', type: 'bytes' },
|
|
2025
|
+
],
|
|
2026
|
+
name: 'DepositWithdrawalFailed',
|
|
2027
|
+
type: 'error',
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
|
|
2031
|
+
name: 'Eip7702SenderNotDelegate',
|
|
2032
|
+
type: 'error',
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
|
|
2036
|
+
name: 'Eip7702SenderWithoutCode',
|
|
2037
|
+
type: 'error',
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
inputs: [
|
|
2041
|
+
{ internalType: 'uint256', name: 'opIndex', type: 'uint256' },
|
|
2042
|
+
{ internalType: 'string', name: 'reason', type: 'string' },
|
|
2043
|
+
],
|
|
2044
|
+
name: 'FailedOp',
|
|
2045
|
+
type: 'error',
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
inputs: [
|
|
2049
|
+
{ internalType: 'uint256', name: 'opIndex', type: 'uint256' },
|
|
2050
|
+
{ internalType: 'string', name: 'reason', type: 'string' },
|
|
2051
|
+
{ internalType: 'bytes', name: 'inner', type: 'bytes' },
|
|
2052
|
+
],
|
|
2053
|
+
name: 'FailedOpWithRevert',
|
|
2054
|
+
type: 'error',
|
|
2055
|
+
},
|
|
2056
|
+
{
|
|
2057
|
+
inputs: [
|
|
2058
|
+
{ internalType: 'address', name: 'beneficiary', type: 'address' },
|
|
2059
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
2060
|
+
{ internalType: 'bytes', name: 'revertData', type: 'bytes' },
|
|
2061
|
+
],
|
|
2062
|
+
name: 'FailedSendToBeneficiary',
|
|
2063
|
+
type: 'error',
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
inputs: [
|
|
2067
|
+
{ internalType: 'uint256', name: 'currentDeposit', type: 'uint256' },
|
|
2068
|
+
{ internalType: 'uint256', name: 'withdrawAmount', type: 'uint256' },
|
|
2069
|
+
],
|
|
2070
|
+
name: 'InsufficientDeposit',
|
|
2071
|
+
type: 'error',
|
|
2072
|
+
},
|
|
2073
|
+
{ inputs: [], name: 'InternalFunction', type: 'error' },
|
|
2074
|
+
{
|
|
2075
|
+
inputs: [{ internalType: 'address', name: 'beneficiary', type: 'address' }],
|
|
2076
|
+
name: 'InvalidBeneficiary',
|
|
2077
|
+
type: 'error',
|
|
2078
|
+
},
|
|
2079
|
+
{
|
|
2080
|
+
inputs: [{ internalType: 'address', name: 'paymaster', type: 'address' }],
|
|
2081
|
+
name: 'InvalidPaymaster',
|
|
2082
|
+
type: 'error',
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
inputs: [
|
|
2086
|
+
{
|
|
2087
|
+
internalType: 'uint256',
|
|
2088
|
+
name: 'paymasterAndDataLength',
|
|
2089
|
+
type: 'uint256',
|
|
2090
|
+
},
|
|
2091
|
+
],
|
|
2092
|
+
name: 'InvalidPaymasterData',
|
|
2093
|
+
type: 'error',
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
inputs: [
|
|
2097
|
+
{ internalType: 'uint256', name: 'dataLength', type: 'uint256' },
|
|
2098
|
+
{ internalType: 'uint256', name: 'pmSignatureLength', type: 'uint256' },
|
|
2099
|
+
],
|
|
2100
|
+
name: 'InvalidPaymasterSignatureLength',
|
|
2101
|
+
type: 'error',
|
|
2102
|
+
},
|
|
2103
|
+
{ inputs: [], name: 'InvalidShortString', type: 'error' },
|
|
2104
|
+
{
|
|
2105
|
+
inputs: [
|
|
2106
|
+
{ internalType: 'uint256', name: 'msgValue', type: 'uint256' },
|
|
2107
|
+
{ internalType: 'uint256', name: 'currentStake', type: 'uint256' },
|
|
2108
|
+
],
|
|
2109
|
+
name: 'InvalidStake',
|
|
2110
|
+
type: 'error',
|
|
2111
|
+
},
|
|
2112
|
+
{
|
|
2113
|
+
inputs: [
|
|
2114
|
+
{ internalType: 'uint256', name: 'newUnstakeDelaySec', type: 'uint256' },
|
|
2115
|
+
{
|
|
2116
|
+
internalType: 'uint256',
|
|
2117
|
+
name: 'currentUnstakeDelaySec',
|
|
2118
|
+
type: 'uint256',
|
|
2119
|
+
},
|
|
2120
|
+
],
|
|
2121
|
+
name: 'InvalidUnstakeDelay',
|
|
2122
|
+
type: 'error',
|
|
2123
|
+
},
|
|
2124
|
+
{
|
|
2125
|
+
inputs: [
|
|
2126
|
+
{ internalType: 'uint256', name: 'currentStake', type: 'uint256' },
|
|
2127
|
+
{ internalType: 'uint256', name: 'unstakeDelaySec', type: 'uint256' },
|
|
2128
|
+
{ internalType: 'bool', name: 'staked', type: 'bool' },
|
|
2129
|
+
],
|
|
2130
|
+
name: 'NotStaked',
|
|
2131
|
+
type: 'error',
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
inputs: [{ internalType: 'bytes', name: 'returnData', type: 'bytes' }],
|
|
2135
|
+
name: 'PostOpReverted',
|
|
2136
|
+
type: 'error',
|
|
2137
|
+
},
|
|
2138
|
+
{ inputs: [], name: 'Reentrancy', type: 'error' },
|
|
2139
|
+
{
|
|
2140
|
+
inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],
|
|
2141
|
+
name: 'SenderAddressResult',
|
|
2142
|
+
type: 'error',
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
inputs: [{ internalType: 'address', name: 'aggregator', type: 'address' }],
|
|
2146
|
+
name: 'SignatureValidationFailed',
|
|
2147
|
+
type: 'error',
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
inputs: [
|
|
2151
|
+
{ internalType: 'uint256', name: 'withdrawTime', type: 'uint256' },
|
|
2152
|
+
{ internalType: 'uint256', name: 'blockTimestamp', type: 'uint256' },
|
|
2153
|
+
],
|
|
2154
|
+
name: 'StakeNotUnlocked',
|
|
2155
|
+
type: 'error',
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
inputs: [
|
|
2159
|
+
{ internalType: 'address', name: 'account', type: 'address' },
|
|
2160
|
+
{ internalType: 'address', name: 'withdrawAddress', type: 'address' },
|
|
2161
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
2162
|
+
{ internalType: 'bytes', name: 'revertReason', type: 'bytes' },
|
|
2163
|
+
],
|
|
2164
|
+
name: 'StakeWithdrawalFailed',
|
|
2165
|
+
type: 'error',
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
inputs: [{ internalType: 'string', name: 'str', type: 'string' }],
|
|
2169
|
+
name: 'StringTooLong',
|
|
2170
|
+
type: 'error',
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
inputs: [
|
|
2174
|
+
{ internalType: 'uint256', name: 'withdrawTime', type: 'uint256' },
|
|
2175
|
+
{ internalType: 'uint256', name: 'blockTimestamp', type: 'uint256' },
|
|
2176
|
+
],
|
|
2177
|
+
name: 'WithdrawalNotDue',
|
|
2178
|
+
type: 'error',
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
anonymous: false,
|
|
2182
|
+
inputs: [
|
|
2183
|
+
{
|
|
2184
|
+
indexed: true,
|
|
2185
|
+
internalType: 'bytes32',
|
|
2186
|
+
name: 'userOpHash',
|
|
2187
|
+
type: 'bytes32',
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
indexed: true,
|
|
2191
|
+
internalType: 'address',
|
|
2192
|
+
name: 'sender',
|
|
2193
|
+
type: 'address',
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
indexed: false,
|
|
2197
|
+
internalType: 'address',
|
|
2198
|
+
name: 'factory',
|
|
2199
|
+
type: 'address',
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
indexed: false,
|
|
2203
|
+
internalType: 'address',
|
|
2204
|
+
name: 'paymaster',
|
|
2205
|
+
type: 'address',
|
|
2206
|
+
},
|
|
2207
|
+
],
|
|
2208
|
+
name: 'AccountDeployed',
|
|
2209
|
+
type: 'event',
|
|
2210
|
+
},
|
|
2211
|
+
{ anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },
|
|
2212
|
+
{
|
|
2213
|
+
anonymous: false,
|
|
2214
|
+
inputs: [
|
|
2215
|
+
{
|
|
2216
|
+
indexed: true,
|
|
2217
|
+
internalType: 'address',
|
|
2218
|
+
name: 'account',
|
|
2219
|
+
type: 'address',
|
|
2220
|
+
},
|
|
2221
|
+
{
|
|
2222
|
+
indexed: false,
|
|
2223
|
+
internalType: 'uint256',
|
|
2224
|
+
name: 'totalDeposit',
|
|
2225
|
+
type: 'uint256',
|
|
2226
|
+
},
|
|
2227
|
+
],
|
|
2228
|
+
name: 'Deposited',
|
|
2229
|
+
type: 'event',
|
|
2230
|
+
},
|
|
2231
|
+
{ anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event' },
|
|
2232
|
+
{
|
|
2233
|
+
anonymous: false,
|
|
2234
|
+
inputs: [
|
|
2235
|
+
{
|
|
2236
|
+
indexed: true,
|
|
2237
|
+
internalType: 'bytes32',
|
|
2238
|
+
name: 'userOpHash',
|
|
2239
|
+
type: 'bytes32',
|
|
2240
|
+
},
|
|
2241
|
+
{
|
|
2242
|
+
indexed: true,
|
|
2243
|
+
internalType: 'address',
|
|
2244
|
+
name: 'sender',
|
|
2245
|
+
type: 'address',
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
indexed: true,
|
|
2249
|
+
internalType: 'address',
|
|
2250
|
+
name: 'delegate',
|
|
2251
|
+
type: 'address',
|
|
2252
|
+
},
|
|
2253
|
+
],
|
|
2254
|
+
name: 'EIP7702AccountInitialized',
|
|
2255
|
+
type: 'event',
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
anonymous: false,
|
|
2259
|
+
inputs: [
|
|
2260
|
+
{
|
|
2261
|
+
indexed: true,
|
|
2262
|
+
internalType: 'bytes32',
|
|
2263
|
+
name: 'userOpHash',
|
|
2264
|
+
type: 'bytes32',
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
indexed: true,
|
|
2268
|
+
internalType: 'address',
|
|
2269
|
+
name: 'sender',
|
|
2270
|
+
type: 'address',
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
indexed: false,
|
|
2274
|
+
internalType: 'address',
|
|
2275
|
+
name: 'unusedFactory',
|
|
2276
|
+
type: 'address',
|
|
2277
|
+
},
|
|
2278
|
+
],
|
|
2279
|
+
name: 'IgnoredInitCode',
|
|
2280
|
+
type: 'event',
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
anonymous: false,
|
|
2284
|
+
inputs: [
|
|
2285
|
+
{
|
|
2286
|
+
indexed: true,
|
|
2287
|
+
internalType: 'bytes32',
|
|
2288
|
+
name: 'userOpHash',
|
|
2289
|
+
type: 'bytes32',
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
indexed: true,
|
|
2293
|
+
internalType: 'address',
|
|
2294
|
+
name: 'sender',
|
|
2295
|
+
type: 'address',
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
indexed: false,
|
|
2299
|
+
internalType: 'uint256',
|
|
2300
|
+
name: 'nonce',
|
|
2301
|
+
type: 'uint256',
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
indexed: false,
|
|
2305
|
+
internalType: 'bytes',
|
|
2306
|
+
name: 'revertReason',
|
|
2307
|
+
type: 'bytes',
|
|
2308
|
+
},
|
|
2309
|
+
],
|
|
2310
|
+
name: 'PostOpRevertReason',
|
|
2311
|
+
type: 'event',
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
anonymous: false,
|
|
2315
|
+
inputs: [
|
|
2316
|
+
{
|
|
2317
|
+
indexed: true,
|
|
2318
|
+
internalType: 'address',
|
|
2319
|
+
name: 'aggregator',
|
|
2320
|
+
type: 'address',
|
|
2321
|
+
},
|
|
2322
|
+
],
|
|
2323
|
+
name: 'SignatureAggregatorChanged',
|
|
2324
|
+
type: 'event',
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
anonymous: false,
|
|
2328
|
+
inputs: [
|
|
2329
|
+
{
|
|
2330
|
+
indexed: true,
|
|
2331
|
+
internalType: 'address',
|
|
2332
|
+
name: 'account',
|
|
2333
|
+
type: 'address',
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
indexed: false,
|
|
2337
|
+
internalType: 'uint256',
|
|
2338
|
+
name: 'totalStaked',
|
|
2339
|
+
type: 'uint256',
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
indexed: false,
|
|
2343
|
+
internalType: 'uint256',
|
|
2344
|
+
name: 'unstakeDelaySec',
|
|
2345
|
+
type: 'uint256',
|
|
2346
|
+
},
|
|
2347
|
+
],
|
|
2348
|
+
name: 'StakeLocked',
|
|
2349
|
+
type: 'event',
|
|
2350
|
+
},
|
|
2351
|
+
{
|
|
2352
|
+
anonymous: false,
|
|
2353
|
+
inputs: [
|
|
2354
|
+
{
|
|
2355
|
+
indexed: true,
|
|
2356
|
+
internalType: 'address',
|
|
2357
|
+
name: 'account',
|
|
2358
|
+
type: 'address',
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
indexed: false,
|
|
2362
|
+
internalType: 'uint256',
|
|
2363
|
+
name: 'withdrawTime',
|
|
2364
|
+
type: 'uint256',
|
|
2365
|
+
},
|
|
2366
|
+
],
|
|
2367
|
+
name: 'StakeUnlocked',
|
|
2368
|
+
type: 'event',
|
|
2369
|
+
},
|
|
2370
|
+
{
|
|
2371
|
+
anonymous: false,
|
|
2372
|
+
inputs: [
|
|
2373
|
+
{
|
|
2374
|
+
indexed: true,
|
|
2375
|
+
internalType: 'address',
|
|
2376
|
+
name: 'account',
|
|
2377
|
+
type: 'address',
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
indexed: false,
|
|
2381
|
+
internalType: 'address',
|
|
2382
|
+
name: 'withdrawAddress',
|
|
2383
|
+
type: 'address',
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
indexed: false,
|
|
2387
|
+
internalType: 'uint256',
|
|
2388
|
+
name: 'amount',
|
|
2389
|
+
type: 'uint256',
|
|
2390
|
+
},
|
|
2391
|
+
],
|
|
2392
|
+
name: 'StakeWithdrawn',
|
|
2393
|
+
type: 'event',
|
|
2394
|
+
},
|
|
2395
|
+
{
|
|
2396
|
+
anonymous: false,
|
|
2397
|
+
inputs: [
|
|
2398
|
+
{
|
|
2399
|
+
indexed: true,
|
|
2400
|
+
internalType: 'bytes32',
|
|
2401
|
+
name: 'userOpHash',
|
|
2402
|
+
type: 'bytes32',
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
indexed: true,
|
|
2406
|
+
internalType: 'address',
|
|
2407
|
+
name: 'sender',
|
|
2408
|
+
type: 'address',
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
indexed: true,
|
|
2412
|
+
internalType: 'address',
|
|
2413
|
+
name: 'paymaster',
|
|
2414
|
+
type: 'address',
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
indexed: false,
|
|
2418
|
+
internalType: 'uint256',
|
|
2419
|
+
name: 'nonce',
|
|
2420
|
+
type: 'uint256',
|
|
2421
|
+
},
|
|
2422
|
+
{ indexed: false, internalType: 'bool', name: 'success', type: 'bool' },
|
|
2423
|
+
{
|
|
2424
|
+
indexed: false,
|
|
2425
|
+
internalType: 'uint256',
|
|
2426
|
+
name: 'actualGasCost',
|
|
2427
|
+
type: 'uint256',
|
|
2428
|
+
},
|
|
2429
|
+
{
|
|
2430
|
+
indexed: false,
|
|
2431
|
+
internalType: 'uint256',
|
|
2432
|
+
name: 'actualGasUsed',
|
|
2433
|
+
type: 'uint256',
|
|
2434
|
+
},
|
|
2435
|
+
],
|
|
2436
|
+
name: 'UserOperationEvent',
|
|
2437
|
+
type: 'event',
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
anonymous: false,
|
|
2441
|
+
inputs: [
|
|
2442
|
+
{
|
|
2443
|
+
indexed: true,
|
|
2444
|
+
internalType: 'bytes32',
|
|
2445
|
+
name: 'userOpHash',
|
|
2446
|
+
type: 'bytes32',
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
indexed: true,
|
|
2450
|
+
internalType: 'address',
|
|
2451
|
+
name: 'sender',
|
|
2452
|
+
type: 'address',
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
indexed: false,
|
|
2456
|
+
internalType: 'uint256',
|
|
2457
|
+
name: 'nonce',
|
|
2458
|
+
type: 'uint256',
|
|
2459
|
+
},
|
|
2460
|
+
],
|
|
2461
|
+
name: 'UserOperationPrefundTooLow',
|
|
2462
|
+
type: 'event',
|
|
2463
|
+
},
|
|
2464
|
+
{
|
|
2465
|
+
anonymous: false,
|
|
2466
|
+
inputs: [
|
|
2467
|
+
{
|
|
2468
|
+
indexed: true,
|
|
2469
|
+
internalType: 'bytes32',
|
|
2470
|
+
name: 'userOpHash',
|
|
2471
|
+
type: 'bytes32',
|
|
2472
|
+
},
|
|
2473
|
+
{
|
|
2474
|
+
indexed: true,
|
|
2475
|
+
internalType: 'address',
|
|
2476
|
+
name: 'sender',
|
|
2477
|
+
type: 'address',
|
|
2478
|
+
},
|
|
2479
|
+
{
|
|
2480
|
+
indexed: false,
|
|
2481
|
+
internalType: 'uint256',
|
|
2482
|
+
name: 'nonce',
|
|
2483
|
+
type: 'uint256',
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
indexed: false,
|
|
2487
|
+
internalType: 'bytes',
|
|
2488
|
+
name: 'revertReason',
|
|
2489
|
+
type: 'bytes',
|
|
2490
|
+
},
|
|
2491
|
+
],
|
|
2492
|
+
name: 'UserOperationRevertReason',
|
|
2493
|
+
type: 'event',
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
anonymous: false,
|
|
2497
|
+
inputs: [
|
|
2498
|
+
{
|
|
2499
|
+
indexed: true,
|
|
2500
|
+
internalType: 'address',
|
|
2501
|
+
name: 'account',
|
|
2502
|
+
type: 'address',
|
|
2503
|
+
},
|
|
2504
|
+
{
|
|
2505
|
+
indexed: false,
|
|
2506
|
+
internalType: 'address',
|
|
2507
|
+
name: 'withdrawAddress',
|
|
2508
|
+
type: 'address',
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
indexed: false,
|
|
2512
|
+
internalType: 'uint256',
|
|
2513
|
+
name: 'amount',
|
|
2514
|
+
type: 'uint256',
|
|
2515
|
+
},
|
|
2516
|
+
],
|
|
2517
|
+
name: 'Withdrawn',
|
|
2518
|
+
type: 'event',
|
|
2519
|
+
},
|
|
2520
|
+
{
|
|
2521
|
+
inputs: [
|
|
2522
|
+
{ internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
|
|
2523
|
+
],
|
|
2524
|
+
name: 'addStake',
|
|
2525
|
+
outputs: [],
|
|
2526
|
+
stateMutability: 'payable',
|
|
2527
|
+
type: 'function',
|
|
2528
|
+
},
|
|
2529
|
+
{
|
|
2530
|
+
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
|
|
2531
|
+
name: 'balanceOf',
|
|
2532
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
2533
|
+
stateMutability: 'view',
|
|
2534
|
+
type: 'function',
|
|
2535
|
+
},
|
|
2536
|
+
{
|
|
2537
|
+
inputs: [
|
|
2538
|
+
{ internalType: 'address', name: 'target', type: 'address' },
|
|
2539
|
+
{ internalType: 'bytes', name: 'data', type: 'bytes' },
|
|
2540
|
+
],
|
|
2541
|
+
name: 'delegateAndRevert',
|
|
2542
|
+
outputs: [],
|
|
2543
|
+
stateMutability: 'nonpayable',
|
|
2544
|
+
type: 'function',
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
|
|
2548
|
+
name: 'depositTo',
|
|
2549
|
+
outputs: [],
|
|
2550
|
+
stateMutability: 'payable',
|
|
2551
|
+
type: 'function',
|
|
2552
|
+
},
|
|
2553
|
+
{
|
|
2554
|
+
inputs: [],
|
|
2555
|
+
name: 'eip712Domain',
|
|
2556
|
+
outputs: [
|
|
2557
|
+
{ internalType: 'bytes1', name: 'fields', type: 'bytes1' },
|
|
2558
|
+
{ internalType: 'string', name: 'name', type: 'string' },
|
|
2559
|
+
{ internalType: 'string', name: 'version', type: 'string' },
|
|
2560
|
+
{ internalType: 'uint256', name: 'chainId', type: 'uint256' },
|
|
2561
|
+
{ internalType: 'address', name: 'verifyingContract', type: 'address' },
|
|
2562
|
+
{ internalType: 'bytes32', name: 'salt', type: 'bytes32' },
|
|
2563
|
+
{ internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' },
|
|
2564
|
+
],
|
|
2565
|
+
stateMutability: 'view',
|
|
2566
|
+
type: 'function',
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
inputs: [],
|
|
2570
|
+
name: 'getCurrentUserOpHash',
|
|
2571
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
2572
|
+
stateMutability: 'view',
|
|
2573
|
+
type: 'function',
|
|
2574
|
+
},
|
|
2575
|
+
{
|
|
2576
|
+
inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
|
|
2577
|
+
name: 'getDepositInfo',
|
|
2578
|
+
outputs: [
|
|
2579
|
+
{
|
|
2580
|
+
components: [
|
|
2581
|
+
{ internalType: 'uint256', name: 'deposit', type: 'uint256' },
|
|
2582
|
+
{ internalType: 'bool', name: 'staked', type: 'bool' },
|
|
2583
|
+
{ internalType: 'uint112', name: 'stake', type: 'uint112' },
|
|
2584
|
+
{ internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },
|
|
2585
|
+
{ internalType: 'uint48', name: 'withdrawTime', type: 'uint48' },
|
|
2586
|
+
],
|
|
2587
|
+
internalType: 'struct IStakeManager.DepositInfo',
|
|
2588
|
+
name: 'info',
|
|
2589
|
+
type: 'tuple',
|
|
2590
|
+
},
|
|
2591
|
+
],
|
|
2592
|
+
stateMutability: 'view',
|
|
2593
|
+
type: 'function',
|
|
2594
|
+
},
|
|
2595
|
+
{
|
|
2596
|
+
inputs: [],
|
|
2597
|
+
name: 'getDomainSeparatorV4',
|
|
2598
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
2599
|
+
stateMutability: 'view',
|
|
2600
|
+
type: 'function',
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
inputs: [
|
|
2604
|
+
{ internalType: 'address', name: 'sender', type: 'address' },
|
|
2605
|
+
{ internalType: 'uint192', name: 'key', type: 'uint192' },
|
|
2606
|
+
],
|
|
2607
|
+
name: 'getNonce',
|
|
2608
|
+
outputs: [{ internalType: 'uint256', name: 'nonce', type: 'uint256' }],
|
|
2609
|
+
stateMutability: 'view',
|
|
2610
|
+
type: 'function',
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
inputs: [],
|
|
2614
|
+
name: 'getPackedUserOpTypeHash',
|
|
2615
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
2616
|
+
stateMutability: 'pure',
|
|
2617
|
+
type: 'function',
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
inputs: [{ internalType: 'bytes', name: 'initCode', type: 'bytes' }],
|
|
2621
|
+
name: 'getSenderAddress',
|
|
2622
|
+
outputs: [],
|
|
2623
|
+
stateMutability: 'nonpayable',
|
|
2624
|
+
type: 'function',
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
inputs: [
|
|
2628
|
+
{
|
|
2629
|
+
components: [
|
|
2630
|
+
{ internalType: 'address', name: 'sender', type: 'address' },
|
|
2631
|
+
{ internalType: 'uint256', name: 'nonce', type: 'uint256' },
|
|
2632
|
+
{ internalType: 'bytes', name: 'initCode', type: 'bytes' },
|
|
2633
|
+
{ internalType: 'bytes', name: 'callData', type: 'bytes' },
|
|
2634
|
+
{
|
|
2635
|
+
internalType: 'bytes32',
|
|
2636
|
+
name: 'accountGasLimits',
|
|
2637
|
+
type: 'bytes32',
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
internalType: 'uint256',
|
|
2641
|
+
name: 'preVerificationGas',
|
|
2642
|
+
type: 'uint256',
|
|
2643
|
+
},
|
|
2644
|
+
{ internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
|
|
2645
|
+
{ internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
|
|
2646
|
+
{ internalType: 'bytes', name: 'signature', type: 'bytes' },
|
|
2647
|
+
],
|
|
2648
|
+
internalType: 'struct PackedUserOperation',
|
|
2649
|
+
name: 'userOp',
|
|
2650
|
+
type: 'tuple',
|
|
2651
|
+
},
|
|
2652
|
+
],
|
|
2653
|
+
name: 'getUserOpHash',
|
|
2654
|
+
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
|
|
2655
|
+
stateMutability: 'view',
|
|
2656
|
+
type: 'function',
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
inputs: [
|
|
2660
|
+
{
|
|
2661
|
+
components: [
|
|
2662
|
+
{
|
|
2663
|
+
components: [
|
|
2664
|
+
{ internalType: 'address', name: 'sender', type: 'address' },
|
|
2665
|
+
{ internalType: 'uint256', name: 'nonce', type: 'uint256' },
|
|
2666
|
+
{ internalType: 'bytes', name: 'initCode', type: 'bytes' },
|
|
2667
|
+
{ internalType: 'bytes', name: 'callData', type: 'bytes' },
|
|
2668
|
+
{
|
|
2669
|
+
internalType: 'bytes32',
|
|
2670
|
+
name: 'accountGasLimits',
|
|
2671
|
+
type: 'bytes32',
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
internalType: 'uint256',
|
|
2675
|
+
name: 'preVerificationGas',
|
|
2676
|
+
type: 'uint256',
|
|
2677
|
+
},
|
|
2678
|
+
{ internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
|
|
2679
|
+
{
|
|
2680
|
+
internalType: 'bytes',
|
|
2681
|
+
name: 'paymasterAndData',
|
|
2682
|
+
type: 'bytes',
|
|
2683
|
+
},
|
|
2684
|
+
{ internalType: 'bytes', name: 'signature', type: 'bytes' },
|
|
2685
|
+
],
|
|
2686
|
+
internalType: 'struct PackedUserOperation[]',
|
|
2687
|
+
name: 'userOps',
|
|
2688
|
+
type: 'tuple[]',
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
internalType: 'contract IAggregator',
|
|
2692
|
+
name: 'aggregator',
|
|
2693
|
+
type: 'address',
|
|
2694
|
+
},
|
|
2695
|
+
{ internalType: 'bytes', name: 'signature', type: 'bytes' },
|
|
2696
|
+
],
|
|
2697
|
+
internalType: 'struct IEntryPoint.UserOpsPerAggregator[]',
|
|
2698
|
+
name: 'opsPerAggregator',
|
|
2699
|
+
type: 'tuple[]',
|
|
2700
|
+
},
|
|
2701
|
+
{ internalType: 'address payable', name: 'beneficiary', type: 'address' },
|
|
2702
|
+
],
|
|
2703
|
+
name: 'handleAggregatedOps',
|
|
2704
|
+
outputs: [],
|
|
2705
|
+
stateMutability: 'nonpayable',
|
|
2706
|
+
type: 'function',
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
inputs: [
|
|
2710
|
+
{
|
|
2711
|
+
components: [
|
|
2712
|
+
{ internalType: 'address', name: 'sender', type: 'address' },
|
|
2713
|
+
{ internalType: 'uint256', name: 'nonce', type: 'uint256' },
|
|
2714
|
+
{ internalType: 'bytes', name: 'initCode', type: 'bytes' },
|
|
2715
|
+
{ internalType: 'bytes', name: 'callData', type: 'bytes' },
|
|
2716
|
+
{
|
|
2717
|
+
internalType: 'bytes32',
|
|
2718
|
+
name: 'accountGasLimits',
|
|
2719
|
+
type: 'bytes32',
|
|
2720
|
+
},
|
|
2721
|
+
{
|
|
2722
|
+
internalType: 'uint256',
|
|
2723
|
+
name: 'preVerificationGas',
|
|
2724
|
+
type: 'uint256',
|
|
2725
|
+
},
|
|
2726
|
+
{ internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },
|
|
2727
|
+
{ internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },
|
|
2728
|
+
{ internalType: 'bytes', name: 'signature', type: 'bytes' },
|
|
2729
|
+
],
|
|
2730
|
+
internalType: 'struct PackedUserOperation[]',
|
|
2731
|
+
name: 'ops',
|
|
2732
|
+
type: 'tuple[]',
|
|
2733
|
+
},
|
|
2734
|
+
{ internalType: 'address payable', name: 'beneficiary', type: 'address' },
|
|
2735
|
+
],
|
|
2736
|
+
name: 'handleOps',
|
|
2737
|
+
outputs: [],
|
|
2738
|
+
stateMutability: 'nonpayable',
|
|
2739
|
+
type: 'function',
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
inputs: [{ internalType: 'uint192', name: 'key', type: 'uint192' }],
|
|
2743
|
+
name: 'incrementNonce',
|
|
2744
|
+
outputs: [],
|
|
2745
|
+
stateMutability: 'nonpayable',
|
|
2746
|
+
type: 'function',
|
|
2747
|
+
},
|
|
2748
|
+
{
|
|
2749
|
+
inputs: [
|
|
2750
|
+
{ internalType: 'bytes', name: 'callData', type: 'bytes' },
|
|
2751
|
+
{
|
|
2752
|
+
components: [
|
|
2753
|
+
{
|
|
2754
|
+
components: [
|
|
2755
|
+
{ internalType: 'address', name: 'sender', type: 'address' },
|
|
2756
|
+
{ internalType: 'uint256', name: 'nonce', type: 'uint256' },
|
|
2757
|
+
{
|
|
2758
|
+
internalType: 'uint256',
|
|
2759
|
+
name: 'verificationGasLimit',
|
|
2760
|
+
type: 'uint256',
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
internalType: 'uint256',
|
|
2764
|
+
name: 'callGasLimit',
|
|
2765
|
+
type: 'uint256',
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
internalType: 'uint256',
|
|
2769
|
+
name: 'paymasterVerificationGasLimit',
|
|
2770
|
+
type: 'uint256',
|
|
2771
|
+
},
|
|
2772
|
+
{
|
|
2773
|
+
internalType: 'uint256',
|
|
2774
|
+
name: 'paymasterPostOpGasLimit',
|
|
2775
|
+
type: 'uint256',
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
internalType: 'uint256',
|
|
2779
|
+
name: 'preVerificationGas',
|
|
2780
|
+
type: 'uint256',
|
|
2781
|
+
},
|
|
2782
|
+
{ internalType: 'address', name: 'paymaster', type: 'address' },
|
|
2783
|
+
{
|
|
2784
|
+
internalType: 'uint256',
|
|
2785
|
+
name: 'maxFeePerGas',
|
|
2786
|
+
type: 'uint256',
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
internalType: 'uint256',
|
|
2790
|
+
name: 'maxPriorityFeePerGas',
|
|
2791
|
+
type: 'uint256',
|
|
2792
|
+
},
|
|
2793
|
+
],
|
|
2794
|
+
internalType: 'struct EntryPoint.MemoryUserOp',
|
|
2795
|
+
name: 'mUserOp',
|
|
2796
|
+
type: 'tuple',
|
|
2797
|
+
},
|
|
2798
|
+
{ internalType: 'bytes32', name: 'userOpHash', type: 'bytes32' },
|
|
2799
|
+
{ internalType: 'uint256', name: 'prefund', type: 'uint256' },
|
|
2800
|
+
{ internalType: 'uint256', name: 'contextOffset', type: 'uint256' },
|
|
2801
|
+
{ internalType: 'uint256', name: 'preOpGas', type: 'uint256' },
|
|
2802
|
+
],
|
|
2803
|
+
internalType: 'struct EntryPoint.UserOpInfo',
|
|
2804
|
+
name: 'opInfo',
|
|
2805
|
+
type: 'tuple',
|
|
2806
|
+
},
|
|
2807
|
+
{ internalType: 'bytes', name: 'context', type: 'bytes' },
|
|
2808
|
+
],
|
|
2809
|
+
name: 'innerHandleOp',
|
|
2810
|
+
outputs: [
|
|
2811
|
+
{ internalType: 'uint256', name: 'actualGasCost', type: 'uint256' },
|
|
2812
|
+
],
|
|
2813
|
+
stateMutability: 'nonpayable',
|
|
2814
|
+
type: 'function',
|
|
2815
|
+
},
|
|
2816
|
+
{
|
|
2817
|
+
inputs: [
|
|
2818
|
+
{ internalType: 'address', name: '', type: 'address' },
|
|
2819
|
+
{ internalType: 'uint192', name: '', type: 'uint192' },
|
|
2820
|
+
],
|
|
2821
|
+
name: 'nonceSequenceNumber',
|
|
2822
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
2823
|
+
stateMutability: 'view',
|
|
2824
|
+
type: 'function',
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
inputs: [],
|
|
2828
|
+
name: 'senderCreator',
|
|
2829
|
+
outputs: [
|
|
2830
|
+
{ internalType: 'contract ISenderCreator', name: '', type: 'address' },
|
|
2831
|
+
],
|
|
2832
|
+
stateMutability: 'view',
|
|
2833
|
+
type: 'function',
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
|
|
2837
|
+
name: 'supportsInterface',
|
|
2838
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
2839
|
+
stateMutability: 'view',
|
|
2840
|
+
type: 'function',
|
|
2841
|
+
},
|
|
2842
|
+
{
|
|
2843
|
+
inputs: [],
|
|
2844
|
+
name: 'unlockStake',
|
|
2845
|
+
outputs: [],
|
|
2846
|
+
stateMutability: 'nonpayable',
|
|
2847
|
+
type: 'function',
|
|
2848
|
+
},
|
|
2849
|
+
{
|
|
2850
|
+
inputs: [
|
|
2851
|
+
{
|
|
2852
|
+
internalType: 'address payable',
|
|
2853
|
+
name: 'withdrawAddress',
|
|
2854
|
+
type: 'address',
|
|
2855
|
+
},
|
|
2856
|
+
],
|
|
2857
|
+
name: 'withdrawStake',
|
|
2858
|
+
outputs: [],
|
|
2859
|
+
stateMutability: 'nonpayable',
|
|
2860
|
+
type: 'function',
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
inputs: [
|
|
2864
|
+
{
|
|
2865
|
+
internalType: 'address payable',
|
|
2866
|
+
name: 'withdrawAddress',
|
|
2867
|
+
type: 'address',
|
|
2868
|
+
},
|
|
2869
|
+
{ internalType: 'uint256', name: 'withdrawAmount', type: 'uint256' },
|
|
2870
|
+
],
|
|
2871
|
+
name: 'withdrawTo',
|
|
2872
|
+
outputs: [],
|
|
2873
|
+
stateMutability: 'nonpayable',
|
|
2874
|
+
type: 'function',
|
|
2875
|
+
},
|
|
2876
|
+
{ stateMutability: 'payable', type: 'receive' },
|
|
2877
|
+
];
|
|
2008
2878
|
/** EntryPoint 0.6 address. */
|
|
2009
2879
|
export const addressV06 = '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789';
|
|
2010
2880
|
/** EntryPoint 0.7 address. */
|
|
2011
2881
|
export const addressV07 = '0x0000000071727De22E5E9d8BAf0edAc6f37da032';
|
|
2012
2882
|
/** EntryPoint 0.8 address. */
|
|
2013
2883
|
export const addressV08 = '0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108';
|
|
2884
|
+
/** EntryPoint 0.9 address. */
|
|
2885
|
+
export const addressV09 = '0x433709009B8330FDa32311DF1C2AFA402eD8D009';
|
|
2014
2886
|
//# sourceMappingURL=EntryPoint.js.map
|