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
package/dist/tempo/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export * as AuthorizationTempo from './AuthorizationTempo.js';
|
|
|
55
55
|
* payee: '0x2222222222222222222222222222222222222222',
|
|
56
56
|
* payer: '0x1111111111111111111111111111111111111111',
|
|
57
57
|
* salt: '0x0000000000000000000000000000000000000000000000000000000000000001',
|
|
58
|
-
* token:
|
|
58
|
+
* token: '0x20c0000000000000000000000000000000000001'
|
|
59
59
|
* })
|
|
60
60
|
*
|
|
61
61
|
* const channelId = Channel.computeId(channel, {
|
|
@@ -120,8 +120,8 @@ export * as KeyAuthorization from './KeyAuthorization.js';
|
|
|
120
120
|
/**
|
|
121
121
|
* Native multisig account utilities (TIP-1061).
|
|
122
122
|
*
|
|
123
|
-
* Derives stable multisig account addresses
|
|
124
|
-
*
|
|
123
|
+
* Derives stable multisig account addresses from a weighted owner
|
|
124
|
+
* configuration, and computes the owner approval digest that owners sign.
|
|
125
125
|
*
|
|
126
126
|
* [TIP-1061](https://tips.sh/1061)
|
|
127
127
|
*
|
|
@@ -193,8 +193,9 @@ export * as Period from './Period.js';
|
|
|
193
193
|
* import { PoolId } from 'ox/tempo'
|
|
194
194
|
*
|
|
195
195
|
* const poolId = PoolId.from({
|
|
196
|
-
* userToken:
|
|
197
|
-
* validatorToken:
|
|
196
|
+
* userToken: '0x20c0000000000000000000000000000000000001',
|
|
197
|
+
* validatorToken:
|
|
198
|
+
* '0x20c0000000000000000000000000000000000002'
|
|
198
199
|
* })
|
|
199
200
|
* ```
|
|
200
201
|
*
|
|
@@ -288,27 +289,6 @@ export * as SignatureEnvelope from './SignatureEnvelope.js';
|
|
|
288
289
|
* @category Reference
|
|
289
290
|
*/
|
|
290
291
|
export * as Tick from './Tick.js';
|
|
291
|
-
/**
|
|
292
|
-
* TIP-20 token ID utilities for converting between token IDs and addresses.
|
|
293
|
-
*
|
|
294
|
-
* TIP-20 is Tempo's native token standard for stablecoins with deterministic addresses
|
|
295
|
-
* derived from sequential token IDs. TIP-20 extends ERC-20 with payment features like
|
|
296
|
-
* configurable fee tokens, transfer memos, and built-in role-based access control.
|
|
297
|
-
*
|
|
298
|
-
* [TIP-20 Token Standard](https://docs.tempo.xyz/protocol/tip20/overview)
|
|
299
|
-
*
|
|
300
|
-
* @example
|
|
301
|
-
* ```ts twoslash
|
|
302
|
-
* import { TokenId } from 'ox/tempo'
|
|
303
|
-
*
|
|
304
|
-
* const tokenId = TokenId.from(1n)
|
|
305
|
-
* const address = TokenId.toAddress(1n)
|
|
306
|
-
* // '0x20c0000000000000000000000000000000000001'
|
|
307
|
-
* ```
|
|
308
|
-
*
|
|
309
|
-
* @category Reference
|
|
310
|
-
*/
|
|
311
|
-
export * as TokenId from './TokenId.js';
|
|
312
292
|
/**
|
|
313
293
|
* Token role utilities for serializing role identifiers to keccak256 hashes.
|
|
314
294
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tempo/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAGhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tempo/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAGhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAA;AACjE;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AAErD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAC3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAA;AACvD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AAEnD;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAA"}
|
package/dist/tempo/index.js
CHANGED
|
@@ -56,7 +56,7 @@ export * as AuthorizationTempo from './AuthorizationTempo.js';
|
|
|
56
56
|
* payee: '0x2222222222222222222222222222222222222222',
|
|
57
57
|
* payer: '0x1111111111111111111111111111111111111111',
|
|
58
58
|
* salt: '0x0000000000000000000000000000000000000000000000000000000000000001',
|
|
59
|
-
* token:
|
|
59
|
+
* token: '0x20c0000000000000000000000000000000000001'
|
|
60
60
|
* })
|
|
61
61
|
*
|
|
62
62
|
* const channelId = Channel.computeId(channel, {
|
|
@@ -121,8 +121,8 @@ export * as KeyAuthorization from './KeyAuthorization.js';
|
|
|
121
121
|
/**
|
|
122
122
|
* Native multisig account utilities (TIP-1061).
|
|
123
123
|
*
|
|
124
|
-
* Derives stable multisig account addresses
|
|
125
|
-
*
|
|
124
|
+
* Derives stable multisig account addresses from a weighted owner
|
|
125
|
+
* configuration, and computes the owner approval digest that owners sign.
|
|
126
126
|
*
|
|
127
127
|
* [TIP-1061](https://tips.sh/1061)
|
|
128
128
|
*
|
|
@@ -194,8 +194,9 @@ export * as Period from './Period.js';
|
|
|
194
194
|
* import { PoolId } from 'ox/tempo'
|
|
195
195
|
*
|
|
196
196
|
* const poolId = PoolId.from({
|
|
197
|
-
* userToken:
|
|
198
|
-
* validatorToken:
|
|
197
|
+
* userToken: '0x20c0000000000000000000000000000000000001',
|
|
198
|
+
* validatorToken:
|
|
199
|
+
* '0x20c0000000000000000000000000000000000002'
|
|
199
200
|
* })
|
|
200
201
|
* ```
|
|
201
202
|
*
|
|
@@ -289,27 +290,6 @@ export * as SignatureEnvelope from './SignatureEnvelope.js';
|
|
|
289
290
|
* @category Reference
|
|
290
291
|
*/
|
|
291
292
|
export * as Tick from './Tick.js';
|
|
292
|
-
/**
|
|
293
|
-
* TIP-20 token ID utilities for converting between token IDs and addresses.
|
|
294
|
-
*
|
|
295
|
-
* TIP-20 is Tempo's native token standard for stablecoins with deterministic addresses
|
|
296
|
-
* derived from sequential token IDs. TIP-20 extends ERC-20 with payment features like
|
|
297
|
-
* configurable fee tokens, transfer memos, and built-in role-based access control.
|
|
298
|
-
*
|
|
299
|
-
* [TIP-20 Token Standard](https://docs.tempo.xyz/protocol/tip20/overview)
|
|
300
|
-
*
|
|
301
|
-
* @example
|
|
302
|
-
* ```ts twoslash
|
|
303
|
-
* import { TokenId } from 'ox/tempo'
|
|
304
|
-
*
|
|
305
|
-
* const tokenId = TokenId.from(1n)
|
|
306
|
-
* const address = TokenId.toAddress(1n)
|
|
307
|
-
* // '0x20c0000000000000000000000000000000000001'
|
|
308
|
-
* ```
|
|
309
|
-
*
|
|
310
|
-
* @category Reference
|
|
311
|
-
*/
|
|
312
|
-
export * as TokenId from './TokenId.js';
|
|
313
293
|
/**
|
|
314
294
|
* Token role utilities for serializing role identifiers to keccak256 hashes.
|
|
315
295
|
*
|
package/dist/tempo/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tempo/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,2DAA2D;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tempo/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,2DAA2D;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAA;AACzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AAErC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAA;AACjE;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AAErD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAA;AAC3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAA;AAC/C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,kBAAkB,MAAM,yBAAyB,CAAA;AAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,KAAK,eAAe,MAAM,sBAAsB,CAAA;AACvD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAA;AACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAA;AAEnD;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const Abi: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniObject<{
|
|
3
|
+
type: z.ZodMiniLiteral<"constructor">;
|
|
4
|
+
inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
5
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
6
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
8
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
9
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
10
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
|
|
11
|
+
components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
12
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
13
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
14
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
15
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
16
|
+
}, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
|
|
17
|
+
}, z.core.$strip>]>>>>;
|
|
18
|
+
payable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
19
|
+
stateMutability: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>>;
|
|
20
|
+
}, z.core.$strip>, z.ZodMiniTransform<{
|
|
21
|
+
stateMutability: "nonpayable" | "payable";
|
|
22
|
+
type: "constructor";
|
|
23
|
+
inputs: readonly ({
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
internalType?: string | undefined;
|
|
26
|
+
} & ({
|
|
27
|
+
type: string;
|
|
28
|
+
} | {
|
|
29
|
+
type: string;
|
|
30
|
+
components: readonly ({
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
internalType?: string | undefined;
|
|
33
|
+
} & ({
|
|
34
|
+
type: string;
|
|
35
|
+
} | any))[];
|
|
36
|
+
}))[];
|
|
37
|
+
payable?: boolean | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
type: "constructor";
|
|
40
|
+
inputs: readonly ({
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
internalType?: string | undefined;
|
|
43
|
+
} & ({
|
|
44
|
+
type: string;
|
|
45
|
+
} | {
|
|
46
|
+
type: string;
|
|
47
|
+
components: readonly ({
|
|
48
|
+
name?: string | undefined;
|
|
49
|
+
internalType?: string | undefined;
|
|
50
|
+
} & ({
|
|
51
|
+
type: string;
|
|
52
|
+
} | any))[];
|
|
53
|
+
}))[];
|
|
54
|
+
payable?: boolean | undefined;
|
|
55
|
+
stateMutability?: "nonpayable" | "payable" | undefined;
|
|
56
|
+
}>>, z.ZodMiniObject<{
|
|
57
|
+
type: z.ZodMiniLiteral<"error">;
|
|
58
|
+
inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
59
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
60
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
61
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
62
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
63
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
64
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
|
|
65
|
+
components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
66
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
67
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
68
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
69
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
70
|
+
}, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
|
|
71
|
+
}, z.core.$strip>]>>>>;
|
|
72
|
+
name: z.ZodMiniString<string>;
|
|
73
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
74
|
+
type: z.ZodMiniLiteral<"event">;
|
|
75
|
+
anonymous: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
76
|
+
inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
77
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
78
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
79
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
80
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
81
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
82
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
|
|
83
|
+
components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
84
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
85
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
86
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
87
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
88
|
+
}, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
|
|
89
|
+
}, z.core.$strip>]>>, z.ZodMiniObject<{
|
|
90
|
+
indexed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
91
|
+
}, z.core.$strip>>>>;
|
|
92
|
+
name: z.ZodMiniString<string>;
|
|
93
|
+
}, z.core.$strip>, z.ZodMiniPipe<z.ZodMiniObject<{
|
|
94
|
+
type: z.ZodMiniLiteral<"fallback">;
|
|
95
|
+
payable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
96
|
+
stateMutability: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>>;
|
|
97
|
+
}, z.core.$strip>, z.ZodMiniTransform<{
|
|
98
|
+
stateMutability: "nonpayable" | "payable";
|
|
99
|
+
type: "fallback";
|
|
100
|
+
payable?: boolean | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
type: "fallback";
|
|
103
|
+
payable?: boolean | undefined;
|
|
104
|
+
stateMutability?: "nonpayable" | "payable" | undefined;
|
|
105
|
+
}>>, z.ZodMiniPipe<z.ZodMiniObject<{
|
|
106
|
+
type: z.ZodMiniLiteral<"function">;
|
|
107
|
+
constant: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
108
|
+
gas: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
109
|
+
inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
110
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
111
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
112
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
113
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
114
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
115
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
|
|
116
|
+
components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
117
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
118
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
119
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
120
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
121
|
+
}, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
|
|
122
|
+
}, z.core.$strip>]>>>>;
|
|
123
|
+
name: z.ZodMiniString<string>;
|
|
124
|
+
outputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
125
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
126
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
127
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
128
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
129
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
130
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
|
|
131
|
+
components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
132
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
133
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
134
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
135
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
136
|
+
}, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
|
|
137
|
+
}, z.core.$strip>]>>>>;
|
|
138
|
+
payable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
139
|
+
stateMutability: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"pure">, z.ZodMiniLiteral<"view">, z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>>;
|
|
140
|
+
}, z.core.$strip>, z.ZodMiniTransform<{
|
|
141
|
+
stateMutability: "pure" | "view" | "nonpayable" | "payable";
|
|
142
|
+
type: "function";
|
|
143
|
+
inputs: readonly ({
|
|
144
|
+
name?: string | undefined;
|
|
145
|
+
internalType?: string | undefined;
|
|
146
|
+
} & ({
|
|
147
|
+
type: string;
|
|
148
|
+
} | {
|
|
149
|
+
type: string;
|
|
150
|
+
components: readonly ({
|
|
151
|
+
name?: string | undefined;
|
|
152
|
+
internalType?: string | undefined;
|
|
153
|
+
} & ({
|
|
154
|
+
type: string;
|
|
155
|
+
} | any))[];
|
|
156
|
+
}))[];
|
|
157
|
+
name: string;
|
|
158
|
+
outputs: readonly ({
|
|
159
|
+
name?: string | undefined;
|
|
160
|
+
internalType?: string | undefined;
|
|
161
|
+
} & ({
|
|
162
|
+
type: string;
|
|
163
|
+
} | {
|
|
164
|
+
type: string;
|
|
165
|
+
components: readonly ({
|
|
166
|
+
name?: string | undefined;
|
|
167
|
+
internalType?: string | undefined;
|
|
168
|
+
} & ({
|
|
169
|
+
type: string;
|
|
170
|
+
} | any))[];
|
|
171
|
+
}))[];
|
|
172
|
+
constant?: boolean | undefined;
|
|
173
|
+
gas?: number | undefined;
|
|
174
|
+
payable?: boolean | undefined;
|
|
175
|
+
}, {
|
|
176
|
+
type: "function";
|
|
177
|
+
inputs: readonly ({
|
|
178
|
+
name?: string | undefined;
|
|
179
|
+
internalType?: string | undefined;
|
|
180
|
+
} & ({
|
|
181
|
+
type: string;
|
|
182
|
+
} | {
|
|
183
|
+
type: string;
|
|
184
|
+
components: readonly ({
|
|
185
|
+
name?: string | undefined;
|
|
186
|
+
internalType?: string | undefined;
|
|
187
|
+
} & ({
|
|
188
|
+
type: string;
|
|
189
|
+
} | any))[];
|
|
190
|
+
}))[];
|
|
191
|
+
name: string;
|
|
192
|
+
outputs: readonly ({
|
|
193
|
+
name?: string | undefined;
|
|
194
|
+
internalType?: string | undefined;
|
|
195
|
+
} & ({
|
|
196
|
+
type: string;
|
|
197
|
+
} | {
|
|
198
|
+
type: string;
|
|
199
|
+
components: readonly ({
|
|
200
|
+
name?: string | undefined;
|
|
201
|
+
internalType?: string | undefined;
|
|
202
|
+
} & ({
|
|
203
|
+
type: string;
|
|
204
|
+
} | any))[];
|
|
205
|
+
}))[];
|
|
206
|
+
constant?: boolean | undefined;
|
|
207
|
+
gas?: number | undefined;
|
|
208
|
+
payable?: boolean | undefined;
|
|
209
|
+
stateMutability?: "pure" | "view" | "nonpayable" | "payable" | undefined;
|
|
210
|
+
}>>, z.ZodMiniObject<{
|
|
211
|
+
type: z.ZodMiniLiteral<"receive">;
|
|
212
|
+
stateMutability: z.ZodMiniLiteral<"payable">;
|
|
213
|
+
}, z.core.$strip>]>>>;
|
|
214
|
+
//# sourceMappingURL=Abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Abi.d.ts","sourceRoot":"","sources":["../../src/zod/Abi.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAyC,CAAA"}
|
package/dist/zod/Abi.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
|
|
2
|
+
import * as z_AbiItem from './AbiItem.js';
|
|
3
|
+
import * as z from 'zod/mini';
|
|
4
|
+
export const Abi = z.readonly(z.array(z_AbiItem.AbiItem));
|
|
5
|
+
//# sourceMappingURL=Abi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Abi.js","sourceRoot":"","sources":["../../src/zod/Abi.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,SAAS,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const StateMutability: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>;
|
|
3
|
+
export declare const AbiConstructor: z.ZodMiniPipe<z.ZodMiniObject<{
|
|
4
|
+
type: z.ZodMiniLiteral<"constructor">;
|
|
5
|
+
inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
6
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
7
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
9
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
10
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
11
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
|
|
12
|
+
components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
13
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
14
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
15
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
16
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
17
|
+
}, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
|
|
18
|
+
}, z.core.$strip>]>>>>;
|
|
19
|
+
payable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
20
|
+
stateMutability: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>>;
|
|
21
|
+
}, z.core.$strip>, z.ZodMiniTransform<{
|
|
22
|
+
stateMutability: "nonpayable" | "payable";
|
|
23
|
+
type: "constructor";
|
|
24
|
+
inputs: readonly ({
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
internalType?: string | undefined;
|
|
27
|
+
} & ({
|
|
28
|
+
type: string;
|
|
29
|
+
} | {
|
|
30
|
+
type: string;
|
|
31
|
+
components: readonly ({
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
internalType?: string | undefined;
|
|
34
|
+
} & ({
|
|
35
|
+
type: string;
|
|
36
|
+
} | any))[];
|
|
37
|
+
}))[];
|
|
38
|
+
payable?: boolean | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
type: "constructor";
|
|
41
|
+
inputs: readonly ({
|
|
42
|
+
name?: string | undefined;
|
|
43
|
+
internalType?: string | undefined;
|
|
44
|
+
} & ({
|
|
45
|
+
type: string;
|
|
46
|
+
} | {
|
|
47
|
+
type: string;
|
|
48
|
+
components: readonly ({
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
internalType?: string | undefined;
|
|
51
|
+
} & ({
|
|
52
|
+
type: string;
|
|
53
|
+
} | any))[];
|
|
54
|
+
}))[];
|
|
55
|
+
payable?: boolean | undefined;
|
|
56
|
+
stateMutability?: "nonpayable" | "payable" | undefined;
|
|
57
|
+
}>>;
|
|
58
|
+
//# sourceMappingURL=AbiConstructor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiConstructor.d.ts","sourceRoot":"","sources":["../../src/zod/AbiConstructor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,eAAe,wFAG1B,CAAA;AASF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAO1B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
|
|
2
|
+
import * as z_AbiParameter from './AbiParameter.js';
|
|
3
|
+
import * as z from 'zod/mini';
|
|
4
|
+
export const StateMutability = z.union([
|
|
5
|
+
z.literal('nonpayable'),
|
|
6
|
+
z.literal('payable'),
|
|
7
|
+
]);
|
|
8
|
+
const Raw = z.object({
|
|
9
|
+
type: z.literal('constructor'),
|
|
10
|
+
inputs: z.readonly(z.array(z_AbiParameter.AbiParameter)),
|
|
11
|
+
payable: z.optional(z.boolean()),
|
|
12
|
+
stateMutability: z.optional(StateMutability),
|
|
13
|
+
});
|
|
14
|
+
export const AbiConstructor = z.pipe(Raw, z.transform((value) => ({
|
|
15
|
+
...value,
|
|
16
|
+
stateMutability: value.stateMutability ?? (value.payable ? 'payable' : 'nonpayable'),
|
|
17
|
+
})));
|
|
18
|
+
//# sourceMappingURL=AbiConstructor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiConstructor.js","sourceRoot":"","sources":["../../src/zod/AbiConstructor.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC;IACrC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IACvB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;CACrB,CAAC,CAAA;AAEF,MAAM,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC;IACnB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC;CAC7C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAClC,GAAG,EACH,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACtB,GAAG,KAAK;IACR,eAAe,EACb,KAAK,CAAC,eAAe,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC;CACtE,CAAC,CAAC,CACJ,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const AbiError: z.ZodMiniObject<{
|
|
3
|
+
type: z.ZodMiniLiteral<"error">;
|
|
4
|
+
inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
5
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
6
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
7
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
8
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
9
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
10
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
|
|
11
|
+
components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
12
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
13
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
14
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
15
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
16
|
+
}, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
|
|
17
|
+
}, z.core.$strip>]>>>>;
|
|
18
|
+
name: z.ZodMiniString<string>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
//# sourceMappingURL=AbiError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiError.d.ts","sourceRoot":"","sources":["../../src/zod/AbiError.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;iBAInB,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
|
|
2
|
+
import * as z_AbiParameter from './AbiParameter.js';
|
|
3
|
+
import * as z from 'zod/mini';
|
|
4
|
+
export const AbiError = z.object({
|
|
5
|
+
type: z.literal('error'),
|
|
6
|
+
inputs: z.readonly(z.array(z_AbiParameter.AbiParameter)),
|
|
7
|
+
name: z.string(),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=AbiError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiError.js","sourceRoot":"","sources":["../../src/zod/AbiError.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACxB,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IACxD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const AbiEvent: z.ZodMiniObject<{
|
|
3
|
+
type: z.ZodMiniLiteral<"event">;
|
|
4
|
+
anonymous: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
5
|
+
inputs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
6
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
7
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
9
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
10
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
11
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tuple">, z.ZodMiniString<string>]>;
|
|
12
|
+
components: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniIntersection<z.ZodMiniObject<{
|
|
13
|
+
name: z.ZodMiniUnion<readonly [z.ZodMiniOptional<z.ZodMiniString<string>>, z.ZodMiniLiteral<"">]>;
|
|
14
|
+
internalType: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
15
|
+
}, z.core.$strip>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
16
|
+
type: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"address">, z.ZodMiniLiteral<"bool">, z.ZodMiniString<string>, z.ZodMiniLiteral<"function">, z.ZodMiniLiteral<"string">, z.ZodMiniString<string>, z.ZodMiniString<string>]>;
|
|
17
|
+
}, z.core.$strip>, z.ZodMiniObject<any, z.core.$strip>]>>>>;
|
|
18
|
+
}, z.core.$strip>]>>, z.ZodMiniObject<{
|
|
19
|
+
indexed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
20
|
+
}, z.core.$strip>>>>;
|
|
21
|
+
name: z.ZodMiniString<string>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
//# sourceMappingURL=AbiEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiEvent.d.ts","sourceRoot":"","sources":["../../src/zod/AbiEvent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;iBAKnB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
|
|
2
|
+
import * as z_AbiParameter from './AbiParameter.js';
|
|
3
|
+
import * as z_Solidity from './Solidity.js';
|
|
4
|
+
import * as z from 'zod/mini';
|
|
5
|
+
export const AbiEvent = z.object({
|
|
6
|
+
type: z.literal('event'),
|
|
7
|
+
anonymous: z.optional(z.boolean()),
|
|
8
|
+
inputs: z.readonly(z.array(z_AbiParameter.AbiEventParameter)),
|
|
9
|
+
name: z_Solidity.Identifier,
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=AbiEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiEvent.js","sourceRoot":"","sources":["../../src/zod/AbiEvent.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,cAAc,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,UAAU,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACxB,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;IAC7D,IAAI,EAAE,UAAU,CAAC,UAAU;CAC5B,CAAC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const StateMutability: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>;
|
|
3
|
+
export declare const AbiFallback: z.ZodMiniPipe<z.ZodMiniObject<{
|
|
4
|
+
type: z.ZodMiniLiteral<"fallback">;
|
|
5
|
+
payable: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
6
|
+
stateMutability: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"nonpayable">, z.ZodMiniLiteral<"payable">]>>;
|
|
7
|
+
}, z.core.$strip>, z.ZodMiniTransform<{
|
|
8
|
+
stateMutability: "nonpayable" | "payable";
|
|
9
|
+
type: "fallback";
|
|
10
|
+
payable?: boolean | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
type: "fallback";
|
|
13
|
+
payable?: boolean | undefined;
|
|
14
|
+
stateMutability?: "nonpayable" | "payable" | undefined;
|
|
15
|
+
}>>;
|
|
16
|
+
//# sourceMappingURL=AbiFallback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiFallback.d.ts","sourceRoot":"","sources":["../../src/zod/AbiFallback.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,eAAe,wFAG1B,CAAA;AAQF,eAAO,MAAM,WAAW;;;;;;;;;;;;GAOvB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
|
|
2
|
+
import * as z from 'zod/mini';
|
|
3
|
+
export const StateMutability = z.union([
|
|
4
|
+
z.literal('nonpayable'),
|
|
5
|
+
z.literal('payable'),
|
|
6
|
+
]);
|
|
7
|
+
const Raw = z.object({
|
|
8
|
+
type: z.literal('fallback'),
|
|
9
|
+
payable: z.optional(z.boolean()),
|
|
10
|
+
stateMutability: z.optional(StateMutability),
|
|
11
|
+
});
|
|
12
|
+
export const AbiFallback = z.pipe(Raw, z.transform((value) => ({
|
|
13
|
+
...value,
|
|
14
|
+
stateMutability: value.stateMutability ?? (value.payable ? 'payable' : 'nonpayable'),
|
|
15
|
+
})));
|
|
16
|
+
//# sourceMappingURL=AbiFallback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiFallback.js","sourceRoot":"","sources":["../../src/zod/AbiFallback.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC;IACrC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IACvB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;CACrB,CAAC,CAAA;AAEF,MAAM,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC;IACnB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3B,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC;CAC7C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAC/B,GAAG,EACH,CAAC,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACtB,GAAG,KAAK;IACR,eAAe,EACb,KAAK,CAAC,eAAe,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC;CACtE,CAAC,CAAC,CACJ,CAAA"}
|