voltaire-effect 0.2.27 → 0.3.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/README.md +94 -7
- package/dist/{index-BCOuszKZ.d.ts → index-3UKSP3cd.d.ts} +74 -31
- package/dist/index.d.ts +3 -3
- package/dist/index.js +228 -158
- package/dist/native/index.d.ts +2 -2
- package/dist/native/index.js +231 -161
- package/dist/primitives/index.d.ts +1 -1
- package/dist/primitives/index.js +37 -4
- package/dist/services/index.d.ts +119 -9
- package/dist/services/index.js +148 -110
- package/package.json +11 -11
- package/src/primitives/Abi/encodeFunctionData.bench.ts +79 -0
- package/src/primitives/Address/Hex.ts +15 -1
- package/src/primitives/Block/BlockSchema.ts +1 -1
- package/src/primitives/PrivateKey/Bytes.ts +35 -0
- package/src/primitives/PrivateKey/Hex.ts +49 -1
- package/src/primitives/PrivateKey/PrivateKey.error.test.ts +167 -0
- package/src/primitives/PrivateKey/PrivateKey.test.ts +79 -0
- package/src/primitives/PrivateKey/index.ts +24 -32
- package/src/services/Contract/ContractsService.test.ts +12 -8
- package/src/services/Provider/ExecutionPlanProvider.test.ts +123 -0
- package/src/services/Provider/ExecutionPlanProvider.ts +151 -0
- package/src/services/Provider/index.ts +7 -0
- package/src/services/RpcBatch/RpcResolver.ts +4 -4
- package/src/services/RpcBatch/index.ts +9 -9
- package/src/services/Transport/BrowserTransport.ts +4 -4
- package/src/services/Transport/TransportInterceptor.ts +4 -4
package/dist/native/index.js
CHANGED
|
@@ -6,13 +6,13 @@ import * as Effect289 from 'effect/Effect';
|
|
|
6
6
|
import * as S9 from 'effect/Schema';
|
|
7
7
|
import { EIP712, Keccak256, Siwe, Bip39, Blake2, BN254, ChaCha20Poly1305, HMAC, KZG, Ripemd160, SHA256, ModExp, Uint, BeaconBlockRoot, BrandedBlob, Hex as Hex$1, Block, BlockBody, BlockHash, BlockHeader, BlockNumber, Address as Address$2, ChainHead, CompilerVersion, ContractCode, ContractResult, ContractSignature, DecodedData, Domain, DomainSeparator, EncodedData, Ens, Epoch, ErrorSignature, EventSignature, FilterId, ForkId, FunctionSignature, GasConstants, GasCosts, GasEstimate, Gas, GasRefund, GasUsed, Hardfork, BrandedInt8, BrandedInt16, BrandedInt32, BrandedInt64, BrandedInt128, BrandedInt256, License, LogIndex, MemoryDump, Metadata, MultiTokenId, NodeInfo, Opcode, OpStep, PeerId, PeerInfo, PendingTransactionFilter, ProtocolVersion, ReturnData, RevertReason, RuntimeCode, Selector, Slot, SourceMap, StealthAddress, Storage, StorageDiff, StructLog, SyncStatus, TokenBalance, TokenId, TopicFilter, TraceConfig, TraceResult, TransactionHash, TransactionIndex, TransactionUrl, TypedData, BrandedUint8, BrandedUint16, BrandedUint32, Uint64, BrandedUint128, Uncle, ValidatorIndex, Withdrawal, WithdrawalIndex, BrandedAbi, Hash as Hash$1, ERC20, ERC165, ERC721, ERC1155, AesGcm, Signature as Signature$1, BinaryTree, CallTrace, Secp256k1 } from '@tevm/voltaire';
|
|
8
8
|
import * as Context from 'effect/Context';
|
|
9
|
-
import * as
|
|
9
|
+
import * as Layer69 from 'effect/Layer';
|
|
10
10
|
import * as Secp256k12 from '@tevm/voltaire/Secp256k1';
|
|
11
11
|
import { InvalidSignatureError as InvalidSignatureError$1, InvalidPublicKeyError as InvalidPublicKeyError$1, Secp256k1Error as Secp256k1Error$1, InvalidPrivateKeyError as InvalidPrivateKeyError$1 } from '@tevm/voltaire/Secp256k1';
|
|
12
12
|
import { Signature, NonCanonicalSignatureError, InvalidSignatureLengthError, InvalidSignatureFormatError, InvalidDERError, InvalidAlgorithmError } from '@tevm/voltaire/Signature';
|
|
13
13
|
import * as ParseResult134 from 'effect/ParseResult';
|
|
14
14
|
import { VerifyMessage, Verify, SiweParseError, MissingFieldError, InvalidSiweMessageError, InvalidNonceLengthError, InvalidFieldError, GetMessageHash } from '@tevm/voltaire/Siwe';
|
|
15
|
-
import { Data, Effect } from 'effect';
|
|
15
|
+
import { Redacted, Data, Effect, ExecutionPlan, Schedule, Layer } from 'effect';
|
|
16
16
|
import * as Duration10 from 'effect/Duration';
|
|
17
17
|
import * as Schedule4 from 'effect/Schedule';
|
|
18
18
|
import { EventStream as EventStream$1 } from '@tevm/voltaire/contract';
|
|
@@ -68,7 +68,7 @@ import * as RateLimiter from 'effect/RateLimiter';
|
|
|
68
68
|
import * as Socket from '@effect/platform/Socket';
|
|
69
69
|
import * as Cause from 'effect/Cause';
|
|
70
70
|
import * as Scope from 'effect/Scope';
|
|
71
|
-
import * as
|
|
71
|
+
import * as Redacted4 from 'effect/Redacted';
|
|
72
72
|
import { loadTrustedSetup, verifyKzgProof, computeBlobKzgProof as computeBlobKzgProof$1, blobToKzgCommitment as blobToKzgCommitment$1 } from '@tevm/voltaire/KZG';
|
|
73
73
|
import * as Request2 from 'effect/Request';
|
|
74
74
|
import * as RequestResolver from 'effect/RequestResolver';
|
|
@@ -108,7 +108,7 @@ __export(EIP712_exports, {
|
|
|
108
108
|
});
|
|
109
109
|
var EIP712Service = class extends Context.Tag("EIP712Service")() {
|
|
110
110
|
};
|
|
111
|
-
var EIP712Live =
|
|
111
|
+
var EIP712Live = Layer69.succeed(EIP712Service, {
|
|
112
112
|
hashTypedData: (typedData) => Effect289.sync(() => EIP712.hashTypedData(typedData)),
|
|
113
113
|
signTypedData: (typedData, privateKey) => Effect289.sync(() => EIP712.signTypedData(typedData, privateKey)),
|
|
114
114
|
verifyTypedData: (signature, typedData, address) => Effect289.sync(() => EIP712.verifyTypedData(signature, typedData, address)),
|
|
@@ -123,7 +123,7 @@ var mockSignature = {
|
|
|
123
123
|
s: new Uint8Array(32),
|
|
124
124
|
v: 27
|
|
125
125
|
};
|
|
126
|
-
var EIP712Test =
|
|
126
|
+
var EIP712Test = Layer69.succeed(EIP712Service, {
|
|
127
127
|
hashTypedData: (_typedData) => Effect289.succeed(mockHash),
|
|
128
128
|
signTypedData: (_typedData, _privateKey) => Effect289.succeed(mockSignature),
|
|
129
129
|
verifyTypedData: (_signature, _typedData, _address) => Effect289.succeed(true),
|
|
@@ -214,10 +214,10 @@ __export(Keccak256_exports, {
|
|
|
214
214
|
});
|
|
215
215
|
var KeccakService = class extends Context.Tag("KeccakService")() {
|
|
216
216
|
};
|
|
217
|
-
var KeccakLive =
|
|
217
|
+
var KeccakLive = Layer69.succeed(KeccakService, {
|
|
218
218
|
hash: (data) => Effect289.sync(() => Keccak256.hash(data))
|
|
219
219
|
});
|
|
220
|
-
var KeccakTest =
|
|
220
|
+
var KeccakTest = Layer69.succeed(KeccakService, {
|
|
221
221
|
hash: (_data) => Effect289.sync(() => new Uint8Array(32))
|
|
222
222
|
});
|
|
223
223
|
|
|
@@ -408,7 +408,7 @@ var Secp256k1Service = class extends Context.Tag("Secp256k1Service")() {
|
|
|
408
408
|
};
|
|
409
409
|
|
|
410
410
|
// src/crypto/Secp256k1/Secp256k1Live.ts
|
|
411
|
-
var Secp256k1Live =
|
|
411
|
+
var Secp256k1Live = Layer69.succeed(Secp256k1Service, {
|
|
412
412
|
sign: (messageHash, privateKey, options) => Effect289.try({
|
|
413
413
|
try: () => Secp256k12.sign(messageHash, privateKey, options),
|
|
414
414
|
catch: (e) => mapToSecp256k1Error(e, "sign")
|
|
@@ -429,7 +429,7 @@ var testImpl = {
|
|
|
429
429
|
recover: (_signature, _messageHash) => Effect289.succeed(mockPublicKey),
|
|
430
430
|
verify: (_signature, _messageHash, _publicKey) => Effect289.succeed(true)
|
|
431
431
|
};
|
|
432
|
-
var Secp256k1Test =
|
|
432
|
+
var Secp256k1Test = Layer69.succeed(Secp256k1Service, testImpl);
|
|
433
433
|
var sign3 = (messageHash, privateKey, options) => Effect289.try({
|
|
434
434
|
try: () => Secp256k12.sign(messageHash, privateKey, options),
|
|
435
435
|
catch: (e) => mapToSecp256k1Error(e, "sign")
|
|
@@ -1241,7 +1241,7 @@ var makeEventStream = () => Effect289.gen(function* () {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
};
|
|
1243
1243
|
});
|
|
1244
|
-
var EventStream =
|
|
1244
|
+
var EventStream = Layer69.effect(EventStreamService, makeEventStream());
|
|
1245
1245
|
|
|
1246
1246
|
// src/crypto/AesGcm/index.ts
|
|
1247
1247
|
var AesGcm_exports = {};
|
|
@@ -1311,13 +1311,13 @@ var generateNonce2 = () => Effect289.try({
|
|
|
1311
1311
|
try: () => AesGcm.generateNonce(),
|
|
1312
1312
|
catch: (e) => e
|
|
1313
1313
|
});
|
|
1314
|
-
var AesGcmLive =
|
|
1314
|
+
var AesGcmLive = Layer69.succeed(AesGcmService, {
|
|
1315
1315
|
encrypt: (key, plaintext, nonce, aad) => encrypt(key, plaintext, nonce, aad),
|
|
1316
1316
|
decrypt: (key, ciphertext, nonce, aad) => decrypt(key, ciphertext, nonce, aad),
|
|
1317
1317
|
generateKey: (bits) => generateKey(bits ?? 256),
|
|
1318
1318
|
generateNonce: () => generateNonce2()
|
|
1319
1319
|
});
|
|
1320
|
-
var AesGcmTest =
|
|
1320
|
+
var AesGcmTest = Layer69.succeed(AesGcmService, {
|
|
1321
1321
|
encrypt: () => Effect289.succeed(new Uint8Array(32)),
|
|
1322
1322
|
decrypt: () => Effect289.succeed(new Uint8Array(16)),
|
|
1323
1323
|
generateKey: () => Effect289.succeed(new Uint8Array(32)),
|
|
@@ -1342,7 +1342,7 @@ __export(Bip39_exports, {
|
|
|
1342
1342
|
});
|
|
1343
1343
|
var Bip39Service = class extends Context.Tag("Bip39Service")() {
|
|
1344
1344
|
};
|
|
1345
|
-
var Bip39Live =
|
|
1345
|
+
var Bip39Live = Layer69.succeed(Bip39Service, {
|
|
1346
1346
|
generateMnemonic: (strength = 128) => Effect289.sync(() => Bip39.generateMnemonic(strength)),
|
|
1347
1347
|
validateMnemonic: (mnemonic) => Effect289.sync(() => Bip39.validateMnemonic(mnemonic)),
|
|
1348
1348
|
mnemonicToSeed: (mnemonic, passphrase) => Effect289.promise(() => Bip39.mnemonicToSeed(mnemonic, passphrase)),
|
|
@@ -1350,7 +1350,7 @@ var Bip39Live = Layer68.succeed(Bip39Service, {
|
|
|
1350
1350
|
getWordCount: (entropyBits) => Effect289.sync(() => Bip39.getWordCount(entropyBits))
|
|
1351
1351
|
});
|
|
1352
1352
|
var TEST_MNEMONIC = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about";
|
|
1353
|
-
var Bip39Test =
|
|
1353
|
+
var Bip39Test = Layer69.succeed(Bip39Service, {
|
|
1354
1354
|
generateMnemonic: (_strength) => Effect289.succeed(TEST_MNEMONIC),
|
|
1355
1355
|
validateMnemonic: (_mnemonic) => Effect289.succeed(true),
|
|
1356
1356
|
mnemonicToSeed: (_mnemonic, _passphrase) => Effect289.succeed(new Uint8Array(64)),
|
|
@@ -1409,10 +1409,10 @@ __export(Blake2_exports, {
|
|
|
1409
1409
|
});
|
|
1410
1410
|
var Blake2Service = class extends Context.Tag("Blake2Service")() {
|
|
1411
1411
|
};
|
|
1412
|
-
var Blake2Live =
|
|
1412
|
+
var Blake2Live = Layer69.succeed(Blake2Service, {
|
|
1413
1413
|
hash: (data, outputLength = 64) => Effect289.sync(() => Blake2.hash(data, outputLength))
|
|
1414
1414
|
});
|
|
1415
|
-
var Blake2Test =
|
|
1415
|
+
var Blake2Test = Layer69.succeed(Blake2Service, {
|
|
1416
1416
|
hash: (_data, outputLength = 64) => Effect289.sync(() => new Uint8Array(outputLength))
|
|
1417
1417
|
});
|
|
1418
1418
|
var hash2 = (data, outputLength) => Effect289.gen(function* () {
|
|
@@ -1445,7 +1445,7 @@ var verify7 = (signature, message, publicKey) => Effect289.try({
|
|
|
1445
1445
|
});
|
|
1446
1446
|
|
|
1447
1447
|
// src/crypto/Bls12381/Bls12381Live.ts
|
|
1448
|
-
var Bls12381Live =
|
|
1448
|
+
var Bls12381Live = Layer69.succeed(Bls12381Service, {
|
|
1449
1449
|
sign: sign5,
|
|
1450
1450
|
verify: verify7,
|
|
1451
1451
|
aggregate: aggregate2
|
|
@@ -1470,7 +1470,7 @@ var Bn254Error = class extends Data13.TaggedError("Bn254Error") {
|
|
|
1470
1470
|
};
|
|
1471
1471
|
var Bn254Service = class extends Context.Tag("Bn254Service")() {
|
|
1472
1472
|
};
|
|
1473
|
-
var Bn254Live =
|
|
1473
|
+
var Bn254Live = Layer69.succeed(Bn254Service, {
|
|
1474
1474
|
g1Add: (a, b) => Effect289.try({
|
|
1475
1475
|
try: () => BN254.G1.add(a, b),
|
|
1476
1476
|
catch: (e) => new Bn254Error({
|
|
@@ -1538,7 +1538,7 @@ var mockG2Point = {
|
|
|
1538
1538
|
y: { c0: 1n, c1: 0n },
|
|
1539
1539
|
z: { c0: 1n, c1: 0n }
|
|
1540
1540
|
};
|
|
1541
|
-
var Bn254Test =
|
|
1541
|
+
var Bn254Test = Layer69.succeed(Bn254Service, {
|
|
1542
1542
|
g1Add: (_a, _b) => Effect289.succeed(mockG1Point),
|
|
1543
1543
|
g1Mul: (_point, _scalar) => Effect289.succeed(mockG1Point),
|
|
1544
1544
|
g1Generator: () => Effect289.succeed(mockG1Point),
|
|
@@ -1615,7 +1615,7 @@ var ChaCha20Poly1305Service = class extends Context.Tag(
|
|
|
1615
1615
|
"ChaCha20Poly1305Service"
|
|
1616
1616
|
)() {
|
|
1617
1617
|
};
|
|
1618
|
-
var ChaCha20Poly1305Live =
|
|
1618
|
+
var ChaCha20Poly1305Live = Layer69.succeed(ChaCha20Poly1305Service, {
|
|
1619
1619
|
encrypt: (plaintext, key, nonce, additionalData) => Effect289.gen(function* () {
|
|
1620
1620
|
yield* validateKey2(key);
|
|
1621
1621
|
yield* validateNonce2(nonce);
|
|
@@ -1629,7 +1629,7 @@ var ChaCha20Poly1305Live = Layer68.succeed(ChaCha20Poly1305Service, {
|
|
|
1629
1629
|
generateKey: () => Effect289.sync(() => ChaCha20Poly1305.generateKey()),
|
|
1630
1630
|
generateNonce: () => Effect289.sync(() => ChaCha20Poly1305.generateNonce())
|
|
1631
1631
|
});
|
|
1632
|
-
var ChaCha20Poly1305Test =
|
|
1632
|
+
var ChaCha20Poly1305Test = Layer69.succeed(ChaCha20Poly1305Service, {
|
|
1633
1633
|
encrypt: (_plaintext, _key, _nonce, _additionalData) => Effect289.sync(() => new Uint8Array(32)),
|
|
1634
1634
|
decrypt: (_ciphertext, _key, _nonce, _additionalData) => Effect289.sync(() => new Uint8Array(16)),
|
|
1635
1635
|
generateKey: () => Effect289.sync(() => new Uint8Array(32)),
|
|
@@ -1667,7 +1667,7 @@ var verify9 = (signature, message, publicKey) => Effect289.try({
|
|
|
1667
1667
|
});
|
|
1668
1668
|
|
|
1669
1669
|
// src/crypto/Ed25519/Ed25519Live.ts
|
|
1670
|
-
var Ed25519Live =
|
|
1670
|
+
var Ed25519Live = Layer69.succeed(Ed25519Service, {
|
|
1671
1671
|
sign: sign7,
|
|
1672
1672
|
verify: verify9,
|
|
1673
1673
|
getPublicKey
|
|
@@ -1684,11 +1684,11 @@ __export(HMAC_exports, {
|
|
|
1684
1684
|
});
|
|
1685
1685
|
var HMACService = class extends Context.Tag("HMACService")() {
|
|
1686
1686
|
};
|
|
1687
|
-
var HMACLive =
|
|
1687
|
+
var HMACLive = Layer69.succeed(HMACService, {
|
|
1688
1688
|
sha256: (key, message) => Effect289.sync(() => HMAC.sha256(key, message)),
|
|
1689
1689
|
sha512: (key, message) => Effect289.sync(() => HMAC.sha512(key, message))
|
|
1690
1690
|
});
|
|
1691
|
-
var HMACTest =
|
|
1691
|
+
var HMACTest = Layer69.succeed(HMACService, {
|
|
1692
1692
|
sha256: (_key, _message) => Effect289.succeed(new Uint8Array(32)),
|
|
1693
1693
|
sha512: (_key, _message) => Effect289.succeed(new Uint8Array(64))
|
|
1694
1694
|
});
|
|
@@ -1748,7 +1748,7 @@ var KeystoreService = class extends Context.Tag("KeystoreService")() {
|
|
|
1748
1748
|
};
|
|
1749
1749
|
|
|
1750
1750
|
// src/crypto/Keystore/KeystoreLive.ts
|
|
1751
|
-
var KeystoreLive =
|
|
1751
|
+
var KeystoreLive = Layer69.succeed(KeystoreService, {
|
|
1752
1752
|
encrypt: encrypt3,
|
|
1753
1753
|
decrypt: decrypt3
|
|
1754
1754
|
});
|
|
@@ -1777,7 +1777,7 @@ var testImpl2 = {
|
|
|
1777
1777
|
encrypt: (_privateKey, _password, _options) => Effect289.succeed(mockKeystore),
|
|
1778
1778
|
decrypt: (_keystore, _password) => Effect289.succeed(mockPrivateKey)
|
|
1779
1779
|
};
|
|
1780
|
-
var KeystoreTest =
|
|
1780
|
+
var KeystoreTest = Layer69.succeed(KeystoreService, testImpl2);
|
|
1781
1781
|
|
|
1782
1782
|
// src/crypto/KZG/index.ts
|
|
1783
1783
|
var KZG_exports = {};
|
|
@@ -1794,7 +1794,7 @@ var KZGError = class extends Data13.TaggedError("KZGError") {
|
|
|
1794
1794
|
};
|
|
1795
1795
|
var KZGService = class extends Context.Tag("KZGService")() {
|
|
1796
1796
|
};
|
|
1797
|
-
var KZGLive =
|
|
1797
|
+
var KZGLive = Layer69.succeed(KZGService, {
|
|
1798
1798
|
blobToKzgCommitment: (blob) => Effect289.try({
|
|
1799
1799
|
try: () => KZG.blobToKzgCommitment(blob),
|
|
1800
1800
|
catch: (e) => new KZGError({
|
|
@@ -1841,7 +1841,7 @@ var KZGLive = Layer68.succeed(KZGService, {
|
|
|
1841
1841
|
})
|
|
1842
1842
|
})
|
|
1843
1843
|
});
|
|
1844
|
-
var KZGTest =
|
|
1844
|
+
var KZGTest = Layer69.succeed(KZGService, {
|
|
1845
1845
|
blobToKzgCommitment: (_blob) => Effect289.sync(() => new Uint8Array(48)),
|
|
1846
1846
|
computeBlobKzgProof: (_blob, _commitment) => Effect289.sync(() => new Uint8Array(48)),
|
|
1847
1847
|
verifyBlobKzgProof: (_blob, _commitment, _proof) => Effect289.succeed(true),
|
|
@@ -1874,7 +1874,7 @@ var verify11 = (signature, messageHash, publicKey) => Effect289.try({
|
|
|
1874
1874
|
});
|
|
1875
1875
|
|
|
1876
1876
|
// src/crypto/P256/P256Live.ts
|
|
1877
|
-
var P256Live =
|
|
1877
|
+
var P256Live = Layer69.succeed(P256Service, {
|
|
1878
1878
|
sign: sign9,
|
|
1879
1879
|
verify: verify11
|
|
1880
1880
|
});
|
|
@@ -1889,10 +1889,10 @@ __export(Ripemd160_exports, {
|
|
|
1889
1889
|
});
|
|
1890
1890
|
var Ripemd160Service = class extends Context.Tag("Ripemd160Service")() {
|
|
1891
1891
|
};
|
|
1892
|
-
var Ripemd160Live =
|
|
1892
|
+
var Ripemd160Live = Layer69.succeed(Ripemd160Service, {
|
|
1893
1893
|
hash: (data) => Effect289.sync(() => Ripemd160.hash(data))
|
|
1894
1894
|
});
|
|
1895
|
-
var Ripemd160Test =
|
|
1895
|
+
var Ripemd160Test = Layer69.succeed(Ripemd160Service, {
|
|
1896
1896
|
hash: (_data) => Effect289.sync(() => new Uint8Array(20))
|
|
1897
1897
|
});
|
|
1898
1898
|
|
|
@@ -1912,10 +1912,10 @@ __export(SHA256_exports, {
|
|
|
1912
1912
|
});
|
|
1913
1913
|
var SHA256Service = class extends Context.Tag("SHA256Service")() {
|
|
1914
1914
|
};
|
|
1915
|
-
var SHA256Live =
|
|
1915
|
+
var SHA256Live = Layer69.succeed(SHA256Service, {
|
|
1916
1916
|
hash: (data) => Effect289.sync(() => SHA256.hash(data))
|
|
1917
1917
|
});
|
|
1918
|
-
var SHA256Test =
|
|
1918
|
+
var SHA256Test = Layer69.succeed(SHA256Service, {
|
|
1919
1919
|
hash: (_data) => Effect289.sync(() => new Uint8Array(32))
|
|
1920
1920
|
});
|
|
1921
1921
|
|
|
@@ -1926,7 +1926,7 @@ var hash4 = (data) => Effect289.gen(function* () {
|
|
|
1926
1926
|
});
|
|
1927
1927
|
|
|
1928
1928
|
// src/crypto/CryptoLive.ts
|
|
1929
|
-
var CryptoLive =
|
|
1929
|
+
var CryptoLive = Layer69.mergeAll(
|
|
1930
1930
|
KeccakLive,
|
|
1931
1931
|
Secp256k1Live,
|
|
1932
1932
|
SHA256Live,
|
|
@@ -1954,7 +1954,7 @@ __export(Ed25519_exports, {
|
|
|
1954
1954
|
sign: () => sign7,
|
|
1955
1955
|
verify: () => verify9
|
|
1956
1956
|
});
|
|
1957
|
-
var Ed25519Test =
|
|
1957
|
+
var Ed25519Test = Layer69.succeed(Ed25519Service, {
|
|
1958
1958
|
sign: (_message, _secretKey) => Effect289.succeed(new Uint8Array(64)),
|
|
1959
1959
|
verify: (_signature, _message, _publicKey) => Effect289.succeed(true),
|
|
1960
1960
|
getPublicKey: (_secretKey) => Effect289.succeed(new Uint8Array(32))
|
|
@@ -1962,7 +1962,7 @@ var Ed25519Test = Layer68.succeed(Ed25519Service, {
|
|
|
1962
1962
|
var HDWalletService = class extends Context.Tag("HDWalletService")() {
|
|
1963
1963
|
};
|
|
1964
1964
|
var TEST_MNEMONIC2 = "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about";
|
|
1965
|
-
var HDWalletTest =
|
|
1965
|
+
var HDWalletTest = Layer69.succeed(HDWalletService, {
|
|
1966
1966
|
derive: (_node, _path) => Effect289.succeed({}),
|
|
1967
1967
|
generateMnemonic: (_strength) => Effect289.succeed(TEST_MNEMONIC2),
|
|
1968
1968
|
fromSeed: (_seed) => Effect289.succeed({}),
|
|
@@ -1973,7 +1973,7 @@ var HDWalletTest = Layer68.succeed(HDWalletService, {
|
|
|
1973
1973
|
});
|
|
1974
1974
|
|
|
1975
1975
|
// src/crypto/CryptoTest.ts
|
|
1976
|
-
var CryptoTest =
|
|
1976
|
+
var CryptoTest = Layer69.mergeAll(
|
|
1977
1977
|
KeccakTest,
|
|
1978
1978
|
Secp256k1Test,
|
|
1979
1979
|
SHA256Test,
|
|
@@ -3127,12 +3127,12 @@ __export(ModExp_exports, {
|
|
|
3127
3127
|
});
|
|
3128
3128
|
var ModExpService = class extends Context.Tag("ModExpService")() {
|
|
3129
3129
|
};
|
|
3130
|
-
var ModExpLive =
|
|
3130
|
+
var ModExpLive = Layer69.succeed(ModExpService, {
|
|
3131
3131
|
modexp: (base2, exp, modulus) => Effect289.sync(() => ModExp.modexp(base2, exp, modulus)),
|
|
3132
3132
|
modexpBytes: (baseBytes, expBytes, modBytes) => Effect289.sync(() => ModExp.modexpBytes(baseBytes, expBytes, modBytes)),
|
|
3133
3133
|
calculateGas: (baseLen, expLen, modLen, expHead) => Effect289.sync(() => ModExp.calculateGas(baseLen, expLen, modLen, expHead))
|
|
3134
3134
|
});
|
|
3135
|
-
var ModExpTest =
|
|
3135
|
+
var ModExpTest = Layer69.succeed(ModExpService, {
|
|
3136
3136
|
modexp: (_base, _exp, _modulus) => Effect289.sync(() => 0n),
|
|
3137
3137
|
modexpBytes: (_baseBytes, _expBytes, modBytes) => Effect289.sync(() => new Uint8Array(modBytes.length)),
|
|
3138
3138
|
calculateGas: (_baseLen, _expLen, _modLen, _expHead) => Effect289.sync(() => 200n)
|
|
@@ -3182,12 +3182,12 @@ var X25519Service = class extends Context.Tag("X25519Service")() {
|
|
|
3182
3182
|
};
|
|
3183
3183
|
|
|
3184
3184
|
// src/crypto/X25519/X25519Live.ts
|
|
3185
|
-
var X25519Live =
|
|
3185
|
+
var X25519Live = Layer69.succeed(X25519Service, {
|
|
3186
3186
|
generateKeyPair,
|
|
3187
3187
|
getPublicKey: getPublicKey3,
|
|
3188
3188
|
computeSecret
|
|
3189
3189
|
});
|
|
3190
|
-
var X25519Test =
|
|
3190
|
+
var X25519Test = Layer69.succeed(X25519Service, {
|
|
3191
3191
|
generateKeyPair: () => Effect289.succeed({
|
|
3192
3192
|
secretKey: new Uint8Array(32),
|
|
3193
3193
|
publicKey: new Uint8Array(32)
|
|
@@ -7397,6 +7397,10 @@ var Checksummed = S9.transformOrFail(S9.String, AddressTypeSchema, {
|
|
|
7397
7397
|
return checksummed;
|
|
7398
7398
|
})
|
|
7399
7399
|
}).annotations({ identifier: "Address.Checksummed" });
|
|
7400
|
+
var EXAMPLE_ADDRESSES = [
|
|
7401
|
+
Address("0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"),
|
|
7402
|
+
Address("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48")
|
|
7403
|
+
];
|
|
7400
7404
|
var Hex11 = S9.transformOrFail(
|
|
7401
7405
|
S9.String,
|
|
7402
7406
|
AddressTypeSchema,
|
|
@@ -7415,7 +7419,13 @@ var Hex11 = S9.transformOrFail(
|
|
|
7415
7419
|
return ParseResult134.succeed(Address.toHex(addr));
|
|
7416
7420
|
}
|
|
7417
7421
|
}
|
|
7418
|
-
).annotations({
|
|
7422
|
+
).annotations({
|
|
7423
|
+
identifier: "Address.Hex",
|
|
7424
|
+
title: "Ethereum Address",
|
|
7425
|
+
description: "A 20-byte Ethereum address as a hex string. Accepts checksummed, lowercase, or uppercase.",
|
|
7426
|
+
examples: EXAMPLE_ADDRESSES,
|
|
7427
|
+
message: () => "Invalid Ethereum address: expected 40 hex characters with 0x prefix"
|
|
7428
|
+
});
|
|
7419
7429
|
var from8 = (value2) => Effect.try({
|
|
7420
7430
|
try: () => Address.from(value2),
|
|
7421
7431
|
catch: (e) => e
|
|
@@ -8168,7 +8178,7 @@ var BlockSchema = S9.declare(
|
|
|
8168
8178
|
}
|
|
8169
8179
|
return true;
|
|
8170
8180
|
}
|
|
8171
|
-
);
|
|
8181
|
+
).annotations({ identifier: "BlockSchema" });
|
|
8172
8182
|
var BlockTypeSchema = S9.declare(
|
|
8173
8183
|
(u) => {
|
|
8174
8184
|
if (typeof u !== "object" || u === null) return false;
|
|
@@ -13336,6 +13346,8 @@ var PrivateKey_exports = {};
|
|
|
13336
13346
|
__export(PrivateKey_exports, {
|
|
13337
13347
|
Bytes: () => Bytes11,
|
|
13338
13348
|
Hex: () => Hex30,
|
|
13349
|
+
RedactedBytes: () => RedactedBytes,
|
|
13350
|
+
RedactedHex: () => RedactedHex,
|
|
13339
13351
|
isValid: () => isValid6,
|
|
13340
13352
|
random: () => random5
|
|
13341
13353
|
});
|
|
@@ -13368,6 +13380,14 @@ var Bytes11 = S9.transformOrFail(
|
|
|
13368
13380
|
}
|
|
13369
13381
|
}
|
|
13370
13382
|
).annotations({ identifier: "PrivateKey.Bytes" });
|
|
13383
|
+
var RedactedBytes = Bytes11.pipe(S9.Redacted).annotations({
|
|
13384
|
+
identifier: "PrivateKey.RedactedBytes",
|
|
13385
|
+
title: "Private Key (Redacted)",
|
|
13386
|
+
description: "A 32-byte secp256k1 private key wrapped in Redacted to prevent accidental logging"
|
|
13387
|
+
});
|
|
13388
|
+
var EXAMPLE_PRIVATE_KEY = PrivateKey.from(
|
|
13389
|
+
"0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
|
|
13390
|
+
);
|
|
13371
13391
|
var PrivateKeyTypeSchema2 = S9.declare(
|
|
13372
13392
|
(u) => u instanceof Uint8Array && u.length === 32,
|
|
13373
13393
|
{ identifier: "PrivateKey" }
|
|
@@ -13396,7 +13416,20 @@ var Hex30 = S9.transformOrFail(
|
|
|
13396
13416
|
}
|
|
13397
13417
|
}
|
|
13398
13418
|
}
|
|
13399
|
-
).annotations({
|
|
13419
|
+
).annotations({
|
|
13420
|
+
identifier: "PrivateKey.Hex",
|
|
13421
|
+
title: "Private Key",
|
|
13422
|
+
description: "A 32-byte secp256k1 private key as a hex string. NEVER log or expose this value.",
|
|
13423
|
+
examples: [EXAMPLE_PRIVATE_KEY],
|
|
13424
|
+
message: () => "Invalid private key: expected 64 hex characters (32 bytes)"
|
|
13425
|
+
});
|
|
13426
|
+
var RedactedHex = Hex30.pipe(S9.Redacted).annotations({
|
|
13427
|
+
identifier: "PrivateKey.RedactedHex",
|
|
13428
|
+
title: "Private Key (Redacted)",
|
|
13429
|
+
description: "A 32-byte secp256k1 private key wrapped in Redacted to prevent accidental logging. NEVER log or expose the unwrapped value.",
|
|
13430
|
+
examples: [Redacted.make(EXAMPLE_PRIVATE_KEY)],
|
|
13431
|
+
message: () => "Invalid private key: expected 64 hex characters (32 bytes)"
|
|
13432
|
+
});
|
|
13400
13433
|
var isValid6 = (value2) => Effect289.sync(() => {
|
|
13401
13434
|
try {
|
|
13402
13435
|
if (typeof value2 === "string") {
|
|
@@ -16860,7 +16893,7 @@ function createInMemoryStore() {
|
|
|
16860
16893
|
}
|
|
16861
16894
|
};
|
|
16862
16895
|
}
|
|
16863
|
-
var InMemoryBlockchain =
|
|
16896
|
+
var InMemoryBlockchain = Layer69.succeed(
|
|
16864
16897
|
BlockchainService,
|
|
16865
16898
|
(() => {
|
|
16866
16899
|
const store = createInMemoryStore();
|
|
@@ -16893,7 +16926,7 @@ var InMemoryBlockchain = Layer68.succeed(
|
|
|
16893
16926
|
};
|
|
16894
16927
|
})()
|
|
16895
16928
|
);
|
|
16896
|
-
var ForkBlockchain = (options) =>
|
|
16929
|
+
var ForkBlockchain = (options) => Layer69.succeed(
|
|
16897
16930
|
BlockchainService,
|
|
16898
16931
|
(() => {
|
|
16899
16932
|
const store = createInMemoryStore();
|
|
@@ -17114,7 +17147,7 @@ var makeTransactionStream = () => Effect289.gen(function* () {
|
|
|
17114
17147
|
)
|
|
17115
17148
|
};
|
|
17116
17149
|
});
|
|
17117
|
-
var TransactionStream =
|
|
17150
|
+
var TransactionStream = Layer69.effect(TransactionStreamService, makeTransactionStream());
|
|
17118
17151
|
var AbiEncodeError = class extends Data13.TaggedError("AbiEncodeError") {
|
|
17119
17152
|
};
|
|
17120
17153
|
var AbiDecodeError = class extends Data13.TaggedError("AbiDecodeError") {
|
|
@@ -17139,7 +17172,7 @@ function findFunction2(abi, functionName) {
|
|
|
17139
17172
|
}
|
|
17140
17173
|
return fn;
|
|
17141
17174
|
}
|
|
17142
|
-
var DefaultAbiEncoder =
|
|
17175
|
+
var DefaultAbiEncoder = Layer69.succeed(AbiEncoderService, {
|
|
17143
17176
|
encodeFunction: (abi, functionName, args) => Effect289.try({
|
|
17144
17177
|
try: () => {
|
|
17145
17178
|
const encoded = BrandedAbi.encodeFunction(
|
|
@@ -17246,7 +17279,7 @@ var AccountError = class extends Data13.TaggedError("AccountError") {
|
|
|
17246
17279
|
};
|
|
17247
17280
|
var AccountService = class extends Context.Tag("AccountService")() {
|
|
17248
17281
|
};
|
|
17249
|
-
var BrowserTransport =
|
|
17282
|
+
var BrowserTransport = Layer69.succeed(
|
|
17250
17283
|
TransportService,
|
|
17251
17284
|
{
|
|
17252
17285
|
request: (method, params = []) => Effect289.gen(function* () {
|
|
@@ -17349,7 +17382,7 @@ var toTransportError = (error) => {
|
|
|
17349
17382
|
var CustomTransport = (options) => {
|
|
17350
17383
|
const config = options && "request" in options && typeof options.request === "function" ? { provider: options } : options ?? {};
|
|
17351
17384
|
const baseTimeout = Duration10.millis(config.timeout ?? 3e4);
|
|
17352
|
-
return
|
|
17385
|
+
return Layer69.succeed(TransportService, {
|
|
17353
17386
|
request: (method, params = []) => {
|
|
17354
17387
|
return Effect289.gen(function* () {
|
|
17355
17388
|
const timeoutOverride = yield* FiberRef4.get(timeoutRef);
|
|
@@ -17420,7 +17453,7 @@ var sharedRef = Ref5.unsafeMake(0);
|
|
|
17420
17453
|
var sharedGenerator = {
|
|
17421
17454
|
next: () => Ref5.updateAndGet(sharedRef, (n) => n + 1)
|
|
17422
17455
|
};
|
|
17423
|
-
var IdGeneratorLive =
|
|
17456
|
+
var IdGeneratorLive = Layer69.succeed(
|
|
17424
17457
|
IdGenerator,
|
|
17425
17458
|
sharedGenerator
|
|
17426
17459
|
);
|
|
@@ -17843,7 +17876,7 @@ var HttpTransport = (options) => {
|
|
|
17843
17876
|
);
|
|
17844
17877
|
});
|
|
17845
17878
|
if (config.batch) {
|
|
17846
|
-
return
|
|
17879
|
+
return Layer69.scoped(
|
|
17847
17880
|
TransportService,
|
|
17848
17881
|
Effect289.gen(function* () {
|
|
17849
17882
|
const httpClient = yield* HttpClient.HttpClient;
|
|
@@ -17888,7 +17921,7 @@ var HttpTransport = (options) => {
|
|
|
17888
17921
|
})
|
|
17889
17922
|
);
|
|
17890
17923
|
}
|
|
17891
|
-
return
|
|
17924
|
+
return Layer69.effect(
|
|
17892
17925
|
TransportService,
|
|
17893
17926
|
Effect289.gen(function* () {
|
|
17894
17927
|
const httpClient = yield* HttpClient.HttpClient;
|
|
@@ -17969,7 +18002,7 @@ var IpcTransport = (options) => {
|
|
|
17969
18002
|
const reconnectEnabled = config.reconnect !== false;
|
|
17970
18003
|
const reconnectOptions = typeof config.reconnect === "object" ? { ...DEFAULT_RECONNECT_OPTIONS, ...config.reconnect } : DEFAULT_RECONNECT_OPTIONS;
|
|
17971
18004
|
const reconnectSchedule = makeReconnectSchedule(reconnectOptions);
|
|
17972
|
-
return
|
|
18005
|
+
return Layer69.scoped(
|
|
17973
18006
|
TransportService,
|
|
17974
18007
|
Effect289.gen(function* () {
|
|
17975
18008
|
const pendingRef = yield* Ref5.make(/* @__PURE__ */ new Map());
|
|
@@ -18481,8 +18514,8 @@ var makeRateLimiter = (config) => Effect289.gen(function* () {
|
|
|
18481
18514
|
}
|
|
18482
18515
|
return makeRateLimiterShape(config, globalLimiter, methodLimiters);
|
|
18483
18516
|
});
|
|
18484
|
-
var DefaultRateLimiter = (config) =>
|
|
18485
|
-
var NoopRateLimiter =
|
|
18517
|
+
var DefaultRateLimiter = (config) => Layer69.scoped(RateLimiterService, makeRateLimiter(config));
|
|
18518
|
+
var NoopRateLimiter = Layer69.succeed(
|
|
18486
18519
|
RateLimiterService,
|
|
18487
18520
|
{
|
|
18488
18521
|
withRateLimit: (_method, effect17) => effect17,
|
|
@@ -18519,9 +18552,9 @@ var toTransportError3 = (error) => {
|
|
|
18519
18552
|
{ cause: error }
|
|
18520
18553
|
);
|
|
18521
18554
|
};
|
|
18522
|
-
var RateLimitedTransport = (baseTransport) =>
|
|
18555
|
+
var RateLimitedTransport = (baseTransport) => Layer69.flatMap(
|
|
18523
18556
|
baseTransport,
|
|
18524
|
-
(context) =>
|
|
18557
|
+
(context) => Layer69.succeed(
|
|
18525
18558
|
TransportService,
|
|
18526
18559
|
TransportService.of({
|
|
18527
18560
|
request: (method, params = []) => Effect289.gen(function* () {
|
|
@@ -18539,7 +18572,7 @@ var RateLimitedTransport = (baseTransport) => Layer68.flatMap(
|
|
|
18539
18572
|
);
|
|
18540
18573
|
var TestTransport = (responses) => {
|
|
18541
18574
|
const responseMap = responses instanceof Map ? responses : new Map(Object.entries(responses));
|
|
18542
|
-
return
|
|
18575
|
+
return Layer69.succeed(TransportService, {
|
|
18543
18576
|
request: (method, _params = []) => Effect289.gen(function* () {
|
|
18544
18577
|
if (!responseMap.has(method)) {
|
|
18545
18578
|
return yield* Effect289.fail(
|
|
@@ -18582,7 +18615,7 @@ var WebSocketTransport = (options) => {
|
|
|
18582
18615
|
};
|
|
18583
18616
|
const reconnectEnabled = config.reconnect !== false;
|
|
18584
18617
|
const reconnectOpts = typeof config.reconnect === "object" ? { ...DEFAULT_RECONNECT_OPTIONS2, ...config.reconnect } : DEFAULT_RECONNECT_OPTIONS2;
|
|
18585
|
-
return
|
|
18618
|
+
return Layer69.scoped(
|
|
18586
18619
|
TransportService,
|
|
18587
18620
|
Effect289.gen(function* () {
|
|
18588
18621
|
const pendingRef = yield* Ref5.make(/* @__PURE__ */ new Map());
|
|
@@ -19009,7 +19042,7 @@ var toUnsignedAuthorization = (authorization) => {
|
|
|
19009
19042
|
nonce: authorization.nonce
|
|
19010
19043
|
};
|
|
19011
19044
|
};
|
|
19012
|
-
var JsonRpcAccount = (address) =>
|
|
19045
|
+
var JsonRpcAccount = (address) => Layer69.effect(
|
|
19013
19046
|
AccountService,
|
|
19014
19047
|
Effect289.gen(function* () {
|
|
19015
19048
|
const transport = yield* TransportService;
|
|
@@ -19410,7 +19443,7 @@ var createPrivateKeyState = (privateKeyHex) => {
|
|
|
19410
19443
|
const keyBytes = Hex$1.toBytes(privateKeyHex);
|
|
19411
19444
|
return {
|
|
19412
19445
|
bytes: keyBytes,
|
|
19413
|
-
redacted:
|
|
19446
|
+
redacted: Redacted4.make(keyBytes)
|
|
19414
19447
|
};
|
|
19415
19448
|
};
|
|
19416
19449
|
var acquirePrivateKey = (privateKeyHex) => Effect289.acquireRelease(
|
|
@@ -19421,7 +19454,7 @@ var buildLocalAccount = (privateKey, secp256k1, keccak) => Effect289.gen(functio
|
|
|
19421
19454
|
const redactedPrivateKey = privateKey.redacted;
|
|
19422
19455
|
const privateKeyBytes = privateKey.bytes;
|
|
19423
19456
|
const publicKeyBytes = Secp256k1.derivePublicKey(
|
|
19424
|
-
|
|
19457
|
+
Redacted4.value(redactedPrivateKey)
|
|
19425
19458
|
);
|
|
19426
19459
|
const publicKeyHex = Hex$1.fromBytes(
|
|
19427
19460
|
toUncompressedPublicKeyBytes(publicKeyBytes)
|
|
@@ -19450,7 +19483,7 @@ var buildLocalAccount = (privateKey, secp256k1, keccak) => Effect289.gen(functio
|
|
|
19450
19483
|
}
|
|
19451
19484
|
const sig = yield* secp256k1.sign(
|
|
19452
19485
|
hashBytes,
|
|
19453
|
-
|
|
19486
|
+
Redacted4.value(redactedPrivateKey)
|
|
19454
19487
|
);
|
|
19455
19488
|
return toSignatureType(sig);
|
|
19456
19489
|
}).pipe(
|
|
@@ -19475,7 +19508,7 @@ var buildLocalAccount = (privateKey, secp256k1, keccak) => Effect289.gen(functio
|
|
|
19475
19508
|
const hash10 = yield* keccak.hash(prefixedMessage);
|
|
19476
19509
|
const sig = yield* secp256k1.sign(
|
|
19477
19510
|
hash10,
|
|
19478
|
-
|
|
19511
|
+
Redacted4.value(redactedPrivateKey)
|
|
19479
19512
|
);
|
|
19480
19513
|
return toSignatureType(sig);
|
|
19481
19514
|
}).pipe(
|
|
@@ -19608,7 +19641,7 @@ var buildLocalAccount = (privateKey, secp256k1, keccak) => Effect289.gen(functio
|
|
|
19608
19641
|
});
|
|
19609
19642
|
const sig = yield* secp256k1.sign(
|
|
19610
19643
|
hash10,
|
|
19611
|
-
|
|
19644
|
+
Redacted4.value(redactedPrivateKey)
|
|
19612
19645
|
);
|
|
19613
19646
|
return toSignatureType(sig);
|
|
19614
19647
|
}).pipe(
|
|
@@ -19624,7 +19657,7 @@ var buildLocalAccount = (privateKey, secp256k1, keccak) => Effect289.gen(functio
|
|
|
19624
19657
|
const hash10 = yield* encodeTypedDataHash(typedData, keccakHash);
|
|
19625
19658
|
const sig = yield* secp256k1.sign(
|
|
19626
19659
|
hash10,
|
|
19627
|
-
|
|
19660
|
+
Redacted4.value(redactedPrivateKey)
|
|
19628
19661
|
);
|
|
19629
19662
|
return toSignatureType(sig);
|
|
19630
19663
|
}).pipe(
|
|
@@ -19658,7 +19691,7 @@ var buildLocalAccount = (privateKey, secp256k1, keccak) => Effect289.gen(functio
|
|
|
19658
19691
|
const hash10 = yield* keccak.hash(preimage);
|
|
19659
19692
|
const sig = yield* secp256k1.sign(
|
|
19660
19693
|
hash10,
|
|
19661
|
-
|
|
19694
|
+
Redacted4.value(redactedPrivateKey)
|
|
19662
19695
|
);
|
|
19663
19696
|
const signature = toSignatureType(sig);
|
|
19664
19697
|
const [yParity, rBytes, sBytes] = Signature$1.toTuple(signature);
|
|
@@ -19687,7 +19720,7 @@ var createLocalAccount = (privateKeyHex, deps) => Effect289.gen(function* () {
|
|
|
19687
19720
|
const privateKey = createPrivateKeyState(privateKeyHex);
|
|
19688
19721
|
return yield* buildLocalAccount(privateKey, deps.secp256k1, deps.keccak);
|
|
19689
19722
|
});
|
|
19690
|
-
var LocalAccount = (privateKeyHex) =>
|
|
19723
|
+
var LocalAccount = (privateKeyHex) => Layer69.scoped(
|
|
19691
19724
|
AccountService,
|
|
19692
19725
|
Effect289.gen(function* () {
|
|
19693
19726
|
const secp256k1 = yield* Secp256k1Service;
|
|
@@ -19801,7 +19834,7 @@ var makeBlockStream = () => Effect289.gen(function* () {
|
|
|
19801
19834
|
watch: (options) => fromAsyncGeneratorWithCleanup2(() => coreStream.watch(options), cleanup)
|
|
19802
19835
|
};
|
|
19803
19836
|
});
|
|
19804
|
-
var BlockStream =
|
|
19837
|
+
var BlockStream = Layer69.effect(BlockStreamService, makeBlockStream());
|
|
19805
19838
|
var CacheService = class extends Context.Tag("CacheService")() {
|
|
19806
19839
|
};
|
|
19807
19840
|
var MemoryCache = (options = {}) => {
|
|
@@ -19825,7 +19858,7 @@ var MemoryCache = (options = {}) => {
|
|
|
19825
19858
|
}
|
|
19826
19859
|
}
|
|
19827
19860
|
};
|
|
19828
|
-
return
|
|
19861
|
+
return Layer69.succeed(CacheService, {
|
|
19829
19862
|
get: (key) => Effect289.sync(() => {
|
|
19830
19863
|
const entry = cache.get(key);
|
|
19831
19864
|
if (!entry) return void 0;
|
|
@@ -19853,7 +19886,7 @@ var MemoryCache = (options = {}) => {
|
|
|
19853
19886
|
})
|
|
19854
19887
|
});
|
|
19855
19888
|
};
|
|
19856
|
-
var NoopCache =
|
|
19889
|
+
var NoopCache = Layer69.succeed(
|
|
19857
19890
|
CacheService,
|
|
19858
19891
|
{
|
|
19859
19892
|
get: (_key) => Effect289.succeed(void 0),
|
|
@@ -19935,7 +19968,7 @@ var makeRequest8 = (url, sender, callData) => Effect289.gen(function* () {
|
|
|
19935
19968
|
}
|
|
19936
19969
|
return result;
|
|
19937
19970
|
});
|
|
19938
|
-
var DefaultCcip =
|
|
19971
|
+
var DefaultCcip = Layer69.succeed(
|
|
19939
19972
|
CcipService,
|
|
19940
19973
|
CcipService.of({
|
|
19941
19974
|
request: (params) => Effect289.gen(function* () {
|
|
@@ -19967,7 +20000,7 @@ var DefaultCcip = Layer68.succeed(
|
|
|
19967
20000
|
})
|
|
19968
20001
|
})
|
|
19969
20002
|
);
|
|
19970
|
-
var NoopCcip =
|
|
20003
|
+
var NoopCcip = Layer69.succeed(
|
|
19971
20004
|
CcipService,
|
|
19972
20005
|
CcipService.of({
|
|
19973
20006
|
request: (params) => Effect289.fail(
|
|
@@ -20003,10 +20036,10 @@ var arbitrumContracts = {
|
|
|
20003
20036
|
blockCreated: 7654707
|
|
20004
20037
|
}
|
|
20005
20038
|
};
|
|
20006
|
-
var arbitrum =
|
|
20007
|
-
|
|
20008
|
-
|
|
20009
|
-
|
|
20039
|
+
var arbitrum = Layer69.mergeAll(
|
|
20040
|
+
Layer69.succeed(ChainService, arbitrumConfig),
|
|
20041
|
+
Layer69.succeed(BlockExplorerService, arbitrumBlockExplorers),
|
|
20042
|
+
Layer69.succeed(ContractsService, arbitrumContracts)
|
|
20010
20043
|
);
|
|
20011
20044
|
var baseConfig = {
|
|
20012
20045
|
id: 8453,
|
|
@@ -20027,10 +20060,10 @@ var baseContracts = {
|
|
|
20027
20060
|
blockCreated: 5022
|
|
20028
20061
|
}
|
|
20029
20062
|
};
|
|
20030
|
-
var base =
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20063
|
+
var base = Layer69.mergeAll(
|
|
20064
|
+
Layer69.succeed(ChainService, baseConfig),
|
|
20065
|
+
Layer69.succeed(BlockExplorerService, baseBlockExplorers),
|
|
20066
|
+
Layer69.succeed(ContractsService, baseContracts)
|
|
20034
20067
|
);
|
|
20035
20068
|
var mainnetConfig = {
|
|
20036
20069
|
id: 1,
|
|
@@ -20055,10 +20088,10 @@ var mainnetContracts = {
|
|
|
20055
20088
|
blockCreated: 23085558
|
|
20056
20089
|
}
|
|
20057
20090
|
};
|
|
20058
|
-
var mainnet =
|
|
20059
|
-
|
|
20060
|
-
|
|
20061
|
-
|
|
20091
|
+
var mainnet = Layer69.mergeAll(
|
|
20092
|
+
Layer69.succeed(ChainService, mainnetConfig),
|
|
20093
|
+
Layer69.succeed(BlockExplorerService, mainnetBlockExplorers),
|
|
20094
|
+
Layer69.succeed(ContractsService, mainnetContracts)
|
|
20062
20095
|
);
|
|
20063
20096
|
var optimismConfig = {
|
|
20064
20097
|
id: 10,
|
|
@@ -20079,10 +20112,10 @@ var optimismContracts = {
|
|
|
20079
20112
|
blockCreated: 4286263
|
|
20080
20113
|
}
|
|
20081
20114
|
};
|
|
20082
|
-
var optimism =
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
|
|
20115
|
+
var optimism = Layer69.mergeAll(
|
|
20116
|
+
Layer69.succeed(ChainService, optimismConfig),
|
|
20117
|
+
Layer69.succeed(BlockExplorerService, optimismBlockExplorers),
|
|
20118
|
+
Layer69.succeed(ContractsService, optimismContracts)
|
|
20086
20119
|
);
|
|
20087
20120
|
var polygonConfig = {
|
|
20088
20121
|
id: 137,
|
|
@@ -20103,10 +20136,10 @@ var polygonContracts = {
|
|
|
20103
20136
|
blockCreated: 25770160
|
|
20104
20137
|
}
|
|
20105
20138
|
};
|
|
20106
|
-
var polygon =
|
|
20107
|
-
|
|
20108
|
-
|
|
20109
|
-
|
|
20139
|
+
var polygon = Layer69.mergeAll(
|
|
20140
|
+
Layer69.succeed(ChainService, polygonConfig),
|
|
20141
|
+
Layer69.succeed(BlockExplorerService, polygonBlockExplorers),
|
|
20142
|
+
Layer69.succeed(ContractsService, polygonContracts)
|
|
20110
20143
|
);
|
|
20111
20144
|
var sepoliaConfig = {
|
|
20112
20145
|
id: 11155111,
|
|
@@ -20132,10 +20165,10 @@ var sepoliaContracts = {
|
|
|
20132
20165
|
blockCreated: 8928790
|
|
20133
20166
|
}
|
|
20134
20167
|
};
|
|
20135
|
-
var sepolia =
|
|
20136
|
-
|
|
20137
|
-
|
|
20138
|
-
|
|
20168
|
+
var sepolia = Layer69.mergeAll(
|
|
20169
|
+
Layer69.succeed(ChainService, sepoliaConfig),
|
|
20170
|
+
Layer69.succeed(BlockExplorerService, sepoliaBlockExplorers),
|
|
20171
|
+
Layer69.succeed(ContractsService, sepoliaContracts)
|
|
20139
20172
|
);
|
|
20140
20173
|
|
|
20141
20174
|
// src/services/Chain/rpcUrls.ts
|
|
@@ -20169,7 +20202,7 @@ var SignerError = class extends Data13.TaggedError("SignerError") {
|
|
|
20169
20202
|
};
|
|
20170
20203
|
var SignerService = class extends Context.Tag("SignerService")() {
|
|
20171
20204
|
};
|
|
20172
|
-
var Provider =
|
|
20205
|
+
var Provider = Layer69.effect(
|
|
20173
20206
|
ProviderService,
|
|
20174
20207
|
Effect289.gen(function* () {
|
|
20175
20208
|
const transport = yield* TransportService;
|
|
@@ -20178,20 +20211,20 @@ var Provider = Layer68.effect(
|
|
|
20178
20211
|
};
|
|
20179
20212
|
})
|
|
20180
20213
|
);
|
|
20181
|
-
var HttpProvider = (options) => Provider.pipe(
|
|
20182
|
-
var HttpProviderFetch = (options) => HttpProvider(options).pipe(
|
|
20214
|
+
var HttpProvider = (options) => Provider.pipe(Layer69.provide(HttpTransport(options)));
|
|
20215
|
+
var HttpProviderFetch = (options) => HttpProvider(options).pipe(Layer69.provide(FetchHttpClient.layer));
|
|
20183
20216
|
var WebSocketProvider = (options) => {
|
|
20184
20217
|
const config = typeof options === "string" ? { url: options } : options;
|
|
20185
20218
|
return Provider.pipe(
|
|
20186
|
-
|
|
20219
|
+
Layer69.provide(WebSocketTransport({ url: config.url, reconnect: config.reconnect }))
|
|
20187
20220
|
);
|
|
20188
20221
|
};
|
|
20189
|
-
var WebSocketProviderGlobal = (options) => WebSocketProvider(options).pipe(
|
|
20222
|
+
var WebSocketProviderGlobal = (options) => WebSocketProvider(options).pipe(Layer69.provide(WebSocketConstructorGlobal));
|
|
20190
20223
|
var BrowserProvider = Provider.pipe(
|
|
20191
|
-
|
|
20224
|
+
Layer69.provide(BrowserTransport)
|
|
20192
20225
|
);
|
|
20193
|
-
var IpcProvider = (options) => Provider.pipe(
|
|
20194
|
-
var TestProvider = (mocks) => Provider.pipe(
|
|
20226
|
+
var IpcProvider = (options) => Provider.pipe(Layer69.provide(IpcTransport(options)));
|
|
20227
|
+
var TestProvider = (mocks) => Provider.pipe(Layer69.provide(TestTransport(mocks)));
|
|
20195
20228
|
var MULTICALL3_ADDRESS = "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
20196
20229
|
var MULTICALL3_ABI = [
|
|
20197
20230
|
{
|
|
@@ -20554,6 +20587,43 @@ var simulateCalls = (params) => Effect289.gen(function* () {
|
|
|
20554
20587
|
};
|
|
20555
20588
|
});
|
|
20556
20589
|
});
|
|
20590
|
+
var makeProviderPlan = (configs) => {
|
|
20591
|
+
const [first, ...rest] = configs;
|
|
20592
|
+
const makeStep = (config) => {
|
|
20593
|
+
const layer = Provider.pipe(Layer.provide(HttpTransport(config.url)));
|
|
20594
|
+
return {
|
|
20595
|
+
provide: layer,
|
|
20596
|
+
attempts: config.attempts,
|
|
20597
|
+
schedule: config.schedule
|
|
20598
|
+
};
|
|
20599
|
+
};
|
|
20600
|
+
const steps = [
|
|
20601
|
+
makeStep(first),
|
|
20602
|
+
...rest.map(makeStep)
|
|
20603
|
+
];
|
|
20604
|
+
return ExecutionPlan.make(...steps);
|
|
20605
|
+
};
|
|
20606
|
+
var makeResilientProviderPlan = (primaryUrl, fallbackUrl, lastResortUrl) => {
|
|
20607
|
+
const configs = [
|
|
20608
|
+
{
|
|
20609
|
+
url: primaryUrl,
|
|
20610
|
+
attempts: 3,
|
|
20611
|
+
schedule: Schedule.exponential("200 millis").pipe(
|
|
20612
|
+
Schedule.jittered,
|
|
20613
|
+
Schedule.intersect(Schedule.recurs(3))
|
|
20614
|
+
)
|
|
20615
|
+
},
|
|
20616
|
+
{
|
|
20617
|
+
url: fallbackUrl,
|
|
20618
|
+
attempts: 2,
|
|
20619
|
+
schedule: Schedule.spaced("500 millis")
|
|
20620
|
+
}
|
|
20621
|
+
];
|
|
20622
|
+
if (lastResortUrl) {
|
|
20623
|
+
configs.push({ url: lastResortUrl });
|
|
20624
|
+
}
|
|
20625
|
+
return makeProviderPlan(configs);
|
|
20626
|
+
};
|
|
20557
20627
|
var prepareAuthorization = (params) => Effect289.gen(function* () {
|
|
20558
20628
|
const account = yield* AccountService;
|
|
20559
20629
|
const chainId = params.chainId ?? (yield* getChainId());
|
|
@@ -20718,7 +20788,7 @@ var serializeTransaction = (tx, signature, txType) => {
|
|
|
20718
20788
|
const serialized = VoltaireTransaction4.serialize(fullTx);
|
|
20719
20789
|
return Hex$1.fromBytes(serialized);
|
|
20720
20790
|
};
|
|
20721
|
-
var SignerLive =
|
|
20791
|
+
var SignerLive = Layer69.effect(
|
|
20722
20792
|
SignerService,
|
|
20723
20793
|
Effect289.gen(function* () {
|
|
20724
20794
|
const account = yield* AccountService;
|
|
@@ -21035,7 +21105,7 @@ var Signer = {
|
|
|
21035
21105
|
*
|
|
21036
21106
|
* @since 0.0.1
|
|
21037
21107
|
*/
|
|
21038
|
-
fromProvider: (providerLayer, accountLayer) => SignerLive.pipe(
|
|
21108
|
+
fromProvider: (providerLayer, accountLayer) => SignerLive.pipe(Layer69.provide(providerLayer), Layer69.provide(accountLayer)),
|
|
21039
21109
|
/**
|
|
21040
21110
|
* Creates a Signer layer from a private key and provider layer.
|
|
21041
21111
|
*
|
|
@@ -21367,7 +21437,7 @@ var ContractRegistryService = class extends Context.Tag(
|
|
|
21367
21437
|
"ContractRegistryService"
|
|
21368
21438
|
)() {
|
|
21369
21439
|
};
|
|
21370
|
-
var makeContractRegistry = (config) =>
|
|
21440
|
+
var makeContractRegistry = (config) => Layer69.effect(
|
|
21371
21441
|
ContractRegistryService,
|
|
21372
21442
|
Effect289.gen(function* () {
|
|
21373
21443
|
const registry = {};
|
|
@@ -21426,7 +21496,7 @@ var formatCallRequest2 = (tx) => {
|
|
|
21426
21496
|
if (tx.gas !== void 0) formatted.gas = `0x${tx.gas.toString(16)}`;
|
|
21427
21497
|
return formatted;
|
|
21428
21498
|
};
|
|
21429
|
-
var Debug =
|
|
21499
|
+
var Debug = Layer69.effect(
|
|
21430
21500
|
DebugService,
|
|
21431
21501
|
Effect289.gen(function* () {
|
|
21432
21502
|
const transport = yield* TransportService;
|
|
@@ -21478,7 +21548,7 @@ var toQuantity = (value2) => {
|
|
|
21478
21548
|
const asBigInt = typeof value2 === "number" ? BigInt(value2) : value2;
|
|
21479
21549
|
return `0x${asBigInt.toString(16)}`;
|
|
21480
21550
|
};
|
|
21481
|
-
var EngineApi =
|
|
21551
|
+
var EngineApi = Layer69.effect(
|
|
21482
21552
|
EngineApiService,
|
|
21483
21553
|
Effect289.gen(function* () {
|
|
21484
21554
|
const transport = yield* TransportService;
|
|
@@ -21812,7 +21882,7 @@ var EnsService = class extends Context.Tag("EnsService")() {
|
|
|
21812
21882
|
};
|
|
21813
21883
|
|
|
21814
21884
|
// src/services/Ens/DefaultEns.ts
|
|
21815
|
-
var DefaultEns =
|
|
21885
|
+
var DefaultEns = Layer69.effect(
|
|
21816
21886
|
EnsService,
|
|
21817
21887
|
Effect289.gen(function* () {
|
|
21818
21888
|
const provider = yield* ProviderService;
|
|
@@ -21866,7 +21936,7 @@ var multiplyBaseFee = (baseFee, multiplierNumerator) => {
|
|
|
21866
21936
|
const product2 = baseFee * multiplierNumerator;
|
|
21867
21937
|
return (product2 + MULTIPLIER_PRECISION - 1n) / MULTIPLIER_PRECISION;
|
|
21868
21938
|
};
|
|
21869
|
-
var makeDefaultFeeEstimator = (baseFeeMultiplier = DEFAULT_BASE_FEE_MULTIPLIER) =>
|
|
21939
|
+
var makeDefaultFeeEstimator = (baseFeeMultiplier = DEFAULT_BASE_FEE_MULTIPLIER) => Layer69.effect(
|
|
21870
21940
|
FeeEstimatorService,
|
|
21871
21941
|
Effect289.gen(function* () {
|
|
21872
21942
|
const multiplierNumerator = BigInt(
|
|
@@ -21962,7 +22032,7 @@ var FormatterService = class extends Context.Tag("FormatterService")() {
|
|
|
21962
22032
|
};
|
|
21963
22033
|
|
|
21964
22034
|
// src/services/Formatter/chains/arbitrum.ts
|
|
21965
|
-
var ArbitrumFormatter =
|
|
22035
|
+
var ArbitrumFormatter = Layer69.succeed(FormatterService, {
|
|
21966
22036
|
formatBlock: (rpc) => Effect289.succeed(rpc),
|
|
21967
22037
|
formatTransaction: (rpc) => {
|
|
21968
22038
|
const tx = rpc;
|
|
@@ -21981,7 +22051,7 @@ var ArbitrumFormatter = Layer68.succeed(FormatterService, {
|
|
|
21981
22051
|
},
|
|
21982
22052
|
formatRequest: (tx) => Effect289.succeed(tx)
|
|
21983
22053
|
});
|
|
21984
|
-
var OptimismFormatter =
|
|
22054
|
+
var OptimismFormatter = Layer69.succeed(FormatterService, {
|
|
21985
22055
|
formatBlock: (rpc) => Effect289.succeed(rpc),
|
|
21986
22056
|
formatTransaction: (rpc) => {
|
|
21987
22057
|
const tx = rpc;
|
|
@@ -22001,7 +22071,7 @@ var OptimismFormatter = Layer68.succeed(FormatterService, {
|
|
|
22001
22071
|
},
|
|
22002
22072
|
formatRequest: (tx) => Effect289.succeed(tx)
|
|
22003
22073
|
});
|
|
22004
|
-
var ZkSyncFormatter =
|
|
22074
|
+
var ZkSyncFormatter = Layer69.succeed(FormatterService, {
|
|
22005
22075
|
formatBlock: (rpc) => {
|
|
22006
22076
|
const block = rpc;
|
|
22007
22077
|
return Effect289.succeed({
|
|
@@ -22020,7 +22090,7 @@ var ZkSyncFormatter = Layer68.succeed(FormatterService, {
|
|
|
22020
22090
|
formatReceipt: (rpc) => Effect289.succeed(rpc),
|
|
22021
22091
|
formatRequest: (tx) => Effect289.succeed(tx)
|
|
22022
22092
|
});
|
|
22023
|
-
var DefaultFormatter =
|
|
22093
|
+
var DefaultFormatter = Layer69.succeed(
|
|
22024
22094
|
FormatterService,
|
|
22025
22095
|
{
|
|
22026
22096
|
formatBlock: (rpc) => Effect289.succeed(rpc),
|
|
@@ -22038,7 +22108,7 @@ var KzgService = class extends Context.Tag("KzgService")() {
|
|
|
22038
22108
|
var ensureTrustedSetup = Effect289.sync(() => {
|
|
22039
22109
|
loadTrustedSetup();
|
|
22040
22110
|
});
|
|
22041
|
-
var DefaultKzg =
|
|
22111
|
+
var DefaultKzg = Layer69.sync(KzgService, () => ({
|
|
22042
22112
|
blobToCommitment: (blob) => Effect289.gen(function* () {
|
|
22043
22113
|
yield* ensureTrustedSetup;
|
|
22044
22114
|
return yield* Effect289.try({
|
|
@@ -22073,7 +22143,7 @@ var DefaultKzg = Layer68.sync(KzgService, () => ({
|
|
|
22073
22143
|
});
|
|
22074
22144
|
})
|
|
22075
22145
|
}));
|
|
22076
|
-
var NoopKzg =
|
|
22146
|
+
var NoopKzg = Layer69.succeed(KzgService, {
|
|
22077
22147
|
blobToCommitment: (_blob) => Effect289.fail(
|
|
22078
22148
|
new KzgError({
|
|
22079
22149
|
operation: "blobToCommitment",
|
|
@@ -22300,7 +22370,7 @@ var NonceManagerService = class extends Context.Tag("NonceManagerService")() {
|
|
|
22300
22370
|
};
|
|
22301
22371
|
|
|
22302
22372
|
// src/services/NonceManager/DefaultNonceManager.ts
|
|
22303
|
-
var DefaultNonceManager =
|
|
22373
|
+
var DefaultNonceManager = Layer69.effect(
|
|
22304
22374
|
NonceManagerService,
|
|
22305
22375
|
Effect289.gen(function* () {
|
|
22306
22376
|
const deltaRef = yield* SynchronizedRef.make(/* @__PURE__ */ new Map());
|
|
@@ -22366,7 +22436,7 @@ var TransactionSerializerService = class extends Context.Tag(
|
|
|
22366
22436
|
};
|
|
22367
22437
|
|
|
22368
22438
|
// src/services/TransactionSerializer/DefaultTransactionSerializer.ts
|
|
22369
|
-
var TransactionSerializerLive =
|
|
22439
|
+
var TransactionSerializerLive = Layer69.succeed(TransactionSerializerService, {
|
|
22370
22440
|
serialize: (tx) => Effect289.try({
|
|
22371
22441
|
try: () => VoltaireTransaction4.serialize(tx),
|
|
22372
22442
|
catch: (error) => new SerializeError({
|
|
@@ -22403,106 +22473,106 @@ var DefaultTransactionSerializer = {
|
|
|
22403
22473
|
|
|
22404
22474
|
// src/services/presets/index.ts
|
|
22405
22475
|
var MainnetProvider = (url) => Provider.pipe(
|
|
22406
|
-
|
|
22407
|
-
|
|
22476
|
+
Layer69.provide(HttpTransport(url)),
|
|
22477
|
+
Layer69.provide(FetchHttpClient.layer)
|
|
22408
22478
|
);
|
|
22409
22479
|
var createProvider = (url) => Provider.pipe(
|
|
22410
|
-
|
|
22411
|
-
|
|
22480
|
+
Layer69.provide(HttpTransport(url)),
|
|
22481
|
+
Layer69.provide(FetchHttpClient.layer)
|
|
22412
22482
|
);
|
|
22413
22483
|
var OptimismProvider = (url) => {
|
|
22414
22484
|
const transport = HttpTransport(url).pipe(
|
|
22415
|
-
|
|
22485
|
+
Layer69.provide(FetchHttpClient.layer)
|
|
22416
22486
|
);
|
|
22417
|
-
const providerLayer = Provider.pipe(
|
|
22418
|
-
return
|
|
22487
|
+
const providerLayer = Provider.pipe(Layer69.provide(transport));
|
|
22488
|
+
return Layer69.mergeAll(
|
|
22419
22489
|
providerLayer,
|
|
22420
22490
|
DefaultFormatter,
|
|
22421
22491
|
DefaultTransactionSerializer.Live,
|
|
22422
|
-
DefaultFeeEstimator.pipe(
|
|
22423
|
-
DefaultNonceManager.pipe(
|
|
22492
|
+
DefaultFeeEstimator.pipe(Layer69.provide(providerLayer)),
|
|
22493
|
+
DefaultNonceManager.pipe(Layer69.provide(providerLayer)),
|
|
22424
22494
|
MemoryCache(),
|
|
22425
22495
|
optimism
|
|
22426
22496
|
);
|
|
22427
22497
|
};
|
|
22428
22498
|
var ArbitrumProvider = (url) => {
|
|
22429
22499
|
const transport = HttpTransport(url).pipe(
|
|
22430
|
-
|
|
22500
|
+
Layer69.provide(FetchHttpClient.layer)
|
|
22431
22501
|
);
|
|
22432
|
-
const providerLayer = Provider.pipe(
|
|
22433
|
-
return
|
|
22502
|
+
const providerLayer = Provider.pipe(Layer69.provide(transport));
|
|
22503
|
+
return Layer69.mergeAll(
|
|
22434
22504
|
providerLayer,
|
|
22435
22505
|
DefaultFormatter,
|
|
22436
22506
|
DefaultTransactionSerializer.Live,
|
|
22437
|
-
DefaultFeeEstimator.pipe(
|
|
22438
|
-
DefaultNonceManager.pipe(
|
|
22507
|
+
DefaultFeeEstimator.pipe(Layer69.provide(providerLayer)),
|
|
22508
|
+
DefaultNonceManager.pipe(Layer69.provide(providerLayer)),
|
|
22439
22509
|
MemoryCache(),
|
|
22440
22510
|
arbitrum
|
|
22441
22511
|
);
|
|
22442
22512
|
};
|
|
22443
22513
|
var BaseProvider = (url) => {
|
|
22444
22514
|
const transport = HttpTransport(url).pipe(
|
|
22445
|
-
|
|
22515
|
+
Layer69.provide(FetchHttpClient.layer)
|
|
22446
22516
|
);
|
|
22447
|
-
const providerLayer = Provider.pipe(
|
|
22448
|
-
return
|
|
22517
|
+
const providerLayer = Provider.pipe(Layer69.provide(transport));
|
|
22518
|
+
return Layer69.mergeAll(
|
|
22449
22519
|
providerLayer,
|
|
22450
22520
|
DefaultFormatter,
|
|
22451
22521
|
DefaultTransactionSerializer.Live,
|
|
22452
|
-
DefaultFeeEstimator.pipe(
|
|
22453
|
-
DefaultNonceManager.pipe(
|
|
22522
|
+
DefaultFeeEstimator.pipe(Layer69.provide(providerLayer)),
|
|
22523
|
+
DefaultNonceManager.pipe(Layer69.provide(providerLayer)),
|
|
22454
22524
|
MemoryCache(),
|
|
22455
22525
|
base
|
|
22456
22526
|
);
|
|
22457
22527
|
};
|
|
22458
22528
|
var SepoliaProvider = (url) => {
|
|
22459
22529
|
const transport = HttpTransport(url).pipe(
|
|
22460
|
-
|
|
22530
|
+
Layer69.provide(FetchHttpClient.layer)
|
|
22461
22531
|
);
|
|
22462
|
-
const providerLayer = Provider.pipe(
|
|
22463
|
-
return
|
|
22532
|
+
const providerLayer = Provider.pipe(Layer69.provide(transport));
|
|
22533
|
+
return Layer69.mergeAll(
|
|
22464
22534
|
providerLayer,
|
|
22465
22535
|
DefaultFormatter,
|
|
22466
22536
|
DefaultTransactionSerializer.Live,
|
|
22467
|
-
DefaultFeeEstimator.pipe(
|
|
22468
|
-
DefaultNonceManager.pipe(
|
|
22537
|
+
DefaultFeeEstimator.pipe(Layer69.provide(providerLayer)),
|
|
22538
|
+
DefaultNonceManager.pipe(Layer69.provide(providerLayer)),
|
|
22469
22539
|
MemoryCache(),
|
|
22470
22540
|
sepolia
|
|
22471
22541
|
);
|
|
22472
22542
|
};
|
|
22473
22543
|
var PolygonProvider = (url) => {
|
|
22474
22544
|
const transport = HttpTransport(url).pipe(
|
|
22475
|
-
|
|
22545
|
+
Layer69.provide(FetchHttpClient.layer)
|
|
22476
22546
|
);
|
|
22477
|
-
const providerLayer = Provider.pipe(
|
|
22478
|
-
return
|
|
22547
|
+
const providerLayer = Provider.pipe(Layer69.provide(transport));
|
|
22548
|
+
return Layer69.mergeAll(
|
|
22479
22549
|
providerLayer,
|
|
22480
22550
|
DefaultFormatter,
|
|
22481
22551
|
DefaultTransactionSerializer.Live,
|
|
22482
|
-
DefaultFeeEstimator.pipe(
|
|
22483
|
-
DefaultNonceManager.pipe(
|
|
22552
|
+
DefaultFeeEstimator.pipe(Layer69.provide(providerLayer)),
|
|
22553
|
+
DefaultNonceManager.pipe(Layer69.provide(providerLayer)),
|
|
22484
22554
|
MemoryCache(),
|
|
22485
22555
|
polygon
|
|
22486
22556
|
);
|
|
22487
22557
|
};
|
|
22488
22558
|
var MainnetFullProvider = (url) => {
|
|
22489
22559
|
const transport = HttpTransport(url).pipe(
|
|
22490
|
-
|
|
22560
|
+
Layer69.provide(FetchHttpClient.layer)
|
|
22491
22561
|
);
|
|
22492
|
-
const providerLayer = Provider.pipe(
|
|
22493
|
-
return
|
|
22562
|
+
const providerLayer = Provider.pipe(Layer69.provide(transport));
|
|
22563
|
+
return Layer69.mergeAll(
|
|
22494
22564
|
providerLayer,
|
|
22495
22565
|
DefaultFormatter,
|
|
22496
22566
|
DefaultTransactionSerializer.Live,
|
|
22497
|
-
DefaultFeeEstimator.pipe(
|
|
22498
|
-
DefaultNonceManager.pipe(
|
|
22567
|
+
DefaultFeeEstimator.pipe(Layer69.provide(providerLayer)),
|
|
22568
|
+
DefaultNonceManager.pipe(Layer69.provide(providerLayer)),
|
|
22499
22569
|
MemoryCache(),
|
|
22500
22570
|
mainnet
|
|
22501
22571
|
);
|
|
22502
22572
|
};
|
|
22503
22573
|
var RawProviderService = class extends Context.Tag("RawProviderService")() {
|
|
22504
22574
|
};
|
|
22505
|
-
var RawProviderTransport =
|
|
22575
|
+
var RawProviderTransport = Layer69.effect(
|
|
22506
22576
|
RawProviderService,
|
|
22507
22577
|
Effect289.gen(function* () {
|
|
22508
22578
|
const transport = yield* TransportService;
|
|
@@ -22738,7 +22808,7 @@ var makeRpcResolver = (transport) => RequestResolver.makeBatched(
|
|
|
22738
22808
|
);
|
|
22739
22809
|
})
|
|
22740
22810
|
);
|
|
22741
|
-
var RpcBatch =
|
|
22811
|
+
var RpcBatch = Layer69.effect(
|
|
22742
22812
|
RpcBatchService,
|
|
22743
22813
|
Effect289.gen(function* () {
|
|
22744
22814
|
const transport = yield* TransportService;
|
|
@@ -23557,7 +23627,7 @@ var normalizePath = (HDWallet3, path) => {
|
|
|
23557
23627
|
});
|
|
23558
23628
|
return { pathString, indices };
|
|
23559
23629
|
};
|
|
23560
|
-
var HDWalletLive =
|
|
23630
|
+
var HDWalletLive = Layer69.effect(
|
|
23561
23631
|
HDWalletService,
|
|
23562
23632
|
Effect289.gen(function* () {
|
|
23563
23633
|
return {
|
|
@@ -23639,7 +23709,7 @@ var HDWalletLive = Layer68.effect(
|
|
|
23639
23709
|
);
|
|
23640
23710
|
|
|
23641
23711
|
// src/native/CryptoLiveNative.ts
|
|
23642
|
-
var CryptoLiveNative =
|
|
23712
|
+
var CryptoLiveNative = Layer69.mergeAll(CryptoLive, HDWalletLive);
|
|
23643
23713
|
var HDWalletDerivationError = class extends Error {
|
|
23644
23714
|
_tag = "HDWalletDerivationError";
|
|
23645
23715
|
constructor(message, options) {
|
|
@@ -23684,7 +23754,7 @@ var createHdAccount = (hdKey, deps, HDWallet3) => Effect289.gen(function* () {
|
|
|
23684
23754
|
})
|
|
23685
23755
|
};
|
|
23686
23756
|
});
|
|
23687
|
-
var MnemonicAccount = (mnemonic, options) =>
|
|
23757
|
+
var MnemonicAccount = (mnemonic, options) => Layer69.scoped(
|
|
23688
23758
|
AccountService,
|
|
23689
23759
|
Effect289.gen(function* () {
|
|
23690
23760
|
const secp256k1 = yield* Secp256k1Service;
|
|
@@ -23719,4 +23789,4 @@ var MnemonicAccount = (mnemonic, options) => Layer68.scoped(
|
|
|
23719
23789
|
})
|
|
23720
23790
|
);
|
|
23721
23791
|
|
|
23722
|
-
export { Abi_exports as Abi, AbiDecodeError, AbiEncodeError, AbiEncoderService, AccessList_exports as AccessList, AccountError, AccountService, AccountState_exports as AccountState, Address_exports as Address, AesGcm_exports as AesGcm, ArbitrumFormatter, ArbitrumProvider, auth_exports as Auth, Authorization_exports as Authorization, Balance_exports as Balance, BalanceResolver, Base64_exports as Base64, BaseFeePerGas_exports as BaseFeePerGas, BaseProvider, BeaconBlockRoot_exports as BeaconBlockRoot, BinaryTree_exports as BinaryTree, Bip39_exports as Bip39, Blake2_exports as Blake2, Blob_exports as Blob, Block_exports as Block, BlockBody_exports as BlockBody, BlockExplorerService, BlockFilter_exports as BlockFilter, BlockHash_exports as BlockHash, BlockHeader_exports as BlockHeader, BlockNumber_exports as BlockNumber, BlockStream, BlockStreamError, BlockStreamService, block_exports as BlockUtils, BlockchainError, BlockchainService, BloomFilter_exports as BloomFilter, Bls12381_exports as Bls12381, Bn254_exports as Bn254, BrowserProvider, BrowserTransport, BuilderBid_exports as BuilderBid, Bundle_exports as Bundle, BundleHash_exports as BundleHash, Bundler_exports as Bundler, Bytecode_exports as Bytecode, Bytes_exports as Bytes, Bytes32_exports as Bytes32, CacheService, CallData_exports as CallData, CallTrace_exports as CallTrace, CcipError, CcipService, ChaCha20Poly1305_exports as ChaCha20Poly1305, Chain_exports as Chain, ChainHead_exports as ChainHead, ChainId_exports as ChainId, ChainService, CompilerVersion_exports as CompilerVersion, Contract, ContractCallError, ContractCode_exports as ContractCode, ContractError, ContractEventError, ContractRegistryService, ContractResult_exports as ContractResult, ContractSignature_exports as ContractSignature, ContractWriteError, ContractsService, CryptoLive, CryptoLiveNative, CryptoTest, CustomTransport, CustomTransportFromFn, Debug, DebugService, DecodedData_exports as DecodedData, DefaultAbiEncoder, DefaultCcip, DefaultEns, DefaultFeeEstimator, DefaultFormatter, DefaultKzg, DefaultNonceManager, DefaultRateLimiter, DefaultTransactionSerializer, Denomination_exports as Denomination, DeserializeError, Domain_exports as Domain, DomainSeparator_exports as DomainSeparator, EIP712_exports as EIP712, ENS_REGISTRY_ADDRESS, ENS_UNIVERSAL_RESOLVER_ADDRESS, ERC1155_exports as ERC1155, ERC165_exports as ERC165, ERC20_exports as ERC20, ERC6492_exports as ERC6492, ERC721_exports as ERC721, Ed25519_exports as Ed25519, EffectiveGasPrice_exports as EffectiveGasPrice, EncodedData_exports as EncodedData, EngineApi, EngineApiService, Ens_exports as Ens, EnsError, EnsService, EntryPoint_exports as EntryPoint, Epoch_exports as Epoch, ErrorSignature_exports as ErrorSignature, EthBlockNumber, EthCall, EthChainId, EthEstimateGas, EthGasPrice, EthGetBalance, EthGetBlockByHash, EthGetBlockByNumber, EthGetCode, EthGetLogs, EthGetStorageAt, EthGetTransactionByHash, EthGetTransactionCount, EthGetTransactionReceipt, EventLog_exports as EventLog, EventSignature_exports as EventSignature, EventStream, EventStreamError, EventStreamService, FeeEstimationError, FeeEstimatorService, FeeMarket_exports as FeeMarket, FeeOracle_exports as FeeOracle, FilterId_exports as FilterId, ForkBlockchain, ForkId_exports as ForkId, FormatError, FormatterService, ForwardRequest_exports as ForwardRequest, FunctionSignature_exports as FunctionSignature, Gas_exports as Gas, GasConstants_exports as GasConstants, GasCosts_exports as GasCosts, GasEstimate_exports as GasEstimate, GasPrice_exports as GasPrice, GasRefund_exports as GasRefund, GasUsed_exports as GasUsed, GenericRpcRequest, GetBalance, HDWallet_exports as HDWallet, HDWalletDerivationError, HDWalletLive, HMAC_exports as HMAC, Hardfork_exports as Hardfork, Hash_exports as Hash, Hex_exports as Hex, HttpProvider, HttpProviderFetch, HttpTransport, IdGenerator, IdGeneratorLive, InMemoryBlockchain, InitCode_exports as InitCode, Int128_exports as Int128, Int16_exports as Int16, Int256_exports as Int256, Int32_exports as Int32, Int64_exports as Int64, Int8_exports as Int8, IpcProvider, jsonrpc_exports as JsonRpc, JsonRpcAccount, KZG_exports as KZG, Keccak256_exports as Keccak256, Keystore_exports as Keystore, KzgError, KzgService, License_exports as License, LocalAccount, LogFilter_exports as LogFilter, LogIndex_exports as LogIndex, MULTICALL3_ADDRESS2 as MULTICALL3_ADDRESS, MainnetFullProvider, MainnetProvider, MaxFeePerGas_exports as MaxFeePerGas, MaxPriorityFeePerGas_exports as MaxPriorityFeePerGas, MemoryCache, MemoryDump_exports as MemoryDump, MerkleTree_exports as MerkleTree, Metadata_exports as Metadata, MnemonicAccount, ModExp_exports as ModExp, MultiTokenId_exports as MultiTokenId, MulticallError, NetworkId_exports as NetworkId, NodeInfo_exports as NodeInfo, Nonce_exports as Nonce, NonceError, NonceManagerService, NoopCache, NoopCcip, NoopKzg, NoopRateLimiter, OpStep_exports as OpStep, Opcode_exports as Opcode, OptimismFormatter, OptimismProvider, P256_exports as P256, PackedUserOperation_exports as PackedUserOperation, Paymaster_exports as Paymaster, PeerId_exports as PeerId, PeerInfo_exports as PeerInfo, PendingTransactionFilter_exports as PendingTransactionFilter, Permit_exports as Permit, PolygonProvider, PrivateKey_exports as PrivateKey, Proof_exports as Proof, ProtocolVersion_exports as ProtocolVersion, Provider, ProviderConfirmationsPendingError, ProviderNotFoundError, ProviderReceiptPendingError, ProviderResponseError, ProviderService, ProviderStreamError, ProviderTimeoutError, ProviderValidationError, Proxy_exports as Proxy, PublicKey_exports as PublicKey, RateLimitError, RateLimitedTransport, RateLimiterService, RawProviderService, RawProviderTransport, Receipt_exports as Receipt, RelayData_exports as RelayData, ReturnData_exports as ReturnData, RevertReason_exports as RevertReason, Ripemd160_exports as Ripemd160, Rlp_exports as Rlp, RpcBatch, RpcBatchService, RuntimeCode_exports as RuntimeCode, SHA256_exports as SHA256, Secp256k1_exports as Secp256k1, Selector_exports as Selector, SepoliaProvider, SerializeError, Signature_exports as Signature, SignedData_exports as SignedData, Signer, SignerError, SignerService, Siwe_exports as Siwe, Slot_exports as Slot, SourceMap_exports as SourceMap, Ssz_exports as Ssz, StandardsError, State_exports as State, StateDiff_exports as StateDiff, StateProof_exports as StateProof, StateRoot_exports as StateRoot, StealthAddress_exports as StealthAddress, Storage_exports as Storage, StorageDiff_exports as StorageDiff, StorageProof_exports as StorageProof, StorageValue_exports as StorageValue, stream_exports as Stream, StructLog_exports as StructLog, SyncStatus_exports as SyncStatus, TestProvider, TestTransport, TokenBalance_exports as TokenBalance, TokenId_exports as TokenId, TopicFilter_exports as TopicFilter, TraceConfig_exports as TraceConfig, TraceResult_exports as TraceResult, Transaction_exports as Transaction, TransactionHash_exports as TransactionHash, TransactionIndex_exports as TransactionIndex, TransactionSerializerService, TransactionStatus_exports as TransactionStatus, TransactionStream, TransactionStreamError, TransactionStreamService, TransactionUrl_exports as TransactionUrl, TransportError, TransportService, TypedData_exports as TypedData, U256_exports as U256, Uint_exports as Uint, Uint128_exports as Uint128, Uint16_exports as Uint16, Uint32_exports as Uint32, Uint64_exports as Uint64, Uint8_exports as Uint8, Uncle_exports as Uncle, Unit_exports as Unit, UserOperation_exports as UserOperation, ValidatorIndex_exports as ValidatorIndex, WebSocketProvider, WebSocketProviderGlobal, WebSocketTransport, Withdrawal_exports as Withdrawal, WithdrawalIndex_exports as WithdrawalIndex, X25519_exports as X25519, ZkSyncFormatter, aggregate3, arbitrum, arbitrumBlockExplorers, arbitrumConfig, arbitrumContracts, backfillBlocks, base, baseBlockExplorers, baseConfig, baseContracts, bytesToHex, cacheEnabledRef, call, createAccessList, createBlockFilter, createEventFilter, createPendingTransactionFilter, createProvider, estimateGas, formatAccessList, formatCallRequest, formatLogFilterParams, formatTransactionRequest, getAccounts, getBalance, getBlobBaseFee, getBlock, getBlockNumber, getBlockReceipts, getBlockTransactionCount, getChainId, getCode, getCoinbase, getEnsAddress, getEnsAvatar, getEnsName, getEnsResolver, getEnsText, getFeeHistory, getFilterChanges, getFilterLogs, getGasPrice, getHashrate, getLogs, getMaxPriorityFeePerGas, getMining, getProof, getProtocolVersion, getStorageAt, getSyncing, getTransaction, getTransactionByBlockHashAndIndex, getTransactionByBlockNumberAndIndex, getTransactionConfirmations, getTransactionCount, getTransactionReceipt, getUncle, getUncleCount, mainnet, mainnetBlockExplorers, mainnetConfig, mainnetContracts, makeBlockStream, makeContractRegistry, makeEventStream, makeFeeEstimator, makeIdGenerator, makeRateLimiter, makeRpcResolver, makeTransactionStream, multicall, netVersion, nextId2 as nextId, optimism, optimismBlockExplorers, optimismConfig, optimismContracts, parseHexToBigInt, polygon, polygonBlockExplorers, polygonConfig, polygonContracts, readContract, retryScheduleRef, rpcUrlsByChainId, sendRawTransaction, sendTransaction, sepolia, sepoliaBlockExplorers, sepoliaConfig, sepoliaContracts, sign10 as sign, signTransaction, simulateCalls, simulateContract, simulateV1, simulateV2, subscribe, timeoutRef, toAddressHex, toHashHex, tracingRef, uninstallFilter, unsubscribe, waitForTransactionReceipt, watchBlocks, withRetrySchedule, withTimeout, withTracing, withoutCache };
|
|
23792
|
+
export { Abi_exports as Abi, AbiDecodeError, AbiEncodeError, AbiEncoderService, AccessList_exports as AccessList, AccountError, AccountService, AccountState_exports as AccountState, Address_exports as Address, AesGcm_exports as AesGcm, ArbitrumFormatter, ArbitrumProvider, auth_exports as Auth, Authorization_exports as Authorization, Balance_exports as Balance, BalanceResolver, Base64_exports as Base64, BaseFeePerGas_exports as BaseFeePerGas, BaseProvider, BeaconBlockRoot_exports as BeaconBlockRoot, BinaryTree_exports as BinaryTree, Bip39_exports as Bip39, Blake2_exports as Blake2, Blob_exports as Blob, Block_exports as Block, BlockBody_exports as BlockBody, BlockExplorerService, BlockFilter_exports as BlockFilter, BlockHash_exports as BlockHash, BlockHeader_exports as BlockHeader, BlockNumber_exports as BlockNumber, BlockStream, BlockStreamError, BlockStreamService, block_exports as BlockUtils, BlockchainError, BlockchainService, BloomFilter_exports as BloomFilter, Bls12381_exports as Bls12381, Bn254_exports as Bn254, BrowserProvider, BrowserTransport, BuilderBid_exports as BuilderBid, Bundle_exports as Bundle, BundleHash_exports as BundleHash, Bundler_exports as Bundler, Bytecode_exports as Bytecode, Bytes_exports as Bytes, Bytes32_exports as Bytes32, CacheService, CallData_exports as CallData, CallTrace_exports as CallTrace, CcipError, CcipService, ChaCha20Poly1305_exports as ChaCha20Poly1305, Chain_exports as Chain, ChainHead_exports as ChainHead, ChainId_exports as ChainId, ChainService, CompilerVersion_exports as CompilerVersion, Contract, ContractCallError, ContractCode_exports as ContractCode, ContractError, ContractEventError, ContractRegistryService, ContractResult_exports as ContractResult, ContractSignature_exports as ContractSignature, ContractWriteError, ContractsService, CryptoLive, CryptoLiveNative, CryptoTest, CustomTransport, CustomTransportFromFn, Debug, DebugService, DecodedData_exports as DecodedData, DefaultAbiEncoder, DefaultCcip, DefaultEns, DefaultFeeEstimator, DefaultFormatter, DefaultKzg, DefaultNonceManager, DefaultRateLimiter, DefaultTransactionSerializer, Denomination_exports as Denomination, DeserializeError, Domain_exports as Domain, DomainSeparator_exports as DomainSeparator, EIP712_exports as EIP712, ENS_REGISTRY_ADDRESS, ENS_UNIVERSAL_RESOLVER_ADDRESS, ERC1155_exports as ERC1155, ERC165_exports as ERC165, ERC20_exports as ERC20, ERC6492_exports as ERC6492, ERC721_exports as ERC721, Ed25519_exports as Ed25519, EffectiveGasPrice_exports as EffectiveGasPrice, EncodedData_exports as EncodedData, EngineApi, EngineApiService, Ens_exports as Ens, EnsError, EnsService, EntryPoint_exports as EntryPoint, Epoch_exports as Epoch, ErrorSignature_exports as ErrorSignature, EthBlockNumber, EthCall, EthChainId, EthEstimateGas, EthGasPrice, EthGetBalance, EthGetBlockByHash, EthGetBlockByNumber, EthGetCode, EthGetLogs, EthGetStorageAt, EthGetTransactionByHash, EthGetTransactionCount, EthGetTransactionReceipt, EventLog_exports as EventLog, EventSignature_exports as EventSignature, EventStream, EventStreamError, EventStreamService, FeeEstimationError, FeeEstimatorService, FeeMarket_exports as FeeMarket, FeeOracle_exports as FeeOracle, FilterId_exports as FilterId, ForkBlockchain, ForkId_exports as ForkId, FormatError, FormatterService, ForwardRequest_exports as ForwardRequest, FunctionSignature_exports as FunctionSignature, Gas_exports as Gas, GasConstants_exports as GasConstants, GasCosts_exports as GasCosts, GasEstimate_exports as GasEstimate, GasPrice_exports as GasPrice, GasRefund_exports as GasRefund, GasUsed_exports as GasUsed, GenericRpcRequest, GetBalance, HDWallet_exports as HDWallet, HDWalletDerivationError, HDWalletLive, HMAC_exports as HMAC, Hardfork_exports as Hardfork, Hash_exports as Hash, Hex_exports as Hex, HttpProvider, HttpProviderFetch, HttpTransport, IdGenerator, IdGeneratorLive, InMemoryBlockchain, InitCode_exports as InitCode, Int128_exports as Int128, Int16_exports as Int16, Int256_exports as Int256, Int32_exports as Int32, Int64_exports as Int64, Int8_exports as Int8, IpcProvider, jsonrpc_exports as JsonRpc, JsonRpcAccount, KZG_exports as KZG, Keccak256_exports as Keccak256, Keystore_exports as Keystore, KzgError, KzgService, License_exports as License, LocalAccount, LogFilter_exports as LogFilter, LogIndex_exports as LogIndex, MULTICALL3_ADDRESS2 as MULTICALL3_ADDRESS, MainnetFullProvider, MainnetProvider, MaxFeePerGas_exports as MaxFeePerGas, MaxPriorityFeePerGas_exports as MaxPriorityFeePerGas, MemoryCache, MemoryDump_exports as MemoryDump, MerkleTree_exports as MerkleTree, Metadata_exports as Metadata, MnemonicAccount, ModExp_exports as ModExp, MultiTokenId_exports as MultiTokenId, MulticallError, NetworkId_exports as NetworkId, NodeInfo_exports as NodeInfo, Nonce_exports as Nonce, NonceError, NonceManagerService, NoopCache, NoopCcip, NoopKzg, NoopRateLimiter, OpStep_exports as OpStep, Opcode_exports as Opcode, OptimismFormatter, OptimismProvider, P256_exports as P256, PackedUserOperation_exports as PackedUserOperation, Paymaster_exports as Paymaster, PeerId_exports as PeerId, PeerInfo_exports as PeerInfo, PendingTransactionFilter_exports as PendingTransactionFilter, Permit_exports as Permit, PolygonProvider, PrivateKey_exports as PrivateKey, Proof_exports as Proof, ProtocolVersion_exports as ProtocolVersion, Provider, ProviderConfirmationsPendingError, ProviderNotFoundError, ProviderReceiptPendingError, ProviderResponseError, ProviderService, ProviderStreamError, ProviderTimeoutError, ProviderValidationError, Proxy_exports as Proxy, PublicKey_exports as PublicKey, RateLimitError, RateLimitedTransport, RateLimiterService, RawProviderService, RawProviderTransport, Receipt_exports as Receipt, RelayData_exports as RelayData, ReturnData_exports as ReturnData, RevertReason_exports as RevertReason, Ripemd160_exports as Ripemd160, Rlp_exports as Rlp, RpcBatch, RpcBatchService, RuntimeCode_exports as RuntimeCode, SHA256_exports as SHA256, Secp256k1_exports as Secp256k1, Selector_exports as Selector, SepoliaProvider, SerializeError, Signature_exports as Signature, SignedData_exports as SignedData, Signer, SignerError, SignerService, Siwe_exports as Siwe, Slot_exports as Slot, SourceMap_exports as SourceMap, Ssz_exports as Ssz, StandardsError, State_exports as State, StateDiff_exports as StateDiff, StateProof_exports as StateProof, StateRoot_exports as StateRoot, StealthAddress_exports as StealthAddress, Storage_exports as Storage, StorageDiff_exports as StorageDiff, StorageProof_exports as StorageProof, StorageValue_exports as StorageValue, stream_exports as Stream, StructLog_exports as StructLog, SyncStatus_exports as SyncStatus, TestProvider, TestTransport, TokenBalance_exports as TokenBalance, TokenId_exports as TokenId, TopicFilter_exports as TopicFilter, TraceConfig_exports as TraceConfig, TraceResult_exports as TraceResult, Transaction_exports as Transaction, TransactionHash_exports as TransactionHash, TransactionIndex_exports as TransactionIndex, TransactionSerializerService, TransactionStatus_exports as TransactionStatus, TransactionStream, TransactionStreamError, TransactionStreamService, TransactionUrl_exports as TransactionUrl, TransportError, TransportService, TypedData_exports as TypedData, U256_exports as U256, Uint_exports as Uint, Uint128_exports as Uint128, Uint16_exports as Uint16, Uint32_exports as Uint32, Uint64_exports as Uint64, Uint8_exports as Uint8, Uncle_exports as Uncle, Unit_exports as Unit, UserOperation_exports as UserOperation, ValidatorIndex_exports as ValidatorIndex, WebSocketProvider, WebSocketProviderGlobal, WebSocketTransport, Withdrawal_exports as Withdrawal, WithdrawalIndex_exports as WithdrawalIndex, X25519_exports as X25519, ZkSyncFormatter, aggregate3, arbitrum, arbitrumBlockExplorers, arbitrumConfig, arbitrumContracts, backfillBlocks, base, baseBlockExplorers, baseConfig, baseContracts, bytesToHex, cacheEnabledRef, call, createAccessList, createBlockFilter, createEventFilter, createPendingTransactionFilter, createProvider, estimateGas, formatAccessList, formatCallRequest, formatLogFilterParams, formatTransactionRequest, getAccounts, getBalance, getBlobBaseFee, getBlock, getBlockNumber, getBlockReceipts, getBlockTransactionCount, getChainId, getCode, getCoinbase, getEnsAddress, getEnsAvatar, getEnsName, getEnsResolver, getEnsText, getFeeHistory, getFilterChanges, getFilterLogs, getGasPrice, getHashrate, getLogs, getMaxPriorityFeePerGas, getMining, getProof, getProtocolVersion, getStorageAt, getSyncing, getTransaction, getTransactionByBlockHashAndIndex, getTransactionByBlockNumberAndIndex, getTransactionConfirmations, getTransactionCount, getTransactionReceipt, getUncle, getUncleCount, mainnet, mainnetBlockExplorers, mainnetConfig, mainnetContracts, makeBlockStream, makeContractRegistry, makeEventStream, makeFeeEstimator, makeIdGenerator, makeProviderPlan, makeRateLimiter, makeResilientProviderPlan, makeRpcResolver, makeTransactionStream, multicall, netVersion, nextId2 as nextId, optimism, optimismBlockExplorers, optimismConfig, optimismContracts, parseHexToBigInt, polygon, polygonBlockExplorers, polygonConfig, polygonContracts, readContract, retryScheduleRef, rpcUrlsByChainId, sendRawTransaction, sendTransaction, sepolia, sepoliaBlockExplorers, sepoliaConfig, sepoliaContracts, sign10 as sign, signTransaction, simulateCalls, simulateContract, simulateV1, simulateV2, subscribe, timeoutRef, toAddressHex, toHashHex, tracingRef, uninstallFilter, unsubscribe, waitForTransactionReceipt, watchBlocks, withRetrySchedule, withTimeout, withTracing, withoutCache };
|