@mainsail/contracts 0.0.1-rc.7 → 0.0.1-rc.9
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 -10
- 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 -2
- package/distribution/contracts/api-sync.d.ts.map +1 -1
- package/distribution/contracts/blockchain-utils.d.ts +4 -3
- package/distribution/contracts/blockchain-utils.d.ts.map +1 -1
- 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 +14 -10
- 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 +5 -7
- package/distribution/contracts/consensus-storage.d.ts.map +1 -1
- package/distribution/contracts/crypto/block.d.ts +31 -22
- package/distribution/contracts/crypto/block.d.ts.map +1 -1
- package/distribution/contracts/crypto/commit.d.ts +3 -2
- package/distribution/contracts/crypto/commit.d.ts.map +1 -1
- package/distribution/contracts/crypto/config.d.ts +6 -6
- package/distribution/contracts/crypto/config.d.ts.map +1 -1
- package/distribution/contracts/crypto/hash.d.ts +4 -3
- package/distribution/contracts/crypto/hash.d.ts.map +1 -1
- package/distribution/contracts/crypto/identities.d.ts +11 -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 +12 -103
- package/distribution/contracts/crypto/messages.d.ts.map +1 -1
- package/distribution/contracts/crypto/networks.d.ts +5 -4
- 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 +69 -73
- 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 +8 -8
- package/distribution/contracts/crypto/worker.d.ts.map +1 -1
- package/distribution/contracts/database.d.ts +5 -5
- package/distribution/contracts/database.d.ts.map +1 -1
- package/distribution/contracts/evm/contract-service.d.ts +3 -3
- package/distribution/contracts/evm/contract-service.d.ts.map +1 -1
- package/distribution/contracts/evm/evm.d.ts +5 -7
- package/distribution/contracts/evm/evm.d.ts.map +1 -1
- package/distribution/contracts/evm/instance.d.ts +2 -2
- package/distribution/contracts/evm/instance.d.ts.map +1 -1
- package/distribution/contracts/evm/storage.d.ts +1 -1
- package/distribution/contracts/evm/storage.d.ts.map +1 -1
- package/distribution/contracts/evm/worker.d.ts +4 -4
- package/distribution/contracts/evm/worker.d.ts.map +1 -1
- package/distribution/contracts/index.d.ts +4 -3
- package/distribution/contracts/index.d.ts.map +1 -1
- package/distribution/contracts/kernel/application.d.ts +5 -9
- 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/events.d.ts +12 -16
- package/distribution/contracts/kernel/events.d.ts.map +1 -1
- package/distribution/contracts/kernel/filesystem.d.ts +7 -4
- package/distribution/contracts/kernel/filesystem.d.ts.map +1 -1
- package/distribution/contracts/kernel/index.d.ts +2 -1
- package/distribution/contracts/kernel/index.d.ts.map +1 -1
- package/distribution/contracts/kernel/ipc.d.ts +15 -16
- package/distribution/contracts/kernel/ipc.d.ts.map +1 -1
- package/distribution/contracts/kernel/pipeline.d.ts +1 -0
- 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 -1
- 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/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 +9 -16
- 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 +1 -1
- package/distribution/contracts/p2p/header.d.ts.map +1 -1
- package/distribution/contracts/p2p/index.d.ts +3 -3
- package/distribution/contracts/p2p/index.d.ts.map +1 -1
- package/distribution/contracts/p2p/log.d.ts +1 -1
- 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 +3 -4
- 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 +4 -4
- package/distribution/contracts/p2p/peer.d.ts.map +1 -1
- package/distribution/contracts/p2p/server.d.ts +9 -8
- package/distribution/contracts/p2p/server.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/processor/block-processor-result.d.ts +3 -1
- package/distribution/contracts/processor/block-processor-result.d.ts.map +1 -1
- package/distribution/contracts/processor/block-processor.d.ts +2 -2
- package/distribution/contracts/processor/block-processor.d.ts.map +1 -1
- package/distribution/contracts/processor/handler.d.ts +1 -1
- package/distribution/contracts/processor/handler.d.ts.map +1 -1
- package/distribution/contracts/processor/index.d.ts +1 -1
- package/distribution/contracts/processor/index.d.ts.map +1 -1
- package/distribution/contracts/processor/processable-unit.d.ts +4 -4
- package/distribution/contracts/processor/processable-unit.d.ts.map +1 -1
- package/distribution/contracts/processor/transaction-processor.d.ts +3 -3
- package/distribution/contracts/processor/transaction-processor.d.ts.map +1 -1
- package/distribution/contracts/processor/verifier.d.ts +1 -1
- package/distribution/contracts/processor/verifier.d.ts.map +1 -1
- package/distribution/contracts/serializer.d.ts +3 -3
- 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 +2 -2
- package/distribution/contracts/snapshot.d.ts.map +1 -1
- package/distribution/contracts/state/store.d.ts +2 -2
- package/distribution/contracts/state/store.d.ts.map +1 -1
- package/distribution/contracts/state/wallets.d.ts +1 -1
- package/distribution/contracts/state/wallets.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/broadcaster.d.ts +4 -6
- package/distribution/contracts/transaction-pool/broadcaster.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/client.d.ts +1 -1
- package/distribution/contracts/transaction-pool/client.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 -1
- package/distribution/contracts/transaction-pool/processor.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/query.d.ts +1 -1
- package/distribution/contracts/transaction-pool/query.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/sender-mempool.d.ts +2 -2
- package/distribution/contracts/transaction-pool/sender-mempool.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/sender-state.d.ts +2 -2
- package/distribution/contracts/transaction-pool/sender-state.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/service.d.ts +1 -1
- package/distribution/contracts/transaction-pool/service.d.ts.map +1 -1
- package/distribution/contracts/transaction-pool/worker.d.ts +5 -5
- package/distribution/contracts/transaction-pool/worker.d.ts.map +1 -1
- package/distribution/contracts/transactions.d.ts +3 -3
- package/distribution/contracts/transactions.d.ts.map +1 -1
- package/distribution/contracts/types/index.d.ts +3 -9
- package/distribution/contracts/types/index.d.ts.map +1 -1
- package/distribution/contracts/validator-set.d.ts +2 -2
- package/distribution/contracts/validator-set.d.ts.map +1 -1
- package/distribution/contracts/validator.d.ts +3 -3
- 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 +0 -4
- package/distribution/index.d.ts.map +1 -1
- package/package.json +13 -10
- package/distribution/constants/build-packages.d.ts +0 -2
- package/distribution/constants/build-packages.d.ts.map +0 -1
- package/distribution/constants/build-packages.js +0 -10
- package/distribution/constants/build-packages.js.map +0 -1
- 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 -5
- package/distribution/constants/environment-variables.d.ts.map +0 -1
- package/distribution/constants/environment-variables.js +0 -126
- package/distribution/constants/environment-variables.js.map +0 -1
- package/distribution/constants/index.d.ts +0 -7
- package/distribution/constants/index.d.ts.map +0 -1
- package/distribution/constants/index.js +0 -7
- package/distribution/constants/index.js.map +0 -1
- package/distribution/constants/locale.d.ts +0 -2
- package/distribution/constants/locale.d.ts.map +0 -1
- package/distribution/constants/locale.js +0 -2
- package/distribution/constants/locale.js.map +0 -1
- package/distribution/constants/log-levels.d.ts +0 -2
- package/distribution/constants/log-levels.d.ts.map +0 -1
- package/distribution/constants/log-levels.js +0 -2
- package/distribution/constants/log-levels.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/blockchain-utils.js +0 -2
- package/distribution/contracts/blockchain-utils.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-handler.js +0 -2
- package/distribution/contracts/crypto/commit-handler.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/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 -15
- package/distribution/contracts/crypto/index.js.map +0 -1
- package/distribution/contracts/crypto/legacy.js +0 -2
- package/distribution/contracts/crypto/legacy.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/contract-service.js +0 -2
- package/distribution/contracts/evm/contract-service.js.map +0 -1
- package/distribution/contracts/evm/evm.js +0 -8
- package/distribution/contracts/evm/evm.js.map +0 -1
- package/distribution/contracts/evm/index.js +0 -7
- package/distribution/contracts/evm/index.js.map +0 -1
- package/distribution/contracts/evm/instance.js +0 -2
- package/distribution/contracts/evm/instance.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/storage.js +0 -2
- package/distribution/contracts/evm/storage.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 -23
- 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 -27
- 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/statistic.js +0 -2
- package/distribution/contracts/p2p/statistic.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/block-processor-result.js +0 -2
- package/distribution/contracts/processor/block-processor-result.js.map +0 -1
- package/distribution/contracts/processor/block-processor.js +0 -2
- package/distribution/contracts/processor/block-processor.js.map +0 -1
- package/distribution/contracts/processor/handler.js +0 -2
- package/distribution/contracts/processor/handler.js.map +0 -1
- package/distribution/contracts/processor/index.js +0 -7
- package/distribution/contracts/processor/index.js.map +0 -1
- package/distribution/contracts/processor/processable-unit.js +0 -2
- package/distribution/contracts/processor/processable-unit.js.map +0 -1
- package/distribution/contracts/processor/transaction-processor.js +0 -2
- package/distribution/contracts/processor/transaction-processor.js.map +0 -1
- package/distribution/contracts/processor/verifier.js +0 -2
- package/distribution/contracts/processor/verifier.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/snapshot.js +0 -2
- package/distribution/contracts/snapshot.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/index.js +0 -11
- 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 -89
- package/distribution/events.d.ts.map +0 -1
- package/distribution/events.js +0 -105
- package/distribution/events.js.map +0 -1
- package/distribution/identifiers.d.ts +0 -314
- package/distribution/identifiers.d.ts.map +0 -1
- package/distribution/identifiers.js +0 -314
- package/distribution/identifiers.js.map +0 -1
- package/distribution/index.js +0 -7
- package/distribution/index.js.map +0 -1
- package/distribution/utilities.js +0 -2
- package/distribution/utilities.js.map +0 -1
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import type { Server as HapiServer } from "@hapi/hapi";
|
|
2
|
+
import type { Enums } from "@mainsail/constants";
|
|
3
|
+
import type { Application } from "../kernel/application.js";
|
|
4
|
+
import type { Processor } from "./rpc.js";
|
|
5
|
+
export type ApiServer = HapiServer<ServerState>;
|
|
5
6
|
export interface Server {
|
|
6
7
|
boot(): Promise<void>;
|
|
7
8
|
dispose(): Promise<void>;
|
|
8
9
|
}
|
|
9
|
-
export
|
|
10
|
-
Http = "HTTP",
|
|
11
|
-
Https = "HTTPS"
|
|
12
|
-
}
|
|
10
|
+
export type ServerType = Enums.Api.ServerType;
|
|
13
11
|
export interface ServerState {
|
|
14
12
|
app: Application;
|
|
15
|
-
schemas: any;
|
|
16
13
|
rpc: Processor;
|
|
17
14
|
}
|
|
18
15
|
export type Sorting = {
|
|
@@ -31,6 +28,6 @@ export type ResultsPage<T> = {
|
|
|
31
28
|
};
|
|
32
29
|
};
|
|
33
30
|
export interface Resource {
|
|
34
|
-
transform(resource:
|
|
31
|
+
transform(resource: object): object;
|
|
35
32
|
}
|
|
36
33
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../source/contracts/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["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
import type { Enums } from "@mainsail/constants";
|
|
3
|
+
import type { SchemaObject } from "ajv";
|
|
3
4
|
export type Processor = {
|
|
4
5
|
registerAction(action: Action): void;
|
|
5
|
-
process(request:
|
|
6
|
+
process(request: HapiRequest): Promise<Response | Error | (Response | Error)[]>;
|
|
6
7
|
};
|
|
7
8
|
export type Id = string | number | null;
|
|
8
9
|
export type Request<T> = {
|
|
@@ -14,7 +15,7 @@ export type Request<T> = {
|
|
|
14
15
|
export type Response = {
|
|
15
16
|
id: Id;
|
|
16
17
|
jsonrpc: "2.0";
|
|
17
|
-
result:
|
|
18
|
+
result: unknown;
|
|
18
19
|
};
|
|
19
20
|
export type Error = {
|
|
20
21
|
id: Id;
|
|
@@ -22,18 +23,13 @@ export type Error = {
|
|
|
22
23
|
error: {
|
|
23
24
|
code: number;
|
|
24
25
|
message: string;
|
|
26
|
+
data?: string;
|
|
25
27
|
};
|
|
26
28
|
};
|
|
27
|
-
export interface Action {
|
|
29
|
+
export interface Action<TParameters extends unknown[] = []> {
|
|
28
30
|
name: string;
|
|
29
|
-
handle: (parameters:
|
|
31
|
+
handle: (parameters: TParameters) => Promise<unknown>;
|
|
30
32
|
schema: SchemaObject;
|
|
31
33
|
}
|
|
32
|
-
export
|
|
33
|
-
ParseError = -32700,
|
|
34
|
-
InvalidRequest = -32600,
|
|
35
|
-
MethodNotFound = -32601,
|
|
36
|
-
InvalidParameters = -32602,
|
|
37
|
-
InternalError = -32603
|
|
38
|
-
}
|
|
34
|
+
export type ErrorCode = Enums.Api.RcpErrorCode;
|
|
39
35
|
//# sourceMappingURL=rpc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../source/contracts/api/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../../source/contracts/api/rpc.ts"],"names":[],"mappings":"AAAA,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C,GAAG,CAAC,YAAY,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { CommitHandler } from "./crypto/commit-handler.js";
|
|
1
|
+
import type { CommitHandler } from "./crypto/commit-handler.js";
|
|
2
|
+
import type { Logger as MainLogger, LoggerContext } from "./kernel/index.js";
|
|
2
3
|
export interface Service extends CommitHandler {
|
|
3
4
|
bootstrap(): Promise<void>;
|
|
4
|
-
|
|
5
|
+
flush(): Promise<void>;
|
|
5
6
|
getLastSyncedBlockHeight(): Promise<number>;
|
|
6
7
|
}
|
|
8
|
+
export interface Logger extends Omit<MainLogger, "dispose" | "suppressConsoleOutput"> {
|
|
9
|
+
warnExtra(message: string, context?: LoggerContext): void;
|
|
10
|
+
debugExtra(message: string, context?: LoggerContext): void;
|
|
11
|
+
}
|
|
7
12
|
//# sourceMappingURL=api-sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-sync.d.ts","sourceRoot":"","sources":["../../source/contracts/api-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"api-sync.d.ts","sourceRoot":"","sources":["../../source/contracts/api-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7E,MAAM,WAAW,OAAQ,SAAQ,aAAa;IAC7C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC5C;AAED,MAAM,WAAW,MAAO,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,uBAAuB,CAAC;IACpF,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC1D,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CAC3D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BigNumber } from "@mainsail/utils";
|
|
2
|
-
import { Block, Transaction } from "./crypto/index.js";
|
|
3
|
-
import { RoundInfo } from "./shared/rounds.js";
|
|
1
|
+
import type { BigNumber } from "@mainsail/utils";
|
|
2
|
+
import type { Block, Transaction } from "./crypto/index.js";
|
|
3
|
+
import type { RoundInfo } from "./shared/rounds.js";
|
|
4
4
|
export interface FeeCalculator {
|
|
5
5
|
calculate(transaction: Transaction): BigNumber;
|
|
6
6
|
calculateConsumed(gasPrice: number, gasUsed: number): BigNumber;
|
|
@@ -15,5 +15,6 @@ export interface TimestampCalculator {
|
|
|
15
15
|
}
|
|
16
16
|
export interface ProposerCalculator {
|
|
17
17
|
getValidatorIndex(round: number): number;
|
|
18
|
+
getValidatorIndexFrom(roundValidators: number, totalRound: number, round: number): number;
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=blockchain-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchain-utils.d.ts","sourceRoot":"","sources":["../../source/contracts/blockchain-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"blockchain-utils.d.ts","sourceRoot":"","sources":["../../source/contracts/blockchain-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,WAAW,aAAa;IAC7B,SAAS,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/C,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAChE;AAED,MAAM,WAAW,eAAe;IAC/B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CACpD;AAED,MAAM,WAAW,mBAAmB;IACnC,yBAAyB,CAAC,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACvE;AAED,MAAM,WAAW,kBAAkB;IAClC,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACzC,qBAAqB,CAAC,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1F"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Container } from "../kernel/index.js";
|
|
2
|
+
export interface Application {
|
|
3
|
+
bind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): Container.BindToFluentSyntax<T>;
|
|
4
|
+
rebind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): Container.BindToFluentSyntax<T>;
|
|
5
|
+
unbind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): void;
|
|
6
|
+
get<T>(serviceIdentifier: Container.ServiceIdentifier<T>): T;
|
|
7
|
+
isBound<T>(serviceIdentifier: Container.ServiceIdentifier<T>): boolean;
|
|
8
|
+
resolve<T>(constructorFunction: Container.Newable<T>): T;
|
|
9
|
+
getCorePath(type: string, file?: string): string;
|
|
10
|
+
getConsolePath(type: string, file?: string): string;
|
|
11
|
+
name(): string;
|
|
12
|
+
isWorker(): boolean;
|
|
13
|
+
terminate(reason?: string, error?: Error): Promise<never>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=application.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../source/contracts/cli/application.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,WAAW,WAAW;IAC3B,IAAI,CAAC,CAAC,EAAE,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC5F,MAAM,CAAC,CAAC,EAAE,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC9F,MAAM,CAAC,CAAC,EAAE,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IACnE,GAAG,CAAC,CAAC,EAAE,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAC7D,OAAO,CAAC,CAAC,EAAE,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;IACvE,OAAO,CAAC,CAAC,EAAE,mBAAmB,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACzD,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjD,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpD,IAAI,IAAI,MAAM,CAAC;IACf,QAAQ,IAAI,OAAO,CAAC;IACpB,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;CAC1D"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AnySchema } from "joi";
|
|
2
|
+
export type InputValue = string | number | boolean;
|
|
3
|
+
export type InputValues = Record<string, InputValue>;
|
|
4
|
+
export type InputArgument = {
|
|
5
|
+
description: string;
|
|
6
|
+
schema: AnySchema;
|
|
7
|
+
};
|
|
8
|
+
export type InputArguments = Record<string, InputArgument>;
|
|
9
|
+
export type AnyObject = Record<string, string | number | boolean>;
|
|
10
|
+
export type Arguments = Record<string, string | number>;
|
|
11
|
+
export type Flags = Record<string, string | number | boolean>;
|
|
12
|
+
export interface CommandArgument {
|
|
13
|
+
description: string;
|
|
14
|
+
schema: AnySchema;
|
|
15
|
+
}
|
|
16
|
+
export type CommandArguments = Record<string, CommandArgument>;
|
|
17
|
+
export interface CommandFlag {
|
|
18
|
+
description: string;
|
|
19
|
+
schema: AnySchema;
|
|
20
|
+
}
|
|
21
|
+
export type CommandFlags = Record<string, CommandFlag>;
|
|
22
|
+
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../source/contracts/cli/cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,SAAS,CAAA;CAAE,CAAC;AACvE,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAE3D,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAExD,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAE/D,MAAM,WAAW,WAAW;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { InputValue, InputValues } from "./cli.js";
|
|
2
|
+
export interface Command {
|
|
3
|
+
signature: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
isHidden: boolean;
|
|
6
|
+
register(argv: string[]): void;
|
|
7
|
+
initialize(): Promise<void>;
|
|
8
|
+
interact(): Promise<void>;
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
showHelp(): void;
|
|
11
|
+
getArguments(): InputValues;
|
|
12
|
+
getArgument(name: string): string;
|
|
13
|
+
setArgument(name: string, value: InputValue): void;
|
|
14
|
+
hasArgument(name: string): boolean;
|
|
15
|
+
getFlags<T = InputValues>(): T;
|
|
16
|
+
getFlag<T = InputValue>(name: string): T;
|
|
17
|
+
setFlag(name: string, value: InputValue): void;
|
|
18
|
+
hasFlag(name: string): boolean;
|
|
19
|
+
execute(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export type CommandList = Record<string, Command>;
|
|
22
|
+
export interface DiscoverCommands {
|
|
23
|
+
within(path: string): Promise<CommandList>;
|
|
24
|
+
from(packages: string[]): Promise<CommandList>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=commands.d.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AAC,WAAW,CAAC,CAAC;IAC3C,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/contracts/cli/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../source/contracts/cli/paths.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { Enums } from "@mainsail/constants";
|
|
2
|
+
import type { Result, SyncResult } from "execa";
|
|
3
|
+
import type { JsonObject } from "../types/index.js";
|
|
4
|
+
import type { AnyObject, InputValues } from "./cli.js";
|
|
5
|
+
import type { Paths } from "./paths.js";
|
|
6
|
+
export interface Config {
|
|
7
|
+
all: object;
|
|
8
|
+
get<T>(key: string): T;
|
|
9
|
+
set<T>(key: string, value: T): void;
|
|
10
|
+
forget(key: string): void;
|
|
11
|
+
has(key: string): boolean;
|
|
12
|
+
load(): void;
|
|
13
|
+
save(): void;
|
|
14
|
+
restoreDefaults(): void;
|
|
15
|
+
}
|
|
16
|
+
export interface Environment {
|
|
17
|
+
getPaths(): Paths;
|
|
18
|
+
updateVariables(environmentFile: string, variables: InputValues): void;
|
|
19
|
+
}
|
|
20
|
+
export interface Installer {
|
|
21
|
+
install(package_: string, buildPackages: readonly string[] | undefined, tag: string | undefined): void;
|
|
22
|
+
installPeerDependencies(package_: string, tag: string): void;
|
|
23
|
+
installRangeLatest(package_: string, range: string): void;
|
|
24
|
+
}
|
|
25
|
+
export interface Logger {
|
|
26
|
+
alert(message: string): void;
|
|
27
|
+
error(message: string): void;
|
|
28
|
+
warn(message: string): void;
|
|
29
|
+
notice(message: string): void;
|
|
30
|
+
info(message: string): void;
|
|
31
|
+
debug(message: string): void;
|
|
32
|
+
}
|
|
33
|
+
export interface Plugin {
|
|
34
|
+
path: string;
|
|
35
|
+
name: string;
|
|
36
|
+
version: string;
|
|
37
|
+
}
|
|
38
|
+
export interface PluginManager {
|
|
39
|
+
list(): Promise<Plugin[]>;
|
|
40
|
+
install(package_: string, version?: string): Promise<void>;
|
|
41
|
+
update(package_: string): Promise<void>;
|
|
42
|
+
remove(package_: string): Promise<void>;
|
|
43
|
+
}
|
|
44
|
+
export interface Setup {
|
|
45
|
+
isGlobal(): boolean;
|
|
46
|
+
getEntrypoint(): string;
|
|
47
|
+
getGlobalEntrypoint(packageId: string): string;
|
|
48
|
+
}
|
|
49
|
+
export interface Updater {
|
|
50
|
+
logStatus(): Promise<void>;
|
|
51
|
+
check(force?: boolean): Promise<boolean>;
|
|
52
|
+
update(updateProcessManager?: boolean, force?: boolean): Promise<boolean>;
|
|
53
|
+
getLatestVersion(): Promise<string | undefined>;
|
|
54
|
+
}
|
|
55
|
+
export type ProcessIdentifier = string | number;
|
|
56
|
+
export type ProcessState = Enums.Cli.ProcessState;
|
|
57
|
+
export type ProcessDescription = {
|
|
58
|
+
readonly pid: number;
|
|
59
|
+
readonly name: string;
|
|
60
|
+
readonly pm2_env: {
|
|
61
|
+
readonly version: string;
|
|
62
|
+
readonly status: ProcessState;
|
|
63
|
+
readonly pm_uptime: number;
|
|
64
|
+
readonly pm_err_log_path: string;
|
|
65
|
+
readonly pm_out_log_path: string;
|
|
66
|
+
};
|
|
67
|
+
readonly monit: {
|
|
68
|
+
readonly cpu: number;
|
|
69
|
+
readonly memory: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export type ProcessOptions = Record<"name" | "script" | "args", string>;
|
|
73
|
+
export interface Process {
|
|
74
|
+
stop(daemon: boolean): void;
|
|
75
|
+
restart(): void;
|
|
76
|
+
status(): void;
|
|
77
|
+
log(showErrors: boolean, lines: number): void;
|
|
78
|
+
}
|
|
79
|
+
export type ProcessFactory = (name: string) => Process;
|
|
80
|
+
export interface ProcessManager {
|
|
81
|
+
list(): ProcessDescription[];
|
|
82
|
+
describe(id: ProcessIdentifier): ProcessDescription | undefined;
|
|
83
|
+
start(options: JsonObject, flags: AnyObject): SyncResult;
|
|
84
|
+
stop(id: ProcessIdentifier, flags?: AnyObject): SyncResult;
|
|
85
|
+
restart(id: ProcessIdentifier, flags?: AnyObject): SyncResult;
|
|
86
|
+
reload(id: ProcessIdentifier): SyncResult;
|
|
87
|
+
reset(id: ProcessIdentifier): SyncResult;
|
|
88
|
+
delete(id: ProcessIdentifier): SyncResult;
|
|
89
|
+
flush(): SyncResult;
|
|
90
|
+
reloadLogs(id: ProcessIdentifier): SyncResult;
|
|
91
|
+
ping(): SyncResult;
|
|
92
|
+
update(): SyncResult;
|
|
93
|
+
trigger(id: ProcessIdentifier, processActionName: string, parameter?: string): Promise<Result>;
|
|
94
|
+
status(id: ProcessIdentifier): ProcessState | undefined;
|
|
95
|
+
isOnline(id: ProcessIdentifier): boolean;
|
|
96
|
+
isStopped(id: ProcessIdentifier): boolean;
|
|
97
|
+
isStopping(id: ProcessIdentifier): boolean;
|
|
98
|
+
isWaiting(id: ProcessIdentifier): boolean;
|
|
99
|
+
isLaunching(id: ProcessIdentifier): boolean;
|
|
100
|
+
isErrored(id: ProcessIdentifier): boolean;
|
|
101
|
+
isOneLaunch(id: ProcessIdentifier): boolean;
|
|
102
|
+
isUnknown(id: ProcessIdentifier): boolean;
|
|
103
|
+
has(id: ProcessIdentifier): boolean;
|
|
104
|
+
missing(id: ProcessIdentifier): boolean;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../source/contracts/cli/services.ts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AAE,EAAE,iBAAiB,GAAG,OAAO,CAAC;IACpC,OAAO,CAAC,EAAE,EAAE,iBAAiB,GAAG,OAAO,CAAC;CACxC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AggregatedSignature, Commit,
|
|
2
|
-
import { ProcessableUnit } from "../processor/index.js";
|
|
3
|
-
import { ValidatorWallet } from "../state/index.js";
|
|
4
|
-
import { Step } from "./enums.js";
|
|
1
|
+
import type { AggregatedSignature, Commit, Message, MessageType, Proposal } from "../crypto/index.js";
|
|
2
|
+
import type { ProcessableUnit } from "../processor/index.js";
|
|
3
|
+
import type { ValidatorWallet } from "../state/index.js";
|
|
4
|
+
import type { Step } from "./enums.js";
|
|
5
5
|
export interface RoundState extends ProcessableUnit {
|
|
6
6
|
readonly validators: string[];
|
|
7
7
|
readonly proposer: ValidatorWallet;
|
|
@@ -10,18 +10,22 @@ export interface RoundState extends ProcessableUnit {
|
|
|
10
10
|
hasPrevote(validatorIndex: number): boolean;
|
|
11
11
|
hasPrecommit(validatorIndex: number): boolean;
|
|
12
12
|
addProposal(proposal: Proposal): void;
|
|
13
|
-
addPrevote(prevote:
|
|
14
|
-
addPrecommit(precommit:
|
|
13
|
+
addPrevote(prevote: Message): void;
|
|
14
|
+
addPrecommit(precommit: Message): void;
|
|
15
|
+
hasMessage(message: Message): boolean;
|
|
16
|
+
getMessage(validatorIndex: number, type: MessageType): Message | undefined;
|
|
17
|
+
addMessage(message: Message): void;
|
|
15
18
|
hasMajorityPrevotes(): boolean;
|
|
16
19
|
hasMajorityPrevotesAny(): boolean;
|
|
17
20
|
hasMajorityPrevotesNull(): boolean;
|
|
18
21
|
hasMajorityPrecommits(): boolean;
|
|
19
22
|
hasMajorityPrecommitsAny(): boolean;
|
|
20
23
|
hasMinorityPrevotesOrPrecommits(): boolean;
|
|
21
|
-
getPrevote(validatorIndex: number):
|
|
22
|
-
getPrecommit(validatorIndex: number):
|
|
23
|
-
getPrevotes():
|
|
24
|
-
getPrecommits():
|
|
24
|
+
getPrevote(validatorIndex: number): Message | undefined;
|
|
25
|
+
getPrecommit(validatorIndex: number): Message | undefined;
|
|
26
|
+
getPrevotes(): Message[];
|
|
27
|
+
getPrecommits(): Message[];
|
|
28
|
+
getMessages(): Message[];
|
|
25
29
|
getValidator(consensusPublicKey: string): ValidatorWallet;
|
|
26
30
|
getValidatorsSignedPrevote(): readonly boolean[];
|
|
27
31
|
getValidatorsSignedPrecommit(): readonly boolean[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consensus.d.ts","sourceRoot":"","sources":["../../../source/contracts/consensus/consensus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"consensus.d.ts","sourceRoot":"","sources":["../../../source/contracts/consensus/consensus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACtG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,WAAW,UAAW,SAAQ,eAAe;IAClD,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,WAAW,IAAI,QAAQ,GAAG,SAAS,CAAC;IACpC,WAAW,IAAI,OAAO,CAAC;IACvB,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5C,YAAY,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9C,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,C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,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,KAAM,SAAQ,SAAS;IACvC,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IAClC,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;CACjC;AAED,MAAM,WAAW,YAAY;IAC5B,GAAG,IAAI,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,SAAS;IACzB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;IAClD,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IACxD,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACpE,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACpE,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;IACtE,KAAK,IAAI,IAAI,CAAC;CACd"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Precommit = 2
|
|
5
|
-
}
|
|
6
|
-
export declare enum ProcessorResult {
|
|
7
|
-
Invalid = 0,
|
|
8
|
-
Accepted = 1,
|
|
9
|
-
Skipped = 2
|
|
10
|
-
}
|
|
1
|
+
import type { Enums } from "@mainsail/constants";
|
|
2
|
+
export type Step = Enums.Consensus.Step;
|
|
3
|
+
export type ProcessorResult = Enums.Consensus.ProcessorResult;
|
|
11
4
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../source/contracts/consensus/enums.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../source/contracts/consensus/enums.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,MAAM,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC;AACxC,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { Commit,
|
|
2
|
-
import { ProcessorResult } from "./enums.js";
|
|
1
|
+
import type { Commit, Message, Proposal } from "../crypto/index.js";
|
|
2
|
+
import type { ProcessorResult } from "./enums.js";
|
|
3
3
|
export interface ProposalProcessor {
|
|
4
4
|
process(proposal: Proposal, broadcast?: boolean): Promise<ProcessorResult>;
|
|
5
5
|
hasValidLockProof(proposal: Proposal): Promise<boolean>;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
8
|
-
process(
|
|
9
|
-
}
|
|
10
|
-
export interface PrecommitProcessor {
|
|
11
|
-
process(prevote: Precommit, broadcast?: boolean): Promise<ProcessorResult>;
|
|
7
|
+
export interface MessageProcessor {
|
|
8
|
+
process(message: Message, broadcast?: boolean): Promise<ProcessorResult>;
|
|
12
9
|
}
|
|
13
10
|
export interface CommitProcessor {
|
|
14
11
|
process(commit: Commit, broadcast?: boolean): Promise<ProcessorResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../source/contracts/consensus/processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../source/contracts/consensus/processor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,iBAAiB;IACjC,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC3E,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,gBAAgB;IAChC,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CACzE;AAED,MAAM,WAAW,eAAe;IAC/B,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IACvE,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACpD"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { State, StateData } from "./consensus/index.js";
|
|
2
|
-
import {
|
|
1
|
+
import type { State, StateData } from "./consensus/index.js";
|
|
2
|
+
import type { Message, Proposal } from "./crypto/index.js";
|
|
3
3
|
export interface Service {
|
|
4
|
-
persist({
|
|
4
|
+
persist({ messages, proposals, state, }: {
|
|
5
5
|
state: State;
|
|
6
6
|
proposals: Proposal[];
|
|
7
|
-
|
|
8
|
-
precommits: Precommit[];
|
|
7
|
+
messages: Message[];
|
|
9
8
|
}): Promise<void>;
|
|
10
9
|
getState(): Promise<StateData | undefined>;
|
|
11
10
|
getProposals(): Promise<Proposal[]>;
|
|
12
|
-
|
|
13
|
-
getPrecommits(): Promise<Precommit[]>;
|
|
11
|
+
getMessages(): Promise<Message[]>;
|
|
14
12
|
}
|
|
15
13
|
//# sourceMappingURL=consensus-storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consensus-storage.d.ts","sourceRoot":"","sources":["../../source/contracts/consensus-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"consensus-storage.d.ts","sourceRoot":"","sources":["../../source/contracts/consensus-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE3D,MAAM,WAAW,OAAO;IACvB,OAAO,CAAC,EACP,QAAQ,EACR,SAAS,EACT,KAAK,GACL,EAAE;QACF,KAAK,EAAE,KAAK,CAAC;QACb,SAAS,EAAE,QAAQ,EAAE,CAAC;QACtB,QAAQ,EAAE,OAAO,EAAE,CAAC;KACpB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB,QAAQ,IAAI,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAC3C,YAAY,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IACpC,WAAW,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;CAClC"}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import { BigNumber } from "@mainsail/utils";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Transaction, TransactionData, TransactionJson } from "./transactions.js";
|
|
1
|
+
import type { BigNumber } from "@mainsail/utils";
|
|
2
|
+
import type { BlockHeaderStorageData, TransactionStorageData } from "../evm/storage.js";
|
|
3
|
+
import type { BlockTransaction, Transaction, TransactionJson, TransactionJsonCrypto, TransactionSerializable } from "./transactions.js";
|
|
5
4
|
export type BlockTag = "latest" | "finalized" | "safe";
|
|
6
|
-
export
|
|
7
|
-
export interface Block {
|
|
8
|
-
readonly data: BlockData;
|
|
9
|
-
readonly header: BlockHeader;
|
|
10
|
-
readonly serialized: string;
|
|
11
|
-
readonly transactions: Transaction[];
|
|
12
|
-
}
|
|
13
|
-
export interface BlockData {
|
|
14
|
-
readonly hash: string;
|
|
15
|
-
readonly timestamp: number;
|
|
5
|
+
export interface BlockHeaderRaw {
|
|
16
6
|
readonly version: number;
|
|
7
|
+
readonly timestamp: number;
|
|
17
8
|
readonly number: number;
|
|
18
9
|
readonly round: number;
|
|
19
10
|
readonly parentHash: string;
|
|
@@ -26,7 +17,17 @@ export interface BlockData {
|
|
|
26
17
|
readonly payloadSize: number;
|
|
27
18
|
readonly transactionsRoot: string;
|
|
28
19
|
readonly proposer: string;
|
|
29
|
-
|
|
20
|
+
}
|
|
21
|
+
export type BlockHeader = BlockHeaderRaw & {
|
|
22
|
+
readonly hash: string;
|
|
23
|
+
};
|
|
24
|
+
export type BlockData = BlockHeader & {
|
|
25
|
+
readonly transactions: TransactionSerializable[];
|
|
26
|
+
};
|
|
27
|
+
export interface Block extends BlockHeader {
|
|
28
|
+
readonly serialized: string;
|
|
29
|
+
readonly transactions: BlockTransaction[];
|
|
30
|
+
toData(): BlockData;
|
|
30
31
|
}
|
|
31
32
|
export interface BlockJson {
|
|
32
33
|
readonly hash: string;
|
|
@@ -47,22 +48,30 @@ export interface BlockJson {
|
|
|
47
48
|
readonly serialized?: string;
|
|
48
49
|
readonly transactions: TransactionJson[];
|
|
49
50
|
}
|
|
50
|
-
export
|
|
51
|
+
export interface BlockJsonCrypto extends BlockJson {
|
|
52
|
+
readonly transactions: TransactionJsonCrypto[];
|
|
53
|
+
}
|
|
51
54
|
export interface BlockFactory {
|
|
52
|
-
make(data:
|
|
55
|
+
make(data: BlockHeaderRaw, transactions: Transaction[]): Promise<Block>;
|
|
53
56
|
fromHex(hex: string): Promise<Block>;
|
|
54
57
|
fromBytes(buff: Buffer): Promise<Block>;
|
|
55
58
|
fromJson(json: BlockJson): Promise<Block>;
|
|
56
|
-
fromData(data: BlockData): Promise<Block>;
|
|
57
59
|
fromStorage(header: BlockHeaderStorageData, transactions: TransactionStorageData[]): Promise<Block>;
|
|
60
|
+
headerFromBytes(buff: Buffer): Promise<BlockHeader>;
|
|
61
|
+
headerFromStorage(header: BlockHeaderStorageData): Promise<BlockHeader>;
|
|
58
62
|
}
|
|
63
|
+
export type BlockSerializable = BlockHeaderRaw & {
|
|
64
|
+
readonly transactions: {
|
|
65
|
+
serialized: Buffer;
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
59
68
|
export interface BlockSerializer {
|
|
60
|
-
totalSize(block:
|
|
61
|
-
serializeHeader(block:
|
|
62
|
-
serializeWithTransactions(block:
|
|
69
|
+
totalSize(block: BlockHeaderRaw): number;
|
|
70
|
+
serializeHeader(block: BlockHeaderRaw): Promise<Buffer>;
|
|
71
|
+
serializeWithTransactions(block: BlockSerializable): Promise<Buffer>;
|
|
63
72
|
}
|
|
64
73
|
export interface BlockWithTransactions {
|
|
65
|
-
data:
|
|
74
|
+
data: BlockHeader;
|
|
66
75
|
transactions: Transaction[];
|
|
67
76
|
}
|
|
68
77
|
export interface BlockDeserializer {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../source/contracts/crypto/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../source/contracts/crypto/block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACxF,OAAO,KAAK,EACX,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,uBAAuB,EACvB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAA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