@mainsail/contracts 0.0.1-evm.5 → 0.0.1-evm.50
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/distribution/contracts/api/api.d.ts +7 -14
- package/distribution/contracts/api/api.d.ts.map +1 -1
- package/distribution/contracts/api/rpc.d.ts +9 -13
- package/distribution/contracts/api/rpc.d.ts.map +1 -1
- package/distribution/contracts/api-sync.d.ts +7 -3
- package/distribution/contracts/api-sync.d.ts.map +1 -1
- package/distribution/contracts/blockchain-utilities.d.ts +19 -0
- package/distribution/contracts/blockchain-utilities.d.ts.map +1 -0
- package/distribution/contracts/cli/application.d.ts +15 -0
- package/distribution/contracts/cli/application.d.ts.map +1 -0
- package/distribution/contracts/cli/cli.d.ts +22 -0
- package/distribution/contracts/cli/cli.d.ts.map +1 -0
- package/distribution/contracts/cli/commands.d.ts +26 -0
- package/distribution/contracts/cli/commands.d.ts.map +1 -0
- package/distribution/contracts/cli/index.d.ts +6 -0
- package/distribution/contracts/cli/index.d.ts.map +1 -0
- package/distribution/contracts/cli/paths.d.ts +2 -0
- package/distribution/contracts/cli/paths.d.ts.map +1 -0
- package/distribution/contracts/cli/services.d.ts +106 -0
- package/distribution/contracts/cli/services.d.ts.map +1 -0
- package/distribution/contracts/consensus/consensus.d.ts +25 -22
- package/distribution/contracts/consensus/consensus.d.ts.map +1 -1
- package/distribution/contracts/consensus/enums.d.ts +3 -10
- package/distribution/contracts/consensus/enums.d.ts.map +1 -1
- package/distribution/contracts/consensus/processor.d.ts +4 -7
- package/distribution/contracts/consensus/processor.d.ts.map +1 -1
- package/distribution/contracts/consensus-storage.d.ts +8 -9
- package/distribution/contracts/consensus-storage.d.ts.map +1 -1
- package/distribution/contracts/crypto/block.d.ts +54 -53
- package/distribution/contracts/crypto/block.d.ts.map +1 -1
- package/distribution/contracts/crypto/commit-handler.d.ts +5 -0
- package/distribution/contracts/crypto/commit-handler.d.ts.map +1 -0
- package/distribution/contracts/crypto/commit.d.ts +11 -9
- package/distribution/contracts/crypto/commit.d.ts.map +1 -1
- package/distribution/contracts/crypto/config.d.ts +10 -7
- package/distribution/contracts/crypto/config.d.ts.map +1 -1
- package/distribution/contracts/crypto/crypto.d.ts +0 -1
- package/distribution/contracts/crypto/crypto.d.ts.map +1 -1
- package/distribution/contracts/crypto/hash.d.ts +4 -4
- package/distribution/contracts/crypto/hash.d.ts.map +1 -1
- package/distribution/contracts/crypto/identities.d.ts +15 -8
- package/distribution/contracts/crypto/identities.d.ts.map +1 -1
- package/distribution/contracts/crypto/index.d.ts +2 -1
- package/distribution/contracts/crypto/index.d.ts.map +1 -1
- package/distribution/contracts/crypto/messages.d.ts +17 -106
- package/distribution/contracts/crypto/messages.d.ts.map +1 -1
- package/distribution/contracts/crypto/networks.d.ts +17 -12
- package/distribution/contracts/crypto/networks.d.ts.map +1 -1
- package/distribution/contracts/crypto/proposal.d.ts +48 -0
- package/distribution/contracts/crypto/proposal.d.ts.map +1 -0
- package/distribution/contracts/crypto/transactions.d.ts +72 -113
- package/distribution/contracts/crypto/transactions.d.ts.map +1 -1
- package/distribution/contracts/crypto/validator.d.ts +5 -5
- package/distribution/contracts/crypto/validator.d.ts.map +1 -1
- package/distribution/contracts/crypto/worker.d.ts +23 -14
- package/distribution/contracts/crypto/worker.d.ts.map +1 -1
- package/distribution/contracts/database.d.ts +20 -9
- package/distribution/contracts/database.d.ts.map +1 -1
- package/distribution/contracts/evm/contract-service.d.ts +32 -0
- package/distribution/contracts/evm/contract-service.d.ts.map +1 -0
- package/distribution/contracts/evm/evm.d.ts +102 -37
- package/distribution/contracts/evm/evm.d.ts.map +1 -1
- package/distribution/contracts/evm/index.d.ts +3 -1
- package/distribution/contracts/evm/index.d.ts.map +1 -1
- package/distribution/contracts/evm/instance.d.ts +30 -0
- package/distribution/contracts/evm/instance.d.ts.map +1 -0
- package/distribution/contracts/evm/storage.d.ts +58 -0
- package/distribution/contracts/evm/storage.d.ts.map +1 -0
- package/distribution/contracts/evm/worker.d.ts +7 -10
- package/distribution/contracts/evm/worker.d.ts.map +1 -1
- package/distribution/contracts/forger.d.ts +15 -0
- package/distribution/contracts/forger.d.ts.map +1 -0
- package/distribution/contracts/index.d.ts +8 -5
- package/distribution/contracts/index.d.ts.map +1 -1
- package/distribution/contracts/kernel/application.d.ts +13 -17
- package/distribution/contracts/kernel/application.d.ts.map +1 -1
- package/distribution/contracts/kernel/cache.d.ts +1 -0
- package/distribution/contracts/kernel/cache.d.ts.map +1 -1
- package/distribution/contracts/kernel/container.d.ts +1 -1
- package/distribution/contracts/kernel/container.d.ts.map +1 -1
- package/distribution/contracts/kernel/events.d.ts +14 -19
- package/distribution/contracts/kernel/events.d.ts.map +1 -1
- package/distribution/contracts/kernel/filesystem.d.ts +7 -6
- package/distribution/contracts/kernel/filesystem.d.ts.map +1 -1
- package/distribution/contracts/kernel/index.d.ts +3 -2
- package/distribution/contracts/kernel/index.d.ts.map +1 -1
- package/distribution/contracts/kernel/ipc.d.ts +19 -19
- package/distribution/contracts/kernel/ipc.d.ts.map +1 -1
- package/distribution/contracts/kernel/log.d.ts +7 -8
- package/distribution/contracts/kernel/log.d.ts.map +1 -1
- package/distribution/contracts/kernel/pipeline.d.ts +7 -6
- package/distribution/contracts/kernel/pipeline.d.ts.map +1 -1
- package/distribution/contracts/kernel/providers.d.ts +13 -0
- package/distribution/contracts/kernel/providers.d.ts.map +1 -0
- package/distribution/contracts/kernel/queue.d.ts +3 -2
- package/distribution/contracts/kernel/queue.d.ts.map +1 -1
- package/distribution/contracts/kernel/repository.d.ts +2 -2
- package/distribution/contracts/kernel/repository.d.ts.map +1 -1
- package/distribution/contracts/kernel/trigger.d.ts +2 -0
- package/distribution/contracts/kernel/trigger.d.ts.map +1 -0
- package/distribution/contracts/network-generator.d.ts +22 -2
- package/distribution/contracts/network-generator.d.ts.map +1 -1
- package/distribution/contracts/p2p/api-node-discoverer.d.ts +2 -2
- package/distribution/contracts/p2p/api-node-discoverer.d.ts.map +1 -1
- package/distribution/contracts/p2p/api-node-processor.d.ts +1 -1
- package/distribution/contracts/p2p/api-node-processor.d.ts.map +1 -1
- package/distribution/contracts/p2p/api-node-repository.d.ts +1 -1
- package/distribution/contracts/p2p/api-node-repository.d.ts.map +1 -1
- package/distribution/contracts/p2p/api-node-verifier.d.ts +1 -1
- package/distribution/contracts/p2p/api-node-verifier.d.ts.map +1 -1
- package/distribution/contracts/p2p/api-node.d.ts +1 -1
- package/distribution/contracts/p2p/api-node.d.ts.map +1 -1
- package/distribution/contracts/p2p/broadcaster.d.ts +2 -3
- package/distribution/contracts/p2p/broadcaster.d.ts.map +1 -1
- package/distribution/contracts/p2p/downloader.d.ts +1 -1
- package/distribution/contracts/p2p/downloader.d.ts.map +1 -1
- package/distribution/contracts/p2p/endpoints.d.ts +15 -22
- package/distribution/contracts/p2p/endpoints.d.ts.map +1 -1
- package/distribution/contracts/p2p/enums.d.ts +2 -4
- package/distribution/contracts/p2p/enums.d.ts.map +1 -1
- package/distribution/contracts/p2p/header-service.d.ts +2 -2
- package/distribution/contracts/p2p/header-service.d.ts.map +1 -1
- package/distribution/contracts/p2p/header.d.ts +4 -4
- package/distribution/contracts/p2p/header.d.ts.map +1 -1
- package/distribution/contracts/p2p/index.d.ts +4 -3
- package/distribution/contracts/p2p/index.d.ts.map +1 -1
- package/distribution/contracts/p2p/log.d.ts +4 -11
- package/distribution/contracts/p2p/log.d.ts.map +1 -1
- package/distribution/contracts/p2p/nes.d.ts +3 -3
- package/distribution/contracts/p2p/nes.d.ts.map +1 -1
- package/distribution/contracts/p2p/peer-communicator.d.ts +5 -7
- package/distribution/contracts/p2p/peer-communicator.d.ts.map +1 -1
- package/distribution/contracts/p2p/peer-connector.d.ts +5 -3
- package/distribution/contracts/p2p/peer-connector.d.ts.map +1 -1
- package/distribution/contracts/p2p/peer-discoverer.d.ts +1 -1
- package/distribution/contracts/p2p/peer-discoverer.d.ts.map +1 -1
- package/distribution/contracts/p2p/peer-disposer.d.ts +1 -1
- package/distribution/contracts/p2p/peer-disposer.d.ts.map +1 -1
- package/distribution/contracts/p2p/peer-processor.d.ts +4 -3
- package/distribution/contracts/p2p/peer-processor.d.ts.map +1 -1
- package/distribution/contracts/p2p/peer-repository.d.ts +1 -1
- package/distribution/contracts/p2p/peer-repository.d.ts.map +1 -1
- package/distribution/contracts/p2p/peer-verifier.d.ts +1 -1
- package/distribution/contracts/p2p/peer-verifier.d.ts.map +1 -1
- package/distribution/contracts/p2p/peer.d.ts +12 -13
- package/distribution/contracts/p2p/peer.d.ts.map +1 -1
- package/distribution/contracts/p2p/server.d.ts +27 -3
- package/distribution/contracts/p2p/server.d.ts.map +1 -1
- package/distribution/contracts/p2p/service.d.ts +1 -1
- package/distribution/contracts/p2p/service.d.ts.map +1 -1
- package/distribution/contracts/p2p/state.d.ts +1 -1
- package/distribution/contracts/p2p/state.d.ts.map +1 -1
- package/distribution/contracts/p2p/statistic.d.ts +85 -0
- package/distribution/contracts/p2p/statistic.d.ts.map +1 -0
- package/distribution/contracts/processor/block-processor-result.d.ts +8 -0
- package/distribution/contracts/processor/block-processor-result.d.ts.map +1 -0
- package/distribution/contracts/processor/block-processor.d.ts +7 -0
- package/distribution/contracts/processor/block-processor.d.ts.map +1 -0
- package/distribution/contracts/processor/handler.d.ts +5 -0
- package/distribution/contracts/processor/handler.d.ts.map +1 -0
- package/distribution/contracts/processor/index.d.ts +7 -0
- package/distribution/contracts/processor/index.d.ts.map +1 -0
- package/distribution/contracts/processor/processable-unit.d.ts +16 -0
- package/distribution/contracts/processor/processable-unit.d.ts.map +1 -0
- package/distribution/contracts/processor/transaction-processor.d.ts +7 -0
- package/distribution/contracts/processor/transaction-processor.d.ts.map +1 -0
- package/distribution/contracts/processor/verifier.d.ts +5 -0
- package/distribution/contracts/processor/verifier.d.ts.map +1 -0
- package/distribution/contracts/serializer.d.ts +4 -5
- package/distribution/contracts/serializer.d.ts.map +1 -1
- package/distribution/contracts/shared/dynamic-fee.d.ts +1 -1
- package/distribution/contracts/shared/dynamic-fee.d.ts.map +1 -1
- package/distribution/contracts/snapshot.d.ts +59 -0
- package/distribution/contracts/snapshot.d.ts.map +1 -0
- package/distribution/contracts/state/store.d.ts +4 -4
- package/distribution/contracts/state/store.d.ts.map +1 -1
- package/distribution/contracts/state/wallets.d.ts +11 -8
- package/distribution/contracts/state/wallets.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/broadcaster.d.ts +4 -15
- package/distribution/contracts/transaction-pool/broadcaster.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/client.d.ts +1 -2
- package/distribution/contracts/transaction-pool/client.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/index.d.ts +1 -2
- package/distribution/contracts/transaction-pool/index.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/mempool.d.ts +2 -2
- package/distribution/contracts/transaction-pool/mempool.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/processor.d.ts +1 -2
- package/distribution/contracts/transaction-pool/processor.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/query.d.ts +2 -6
- package/distribution/contracts/transaction-pool/query.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/selector.d.ts +15 -0
- package/distribution/contracts/transaction-pool/selector.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/sender-mempool.d.ts +5 -3
- package/distribution/contracts/transaction-pool/sender-mempool.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/sender-state.d.ts +4 -2
- package/distribution/contracts/transaction-pool/sender-state.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/service.d.ts +2 -2
- package/distribution/contracts/transaction-pool/service.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/storage.d.ts +5 -6
- package/distribution/contracts/transaction-pool/storage.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/worker.d.ts +12 -14
- package/distribution/contracts/transaction-pool/worker.d.ts.map +1 -1
- package/distribution/contracts/transactions.d.ts +6 -31
- package/distribution/contracts/transactions.d.ts.map +1 -1
- package/distribution/contracts/types/index.d.ts +3 -7
- package/distribution/contracts/types/index.d.ts.map +1 -1
- package/distribution/contracts/validator-set.d.ts +3 -3
- package/distribution/contracts/validator-set.d.ts.map +1 -1
- package/distribution/contracts/validator.d.ts +3 -4
- package/distribution/contracts/validator.d.ts.map +1 -1
- package/distribution/contracts/webhooks.d.ts +8 -1
- package/distribution/contracts/webhooks.d.ts.map +1 -1
- package/distribution/index.d.ts +1 -6
- package/distribution/index.d.ts.map +1 -1
- package/distribution/{utils.d.ts → utilities.d.ts} +1 -1
- package/distribution/utilities.d.ts.map +1 -0
- package/package.json +16 -13
- package/distribution/constants/channels.d.ts +0 -2
- package/distribution/constants/channels.d.ts.map +0 -1
- package/distribution/constants/channels.js +0 -2
- package/distribution/constants/channels.js.map +0 -1
- package/distribution/constants/environment-variables.d.ts +0 -3
- package/distribution/constants/environment-variables.d.ts.map +0 -1
- package/distribution/constants/environment-variables.js +0 -136
- package/distribution/constants/environment-variables.js.map +0 -1
- package/distribution/constants/index.d.ts +0 -4
- package/distribution/constants/index.d.ts.map +0 -1
- package/distribution/constants/index.js +0 -4
- package/distribution/constants/index.js.map +0 -1
- package/distribution/constants/units.d.ts +0 -8
- package/distribution/constants/units.d.ts.map +0 -1
- package/distribution/constants/units.js +0 -9
- package/distribution/constants/units.js.map +0 -1
- package/distribution/contracts/api/api.js +0 -6
- package/distribution/contracts/api/api.js.map +0 -1
- package/distribution/contracts/api/index.js +0 -3
- package/distribution/contracts/api/index.js.map +0 -1
- package/distribution/contracts/api/rpc.js +0 -9
- package/distribution/contracts/api/rpc.js.map +0 -1
- package/distribution/contracts/api-sync.js +0 -2
- package/distribution/contracts/api-sync.js.map +0 -1
- package/distribution/contracts/consensus/consensus.js +0 -2
- package/distribution/contracts/consensus/consensus.js.map +0 -1
- package/distribution/contracts/consensus/enums.js +0 -13
- package/distribution/contracts/consensus/enums.js.map +0 -1
- package/distribution/contracts/consensus/index.js +0 -4
- package/distribution/contracts/consensus/index.js.map +0 -1
- package/distribution/contracts/consensus/processor.js +0 -2
- package/distribution/contracts/consensus/processor.js.map +0 -1
- package/distribution/contracts/consensus-storage.js +0 -2
- package/distribution/contracts/consensus-storage.js.map +0 -1
- package/distribution/contracts/crypto/block.js +0 -2
- package/distribution/contracts/crypto/block.js.map +0 -1
- package/distribution/contracts/crypto/commit.js +0 -2
- package/distribution/contracts/crypto/commit.js.map +0 -1
- package/distribution/contracts/crypto/config.js +0 -2
- package/distribution/contracts/crypto/config.js.map +0 -1
- package/distribution/contracts/crypto/crypto.js +0 -2
- package/distribution/contracts/crypto/crypto.js.map +0 -1
- package/distribution/contracts/crypto/enums.d.ts +0 -17
- package/distribution/contracts/crypto/enums.d.ts.map +0 -1
- package/distribution/contracts/crypto/enums.js +0 -20
- package/distribution/contracts/crypto/enums.js.map +0 -1
- package/distribution/contracts/crypto/hash.js +0 -2
- package/distribution/contracts/crypto/hash.js.map +0 -1
- package/distribution/contracts/crypto/identities.js +0 -2
- package/distribution/contracts/crypto/identities.js.map +0 -1
- package/distribution/contracts/crypto/index.js +0 -14
- package/distribution/contracts/crypto/index.js.map +0 -1
- package/distribution/contracts/crypto/messages.js +0 -6
- package/distribution/contracts/crypto/messages.js.map +0 -1
- package/distribution/contracts/crypto/networks.js +0 -2
- package/distribution/contracts/crypto/networks.js.map +0 -1
- package/distribution/contracts/crypto/signatures.js +0 -2
- package/distribution/contracts/crypto/signatures.js.map +0 -1
- package/distribution/contracts/crypto/transactions.js +0 -2
- package/distribution/contracts/crypto/transactions.js.map +0 -1
- package/distribution/contracts/crypto/validator.js +0 -2
- package/distribution/contracts/crypto/validator.js.map +0 -1
- package/distribution/contracts/crypto/worker.js +0 -2
- package/distribution/contracts/crypto/worker.js.map +0 -1
- package/distribution/contracts/database.js +0 -2
- package/distribution/contracts/database.js.map +0 -1
- package/distribution/contracts/evm/evm.js +0 -13
- package/distribution/contracts/evm/evm.js.map +0 -1
- package/distribution/contracts/evm/gas-fee.d.ts +0 -10
- package/distribution/contracts/evm/gas-fee.d.ts.map +0 -1
- package/distribution/contracts/evm/gas-fee.js +0 -2
- package/distribution/contracts/evm/gas-fee.js.map +0 -1
- package/distribution/contracts/evm/index.js +0 -5
- package/distribution/contracts/evm/index.js.map +0 -1
- package/distribution/contracts/evm/state.js +0 -2
- package/distribution/contracts/evm/state.js.map +0 -1
- package/distribution/contracts/evm/worker.js +0 -2
- package/distribution/contracts/evm/worker.js.map +0 -1
- package/distribution/contracts/index.js +0 -22
- package/distribution/contracts/index.js.map +0 -1
- package/distribution/contracts/kernel/application.js +0 -2
- package/distribution/contracts/kernel/application.js.map +0 -1
- package/distribution/contracts/kernel/cache.js +0 -2
- package/distribution/contracts/kernel/cache.js.map +0 -1
- package/distribution/contracts/kernel/config.js +0 -2
- package/distribution/contracts/kernel/config.js.map +0 -1
- package/distribution/contracts/kernel/container.js +0 -2
- package/distribution/contracts/kernel/container.js.map +0 -1
- package/distribution/contracts/kernel/environment-variables.d.ts +0 -3
- package/distribution/contracts/kernel/environment-variables.d.ts.map +0 -1
- package/distribution/contracts/kernel/environment-variables.js +0 -2
- package/distribution/contracts/kernel/environment-variables.js.map +0 -1
- package/distribution/contracts/kernel/events.js +0 -2
- package/distribution/contracts/kernel/events.js.map +0 -1
- package/distribution/contracts/kernel/filesystem.js +0 -2
- package/distribution/contracts/kernel/filesystem.js.map +0 -1
- package/distribution/contracts/kernel/index.js +0 -15
- package/distribution/contracts/kernel/index.js.map +0 -1
- package/distribution/contracts/kernel/ipc.js +0 -2
- package/distribution/contracts/kernel/ipc.js.map +0 -1
- package/distribution/contracts/kernel/lock.js +0 -2
- package/distribution/contracts/kernel/lock.js.map +0 -1
- package/distribution/contracts/kernel/log.js +0 -2
- package/distribution/contracts/kernel/log.js.map +0 -1
- package/distribution/contracts/kernel/pipeline.js +0 -2
- package/distribution/contracts/kernel/pipeline.js.map +0 -1
- package/distribution/contracts/kernel/queue.js +0 -2
- package/distribution/contracts/kernel/queue.js.map +0 -1
- package/distribution/contracts/kernel/repository.js +0 -2
- package/distribution/contracts/kernel/repository.js.map +0 -1
- package/distribution/contracts/kernel/validation.js +0 -2
- package/distribution/contracts/kernel/validation.js.map +0 -1
- package/distribution/contracts/network-generator.js +0 -2
- package/distribution/contracts/network-generator.js.map +0 -1
- package/distribution/contracts/p2p/api-node-discoverer.js +0 -2
- package/distribution/contracts/p2p/api-node-discoverer.js.map +0 -1
- package/distribution/contracts/p2p/api-node-processor.js +0 -2
- package/distribution/contracts/p2p/api-node-processor.js.map +0 -1
- package/distribution/contracts/p2p/api-node-repository.js +0 -2
- package/distribution/contracts/p2p/api-node-repository.js.map +0 -1
- package/distribution/contracts/p2p/api-node-verifier.js +0 -2
- package/distribution/contracts/p2p/api-node-verifier.js.map +0 -1
- package/distribution/contracts/p2p/api-node.js +0 -2
- package/distribution/contracts/p2p/api-node.js.map +0 -1
- package/distribution/contracts/p2p/broadcaster.js +0 -2
- package/distribution/contracts/p2p/broadcaster.js.map +0 -1
- package/distribution/contracts/p2p/downloader.js +0 -2
- package/distribution/contracts/p2p/downloader.js.map +0 -1
- package/distribution/contracts/p2p/endpoints.js +0 -2
- package/distribution/contracts/p2p/endpoints.js.map +0 -1
- package/distribution/contracts/p2p/enums.js +0 -6
- package/distribution/contracts/p2p/enums.js.map +0 -1
- package/distribution/contracts/p2p/header-service.js +0 -2
- package/distribution/contracts/p2p/header-service.js.map +0 -1
- package/distribution/contracts/p2p/header.js +0 -2
- package/distribution/contracts/p2p/header.js.map +0 -1
- package/distribution/contracts/p2p/index.js +0 -26
- package/distribution/contracts/p2p/index.js.map +0 -1
- package/distribution/contracts/p2p/log.js +0 -2
- package/distribution/contracts/p2p/log.js.map +0 -1
- package/distribution/contracts/p2p/nes.js +0 -2
- package/distribution/contracts/p2p/nes.js.map +0 -1
- package/distribution/contracts/p2p/peer-communicator.js +0 -2
- package/distribution/contracts/p2p/peer-communicator.js.map +0 -1
- package/distribution/contracts/p2p/peer-connector.js +0 -2
- package/distribution/contracts/p2p/peer-connector.js.map +0 -1
- package/distribution/contracts/p2p/peer-discoverer.js +0 -2
- package/distribution/contracts/p2p/peer-discoverer.js.map +0 -1
- package/distribution/contracts/p2p/peer-disposer.js +0 -2
- package/distribution/contracts/p2p/peer-disposer.js.map +0 -1
- package/distribution/contracts/p2p/peer-processor.js +0 -2
- package/distribution/contracts/p2p/peer-processor.js.map +0 -1
- package/distribution/contracts/p2p/peer-repository.js +0 -2
- package/distribution/contracts/p2p/peer-repository.js.map +0 -1
- package/distribution/contracts/p2p/peer-verifier.js +0 -2
- package/distribution/contracts/p2p/peer-verifier.js.map +0 -1
- package/distribution/contracts/p2p/peer.js +0 -2
- package/distribution/contracts/p2p/peer.js.map +0 -1
- package/distribution/contracts/p2p/server.js +0 -2
- package/distribution/contracts/p2p/server.js.map +0 -1
- package/distribution/contracts/p2p/service.js +0 -2
- package/distribution/contracts/p2p/service.js.map +0 -1
- package/distribution/contracts/p2p/state.js +0 -2
- package/distribution/contracts/p2p/state.js.map +0 -1
- package/distribution/contracts/p2p/tx-pool-node.js +0 -2
- package/distribution/contracts/p2p/tx-pool-node.js.map +0 -1
- package/distribution/contracts/processor.d.ts +0 -33
- package/distribution/contracts/processor.d.ts.map +0 -1
- package/distribution/contracts/processor.js +0 -2
- package/distribution/contracts/processor.js.map +0 -1
- package/distribution/contracts/proposer.d.ts +0 -5
- package/distribution/contracts/proposer.d.ts.map +0 -1
- package/distribution/contracts/proposer.js +0 -2
- package/distribution/contracts/proposer.js.map +0 -1
- package/distribution/contracts/serializer.js +0 -2
- package/distribution/contracts/serializer.js.map +0 -1
- package/distribution/contracts/shared/dynamic-fee.js +0 -2
- package/distribution/contracts/shared/dynamic-fee.js.map +0 -1
- package/distribution/contracts/shared/index.js +0 -3
- package/distribution/contracts/shared/index.js.map +0 -1
- package/distribution/contracts/shared/rounds.js +0 -2
- package/distribution/contracts/shared/rounds.js.map +0 -1
- package/distribution/contracts/state/index.js +0 -4
- package/distribution/contracts/state/index.js.map +0 -1
- package/distribution/contracts/state/state.js +0 -2
- package/distribution/contracts/state/state.js.map +0 -1
- package/distribution/contracts/state/store.js +0 -2
- package/distribution/contracts/state/store.js.map +0 -1
- package/distribution/contracts/state/wallets.js +0 -2
- package/distribution/contracts/state/wallets.js.map +0 -1
- package/distribution/contracts/transaction-pool/broadcaster.js +0 -6
- package/distribution/contracts/transaction-pool/broadcaster.js.map +0 -1
- package/distribution/contracts/transaction-pool/client.js +0 -2
- package/distribution/contracts/transaction-pool/client.js.map +0 -1
- package/distribution/contracts/transaction-pool/dynamic-fee-matcher.d.ts +0 -6
- package/distribution/contracts/transaction-pool/dynamic-fee-matcher.d.ts.map +0 -1
- package/distribution/contracts/transaction-pool/dynamic-fee-matcher.js +0 -2
- package/distribution/contracts/transaction-pool/dynamic-fee-matcher.js.map +0 -1
- package/distribution/contracts/transaction-pool/expiration-service.d.ts +0 -7
- package/distribution/contracts/transaction-pool/expiration-service.d.ts.map +0 -1
- package/distribution/contracts/transaction-pool/expiration-service.js +0 -2
- package/distribution/contracts/transaction-pool/expiration-service.js.map +0 -1
- package/distribution/contracts/transaction-pool/index.js +0 -13
- package/distribution/contracts/transaction-pool/index.js.map +0 -1
- package/distribution/contracts/transaction-pool/mempool.js +0 -2
- package/distribution/contracts/transaction-pool/mempool.js.map +0 -1
- package/distribution/contracts/transaction-pool/processor.js +0 -2
- package/distribution/contracts/transaction-pool/processor.js.map +0 -1
- package/distribution/contracts/transaction-pool/query.js +0 -2
- package/distribution/contracts/transaction-pool/query.js.map +0 -1
- package/distribution/contracts/transaction-pool/sender-mempool.js +0 -2
- package/distribution/contracts/transaction-pool/sender-mempool.js.map +0 -1
- package/distribution/contracts/transaction-pool/sender-state.js +0 -2
- package/distribution/contracts/transaction-pool/sender-state.js.map +0 -1
- package/distribution/contracts/transaction-pool/service.js +0 -2
- package/distribution/contracts/transaction-pool/service.js.map +0 -1
- package/distribution/contracts/transaction-pool/storage.js +0 -2
- package/distribution/contracts/transaction-pool/storage.js.map +0 -1
- package/distribution/contracts/transaction-pool/worker.js +0 -2
- package/distribution/contracts/transaction-pool/worker.js.map +0 -1
- package/distribution/contracts/transactions.js +0 -2
- package/distribution/contracts/transactions.js.map +0 -1
- package/distribution/contracts/types/container.d.ts +0 -4
- package/distribution/contracts/types/container.d.ts.map +0 -1
- package/distribution/contracts/types/container.js +0 -2
- package/distribution/contracts/types/container.js.map +0 -1
- package/distribution/contracts/types/index.js +0 -2
- package/distribution/contracts/types/index.js.map +0 -1
- package/distribution/contracts/validator-set.js +0 -2
- package/distribution/contracts/validator-set.js.map +0 -1
- package/distribution/contracts/validator.js +0 -2
- package/distribution/contracts/validator.js.map +0 -1
- package/distribution/contracts/webhooks.js +0 -2
- package/distribution/contracts/webhooks.js.map +0 -1
- package/distribution/events.d.ts +0 -85
- package/distribution/events.d.ts.map +0 -1
- package/distribution/events.js +0 -100
- package/distribution/events.js.map +0 -1
- package/distribution/exceptions/base.d.ts +0 -4
- package/distribution/exceptions/base.d.ts.map +0 -1
- package/distribution/exceptions/base.js +0 -15
- package/distribution/exceptions/base.js.map +0 -1
- package/distribution/exceptions/cli.d.ts +0 -8
- package/distribution/exceptions/cli.d.ts.map +0 -1
- package/distribution/exceptions/cli.js +0 -12
- package/distribution/exceptions/cli.js.map +0 -1
- package/distribution/exceptions/config.d.ts +0 -19
- package/distribution/exceptions/config.d.ts.map +0 -1
- package/distribution/exceptions/config.js +0 -25
- package/distribution/exceptions/config.js.map +0 -1
- package/distribution/exceptions/consensus.d.ts +0 -5
- package/distribution/exceptions/consensus.d.ts.map +0 -1
- package/distribution/exceptions/consensus.js +0 -7
- package/distribution/exceptions/consensus.js.map +0 -1
- package/distribution/exceptions/container.d.ts +0 -18
- package/distribution/exceptions/container.d.ts.map +0 -1
- package/distribution/exceptions/container.js +0 -22
- package/distribution/exceptions/container.js.map +0 -1
- package/distribution/exceptions/crypto.d.ts +0 -202
- package/distribution/exceptions/crypto.d.ts.map +0 -1
- package/distribution/exceptions/crypto.js +0 -335
- package/distribution/exceptions/crypto.js.map +0 -1
- package/distribution/exceptions/filesystem.d.ts +0 -12
- package/distribution/exceptions/filesystem.d.ts.map +0 -1
- package/distribution/exceptions/filesystem.js +0 -16
- package/distribution/exceptions/filesystem.js.map +0 -1
- package/distribution/exceptions/index.d.ts +0 -17
- package/distribution/exceptions/index.d.ts.map +0 -1
- package/distribution/exceptions/index.js +0 -17
- package/distribution/exceptions/index.js.map +0 -1
- package/distribution/exceptions/logic.d.ts +0 -28
- package/distribution/exceptions/logic.d.ts.map +0 -1
- package/distribution/exceptions/logic.js +0 -36
- package/distribution/exceptions/logic.js.map +0 -1
- package/distribution/exceptions/p2p.d.ts +0 -24
- package/distribution/exceptions/p2p.d.ts.map +0 -1
- package/distribution/exceptions/p2p.js +0 -37
- package/distribution/exceptions/p2p.js.map +0 -1
- package/distribution/exceptions/plugins.d.ts +0 -27
- package/distribution/exceptions/plugins.d.ts.map +0 -1
- package/distribution/exceptions/plugins.js +0 -43
- package/distribution/exceptions/plugins.js.map +0 -1
- package/distribution/exceptions/pool.d.ts +0 -50
- package/distribution/exceptions/pool.d.ts.map +0 -1
- package/distribution/exceptions/pool.js +0 -74
- package/distribution/exceptions/pool.js.map +0 -1
- package/distribution/exceptions/processor.d.ts +0 -26
- package/distribution/exceptions/processor.d.ts.map +0 -1
- package/distribution/exceptions/processor.js +0 -39
- package/distribution/exceptions/processor.js.map +0 -1
- package/distribution/exceptions/rpc.d.ts +0 -6
- package/distribution/exceptions/rpc.d.ts.map +0 -1
- package/distribution/exceptions/rpc.js +0 -8
- package/distribution/exceptions/rpc.js.map +0 -1
- package/distribution/exceptions/runtime.d.ts +0 -9
- package/distribution/exceptions/runtime.d.ts.map +0 -1
- package/distribution/exceptions/runtime.js +0 -11
- package/distribution/exceptions/runtime.js.map +0 -1
- package/distribution/exceptions/state.d.ts +0 -8
- package/distribution/exceptions/state.d.ts.map +0 -1
- package/distribution/exceptions/state.js +0 -12
- package/distribution/exceptions/state.js.map +0 -1
- package/distribution/exceptions/validation.d.ts +0 -5
- package/distribution/exceptions/validation.d.ts.map +0 -1
- package/distribution/exceptions/validation.js +0 -7
- package/distribution/exceptions/validation.js.map +0 -1
- package/distribution/identifiers.d.ts +0 -298
- package/distribution/identifiers.d.ts.map +0 -1
- package/distribution/identifiers.js +0 -298
- package/distribution/identifiers.js.map +0 -1
- package/distribution/index.js +0 -8
- package/distribution/index.js.map +0 -1
- package/distribution/utils.d.ts.map +0 -1
- package/distribution/utils.js +0 -2
- package/distribution/utils.js.map +0 -1
|
@@ -1,48 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export declare enum EvmMode {
|
|
4
|
-
Ephemeral = 0,
|
|
5
|
-
Persistent = 1
|
|
6
|
-
}
|
|
1
|
+
import type { Enums } from "@mainsail/constants";
|
|
2
|
+
import type { Log } from "viem";
|
|
7
3
|
export interface GenesisInfo {
|
|
8
4
|
readonly account: string;
|
|
9
5
|
readonly deployerAccount: string;
|
|
10
6
|
readonly validatorContract: string;
|
|
7
|
+
readonly usernameContract: string;
|
|
8
|
+
readonly initialBlockNumber: bigint;
|
|
11
9
|
readonly initialSupply: bigint;
|
|
12
10
|
}
|
|
13
|
-
export interface Instance extends CommitHandler {
|
|
14
|
-
prepareNextCommit(context: PrepareNextCommitContext): Promise<void>;
|
|
15
|
-
process(txContext: TransactionContext): Promise<ProcessResult>;
|
|
16
|
-
view(viewContext: TransactionViewContext): Promise<ViewResult>;
|
|
17
|
-
initializeGenesis(commit: GenesisInfo): Promise<void>;
|
|
18
|
-
getAccountInfo(address: string): Promise<AccountInfo>;
|
|
19
|
-
calculateTopValidators(context: CalculateTopValidatorsContext): Promise<void>;
|
|
20
|
-
updateRewardsAndVotes(context: UpdateRewardsAndVotesContext): Promise<void>;
|
|
21
|
-
stateHash(commitKey: CommitKey, currentHash: string): Promise<string>;
|
|
22
|
-
codeAt(address: string): Promise<string>;
|
|
23
|
-
storageAt(address: string, slot: bigint): Promise<string>;
|
|
24
|
-
mode(): EvmMode;
|
|
25
|
-
}
|
|
26
11
|
export interface ProcessResult {
|
|
27
12
|
readonly receipt: TransactionReceipt;
|
|
28
|
-
|
|
13
|
+
}
|
|
14
|
+
export interface SimulateResult {
|
|
15
|
+
readonly receipt: TransactionReceipt;
|
|
29
16
|
}
|
|
30
17
|
export interface ViewResult {
|
|
31
18
|
readonly success: boolean;
|
|
32
19
|
readonly output?: Buffer;
|
|
33
20
|
}
|
|
34
|
-
export interface
|
|
21
|
+
export interface PreverifyTransactionResult {
|
|
22
|
+
readonly success: boolean;
|
|
23
|
+
readonly initialGasUsed: bigint;
|
|
24
|
+
readonly error?: string;
|
|
35
25
|
}
|
|
36
26
|
export interface AccountInfo {
|
|
37
27
|
readonly nonce: bigint;
|
|
38
28
|
readonly balance: bigint;
|
|
39
29
|
}
|
|
30
|
+
export interface AccountInfoExtended extends AccountInfo {
|
|
31
|
+
readonly address: string;
|
|
32
|
+
readonly legacyAttributes: LegacyAttributes;
|
|
33
|
+
}
|
|
34
|
+
export interface ImportLegacyColdWallet {
|
|
35
|
+
readonly address: string;
|
|
36
|
+
readonly balance: bigint;
|
|
37
|
+
readonly legacyAttributes: LegacyAttributes;
|
|
38
|
+
}
|
|
39
|
+
export interface LegacyColdWallet {
|
|
40
|
+
readonly address: string;
|
|
41
|
+
readonly balance: bigint;
|
|
42
|
+
readonly legacyAttributes: LegacyAttributes;
|
|
43
|
+
readonly mergeInfo?: AccountMergeInfo;
|
|
44
|
+
}
|
|
45
|
+
export interface AccountMergeInfo {
|
|
46
|
+
readonly address: string;
|
|
47
|
+
readonly txHash: string;
|
|
48
|
+
}
|
|
49
|
+
export interface LegacyAttributes {
|
|
50
|
+
readonly legacyNonce?: bigint;
|
|
51
|
+
readonly secondPublicKey?: string;
|
|
52
|
+
readonly multiSignature?: LegacyMultiSignatureAttribute;
|
|
53
|
+
}
|
|
54
|
+
export interface LegacyMultiSignatureAttribute {
|
|
55
|
+
readonly min: number;
|
|
56
|
+
readonly publicKeys: string[];
|
|
57
|
+
}
|
|
40
58
|
export interface AccountUpdate {
|
|
41
59
|
readonly address: string;
|
|
42
60
|
readonly balance: bigint;
|
|
43
61
|
readonly nonce: bigint;
|
|
44
62
|
readonly vote?: string;
|
|
45
63
|
readonly unvote?: string;
|
|
64
|
+
readonly username?: string;
|
|
65
|
+
readonly usernameResigned: boolean;
|
|
66
|
+
readonly legacyMergeInfo?: AccountMergeInfo;
|
|
46
67
|
}
|
|
47
68
|
export interface AccountUpdateContext {
|
|
48
69
|
readonly account: string;
|
|
@@ -52,25 +73,68 @@ export interface AccountUpdateContext {
|
|
|
52
73
|
export interface PrepareNextCommitContext {
|
|
53
74
|
readonly commitKey: CommitKey;
|
|
54
75
|
}
|
|
76
|
+
export interface PreverifyTransactionContext {
|
|
77
|
+
readonly from: string;
|
|
78
|
+
readonly legacyAddress?: string;
|
|
79
|
+
/** Omit recipient when deploying a contract */
|
|
80
|
+
readonly to?: string;
|
|
81
|
+
readonly gasLimit: bigint;
|
|
82
|
+
readonly value: bigint;
|
|
83
|
+
readonly gasPrice: bigint;
|
|
84
|
+
readonly nonce: bigint;
|
|
85
|
+
readonly data: Buffer;
|
|
86
|
+
readonly txHash: string;
|
|
87
|
+
readonly index?: number;
|
|
88
|
+
readonly specId: SpecId;
|
|
89
|
+
readonly blockGasLimit: bigint;
|
|
90
|
+
}
|
|
55
91
|
export interface TransactionContext {
|
|
56
|
-
readonly
|
|
92
|
+
readonly from: string;
|
|
93
|
+
readonly legacyAddress?: string;
|
|
57
94
|
/** Omit recipient when deploying a contract */
|
|
58
|
-
readonly
|
|
95
|
+
readonly to?: string;
|
|
59
96
|
readonly gasLimit: bigint;
|
|
60
97
|
readonly value: bigint;
|
|
61
|
-
readonly gasPrice
|
|
98
|
+
readonly gasPrice: bigint;
|
|
62
99
|
readonly nonce: bigint;
|
|
63
100
|
readonly data: Buffer;
|
|
64
101
|
readonly blockContext: BlockContext;
|
|
65
102
|
readonly txHash: string;
|
|
66
|
-
readonly
|
|
103
|
+
readonly specId: SpecId;
|
|
104
|
+
}
|
|
105
|
+
export interface TransactionSimulateContext {
|
|
106
|
+
readonly from: string;
|
|
107
|
+
/** Omit recipient when deploying a contract */
|
|
108
|
+
readonly to?: string;
|
|
109
|
+
readonly gasLimit: bigint;
|
|
110
|
+
readonly value: bigint;
|
|
111
|
+
readonly gasPrice: bigint;
|
|
112
|
+
readonly nonce: bigint;
|
|
113
|
+
readonly data: Buffer;
|
|
114
|
+
readonly blockContext: BlockContext;
|
|
67
115
|
readonly specId: SpecId;
|
|
68
116
|
}
|
|
69
117
|
export interface TransactionViewContext {
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
118
|
+
readonly from: string;
|
|
119
|
+
readonly to: string;
|
|
72
120
|
readonly data: Buffer;
|
|
73
121
|
readonly specId: SpecId;
|
|
122
|
+
readonly gasLimit?: bigint;
|
|
123
|
+
}
|
|
124
|
+
export interface GetAccountsResult {
|
|
125
|
+
readonly nextOffset?: bigint;
|
|
126
|
+
readonly accounts: AccountInfoExtended[];
|
|
127
|
+
}
|
|
128
|
+
export interface GetLegacyColdWalletsResult {
|
|
129
|
+
readonly nextOffset?: bigint;
|
|
130
|
+
readonly wallets: LegacyColdWallet[];
|
|
131
|
+
}
|
|
132
|
+
export interface GetReceiptsResult {
|
|
133
|
+
readonly nextOffset?: bigint;
|
|
134
|
+
readonly receipts: TransactionReceipt[];
|
|
135
|
+
}
|
|
136
|
+
export interface GetReceiptResult {
|
|
137
|
+
readonly receipt?: TransactionReceipt;
|
|
74
138
|
}
|
|
75
139
|
export interface BlockContext {
|
|
76
140
|
readonly commitKey: CommitKey;
|
|
@@ -78,11 +142,11 @@ export interface BlockContext {
|
|
|
78
142
|
readonly timestamp: bigint;
|
|
79
143
|
readonly validatorAddress: string;
|
|
80
144
|
}
|
|
81
|
-
export interface
|
|
145
|
+
export interface CalculateRoundValidatorsContext {
|
|
82
146
|
readonly commitKey: CommitKey;
|
|
83
147
|
readonly timestamp: bigint;
|
|
84
148
|
readonly validatorAddress: string;
|
|
85
|
-
readonly
|
|
149
|
+
readonly roundValidators: bigint;
|
|
86
150
|
readonly specId: SpecId;
|
|
87
151
|
}
|
|
88
152
|
export interface UpdateRewardsAndVotesContext {
|
|
@@ -93,19 +157,20 @@ export interface UpdateRewardsAndVotesContext {
|
|
|
93
157
|
readonly specId: SpecId;
|
|
94
158
|
}
|
|
95
159
|
export interface CommitKey {
|
|
96
|
-
readonly
|
|
160
|
+
readonly blockNumber: bigint;
|
|
97
161
|
readonly round: bigint;
|
|
162
|
+
readonly blockHash?: string;
|
|
98
163
|
}
|
|
99
164
|
export interface TransactionReceipt {
|
|
165
|
+
readonly cumulativeGasUsed: bigint;
|
|
100
166
|
readonly gasUsed: bigint;
|
|
101
167
|
readonly gasRefunded: bigint;
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly logs:
|
|
168
|
+
readonly status: number;
|
|
169
|
+
readonly contractAddress?: string;
|
|
170
|
+
readonly logs: Log[];
|
|
105
171
|
readonly output?: Buffer;
|
|
172
|
+
readonly blockNumber?: bigint;
|
|
173
|
+
readonly txHash?: string;
|
|
106
174
|
}
|
|
107
|
-
export
|
|
108
|
-
SHANGHAI = "Shanghai",
|
|
109
|
-
LATEST = "Latest"
|
|
110
|
-
}
|
|
175
|
+
export type SpecId = Enums.Evm.SpecId;
|
|
111
176
|
//# sourceMappingURL=evm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../source/contracts/evm/evm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../../source/contracts/evm/evm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEhC,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC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-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/contracts/evm/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/contracts/evm/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { CommitHandler } from "../crypto/commit-handler.js";
|
|
2
|
+
import type { AccountInfo, AccountInfoExtended, CalculateRoundValidatorsContext, CommitKey, GenesisInfo, GetAccountsResult, GetLegacyColdWalletsResult, GetReceiptResult, GetReceiptsResult, ImportLegacyColdWallet, LegacyAttributes, PrepareNextCommitContext, PreverifyTransactionContext, PreverifyTransactionResult, ProcessResult, SimulateResult, TransactionContext, TransactionReceipt, TransactionSimulateContext, TransactionViewContext, UpdateRewardsAndVotesContext, ViewResult } from "./evm.js";
|
|
3
|
+
export interface Instance extends CommitHandler {
|
|
4
|
+
prepareNextCommit(context: PrepareNextCommitContext): Promise<void>;
|
|
5
|
+
preverifyTransaction(txContext: PreverifyTransactionContext): Promise<PreverifyTransactionResult>;
|
|
6
|
+
process(txContext: TransactionContext): Promise<ProcessResult>;
|
|
7
|
+
simulate(txContext: TransactionSimulateContext): Promise<SimulateResult>;
|
|
8
|
+
view(viewContext: TransactionViewContext): Promise<ViewResult>;
|
|
9
|
+
initializeGenesis(commit: GenesisInfo): Promise<void>;
|
|
10
|
+
getAccountInfo(address: string, height?: bigint): Promise<AccountInfo>;
|
|
11
|
+
getAccountInfoExtended(address: string, legacyAddress?: string): Promise<AccountInfoExtended>;
|
|
12
|
+
importAccountInfos(infos: AccountInfoExtended[]): Promise<void>;
|
|
13
|
+
importLegacyColdWallets(wallets: ImportLegacyColdWallet[]): Promise<void>;
|
|
14
|
+
getAccounts(offset: bigint, limit: bigint): Promise<GetAccountsResult>;
|
|
15
|
+
getLegacyAttributes(address: string, legacyAddress?: string): Promise<LegacyAttributes | undefined>;
|
|
16
|
+
getLegacyColdWallets(offset: bigint, limit: bigint): Promise<GetLegacyColdWalletsResult>;
|
|
17
|
+
getReceipts(offset: bigint, limit: bigint): Promise<GetReceiptsResult>;
|
|
18
|
+
getReceiptsByBlockNumber(blockNumber: bigint): Promise<Record<string, TransactionReceipt>>;
|
|
19
|
+
getReceipt(height: bigint, txHash: string): Promise<GetReceiptResult>;
|
|
20
|
+
calculateRoundValidators(context: CalculateRoundValidatorsContext): Promise<void>;
|
|
21
|
+
updateRewardsAndVotes(context: UpdateRewardsAndVotesContext): Promise<void>;
|
|
22
|
+
logsBloom(commitKey: CommitKey): Promise<string>;
|
|
23
|
+
stateRoot(commitKey: CommitKey, currentHash: string): Promise<string>;
|
|
24
|
+
codeAt(address: string, height?: bigint): Promise<string>;
|
|
25
|
+
storageAt(address: string, slot: bigint): Promise<string>;
|
|
26
|
+
snapshot(commitKey: CommitKey): Promise<void>;
|
|
27
|
+
rollback(commitKey: CommitKey): Promise<void>;
|
|
28
|
+
dispose(): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=instance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance.d.ts","sourceRoot":"","sources":["../../../source/contracts/evm/instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EACX,WAAW,EACX,mBAAmB,EACnB,+BAA+B,EAC/B,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,wBAAwB,EACxB,2BAA2B,EAC3B,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd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
5
|
+
}
|
|
6
|
+
export interface BlockHeaderStorageData {
|
|
7
|
+
readonly hash: string;
|
|
8
|
+
readonly timestamp: bigint;
|
|
9
|
+
readonly version: number;
|
|
10
|
+
readonly number: number;
|
|
11
|
+
readonly round: number;
|
|
12
|
+
readonly parentHash: string;
|
|
13
|
+
readonly stateRoot: string;
|
|
14
|
+
readonly logsBloom: string;
|
|
15
|
+
readonly transactionsCount: number;
|
|
16
|
+
readonly gasUsed: number;
|
|
17
|
+
readonly fee: bigint;
|
|
18
|
+
readonly reward: bigint;
|
|
19
|
+
readonly payloadSize: number;
|
|
20
|
+
readonly transactionsRoot: string;
|
|
21
|
+
readonly proposer: string;
|
|
22
|
+
}
|
|
23
|
+
export interface TransactionStorageData {
|
|
24
|
+
readonly from: string;
|
|
25
|
+
readonly senderPublicKey: string;
|
|
26
|
+
readonly legacyAddress?: string;
|
|
27
|
+
readonly to?: string;
|
|
28
|
+
readonly gasLimit: bigint;
|
|
29
|
+
readonly gasPrice: bigint;
|
|
30
|
+
readonly value: bigint;
|
|
31
|
+
readonly nonce: bigint;
|
|
32
|
+
readonly data: Buffer;
|
|
33
|
+
readonly txHash: string;
|
|
34
|
+
readonly index: number;
|
|
35
|
+
readonly blockNumber: number;
|
|
36
|
+
readonly v: number;
|
|
37
|
+
readonly r: string;
|
|
38
|
+
readonly s: string;
|
|
39
|
+
readonly legacySecondSignature?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface CommitStorageData {
|
|
42
|
+
readonly proof: ProofStorageData;
|
|
43
|
+
readonly header: BlockHeaderStorageData;
|
|
44
|
+
readonly transactions: TransactionStorageData[];
|
|
45
|
+
}
|
|
46
|
+
export interface Storage {
|
|
47
|
+
getState(): Promise<{
|
|
48
|
+
blockNumber: number;
|
|
49
|
+
totalRound: number;
|
|
50
|
+
}>;
|
|
51
|
+
getBlockHeaderData(blockNumber: number): Promise<BlockHeaderStorageData | undefined>;
|
|
52
|
+
getBlockNumberByHash(blockHash: string): Promise<number | undefined>;
|
|
53
|
+
getCommitData(blockNumber: number): Promise<CommitStorageData | undefined>;
|
|
54
|
+
getTransactionData(key: string): Promise<TransactionStorageData | undefined>;
|
|
55
|
+
getTransactionKeyByHash(txHash: string): Promise<string | undefined>;
|
|
56
|
+
isEmpty(): Promise<boolean>;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../source/contracts/evm/storage.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACtC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AE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;IAC3E,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAAC;IAC7E,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAC5B"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { CommitHandler } from "../crypto/index.js";
|
|
2
|
-
import { EventListener } from "../kernel/index.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export interface WorkerFlags extends KeyValuePair {
|
|
6
|
-
}
|
|
1
|
+
import type { CommitHandler } from "../crypto/index.js";
|
|
2
|
+
import type { EventListener } from "../kernel/index.js";
|
|
3
|
+
import type { KeyValuePair } from "../types/index.js";
|
|
4
|
+
export type WorkerFlags = KeyValuePair;
|
|
7
5
|
export interface WorkerScriptHandler {
|
|
8
6
|
boot(flags: WorkerFlags): Promise<void>;
|
|
7
|
+
dispose(): Promise<void>;
|
|
9
8
|
setPeerCount(peerCount: number): Promise<void>;
|
|
10
|
-
commit(
|
|
11
|
-
start(
|
|
9
|
+
commit(blockNumber: number): Promise<void>;
|
|
10
|
+
start(blockNumber: number): Promise<void>;
|
|
12
11
|
}
|
|
13
12
|
export type WorkerFactory = () => Worker;
|
|
14
|
-
export type WorkerSubprocess = Subprocess<WorkerScriptHandler>;
|
|
15
|
-
export type WorkerSubprocessFactory = () => WorkerSubprocess;
|
|
16
13
|
export interface Worker extends Omit<WorkerScriptHandler, "commit">, CommitHandler, EventListener {
|
|
17
14
|
getQueueSize(): number;
|
|
18
15
|
kill(): Promise<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../source/contracts/evm/worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../../source/contracts/evm/worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC;AAEvC,MAAM,WAAW,mBAAmB;IACnC,IAAI,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1C;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC;AAEzC,MAAM,WAAW,MAAO,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,EAAE,aAAa,EAAE,aAAa;IAChG,YAAY,IAAI,MAAM,CAAC;IACvB,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACxB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Block, Transaction } from "./crypto/index.js";
|
|
2
|
+
import type { CommitKey } from "./evm/index.js";
|
|
3
|
+
export interface TransactionForger {
|
|
4
|
+
getTransactions(generatorAddress: string, timestamp: number, commitKey: CommitKey): Promise<{
|
|
5
|
+
logsBloom: string;
|
|
6
|
+
stateRoot: string;
|
|
7
|
+
transactions: Transaction[];
|
|
8
|
+
gasUsed: number;
|
|
9
|
+
fee: bigint;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export interface BlockForger {
|
|
13
|
+
forgeBlock(generatorAddress: string, round: number, timestamp: number): Promise<Block>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=forger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forger.d.ts","sourceRoot":"","sources":["../../source/contracts/forger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,WAAW,iBAAiB;IACjC,eAAe,CACd,gBAAgB,EAAE,MAAM,EACxB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,SAAS,GAClB,OAAO,CAAC;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,WAAW,EAAE,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,GAAG,EAAE,MAAM,CAAC;KACZ,CAAC,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC3B,UAAU,CAAC,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;CACvF"}
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
export * as Api from "./api/index.js";
|
|
2
1
|
export * as ApiSync from "./api-sync.js";
|
|
3
|
-
export * as
|
|
2
|
+
export * as Api from "./api/index.js";
|
|
3
|
+
export * as BlockchainUtils from "./blockchain-utilities.js";
|
|
4
|
+
export * as Cli from "./cli/index.js";
|
|
4
5
|
export * as ConsensusStorage from "./consensus-storage.js";
|
|
6
|
+
export * as Consensus from "./consensus/index.js";
|
|
5
7
|
export * as Crypto from "./crypto/index.js";
|
|
6
8
|
export * as Database from "./database.js";
|
|
7
9
|
export * as Evm from "./evm/index.js";
|
|
10
|
+
export * as Forger from "./forger.js";
|
|
8
11
|
export * as Kernel from "./kernel/index.js";
|
|
9
12
|
export * as NetworkGenerator from "./network-generator.js";
|
|
10
13
|
export * as P2P from "./p2p/index.js";
|
|
11
|
-
export * as Processor from "./processor.js";
|
|
12
|
-
export * as Proposer from "./proposer.js";
|
|
14
|
+
export * as Processor from "./processor/index.js";
|
|
13
15
|
export * as Serializer from "./serializer.js";
|
|
14
16
|
export * as Shared from "./shared/index.js";
|
|
17
|
+
export * as Snapshot from "./snapshot.js";
|
|
15
18
|
export * as State from "./state/index.js";
|
|
16
19
|
export * as TransactionPool from "./transaction-pool/index.js";
|
|
17
20
|
export * as Transactions from "./transactions.js";
|
|
18
21
|
export * as Types from "./types/index.js";
|
|
19
|
-
export * as Validator from "./validator.js";
|
|
20
22
|
export * as ValidatorSet from "./validator-set.js";
|
|
23
|
+
export * as Validator from "./validator.js";
|
|
21
24
|
export * as Webhooks from "./webhooks.js";
|
|
22
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,eAAe,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,YAAY,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,YAAY,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { JsonObject } from "../types/index.js";
|
|
2
|
-
import {
|
|
1
|
+
import type { JsonObject } from "../types/index.js";
|
|
2
|
+
import type { BindToFluentSyntax, Newable, ServiceIdentifier } from "./container.js";
|
|
3
3
|
export interface Application {
|
|
4
|
-
readonly container: Container.Container;
|
|
5
4
|
bootstrap({ flags, plugins }: {
|
|
6
5
|
flags: JsonObject;
|
|
7
6
|
plugins?: JsonObject;
|
|
8
7
|
}): Promise<void>;
|
|
9
|
-
boot(): void
|
|
10
|
-
reboot(): void
|
|
11
|
-
config<T =
|
|
8
|
+
boot(): Promise<void>;
|
|
9
|
+
reboot(): Promise<void>;
|
|
10
|
+
config<T = unknown>(key: string, value?: T, defaultValue?: T): T | undefined;
|
|
12
11
|
version(): string;
|
|
13
12
|
name(): string;
|
|
14
13
|
thread(): string;
|
|
@@ -27,18 +26,15 @@ export interface Application {
|
|
|
27
26
|
useEnvironment(value: string): void;
|
|
28
27
|
isBooted(): boolean;
|
|
29
28
|
isWorker(): boolean;
|
|
30
|
-
enableMaintenance(): void;
|
|
31
|
-
disableMaintenance(): void;
|
|
32
|
-
isDownForMaintenance(): boolean;
|
|
33
29
|
terminate(reason?: string, error?: Error): Promise<never>;
|
|
34
|
-
bind<T>(serviceIdentifier:
|
|
35
|
-
rebind<T>(serviceIdentifier:
|
|
36
|
-
unbind<T>(serviceIdentifier:
|
|
37
|
-
get<T>(serviceIdentifier:
|
|
38
|
-
getTagged<T>(serviceIdentifier:
|
|
39
|
-
isBound<T>(serviceIdentifier:
|
|
40
|
-
isBoundTagged<T>(serviceIdentifier:
|
|
41
|
-
resolve<T>(constructorFunction:
|
|
30
|
+
bind<T>(serviceIdentifier: ServiceIdentifier<T>): BindToFluentSyntax<T>;
|
|
31
|
+
rebind<T>(serviceIdentifier: ServiceIdentifier<T>): BindToFluentSyntax<T>;
|
|
32
|
+
unbind<T>(serviceIdentifier: ServiceIdentifier<T>): void;
|
|
33
|
+
get<T>(serviceIdentifier: ServiceIdentifier<T>): T;
|
|
34
|
+
getTagged<T>(serviceIdentifier: ServiceIdentifier<T>, key: string | number | symbol, value: string | number | symbol): T;
|
|
35
|
+
isBound<T>(serviceIdentifier: ServiceIdentifier<T>): boolean;
|
|
36
|
+
isBoundTagged<T>(serviceIdentifier: ServiceIdentifier<T>, key: string | number | symbol, value: string | number | symbol): boolean;
|
|
37
|
+
resolve<T>(constructorFunction: Newable<T>): T;
|
|
42
38
|
}
|
|
43
39
|
export interface PluginDependency {
|
|
44
40
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,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AO,CAAC,OAAO,EAAE,CAAC,CAAC;IAE1C,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1B,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type * from "inversify";
|
|
2
2
|
//# sourceMappingURL=container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/container.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/container.ts"],"names":[],"mappings":"AAAA,mBAAmB,WAAW,CAAC"}
|
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
export
|
|
2
|
-
export interface EventListener {
|
|
1
|
+
export interface EventListener<T = unknown> {
|
|
3
2
|
handle(payload: {
|
|
4
|
-
name:
|
|
5
|
-
data:
|
|
6
|
-
}): void
|
|
3
|
+
name: string;
|
|
4
|
+
data: T;
|
|
5
|
+
}): Promise<void>;
|
|
7
6
|
}
|
|
8
|
-
export interface EventDispatcher {
|
|
9
|
-
listen(event:
|
|
10
|
-
listenMany(events: Array<[
|
|
11
|
-
listenOnce(name:
|
|
12
|
-
forget(event:
|
|
13
|
-
forgetMany(events: Array<[
|
|
7
|
+
export interface EventDispatcher<T = unknown> {
|
|
8
|
+
listen(event: string, listener: EventListener<T>): () => void;
|
|
9
|
+
listenMany(events: Array<[string, EventListener<T>]>): Map<string, () => void>;
|
|
10
|
+
listenOnce(name: string, listener: EventListener<T>): void;
|
|
11
|
+
forget(event: string, listener?: EventListener<T>): void;
|
|
12
|
+
forgetMany(events: Array<[string, EventListener<T>]>): void;
|
|
14
13
|
flush(): void;
|
|
15
|
-
getListeners(event:
|
|
16
|
-
hasListeners(event:
|
|
17
|
-
dispatch<T =
|
|
18
|
-
|
|
19
|
-
dispatchSync<T = any>(event: EventName, data?: T): void;
|
|
20
|
-
dispatchMany<T = any>(events: Array<[EventName, T]>): Promise<void>;
|
|
21
|
-
dispatchManySeq<T = any>(events: Array<[EventName, T]>): Promise<void>;
|
|
22
|
-
dispatchManySync<T = any>(events: Array<[EventName, T]>): void;
|
|
14
|
+
getListeners(event: string): EventListener<T>[];
|
|
15
|
+
hasListeners(event: string): boolean;
|
|
16
|
+
dispatch<T = unknown>(event: string, data?: T): Promise<void>;
|
|
17
|
+
dispatchMany<T = unknown>(events: Array<[string, T]>): Promise<void>;
|
|
23
18
|
}
|
|
24
19
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/events.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/events.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,OAAO;IACzC,MAAM,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1D;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,OAAO;IAC3C,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC;IAE9D,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC;IAE/E,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAE3D,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAEzD,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAE5D,KAAK,IAAI,IAAI,CAAC;IAEd,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhD,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IAErC,QAAQ,CAAC,CAAC,GAAG,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9D,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrE"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
1
|
+
import type { WriteFileOptions } from "fs";
|
|
3
2
|
export interface Filesystem {
|
|
4
3
|
make(): Promise<Filesystem>;
|
|
5
4
|
exists(path: string): Promise<boolean>;
|
|
@@ -12,12 +11,14 @@ export interface Filesystem {
|
|
|
12
11
|
lastModified(path: string): Promise<number>;
|
|
13
12
|
files(directory: string): Promise<string[]>;
|
|
14
13
|
directories(directory: string): Promise<string[]>;
|
|
15
|
-
makeDirectory(path:
|
|
14
|
+
makeDirectory(path: string): Promise<boolean>;
|
|
16
15
|
deleteDirectory(directory: string): Promise<boolean>;
|
|
17
|
-
writeFileSync(file: string, data: string | NodeJS.ArrayBufferView, options:
|
|
16
|
+
writeFileSync(file: string, data: string | NodeJS.ArrayBufferView, options: WriteFileOptions): void;
|
|
18
17
|
existsSync(path: string): boolean;
|
|
19
18
|
removeSync(path: string): void;
|
|
20
|
-
readJSONSync<T>(file: string, options?: Record<string,
|
|
21
|
-
ensureDirSync(path: string, options?:
|
|
19
|
+
readJSONSync<T>(file: string, options?: Record<string, unknown>): T;
|
|
20
|
+
ensureDirSync(path: string, options?: {
|
|
21
|
+
mode?: number | undefined;
|
|
22
|
+
} | number): void;
|
|
22
23
|
}
|
|
23
24
|
//# sourceMappingURL=filesystem.d.ts.map
|