voltaire-effect 0.3.0 → 1.0.1

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.
Files changed (88) hide show
  1. package/dist/{X25519Test-D5Q-5fL9.d.ts → X25519Test-avt1DUgp.d.ts} +231 -6
  2. package/dist/crypto/index.d.ts +2 -2
  3. package/dist/crypto/index.js +72 -2
  4. package/dist/{index-3UKSP3cd.d.ts → index-DxwZo3xo.d.ts} +7781 -5513
  5. package/dist/index.d.ts +990 -3096
  6. package/dist/index.js +2374 -1652
  7. package/dist/native/index.d.ts +6 -6
  8. package/dist/native/index.js +2399 -1677
  9. package/dist/primitives/index.d.ts +7 -6
  10. package/dist/primitives/index.js +2966 -2361
  11. package/dist/services/index.d.ts +1631 -1255
  12. package/dist/services/index.js +4493 -3977
  13. package/package.json +7 -3
  14. package/src/crypto/Signers/SignersService.ts +1 -1
  15. package/src/crypto/Signers/errors.ts +29 -0
  16. package/src/crypto/Signers/index.ts +1 -0
  17. package/src/crypto/Signers/operations.ts +26 -8
  18. package/src/crypto/index.ts +10 -11
  19. package/src/index.ts +1 -2
  20. package/src/jsonrpc/Anvil.ts +13 -8
  21. package/src/jsonrpc/Eth.ts +13 -8
  22. package/src/jsonrpc/Hardhat.ts +13 -8
  23. package/src/jsonrpc/IdCounter.ts +21 -5
  24. package/src/jsonrpc/JsonRpc.test.ts +126 -61
  25. package/src/jsonrpc/Net.ts +13 -8
  26. package/src/jsonrpc/Request.ts +16 -8
  27. package/src/jsonrpc/Txpool.ts +13 -8
  28. package/src/jsonrpc/Wallet.ts +13 -8
  29. package/src/jsonrpc/Web3.ts +13 -8
  30. package/src/jsonrpc/index.ts +1 -1
  31. package/src/primitives/Abi/AbiSchema.ts +3 -4
  32. package/src/primitives/Abi/fromBytecode.test.ts +47 -0
  33. package/src/primitives/Abi/fromBytecode.ts +81 -0
  34. package/src/primitives/Abi/index.ts +3 -0
  35. package/src/primitives/AccessList/from.ts +12 -9
  36. package/src/primitives/Address/Checksummed.ts +21 -27
  37. package/src/primitives/Address/from.ts +12 -15
  38. package/src/primitives/Address/toHex.ts +2 -1
  39. package/src/primitives/Base64/from.ts +21 -4
  40. package/src/primitives/Blob/from.ts +12 -4
  41. package/src/primitives/BlockHash/index.ts +2 -2
  42. package/src/primitives/BlockNumber/index.ts +3 -3
  43. package/src/primitives/Bytecode/from.ts +11 -2
  44. package/src/primitives/ContractSignature/verifySignature.ts +3 -5
  45. package/src/primitives/Ens/from.ts +12 -11
  46. package/src/primitives/Hex/from.ts +12 -4
  47. package/src/primitives/Signature/from.ts +11 -2
  48. package/src/primitives/Transaction/EIP2930/index.ts +12 -12
  49. package/src/primitives/Transaction/EIP4844/index.ts +14 -14
  50. package/src/primitives/Transaction/EIP7702/index.ts +13 -13
  51. package/src/primitives/Transaction/Legacy/index.ts +13 -13
  52. package/src/primitives/TransactionHash/index.ts +3 -2
  53. package/src/primitives/TransactionIndex/index.ts +2 -2
  54. package/src/primitives/Trie/Trie.test.ts +70 -0
  55. package/src/primitives/Trie/TrieSchema.ts +26 -0
  56. package/src/primitives/Trie/clear.ts +16 -0
  57. package/src/primitives/Trie/del.ts +18 -0
  58. package/src/primitives/Trie/get.ts +18 -0
  59. package/src/primitives/Trie/index.ts +30 -0
  60. package/src/primitives/Trie/init.ts +13 -0
  61. package/src/primitives/Trie/prove.ts +19 -0
  62. package/src/primitives/Trie/put.ts +20 -0
  63. package/src/primitives/Trie/rootHash.ts +14 -0
  64. package/src/primitives/Trie/verify.ts +18 -0
  65. package/src/primitives/Uint/from.ts +11 -2
  66. package/src/primitives/Uint16/index.ts +5 -4
  67. package/src/primitives/Uint64/index.ts +5 -4
  68. package/src/primitives/Uint8/index.ts +5 -4
  69. package/src/primitives/index.ts +3 -2
  70. package/src/services/BlockExplorerApi/BlockExplorerApi.test.ts +789 -0
  71. package/src/services/BlockExplorerApi/BlockExplorerApi.ts +797 -0
  72. package/src/services/BlockExplorerApi/BlockExplorerApiErrors.ts +176 -0
  73. package/src/services/BlockExplorerApi/BlockExplorerApiService.ts +60 -0
  74. package/src/services/BlockExplorerApi/BlockExplorerApiTypes.ts +225 -0
  75. package/src/services/BlockExplorerApi/index.ts +42 -0
  76. package/src/services/Contract/Contract.test.ts +2 -6
  77. package/src/services/Contract/ContractTypes.ts +26 -8
  78. package/src/services/Contract/estimateGas.test.ts +4 -7
  79. package/src/services/Provider/actions/multicall.ts +28 -9
  80. package/src/services/Provider/actions/readContract.test.ts +8 -11
  81. package/src/services/Provider/actions/readContract.ts +28 -9
  82. package/src/services/Provider/functions/getBlock.ts +2 -1
  83. package/src/services/Provider/functions/getBlockReceipts.ts +2 -1
  84. package/src/services/Provider/functions/getBlockTransactionCount.ts +2 -1
  85. package/src/services/Provider/functions/getUncle.ts +2 -1
  86. package/src/services/Provider/functions/getUncleCount.ts +2 -1
  87. package/src/services/Signer/actions/deployContract.ts +1 -1
  88. package/src/services/index.ts +25 -0
