@ledgerhq/context-module 1.15.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/lib/cjs/package.json +1 -2
- package/lib/cjs/src/ContextModule.js +1 -1
- package/lib/cjs/src/ContextModule.js.map +1 -1
- package/lib/cjs/src/ContextModuleBuilder.js +1 -1
- package/lib/cjs/src/ContextModuleBuilder.js.map +3 -3
- package/lib/cjs/src/ContextModuleBuilder.test.js +1 -1
- package/lib/cjs/src/ContextModuleBuilder.test.js.map +3 -3
- package/lib/cjs/src/DefaultContextModule.js +1 -1
- package/lib/cjs/src/DefaultContextModule.js.map +3 -3
- package/lib/cjs/src/DefaultContextModule.test.js +1 -1
- package/lib/cjs/src/DefaultContextModule.test.js.map +2 -2
- package/lib/cjs/src/account-ownership/data/AccountOwnershipDataSource.js +2 -0
- package/lib/cjs/src/account-ownership/data/AccountOwnershipDataSource.js.map +7 -0
- package/lib/cjs/src/account-ownership/data/AccountOwnershipError.js +2 -0
- package/lib/cjs/src/account-ownership/data/AccountOwnershipError.js.map +7 -0
- package/lib/cjs/src/account-ownership/data/HttpAccountOwnershipDataSource.js +2 -0
- package/lib/cjs/src/account-ownership/data/HttpAccountOwnershipDataSource.js.map +7 -0
- package/lib/cjs/src/account-ownership/data/HttpAccountOwnershipDataSource.test.js +2 -0
- package/lib/cjs/src/account-ownership/data/HttpAccountOwnershipDataSource.test.js.map +7 -0
- package/lib/cjs/src/account-ownership/data/dto/AccountOwnershipDto.js +2 -0
- package/lib/cjs/src/account-ownership/data/dto/AccountOwnershipDto.js.map +7 -0
- package/lib/cjs/src/account-ownership/di/accountOwnershipModuleFactory.js +2 -0
- package/lib/cjs/src/account-ownership/di/accountOwnershipModuleFactory.js.map +7 -0
- package/lib/cjs/src/account-ownership/di/accountOwnershipTypes.js +2 -0
- package/lib/cjs/src/account-ownership/di/accountOwnershipTypes.js.map +7 -0
- package/lib/cjs/src/account-ownership/domain/AccountOwnershipContextLoader.js +2 -0
- package/lib/cjs/src/account-ownership/domain/AccountOwnershipContextLoader.js.map +7 -0
- package/lib/cjs/src/account-ownership/domain/AccountOwnershipContextLoader.test.js +2 -0
- package/lib/cjs/src/account-ownership/domain/AccountOwnershipContextLoader.test.js.map +7 -0
- package/lib/cjs/src/calldata/data/HttpCalldataDescriptorDataSource.js +1 -1
- package/lib/cjs/src/calldata/data/HttpCalldataDescriptorDataSource.js.map +3 -3
- package/lib/cjs/src/calldata/data/HttpCalldataDescriptorDataSource.test.js +1 -1
- package/lib/cjs/src/calldata/data/HttpCalldataDescriptorDataSource.test.js.map +3 -3
- package/lib/cjs/src/calldata/di/calldataModuleFactory.js +1 -1
- package/lib/cjs/src/calldata/di/calldataModuleFactory.js.map +3 -3
- package/lib/cjs/src/config/di/configModuleFactory.js +1 -1
- package/lib/cjs/src/config/di/configModuleFactory.js.map +2 -2
- package/lib/cjs/src/config/model/ContextModuleConfig.js +1 -1
- package/lib/cjs/src/config/model/ContextModuleConfig.js.map +1 -1
- package/lib/cjs/src/di.js +1 -1
- package/lib/cjs/src/di.js.map +3 -3
- package/lib/cjs/src/dynamic-network/data/HttpDynamicNetworkDataSource.js +1 -1
- package/lib/cjs/src/dynamic-network/data/HttpDynamicNetworkDataSource.js.map +3 -3
- package/lib/cjs/src/dynamic-network/data/HttpDynamicNetworkDataSource.test.js +1 -1
- package/lib/cjs/src/dynamic-network/data/HttpDynamicNetworkDataSource.test.js.map +3 -3
- package/lib/cjs/src/dynamic-network/domain/DynamicNetworkContextLoader.js +1 -1
- package/lib/cjs/src/dynamic-network/domain/DynamicNetworkContextLoader.js.map +1 -1
- package/lib/cjs/src/dynamic-network/domain/DynamicNetworkContextLoader.test.js.map +1 -1
- package/lib/cjs/src/external-plugin/data/HttpExternalPluginDataSource.js +1 -1
- package/lib/cjs/src/external-plugin/data/HttpExternalPluginDataSource.js.map +3 -3
- package/lib/cjs/src/external-plugin/data/HttpExternalPluginDataSource.test.js +1 -1
- package/lib/cjs/src/external-plugin/data/HttpExternalPluginDataSource.test.js.map +3 -3
- package/lib/cjs/src/gated-signing/data/HttpGatedDescriptorDataSource.js +1 -1
- package/lib/cjs/src/gated-signing/data/HttpGatedDescriptorDataSource.js.map +3 -3
- package/lib/cjs/src/gated-signing/data/HttpGatedDescriptorDataSource.test.js +1 -1
- package/lib/cjs/src/gated-signing/data/HttpGatedDescriptorDataSource.test.js.map +3 -3
- package/lib/cjs/src/index.js +1 -1
- package/lib/cjs/src/index.js.map +2 -2
- package/lib/cjs/src/network/di/networkModuleFactory.js +2 -0
- package/lib/cjs/src/network/di/networkModuleFactory.js.map +7 -0
- package/lib/cjs/src/network/di/networkTypes.js +2 -0
- package/lib/cjs/src/network/di/networkTypes.js.map +7 -0
- package/lib/cjs/src/nft/data/HttpNftDataSource.js +1 -1
- package/lib/cjs/src/nft/data/HttpNftDataSource.js.map +3 -3
- package/lib/cjs/src/nft/data/HttpNftDataSource.test.js +1 -1
- package/lib/cjs/src/nft/data/HttpNftDataSource.test.js.map +3 -3
- package/lib/cjs/src/pki/data/HttpPkiCertificateDataSource.js +1 -1
- package/lib/cjs/src/pki/data/HttpPkiCertificateDataSource.js.map +3 -3
- package/lib/cjs/src/pki/data/HttpPkiCertificateDataSource.test.js +1 -1
- package/lib/cjs/src/pki/data/HttpPkiCertificateDataSource.test.js.map +3 -3
- package/lib/cjs/src/proxy/data/HttpProxyDataSource.js +1 -1
- package/lib/cjs/src/proxy/data/HttpProxyDataSource.js.map +3 -3
- package/lib/cjs/src/proxy/data/HttpProxyDataSource.test.js +1 -1
- package/lib/cjs/src/proxy/data/HttpProxyDataSource.test.js.map +3 -3
- package/lib/cjs/src/proxy/data/HttpSafeProxyDataSource.js +1 -1
- package/lib/cjs/src/proxy/data/HttpSafeProxyDataSource.js.map +3 -3
- package/lib/cjs/src/proxy/data/HttpSafeProxyDataSource.test.js +1 -1
- package/lib/cjs/src/proxy/data/HttpSafeProxyDataSource.test.js.map +3 -3
- package/lib/cjs/src/proxy/di/proxyModuleFactory.js +1 -1
- package/lib/cjs/src/proxy/di/proxyModuleFactory.js.map +3 -3
- package/lib/cjs/src/proxy/di/proxyModuleFactory.test.js +1 -1
- package/lib/cjs/src/proxy/di/proxyModuleFactory.test.js.map +3 -3
- package/lib/cjs/src/reporter/data/BlindSigningReporterDatasource.js +2 -0
- package/lib/cjs/src/reporter/data/BlindSigningReporterDatasource.js.map +7 -0
- package/lib/cjs/src/reporter/data/HttpBlindSigningReporterDatasource.js +2 -0
- package/lib/cjs/src/reporter/data/HttpBlindSigningReporterDatasource.js.map +7 -0
- package/lib/cjs/src/reporter/data/HttpBlindSigningReporterDatasource.test.js +2 -0
- package/lib/cjs/src/reporter/data/HttpBlindSigningReporterDatasource.test.js.map +7 -0
- package/lib/cjs/src/reporter/data/dto/BlindSigningEventDto.js +2 -0
- package/lib/cjs/src/reporter/data/dto/BlindSigningEventDto.js.map +7 -0
- package/lib/cjs/src/reporter/di/reporterModuleFactory.js +2 -0
- package/lib/cjs/src/reporter/di/reporterModuleFactory.js.map +7 -0
- package/lib/cjs/src/reporter/di/reporterTypes.js +2 -0
- package/lib/cjs/src/reporter/di/reporterTypes.js.map +7 -0
- package/lib/cjs/src/reporter/domain/BlindSigningReporter.js +2 -0
- package/lib/cjs/src/reporter/domain/BlindSigningReporter.js.map +7 -0
- package/lib/cjs/src/reporter/domain/DefaultBlindSigningReporter.js +2 -0
- package/lib/cjs/src/reporter/domain/DefaultBlindSigningReporter.js.map +7 -0
- package/lib/cjs/src/reporter/domain/DefaultBlindSigningReporter.test.js +2 -0
- package/lib/cjs/src/reporter/domain/DefaultBlindSigningReporter.test.js.map +7 -0
- package/lib/cjs/src/reporter/model/BlindSigningEvent.js +2 -0
- package/lib/cjs/src/reporter/model/BlindSigningEvent.js.map +7 -0
- package/lib/cjs/src/reporter/model/BlindSigningModelId.js +2 -0
- package/lib/cjs/src/reporter/model/BlindSigningModelId.js.map +7 -0
- package/lib/cjs/src/safe/data/HttpSafeAccountDataSource.js +1 -1
- package/lib/cjs/src/safe/data/HttpSafeAccountDataSource.js.map +3 -3
- package/lib/cjs/src/safe/data/HttpSafeAccountDataSource.test.js +1 -1
- package/lib/cjs/src/safe/data/HttpSafeAccountDataSource.test.js.map +3 -3
- package/lib/cjs/src/shared/model/ClearSignContext.js +1 -1
- package/lib/cjs/src/shared/model/ClearSignContext.js.map +2 -2
- package/lib/cjs/src/solana/data/HttpSolanaOwnerInfoDataSource.js +1 -1
- package/lib/cjs/src/solana/data/HttpSolanaOwnerInfoDataSource.js.map +3 -3
- package/lib/cjs/src/solana/data/HttpSolanaOwnerInfoDataSource.test.js +1 -1
- package/lib/cjs/src/solana/data/HttpSolanaOwnerInfoDataSource.test.js.map +3 -3
- package/lib/cjs/src/solana/domain/DefaultSolanaContextLoader.test.js +1 -1
- package/lib/cjs/src/solana/domain/DefaultSolanaContextLoader.test.js.map +1 -1
- package/lib/cjs/src/solanaLifi/data/HttpSolanaLifiDataSource.js +1 -1
- package/lib/cjs/src/solanaLifi/data/HttpSolanaLifiDataSource.js.map +3 -3
- package/lib/cjs/src/solanaLifi/data/HttpSolanaLifiDataSource.test.js +1 -1
- package/lib/cjs/src/solanaLifi/data/HttpSolanaLifiDataSource.test.js.map +3 -3
- package/lib/cjs/src/solanaLifi/domain/SolanaLifiContextLoader.js.map +1 -1
- package/lib/cjs/src/solanaLifi/domain/SolanaLifiContextLoader.test.js.map +1 -1
- package/lib/cjs/src/solanaToken/data/HttpSolanaTokenDataSource.js +1 -1
- package/lib/cjs/src/solanaToken/data/HttpSolanaTokenDataSource.js.map +3 -3
- package/lib/cjs/src/solanaToken/data/HttpSolanaTokenDataSource.test.js +6 -6
- package/lib/cjs/src/solanaToken/data/HttpSolanaTokenDataSource.test.js.map +3 -3
- package/lib/cjs/src/solanaToken/domain/SolanaTokenContextLoader.js +1 -1
- package/lib/cjs/src/solanaToken/domain/SolanaTokenContextLoader.js.map +2 -2
- package/lib/cjs/src/solanaToken/domain/SolanaTokenContextLoader.test.js +1 -1
- package/lib/cjs/src/solanaToken/domain/SolanaTokenContextLoader.test.js.map +1 -1
- package/lib/cjs/src/token/data/HttpTokenDataSource.js +1 -1
- package/lib/cjs/src/token/data/HttpTokenDataSource.js.map +3 -3
- package/lib/cjs/src/token/data/HttpTokenDataSource.test.js +1 -1
- package/lib/cjs/src/token/data/HttpTokenDataSource.test.js.map +3 -3
- package/lib/cjs/src/transaction-check/data/HttpTransactionCheckDataSource.js +1 -1
- package/lib/cjs/src/transaction-check/data/HttpTransactionCheckDataSource.js.map +3 -3
- package/lib/cjs/src/transaction-check/data/HttpTransactionCheckDataSource.test.js +1 -1
- package/lib/cjs/src/transaction-check/data/HttpTransactionCheckDataSource.test.js.map +3 -3
- package/lib/cjs/src/transaction-check/data/HttpTypedDataCheckDataSource.js +1 -1
- package/lib/cjs/src/transaction-check/data/HttpTypedDataCheckDataSource.js.map +3 -3
- package/lib/cjs/src/transaction-check/data/HttpTypedDataCheckDataSource.test.js +1 -1
- package/lib/cjs/src/transaction-check/data/HttpTypedDataCheckDataSource.test.js.map +3 -3
- package/lib/cjs/src/trusted-name/data/HttpTrustedNameDataSource.js +1 -1
- package/lib/cjs/src/trusted-name/data/HttpTrustedNameDataSource.js.map +3 -3
- package/lib/cjs/src/trusted-name/data/HttpTrustedNameDataSource.test.js +1 -1
- package/lib/cjs/src/trusted-name/data/HttpTrustedNameDataSource.test.js.map +3 -3
- package/lib/cjs/src/trusted-name/di/trustedNameModuleFactory.js +1 -1
- package/lib/cjs/src/trusted-name/di/trustedNameModuleFactory.js.map +3 -3
- package/lib/cjs/src/typed-data/data/HttpTypedDataDataSource.js +1 -1
- package/lib/cjs/src/typed-data/data/HttpTypedDataDataSource.js.map +3 -3
- package/lib/cjs/src/typed-data/data/HttpTypedDataDataSource.test.js +1 -1
- package/lib/cjs/src/typed-data/data/HttpTypedDataDataSource.test.js.map +3 -3
- package/lib/esm/package.json +1 -2
- package/lib/esm/src/ContextModuleBuilder.js +1 -1
- package/lib/esm/src/ContextModuleBuilder.js.map +3 -3
- package/lib/esm/src/ContextModuleBuilder.test.js +1 -1
- package/lib/esm/src/ContextModuleBuilder.test.js.map +3 -3
- package/lib/esm/src/DefaultContextModule.js +1 -1
- package/lib/esm/src/DefaultContextModule.js.map +3 -3
- package/lib/esm/src/DefaultContextModule.test.js +1 -1
- package/lib/esm/src/DefaultContextModule.test.js.map +2 -2
- package/lib/esm/src/account-ownership/data/AccountOwnershipDataSource.js +1 -0
- package/lib/esm/src/account-ownership/data/AccountOwnershipDataSource.js.map +7 -0
- package/lib/esm/src/account-ownership/data/AccountOwnershipError.js +2 -0
- package/lib/esm/src/account-ownership/data/AccountOwnershipError.js.map +7 -0
- package/lib/esm/src/account-ownership/data/HttpAccountOwnershipDataSource.js +2 -0
- package/lib/esm/src/account-ownership/data/HttpAccountOwnershipDataSource.js.map +7 -0
- package/lib/esm/src/account-ownership/data/HttpAccountOwnershipDataSource.test.js +2 -0
- package/lib/esm/src/account-ownership/data/HttpAccountOwnershipDataSource.test.js.map +7 -0
- package/lib/esm/src/account-ownership/data/dto/AccountOwnershipDto.js +1 -0
- package/lib/esm/src/account-ownership/data/dto/AccountOwnershipDto.js.map +7 -0
- package/lib/esm/src/account-ownership/di/accountOwnershipModuleFactory.js +2 -0
- package/lib/esm/src/account-ownership/di/accountOwnershipModuleFactory.js.map +7 -0
- package/lib/esm/src/account-ownership/di/accountOwnershipTypes.js +2 -0
- package/lib/esm/src/account-ownership/di/accountOwnershipTypes.js.map +7 -0
- package/lib/esm/src/account-ownership/domain/AccountOwnershipContextLoader.js +2 -0
- package/lib/esm/src/account-ownership/domain/AccountOwnershipContextLoader.js.map +7 -0
- package/lib/esm/src/account-ownership/domain/AccountOwnershipContextLoader.test.js +2 -0
- package/lib/esm/src/account-ownership/domain/AccountOwnershipContextLoader.test.js.map +7 -0
- package/lib/esm/src/calldata/data/HttpCalldataDescriptorDataSource.js +1 -1
- package/lib/esm/src/calldata/data/HttpCalldataDescriptorDataSource.js.map +3 -3
- package/lib/esm/src/calldata/data/HttpCalldataDescriptorDataSource.test.js +1 -1
- package/lib/esm/src/calldata/data/HttpCalldataDescriptorDataSource.test.js.map +3 -3
- package/lib/esm/src/calldata/di/calldataModuleFactory.js +1 -1
- package/lib/esm/src/calldata/di/calldataModuleFactory.js.map +3 -3
- package/lib/esm/src/config/di/configModuleFactory.js +1 -1
- package/lib/esm/src/config/di/configModuleFactory.js.map +2 -2
- package/lib/esm/src/di.js +1 -1
- package/lib/esm/src/di.js.map +3 -3
- package/lib/esm/src/dynamic-network/data/HttpDynamicNetworkDataSource.js +1 -1
- package/lib/esm/src/dynamic-network/data/HttpDynamicNetworkDataSource.js.map +3 -3
- package/lib/esm/src/dynamic-network/data/HttpDynamicNetworkDataSource.test.js +1 -1
- package/lib/esm/src/dynamic-network/data/HttpDynamicNetworkDataSource.test.js.map +3 -3
- package/lib/esm/src/dynamic-network/domain/DynamicNetworkContextLoader.js +1 -1
- package/lib/esm/src/dynamic-network/domain/DynamicNetworkContextLoader.js.map +1 -1
- package/lib/esm/src/dynamic-network/domain/DynamicNetworkContextLoader.test.js.map +1 -1
- package/lib/esm/src/external-plugin/data/HttpExternalPluginDataSource.js +1 -1
- package/lib/esm/src/external-plugin/data/HttpExternalPluginDataSource.js.map +3 -3
- package/lib/esm/src/external-plugin/data/HttpExternalPluginDataSource.test.js +1 -1
- package/lib/esm/src/external-plugin/data/HttpExternalPluginDataSource.test.js.map +3 -3
- package/lib/esm/src/gated-signing/data/HttpGatedDescriptorDataSource.js +1 -1
- package/lib/esm/src/gated-signing/data/HttpGatedDescriptorDataSource.js.map +3 -3
- package/lib/esm/src/gated-signing/data/HttpGatedDescriptorDataSource.test.js +1 -1
- package/lib/esm/src/gated-signing/data/HttpGatedDescriptorDataSource.test.js.map +3 -3
- package/lib/esm/src/index.js +1 -1
- package/lib/esm/src/index.js.map +2 -2
- package/lib/esm/src/network/di/networkModuleFactory.js +2 -0
- package/lib/esm/src/network/di/networkModuleFactory.js.map +7 -0
- package/lib/esm/src/network/di/networkTypes.js +2 -0
- package/lib/esm/src/network/di/networkTypes.js.map +7 -0
- package/lib/esm/src/nft/data/HttpNftDataSource.js +1 -1
- package/lib/esm/src/nft/data/HttpNftDataSource.js.map +3 -3
- package/lib/esm/src/nft/data/HttpNftDataSource.test.js +1 -1
- package/lib/esm/src/nft/data/HttpNftDataSource.test.js.map +3 -3
- package/lib/esm/src/pki/data/HttpPkiCertificateDataSource.js +1 -1
- package/lib/esm/src/pki/data/HttpPkiCertificateDataSource.js.map +3 -3
- package/lib/esm/src/pki/data/HttpPkiCertificateDataSource.test.js +1 -1
- package/lib/esm/src/pki/data/HttpPkiCertificateDataSource.test.js.map +3 -3
- package/lib/esm/src/proxy/data/HttpProxyDataSource.js +1 -1
- package/lib/esm/src/proxy/data/HttpProxyDataSource.js.map +3 -3
- package/lib/esm/src/proxy/data/HttpProxyDataSource.test.js +1 -1
- package/lib/esm/src/proxy/data/HttpProxyDataSource.test.js.map +3 -3
- package/lib/esm/src/proxy/data/HttpSafeProxyDataSource.js +1 -1
- package/lib/esm/src/proxy/data/HttpSafeProxyDataSource.js.map +3 -3
- package/lib/esm/src/proxy/data/HttpSafeProxyDataSource.test.js +1 -1
- package/lib/esm/src/proxy/data/HttpSafeProxyDataSource.test.js.map +3 -3
- package/lib/esm/src/proxy/di/proxyModuleFactory.js +1 -1
- package/lib/esm/src/proxy/di/proxyModuleFactory.js.map +3 -3
- package/lib/esm/src/proxy/di/proxyModuleFactory.test.js +1 -1
- package/lib/esm/src/proxy/di/proxyModuleFactory.test.js.map +3 -3
- package/lib/esm/src/reporter/data/BlindSigningReporterDatasource.js +1 -0
- package/lib/esm/src/reporter/data/BlindSigningReporterDatasource.js.map +7 -0
- package/lib/esm/src/reporter/data/HttpBlindSigningReporterDatasource.js +2 -0
- package/lib/esm/src/reporter/data/HttpBlindSigningReporterDatasource.js.map +7 -0
- package/lib/esm/src/reporter/data/HttpBlindSigningReporterDatasource.test.js +2 -0
- package/lib/esm/src/reporter/data/HttpBlindSigningReporterDatasource.test.js.map +7 -0
- package/lib/esm/src/reporter/data/dto/BlindSigningEventDto.js +1 -0
- package/lib/esm/src/reporter/data/dto/BlindSigningEventDto.js.map +7 -0
- package/lib/esm/src/reporter/di/reporterModuleFactory.js +2 -0
- package/lib/esm/src/reporter/di/reporterModuleFactory.js.map +7 -0
- package/lib/esm/src/reporter/di/reporterTypes.js +2 -0
- package/lib/esm/src/reporter/di/reporterTypes.js.map +7 -0
- package/lib/esm/src/reporter/domain/BlindSigningReporter.js +1 -0
- package/lib/esm/src/reporter/domain/BlindSigningReporter.js.map +7 -0
- package/lib/esm/src/reporter/domain/DefaultBlindSigningReporter.js +2 -0
- package/lib/esm/src/reporter/domain/DefaultBlindSigningReporter.js.map +7 -0
- package/lib/esm/src/reporter/domain/DefaultBlindSigningReporter.test.js +2 -0
- package/lib/esm/src/reporter/domain/DefaultBlindSigningReporter.test.js.map +7 -0
- package/lib/esm/src/reporter/model/BlindSigningEvent.js +2 -0
- package/lib/esm/src/reporter/model/BlindSigningEvent.js.map +7 -0
- package/lib/esm/src/reporter/model/BlindSigningModelId.js +2 -0
- package/lib/esm/src/reporter/model/BlindSigningModelId.js.map +7 -0
- package/lib/esm/src/safe/data/HttpSafeAccountDataSource.js +1 -1
- package/lib/esm/src/safe/data/HttpSafeAccountDataSource.js.map +3 -3
- package/lib/esm/src/safe/data/HttpSafeAccountDataSource.test.js +1 -1
- package/lib/esm/src/safe/data/HttpSafeAccountDataSource.test.js.map +3 -3
- package/lib/esm/src/shared/model/ClearSignContext.js +1 -1
- package/lib/esm/src/shared/model/ClearSignContext.js.map +2 -2
- package/lib/esm/src/solana/data/HttpSolanaOwnerInfoDataSource.js +1 -1
- package/lib/esm/src/solana/data/HttpSolanaOwnerInfoDataSource.js.map +3 -3
- package/lib/esm/src/solana/data/HttpSolanaOwnerInfoDataSource.test.js +1 -1
- package/lib/esm/src/solana/data/HttpSolanaOwnerInfoDataSource.test.js.map +3 -3
- package/lib/esm/src/solana/domain/DefaultSolanaContextLoader.test.js +1 -1
- package/lib/esm/src/solana/domain/DefaultSolanaContextLoader.test.js.map +1 -1
- package/lib/esm/src/solanaLifi/data/HttpSolanaLifiDataSource.js +1 -1
- package/lib/esm/src/solanaLifi/data/HttpSolanaLifiDataSource.js.map +3 -3
- package/lib/esm/src/solanaLifi/data/HttpSolanaLifiDataSource.test.js +1 -1
- package/lib/esm/src/solanaLifi/data/HttpSolanaLifiDataSource.test.js.map +3 -3
- package/lib/esm/src/solanaLifi/domain/SolanaLifiContextLoader.js.map +1 -1
- package/lib/esm/src/solanaLifi/domain/SolanaLifiContextLoader.test.js +1 -1
- package/lib/esm/src/solanaLifi/domain/SolanaLifiContextLoader.test.js.map +1 -1
- package/lib/esm/src/solanaToken/data/HttpSolanaTokenDataSource.js +1 -1
- package/lib/esm/src/solanaToken/data/HttpSolanaTokenDataSource.js.map +3 -3
- package/lib/esm/src/solanaToken/data/HttpSolanaTokenDataSource.test.js +6 -6
- package/lib/esm/src/solanaToken/data/HttpSolanaTokenDataSource.test.js.map +3 -3
- package/lib/esm/src/solanaToken/domain/SolanaTokenContextLoader.js +1 -1
- package/lib/esm/src/solanaToken/domain/SolanaTokenContextLoader.js.map +2 -2
- package/lib/esm/src/solanaToken/domain/SolanaTokenContextLoader.test.js +1 -1
- package/lib/esm/src/solanaToken/domain/SolanaTokenContextLoader.test.js.map +1 -1
- package/lib/esm/src/token/data/HttpTokenDataSource.js +1 -1
- package/lib/esm/src/token/data/HttpTokenDataSource.js.map +3 -3
- package/lib/esm/src/token/data/HttpTokenDataSource.test.js +1 -1
- package/lib/esm/src/token/data/HttpTokenDataSource.test.js.map +3 -3
- package/lib/esm/src/transaction-check/data/HttpTransactionCheckDataSource.js +1 -1
- package/lib/esm/src/transaction-check/data/HttpTransactionCheckDataSource.js.map +3 -3
- package/lib/esm/src/transaction-check/data/HttpTransactionCheckDataSource.test.js +1 -1
- package/lib/esm/src/transaction-check/data/HttpTransactionCheckDataSource.test.js.map +3 -3
- package/lib/esm/src/transaction-check/data/HttpTypedDataCheckDataSource.js +1 -1
- package/lib/esm/src/transaction-check/data/HttpTypedDataCheckDataSource.js.map +3 -3
- package/lib/esm/src/transaction-check/data/HttpTypedDataCheckDataSource.test.js +1 -1
- package/lib/esm/src/transaction-check/data/HttpTypedDataCheckDataSource.test.js.map +3 -3
- package/lib/esm/src/trusted-name/data/HttpTrustedNameDataSource.js +1 -1
- package/lib/esm/src/trusted-name/data/HttpTrustedNameDataSource.js.map +3 -3
- package/lib/esm/src/trusted-name/data/HttpTrustedNameDataSource.test.js +1 -1
- package/lib/esm/src/trusted-name/data/HttpTrustedNameDataSource.test.js.map +3 -3
- package/lib/esm/src/trusted-name/di/trustedNameModuleFactory.js +1 -1
- package/lib/esm/src/trusted-name/di/trustedNameModuleFactory.js.map +3 -3
- package/lib/esm/src/typed-data/data/HttpTypedDataDataSource.js +1 -1
- package/lib/esm/src/typed-data/data/HttpTypedDataDataSource.js.map +3 -3
- package/lib/esm/src/typed-data/data/HttpTypedDataDataSource.test.js +1 -1
- package/lib/esm/src/typed-data/data/HttpTypedDataDataSource.test.js.map +3 -3
- package/lib/types/src/ContextModule.d.ts +2 -0
- package/lib/types/src/ContextModule.d.ts.map +1 -1
- package/lib/types/src/ContextModuleBuilder.d.ts +30 -3
- package/lib/types/src/ContextModuleBuilder.d.ts.map +1 -1
- package/lib/types/src/DefaultContextModule.d.ts +6 -2
- package/lib/types/src/DefaultContextModule.d.ts.map +1 -1
- package/lib/types/src/account-ownership/data/AccountOwnershipDataSource.d.ts +17 -0
- package/lib/types/src/account-ownership/data/AccountOwnershipDataSource.d.ts.map +1 -0
- package/lib/types/src/account-ownership/data/AccountOwnershipError.d.ts +17 -0
- package/lib/types/src/account-ownership/data/AccountOwnershipError.d.ts.map +1 -0
- package/lib/types/src/account-ownership/data/HttpAccountOwnershipDataSource.d.ts +30 -0
- package/lib/types/src/account-ownership/data/HttpAccountOwnershipDataSource.d.ts.map +1 -0
- package/lib/types/src/account-ownership/data/HttpAccountOwnershipDataSource.test.d.ts +2 -0
- package/lib/types/src/account-ownership/data/HttpAccountOwnershipDataSource.test.d.ts.map +1 -0
- package/lib/types/src/account-ownership/data/dto/AccountOwnershipDto.d.ts +6 -0
- package/lib/types/src/account-ownership/data/dto/AccountOwnershipDto.d.ts.map +1 -0
- package/lib/types/src/account-ownership/di/accountOwnershipModuleFactory.d.ts +3 -0
- package/lib/types/src/account-ownership/di/accountOwnershipModuleFactory.d.ts.map +1 -0
- package/lib/types/src/account-ownership/di/accountOwnershipTypes.d.ts +5 -0
- package/lib/types/src/account-ownership/di/accountOwnershipTypes.d.ts.map +1 -0
- package/lib/types/src/account-ownership/domain/AccountOwnershipContextLoader.d.ts +20 -0
- package/lib/types/src/account-ownership/domain/AccountOwnershipContextLoader.d.ts.map +1 -0
- package/lib/types/src/account-ownership/domain/AccountOwnershipContextLoader.test.d.ts +2 -0
- package/lib/types/src/account-ownership/domain/AccountOwnershipContextLoader.test.d.ts.map +1 -0
- package/lib/types/src/calldata/data/HttpCalldataDescriptorDataSource.d.ts +4 -2
- package/lib/types/src/calldata/data/HttpCalldataDescriptorDataSource.d.ts.map +1 -1
- package/lib/types/src/calldata/di/calldataModuleFactory.d.ts.map +1 -1
- package/lib/types/src/config/di/configModuleFactory.d.ts +2 -2
- package/lib/types/src/config/di/configModuleFactory.d.ts.map +1 -1
- package/lib/types/src/config/model/ContextModuleConfig.d.ts +14 -3
- package/lib/types/src/config/model/ContextModuleConfig.d.ts.map +1 -1
- package/lib/types/src/di.d.ts +2 -2
- package/lib/types/src/di.d.ts.map +1 -1
- package/lib/types/src/dynamic-network/data/HttpDynamicNetworkDataSource.d.ts +4 -2
- package/lib/types/src/dynamic-network/data/HttpDynamicNetworkDataSource.d.ts.map +1 -1
- package/lib/types/src/dynamic-network/domain/DynamicNetworkContextLoader.d.ts +2 -2
- package/lib/types/src/dynamic-network/domain/DynamicNetworkContextLoader.d.ts.map +1 -1
- package/lib/types/src/external-plugin/data/HttpExternalPluginDataSource.d.ts +4 -2
- package/lib/types/src/external-plugin/data/HttpExternalPluginDataSource.d.ts.map +1 -1
- package/lib/types/src/gated-signing/data/HttpGatedDescriptorDataSource.d.ts +4 -2
- package/lib/types/src/gated-signing/data/HttpGatedDescriptorDataSource.d.ts.map +1 -1
- package/lib/types/src/index.d.ts +11 -1
- package/lib/types/src/index.d.ts.map +1 -1
- package/lib/types/src/network/di/networkModuleFactory.d.ts +4 -0
- package/lib/types/src/network/di/networkModuleFactory.d.ts.map +1 -0
- package/lib/types/src/network/di/networkTypes.d.ts +4 -0
- package/lib/types/src/network/di/networkTypes.d.ts.map +1 -0
- package/lib/types/src/nft/data/HttpNftDataSource.d.ts +4 -2
- package/lib/types/src/nft/data/HttpNftDataSource.d.ts.map +1 -1
- package/lib/types/src/pki/data/HttpPkiCertificateDataSource.d.ts +5 -2
- package/lib/types/src/pki/data/HttpPkiCertificateDataSource.d.ts.map +1 -1
- package/lib/types/src/proxy/data/HttpProxyDataSource.d.ts +4 -2
- package/lib/types/src/proxy/data/HttpProxyDataSource.d.ts.map +1 -1
- package/lib/types/src/proxy/data/HttpSafeProxyDataSource.d.ts +4 -2
- package/lib/types/src/proxy/data/HttpSafeProxyDataSource.d.ts.map +1 -1
- package/lib/types/src/proxy/di/proxyModuleFactory.d.ts +2 -2
- package/lib/types/src/proxy/di/proxyModuleFactory.d.ts.map +1 -1
- package/lib/types/src/reporter/data/BlindSigningReporterDatasource.d.ts +29 -0
- package/lib/types/src/reporter/data/BlindSigningReporterDatasource.d.ts.map +1 -0
- package/lib/types/src/reporter/data/HttpBlindSigningReporterDatasource.d.ts +11 -0
- package/lib/types/src/reporter/data/HttpBlindSigningReporterDatasource.d.ts.map +1 -0
- package/lib/types/src/reporter/data/HttpBlindSigningReporterDatasource.test.d.ts +2 -0
- package/lib/types/src/reporter/data/HttpBlindSigningReporterDatasource.test.d.ts.map +1 -0
- package/lib/types/src/reporter/data/dto/BlindSigningEventDto.d.ts +26 -0
- package/lib/types/src/reporter/data/dto/BlindSigningEventDto.d.ts.map +1 -0
- package/lib/types/src/reporter/di/reporterModuleFactory.d.ts +3 -0
- package/lib/types/src/reporter/di/reporterModuleFactory.d.ts.map +1 -0
- package/lib/types/src/reporter/di/reporterTypes.d.ts +5 -0
- package/lib/types/src/reporter/di/reporterTypes.d.ts.map +1 -0
- package/lib/types/src/reporter/domain/BlindSigningReporter.d.ts +6 -0
- package/lib/types/src/reporter/domain/BlindSigningReporter.d.ts.map +1 -0
- package/lib/types/src/reporter/domain/DefaultBlindSigningReporter.d.ts +9 -0
- package/lib/types/src/reporter/domain/DefaultBlindSigningReporter.d.ts.map +1 -0
- package/lib/types/src/reporter/domain/DefaultBlindSigningReporter.test.d.ts +2 -0
- package/lib/types/src/reporter/domain/DefaultBlindSigningReporter.test.d.ts.map +1 -0
- package/lib/types/src/reporter/model/BlindSigningEvent.d.ts +21 -0
- package/lib/types/src/reporter/model/BlindSigningEvent.d.ts.map +1 -0
- package/lib/types/src/reporter/model/BlindSigningModelId.d.ts +12 -0
- package/lib/types/src/reporter/model/BlindSigningModelId.d.ts.map +1 -0
- package/lib/types/src/safe/data/HttpSafeAccountDataSource.d.ts +4 -2
- package/lib/types/src/safe/data/HttpSafeAccountDataSource.d.ts.map +1 -1
- package/lib/types/src/shared/model/ClearSignContext.d.ts +2 -1
- package/lib/types/src/shared/model/ClearSignContext.d.ts.map +1 -1
- package/lib/types/src/solana/data/HttpSolanaOwnerInfoDataSource.d.ts +4 -2
- package/lib/types/src/solana/data/HttpSolanaOwnerInfoDataSource.d.ts.map +1 -1
- package/lib/types/src/solanaLifi/data/HttpSolanaLifiDataSource.d.ts +4 -3
- package/lib/types/src/solanaLifi/data/HttpSolanaLifiDataSource.d.ts.map +1 -1
- package/lib/types/src/solanaLifi/domain/SolanaLifiContextLoader.d.ts +2 -2
- package/lib/types/src/solanaLifi/domain/SolanaLifiContextLoader.d.ts.map +1 -1
- package/lib/types/src/solanaToken/data/HttpSolanaTokenDataSource.d.ts +4 -2
- package/lib/types/src/solanaToken/data/HttpSolanaTokenDataSource.d.ts.map +1 -1
- package/lib/types/src/solanaToken/domain/SolanaTokenContextLoader.d.ts +2 -2
- package/lib/types/src/solanaToken/domain/SolanaTokenContextLoader.d.ts.map +1 -1
- package/lib/types/src/token/data/HttpTokenDataSource.d.ts +4 -2
- package/lib/types/src/token/data/HttpTokenDataSource.d.ts.map +1 -1
- package/lib/types/src/transaction-check/data/HttpTransactionCheckDataSource.d.ts +4 -2
- package/lib/types/src/transaction-check/data/HttpTransactionCheckDataSource.d.ts.map +1 -1
- package/lib/types/src/transaction-check/data/HttpTypedDataCheckDataSource.d.ts +4 -2
- package/lib/types/src/transaction-check/data/HttpTypedDataCheckDataSource.d.ts.map +1 -1
- package/lib/types/src/trusted-name/data/HttpTrustedNameDataSource.d.ts +4 -2
- package/lib/types/src/trusted-name/data/HttpTrustedNameDataSource.d.ts.map +1 -1
- package/lib/types/src/trusted-name/di/trustedNameModuleFactory.d.ts +2 -2
- package/lib/types/src/trusted-name/di/trustedNameModuleFactory.d.ts.map +1 -1
- package/lib/types/src/typed-data/data/HttpTypedDataDataSource.d.ts +4 -2
- package/lib/types/src/typed-data/data/HttpTypedDataDataSource.d.ts.map +1 -1
- package/lib/types/src/typed-data/data/HttpTypedDataDataSource.test.d.ts.map +1 -1
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +6 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountOwnershipModuleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/account-ownership/di/accountOwnershipModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAO5C,eAAO,MAAM,6BAA6B,uBAQtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountOwnershipTypes.d.ts","sourceRoot":"","sources":["../../../../../src/account-ownership/di/accountOwnershipTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;CAGjC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type DeviceModelId } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import type { AccountOwnershipDataSource, AccountOwnershipNetwork } from "../../account-ownership/data/AccountOwnershipDataSource";
|
|
3
|
+
import { type PkiCertificateLoader } from "../../pki/domain/PkiCertificateLoader";
|
|
4
|
+
import { type ContextLoader } from "../../shared/domain/ContextLoader";
|
|
5
|
+
import { type ClearSignContext, ClearSignContextType } from "../../shared/model/ClearSignContext";
|
|
6
|
+
export type AccountOwnershipContextInput = {
|
|
7
|
+
publicKey: string;
|
|
8
|
+
address: string;
|
|
9
|
+
network: AccountOwnershipNetwork;
|
|
10
|
+
deviceModelId: DeviceModelId;
|
|
11
|
+
challenge: string;
|
|
12
|
+
};
|
|
13
|
+
export declare class AccountOwnershipContextLoader implements ContextLoader<AccountOwnershipContextInput> {
|
|
14
|
+
private readonly _dataSource;
|
|
15
|
+
private readonly _certificateLoader;
|
|
16
|
+
constructor(_dataSource: AccountOwnershipDataSource, _certificateLoader: PkiCertificateLoader);
|
|
17
|
+
canHandle(input: unknown, expectedTypes: ClearSignContextType[]): input is AccountOwnershipContextInput;
|
|
18
|
+
load({ publicKey, address, network, deviceModelId, challenge, }: AccountOwnershipContextInput): Promise<ClearSignContext[]>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=AccountOwnershipContextLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountOwnershipContextLoader.d.ts","sourceRoot":"","sources":["../../../../../src/account-ownership/domain/AccountOwnershipContextLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAGrE,OAAO,KAAK,EACV,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,qDAAqD,CAAC;AAG7D,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EACL,KAAK,gBAAgB,EACrB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,uBAAuB,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAMF,qBACa,6BACX,YAAW,aAAa,CAAC,4BAA4B,CAAC;IAIpD,OAAO,CAAC,QAAQ,CAAC,WAAW;IAE5B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBAFlB,WAAW,EAAE,0BAA0B,EAEvC,kBAAkB,EAAE,oBAAoB;IAG3D,SAAS,CACP,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,oBAAoB,EAAE,GACpC,KAAK,IAAI,4BAA4B;IAqBlC,IAAI,CAAC,EACT,SAAS,EACT,OAAO,EACP,OAAO,EACP,aAAa,EACb,SAAS,GACV,EAAE,4BAA4B,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CA6B9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountOwnershipContextLoader.test.d.ts","sourceRoot":"","sources":["../../../../../src/account-ownership/domain/AccountOwnershipContextLoader.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { DmkNetworkClient } from "@ledgerhq/device-management-kit";
|
|
1
2
|
import { Either } from "purify-ts";
|
|
2
|
-
import { type
|
|
3
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
4
|
import { type PkiCertificateLoader } from "../../pki/domain/PkiCertificateLoader";
|
|
4
5
|
import { ClearSignContextSuccess } from "../../shared/model/ClearSignContext";
|
|
5
6
|
import { CalldataDescriptorDataSource, GetCalldataDescriptorsParams } from "./CalldataDescriptorDataSource";
|
|
@@ -7,7 +8,8 @@ export declare class HttpCalldataDescriptorDataSource implements CalldataDescrip
|
|
|
7
8
|
private readonly config;
|
|
8
9
|
private readonly _certificateLoader;
|
|
9
10
|
private readonly endpoint;
|
|
10
|
-
|
|
11
|
+
private readonly http;
|
|
12
|
+
constructor(config: ContextModuleServiceConfig, _certificateLoader: PkiCertificateLoader, endpoint: string, http: DmkNetworkClient);
|
|
11
13
|
getCalldataDescriptors({ chainId, address, selector, deviceModelId, }: GetCalldataDescriptorsParams): Promise<Either<Error, ClearSignContextSuccess[]>>;
|
|
12
14
|
private getReference;
|
|
13
15
|
private toGenericPath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpCalldataDescriptorDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/calldata/data/HttpCalldataDescriptorDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpCalldataDescriptorDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/calldata/data/HttpCalldataDescriptorDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAGhD,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,oCAAoC,CAAC;AAG5C,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAK9E,OAAO,EAGL,uBAAuB,EAExB,MAAM,iCAAiC,CAAC;AAsBzC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,gCAAgC,CAAC;AAExC,qBACa,gCACX,YAAW,4BAA4B;IAIrC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAEzB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBALJ,MAAM,EAAE,0BAA0B,EAElC,kBAAkB,EAAE,oBAAoB,EACxC,QAAQ,EAAE,MAAM,EAEhB,IAAI,EAAE,gBAAgB;IAG5B,sBAAsB,CAAC,EAClC,OAAO,EACP,OAAO,EACP,QAAQ,EACR,aAAa,GACd,EAAE,4BAA4B,GAAG,OAAO,CACvC,MAAM,CAAC,KAAK,EAAE,uBAAuB,EAAE,CAAC,CACzC;IA+GD,OAAO,CAAC,YAAY;IA0EpB,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,sBAAsB;IAqB9B,OAAO,CAAC,mBAAmB;IAiB3B,OAAO,CAAC,QAAQ;IAsBhB,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,SAAS;IAqCjB,OAAO,CAAC,mBAAmB;IAuB3B,OAAO,CAAC,mCAAmC;IAU3C,OAAO,CAAC,qCAAqC;IAc7C,OAAO,CAAC,eAAe;CAqBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calldataModuleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/calldata/di/calldataModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"calldataModuleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/calldata/di/calldataModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAS5C,eAAO,MAAM,qBAAqB,uBAqB9B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ContainerModule } from "inversify";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const configModuleFactory: (config:
|
|
2
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
|
+
export declare const configModuleFactory: (config: ContextModuleServiceConfig) => ContainerModule;
|
|
4
4
|
//# sourceMappingURL=configModuleFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configModuleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/config/di/configModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"configModuleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/config/di/configModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAIrF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,0BAA0B,oBAKlE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type LoggerPublisherService } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type BlindSigningReporter } from "../../reporter/domain/BlindSigningReporter";
|
|
2
3
|
import { type ContextFieldLoader } from "../../shared/domain/ContextFieldLoader";
|
|
3
4
|
import { type ContextLoader } from "../../shared/domain/ContextLoader";
|
|
4
5
|
import { type SolanaContextLoader } from "../../solana/domain/SolanaContextLoader";
|
|
@@ -17,6 +18,9 @@ export type ContextModuleWeb3ChecksConfig = {
|
|
|
17
18
|
export type ContextModuleMetadataServiceConfig = {
|
|
18
19
|
url: string;
|
|
19
20
|
};
|
|
21
|
+
export type ContextModuleReporterConfig = {
|
|
22
|
+
url: string;
|
|
23
|
+
};
|
|
20
24
|
export type ContextModuleDatasourceConfig = {
|
|
21
25
|
proxy?: "safe" | "default";
|
|
22
26
|
};
|
|
@@ -24,15 +28,22 @@ export type ContextModuleConfig = {
|
|
|
24
28
|
cal: ContextModuleCalConfig;
|
|
25
29
|
web3checks: ContextModuleWeb3ChecksConfig;
|
|
26
30
|
metadataServiceDomain: ContextModuleMetadataServiceConfig;
|
|
31
|
+
reporter: ContextModuleReporterConfig;
|
|
32
|
+
datasource: ContextModuleDatasourceConfig;
|
|
33
|
+
appSource: string;
|
|
34
|
+
};
|
|
35
|
+
export type ContextModuleServiceConfig = ContextModuleConfig & {
|
|
36
|
+
originToken: string;
|
|
37
|
+
loggerFactory: (tag: string) => LoggerPublisherService;
|
|
38
|
+
};
|
|
39
|
+
export type ContextModuleLoaderConfig = {
|
|
27
40
|
defaultLoaders: boolean;
|
|
28
41
|
defaultFieldLoaders: boolean;
|
|
29
42
|
customFieldLoaders: ContextFieldLoader[];
|
|
30
43
|
customLoaders: ContextLoader[];
|
|
31
|
-
loggerFactory: (tag: string) => LoggerPublisherService;
|
|
32
44
|
customTypedDataLoader?: TypedDataContextLoader;
|
|
33
45
|
customSolanaLoader?: SolanaContextLoader;
|
|
46
|
+
customBlindSigningReporter?: BlindSigningReporter;
|
|
34
47
|
customTrustedNameDataSource?: TrustedNameDataSource;
|
|
35
|
-
originToken?: string;
|
|
36
|
-
datasource?: ContextModuleDatasourceConfig;
|
|
37
48
|
};
|
|
38
49
|
//# sourceMappingURL=ContextModuleConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextModuleConfig.d.ts","sourceRoot":"","sources":["../../../../../src/config/model/ContextModuleConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAEzF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,CAAC;AACnD,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,sBAAsB,CAAC;IAC5B,UAAU,EAAE,6BAA6B,CAAC;IAC1C,qBAAqB,EAAE,kCAAkC,CAAC;IAC1D,
|
|
1
|
+
{"version":3,"file":"ContextModuleConfig.d.ts","sourceRoot":"","sources":["../../../../../src/config/model/ContextModuleConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAEzF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,CAAC;AACnD,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,EAAE,sBAAsB,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,sBAAsB,CAAC;IAC5B,UAAU,EAAE,6BAA6B,CAAC;IAC1C,qBAAqB,EAAE,kCAAkC,CAAC;IAC1D,QAAQ,EAAE,2BAA2B,CAAC;IACtC,UAAU,EAAE,6BAA6B,CAAC;IAC1C,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,GAAG;IAC7D,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,sBAAsB,CAAC;CACxD,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,cAAc,EAAE,OAAO,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;IACzC,aAAa,EAAE,aAAa,EAAE,CAAC;IAC/B,qBAAqB,CAAC,EAAE,sBAAsB,CAAC;IAC/C,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC,0BAA0B,CAAC,EAAE,oBAAoB,CAAC;IAClD,2BAA2B,CAAC,EAAE,qBAAqB,CAAC;CACrD,CAAC"}
|
package/lib/types/src/di.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Container } from "inversify";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ContextModuleLoaderConfig, type ContextModuleServiceConfig } from "./config/model/ContextModuleConfig";
|
|
3
3
|
type MakeContainerArgs = {
|
|
4
|
-
config:
|
|
4
|
+
config: ContextModuleServiceConfig & ContextModuleLoaderConfig;
|
|
5
5
|
};
|
|
6
6
|
export declare const makeContainer: ({ config }: MakeContainerArgs) => Container;
|
|
7
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.d.ts","sourceRoot":"","sources":["../../../src/di.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"di.d.ts","sourceRoot":"","sources":["../../../src/di.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAMtC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAChC,MAAM,oCAAoC,CAAC;AAmB5C,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,0BAA0B,GAAG,yBAAyB,CAAC;CAChE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,iBAAiB,cAiC1D,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { DmkNetworkClient } from "@ledgerhq/device-management-kit";
|
|
1
2
|
import { Either } from "purify-ts";
|
|
2
|
-
import { type
|
|
3
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
4
|
import { type DynamicNetworkConfiguration } from "../../dynamic-network/model/DynamicNetworkConfiguration";
|
|
4
5
|
import { type DynamicNetworkDataSource } from "./DynamicNetworkDataSource";
|
|
5
6
|
export declare class HttpDynamicNetworkDataSource implements DynamicNetworkDataSource {
|
|
6
7
|
private readonly config;
|
|
7
|
-
|
|
8
|
+
private readonly http;
|
|
9
|
+
constructor(config: ContextModuleServiceConfig, http: DmkNetworkClient);
|
|
8
10
|
getDynamicNetworkConfiguration(chainId: number): Promise<Either<Error, DynamicNetworkConfiguration>>;
|
|
9
11
|
private isValidNetworkData;
|
|
10
12
|
private isValidDescriptor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpDynamicNetworkDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/dynamic-network/data/HttpDynamicNetworkDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpDynamicNetworkDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/dynamic-network/data/HttpDynamicNetworkDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EACjB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAGhD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,qDAAqD,CAAC;AAI7D,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAY3E,qBACa,4BAA6B,YAAW,wBAAwB;IAGzE,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAFJ,MAAM,EAAE,0BAA0B,EAElC,IAAI,EAAE,gBAAgB;IAGnC,8BAA8B,CAClC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,2BAA2B,CAAC,CAAC;IAsCtD,OAAO,CAAC,kBAAkB;IAkC1B,OAAO,CAAC,iBAAiB;IAkCzB,OAAO,CAAC,+BAA+B;CA2BxC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceModelId, LoggerPublisherService } from "@ledgerhq/device-management-kit";
|
|
2
|
-
import { type
|
|
2
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
3
|
import { type DynamicNetworkDataSource } from "../../dynamic-network/data/DynamicNetworkDataSource";
|
|
4
4
|
import { type PkiCertificateLoader } from "../../pki/domain/PkiCertificateLoader";
|
|
5
5
|
import { ContextLoader } from "../../shared/domain/ContextLoader";
|
|
@@ -15,7 +15,7 @@ export declare class DynamicNetworkContextLoader implements ContextLoader<Dynami
|
|
|
15
15
|
private readonly _config;
|
|
16
16
|
private readonly _certificateLoader;
|
|
17
17
|
private logger;
|
|
18
|
-
constructor(networkDataSource: DynamicNetworkDataSource, config:
|
|
18
|
+
constructor(networkDataSource: DynamicNetworkDataSource, config: ContextModuleServiceConfig, certificateLoader: PkiCertificateLoader, loggerFactory: (tag: string) => LoggerPublisherService);
|
|
19
19
|
canHandle(input: unknown, expectedTypes: ClearSignContextType[]): input is DynamicNetworkContextInput;
|
|
20
20
|
load(input: DynamicNetworkContextInput): Promise<ClearSignContext[]>;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicNetworkContextLoader.d.ts","sourceRoot":"","sources":["../../../../../src/dynamic-network/domain/DynamicNetworkContextLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"DynamicNetworkContextLoader.d.ts","sourceRoot":"","sources":["../../../../../src/dynamic-network/domain/DynamicNetworkContextLoader.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,sBAAsB,EACvB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAGhG,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAG9E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAChB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAGzC,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAIF,kGAAkG;AAClG,eAAO,MAAM,6BAA6B,EAAE,oBAAoB,EAG/D,CAAC;AAEF,qBACa,2BACX,YAAW,aAAa,CAAC,0BAA0B,CAAC;IAEpD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA2B;IAC9D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA6B;IACrD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAuB;IAC1D,OAAO,CAAC,MAAM,CAAyB;gBAIrC,iBAAiB,EAAE,wBAAwB,EAE3C,MAAM,EAAE,0BAA0B,EAElC,iBAAiB,EAAE,oBAAoB,EAEvC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,sBAAsB;IAQxD,SAAS,CACP,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,oBAAoB,EAAE,GACpC,KAAK,IAAI,0BAA0B;IAehC,IAAI,CAAC,KAAK,EAAE,0BAA0B,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAyD3E"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { DmkNetworkClient } from "@ledgerhq/device-management-kit";
|
|
1
2
|
import { Either } from "purify-ts";
|
|
2
|
-
import type {
|
|
3
|
+
import type { ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
4
|
import { ExternalPluginDataSource, GetDappInfos } from "../../external-plugin/data/ExternalPluginDataSource";
|
|
4
5
|
import { DappInfos } from "../../external-plugin/model/DappInfos";
|
|
5
6
|
export declare class HttpExternalPluginDataSource implements ExternalPluginDataSource {
|
|
6
7
|
private readonly config;
|
|
7
|
-
|
|
8
|
+
private readonly http;
|
|
9
|
+
constructor(config: ContextModuleServiceConfig, http: DmkNetworkClient);
|
|
8
10
|
getDappInfos({ chainId, address, selector, }: GetDappInfos): Promise<Either<Error, DappInfos | undefined>>;
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=HttpExternalPluginDataSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpExternalPluginDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/external-plugin/data/HttpExternalPluginDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpExternalPluginDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/external-plugin/data/HttpExternalPluginDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAGhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAErF,OAAO,EACL,wBAAwB,EACxB,YAAY,EACb,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAI9D,qBACa,4BAA6B,YAAW,wBAAwB;IAGzE,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAFJ,MAAM,EAAE,0BAA0B,EAElC,IAAI,EAAE,gBAAgB;IAGnC,YAAY,CAAC,EACjB,OAAO,EACP,OAAO,EACP,QAAQ,GACT,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;CAyDhE"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { DmkNetworkClient } from "@ledgerhq/device-management-kit";
|
|
1
2
|
import { Either } from "purify-ts";
|
|
2
|
-
import { type
|
|
3
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
4
|
import { type GatedDescriptorDataSource, type GetGatedDescriptorForTypedDataParams, type GetGatedDescriptorParams, type GetGatedDescriptorResponse } from "./GatedDescriptorDataSource";
|
|
4
5
|
export declare class HttpGatedDescriptorDataSource implements GatedDescriptorDataSource {
|
|
5
6
|
private readonly config;
|
|
6
|
-
|
|
7
|
+
private readonly http;
|
|
8
|
+
constructor(config: ContextModuleServiceConfig, http: DmkNetworkClient);
|
|
7
9
|
getGatedDescriptor({ contractAddress, selector, chainId, }: GetGatedDescriptorParams): Promise<Either<Error, GetGatedDescriptorResponse>>;
|
|
8
10
|
getGatedDescriptorForTypedData({ contractAddress, schemaHash, chainId, }: GetGatedDescriptorForTypedDataParams): Promise<Either<Error, GetGatedDescriptorResponse>>;
|
|
9
11
|
private isGatedDappsDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpGatedDescriptorDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/gated-signing/data/HttpGatedDescriptorDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpGatedDescriptorDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/gated-signing/data/HttpGatedDescriptorDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAGhD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAUrF,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAChC,MAAM,6BAA6B,CAAC;AAErC,qBACa,6BACX,YAAW,yBAAyB;IAIlC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAFJ,MAAM,EAAE,0BAA0B,EAElC,IAAI,EAAE,gBAAgB;IAGnC,kBAAkB,CAAC,EACvB,eAAe,EACf,QAAQ,EACR,OAAO,GACR,EAAE,wBAAwB,GAAG,OAAO,CACnC,MAAM,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAC1C;IA2DK,8BAA8B,CAAC,EACnC,eAAe,EACf,UAAU,EACV,OAAO,GACR,EAAE,oCAAoC,GAAG,OAAO,CAC/C,MAAM,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAC1C;IAqDD,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,2BAA2B;IA6BnC,OAAO,CAAC,yBAAyB;CA8BlC"}
|
package/lib/types/src/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
export * from "./account-ownership/data/AccountOwnershipDataSource";
|
|
2
|
+
export * from "./account-ownership/data/AccountOwnershipError";
|
|
3
|
+
export * from "./account-ownership/data/HttpAccountOwnershipDataSource";
|
|
4
|
+
export * from "./account-ownership/domain/AccountOwnershipContextLoader";
|
|
1
5
|
export * from "./calldata/data/CalldataDescriptorDataSource";
|
|
2
6
|
export * from "./calldata/data/HttpCalldataDescriptorDataSource";
|
|
3
7
|
export * from "./calldata/domain/CalldataContextLoader";
|
|
4
|
-
export
|
|
8
|
+
export type { ContextModuleCalBranch, ContextModuleCalConfig, ContextModuleCalMode, ContextModuleConfig, ContextModuleDatasourceConfig, ContextModuleMetadataServiceConfig, ContextModuleReporterConfig, ContextModuleWeb3ChecksConfig, } from "./config/model/ContextModuleConfig";
|
|
5
9
|
export * from "./ContextModule";
|
|
6
10
|
export * from "./ContextModuleBuilder";
|
|
7
11
|
export * from "./DefaultContextModule";
|
|
@@ -32,6 +36,12 @@ export * from "./proxy/data/HttpProxyDataSource";
|
|
|
32
36
|
export * from "./proxy/data/HttpSafeProxyDataSource";
|
|
33
37
|
export * from "./proxy/data/ProxyDataSource";
|
|
34
38
|
export * from "./proxy/domain/ProxyContextFieldLoader";
|
|
39
|
+
export * from "./reporter/data/BlindSigningReporterDatasource";
|
|
40
|
+
export * from "./reporter/data/HttpBlindSigningReporterDatasource";
|
|
41
|
+
export * from "./reporter/domain/BlindSigningReporter";
|
|
42
|
+
export * from "./reporter/domain/DefaultBlindSigningReporter";
|
|
43
|
+
export * from "./reporter/model/BlindSigningEvent";
|
|
44
|
+
export * from "./reporter/model/BlindSigningModelId";
|
|
35
45
|
export * from "./shared/domain/ContextFieldLoader";
|
|
36
46
|
export * from "./shared/domain/ContextLoader";
|
|
37
47
|
export * from "./shared/model/ClearSignContext";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAC;AACpE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,yDAAyD,CAAC;AACxE,cAAc,0DAA0D,CAAC;AACzE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,kDAAkD,CAAC;AACjE,cAAc,yCAAyC,CAAC;AACxD,YAAY,EACV,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,6BAA6B,EAC7B,kCAAkC,EAClC,2BAA2B,EAC3B,6BAA6B,GAC9B,MAAM,oCAAoC,CAAC;AAC5C,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iDAAiD,CAAC;AAChE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,qDAAqD,CAAC;AACpE,cAAc,iDAAiD,CAAC;AAChE,cAAc,qDAAqD,CAAC;AACpE,cAAc,sDAAsD,CAAC;AACrE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oDAAoD,CAAC;AACnE,cAAc,kDAAkD,CAAC;AACjE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qDAAqD,CAAC;AACpE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,uCAAuC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ContainerModule } from "inversify";
|
|
2
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
|
+
export declare const networkModuleFactory: (config: ContextModuleServiceConfig) => ContainerModule;
|
|
4
|
+
//# sourceMappingURL=networkModuleFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkModuleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/network/di/networkModuleFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAQrF,eAAO,MAAM,oBAAoB,GAAI,QAAQ,0BAA0B,oBAYnE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkTypes.d.ts","sourceRoot":"","sources":["../../../../../src/network/di/networkTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;CAExB,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { DmkNetworkClient } from "@ledgerhq/device-management-kit";
|
|
1
2
|
import { Either } from "purify-ts";
|
|
2
|
-
import { type
|
|
3
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
4
|
import { GetNftInformationsParams, GetSetPluginPayloadParams, NftDataSource } from "../../nft/data/NftDataSource";
|
|
4
5
|
export declare class HttpNftDataSource implements NftDataSource {
|
|
5
6
|
private readonly config;
|
|
6
|
-
|
|
7
|
+
private readonly http;
|
|
8
|
+
constructor(config: ContextModuleServiceConfig, http: DmkNetworkClient);
|
|
7
9
|
getSetPluginPayload({ chainId, address, selector, }: GetSetPluginPayloadParams): Promise<Either<Error, string>>;
|
|
8
10
|
getNftInfosPayload({ chainId, address, }: GetNftInformationsParams): Promise<Either<Error, string>>;
|
|
9
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpNftDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/nft/data/HttpNftDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpNftDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/nft/data/HttpNftDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAGhD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAErF,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,aAAa,EACd,MAAM,0BAA0B,CAAC;AAElC,qBACa,iBAAkB,YAAW,aAAa;IAGnD,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAFJ,MAAM,EAAE,0BAA0B,EAElC,IAAI,EAAE,gBAAgB;IAG5B,mBAAmB,CAAC,EAC/B,OAAO,EACP,OAAO,EACP,QAAQ,GACT,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAsBhD,kBAAkB,CAAC,EAC9B,OAAO,EACP,OAAO,GACR,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CAiB7D"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { DmkNetworkClient } from "@ledgerhq/device-management-kit";
|
|
1
2
|
import { Either } from "purify-ts";
|
|
2
|
-
import type {
|
|
3
|
+
import type { ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
4
|
import { PkiCertificate } from "../../pki/model/PkiCertificate";
|
|
4
5
|
import { PkiCertificateInfo } from "../../pki/model/PkiCertificateInfo";
|
|
5
6
|
import { type PkiCertificateDataSource } from "./PkiCertificateDataSource";
|
|
6
7
|
export declare class HttpPkiCertificateDataSource implements PkiCertificateDataSource {
|
|
7
8
|
private readonly config;
|
|
8
|
-
|
|
9
|
+
private readonly http;
|
|
10
|
+
constructor(config: ContextModuleServiceConfig, http: DmkNetworkClient);
|
|
9
11
|
fetchCertificate(pkiCertificateInfo: PkiCertificateInfo): Promise<Either<Error, PkiCertificate | undefined>>;
|
|
10
12
|
private isValidPkiCertificateResponse;
|
|
13
|
+
private isRecord;
|
|
11
14
|
}
|
|
12
15
|
//# sourceMappingURL=HttpPkiCertificateDataSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpPkiCertificateDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/pki/data/HttpPkiCertificateDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpPkiCertificateDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/pki/data/HttpPkiCertificateDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEjB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAGhD,OAAO,KAAK,EAEV,0BAA0B,EAC3B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAKpE,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAM3E,qBACa,4BAA6B,YAAW,wBAAwB;IAGzE,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAFJ,MAAM,EAAE,0BAA0B,EAElC,IAAI,EAAE,gBAAgB;IAGnC,gBAAgB,CACpB,kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAAC,CAAC;IA8DrD,OAAO,CAAC,6BAA6B;IAiBrC,OAAO,CAAC,QAAQ;CAGjB"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { DmkNetworkClient } from "@ledgerhq/device-management-kit";
|
|
1
2
|
import { Either } from "purify-ts";
|
|
2
|
-
import { type
|
|
3
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
4
|
import { GetProxyImplementationAddressParam, ProxyDataSource, ProxyImplementationAddress } from "./ProxyDataSource";
|
|
4
5
|
export declare class HttpProxyDataSource implements ProxyDataSource {
|
|
5
6
|
private readonly config;
|
|
6
|
-
|
|
7
|
+
private readonly http;
|
|
8
|
+
constructor(config: ContextModuleServiceConfig, http: DmkNetworkClient);
|
|
7
9
|
getProxyImplementationAddress({ proxyAddress, chainId, challenge, calldata, }: GetProxyImplementationAddressParam): Promise<Either<Error, ProxyImplementationAddress>>;
|
|
8
10
|
/**
|
|
9
11
|
* Type guard to validate ProxyDelegateCallDto
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpProxyDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/proxy/data/HttpProxyDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpProxyDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/proxy/data/HttpProxyDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAGhD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAMrF,OAAO,EACL,kCAAkC,EAClC,eAAe,EACf,0BAA0B,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,qBACa,mBAAoB,YAAW,eAAe;IAGvD,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAFJ,MAAM,EAAE,0BAA0B,EAElC,IAAI,EAAE,gBAAgB;IAGnC,6BAA6B,CAAC,EAClC,YAAY,EACZ,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE,kCAAkC,GAAG,OAAO,CAC7C,MAAM,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAC1C;IAmDD;;OAEG;IACH,OAAO,CAAC,sBAAsB;CAa/B"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { DmkNetworkClient } from "@ledgerhq/device-management-kit";
|
|
1
2
|
import { Either } from "purify-ts";
|
|
2
|
-
import { type
|
|
3
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
4
|
import { GetProxyImplementationAddressParam, type ProxyDataSource, ProxyImplementationAddress } from "./ProxyDataSource";
|
|
4
5
|
export declare class HttpSafeProxyDataSource implements ProxyDataSource {
|
|
5
6
|
private readonly config;
|
|
6
|
-
|
|
7
|
+
private readonly http;
|
|
8
|
+
constructor(config: ContextModuleServiceConfig, http: DmkNetworkClient);
|
|
7
9
|
getProxyImplementationAddress({ proxyAddress, chainId, challenge, }: GetProxyImplementationAddressParam): Promise<Either<Error, ProxyImplementationAddress>>;
|
|
8
10
|
/**
|
|
9
11
|
* Type guard to validate SafeProxyImplementationAddressDto
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpSafeProxyDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/proxy/data/HttpSafeProxyDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpSafeProxyDataSource.d.ts","sourceRoot":"","sources":["../../../../../src/proxy/data/HttpSafeProxyDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAGhD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAIrF,OAAO,EACL,kCAAkC,EAClC,KAAK,eAAe,EACpB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,qBACa,uBAAwB,YAAW,eAAe;IAG3D,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAFJ,MAAM,EAAE,0BAA0B,EAElC,IAAI,EAAE,gBAAgB;IAGnC,6BAA6B,CAAC,EAClC,YAAY,EACZ,OAAO,EACP,SAAS,GACV,EAAE,kCAAkC,GAAG,OAAO,CAC7C,MAAM,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAC1C;IA4CD;;OAEG;IACH,OAAO,CAAC,mCAAmC;CAsB5C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ContainerModule } from "inversify";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const proxyModuleFactory: (
|
|
2
|
+
import { type ContextModuleDatasourceConfig } from "../../config/model/ContextModuleConfig";
|
|
3
|
+
export declare const proxyModuleFactory: (datasource?: ContextModuleDatasourceConfig) => ContainerModule;
|
|
4
4
|
//# sourceMappingURL=proxyModuleFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxyModuleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/proxy/di/proxyModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"proxyModuleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/proxy/di/proxyModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAMxF,eAAO,MAAM,kBAAkB,GAC7B,aAAa,6BAA6B,oBASxC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Either } from "purify-ts";
|
|
2
|
+
import { type BlindSigningMethod, type BlindSigningPlatform, type BlindSignReason, type ClearSigningType } from "../../reporter/model/BlindSigningEvent";
|
|
3
|
+
import { type BlindSigningModelId } from "../../reporter/model/BlindSigningModelId";
|
|
4
|
+
export type BlindSigningReportEthContext = {
|
|
5
|
+
clearSigningType: ClearSigningType;
|
|
6
|
+
partialContextErrors: number;
|
|
7
|
+
};
|
|
8
|
+
export type BlindSigningReportParams = {
|
|
9
|
+
signatureId: string;
|
|
10
|
+
signingMethod: BlindSigningMethod;
|
|
11
|
+
isBlindSign: boolean;
|
|
12
|
+
chainId: number | null;
|
|
13
|
+
targetAddress: string | null;
|
|
14
|
+
blindSignReason: BlindSignReason | null;
|
|
15
|
+
modelId: BlindSigningModelId;
|
|
16
|
+
signerAppVersion: string;
|
|
17
|
+
deviceVersion: string | null;
|
|
18
|
+
ethContext: BlindSigningReportEthContext | null;
|
|
19
|
+
platform?: BlindSigningPlatform;
|
|
20
|
+
appVersion?: string;
|
|
21
|
+
platformOS?: string;
|
|
22
|
+
platformVersion?: string;
|
|
23
|
+
liveAppContext?: string | null;
|
|
24
|
+
sessionId?: string | null;
|
|
25
|
+
};
|
|
26
|
+
export interface BlindSigningReporterDatasource {
|
|
27
|
+
report(params: BlindSigningReportParams): Promise<Either<Error, void>>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=BlindSigningReporterDatasource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlindSigningReporterDatasource.d.ts","sourceRoot":"","sources":["../../../../../src/reporter/data/BlindSigningReporterDatasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,MAAM,MAAM,4BAA4B,GAAG;IACzC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,kBAAkB,CAAC;IAClC,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,4BAA4B,GAAG,IAAI,CAAC;IAChD,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,8BAA8B;IAC7C,MAAM,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;CACxE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DmkNetworkClient } from "@ledgerhq/device-management-kit";
|
|
2
|
+
import { type Either } from "purify-ts";
|
|
3
|
+
import { type ContextModuleServiceConfig } from "../../config/model/ContextModuleConfig";
|
|
4
|
+
import { type BlindSigningReporterDatasource, type BlindSigningReportParams } from "./BlindSigningReporterDatasource";
|
|
5
|
+
export declare class HttpBlindSigningReporterDatasource implements BlindSigningReporterDatasource {
|
|
6
|
+
private readonly config;
|
|
7
|
+
private readonly http;
|
|
8
|
+
constructor(config: ContextModuleServiceConfig, http: DmkNetworkClient);
|
|
9
|
+
report(params: BlindSigningReportParams): Promise<Either<Error, void>>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=HttpBlindSigningReporterDatasource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpBlindSigningReporterDatasource.d.ts","sourceRoot":"","sources":["../../../../../src/reporter/data/HttpBlindSigningReporterDatasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,KAAK,MAAM,EAAe,MAAM,WAAW,CAAC;AAGrD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAGrF,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC9B,MAAM,kCAAkC,CAAC;AAE1C,qBACa,kCACX,YAAW,8BAA8B;IAIvC,OAAO,CAAC,QAAQ,CAAC,MAAM;IAEvB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAFJ,MAAM,EAAE,0BAA0B,EAElC,IAAI,EAAE,gBAAgB;IAGnC,MAAM,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;CAiB7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpBlindSigningReporterDatasource.test.d.ts","sourceRoot":"","sources":["../../../../../src/reporter/data/HttpBlindSigningReporterDatasource.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type BlindSigningMethod, type BlindSigningPlatform, type BlindSignReason, type ClearSigningType } from "../../../reporter/model/BlindSigningEvent";
|
|
2
|
+
import { type BlindSigningModelId } from "../../../reporter/model/BlindSigningModelId";
|
|
3
|
+
export type BlindSigningEventEthContextDto = {
|
|
4
|
+
clearSigningType: ClearSigningType;
|
|
5
|
+
partialContextErrors: number;
|
|
6
|
+
};
|
|
7
|
+
export type BlindSigningEventDto = {
|
|
8
|
+
signatureId: string;
|
|
9
|
+
signingMethod: BlindSigningMethod;
|
|
10
|
+
source: string;
|
|
11
|
+
isBlindSign: boolean;
|
|
12
|
+
chainId: number | null;
|
|
13
|
+
targetAddress: string | null;
|
|
14
|
+
blindSignReason: BlindSignReason | null;
|
|
15
|
+
modelId: BlindSigningModelId;
|
|
16
|
+
signerAppVersion: string;
|
|
17
|
+
deviceVersion: string | null;
|
|
18
|
+
ethContext: BlindSigningEventEthContextDto | null;
|
|
19
|
+
platform?: BlindSigningPlatform;
|
|
20
|
+
appVersion?: string;
|
|
21
|
+
platformOS?: string;
|
|
22
|
+
platformVersion?: string;
|
|
23
|
+
liveAppContext?: string | null;
|
|
24
|
+
sessionId?: string | null;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=BlindSigningEventDto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlindSigningEventDto.d.ts","sourceRoot":"","sources":["../../../../../../src/reporter/data/dto/BlindSigningEventDto.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,kBAAkB,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,8BAA8B,GAAG,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reporterModuleFactory.d.ts","sourceRoot":"","sources":["../../../../../src/reporter/di/reporterModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,eAAO,MAAM,qBAAqB,uBAM9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reporterTypes.d.ts","sourceRoot":"","sources":["../../../../../src/reporter/di/reporterTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;CAGzB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Either } from "purify-ts";
|
|
2
|
+
import { type BlindSigningReportParams } from "../../reporter/data/BlindSigningReporterDatasource";
|
|
3
|
+
export interface BlindSigningReporter {
|
|
4
|
+
report(params: BlindSigningReportParams): Promise<Either<Error, void>>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=BlindSigningReporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlindSigningReporter.d.ts","sourceRoot":"","sources":["../../../../../src/reporter/domain/BlindSigningReporter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAE/F,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;CACxE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Either } from "purify-ts";
|
|
2
|
+
import { type BlindSigningReporterDatasource, type BlindSigningReportParams } from "../../reporter/data/BlindSigningReporterDatasource";
|
|
3
|
+
import { type BlindSigningReporter } from "./BlindSigningReporter";
|
|
4
|
+
export declare class DefaultBlindSigningReporter implements BlindSigningReporter {
|
|
5
|
+
private readonly dataSource;
|
|
6
|
+
constructor(dataSource: BlindSigningReporterDatasource);
|
|
7
|
+
report(params: BlindSigningReportParams): Promise<Either<Error, void>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=DefaultBlindSigningReporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultBlindSigningReporter.d.ts","sourceRoot":"","sources":["../../../../../src/reporter/domain/DefaultBlindSigningReporter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EACL,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC9B,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,qBACa,2BAA4B,YAAW,oBAAoB;IAGpE,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,8BAA8B;IAGvD,MAAM,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;CAG7E"}
|