Class NeverminedAPI


  • public class NeverminedAPI
    extends Object
    Class that represents the entry point to initialize and use the API
    • Field Detail

      • log

        private static final org.apache.logging.log4j.Logger log
      • keeperService

        private io.keyko.common.web3.KeeperService keeperService
      • secretStoreDto

        private com.oceanprotocol.secretstore.core.SecretStoreDto secretStoreDto
      • evmDto

        private com.oceanprotocol.secretstore.core.EvmDto evmDto
      • tokenContract

        private io.keyko.nevermined.contracts.NeverminedToken tokenContract
      • dispenser

        private io.keyko.nevermined.contracts.Dispenser dispenser
      • didRegistryContract

        private io.keyko.nevermined.contracts.DIDRegistry didRegistryContract
      • escrowAccessSecretStoreTemplate

        private io.keyko.nevermined.contracts.EscrowAccessSecretStoreTemplate escrowAccessSecretStoreTemplate
      • lockRewardCondition

        private io.keyko.nevermined.contracts.LockRewardCondition lockRewardCondition
      • accessSecretStoreCondition

        private io.keyko.nevermined.contracts.AccessSecretStoreCondition accessSecretStoreCondition
      • escrowReward

        private io.keyko.nevermined.contracts.EscrowReward escrowReward
      • templateStoreManagerContract

        private io.keyko.nevermined.contracts.TemplateStoreManager templateStoreManagerContract
      • agreementStoreManagerContract

        private io.keyko.nevermined.contracts.AgreementStoreManager agreementStoreManagerContract
      • conditionStoreManager

        private io.keyko.nevermined.contracts.ConditionStoreManager conditionStoreManager
      • computeExecutionCondition

        private io.keyko.nevermined.contracts.ComputeExecutionCondition computeExecutionCondition
      • escrowComputeExecutionTemplate

        private io.keyko.nevermined.contracts.EscrowComputeExecutionTemplate escrowComputeExecutionTemplate
      • mainAccount

        private Account mainAccount
    • Constructor Detail

      • NeverminedAPI

        private NeverminedAPI​(NeverminedConfig neverminedConfig)
        Private constructor
        Parameters:
        neverminedConfig - the object to configure the API
    • Method Detail

      • toProperties

        private static Properties toProperties​(com.typesafe.config.Config config)
        Transform a TypeSafe Config object into a Java's Properties
        Parameters:
        config - the config object
        Returns:
        a Properties object with the configuration of the API
      • setRxUndeliverableExceptionHandler

        private static void setRxUndeliverableExceptionHandler()
      • getMainAccount

        public Account getMainAccount()
        Gets the account used to initialized the API
        Returns:
        the account used to initialized the API
      • getAccountsAPI

        public AccountsAPI getAccountsAPI()
        Gets the AccountsAPI
        Returns:
        an instance of an Implementation class of AccountsAPI
      • getAgreementsAPI

        public AgreementsAPI getAgreementsAPI()
        Gets the AgreementsAPI
        Returns:
        an instance of an Implementation class of AgreementsAPI
      • getConditionsAPI

        public ConditionsAPI getConditionsAPI()
        Gets the ConditionsAPI
        Returns:
        an instance of an Implementation class of ConditionsAPI
      • getTokensAPI

        public TokensAPI getTokensAPI()
        Gets the TokensAPI
        Returns:
        an instance of an Implementation class of TokensAPI
      • getAssetsAPI

        public AssetsAPI getAssetsAPI()
        Gets the AssetsAPI
        Returns:
        an instance of an Implementation class of AssetsAPI
      • getSecretStoreAPI

        public SecretStoreAPI getSecretStoreAPI()
        Gets the SecretStoreAPI
        Returns:
        an instance of an Implementation class of SecretStoreAPI
      • getTemplatesAPI

        public TemplatesAPI getTemplatesAPI()
        Gets the TemplatesAPI
        Returns:
        an instance of an Implementation class of TemplatesAPI
      • setTemplateStoreManagerContract

        public void setTemplateStoreManagerContract​(io.keyko.nevermined.contracts.TemplateStoreManager contract)
        Allows to overwrite the TemplateStoreManager contract instance
        Parameters:
        contract - TemplateStoreManager