@@ -1,29 +1,30 @@
1
- export { i as AccessList, a as AccountState, b as Address, c as Authorization, d as Balance, e as Base64, f as BaseFeePerGas, g as BeaconBlockRoot, h as BinaryTree, j as Blob, k as Block, l as BlockBody, m as BlockFilter, n as BlockHash, o as BlockHeader, p as BlockNumber, q as BloomFilter, r as BuilderBid, s as Bundle, t as BundleHash, u as Bundler, v as Bytecode, w as Bytes, x as Bytes32, y as CallData, z as CallTrace, A as Chain, B as ChainHead, C as ChainId, D as CompilerVersion, E as ContractCode, F as ContractResult, G as ContractSignature, H as DecodedData, I as Denomination, J as Domain, K as DomainSeparator, L as EffectiveGasPrice, M as EncodedData, N as Ens, O as EntryPoint, P as Epoch, Q as ErrorSignature, R as EventLog, S as EventSignature, T as FeeMarket, U as FeeOracle, V as FilterId, W as ForkId, X as ForwardRequest, Y as FunctionSignature, Z as Gas, _ as GasConstants, $ as GasCosts, a0 as GasEstimate, a1 as GasPrice, a2 as GasRefund, a3 as GasUsed, a4 as Hardfork, a5 as Hash, a6 as Hex, a7 as InitCode, ac as Int128, a9 as Int16, ad as Int256, aa as Int32, ab as Int64, a8 as Int8, ae as License, af as LogFilter, ag as LogIndex, ah as MaxFeePerGas, ai as MaxPriorityFeePerGas, aj as MemoryDump, ak as MerkleTree, al as Metadata, am as MultiTokenId, an as NetworkId, ao as NodeInfo, ap as Nonce, ar as OpStep, aq as Opcode, as as PackedUserOperation, at as Paymaster, au as PeerId, av as PeerInfo, aw as PendingTransactionFilter, ax as Permit, ay as PrivateKey, az as Proof, aA as ProtocolVersion, aB as Proxy, aC as PublicKey, aD as Receipt, aE as RelayData, aF as ReturnData, aG as RevertReason, aH as Rlp, aI as RuntimeCode, aJ as Selector, aK as Signature, aL as SignedData, aM as Siwe, aN as Slot, aO as SourceMap, aP as Ssz, aQ as State, aR as StateDiff, aS as StateProof, aT as StateRoot, aU as StealthAddress, aV as Storage, aW as StorageDiff, aX as StorageProof, aY as StorageValue, aZ as StructLog, a_ as SyncStatus, a$ as TokenBalance, b0 as TokenId, b1 as TopicFilter, b2 as TraceConfig, b3 as TraceResult, b4 as Transaction, b5 as TransactionHash, b6 as TransactionIndex, b7 as TransactionStatus, b8 as TransactionUrl, b9 as TypedData, ba as U256, bb as Uint, bg as Uint128, bd as Uint16, be as Uint32, bf as Uint64, bc as Uint8, bh as Uncle, bi as UserOperation, bj as ValidatorIndex, bk as Withdrawal, bl as WithdrawalIndex } from '../index-3UKSP3cd.js';
1
+ export { i as Abi, a as AccessList, b as AccountState, c as Address, d as Authorization, e as Balance, f as Base64, g as BaseFeePerGas, h as BeaconBlockRoot, j as BinaryTree, k as Blob, l as Block, m as BlockBody, n as BlockFilter, o as BlockHash, p as BlockHeader, q as BlockNumber, r as BloomFilter, s as BuilderBid, t as Bundle, u as BundleHash, v as Bundler, w as Bytecode, x as Bytes, y as Bytes32, z as CallData, A as CallTrace, B as Chain, C as ChainHead, D as ChainId, E as CompilerVersion, F as ContractCode, G as ContractResult, H as ContractSignature, I as DecodedData, J as Denomination, K as Domain, L as DomainSeparator, M as EffectiveGasPrice, N as EncodedData, O as Ens, P as EntryPoint, Q as Epoch, R as ErrorSignature, S as EventLog, T as EventSignature, U as FeeMarket, V as FeeOracle, W as FilterId, X as ForkId, Y as ForwardRequest, Z as FunctionSignature, _ as Gas, $ as GasConstants, a0 as GasCosts, a1 as GasEstimate, a2 as GasPrice, a3 as GasRefund, a4 as GasUsed, a5 as Hardfork, a6 as Hash, a7 as Hex, a8 as InitCode, ad as Int128, aa as Int16, ae as Int256, ab as Int32, ac as Int64, a9 as Int8, af as License, ag as LogFilter, ah as LogIndex, ai as MaxFeePerGas, aj as MaxPriorityFeePerGas, ak as MemoryDump, al as MerkleTree, am as Metadata, an as MultiTokenId, ao as NetworkId, ap as NodeInfo, aq as Nonce, as as OpStep, ar as Opcode, at as PackedUserOperation, au as Paymaster, av as PeerId, aw as PeerInfo, ax as PendingTransactionFilter, ay as Permit, az as PrivateKey, aA as Proof, aB as ProtocolVersion, aC as Proxy, aD as PublicKey, aE as Receipt, aF as RelayData, aG as ReturnData, aH as RevertReason, aI as Rlp, aJ as RuntimeCode, aK as Selector, aL as Signature, aM as SignedData, aN as Siwe, aO as Slot, aP as SourceMap, aQ as Ssz, aR as State, aS as StateDiff, aT as StateProof, aU as StateRoot, aV as StealthAddress, aW as Storage, aX as StorageDiff, aY as StorageProof, aZ as StorageValue, a_ as StructLog, a$ as SyncStatus, b0 as TokenBalance, b1 as TokenId, b2 as TopicFilter, b3 as TraceConfig, b4 as TraceResult, b5 as Transaction, b6 as TransactionHash, b7 as TransactionIndex, b8 as TransactionStatus, b9 as TransactionUrl, ba as TypedData, bb as U256, bc as Uint, bh as Uint128, be as Uint16, bf as Uint32, bg as Uint64, bd as Uint8, bi as Uncle, bj as UserOperation, bk as ValidatorIndex, bl as Withdrawal, bm as WithdrawalIndex } from '../index-DxwZo3xo.js';
2
2
  import * as Brand from 'effect/Brand';
