@mainsail/contracts 0.0.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distribution/constants/flags.d.ts +3 -0
- package/distribution/constants/flags.d.ts.map +1 -0
- package/distribution/constants/flags.js +62 -0
- package/distribution/constants/flags.js.map +1 -0
- package/distribution/constants/index.d.ts +3 -0
- package/distribution/constants/index.d.ts.map +1 -0
- package/distribution/constants/index.js +19 -0
- package/distribution/constants/index.js.map +1 -0
- package/distribution/constants/units.d.ts +8 -0
- package/distribution/constants/units.d.ts.map +1 -0
- package/distribution/constants/units.js +12 -0
- package/distribution/constants/units.js.map +1 -0
- package/distribution/contracts/api-sync.d.ts +8 -0
- package/distribution/contracts/api-sync.d.ts.map +1 -0
- package/distribution/contracts/api-sync.js +3 -0
- package/distribution/contracts/api-sync.js.map +1 -0
- package/distribution/contracts/api.d.ts +34 -0
- package/distribution/contracts/api.d.ts.map +1 -0
- package/distribution/contracts/api.js +9 -0
- package/distribution/contracts/api.js.map +1 -0
- package/distribution/contracts/consensus/consensus.d.ts +96 -0
- package/distribution/contracts/consensus/consensus.d.ts.map +1 -0
- package/distribution/contracts/consensus/consensus.js +3 -0
- package/distribution/contracts/consensus/consensus.js.map +1 -0
- package/distribution/contracts/consensus/enums.d.ts +11 -0
- package/distribution/contracts/consensus/enums.d.ts.map +1 -0
- package/distribution/contracts/consensus/enums.js +16 -0
- package/distribution/contracts/consensus/enums.js.map +1 -0
- package/distribution/contracts/consensus/index.d.ts +4 -0
- package/distribution/contracts/consensus/index.d.ts.map +1 -0
- package/distribution/contracts/consensus/index.js +20 -0
- package/distribution/contracts/consensus/index.js.map +1 -0
- package/distribution/contracts/consensus/processor.d.ts +17 -0
- package/distribution/contracts/consensus/processor.d.ts.map +1 -0
- package/distribution/contracts/consensus/processor.js +3 -0
- package/distribution/contracts/consensus/processor.js.map +1 -0
- package/distribution/contracts/crypto/block.d.ts +75 -0
- package/distribution/contracts/crypto/block.d.ts.map +1 -0
- package/distribution/contracts/crypto/block.js +3 -0
- package/distribution/contracts/crypto/block.js.map +1 -0
- package/distribution/contracts/crypto/commit.d.ts +40 -0
- package/distribution/contracts/crypto/commit.d.ts.map +1 -0
- package/distribution/contracts/crypto/commit.js +3 -0
- package/distribution/contracts/crypto/commit.js.map +1 -0
- package/distribution/contracts/crypto/config.d.ts +16 -0
- package/distribution/contracts/crypto/config.d.ts.map +1 -0
- package/distribution/contracts/crypto/config.js +3 -0
- package/distribution/contracts/crypto/config.js.map +1 -0
- package/distribution/contracts/crypto/crypto.d.ts +6 -0
- package/distribution/contracts/crypto/crypto.d.ts.map +1 -0
- package/distribution/contracts/crypto/crypto.js +3 -0
- package/distribution/contracts/crypto/crypto.js.map +1 -0
- package/distribution/contracts/crypto/enums.d.ts +16 -0
- package/distribution/contracts/crypto/enums.d.ts.map +1 -0
- package/distribution/contracts/crypto/enums.js +22 -0
- package/distribution/contracts/crypto/enums.js.map +1 -0
- package/distribution/contracts/crypto/hash.d.ts +8 -0
- package/distribution/contracts/crypto/hash.d.ts.map +1 -0
- package/distribution/contracts/crypto/hash.js +3 -0
- package/distribution/contracts/crypto/hash.js.map +1 -0
- package/distribution/contracts/crypto/identities.d.ts +54 -0
- package/distribution/contracts/crypto/identities.d.ts.map +1 -0
- package/distribution/contracts/crypto/identities.js +3 -0
- package/distribution/contracts/crypto/identities.js.map +1 -0
- package/distribution/contracts/crypto/index.d.ts +13 -0
- package/distribution/contracts/crypto/index.d.ts.map +1 -0
- package/distribution/contracts/crypto/index.js +29 -0
- package/distribution/contracts/crypto/index.js.map +1 -0
- package/distribution/contracts/crypto/messages.d.ts +131 -0
- package/distribution/contracts/crypto/messages.d.ts.map +1 -0
- package/distribution/contracts/crypto/messages.js +9 -0
- package/distribution/contracts/crypto/messages.js.map +1 -0
- package/distribution/contracts/crypto/networks.d.ts +60 -0
- package/distribution/contracts/crypto/networks.d.ts.map +1 -0
- package/distribution/contracts/crypto/networks.js +3 -0
- package/distribution/contracts/crypto/networks.js.map +1 -0
- package/distribution/contracts/crypto/signatures.d.ts +5 -0
- package/distribution/contracts/crypto/signatures.d.ts.map +1 -0
- package/distribution/contracts/crypto/signatures.js +3 -0
- package/distribution/contracts/crypto/signatures.js.map +1 -0
- package/distribution/contracts/crypto/transactions.d.ts +129 -0
- package/distribution/contracts/crypto/transactions.d.ts.map +1 -0
- package/distribution/contracts/crypto/transactions.js +3 -0
- package/distribution/contracts/crypto/transactions.js.map +1 -0
- package/distribution/contracts/crypto/validator.d.ts +16 -0
- package/distribution/contracts/crypto/validator.d.ts.map +1 -0
- package/distribution/contracts/crypto/validator.js +3 -0
- package/distribution/contracts/crypto/validator.js.map +1 -0
- package/distribution/contracts/database.d.ts +13 -0
- package/distribution/contracts/database.d.ts.map +1 -0
- package/distribution/contracts/database.js +3 -0
- package/distribution/contracts/database.js.map +1 -0
- package/distribution/contracts/fees.d.ts +6 -0
- package/distribution/contracts/fees.d.ts.map +1 -0
- package/distribution/contracts/fees.js +3 -0
- package/distribution/contracts/fees.js.map +1 -0
- package/distribution/contracts/flags.d.ts +3 -0
- package/distribution/contracts/flags.d.ts.map +1 -0
- package/distribution/contracts/flags.js +3 -0
- package/distribution/contracts/flags.js.map +1 -0
- package/distribution/contracts/index.d.ts +21 -0
- package/distribution/contracts/index.d.ts.map +1 -0
- package/distribution/contracts/index.js +47 -0
- package/distribution/contracts/index.js.map +1 -0
- package/distribution/contracts/kernel/application.d.ts +54 -0
- package/distribution/contracts/kernel/application.d.ts.map +1 -0
- package/distribution/contracts/kernel/application.js +3 -0
- package/distribution/contracts/kernel/application.js.map +1 -0
- package/distribution/contracts/kernel/cache.d.ts +21 -0
- package/distribution/contracts/kernel/cache.d.ts.map +1 -0
- package/distribution/contracts/kernel/cache.js +3 -0
- package/distribution/contracts/kernel/cache.js.map +1 -0
- package/distribution/contracts/kernel/config.d.ts +5 -0
- package/distribution/contracts/kernel/config.d.ts.map +1 -0
- package/distribution/contracts/kernel/config.js +3 -0
- package/distribution/contracts/kernel/config.js.map +1 -0
- package/distribution/contracts/kernel/container.d.ts +2 -0
- package/distribution/contracts/kernel/container.d.ts.map +1 -0
- package/distribution/contracts/kernel/container.js +3 -0
- package/distribution/contracts/kernel/container.js.map +1 -0
- package/distribution/contracts/kernel/events.d.ts +24 -0
- package/distribution/contracts/kernel/events.d.ts.map +1 -0
- package/distribution/contracts/kernel/events.js +3 -0
- package/distribution/contracts/kernel/events.js.map +1 -0
- package/distribution/contracts/kernel/filesystem.d.ts +17 -0
- package/distribution/contracts/kernel/filesystem.d.ts.map +1 -0
- package/distribution/contracts/kernel/filesystem.js +3 -0
- package/distribution/contracts/kernel/filesystem.js.map +1 -0
- package/distribution/contracts/kernel/index.d.ts +14 -0
- package/distribution/contracts/kernel/index.d.ts.map +1 -0
- package/distribution/contracts/kernel/index.js +30 -0
- package/distribution/contracts/kernel/index.js.map +1 -0
- package/distribution/contracts/kernel/lock.d.ts +5 -0
- package/distribution/contracts/kernel/lock.d.ts.map +1 -0
- package/distribution/contracts/kernel/lock.js +3 -0
- package/distribution/contracts/kernel/lock.js.map +1 -0
- package/distribution/contracts/kernel/log.d.ts +14 -0
- package/distribution/contracts/kernel/log.d.ts.map +1 -0
- package/distribution/contracts/kernel/log.js +3 -0
- package/distribution/contracts/kernel/log.js.map +1 -0
- package/distribution/contracts/kernel/pipeline.d.ts +9 -0
- package/distribution/contracts/kernel/pipeline.d.ts.map +1 -0
- package/distribution/contracts/kernel/pipeline.js +3 -0
- package/distribution/contracts/kernel/pipeline.js.map +1 -0
- package/distribution/contracts/kernel/process-actions.d.ts +9 -0
- package/distribution/contracts/kernel/process-actions.d.ts.map +1 -0
- package/distribution/contracts/kernel/process-actions.js +3 -0
- package/distribution/contracts/kernel/process-actions.js.map +1 -0
- package/distribution/contracts/kernel/queue.d.ts +20 -0
- package/distribution/contracts/kernel/queue.d.ts.map +1 -0
- package/distribution/contracts/kernel/queue.js +3 -0
- package/distribution/contracts/kernel/queue.js.map +1 -0
- package/distribution/contracts/kernel/repository.d.ts +11 -0
- package/distribution/contracts/kernel/repository.d.ts.map +1 -0
- package/distribution/contracts/kernel/repository.js +3 -0
- package/distribution/contracts/kernel/repository.js.map +1 -0
- package/distribution/contracts/kernel/validation.d.ts +12 -0
- package/distribution/contracts/kernel/validation.d.ts.map +1 -0
- package/distribution/contracts/kernel/validation.js +3 -0
- package/distribution/contracts/kernel/validation.js.map +1 -0
- package/distribution/contracts/network-generator.d.ts +61 -0
- package/distribution/contracts/network-generator.d.ts.map +1 -0
- package/distribution/contracts/network-generator.js +3 -0
- package/distribution/contracts/network-generator.js.map +1 -0
- package/distribution/contracts/p2p/api-node-discoverer.d.ts +11 -0
- package/distribution/contracts/p2p/api-node-discoverer.d.ts.map +1 -0
- package/distribution/contracts/p2p/api-node-discoverer.js +3 -0
- package/distribution/contracts/p2p/api-node-discoverer.js.map +1 -0
- package/distribution/contracts/p2p/api-node-processor.d.ts +8 -0
- package/distribution/contracts/p2p/api-node-processor.d.ts.map +1 -0
- package/distribution/contracts/p2p/api-node-processor.js +3 -0
- package/distribution/contracts/p2p/api-node-processor.js.map +1 -0
- package/distribution/contracts/p2p/api-node-repository.d.ts +11 -0
- package/distribution/contracts/p2p/api-node-repository.d.ts.map +1 -0
- package/distribution/contracts/p2p/api-node-repository.js +3 -0
- package/distribution/contracts/p2p/api-node-repository.js.map +1 -0
- package/distribution/contracts/p2p/api-node-verifier.d.ts +5 -0
- package/distribution/contracts/p2p/api-node-verifier.d.ts.map +1 -0
- package/distribution/contracts/p2p/api-node-verifier.js +3 -0
- package/distribution/contracts/p2p/api-node-verifier.js.map +1 -0
- package/distribution/contracts/p2p/api-node.d.ts +14 -0
- package/distribution/contracts/p2p/api-node.d.ts.map +1 -0
- package/distribution/contracts/p2p/api-node.js +3 -0
- package/distribution/contracts/p2p/api-node.js.map +1 -0
- package/distribution/contracts/p2p/broadcaster.d.ts +8 -0
- package/distribution/contracts/p2p/broadcaster.d.ts.map +1 -0
- package/distribution/contracts/p2p/broadcaster.js +3 -0
- package/distribution/contracts/p2p/broadcaster.js.map +1 -0
- package/distribution/contracts/p2p/downloader.d.ts +7 -0
- package/distribution/contracts/p2p/downloader.d.ts.map +1 -0
- package/distribution/contracts/p2p/downloader.js +3 -0
- package/distribution/contracts/p2p/downloader.js.map +1 -0
- package/distribution/contracts/p2p/endpoints.d.ts +92 -0
- package/distribution/contracts/p2p/endpoints.d.ts.map +1 -0
- package/distribution/contracts/p2p/endpoints.js +3 -0
- package/distribution/contracts/p2p/endpoints.js.map +1 -0
- package/distribution/contracts/p2p/enums.d.ts +5 -0
- package/distribution/contracts/p2p/enums.d.ts.map +1 -0
- package/distribution/contracts/p2p/enums.js +9 -0
- package/distribution/contracts/p2p/enums.js.map +1 -0
- package/distribution/contracts/p2p/header-service.d.ts +6 -0
- package/distribution/contracts/p2p/header-service.d.ts.map +1 -0
- package/distribution/contracts/p2p/header-service.js +3 -0
- package/distribution/contracts/p2p/header-service.js.map +1 -0
- package/distribution/contracts/p2p/header.d.ts +22 -0
- package/distribution/contracts/p2p/header.d.ts.map +1 -0
- package/distribution/contracts/p2p/header.js +3 -0
- package/distribution/contracts/p2p/header.js.map +1 -0
- package/distribution/contracts/p2p/index.d.ts +25 -0
- package/distribution/contracts/p2p/index.d.ts.map +1 -0
- package/distribution/contracts/p2p/index.js +41 -0
- package/distribution/contracts/p2p/index.js.map +1 -0
- package/distribution/contracts/p2p/log.d.ts +13 -0
- package/distribution/contracts/p2p/log.d.ts.map +1 -0
- package/distribution/contracts/p2p/log.js +3 -0
- package/distribution/contracts/p2p/log.js.map +1 -0
- package/distribution/contracts/p2p/nes.d.ts +16 -0
- package/distribution/contracts/p2p/nes.d.ts.map +1 -0
- package/distribution/contracts/p2p/nes.js +3 -0
- package/distribution/contracts/p2p/nes.js.map +1 -0
- package/distribution/contracts/p2p/peer-communicator.d.ts +23 -0
- package/distribution/contracts/p2p/peer-communicator.d.ts.map +1 -0
- package/distribution/contracts/p2p/peer-communicator.js +3 -0
- package/distribution/contracts/p2p/peer-communicator.js.map +1 -0
- package/distribution/contracts/p2p/peer-connector.d.ts +8 -0
- package/distribution/contracts/p2p/peer-connector.d.ts.map +1 -0
- package/distribution/contracts/p2p/peer-connector.js +3 -0
- package/distribution/contracts/p2p/peer-connector.js.map +1 -0
- package/distribution/contracts/p2p/peer-discoverer.d.ts +6 -0
- package/distribution/contracts/p2p/peer-discoverer.d.ts.map +1 -0
- package/distribution/contracts/p2p/peer-discoverer.js +3 -0
- package/distribution/contracts/p2p/peer-discoverer.js.map +1 -0
- package/distribution/contracts/p2p/peer-disposer.d.ts +8 -0
- package/distribution/contracts/p2p/peer-disposer.d.ts.map +1 -0
- package/distribution/contracts/p2p/peer-disposer.js +3 -0
- package/distribution/contracts/p2p/peer-disposer.js.map +1 -0
- package/distribution/contracts/p2p/peer-processor.d.ts +10 -0
- package/distribution/contracts/p2p/peer-processor.d.ts.map +1 -0
- package/distribution/contracts/p2p/peer-processor.js +3 -0
- package/distribution/contracts/p2p/peer-processor.js.map +1 -0
- package/distribution/contracts/p2p/peer-repository.d.ts +18 -0
- package/distribution/contracts/p2p/peer-repository.d.ts.map +1 -0
- package/distribution/contracts/p2p/peer-repository.js +3 -0
- package/distribution/contracts/p2p/peer-repository.js.map +1 -0
- package/distribution/contracts/p2p/peer-verifier.d.ts +5 -0
- package/distribution/contracts/p2p/peer-verifier.d.ts.map +1 -0
- package/distribution/contracts/p2p/peer-verifier.js +3 -0
- package/distribution/contracts/p2p/peer-verifier.js.map +1 -0
- package/distribution/contracts/p2p/peer.d.ts +71 -0
- package/distribution/contracts/p2p/peer.d.ts.map +1 -0
- package/distribution/contracts/p2p/peer.js +3 -0
- package/distribution/contracts/p2p/peer.js.map +1 -0
- package/distribution/contracts/p2p/server.d.ts +16 -0
- package/distribution/contracts/p2p/server.d.ts.map +1 -0
- package/distribution/contracts/p2p/server.js +3 -0
- package/distribution/contracts/p2p/server.js.map +1 -0
- package/distribution/contracts/p2p/service.d.ts +6 -0
- package/distribution/contracts/p2p/service.d.ts.map +1 -0
- package/distribution/contracts/p2p/service.js +3 -0
- package/distribution/contracts/p2p/service.js.map +1 -0
- package/distribution/contracts/p2p/state.d.ts +6 -0
- package/distribution/contracts/p2p/state.d.ts.map +1 -0
- package/distribution/contracts/p2p/state.js +3 -0
- package/distribution/contracts/p2p/state.js.map +1 -0
- package/distribution/contracts/processor.d.ts +28 -0
- package/distribution/contracts/processor.d.ts.map +1 -0
- package/distribution/contracts/processor.js +3 -0
- package/distribution/contracts/processor.js.map +1 -0
- package/distribution/contracts/proposer.d.ts +5 -0
- package/distribution/contracts/proposer.d.ts.map +1 -0
- package/distribution/contracts/proposer.js +3 -0
- package/distribution/contracts/proposer.js.map +1 -0
- package/distribution/contracts/serializer.d.ts +32 -0
- package/distribution/contracts/serializer.d.ts.map +1 -0
- package/distribution/contracts/serializer.js +3 -0
- package/distribution/contracts/serializer.js.map +1 -0
- package/distribution/contracts/shared/dynamic-fee.d.ts +8 -0
- package/distribution/contracts/shared/dynamic-fee.d.ts.map +1 -0
- package/distribution/contracts/shared/dynamic-fee.js +3 -0
- package/distribution/contracts/shared/dynamic-fee.js.map +1 -0
- package/distribution/contracts/shared/index.d.ts +3 -0
- package/distribution/contracts/shared/index.d.ts.map +1 -0
- package/distribution/contracts/shared/index.js +19 -0
- package/distribution/contracts/shared/index.js.map +1 -0
- package/distribution/contracts/shared/rounds.d.ts +7 -0
- package/distribution/contracts/shared/rounds.d.ts.map +1 -0
- package/distribution/contracts/shared/rounds.js +3 -0
- package/distribution/contracts/shared/rounds.js.map +1 -0
- package/distribution/contracts/state/attributes.d.ts +22 -0
- package/distribution/contracts/state/attributes.d.ts.map +1 -0
- package/distribution/contracts/state/attributes.js +12 -0
- package/distribution/contracts/state/attributes.js.map +1 -0
- package/distribution/contracts/state/block-state.d.ts +12 -0
- package/distribution/contracts/state/block-state.d.ts.map +1 -0
- package/distribution/contracts/state/block-state.js +3 -0
- package/distribution/contracts/state/block-state.js.map +1 -0
- package/distribution/contracts/state/index-set.d.ts +5 -0
- package/distribution/contracts/state/index-set.d.ts.map +1 -0
- package/distribution/contracts/state/index-set.js +3 -0
- package/distribution/contracts/state/index-set.js.map +1 -0
- package/distribution/contracts/state/index.d.ts +12 -0
- package/distribution/contracts/state/index.d.ts.map +1 -0
- package/distribution/contracts/state/index.js +28 -0
- package/distribution/contracts/state/index.js.map +1 -0
- package/distribution/contracts/state/repository.d.ts +14 -0
- package/distribution/contracts/state/repository.d.ts.map +1 -0
- package/distribution/contracts/state/repository.js +3 -0
- package/distribution/contracts/state/repository.js.map +1 -0
- package/distribution/contracts/state/service.d.ts +10 -0
- package/distribution/contracts/state/service.d.ts.map +1 -0
- package/distribution/contracts/state/service.js +3 -0
- package/distribution/contracts/state/service.js.map +1 -0
- package/distribution/contracts/state/snapshots.d.ts +8 -0
- package/distribution/contracts/state/snapshots.d.ts.map +1 -0
- package/distribution/contracts/state/snapshots.js +3 -0
- package/distribution/contracts/state/snapshots.js.map +1 -0
- package/distribution/contracts/state/state-verifier.d.ts +4 -0
- package/distribution/contracts/state/state-verifier.d.ts.map +1 -0
- package/distribution/contracts/state/state-verifier.js +3 -0
- package/distribution/contracts/state/state-verifier.js.map +1 -0
- package/distribution/contracts/state/state.d.ts +5 -0
- package/distribution/contracts/state/state.d.ts.map +1 -0
- package/distribution/contracts/state/state.js +3 -0
- package/distribution/contracts/state/state.js.map +1 -0
- package/distribution/contracts/state/store.d.ts +21 -0
- package/distribution/contracts/state/store.d.ts.map +1 -0
- package/distribution/contracts/state/store.js +3 -0
- package/distribution/contracts/state/store.js.map +1 -0
- package/distribution/contracts/state/transaction-validator.d.ts +6 -0
- package/distribution/contracts/state/transaction-validator.d.ts.map +1 -0
- package/distribution/contracts/state/transaction-validator.js +3 -0
- package/distribution/contracts/state/transaction-validator.js.map +1 -0
- package/distribution/contracts/state/wallets.d.ts +103 -0
- package/distribution/contracts/state/wallets.d.ts.map +1 -0
- package/distribution/contracts/state/wallets.js +19 -0
- package/distribution/contracts/state/wallets.js.map +1 -0
- package/distribution/contracts/transaction-pool/collator.d.ts +5 -0
- package/distribution/contracts/transaction-pool/collator.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/collator.js +3 -0
- package/distribution/contracts/transaction-pool/collator.js.map +1 -0
- package/distribution/contracts/transaction-pool/dynamic-fee-matcher.d.ts +6 -0
- package/distribution/contracts/transaction-pool/dynamic-fee-matcher.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/dynamic-fee-matcher.js +3 -0
- package/distribution/contracts/transaction-pool/dynamic-fee-matcher.js.map +1 -0
- package/distribution/contracts/transaction-pool/expiration-service.d.ts +7 -0
- package/distribution/contracts/transaction-pool/expiration-service.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/expiration-service.js +3 -0
- package/distribution/contracts/transaction-pool/expiration-service.js.map +1 -0
- package/distribution/contracts/transaction-pool/index.d.ts +11 -0
- package/distribution/contracts/transaction-pool/index.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/index.js +27 -0
- package/distribution/contracts/transaction-pool/index.js.map +1 -0
- package/distribution/contracts/transaction-pool/mempool.d.ts +13 -0
- package/distribution/contracts/transaction-pool/mempool.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/mempool.js +3 -0
- package/distribution/contracts/transaction-pool/mempool.js.map +1 -0
- package/distribution/contracts/transaction-pool/processor.d.ts +23 -0
- package/distribution/contracts/transaction-pool/processor.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/processor.js +3 -0
- package/distribution/contracts/transaction-pool/processor.js.map +1 -0
- package/distribution/contracts/transaction-pool/query.d.ts +20 -0
- package/distribution/contracts/transaction-pool/query.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/query.js +3 -0
- package/distribution/contracts/transaction-pool/query.js.map +1 -0
- package/distribution/contracts/transaction-pool/sender-mempool.d.ts +12 -0
- package/distribution/contracts/transaction-pool/sender-mempool.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/sender-mempool.js +3 -0
- package/distribution/contracts/transaction-pool/sender-mempool.js.map +1 -0
- package/distribution/contracts/transaction-pool/sender-state.d.ts +7 -0
- package/distribution/contracts/transaction-pool/sender-state.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/sender-state.js +3 -0
- package/distribution/contracts/transaction-pool/sender-state.js.map +1 -0
- package/distribution/contracts/transaction-pool/service.d.ts +11 -0
- package/distribution/contracts/transaction-pool/service.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/service.js +3 -0
- package/distribution/contracts/transaction-pool/service.js.map +1 -0
- package/distribution/contracts/transaction-pool/storage.d.ts +16 -0
- package/distribution/contracts/transaction-pool/storage.d.ts.map +1 -0
- package/distribution/contracts/transaction-pool/storage.js +3 -0
- package/distribution/contracts/transaction-pool/storage.js.map +1 -0
- package/distribution/contracts/transactions.d.ts +42 -0
- package/distribution/contracts/transactions.d.ts.map +1 -0
- package/distribution/contracts/transactions.js +3 -0
- package/distribution/contracts/transactions.js.map +1 -0
- package/distribution/contracts/types/container.d.ts +4 -0
- package/distribution/contracts/types/container.d.ts.map +1 -0
- package/distribution/contracts/types/container.js +3 -0
- package/distribution/contracts/types/container.js.map +1 -0
- package/distribution/contracts/types/index.d.ts +8 -0
- package/distribution/contracts/types/index.d.ts.map +1 -0
- package/distribution/contracts/types/index.js +3 -0
- package/distribution/contracts/types/index.js.map +1 -0
- package/distribution/contracts/validator-set.d.ts +9 -0
- package/distribution/contracts/validator-set.d.ts.map +1 -0
- package/distribution/contracts/validator-set.js +3 -0
- package/distribution/contracts/validator-set.js.map +1 -0
- package/distribution/contracts/validator.d.ts +13 -0
- package/distribution/contracts/validator.d.ts.map +1 -0
- package/distribution/contracts/validator.js +3 -0
- package/distribution/contracts/validator.js.map +1 -0
- package/distribution/exceptions/base.d.ts +9 -0
- package/distribution/exceptions/base.d.ts.map +1 -0
- package/distribution/exceptions/base.js +29 -0
- package/distribution/exceptions/base.js.map +1 -0
- package/distribution/exceptions/cache.d.ts +6 -0
- package/distribution/exceptions/cache.d.ts.map +1 -0
- package/distribution/exceptions/cache.js +11 -0
- package/distribution/exceptions/cache.js.map +1 -0
- package/distribution/exceptions/cli.d.ts +8 -0
- package/distribution/exceptions/cli.d.ts.map +1 -0
- package/distribution/exceptions/cli.js +17 -0
- package/distribution/exceptions/cli.js.map +1 -0
- package/distribution/exceptions/config.d.ts +19 -0
- package/distribution/exceptions/config.d.ts.map +1 -0
- package/distribution/exceptions/config.js +35 -0
- package/distribution/exceptions/config.js.map +1 -0
- package/distribution/exceptions/consensus.d.ts +5 -0
- package/distribution/exceptions/consensus.d.ts.map +1 -0
- package/distribution/exceptions/consensus.js +11 -0
- package/distribution/exceptions/consensus.js.map +1 -0
- package/distribution/exceptions/container.d.ts +18 -0
- package/distribution/exceptions/container.d.ts.map +1 -0
- package/distribution/exceptions/container.js +32 -0
- package/distribution/exceptions/container.js.map +1 -0
- package/distribution/exceptions/crypto.d.ts +199 -0
- package/distribution/exceptions/crypto.d.ts.map +1 -0
- package/distribution/exceptions/crypto.js +400 -0
- package/distribution/exceptions/crypto.js.map +1 -0
- package/distribution/exceptions/filesystem.d.ts +12 -0
- package/distribution/exceptions/filesystem.d.ts.map +1 -0
- package/distribution/exceptions/filesystem.js +23 -0
- package/distribution/exceptions/filesystem.js.map +1 -0
- package/distribution/exceptions/forger.d.ts +8 -0
- package/distribution/exceptions/forger.d.ts.map +1 -0
- package/distribution/exceptions/forger.js +17 -0
- package/distribution/exceptions/forger.js.map +1 -0
- package/distribution/exceptions/index.d.ts +17 -0
- package/distribution/exceptions/index.d.ts.map +1 -0
- package/distribution/exceptions/index.js +33 -0
- package/distribution/exceptions/index.js.map +1 -0
- package/distribution/exceptions/logic.d.ts +28 -0
- package/distribution/exceptions/logic.d.ts.map +1 -0
- package/distribution/exceptions/logic.js +50 -0
- package/distribution/exceptions/logic.js.map +1 -0
- package/distribution/exceptions/p2p.d.ts +21 -0
- package/distribution/exceptions/p2p.d.ts.map +1 -0
- package/distribution/exceptions/p2p.js +41 -0
- package/distribution/exceptions/p2p.js.map +1 -0
- package/distribution/exceptions/plugins.d.ts +27 -0
- package/distribution/exceptions/plugins.d.ts.map +1 -0
- package/distribution/exceptions/plugins.js +54 -0
- package/distribution/exceptions/plugins.js.map +1 -0
- package/distribution/exceptions/pool.d.ts +50 -0
- package/distribution/exceptions/pool.d.ts.map +1 -0
- package/distribution/exceptions/pool.js +90 -0
- package/distribution/exceptions/pool.js.map +1 -0
- package/distribution/exceptions/runtime.d.ts +17 -0
- package/distribution/exceptions/runtime.d.ts.map +1 -0
- package/distribution/exceptions/runtime.js +29 -0
- package/distribution/exceptions/runtime.js.map +1 -0
- package/distribution/exceptions/state.d.ts +8 -0
- package/distribution/exceptions/state.d.ts.map +1 -0
- package/distribution/exceptions/state.js +17 -0
- package/distribution/exceptions/state.js.map +1 -0
- package/distribution/exceptions/validation.d.ts +5 -0
- package/distribution/exceptions/validation.d.ts.map +1 -0
- package/distribution/exceptions/validation.js +11 -0
- package/distribution/exceptions/validation.js.map +1 -0
- package/distribution/identifiers.d.ts +290 -0
- package/distribution/identifiers.d.ts.map +1 -0
- package/distribution/identifiers.js +293 -0
- package/distribution/identifiers.js.map +1 -0
- package/distribution/index.d.ts +7 -0
- package/distribution/index.d.ts.map +1 -0
- package/distribution/index.js +36 -0
- package/distribution/index.js.map +1 -0
- package/distribution/utils.d.ts +4 -0
- package/distribution/utils.d.ts.map +1 -0
- package/distribution/utils.js +3 -0
- package/distribution/utils.js.map +1 -0
- package/package.json +37 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { Block } from "./crypto";
|
3
|
+
import { Commit } from "./crypto/commit";
|
4
|
+
export interface DatabaseService {
|
5
|
+
getBlock(height: number): Promise<Block | undefined>;
|
6
|
+
findCommitBuffers(start: number, end: number): Promise<Buffer[]>;
|
7
|
+
readCommits(start: number, end: number): AsyncGenerator<Commit>;
|
8
|
+
findBlocks(start: number, end: number): Promise<Block[]>;
|
9
|
+
getLastBlock(): Promise<Block | undefined>;
|
10
|
+
addCommit(block: Commit): void;
|
11
|
+
persist(): Promise<void>;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=database.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../source/contracts/database.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAErD,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEjE,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAEhE,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAEzD,YAAY,IAAI,OAAO,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IAE3C,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"database.js","sourceRoot":"","sources":["../../source/contracts/database.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fees.d.ts","sourceRoot":"","sources":["../../source/contracts/fees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,WAAW;IAC3B,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAErD,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,IAAI,CAAC;CAChE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fees.js","sourceRoot":"","sources":["../../source/contracts/fees.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../source/contracts/flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../../source/contracts/flags.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export * as Api from "./api";
|
2
|
+
export * as ApiSync from "./api-sync";
|
3
|
+
export * as Consensus from "./consensus";
|
4
|
+
export * as Crypto from "./crypto";
|
5
|
+
export * as Database from "./database";
|
6
|
+
export * as Fee from "./fees";
|
7
|
+
export * as Flags from "./flags";
|
8
|
+
export * as Kernel from "./kernel";
|
9
|
+
export * as NetworkGenerator from "./network-generator";
|
10
|
+
export * as P2P from "./p2p";
|
11
|
+
export * as Processor from "./processor";
|
12
|
+
export * as Proposer from "./proposer";
|
13
|
+
export * as Serializer from "./serializer";
|
14
|
+
export * as Shared from "./shared";
|
15
|
+
export * as State from "./state";
|
16
|
+
export * as TransactionPool from "./transaction-pool";
|
17
|
+
export * as Transactions from "./transactions";
|
18
|
+
export * as Types from "./types";
|
19
|
+
export * as Validator from "./validator";
|
20
|
+
export * as ValidatorSet from "./validator-set";
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,QAAQ,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAC"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
+
exports.ValidatorSet = exports.Validator = exports.Types = exports.Transactions = exports.TransactionPool = exports.State = exports.Shared = exports.Serializer = exports.Proposer = exports.Processor = exports.P2P = exports.NetworkGenerator = exports.Kernel = exports.Flags = exports.Fee = exports.Database = exports.Crypto = exports.Consensus = exports.ApiSync = exports.Api = void 0;
|
27
|
+
exports.Api = __importStar(require("./api"));
|
28
|
+
exports.ApiSync = __importStar(require("./api-sync"));
|
29
|
+
exports.Consensus = __importStar(require("./consensus"));
|
30
|
+
exports.Crypto = __importStar(require("./crypto"));
|
31
|
+
exports.Database = __importStar(require("./database"));
|
32
|
+
exports.Fee = __importStar(require("./fees"));
|
33
|
+
exports.Flags = __importStar(require("./flags"));
|
34
|
+
exports.Kernel = __importStar(require("./kernel"));
|
35
|
+
exports.NetworkGenerator = __importStar(require("./network-generator"));
|
36
|
+
exports.P2P = __importStar(require("./p2p"));
|
37
|
+
exports.Processor = __importStar(require("./processor"));
|
38
|
+
exports.Proposer = __importStar(require("./proposer"));
|
39
|
+
exports.Serializer = __importStar(require("./serializer"));
|
40
|
+
exports.Shared = __importStar(require("./shared"));
|
41
|
+
exports.State = __importStar(require("./state"));
|
42
|
+
exports.TransactionPool = __importStar(require("./transaction-pool"));
|
43
|
+
exports.Transactions = __importStar(require("./transactions"));
|
44
|
+
exports.Types = __importStar(require("./types"));
|
45
|
+
exports.Validator = __importStar(require("./validator"));
|
46
|
+
exports.ValidatorSet = __importStar(require("./validator-set"));
|
47
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/contracts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6B;AAC7B,sDAAsC;AACtC,yDAAyC;AACzC,mDAAmC;AACnC,uDAAuC;AACvC,8CAA8B;AAC9B,iDAAiC;AACjC,mDAAmC;AACnC,wEAAwD;AACxD,6CAA6B;AAC7B,yDAAyC;AACzC,uDAAuC;AACvC,2DAA2C;AAC3C,mDAAmC;AACnC,iDAAiC;AACjC,sEAAsD;AACtD,+DAA+C;AAC/C,iDAAiC;AACjC,yDAAyC;AACzC,gEAAgD"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { JsonObject } from "../types";
|
2
|
+
import { Container } from "./container";
|
3
|
+
export interface Application {
|
4
|
+
readonly container: Container.Container;
|
5
|
+
bootstrap({ flags, plugins }: {
|
6
|
+
flags: JsonObject;
|
7
|
+
plugins?: JsonObject;
|
8
|
+
}): Promise<void>;
|
9
|
+
boot(): void;
|
10
|
+
reboot(): void;
|
11
|
+
config<T = any>(key: string, value?: T, defaultValue?: T): T | undefined;
|
12
|
+
namespace(): string;
|
13
|
+
version(): string;
|
14
|
+
token(): string;
|
15
|
+
network(): string;
|
16
|
+
name(): string;
|
17
|
+
useNetwork(value: string): void;
|
18
|
+
dataPath(path?: string): string;
|
19
|
+
useDataPath(path: string): void;
|
20
|
+
configPath(path?: string): string;
|
21
|
+
useConfigPath(path: string): void;
|
22
|
+
cachePath(path?: string): string;
|
23
|
+
useCachePath(path: string): void;
|
24
|
+
logPath(path?: string): string;
|
25
|
+
useLogPath(path: string): void;
|
26
|
+
tempPath(path?: string): string;
|
27
|
+
useTempPath(path: string): void;
|
28
|
+
environmentFile(): string;
|
29
|
+
environment(): string;
|
30
|
+
useEnvironment(value: string): void;
|
31
|
+
isProduction(): boolean;
|
32
|
+
isDevelopment(): boolean;
|
33
|
+
runningTests(): boolean;
|
34
|
+
isBooted(): boolean;
|
35
|
+
isWorker(): boolean;
|
36
|
+
enableMaintenance(): void;
|
37
|
+
disableMaintenance(): void;
|
38
|
+
isDownForMaintenance(): boolean;
|
39
|
+
terminate(reason?: string, error?: Error): Promise<void>;
|
40
|
+
bind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): Container.BindingToSyntax<T>;
|
41
|
+
rebind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): Container.BindingToSyntax<T>;
|
42
|
+
unbind<T>(serviceIdentifier: Container.ServiceIdentifier<T>): void;
|
43
|
+
get<T>(serviceIdentifier: Container.ServiceIdentifier<T>): T;
|
44
|
+
getTagged<T>(serviceIdentifier: Container.ServiceIdentifier<T>, key: string | number | symbol, value: any): T;
|
45
|
+
isBound<T>(serviceIdentifier: Container.ServiceIdentifier<T>): boolean;
|
46
|
+
isBoundTagged<T>(serviceIdentifier: Container.ServiceIdentifier<T>, key: string | number | symbol, value: any): boolean;
|
47
|
+
resolve<T>(constructorFunction: Container.Newable<T>): T;
|
48
|
+
}
|
49
|
+
export interface PluginDependency {
|
50
|
+
name: string;
|
51
|
+
version?: string;
|
52
|
+
required?: boolean | (() => Promise<boolean>);
|
53
|
+
}
|
54
|
+
//# sourceMappingURL=application.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,WAAW;IAC3B,QAAQ,CAAC,SAAS,EAAE,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,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,EACjD,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAC7B,KAAK,EAAE,GAAG,GACR,OAAO,CAAC;IAEX,OAAO,CAAC,CAAC,EAAE,mBAAmB,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;CAC9C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../source/contracts/kernel/application.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export interface CacheStore<K, T> {
|
2
|
+
make(): Promise<CacheStore<K, T>>;
|
3
|
+
all(): Promise<Array<[K, T]>>;
|
4
|
+
keys(): Promise<K[]>;
|
5
|
+
values(): Promise<T[]>;
|
6
|
+
get(key: K): Promise<T | undefined>;
|
7
|
+
getMany(keys: K[]): Promise<Array<T | undefined>>;
|
8
|
+
put(key: K, value: T, seconds: number): Promise<boolean>;
|
9
|
+
putMany(values: Array<[K, T]>, seconds: number): Promise<boolean[]>;
|
10
|
+
has(key: K): Promise<boolean>;
|
11
|
+
hasMany(keys: K[]): Promise<boolean[]>;
|
12
|
+
missing(key: K): Promise<boolean>;
|
13
|
+
missingMany(keys: K[]): Promise<boolean[]>;
|
14
|
+
forever(key: K, value: T): Promise<boolean>;
|
15
|
+
foreverMany(values: Array<[K, T]>, value: T): Promise<boolean[]>;
|
16
|
+
forget(key: K): Promise<boolean>;
|
17
|
+
forgetMany(keys: K[]): Promise<boolean[]>;
|
18
|
+
flush(): Promise<boolean>;
|
19
|
+
getPrefix(): Promise<string>;
|
20
|
+
}
|
21
|
+
//# source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E3C,OAAO,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE5C,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAEjE,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjC,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAE1C,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1B,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../source/contracts/kernel/cache.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/config.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1C,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../source/contracts/kernel/config.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../source/contracts/kernel/container.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export type EventName = string | symbol;
|
2
|
+
export interface EventListener {
|
3
|
+
handle(payload: {
|
4
|
+
name: EventName;
|
5
|
+
data: any;
|
6
|
+
}): void;
|
7
|
+
}
|
8
|
+
export interface EventDispatcher {
|
9
|
+
listen(event: EventName, listener: EventListener): () => void;
|
10
|
+
listenMany(events: Array<[EventName, EventListener]>): Map<EventName, () => void>;
|
11
|
+
listenOnce(name: EventName, listener: EventListener): void;
|
12
|
+
forget(event: EventName, listener?: EventListener): void;
|
13
|
+
forgetMany(events: Array<[EventName, EventListener]>): void;
|
14
|
+
flush(): void;
|
15
|
+
getListeners(event: EventName): EventListener[];
|
16
|
+
hasListeners(event: EventName): boolean;
|
17
|
+
dispatch<T = any>(event: EventName, data?: T): Promise<void>;
|
18
|
+
dispatchSeq<T = any>(event: EventName, data?: T): Promise<void>;
|
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;
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=events.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/events.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC,MAAM,WAAW,aAAa;IAC7B,MAAM,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,eAAe;IAC/B,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,GAAG,MAAM,IAAI,CAAC;IAE9D,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CA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C,CAAC,CAAC,GAAG,IAAI,CAAC;CAC/D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../source/contracts/kernel/events.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
export interface Filesystem {
|
3
|
+
make(): Promise<Filesystem>;
|
4
|
+
exists(path: string): Promise<boolean>;
|
5
|
+
get(path: string): Promise<Buffer>;
|
6
|
+
put(path: string, contents: string): Promise<boolean>;
|
7
|
+
delete(path: string): Promise<boolean>;
|
8
|
+
copy(from: string, to: string): Promise<boolean>;
|
9
|
+
move(from: string, to: string): Promise<boolean>;
|
10
|
+
size(path: string): Promise<number>;
|
11
|
+
lastModified(path: string): Promise<number>;
|
12
|
+
files(directory: string): Promise<string[]>;
|
13
|
+
directories(directory: string): Promise<string[]>;
|
14
|
+
makeDirectory(path: any): Promise<boolean>;
|
15
|
+
deleteDirectory(directory: string): Promise<boolean>;
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=filesystem.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/filesystem.ts"],"names":[],"mappings":";AAAA,MAAM,WAAW,UAAU;IAC1B,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5B,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvC,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEtD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjD,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjD,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEpC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAE5C,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAE5C,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAElD,aAAa,CAAC,IAAI,KAAA,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEtC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACrD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesystem.js","sourceRoot":"","sources":["../../../source/contracts/kernel/filesystem.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export * from "./application";
|
2
|
+
export * from "./cache";
|
3
|
+
export * from "./config";
|
4
|
+
export * from "./container";
|
5
|
+
export * from "./events";
|
6
|
+
export * from "./filesystem";
|
7
|
+
export * from "./lock";
|
8
|
+
export * from "./log";
|
9
|
+
export * from "./pipeline";
|
10
|
+
export * from "./process-actions";
|
11
|
+
export * from "./queue";
|
12
|
+
export * from "./repository";
|
13
|
+
export * from "./validation";
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./application"), exports);
|
18
|
+
__exportStar(require("./cache"), exports);
|
19
|
+
__exportStar(require("./config"), exports);
|
20
|
+
__exportStar(require("./container"), exports);
|
21
|
+
__exportStar(require("./events"), exports);
|
22
|
+
__exportStar(require("./filesystem"), exports);
|
23
|
+
__exportStar(require("./lock"), exports);
|
24
|
+
__exportStar(require("./log"), exports);
|
25
|
+
__exportStar(require("./pipeline"), exports);
|
26
|
+
__exportStar(require("./process-actions"), exports);
|
27
|
+
__exportStar(require("./queue"), exports);
|
28
|
+
__exportStar(require("./repository"), exports);
|
29
|
+
__exportStar(require("./validation"), exports);
|
30
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/contracts/kernel/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,0CAAwB;AACxB,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,+CAA6B;AAC7B,yCAAuB;AACvB,wCAAsB;AACtB,6CAA2B;AAC3B,oDAAkC;AAClC,0CAAwB;AACxB,+CAA6B;AAC7B,+CAA6B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lock.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/lock.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACpB,YAAY,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACxD,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CAC3D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../source/contracts/kernel/lock.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export interface Logger {
|
2
|
+
make(options?: any): Promise<Logger>;
|
3
|
+
emergency(message: string): void;
|
4
|
+
alert(message: string): void;
|
5
|
+
critical(message: string): void;
|
6
|
+
error(message: string): void;
|
7
|
+
warning(message: string): void;
|
8
|
+
notice(message: string): void;
|
9
|
+
info(message: string): void;
|
10
|
+
debug(message: string): void;
|
11
|
+
suppressConsoleOutput(suppress: boolean): void;
|
12
|
+
dispose(): Promise<void>;
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=log.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/log.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACtB,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAErC,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IAE/C,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAIzB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../../source/contracts/kernel/log.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export interface Stage {
|
2
|
+
process(payload: any): any;
|
3
|
+
}
|
4
|
+
export interface Pipeline {
|
5
|
+
pipe(stage: Function | Stage): Pipeline;
|
6
|
+
process<T>(payload: T): Promise<T | undefined>;
|
7
|
+
processSync<T>(payload: T): T | undefined;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=pipeline.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/pipeline.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACrB,OAAO,CAAC,OAAO,EAAE,GAAG,OAAE;CACtB;AAED,MAAM,WAAW,QAAQ;IACxB,IAAI,CAAC,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC;IAExC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IAE/C,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CAC1C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../../source/contracts/kernel/pipeline.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export type ProcessActionHandler = () => Promise<any>;
|
2
|
+
export interface ProcessAction {
|
3
|
+
name: string;
|
4
|
+
handler: ProcessActionHandler;
|
5
|
+
}
|
6
|
+
export interface ProcessActionsService {
|
7
|
+
register(remoteAction: ProcessAction): void;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=process-actions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"process-actions.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/process-actions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;AAEtD,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,oBAAoB,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACrC,QAAQ,CAAC,YAAY,EAAE,aAAa,GAAG,IAAI,CAAC;CAC5C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"process-actions.js","sourceRoot":"","sources":["../../../source/contracts/kernel/process-actions.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { EventEmitter } from "events";
|
3
|
+
export interface QueueJob {
|
4
|
+
handle(): Promise<void>;
|
5
|
+
}
|
6
|
+
export interface Queue extends EventEmitter {
|
7
|
+
make(): Promise<Queue>;
|
8
|
+
start(): Promise<void>;
|
9
|
+
stop(): Promise<void>;
|
10
|
+
pause(): Promise<void>;
|
11
|
+
resume(): Promise<void>;
|
12
|
+
clear(): Promise<void>;
|
13
|
+
push(job: QueueJob): Promise<void>;
|
14
|
+
later(delay: number, job: QueueJob): Promise<void>;
|
15
|
+
bulk(jobs: QueueJob[]): Promise<void>;
|
16
|
+
size(): number;
|
17
|
+
isStarted(): boolean;
|
18
|
+
isRunning(): boolean;
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=queue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/queue.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,WAAW,QAAQ;IACxB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,KAAM,SAAQ,YAAY;IAC1C,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC;IAEvB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAExB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvB,IAAI,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC,IAAI,IAAI,MAAM,CAAC;IAEf,SAAS,IAAI,OAAO,CAAC;IAErB,SAAS,IAAI,OAAO,CAAC;CACrB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../source/contracts/kernel/queue.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { JsonObject, KeyValuePair } from "../types";
|
2
|
+
export interface Repository {
|
3
|
+
all(): JsonObject;
|
4
|
+
get<T>(key: string, defaultValue?: T): T;
|
5
|
+
set<T>(key: string, value: T): boolean;
|
6
|
+
unset<T>(key: string): boolean;
|
7
|
+
has<T>(key: string): boolean;
|
8
|
+
hasAll<T>(keys: string[]): boolean;
|
9
|
+
merge(items: KeyValuePair): void;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=repository.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/repository.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEzD,MAAM,WAAW,UAAU;IAC1B,GAAG,IAAI,UAAU,CAAC;IAElB,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAEzC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC;IAEvC,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE/B,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE7B,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAEnC,KAAK,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;CACjC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../../../source/contracts/kernel/repository.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { JsonObject } from "../types";
|
2
|
+
export interface Validator {
|
3
|
+
validate(data: JsonObject, schema: object): void;
|
4
|
+
passes(): boolean;
|
5
|
+
fails(): boolean;
|
6
|
+
failed(): Record<string, string[]>;
|
7
|
+
errors(): Record<string, string[]>;
|
8
|
+
valid(): JsonObject | undefined;
|
9
|
+
invalid(): JsonObject;
|
10
|
+
attributes(): JsonObject;
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=validation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../source/contracts/kernel/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,SAAS;IACzB,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjD,MAAM,IAAI,OAAO,CAAC;IAElB,KAAK,IAAI,OAAO,CAAC;IAEjB,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnC,KAAK,IAAI,UAAU,GAAG,SAAS,CAAC;IAEhC,OAAO,IAAI,UAAU,CAAC;IAEtB,UAAU,IAAI,UAAU,CAAC;CACzB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../../source/contracts/kernel/validation.ts"],"names":[],"mappings":""}
|