@aztec/foundation 0.83.1 → 0.84.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/dest/config/env_var.d.ts +1 -1
- package/dest/config/env_var.d.ts.map +1 -1
- package/dest/index.d.ts +0 -2
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +0 -2
- package/dest/log/index.d.ts +3 -4
- package/dest/log/index.d.ts.map +1 -1
- package/dest/log/index.js +3 -4
- package/dest/log/noir_debug_log_util.d.ts +14 -0
- package/dest/log/noir_debug_log_util.d.ts.map +1 -0
- package/dest/log/noir_debug_log_util.js +14 -0
- package/dest/transport/index.d.ts +0 -1
- package/dest/transport/index.d.ts.map +1 -1
- package/dest/transport/index.js +0 -1
- package/package.json +2 -4
- package/src/config/env_var.ts +1 -1
- package/src/index.ts +0 -2
- package/src/log/index.ts +3 -4
- package/src/log/noir_debug_log_util.ts +21 -0
- package/src/transport/index.ts +0 -1
- package/dest/log/debug.d.ts +0 -56
- package/dest/log/debug.d.ts.map +0 -1
- package/dest/log/debug.js +0 -75
- package/dest/log/log_history.d.ts +0 -31
- package/dest/log/log_history.d.ts.map +0 -1
- package/dest/log/log_history.js +0 -38
- package/dest/transport/browser/index.d.ts +0 -5
- package/dest/transport/browser/index.d.ts.map +0 -1
- package/dest/transport/browser/index.js +0 -4
- package/dest/transport/browser/message_port_socket.d.ts +0 -37
- package/dest/transport/browser/message_port_socket.d.ts.map +0 -1
- package/dest/transport/browser/message_port_socket.js +0 -42
- package/dest/transport/browser/shared_worker_connector.d.ts +0 -19
- package/dest/transport/browser/shared_worker_connector.d.ts.map +0 -1
- package/dest/transport/browser/shared_worker_connector.js +0 -19
- package/dest/transport/browser/shared_worker_listener.d.ts +0 -38
- package/dest/transport/browser/shared_worker_listener.d.ts.map +0 -1
- package/dest/transport/browser/shared_worker_listener.js +0 -33
- package/dest/transport/browser/worker_connector.d.ts +0 -26
- package/dest/transport/browser/worker_connector.d.ts.map +0 -1
- package/dest/transport/browser/worker_connector.js +0 -30
- package/dest/transport/browser/worker_listener.d.ts +0 -39
- package/dest/transport/browser/worker_listener.d.ts.map +0 -1
- package/dest/transport/browser/worker_listener.js +0 -35
- package/dest/wasm/empty_wasi_sdk.d.ts +0 -130
- package/dest/wasm/empty_wasi_sdk.d.ts.map +0 -1
- package/dest/wasm/empty_wasi_sdk.js +0 -148
- package/dest/wasm/index.d.ts +0 -2
- package/dest/wasm/index.d.ts.map +0 -1
- package/dest/wasm/index.js +0 -1
- package/dest/wasm/wasm_module.d.ts +0 -136
- package/dest/wasm/wasm_module.d.ts.map +0 -1
- package/dest/wasm/wasm_module.js +0 -196
- package/dest/worker/browser/index.d.ts +0 -3
- package/dest/worker/browser/index.d.ts.map +0 -1
- package/dest/worker/browser/index.js +0 -2
- package/dest/worker/browser/start_web_module.d.ts +0 -7
- package/dest/worker/browser/start_web_module.d.ts.map +0 -1
- package/dest/worker/browser/start_web_module.js +0 -27
- package/dest/worker/browser/web_data_store.d.ts +0 -24
- package/dest/worker/browser/web_data_store.d.ts.map +0 -1
- package/dest/worker/browser/web_data_store.js +0 -29
- package/dest/worker/browser/web_worker.d.ts +0 -10
- package/dest/worker/browser/web_worker.d.ts.map +0 -1
- package/dest/worker/browser/web_worker.js +0 -25
- package/dest/worker/data_store.d.ts +0 -21
- package/dest/worker/data_store.d.ts.map +0 -1
- package/dest/worker/data_store.js +0 -3
- package/dest/worker/index.d.ts +0 -3
- package/dest/worker/index.d.ts.map +0 -1
- package/dest/worker/index.js +0 -1
- package/dest/worker/node/index.d.ts +0 -3
- package/dest/worker/node/index.d.ts.map +0 -1
- package/dest/worker/node/index.js +0 -2
- package/dest/worker/node/node_data_store.d.ts +0 -13
- package/dest/worker/node/node_data_store.d.ts.map +0 -1
- package/dest/worker/node/node_data_store.js +0 -20
- package/dest/worker/node/node_worker.d.ts +0 -6
- package/dest/worker/node/node_worker.d.ts.map +0 -1
- package/dest/worker/node/node_worker.js +0 -22
- package/dest/worker/node/start_node_module.d.ts +0 -7
- package/dest/worker/node/start_node_module.d.ts.map +0 -1
- package/dest/worker/node/start_node_module.js +0 -31
- package/dest/worker/wasm_worker.d.ts +0 -9
- package/dest/worker/wasm_worker.d.ts.map +0 -1
- package/dest/worker/wasm_worker.js +0 -3
- package/dest/worker/worker_pool.d.ts +0 -40
- package/dest/worker/worker_pool.d.ts.map +0 -1
- package/dest/worker/worker_pool.js +0 -51
- package/src/log/debug.ts +0 -104
- package/src/log/log_history.ts +0 -44
- package/src/transport/browser/index.ts +0 -4
- package/src/transport/browser/message_port_socket.ts +0 -48
- package/src/transport/browser/shared_worker_connector.ts +0 -21
- package/src/transport/browser/shared_worker_listener.ts +0 -53
- package/src/transport/browser/worker_connector.ts +0 -30
- package/src/transport/browser/worker_listener.ts +0 -54
- package/src/wasm/README.md +0 -6
- package/src/wasm/empty_wasi_sdk.ts +0 -166
- package/src/wasm/fixtures/gcd.wasm +0 -0
- package/src/wasm/fixtures/gcd.wat +0 -27
- package/src/wasm/index.ts +0 -1
- package/src/wasm/wasm_module.ts +0 -260
- package/src/worker/browser/index.ts +0 -2
- package/src/worker/browser/start_web_module.ts +0 -24
- package/src/worker/browser/web_data_store.ts +0 -38
- package/src/worker/browser/web_worker.ts +0 -25
- package/src/worker/data_store.ts +0 -19
- package/src/worker/index.ts +0 -2
- package/src/worker/node/index.ts +0 -2
- package/src/worker/node/node_data_store.ts +0 -27
- package/src/worker/node/node_worker.ts +0 -23
- package/src/worker/node/start_node_module.ts +0 -30
- package/src/worker/wasm_worker.ts +0 -7
- package/src/worker/worker_pool.ts +0 -73
package/dest/config/env_var.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type EnvVar = 'ACVM_BINARY_PATH' | 'ACVM_WORKING_DIRECTORY' | 'GOVERNANCE_CONTRACT_ADDRESS' | 'API_KEY' | 'API_PREFIX' | 'ARCHIVER_MAX_LOGS' | 'ARCHIVER_POLLING_INTERVAL_MS' | 'ARCHIVER_URL' | 'ARCHIVER_VIEM_POLLING_INTERVAL_MS' | 'ARCHIVER_BATCH_SIZE' | 'ASSUME_PROVEN_THROUGH_BLOCK_NUMBER' | 'AZTEC_ADMIN_PORT' | 'AZTEC_NODE_ADMIN_URL' | 'AZTEC_NODE_URL' | 'AZTEC_PORT' | 'BB_BINARY_PATH' | 'BB_SKIP_CLEANUP' | 'BB_WORKING_DIRECTORY' | 'BOOTSTRAP_NODES' | 'BLOB_SINK_ARCHIVE_API_URL' | 'BLOB_SINK_PORT' | 'BLOB_SINK_URL' | 'BOT_DA_GAS_LIMIT' | 'BOT_FEE_PAYMENT_METHOD' | 'BOT_FLUSH_SETUP_TRANSACTIONS' | 'BOT_FOLLOW_CHAIN' | 'BOT_L2_GAS_LIMIT' | 'BOT_MAX_PENDING_TXS' | 'BOT_NO_START' | 'BOT_NO_WAIT_FOR_TRANSFERS' | 'BOT_L1_MNEMONIC' | 'BOT_L1_PRIVATE_KEY' | 'BOT_PRIVATE_KEY' | 'BOT_ACCOUNT_SALT' | 'BOT_PRIVATE_TRANSFERS_PER_TX' | 'BOT_PUBLIC_TRANSFERS_PER_TX' | 'BOT_PXE_URL' | 'BOT_RECIPIENT_ENCRYPTION_SECRET' | 'BOT_SKIP_PUBLIC_SIMULATION' | 'BOT_TOKEN_CONTRACT' | 'BOT_TOKEN_SALT' | 'BOT_TX_INTERVAL_SECONDS' | 'BOT_TX_MINED_WAIT_SECONDS' | 'BOT_MAX_CONSECUTIVE_ERRORS' | 'BOT_STOP_WHEN_UNHEALTHY' | 'BOT_AMM_TXS' | 'COINBASE' | 'DATA_DIRECTORY' | 'DATA_STORE_MAP_SIZE_KB' | 'ARCHIVER_STORE_MAP_SIZE_KB' | 'P2P_STORE_MAP_SIZE_KB' | 'PROVER_BROKER_STORE_MAP_SIZE_KB' | 'WS_DB_MAP_SIZE_KB' | 'DEBUG' | 'DEBUG_P2P_DISABLE_COLOCATION_PENALTY' | 'DEPLOY_AZTEC_CONTRACTS_SALT' | 'DEPLOY_AZTEC_CONTRACTS' | 'ENFORCE_FEES' | 'ETHEREUM_HOSTS' | 'FEE_JUICE_CONTRACT_ADDRESS' | 'FEE_JUICE_PORTAL_CONTRACT_ADDRESS' | 'FEE_RECIPIENT' | 'FORCE_COLOR' | 'GOVERNANCE_PROPOSER_CONTRACT_ADDRESS' | 'GOVERNANCE_PROPOSER_PAYLOAD_ADDRESS' | 'INBOX_CONTRACT_ADDRESS' | 'L1_CHAIN_ID' | 'L1_CONSENSUS_HOST_URLS' | 'L1_CONSENSUS_HOST_API_KEYS' | 'L1_CONSENSUS_HOST_API_KEY_HEADERS' | 'L1_PRIVATE_KEY' | 'LOG_JSON' | 'LOG_MULTILINE' | 'LOG_LEVEL' | 'MNEMONIC' | 'NETWORK_NAME' | 'NETWORK' | 'NO_PXE' | 'COIN_ISSUER_CONTRACT_ADDRESS' | 'USE_GCLOUD_LOGGING' | 'OTEL_EXPORTER_OTLP_METRICS_ENDPOINT' | 'OTEL_EXPORTER_OTLP_TRACES_ENDPOINT' | 'OTEL_EXPORTER_OTLP_LOGS_ENDPOINT' | 'OTEL_COLLECT_INTERVAL_MS' | 'OTEL_EXCLUDE_METRICS' | 'OTEL_EXPORT_TIMEOUT_MS' | 'OUTBOX_CONTRACT_ADDRESS' | 'P2P_BLOCK_CHECK_INTERVAL_MS' | 'P2P_BLOCK_REQUEST_BATCH_SIZE' | 'P2P_BOOTSTRAP_NODE_ENR_VERSION_CHECK' | 'P2P_BOOTSTRAP_NODES_AS_FULL_PEERS' | 'P2P_ENABLED' | 'P2P_GOSSIPSUB_D' | 'P2P_GOSSIPSUB_DHI' | 'P2P_GOSSIPSUB_DLO' | 'P2P_GOSSIPSUB_DLAZY' | 'P2P_GOSSIPSUB_FLOOD_PUBLISH' | 'P2P_GOSSIPSUB_INTERVAL_MS' | 'P2P_GOSSIPSUB_MCACHE_GOSSIP' | 'P2P_GOSSIPSUB_MCACHE_LENGTH' | 'P2P_GOSSIPSUB_TX_INVALID_MESSAGE_DELIVERIES_DECAY' | 'P2P_GOSSIPSUB_TX_INVALID_MESSAGE_DELIVERIES_WEIGHT' | 'P2P_GOSSIPSUB_TX_TOPIC_WEIGHT' | 'P2P_L2_QUEUE_SIZE' | 'P2P_MAX_PEERS' | 'P2P_PEER_CHECK_INTERVAL_MS' | 'P2P_PEER_PENALTY_VALUES' | 'P2P_QUERY_FOR_IP' | 'P2P_REQRESP_INDIVIDUAL_REQUEST_TIMEOUT_MS' | 'P2P_REQRESP_OVERALL_REQUEST_TIMEOUT_MS' | 'P2P_DOUBLE_SPEND_SEVERE_PEER_PENALTY_WINDOW' | 'P2P_LISTEN_ADDR' | 'P2P_PORT' | 'P2P_IP' | 'P2P_TX_POOL_KEEP_PROVEN_FOR' | 'P2P_ATTESTATION_POOL_KEEP_FOR' | 'P2P_ARCHIVED_TX_LIMIT' | 'PEER_ID_PRIVATE_KEY' | 'PROVER_AGENT_COUNT' | 'PROVER_AGENT_PROOF_TYPES' | 'PROVER_AGENT_POLL_INTERVAL_MS' | 'PROVER_BROKER_HOST' | 'PROVER_BROKER_JOB_TIMEOUT_MS' | 'PROVER_BROKER_POLL_INTERVAL_MS' | 'PROVER_BROKER_JOB_MAX_RETRIES' | 'PROVER_BROKER_BATCH_INTERVAL_MS' | 'PROVER_BROKER_BATCH_SIZE' | 'PROVER_BROKER_MAX_EPOCHS_TO_KEEP_RESULTS_FOR' | 'PROVER_COORDINATION_NODE_URL' | 'PROVER_FAILED_PROOF_STORE' | 'PROVER_ID' | 'PROVER_NODE_POLLING_INTERVAL_MS' | 'PROVER_NODE_MAX_PENDING_JOBS' | 'PROVER_NODE_MAX_PARALLEL_BLOCKS_PER_EPOCH' | 'PROVER_NODE_TX_GATHERING_TIMEOUT_MS' | 'PROVER_NODE_TX_GATHERING_INTERVAL_MS' | 'PROVER_NODE_TX_GATHERING_MAX_PARALLEL_REQUESTS' | 'PROVER_PUBLISH_RETRY_INTERVAL_MS' | 'PROVER_PUBLISHER_PRIVATE_KEY' | 'PROVER_REAL_PROOFS' | 'PROVER_TEST_DELAY_FACTOR' | 'PROVER_TEST_DELAY_MS' | 'PROVER_TEST_DELAY_TYPE' | 'PXE_L2_STARTING_BLOCK' | 'PXE_PROVER_ENABLED' | 'REGISTRY_CONTRACT_ADDRESS' | 'ROLLUP_CONTRACT_ADDRESS' | 'SENTINEL_ENABLED' | 'SENTINEL_HISTORY_LENGTH_IN_EPOCHS' | '
|
|
1
|
+
export type EnvVar = 'ACVM_BINARY_PATH' | 'ACVM_WORKING_DIRECTORY' | 'GOVERNANCE_CONTRACT_ADDRESS' | 'API_KEY' | 'API_PREFIX' | 'ARCHIVER_MAX_LOGS' | 'ARCHIVER_POLLING_INTERVAL_MS' | 'ARCHIVER_URL' | 'ARCHIVER_VIEM_POLLING_INTERVAL_MS' | 'ARCHIVER_BATCH_SIZE' | 'ASSUME_PROVEN_THROUGH_BLOCK_NUMBER' | 'AZTEC_ADMIN_PORT' | 'AZTEC_NODE_ADMIN_URL' | 'AZTEC_NODE_URL' | 'AZTEC_PORT' | 'BB_BINARY_PATH' | 'BB_SKIP_CLEANUP' | 'BB_WORKING_DIRECTORY' | 'BOOTSTRAP_NODES' | 'BLOB_SINK_ARCHIVE_API_URL' | 'BLOB_SINK_PORT' | 'BLOB_SINK_URL' | 'BOT_DA_GAS_LIMIT' | 'BOT_FEE_PAYMENT_METHOD' | 'BOT_FLUSH_SETUP_TRANSACTIONS' | 'BOT_FOLLOW_CHAIN' | 'BOT_L2_GAS_LIMIT' | 'BOT_MAX_PENDING_TXS' | 'BOT_NO_START' | 'BOT_NO_WAIT_FOR_TRANSFERS' | 'BOT_L1_MNEMONIC' | 'BOT_L1_PRIVATE_KEY' | 'BOT_PRIVATE_KEY' | 'BOT_ACCOUNT_SALT' | 'BOT_PRIVATE_TRANSFERS_PER_TX' | 'BOT_PUBLIC_TRANSFERS_PER_TX' | 'BOT_PXE_URL' | 'BOT_RECIPIENT_ENCRYPTION_SECRET' | 'BOT_SKIP_PUBLIC_SIMULATION' | 'BOT_TOKEN_CONTRACT' | 'BOT_TOKEN_SALT' | 'BOT_TX_INTERVAL_SECONDS' | 'BOT_TX_MINED_WAIT_SECONDS' | 'BOT_MAX_CONSECUTIVE_ERRORS' | 'BOT_STOP_WHEN_UNHEALTHY' | 'BOT_AMM_TXS' | 'COINBASE' | 'DATA_DIRECTORY' | 'DATA_STORE_MAP_SIZE_KB' | 'ARCHIVER_STORE_MAP_SIZE_KB' | 'P2P_STORE_MAP_SIZE_KB' | 'PROVER_BROKER_STORE_MAP_SIZE_KB' | 'WS_DB_MAP_SIZE_KB' | 'DEBUG' | 'DEBUG_P2P_DISABLE_COLOCATION_PENALTY' | 'DEPLOY_AZTEC_CONTRACTS_SALT' | 'DEPLOY_AZTEC_CONTRACTS' | 'ENFORCE_FEES' | 'ETHEREUM_HOSTS' | 'FEE_JUICE_CONTRACT_ADDRESS' | 'FEE_JUICE_PORTAL_CONTRACT_ADDRESS' | 'FEE_RECIPIENT' | 'FORCE_COLOR' | 'GOVERNANCE_PROPOSER_CONTRACT_ADDRESS' | 'GOVERNANCE_PROPOSER_PAYLOAD_ADDRESS' | 'INBOX_CONTRACT_ADDRESS' | 'L1_CHAIN_ID' | 'L1_CONSENSUS_HOST_URLS' | 'L1_CONSENSUS_HOST_API_KEYS' | 'L1_CONSENSUS_HOST_API_KEY_HEADERS' | 'L1_PRIVATE_KEY' | 'LOG_JSON' | 'LOG_MULTILINE' | 'LOG_LEVEL' | 'MNEMONIC' | 'NETWORK_NAME' | 'NETWORK' | 'NO_PXE' | 'COIN_ISSUER_CONTRACT_ADDRESS' | 'USE_GCLOUD_LOGGING' | 'OTEL_EXPORTER_OTLP_METRICS_ENDPOINT' | 'OTEL_EXPORTER_OTLP_TRACES_ENDPOINT' | 'OTEL_EXPORTER_OTLP_LOGS_ENDPOINT' | 'OTEL_COLLECT_INTERVAL_MS' | 'OTEL_EXCLUDE_METRICS' | 'OTEL_EXPORT_TIMEOUT_MS' | 'OUTBOX_CONTRACT_ADDRESS' | 'P2P_BLOCK_CHECK_INTERVAL_MS' | 'P2P_BLOCK_REQUEST_BATCH_SIZE' | 'P2P_BOOTSTRAP_NODE_ENR_VERSION_CHECK' | 'P2P_BOOTSTRAP_NODES_AS_FULL_PEERS' | 'P2P_ENABLED' | 'P2P_GOSSIPSUB_D' | 'P2P_GOSSIPSUB_DHI' | 'P2P_GOSSIPSUB_DLO' | 'P2P_GOSSIPSUB_DLAZY' | 'P2P_GOSSIPSUB_FLOOD_PUBLISH' | 'P2P_GOSSIPSUB_INTERVAL_MS' | 'P2P_GOSSIPSUB_MCACHE_GOSSIP' | 'P2P_GOSSIPSUB_MCACHE_LENGTH' | 'P2P_GOSSIPSUB_TX_INVALID_MESSAGE_DELIVERIES_DECAY' | 'P2P_GOSSIPSUB_TX_INVALID_MESSAGE_DELIVERIES_WEIGHT' | 'P2P_GOSSIPSUB_TX_TOPIC_WEIGHT' | 'P2P_L2_QUEUE_SIZE' | 'P2P_MAX_PEERS' | 'P2P_PEER_CHECK_INTERVAL_MS' | 'P2P_PEER_PENALTY_VALUES' | 'P2P_QUERY_FOR_IP' | 'P2P_REQRESP_INDIVIDUAL_REQUEST_TIMEOUT_MS' | 'P2P_REQRESP_OVERALL_REQUEST_TIMEOUT_MS' | 'P2P_DOUBLE_SPEND_SEVERE_PEER_PENALTY_WINDOW' | 'P2P_LISTEN_ADDR' | 'P2P_PORT' | 'P2P_IP' | 'P2P_TX_POOL_KEEP_PROVEN_FOR' | 'P2P_ATTESTATION_POOL_KEEP_FOR' | 'P2P_ARCHIVED_TX_LIMIT' | 'PEER_ID_PRIVATE_KEY' | 'PROVER_AGENT_COUNT' | 'PROVER_AGENT_PROOF_TYPES' | 'PROVER_AGENT_POLL_INTERVAL_MS' | 'PROVER_BROKER_HOST' | 'PROVER_BROKER_JOB_TIMEOUT_MS' | 'PROVER_BROKER_POLL_INTERVAL_MS' | 'PROVER_BROKER_JOB_MAX_RETRIES' | 'PROVER_BROKER_BATCH_INTERVAL_MS' | 'PROVER_BROKER_BATCH_SIZE' | 'PROVER_BROKER_MAX_EPOCHS_TO_KEEP_RESULTS_FOR' | 'PROVER_COORDINATION_NODE_URL' | 'PROVER_FAILED_PROOF_STORE' | 'PROVER_ID' | 'PROVER_NODE_POLLING_INTERVAL_MS' | 'PROVER_NODE_MAX_PENDING_JOBS' | 'PROVER_NODE_MAX_PARALLEL_BLOCKS_PER_EPOCH' | 'PROVER_NODE_TX_GATHERING_TIMEOUT_MS' | 'PROVER_NODE_TX_GATHERING_INTERVAL_MS' | 'PROVER_NODE_TX_GATHERING_MAX_PARALLEL_REQUESTS' | 'PROVER_PUBLISH_RETRY_INTERVAL_MS' | 'PROVER_PUBLISHER_PRIVATE_KEY' | 'PROVER_REAL_PROOFS' | 'PROVER_TEST_DELAY_FACTOR' | 'PROVER_TEST_DELAY_MS' | 'PROVER_TEST_DELAY_TYPE' | 'PXE_L2_STARTING_BLOCK' | 'PXE_PROVER_ENABLED' | 'REGISTRY_CONTRACT_ADDRESS' | 'ROLLUP_CONTRACT_ADDRESS' | 'SENTINEL_ENABLED' | 'SENTINEL_HISTORY_LENGTH_IN_EPOCHS' | 'SEQ_MAX_BLOCK_SIZE_IN_BYTES' | 'SEQ_MAX_TX_PER_BLOCK' | 'SEQ_MIN_TX_PER_BLOCK' | 'SEQ_MAX_DA_BLOCK_GAS' | 'SEQ_MAX_L2_BLOCK_GAS' | 'SEQ_PUBLISH_RETRY_INTERVAL_MS' | 'SEQ_PUBLISHER_PRIVATE_KEY' | 'SEQ_TX_POLLING_INTERVAL_MS' | 'SEQ_ENFORCE_TIME_TABLE' | 'SEQ_MAX_L1_TX_INCLUSION_TIME_INTO_SLOT' | 'SLASH_FACTORY_CONTRACT_ADDRESS' | 'STAKING_ASSET_CONTRACT_ADDRESS' | 'STAKING_ASSET_HANDLER_CONTRACT_ADDRESS' | 'SYNC_MODE' | 'SYNC_SNAPSHOTS_URL' | 'REWARD_DISTRIBUTOR_CONTRACT_ADDRESS' | 'TELEMETRY' | 'TEST_ACCOUNTS' | 'SPONSORED_FPC' | 'TX_GOSSIP_VERSION' | 'TX_PUBLIC_SETUP_ALLOWLIST' | 'TXE_PORT' | 'VALIDATOR_ATTESTATIONS_POLLING_INTERVAL_MS' | 'VALIDATOR_DISABLED' | 'VALIDATOR_PRIVATE_KEY' | 'VALIDATOR_REEXECUTE' | 'ROLLUP_VERSION' | 'WS_BLOCK_CHECK_INTERVAL_MS' | 'WS_PROVEN_BLOCKS_ONLY' | 'WS_BLOCK_REQUEST_BATCH_SIZE' | 'VERIFIER_VIEM_POLLING_INTERVAL_MS' | 'L1_READER_VIEM_POLLING_INTERVAL_MS' | 'PROVER_VIEM_POLLING_INTERVAL_MS' | 'SEQ_VIEM_POLLING_INTERVAL_MS' | 'WS_DATA_DIRECTORY' | 'WS_NUM_HISTORIC_BLOCKS' | 'ETHEREUM_SLOT_DURATION' | 'AZTEC_SLOT_DURATION' | 'AZTEC_EPOCH_DURATION' | 'AZTEC_TARGET_COMMITTEE_SIZE' | 'AZTEC_PROOF_SUBMISSION_WINDOW' | 'AZTEC_MINIMUM_STAKE' | 'AZTEC_MANA_TARGET' | 'AZTEC_PROVING_COST_PER_MANA' | 'AZTEC_SLASHING_QUORUM' | 'AZTEC_SLASHING_ROUND_SIZE' | 'AZTEC_GOVERNANCE_PROPOSER_QUORUM' | 'AZTEC_GOVERNANCE_PROPOSER_ROUND_SIZE' | 'L1_GAS_LIMIT_BUFFER_PERCENTAGE' | 'L1_GAS_PRICE_MIN' | 'L1_GAS_PRICE_MAX' | 'L1_BLOB_FEE_PER_GAS_MAX' | 'L1_PRIORITY_FEE_BUMP_PERCENTAGE' | 'L1_PRIORITY_FEE_RETRY_BUMP_PERCENTAGE' | 'L1_FIXED_PRIORITY_FEE_PER_GAS' | 'L1_TX_MONITOR_MAX_ATTEMPTS' | 'L1_TX_MONITOR_CHECK_INTERVAL_MS' | 'L1_TX_MONITOR_STALL_TIME_MS' | 'L1_TX_MONITOR_TX_TIMEOUT_MS' | 'L1_TX_PROPAGATION_MAX_QUERY_ATTEMPTS' | 'FAUCET_MNEMONIC_ACCOUNT_INDEX' | 'FAUCET_ETH_AMOUNT' | 'FAUCET_INTERVAL_MS' | 'FAUCET_L1_ASSETS' | 'K8S_POD_NAME' | 'K8S_POD_UID' | 'K8S_NAMESPACE_NAME' | 'CUSTOM_FORWARDER_CONTRACT_ADDRESS' | 'P2P_TRUSTED_PEERS' | 'FEE_ASSET_HANDLER_CONTRACT_ADDRESS';
|
|
2
2
|
//# sourceMappingURL=env_var.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env_var.d.ts","sourceRoot":"","sources":["../../src/config/env_var.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GACd,kBAAkB,GAClB,wBAAwB,GACxB,6BAA6B,GAC7B,SAAS,GACT,YAAY,GACZ,mBAAmB,GACnB,8BAA8B,GAC9B,cAAc,GACd,mCAAmC,GACnC,qBAAqB,GACrB,oCAAoC,GACpC,kBAAkB,GAClB,sBAAsB,GACtB,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,iBAAiB,GACjB,sBAAsB,GACtB,iBAAiB,GACjB,2BAA2B,GAC3B,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,wBAAwB,GACxB,8BAA8B,GAC9B,kBAAkB,GAClB,kBAAkB,GAClB,qBAAqB,GACrB,cAAc,GACd,2BAA2B,GAC3B,iBAAiB,GACjB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,8BAA8B,GAC9B,6BAA6B,GAC7B,aAAa,GACb,iCAAiC,GACjC,4BAA4B,GAC5B,oBAAoB,GACpB,gBAAgB,GAChB,yBAAyB,GACzB,2BAA2B,GAC3B,4BAA4B,GAC5B,yBAAyB,GACzB,aAAa,GACb,UAAU,GACV,gBAAgB,GAChB,wBAAwB,GACxB,4BAA4B,GAC5B,uBAAuB,GACvB,iCAAiC,GACjC,mBAAmB,GAC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B,0BAA0B,GAC1B,sBAAsB,GACtB,wBAAwB,GACxB,uBAAuB,GACvB,oBAAoB,GACpB,2BAA2B,GAC3B,yBAAyB,GACzB,kBAAkB,GAClB,mCAAmC,GACnC,
|
|
1
|
+
{"version":3,"file":"env_var.d.ts","sourceRoot":"","sources":["../../src/config/env_var.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GACd,kBAAkB,GAClB,wBAAwB,GACxB,6BAA6B,GAC7B,SAAS,GACT,YAAY,GACZ,mBAAmB,GACnB,8BAA8B,GAC9B,cAAc,GACd,mCAAmC,GACnC,qBAAqB,GACrB,oCAAoC,GACpC,kBAAkB,GAClB,sBAAsB,GACtB,gBAAgB,GAChB,YAAY,GACZ,gBAAgB,GAChB,iBAAiB,GACjB,sBAAsB,GACtB,iBAAiB,GACjB,2BAA2B,GAC3B,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,wBAAwB,GACxB,8BAA8B,GAC9B,kBAAkB,GAClB,kBAAkB,GAClB,qBAAqB,GACrB,cAAc,GACd,2BAA2B,GAC3B,iBAAiB,GACjB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,8BAA8B,GAC9B,6BAA6B,GAC7B,aAAa,GACb,iCAAiC,GACjC,4BAA4B,GAC5B,oBAAoB,GACpB,gBAAgB,GAChB,yBAAyB,GACzB,2BAA2B,GAC3B,4BAA4B,GAC5B,yBAAyB,GACzB,aAAa,GACb,UAAU,GACV,gBAAgB,GAChB,wBAAwB,GACxB,4BAA4B,GAC5B,uBAAuB,GACvB,iCAAiC,GACjC,mBAAmB,GACnB,OAAO,GACP,sCAAsC,GACtC,6BAA6B,GAC7B,wBAAwB,GACxB,cAAc,GACd,gBAAgB,GAChB,4BAA4B,GAC5B,mCAAmC,GACnC,eAAe,GACf,aAAa,GACb,sCAAsC,GACtC,qCAAqC,GACrC,wBAAwB,GACxB,aAAa,GACb,wBAAwB,GACxB,4BAA4B,GAC5B,mCAAmC,GACnC,gBAAgB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AA4B,GAC5B,wBAAwB,GACxB,wCAAwC,GACxC,gCAAgC,GAChC,gCAAgC,GAChC,wCAAwC,GACxC,WAAW,GACX,oBAAoB,GACpB,qCAAqC,GACrC,WAAW,GACX,eAAe,GACf,eAAe,GACf,mBAAmB,GACnB,2BAA2B,GAC3B,UAAU,GACV,4CAA4C,GAC5C,oBAAoB,GACpB,uBAAuB,GACvB,qBAAqB,GACrB,gBAAgB,GAChB,4BAA4B,GAC5B,uBAAuB,GACvB,6BAA6B,GAC7B,mCAAmC,GACnC,oCAAoC,GACpC,iCAAiC,GACjC,8BAA8B,GAC9B,mBAAmB,GACnB,wBAAwB,GACxB,wBAAwB,GACxB,qBAAqB,GACrB,sBAAsB,GACtB,6BAA6B,GAC7B,+BAA+B,GAC/B,qBAAqB,GACrB,mBAAmB,GACnB,6BAA6B,GAC7B,uBAAuB,GACvB,2BAA2B,GAC3B,kCAAkC,GAClC,sCAAsC,GACtC,gCAAgC,GAChC,kBAAkB,GAClB,kBAAkB,GAClB,yBAAyB,GACzB,iCAAiC,GACjC,uCAAuC,GACvC,+BAA+B,GAC/B,4BAA4B,GAC5B,iCAAiC,GACjC,6BAA6B,GAC7B,6BAA6B,GAC7B,sCAAsC,GACtC,+BAA+B,GAC/B,mBAAmB,GACnB,oBAAoB,GACpB,kBAAkB,GAClB,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,mCAAmC,GACnC,mBAAmB,GACnB,oCAAoC,CAAC"}
|
package/dest/index.d.ts
CHANGED
|
@@ -22,8 +22,6 @@ export * as transport from './transport/index.js';
|
|
|
22
22
|
export * as trees from './trees/index.js';
|
|
23
23
|
export * as types from './types/index.js';
|
|
24
24
|
export * as url from './url/index.js';
|
|
25
|
-
export * as wasm from './wasm/index.js';
|
|
26
|
-
export * as worker from './worker/index.js';
|
|
27
25
|
export * as testing from './testing/index.js';
|
|
28
26
|
export * as config from './config/index.js';
|
|
29
27
|
export * as buffer from './buffer/index.js';
|
package/dest/index.d.ts.map
CHANGED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AAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC"}
|
package/dest/index.js
CHANGED
|
@@ -23,8 +23,6 @@ export * as transport from './transport/index.js';
|
|
|
23
23
|
export * as trees from './trees/index.js';
|
|
24
24
|
export * as types from './types/index.js';
|
|
25
25
|
export * as url from './url/index.js';
|
|
26
|
-
export * as wasm from './wasm/index.js';
|
|
27
|
-
export * as worker from './worker/index.js';
|
|
28
26
|
export * as testing from './testing/index.js';
|
|
29
27
|
export * as config from './config/index.js';
|
|
30
28
|
export * as buffer from './buffer/index.js';
|
package/dest/log/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './console.js';
|
|
2
|
-
export * from './debug.js';
|
|
3
|
-
export * from './pino-logger.js';
|
|
4
|
-
export * from './log_history.js';
|
|
5
|
-
export * from './log_fn.js';
|
|
6
2
|
export * from './libp2p_logger.js';
|
|
3
|
+
export * from './log_fn.js';
|
|
4
|
+
export * from './noir_debug_log_util.js';
|
|
5
|
+
export * from './pino-logger.js';
|
|
7
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dest/log/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/log/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/log/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC"}
|
package/dest/log/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './console.js';
|
|
2
|
-
export * from './debug.js';
|
|
3
|
-
export * from './pino-logger.js';
|
|
4
|
-
export * from './log_history.js';
|
|
5
|
-
export * from './log_fn.js';
|
|
6
2
|
export * from './libp2p_logger.js';
|
|
3
|
+
export * from './log_fn.js';
|
|
4
|
+
export * from './noir_debug_log_util.js';
|
|
5
|
+
export * from './pino-logger.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Printable {
|
|
2
|
+
toString(): string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Format a debug string filling in `'{0}'` entries with their
|
|
6
|
+
* corresponding values from the args array, amd `'{}'` with the whole array.
|
|
7
|
+
*
|
|
8
|
+
* @param formatStr - str of form `'this is a string with some entries like {0} and {1}'`
|
|
9
|
+
* @param args - array of fields to fill in the string format entries with
|
|
10
|
+
* @returns formatted string
|
|
11
|
+
*/
|
|
12
|
+
export declare function applyStringFormatting(formatStr: string, args: Printable[]): string;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=noir_debug_log_util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noir_debug_log_util.d.ts","sourceRoot":"","sources":["../../src/log/noir_debug_log_util.ts"],"names":[],"mappings":"AAAA,UAAU,SAAS;IACjB,QAAQ,IAAI,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,CAQlF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format a debug string filling in `'{0}'` entries with their
|
|
3
|
+
* corresponding values from the args array, amd `'{}'` with the whole array.
|
|
4
|
+
*
|
|
5
|
+
* @param formatStr - str of form `'this is a string with some entries like {0} and {1}'`
|
|
6
|
+
* @param args - array of fields to fill in the string format entries with
|
|
7
|
+
* @returns formatted string
|
|
8
|
+
*/ export function applyStringFormatting(formatStr, args) {
|
|
9
|
+
return formatStr.replace(/{(\d+)}/g, (match, index)=>{
|
|
10
|
+
return typeof args[index] === 'undefined' ? match : args[index].toString();
|
|
11
|
+
}).replace(/{}/g, (_match, _index)=>{
|
|
12
|
+
return args.toString();
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -7,6 +7,5 @@ export * from './interface/socket.js';
|
|
|
7
7
|
export * from './interface/transferable.js';
|
|
8
8
|
export * from './transport_client.js';
|
|
9
9
|
export * from './transport_server.js';
|
|
10
|
-
export * from './browser/index.js';
|
|
11
10
|
export * from './node/index.js';
|
|
12
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC"}
|
package/dest/transport/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/foundation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dest/index.js",
|
|
6
6
|
"types": "./dest/index.d.ts",
|
|
@@ -39,8 +39,6 @@
|
|
|
39
39
|
"./timer": "./dest/timer/index.js",
|
|
40
40
|
"./transport": "./dest/transport/index.js",
|
|
41
41
|
"./trees": "./dest/trees/index.js",
|
|
42
|
-
"./wasm": "./dest/wasm/index.js",
|
|
43
|
-
"./worker": "./dest/worker/index.js",
|
|
44
42
|
"./bigint-buffer": "./dest/bigint-buffer/index.js",
|
|
45
43
|
"./types": "./dest/types/index.js",
|
|
46
44
|
"./schemas": "./dest/schemas/index.js",
|
|
@@ -104,7 +102,7 @@
|
|
|
104
102
|
]
|
|
105
103
|
},
|
|
106
104
|
"dependencies": {
|
|
107
|
-
"@aztec/bb.js": "0.
|
|
105
|
+
"@aztec/bb.js": "0.84.0",
|
|
108
106
|
"@koa/cors": "^5.0.0",
|
|
109
107
|
"@noble/curves": "^1.2.0",
|
|
110
108
|
"bn.js": "^5.2.1",
|
package/src/config/env_var.ts
CHANGED
|
@@ -148,7 +148,6 @@ export type EnvVar =
|
|
|
148
148
|
| 'ROLLUP_CONTRACT_ADDRESS'
|
|
149
149
|
| 'SENTINEL_ENABLED'
|
|
150
150
|
| 'SENTINEL_HISTORY_LENGTH_IN_EPOCHS'
|
|
151
|
-
| 'SEQ_ALLOWED_SETUP_FN'
|
|
152
151
|
| 'SEQ_MAX_BLOCK_SIZE_IN_BYTES'
|
|
153
152
|
| 'SEQ_MAX_TX_PER_BLOCK'
|
|
154
153
|
| 'SEQ_MIN_TX_PER_BLOCK'
|
|
@@ -169,6 +168,7 @@ export type EnvVar =
|
|
|
169
168
|
| 'TEST_ACCOUNTS'
|
|
170
169
|
| 'SPONSORED_FPC'
|
|
171
170
|
| 'TX_GOSSIP_VERSION'
|
|
171
|
+
| 'TX_PUBLIC_SETUP_ALLOWLIST'
|
|
172
172
|
| 'TXE_PORT'
|
|
173
173
|
| 'VALIDATOR_ATTESTATIONS_POLLING_INTERVAL_MS'
|
|
174
174
|
| 'VALIDATOR_DISABLED'
|
package/src/index.ts
CHANGED
|
@@ -23,8 +23,6 @@ export * as transport from './transport/index.js';
|
|
|
23
23
|
export * as trees from './trees/index.js';
|
|
24
24
|
export * as types from './types/index.js';
|
|
25
25
|
export * as url from './url/index.js';
|
|
26
|
-
export * as wasm from './wasm/index.js';
|
|
27
|
-
export * as worker from './worker/index.js';
|
|
28
26
|
export * as testing from './testing/index.js';
|
|
29
27
|
export * as config from './config/index.js';
|
|
30
28
|
export * as buffer from './buffer/index.js';
|
package/src/log/index.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './console.js';
|
|
2
|
-
export * from './debug.js';
|
|
3
|
-
export * from './pino-logger.js';
|
|
4
|
-
export * from './log_history.js';
|
|
5
|
-
export * from './log_fn.js';
|
|
6
2
|
export * from './libp2p_logger.js';
|
|
3
|
+
export * from './log_fn.js';
|
|
4
|
+
export * from './noir_debug_log_util.js';
|
|
5
|
+
export * from './pino-logger.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface Printable {
|
|
2
|
+
toString(): string;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Format a debug string filling in `'{0}'` entries with their
|
|
7
|
+
* corresponding values from the args array, amd `'{}'` with the whole array.
|
|
8
|
+
*
|
|
9
|
+
* @param formatStr - str of form `'this is a string with some entries like {0} and {1}'`
|
|
10
|
+
* @param args - array of fields to fill in the string format entries with
|
|
11
|
+
* @returns formatted string
|
|
12
|
+
*/
|
|
13
|
+
export function applyStringFormatting(formatStr: string, args: Printable[]): string {
|
|
14
|
+
return formatStr
|
|
15
|
+
.replace(/{(\d+)}/g, (match, index) => {
|
|
16
|
+
return typeof args[index] === 'undefined' ? match : args[index].toString();
|
|
17
|
+
})
|
|
18
|
+
.replace(/{}/g, (_match, _index) => {
|
|
19
|
+
return args.toString();
|
|
20
|
+
});
|
|
21
|
+
}
|
package/src/transport/index.ts
CHANGED
package/dest/log/debug.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { LogFn } from './log_fn.js';
|
|
2
|
-
/**
|
|
3
|
-
* Return a logger, meant to be silent by default and verbose during debugging.
|
|
4
|
-
* @param name - The module name of the logger.
|
|
5
|
-
* @returns A callable log function.
|
|
6
|
-
*/
|
|
7
|
-
export declare function createDebugOnlyLogger(name: string): LogFn;
|
|
8
|
-
/**
|
|
9
|
-
* Set a function to be called before each log message is handled by the debug logger.
|
|
10
|
-
* The hook function will receive the logger namespace and any arguments passed to the logger.
|
|
11
|
-
* This can be useful for adding additional context, filtering logs, or performing side-effects
|
|
12
|
-
* based on logged messages.
|
|
13
|
-
*
|
|
14
|
-
* @param fn - The function to be called before each log message.
|
|
15
|
-
*/
|
|
16
|
-
export declare function setPreDebugLogHook(fn: (...args: any[]) => void): void;
|
|
17
|
-
/**
|
|
18
|
-
* Set a callback function to be executed after each log is written by the debug logger.
|
|
19
|
-
* This allows additional behavior or side effects to occur after a log has been written,
|
|
20
|
-
* such as sending logs to external services, formatting output, or triggering events.
|
|
21
|
-
*
|
|
22
|
-
* @param fn - The callback function to be executed after each log. It receives the same arguments as the original log function call.
|
|
23
|
-
*/
|
|
24
|
-
export declare function setPostDebugLogHook(fn: (...args: any[]) => void): void;
|
|
25
|
-
/**
|
|
26
|
-
* Enable logs for the specified namespace(s) or wildcard pattern(s).
|
|
27
|
-
* This function activates the logging functionality for the given
|
|
28
|
-
* namespace(s) or pattern(s), allowing developers to selectively display
|
|
29
|
-
* debug logs that match the provided string(s).
|
|
30
|
-
*
|
|
31
|
-
* @param str - The namespace(s) or wildcard pattern(s) for which logs should be enabled.
|
|
32
|
-
*/
|
|
33
|
-
export declare function enableLogs(str: string): void;
|
|
34
|
-
/**
|
|
35
|
-
* Check if the logging is enabled for a given namespace.
|
|
36
|
-
* The input 'str' represents the namespace for which the log status is being checked.
|
|
37
|
-
* Returns true if the logging is enabled, otherwise false.
|
|
38
|
-
*
|
|
39
|
-
* @param str - The namespace string used to determine if logging is enabled.
|
|
40
|
-
* @returns A boolean indicating whether logging is enabled for the given namespace.
|
|
41
|
-
*/
|
|
42
|
-
export declare function isLogEnabled(str: string): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Format a debug string filling in `'{0}'` entries with their
|
|
45
|
-
* corresponding values from the args array, amd `'{}'` with the whole array.
|
|
46
|
-
*
|
|
47
|
-
* @param formatStr - str of form `'this is a string with some entries like {0} and {1}'`
|
|
48
|
-
* @param args - array of fields to fill in the string format entries with
|
|
49
|
-
* @returns formatted string
|
|
50
|
-
*/
|
|
51
|
-
interface Printable {
|
|
52
|
-
toString(): string;
|
|
53
|
-
}
|
|
54
|
-
export declare function applyStringFormatting(formatStr: string, args: Printable[]): string;
|
|
55
|
-
export {};
|
|
56
|
-
//# sourceMappingURL=debug.d.ts.map
|
package/dest/log/debug.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/log/debug.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAyBzC;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAGzD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,QAE9D;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,QAE/D;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,QAErC;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,WAEvC;AAED;;;;;;;GAOG;AACH,UAAU,SAAS;IACjB,QAAQ,IAAI,MAAM,CAAC;CACpB;AACD,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,MAAM,CAQlF"}
|
package/dest/log/debug.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import debug from 'debug';
|
|
2
|
-
let preLogHook;
|
|
3
|
-
let postLogHook;
|
|
4
|
-
/**
|
|
5
|
-
* Process and handle the logging of messages through custom hooks and the given logger.
|
|
6
|
-
* This function checks if the logger's namespace is enabled, executes any preLogHook functions, logs the message using the provided logger, and then executes any postLogHook functions.
|
|
7
|
-
*
|
|
8
|
-
* @param logger - The debug logger instance to be used for logging.
|
|
9
|
-
* @param args - The arguments to be passed to the logger and any hook functions.
|
|
10
|
-
*/ function theFunctionThroughWhichAllLogsPass(logger, ...args) {
|
|
11
|
-
if (!debug.enabled(logger.namespace)) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (preLogHook) {
|
|
15
|
-
preLogHook(logger.namespace, ...args);
|
|
16
|
-
}
|
|
17
|
-
logger(...args);
|
|
18
|
-
if (postLogHook) {
|
|
19
|
-
postLogHook(logger.namespace, ...args);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Return a logger, meant to be silent by default and verbose during debugging.
|
|
24
|
-
* @param name - The module name of the logger.
|
|
25
|
-
* @returns A callable log function.
|
|
26
|
-
*/ export function createDebugOnlyLogger(name) {
|
|
27
|
-
const logger = debug(name);
|
|
28
|
-
return (...args)=>theFunctionThroughWhichAllLogsPass(logger, ...args);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Set a function to be called before each log message is handled by the debug logger.
|
|
32
|
-
* The hook function will receive the logger namespace and any arguments passed to the logger.
|
|
33
|
-
* This can be useful for adding additional context, filtering logs, or performing side-effects
|
|
34
|
-
* based on logged messages.
|
|
35
|
-
*
|
|
36
|
-
* @param fn - The function to be called before each log message.
|
|
37
|
-
*/ export function setPreDebugLogHook(fn) {
|
|
38
|
-
preLogHook = fn;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Set a callback function to be executed after each log is written by the debug logger.
|
|
42
|
-
* This allows additional behavior or side effects to occur after a log has been written,
|
|
43
|
-
* such as sending logs to external services, formatting output, or triggering events.
|
|
44
|
-
*
|
|
45
|
-
* @param fn - The callback function to be executed after each log. It receives the same arguments as the original log function call.
|
|
46
|
-
*/ export function setPostDebugLogHook(fn) {
|
|
47
|
-
postLogHook = fn;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Enable logs for the specified namespace(s) or wildcard pattern(s).
|
|
51
|
-
* This function activates the logging functionality for the given
|
|
52
|
-
* namespace(s) or pattern(s), allowing developers to selectively display
|
|
53
|
-
* debug logs that match the provided string(s).
|
|
54
|
-
*
|
|
55
|
-
* @param str - The namespace(s) or wildcard pattern(s) for which logs should be enabled.
|
|
56
|
-
*/ export function enableLogs(str) {
|
|
57
|
-
debug.enable(str);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Check if the logging is enabled for a given namespace.
|
|
61
|
-
* The input 'str' represents the namespace for which the log status is being checked.
|
|
62
|
-
* Returns true if the logging is enabled, otherwise false.
|
|
63
|
-
*
|
|
64
|
-
* @param str - The namespace string used to determine if logging is enabled.
|
|
65
|
-
* @returns A boolean indicating whether logging is enabled for the given namespace.
|
|
66
|
-
*/ export function isLogEnabled(str) {
|
|
67
|
-
return debug.enabled(str);
|
|
68
|
-
}
|
|
69
|
-
export function applyStringFormatting(formatStr, args) {
|
|
70
|
-
return formatStr.replace(/{(\d+)}/g, (match, index)=>{
|
|
71
|
-
return typeof args[index] === 'undefined' ? match : args[index].toString();
|
|
72
|
-
}).replace(/{}/g, (_match, _index)=>{
|
|
73
|
-
return args.toString();
|
|
74
|
-
});
|
|
75
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LogHistory is a utility class that provides the ability to store and manage debug logs.
|
|
3
|
-
* It can be enabled to record logs along with their timestamps, retrieve a specified number
|
|
4
|
-
* of recent logs, or clear stored logs based on a given count. This can be useful for debugging
|
|
5
|
-
* purposes, monitoring application activities, and maintaining log history.
|
|
6
|
-
*/
|
|
7
|
-
export declare class LogHistory {
|
|
8
|
-
private logs;
|
|
9
|
-
/**
|
|
10
|
-
* Enables the logging of debug messages with timestamps.
|
|
11
|
-
* Hooks into the pre-debug log and stores each log entry along with its timestamp in the logs array.
|
|
12
|
-
*/
|
|
13
|
-
enable(): void;
|
|
14
|
-
/**
|
|
15
|
-
* Retrieves a specified number of logs from the end of the log history or all logs if no argument is provided.
|
|
16
|
-
* The logs are ordered chronologically, with the oldest logs at the beginning of the array.
|
|
17
|
-
*
|
|
18
|
-
* @param last - Optional number representing the amount of recent logs to return. Defaults to 0, which returns all logs.
|
|
19
|
-
* @returns An array of log arrays, each containing a timestamp and log arguments.
|
|
20
|
-
*/
|
|
21
|
-
getLogs(last?: number): any[][];
|
|
22
|
-
/**
|
|
23
|
-
* Clear a specified number of logs from the beginning of the logs array.
|
|
24
|
-
* If no count is provided, it will clear all logs.
|
|
25
|
-
*
|
|
26
|
-
* @param count - The number of logs to be removed (default: total logs length).
|
|
27
|
-
*/
|
|
28
|
-
clear(count?: number): void;
|
|
29
|
-
}
|
|
30
|
-
export declare const logHistory: LogHistory;
|
|
31
|
-
//# sourceMappingURL=log_history.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"log_history.d.ts","sourceRoot":"","sources":["../../src/log/log_history.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,IAAI,CAAe;IAE3B;;;OAGG;IACI,MAAM;IAMb;;;;;;OAMG;IACI,OAAO,CAAC,IAAI,SAAI;IAIvB;;;;;OAKG;IACI,KAAK,CAAC,KAAK,SAAmB;CAGtC;AAED,eAAO,MAAM,UAAU,YAAmB,CAAC"}
|
package/dest/log/log_history.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { setPreDebugLogHook } from './debug.js';
|
|
2
|
-
/**
|
|
3
|
-
* LogHistory is a utility class that provides the ability to store and manage debug logs.
|
|
4
|
-
* It can be enabled to record logs along with their timestamps, retrieve a specified number
|
|
5
|
-
* of recent logs, or clear stored logs based on a given count. This can be useful for debugging
|
|
6
|
-
* purposes, monitoring application activities, and maintaining log history.
|
|
7
|
-
*/ export class LogHistory {
|
|
8
|
-
logs = [];
|
|
9
|
-
/**
|
|
10
|
-
* Enables the logging of debug messages with timestamps.
|
|
11
|
-
* Hooks into the pre-debug log and stores each log entry along with its timestamp in the logs array.
|
|
12
|
-
*/ enable() {
|
|
13
|
-
setPreDebugLogHook((...args)=>{
|
|
14
|
-
this.logs.push([
|
|
15
|
-
new Date().toISOString(),
|
|
16
|
-
...args
|
|
17
|
-
]);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves a specified number of logs from the end of the log history or all logs if no argument is provided.
|
|
22
|
-
* The logs are ordered chronologically, with the oldest logs at the beginning of the array.
|
|
23
|
-
*
|
|
24
|
-
* @param last - Optional number representing the amount of recent logs to return. Defaults to 0, which returns all logs.
|
|
25
|
-
* @returns An array of log arrays, each containing a timestamp and log arguments.
|
|
26
|
-
*/ getLogs(last = 0) {
|
|
27
|
-
return last ? this.logs.slice(-last) : this.logs;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Clear a specified number of logs from the beginning of the logs array.
|
|
31
|
-
* If no count is provided, it will clear all logs.
|
|
32
|
-
*
|
|
33
|
-
* @param count - The number of logs to be removed (default: total logs length).
|
|
34
|
-
*/ clear(count = this.logs.length) {
|
|
35
|
-
this.logs = this.logs.slice(count);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export const logHistory = new LogHistory();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transport/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { Socket } from '../interface/socket.js';
|
|
2
|
-
/**
|
|
3
|
-
* An implementation of a TransportSocket using MessagePorts.
|
|
4
|
-
*/
|
|
5
|
-
export declare class MessagePortSocket implements Socket {
|
|
6
|
-
private port;
|
|
7
|
-
constructor(port: MessagePort);
|
|
8
|
-
/**
|
|
9
|
-
* Send a message to the connected MessagePort, optionally transferring ownership of certain objects.
|
|
10
|
-
* The 'msg' parameter can be any structured data type and will be sent to the other end of the MessagePort.
|
|
11
|
-
* The optional 'transfer' parameter is an array of Transferable objects whose ownership will be transferred,
|
|
12
|
-
* making them inaccessible on the sending side. This can improve performance for large data transfers.
|
|
13
|
-
*
|
|
14
|
-
* @param msg - The message to be sent through the MessagePort.
|
|
15
|
-
* @param transfer - An optional array of Transferable objects to transfer ownership.
|
|
16
|
-
* @returns A Promise that resolves when the message has been sent.
|
|
17
|
-
*/
|
|
18
|
-
send(msg: any, transfer?: Transferable[]): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Register a callback function to handle incoming messages from the MessagePort.
|
|
21
|
-
* The provided callback will be invoked with the message data whenever a new message arrives.
|
|
22
|
-
* Note that only one callback can be registered at a time. Subsequent calls to this method
|
|
23
|
-
* will overwrite the previously registered callback.
|
|
24
|
-
*
|
|
25
|
-
* @param cb - The callback function to handle incoming messages.
|
|
26
|
-
*/
|
|
27
|
-
registerHandler(cb: (msg: any) => any): void;
|
|
28
|
-
/**
|
|
29
|
-
* Close the MessagePort, unregister the message handler, and send an undefined message.
|
|
30
|
-
* The 'close' function is useful for gracefully shutting down a connection between two
|
|
31
|
-
* endpoints by sending an undefined message as an indication of disconnection before
|
|
32
|
-
* closing the port. After calling this method, the MessagePortSocket instance should not
|
|
33
|
-
* be used again.
|
|
34
|
-
*/
|
|
35
|
-
close(): void;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=message_port_socket.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message_port_socket.d.ts","sourceRoot":"","sources":["../../../src/transport/browser/message_port_socket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;GAEG;AACH,qBAAa,iBAAkB,YAAW,MAAM;IAClC,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,WAAW;IAErC;;;;;;;;;OASG;IACH,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,GAAE,YAAY,EAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAK5D;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,GAAG,IAAI;IAI5C;;;;;;OAMG;IACH,KAAK;CAKN"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An implementation of a TransportSocket using MessagePorts.
|
|
3
|
-
*/ export class MessagePortSocket {
|
|
4
|
-
port;
|
|
5
|
-
constructor(port){
|
|
6
|
-
this.port = port;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Send a message to the connected MessagePort, optionally transferring ownership of certain objects.
|
|
10
|
-
* The 'msg' parameter can be any structured data type and will be sent to the other end of the MessagePort.
|
|
11
|
-
* The optional 'transfer' parameter is an array of Transferable objects whose ownership will be transferred,
|
|
12
|
-
* making them inaccessible on the sending side. This can improve performance for large data transfers.
|
|
13
|
-
*
|
|
14
|
-
* @param msg - The message to be sent through the MessagePort.
|
|
15
|
-
* @param transfer - An optional array of Transferable objects to transfer ownership.
|
|
16
|
-
* @returns A Promise that resolves when the message has been sent.
|
|
17
|
-
*/ send(msg, transfer = []) {
|
|
18
|
-
this.port.postMessage(msg, transfer);
|
|
19
|
-
return Promise.resolve();
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Register a callback function to handle incoming messages from the MessagePort.
|
|
23
|
-
* The provided callback will be invoked with the message data whenever a new message arrives.
|
|
24
|
-
* Note that only one callback can be registered at a time. Subsequent calls to this method
|
|
25
|
-
* will overwrite the previously registered callback.
|
|
26
|
-
*
|
|
27
|
-
* @param cb - The callback function to handle incoming messages.
|
|
28
|
-
*/ registerHandler(cb) {
|
|
29
|
-
this.port.onmessage = (event)=>cb(event.data);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Close the MessagePort, unregister the message handler, and send an undefined message.
|
|
33
|
-
* The 'close' function is useful for gracefully shutting down a connection between two
|
|
34
|
-
* endpoints by sending an undefined message as an indication of disconnection before
|
|
35
|
-
* closing the port. After calling this method, the MessagePortSocket instance should not
|
|
36
|
-
* be used again.
|
|
37
|
-
*/ close() {
|
|
38
|
-
void this.send(undefined);
|
|
39
|
-
this.port.onmessage = null;
|
|
40
|
-
this.port.close();
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Connector } from '../interface/connector.js';
|
|
2
|
-
import { MessagePortSocket } from './message_port_socket.js';
|
|
3
|
-
/**
|
|
4
|
-
* SharedWorkerConnector is an implementation of the Connector interface, specifically for SharedWorkers.
|
|
5
|
-
* It enables the creation of MessagePortSockets that communicate with a shared worker and allow
|
|
6
|
-
* multiple scripts to communicate with the worker using the same connection.
|
|
7
|
-
*/
|
|
8
|
-
export declare class SharedWorkerConnector implements Connector {
|
|
9
|
-
private worker;
|
|
10
|
-
constructor(worker: SharedWorker);
|
|
11
|
-
/**
|
|
12
|
-
* Creates a new MessagePortSocket instance using the SharedWorker's port.
|
|
13
|
-
* This method allows for easy creation of sockets to communicate with the SharedWorker.
|
|
14
|
-
*
|
|
15
|
-
* @returns A Promise that resolves to a new MessagePortSocket instance.
|
|
16
|
-
*/
|
|
17
|
-
createSocket(): Promise<MessagePortSocket>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=shared_worker_connector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared_worker_connector.d.ts","sourceRoot":"","sources":["../../../src/transport/browser/shared_worker_connector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;GAIG;AACH,qBAAa,qBAAsB,YAAW,SAAS;IACzC,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,YAAY;IAExC;;;;;OAKG;IACH,YAAY;CAGb"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MessagePortSocket } from './message_port_socket.js';
|
|
2
|
-
/**
|
|
3
|
-
* SharedWorkerConnector is an implementation of the Connector interface, specifically for SharedWorkers.
|
|
4
|
-
* It enables the creation of MessagePortSockets that communicate with a shared worker and allow
|
|
5
|
-
* multiple scripts to communicate with the worker using the same connection.
|
|
6
|
-
*/ export class SharedWorkerConnector {
|
|
7
|
-
worker;
|
|
8
|
-
constructor(worker){
|
|
9
|
-
this.worker = worker;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Creates a new MessagePortSocket instance using the SharedWorker's port.
|
|
13
|
-
* This method allows for easy creation of sockets to communicate with the SharedWorker.
|
|
14
|
-
*
|
|
15
|
-
* @returns A Promise that resolves to a new MessagePortSocket instance.
|
|
16
|
-
*/ createSocket() {
|
|
17
|
-
return Promise.resolve(new MessagePortSocket(this.worker.port));
|
|
18
|
-
}
|
|
19
|
-
}
|