3
3
  import '@tevm/voltaire';
4
4
  import 'effect/Schema';
5
5
  import '@tevm/voltaire/Siwe';
6
6
  import 'effect';
7
7
  import '@tevm/voltaire/Address';
8
+ import '@tevm/voltaire/Abi';
9
+ import 'effect/Effect';
10
+ import '@tevm/voltaire/Hex';
11
+ import 'effect/Cause';
12
+ import 'effect/Types';
8
13
  import '@tevm/voltaire/AccessList';
9
14
  import '@tevm/voltaire/errors';
10
15
  import '@tevm/voltaire/Hash';
11
16
  import '@tevm/voltaire/Bytes';
12
17
  import '@tevm/voltaire/functional';
18
+ import '@tevm/voltaire/Uint';
13
19
  import '../ProviderService-BZ5pqDrD.js';
14
20
  import 'effect/Context';
15
- import 'effect/Effect';
16
21
  import 'effect/Layer';
17
- import 'effect/Cause';
18
- import 'effect/Types';
19
- import '@tevm/voltaire/Uint';
20
22
  import '@tevm/voltaire/Authorization';
21
23
  import '@tevm/voltaire/Base64';
22
24
  import '@tevm/voltaire/Blob';
23
25
  import '../KZGService-B7PJerOb.js';
24
26
  import '@tevm/voltaire/BloomFilter';
25
27
  import '@tevm/voltaire/Bytecode';
26
- import '@tevm/voltaire/Hex';
27
28
  import '@tevm/voltaire/Ens';
28
29
  import '@tevm/voltaire/EventLog';
29
30
  import '@tevm/voltaire/GasConstants';