diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/web3j.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/web3j.json index 7ab9ee2fd24c4..67fb77cbf9464 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/web3j.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/web3j.json @@ -64,44 +64,45 @@ "autowiredEnabled": { "index": 37, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc." } }, "headers": { - "ETH_HASHRATE": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A hexadecimal string representation (32 bytes) of the hash rate.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ETH_HASHRATE" }, - "ID": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ID" }, - "AT_BLOCK": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#AT_BLOCK" }, - "ADDRESS": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Contract address.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ADDRESS" }, - "ADDRESSES": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Contract address or a list of addresses.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ADDRESSES" }, - "FROM_ADDRESS": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The address the transaction is send from", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FROM_ADDRESS" }, - "TO_ADDRESS": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The address the transaction is directed to", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TO_ADDRESS" }, - "POSITION": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transaction index position withing a block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#POSITION" }, - "BLOCK_HASH": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Hash of the block where this transaction was in.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#BLOCK_HASH" }, - "TRANSACTION_HASH": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The information about a transaction requested by transaction hash.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TRANSACTION_HASH" }, - "SHA3_HASH_OF_DATA_TO_SIGN": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Message to sign by calculating an Ethereum specific signature.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SHA3_HASH_OF_DATA_TO_SIGN" }, - "SIGNED_TRANSACTION_DATA": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The signed transaction data for a new message call transaction or a contract creation for signed transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SIGNED_TRANSACTION_DATA" }, - "FULL_TRANSACTION_OBJECTS": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "If true it returns the full transaction objects, if false only the hashes of the transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FULL_TRANSACTION_OBJECTS" }, - "INDEX": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transactions\/uncle index position in the block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#INDEX" }, - "SOURCE_CODE": { "index": 14, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The source code to compile.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SOURCE_CODE" }, - "FILTER_ID": { "index": 15, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The filter id to use.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FILTER_ID" }, - "DATABASE_NAME": { "index": 16, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The local database name.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#DATABASE_NAME" }, - "KEY_NAME": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The key name in the database.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#KEY_NAME" }, - "NONCE": { "index": 18, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The nonce found (64 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#NONCE" }, - "HEADER_POW_HASH": { "index": 19, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The header's pow-hash (256 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_POW_HASH" }, - "MIX_DIGEST": { "index": 20, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The mix digest (256 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#MIX_DIGEST" }, - "CLIENT_ID": { "index": 21, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A random hexadecimal(32 bytes) ID identifying the client.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#CLIENT_ID" }, - "GAS_PRICE": { "index": 22, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Gas price used for each paid gas.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#GAS_PRICE" }, - "GAS_LIMIT": { "index": 23, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The maximum gas allowed in this block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#GAS_LIMIT" }, - "VALUE": { "index": 24, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The value sent within a transaction.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#VALUE" }, - "DATA": { "index": 25, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The compiled code of a contract OR the hash of the invoked method signature and encoded parameters.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#DATA" }, - "FROM_BLOCK": { "index": 26, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FROM_BLOCK" }, - "TO_BLOCK": { "index": 27, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TO_BLOCK" }, - "TOPICS": { "index": 28, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TOPICS" }, - "PRIORITY": { "index": 29, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority of a whisper message.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIORITY" }, - "TTL": { "index": 30, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The time to live in seconds of a whisper message.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TTL" }, - "PRIVATE_FOR": { "index": 31, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A transaction privateFor nodes with public keys in a Quorum network", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIVATE_FOR" }, - "PRIVATE_FROM": { "index": 32, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A transaction privateFrom", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIVATE_FROM" }, - "ERROR_CODE": { "index": 33, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error code", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_CODE" }, - "ERROR_DATA": { "index": 34, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error data", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_DATA" }, - "ERROR_MESSAGE": { "index": 35, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error message", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_MESSAGE" }, - "status": { "index": 36, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The status of the operation", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_STATUS" }, - "operation": { "index": 37, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_OPERATION" } + "CamelWeb3jEthHashrate": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A hexadecimal string representation (32 bytes) of the hash rate.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ETH_HASHRATE" }, + "CamelWeb3jId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ID" }, + "CamelWeb3jOperation": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation to perform", "constantName": "org.apache.camel.component.web3j.Web3jConstants#OPERATION" }, + "CamelWeb3jAtBlock": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#AT_BLOCK" }, + "CamelWeb3jAddress": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Contract address.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ADDRESS" }, + "CamelWeb3jAddresses": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Contract address or a list of addresses.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ADDRESSES" }, + "CamelWeb3jFromAddress": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The address the transaction is send from", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FROM_ADDRESS" }, + "CamelWeb3jToAddress": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The address the transaction is directed to", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TO_ADDRESS" }, + "CamelWeb3jPosition": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transaction index position withing a block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#POSITION" }, + "CamelWeb3jBlockHash": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Hash of the block where this transaction was in.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#BLOCK_HASH" }, + "CamelWeb3jTransactionHash": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The information about a transaction requested by transaction hash.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TRANSACTION_HASH" }, + "CamelWeb3jSha3HashOfDataToSign": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Message to sign by calculating an Ethereum specific signature.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SHA3_HASH_OF_DATA_TO_SIGN" }, + "CamelWeb3jSignedTransactionData": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The signed transaction data for a new message call transaction or a contract creation for signed transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SIGNED_TRANSACTION_DATA" }, + "CamelWeb3jFullTransactionObjects": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "If true it returns the full transaction objects, if false only the hashes of the transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FULL_TRANSACTION_OBJECTS" }, + "CamelWeb3jIndex": { "index": 14, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transactions\/uncle index position in the block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#INDEX" }, + "CamelWeb3jSourceCode": { "index": 15, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The source code to compile.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SOURCE_CODE" }, + "CamelWeb3jFilterId": { "index": 16, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The filter id to use.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FILTER_ID" }, + "CamelWeb3jDatabaseName": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The local database name.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#DATABASE_NAME" }, + "CamelWeb3jKeyName": { "index": 18, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The key name in the database.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#KEY_NAME" }, + "CamelWeb3jNonce": { "index": 19, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The nonce found (64 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#NONCE" }, + "CamelWeb3jHeaderPowHash": { "index": 20, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The header's pow-hash (256 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_POW_HASH" }, + "CamelWeb3jMixDigest": { "index": 21, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The mix digest (256 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#MIX_DIGEST" }, + "CamelWeb3jClientId": { "index": 22, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A random hexadecimal(32 bytes) ID identifying the client.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#CLIENT_ID" }, + "CamelWeb3jGasPrice": { "index": 23, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Gas price used for each paid gas.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#GAS_PRICE" }, + "CamelWeb3jGasLimit": { "index": 24, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The maximum gas allowed in this block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#GAS_LIMIT" }, + "CamelWeb3jValue": { "index": 25, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The value sent within a transaction.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#VALUE" }, + "CamelWeb3jData": { "index": 26, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The compiled code of a contract OR the hash of the invoked method signature and encoded parameters.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#DATA" }, + "CamelWeb3jFromBlock": { "index": 27, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FROM_BLOCK" }, + "CamelWeb3jToBlock": { "index": 28, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TO_BLOCK" }, + "CamelWeb3jTopics": { "index": 29, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TOPICS" }, + "CamelWeb3jPriority": { "index": 30, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority of a whisper message.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIORITY" }, + "CamelWeb3jTtl": { "index": 31, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The time to live in seconds of a whisper message.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TTL" }, + "CamelWeb3jPrivateFor": { "index": 32, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A transaction privateFor nodes with public keys in a Quorum network", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIVATE_FOR" }, + "CamelWeb3jPrivateFrom": { "index": 33, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A transaction privateFrom", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIVATE_FROM" }, + "CamelWeb3jErrorCode": { "index": 34, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error code", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_CODE" }, + "CamelWeb3jErrorData": { "index": 35, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error data", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_DATA" }, + "CamelWeb3jErrorMessage": { "index": 36, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error message", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_MESSAGE" }, + "CamelWeb3jStatus": { "index": 37, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The status of the operation", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_STATUS" }, + "CamelWeb3jHeaderOperation": { "index": 38, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_OPERATION" } }, "properties": { "nodeAddress": { "index": 0, "kind": "path", "displayName": "Node Address", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Sets the node address used to communicate" }, diff --git a/components/camel-web3j/src/generated/java/org/apache/camel/component/web3j/Web3jProducerInvokeOnHeaderFactory.java b/components/camel-web3j/src/generated/java/org/apache/camel/component/web3j/Web3jProducerInvokeOnHeaderFactory.java index d470b0c072b30..11879df19bcd2 100644 --- a/components/camel-web3j/src/generated/java/org/apache/camel/component/web3j/Web3jProducerInvokeOnHeaderFactory.java +++ b/components/camel-web3j/src/generated/java/org/apache/camel/component/web3j/Web3jProducerInvokeOnHeaderFactory.java @@ -19,6 +19,8 @@ public class Web3jProducerInvokeOnHeaderFactory implements InvokeOnHeaderStrateg public Object invoke(Object obj, String key, Exchange exchange, AsyncCallback callback) throws Exception { org.apache.camel.component.web3j.Web3jProducer target = (org.apache.camel.component.web3j.Web3jProducer) obj; switch (key) { + case "camelweb3jethhashrate": + case "CamelWeb3jEthHashrate": target.ethHashrate(exchange.getMessage()); return null; case "db_get_hex": case "DB_GET_HEX": target.dbGetHex(exchange.getMessage()); return null; case "db_get_string": @@ -87,8 +89,6 @@ public Object invoke(Object obj, String key, Exchange exchange, AsyncCallback ca case "ETH_GET_UNCLE_COUNT_BY_BLOCK_NUMBER": target.ethGetUncleCountByBlockNumber(exchange.getMessage()); return null; case "eth_get_work": case "ETH_GET_WORK": target.ethGetWork(exchange.getMessage()); return null; - case "eth_hashrate": - case "ETH_HASHRATE": target.ethHashrate(exchange.getMessage()); return null; case "eth_mining": case "ETH_MINING": target.ethMining(exchange.getMessage()); return null; case "eth_new_block_filter": diff --git a/components/camel-web3j/src/generated/resources/META-INF/org/apache/camel/component/web3j/web3j.json b/components/camel-web3j/src/generated/resources/META-INF/org/apache/camel/component/web3j/web3j.json index 7ab9ee2fd24c4..67fb77cbf9464 100644 --- a/components/camel-web3j/src/generated/resources/META-INF/org/apache/camel/component/web3j/web3j.json +++ b/components/camel-web3j/src/generated/resources/META-INF/org/apache/camel/component/web3j/web3j.json @@ -64,44 +64,45 @@ "autowiredEnabled": { "index": 37, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc." } }, "headers": { - "ETH_HASHRATE": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A hexadecimal string representation (32 bytes) of the hash rate.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ETH_HASHRATE" }, - "ID": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ID" }, - "AT_BLOCK": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#AT_BLOCK" }, - "ADDRESS": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Contract address.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ADDRESS" }, - "ADDRESSES": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Contract address or a list of addresses.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ADDRESSES" }, - "FROM_ADDRESS": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The address the transaction is send from", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FROM_ADDRESS" }, - "TO_ADDRESS": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The address the transaction is directed to", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TO_ADDRESS" }, - "POSITION": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transaction index position withing a block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#POSITION" }, - "BLOCK_HASH": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Hash of the block where this transaction was in.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#BLOCK_HASH" }, - "TRANSACTION_HASH": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The information about a transaction requested by transaction hash.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TRANSACTION_HASH" }, - "SHA3_HASH_OF_DATA_TO_SIGN": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Message to sign by calculating an Ethereum specific signature.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SHA3_HASH_OF_DATA_TO_SIGN" }, - "SIGNED_TRANSACTION_DATA": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The signed transaction data for a new message call transaction or a contract creation for signed transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SIGNED_TRANSACTION_DATA" }, - "FULL_TRANSACTION_OBJECTS": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "If true it returns the full transaction objects, if false only the hashes of the transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FULL_TRANSACTION_OBJECTS" }, - "INDEX": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transactions\/uncle index position in the block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#INDEX" }, - "SOURCE_CODE": { "index": 14, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The source code to compile.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SOURCE_CODE" }, - "FILTER_ID": { "index": 15, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The filter id to use.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FILTER_ID" }, - "DATABASE_NAME": { "index": 16, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The local database name.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#DATABASE_NAME" }, - "KEY_NAME": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The key name in the database.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#KEY_NAME" }, - "NONCE": { "index": 18, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The nonce found (64 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#NONCE" }, - "HEADER_POW_HASH": { "index": 19, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The header's pow-hash (256 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_POW_HASH" }, - "MIX_DIGEST": { "index": 20, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The mix digest (256 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#MIX_DIGEST" }, - "CLIENT_ID": { "index": 21, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A random hexadecimal(32 bytes) ID identifying the client.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#CLIENT_ID" }, - "GAS_PRICE": { "index": 22, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Gas price used for each paid gas.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#GAS_PRICE" }, - "GAS_LIMIT": { "index": 23, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The maximum gas allowed in this block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#GAS_LIMIT" }, - "VALUE": { "index": 24, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The value sent within a transaction.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#VALUE" }, - "DATA": { "index": 25, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The compiled code of a contract OR the hash of the invoked method signature and encoded parameters.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#DATA" }, - "FROM_BLOCK": { "index": 26, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FROM_BLOCK" }, - "TO_BLOCK": { "index": 27, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TO_BLOCK" }, - "TOPICS": { "index": 28, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TOPICS" }, - "PRIORITY": { "index": 29, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority of a whisper message.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIORITY" }, - "TTL": { "index": 30, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The time to live in seconds of a whisper message.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TTL" }, - "PRIVATE_FOR": { "index": 31, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A transaction privateFor nodes with public keys in a Quorum network", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIVATE_FOR" }, - "PRIVATE_FROM": { "index": 32, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A transaction privateFrom", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIVATE_FROM" }, - "ERROR_CODE": { "index": 33, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error code", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_CODE" }, - "ERROR_DATA": { "index": 34, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error data", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_DATA" }, - "ERROR_MESSAGE": { "index": 35, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error message", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_MESSAGE" }, - "status": { "index": 36, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The status of the operation", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_STATUS" }, - "operation": { "index": 37, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_OPERATION" } + "CamelWeb3jEthHashrate": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A hexadecimal string representation (32 bytes) of the hash rate.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ETH_HASHRATE" }, + "CamelWeb3jId": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ID" }, + "CamelWeb3jOperation": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation to perform", "constantName": "org.apache.camel.component.web3j.Web3jConstants#OPERATION" }, + "CamelWeb3jAtBlock": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#AT_BLOCK" }, + "CamelWeb3jAddress": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Contract address.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ADDRESS" }, + "CamelWeb3jAddresses": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Contract address or a list of addresses.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ADDRESSES" }, + "CamelWeb3jFromAddress": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The address the transaction is send from", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FROM_ADDRESS" }, + "CamelWeb3jToAddress": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The address the transaction is directed to", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TO_ADDRESS" }, + "CamelWeb3jPosition": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transaction index position withing a block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#POSITION" }, + "CamelWeb3jBlockHash": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Hash of the block where this transaction was in.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#BLOCK_HASH" }, + "CamelWeb3jTransactionHash": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The information about a transaction requested by transaction hash.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TRANSACTION_HASH" }, + "CamelWeb3jSha3HashOfDataToSign": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Message to sign by calculating an Ethereum specific signature.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SHA3_HASH_OF_DATA_TO_SIGN" }, + "CamelWeb3jSignedTransactionData": { "index": 12, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The signed transaction data for a new message call transaction or a contract creation for signed transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SIGNED_TRANSACTION_DATA" }, + "CamelWeb3jFullTransactionObjects": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "If true it returns the full transaction objects, if false only the hashes of the transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FULL_TRANSACTION_OBJECTS" }, + "CamelWeb3jIndex": { "index": 14, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transactions\/uncle index position in the block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#INDEX" }, + "CamelWeb3jSourceCode": { "index": 15, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The source code to compile.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#SOURCE_CODE" }, + "CamelWeb3jFilterId": { "index": 16, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The filter id to use.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FILTER_ID" }, + "CamelWeb3jDatabaseName": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The local database name.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#DATABASE_NAME" }, + "CamelWeb3jKeyName": { "index": 18, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The key name in the database.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#KEY_NAME" }, + "CamelWeb3jNonce": { "index": 19, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The nonce found (64 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#NONCE" }, + "CamelWeb3jHeaderPowHash": { "index": 20, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The header's pow-hash (256 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_POW_HASH" }, + "CamelWeb3jMixDigest": { "index": 21, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The mix digest (256 bits) used for submitting a proof-of-work solution.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#MIX_DIGEST" }, + "CamelWeb3jClientId": { "index": 22, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A random hexadecimal(32 bytes) ID identifying the client.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#CLIENT_ID" }, + "CamelWeb3jGasPrice": { "index": 23, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Gas price used for each paid gas.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#GAS_PRICE" }, + "CamelWeb3jGasLimit": { "index": 24, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The maximum gas allowed in this block.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#GAS_LIMIT" }, + "CamelWeb3jValue": { "index": 25, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The value sent within a transaction.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#VALUE" }, + "CamelWeb3jData": { "index": 26, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The compiled code of a contract OR the hash of the invoked method signature and encoded parameters.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#DATA" }, + "CamelWeb3jFromBlock": { "index": 27, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#FROM_BLOCK" }, + "CamelWeb3jToBlock": { "index": 28, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The block number, or the string latest for the last mined block or pending, earliest for not yet mined transactions.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TO_BLOCK" }, + "CamelWeb3jTopics": { "index": 29, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Topics are order-dependent. Each topic can also be a list of topics. Specify multiple topics separated by comma.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TOPICS" }, + "CamelWeb3jPriority": { "index": 30, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority of a whisper message.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIORITY" }, + "CamelWeb3jTtl": { "index": 31, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "java.math.BigInteger", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The time to live in seconds of a whisper message.", "constantName": "org.apache.camel.component.web3j.Web3jConstants#TTL" }, + "CamelWeb3jPrivateFor": { "index": 32, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "List", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A transaction privateFor nodes with public keys in a Quorum network", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIVATE_FOR" }, + "CamelWeb3jPrivateFrom": { "index": 33, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "A transaction privateFrom", "constantName": "org.apache.camel.component.web3j.Web3jConstants#PRIVATE_FROM" }, + "CamelWeb3jErrorCode": { "index": 34, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error code", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_CODE" }, + "CamelWeb3jErrorData": { "index": 35, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error data", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_DATA" }, + "CamelWeb3jErrorMessage": { "index": 36, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The error message", "constantName": "org.apache.camel.component.web3j.Web3jConstants#ERROR_MESSAGE" }, + "CamelWeb3jStatus": { "index": 37, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The status of the operation", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_STATUS" }, + "CamelWeb3jHeaderOperation": { "index": 38, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The operation", "constantName": "org.apache.camel.component.web3j.Web3jConstants#HEADER_OPERATION" } }, "properties": { "nodeAddress": { "index": 0, "kind": "path", "displayName": "Node Address", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Sets the node address used to communicate" }, diff --git a/components/camel-web3j/src/main/java/org/apache/camel/component/web3j/Web3jConstants.java b/components/camel-web3j/src/main/java/org/apache/camel/component/web3j/Web3jConstants.java index 29c7613afdd2f..26d098dfaec5a 100644 --- a/components/camel-web3j/src/main/java/org/apache/camel/component/web3j/Web3jConstants.java +++ b/components/camel-web3j/src/main/java/org/apache/camel/component/web3j/Web3jConstants.java @@ -30,7 +30,7 @@ public interface Web3jConstants { String ETH_MINING = "ETH_MINING"; @Metadata(label = "producer", description = "A hexadecimal string representation (32 bytes) of the hash rate.", javaType = "String") - String ETH_HASHRATE = "ETH_HASHRATE"; + String ETH_HASHRATE = "CamelWeb3jEthHashrate"; String ETH_GAS_PRICE = "ETH_GAS_PRICE"; String ETH_ACCOUNTS = "ETH_ACCOUNTS"; String ETH_BLOCK_NUMBER = "ETH_BLOCK_NUMBER"; @@ -98,111 +98,112 @@ public interface Web3jConstants { String REPLAY_TRANSACTIONS_OBSERVABLE = "REPLAY_TRANSACTIONS_OBSERVABLE"; @Metadata(label = "producer", description = "The id", javaType = "Long") - String ID = "ID"; - String OPERATION = "OPERATION"; + String ID = "CamelWeb3jId"; + @Metadata(label = "producer", description = "The operation to perform", javaType = "String") + String OPERATION = "CamelWeb3jOperation"; String TRANSACTION = "TRANSACTION"; /** * The block number, or the string "latest" for the last mined block or "pending", "earliest" for not yet mined * transactions. */ @Metadata(label = "producer", javaType = "String") - String AT_BLOCK = "AT_BLOCK"; + String AT_BLOCK = "CamelWeb3jAtBlock"; @Metadata(label = "producer", description = "Contract address.", javaType = "String") - String ADDRESS = "ADDRESS"; + String ADDRESS = "CamelWeb3jAddress"; @Metadata(label = "producer", description = "Contract address or a list of addresses.", javaType = "List") - String ADDRESSES = "ADDRESSES"; + String ADDRESSES = "CamelWeb3jAddresses"; @Metadata(label = "producer", description = "The address the transaction is send from", javaType = "String") - String FROM_ADDRESS = "FROM_ADDRESS"; + String FROM_ADDRESS = "CamelWeb3jFromAddress"; @Metadata(label = "producer", description = "The address the transaction is directed to", javaType = "String") - String TO_ADDRESS = "TO_ADDRESS"; + String TO_ADDRESS = "CamelWeb3jToAddress"; @Metadata(label = "producer", description = "The transaction index position withing a block.", javaType = "String") - String POSITION = "POSITION"; + String POSITION = "CamelWeb3jPosition"; @Metadata(label = "producer", description = "Hash of the block where this transaction was in.", javaType = "String") - String BLOCK_HASH = "BLOCK_HASH"; + String BLOCK_HASH = "CamelWeb3jBlockHash"; @Metadata(label = "producer", description = "The information about a transaction requested by transaction hash.", javaType = "String") - String TRANSACTION_HASH = "TRANSACTION_HASH"; + String TRANSACTION_HASH = "CamelWeb3jTransactionHash"; @Metadata(label = "producer", description = "Message to sign by calculating an Ethereum specific signature.", javaType = "String") - String SHA3_HASH_OF_DATA_TO_SIGN = "SHA3_HASH_OF_DATA_TO_SIGN"; + String SHA3_HASH_OF_DATA_TO_SIGN = "CamelWeb3jSha3HashOfDataToSign"; @Metadata(label = "producer", description = "The signed transaction data for a new message call transaction or a contract creation for signed transactions.", javaType = "String") - String SIGNED_TRANSACTION_DATA = "SIGNED_TRANSACTION_DATA"; + String SIGNED_TRANSACTION_DATA = "CamelWeb3jSignedTransactionData"; @Metadata(label = "producer", description = "If true it returns the full transaction objects, if false only the hashes of the transactions.", javaType = "Boolean") - String FULL_TRANSACTION_OBJECTS = "FULL_TRANSACTION_OBJECTS"; + String FULL_TRANSACTION_OBJECTS = "CamelWeb3jFullTransactionObjects"; @Metadata(label = "producer", description = "The transactions/uncle index position in the block.", javaType = "String") - String INDEX = "INDEX"; + String INDEX = "CamelWeb3jIndex"; @Metadata(label = "producer", description = "The source code to compile.", javaType = "String") - String SOURCE_CODE = "SOURCE_CODE"; + String SOURCE_CODE = "CamelWeb3jSourceCode"; @Metadata(label = "producer", description = "The filter id to use.", javaType = "java.math.BigInteger") - String FILTER_ID = "FILTER_ID"; + String FILTER_ID = "CamelWeb3jFilterId"; @Metadata(label = "producer", description = "The local database name.", javaType = "String") - String DATABASE_NAME = "DATABASE_NAME"; + String DATABASE_NAME = "CamelWeb3jDatabaseName"; @Metadata(label = "producer", description = "The key name in the database.", javaType = "String") - String KEY_NAME = "KEY_NAME"; + String KEY_NAME = "CamelWeb3jKeyName"; @Metadata(label = "producer", description = "The nonce found (64 bits) used for submitting a proof-of-work solution.", javaType = "java.math.BigInteger") - String NONCE = "NONCE"; + String NONCE = "CamelWeb3jNonce"; @Metadata(label = "producer", description = "The header's pow-hash (256 bits) used for submitting a proof-of-work solution.", javaType = "String") - String HEADER_POW_HASH = "HEADER_POW_HASH"; + String HEADER_POW_HASH = "CamelWeb3jHeaderPowHash"; @Metadata(label = "producer", description = "The mix digest (256 bits) used for submitting a proof-of-work solution.", javaType = "String") - String MIX_DIGEST = "MIX_DIGEST"; + String MIX_DIGEST = "CamelWeb3jMixDigest"; @Metadata(label = "producer", description = "A random hexadecimal(32 bytes) ID identifying the client.", javaType = "String") - String CLIENT_ID = "CLIENT_ID"; + String CLIENT_ID = "CamelWeb3jClientId"; @Metadata(label = "producer", description = "Gas price used for each paid gas.", javaType = "java.math.BigInteger") - String GAS_PRICE = "GAS_PRICE"; + String GAS_PRICE = "CamelWeb3jGasPrice"; @Metadata(label = "producer", description = "The maximum gas allowed in this block.", javaType = "java.math.BigInteger") - String GAS_LIMIT = "GAS_LIMIT"; + String GAS_LIMIT = "CamelWeb3jGasLimit"; @Metadata(label = "producer", description = "The value sent within a transaction.", javaType = "java.math.BigInteger") - String VALUE = "VALUE"; + String VALUE = "CamelWeb3jValue"; @Metadata(label = "producer", description = "The compiled code of a contract OR the hash of the invoked method signature and encoded parameters.", javaType = "String") - String DATA = "DATA"; + String DATA = "CamelWeb3jData"; /** * The block number, or the string "latest" for the last mined block or "pending", "earliest" for not yet mined * transactions. */ @Metadata(label = "producer", javaType = "String") - String FROM_BLOCK = "FROM_BLOCK"; + String FROM_BLOCK = "CamelWeb3jFromBlock"; /** * The block number, or the string "latest" for the last mined block or "pending", "earliest" for not yet mined * transactions. */ @Metadata(label = "producer", javaType = "String") - String TO_BLOCK = "TO_BLOCK"; + String TO_BLOCK = "CamelWeb3jToBlock"; @Metadata(label = "producer", description = "Topics are order-dependent. Each topic can also be a list of topics. " + "Specify multiple topics separated by comma.", javaType = "List") - String TOPICS = "TOPICS"; + String TOPICS = "CamelWeb3jTopics"; @Metadata(label = "producer", description = "The priority of a whisper message.", javaType = "java.math.BigInteger") - String PRIORITY = "PRIORITY"; + String PRIORITY = "CamelWeb3jPriority"; @Metadata(label = "producer", description = "The time to live in seconds of a whisper message.", javaType = "java.math.BigInteger") - String TTL = "TTL"; + String TTL = "CamelWeb3jTtl"; @Metadata(label = "producer", description = "A transaction privateFor nodes with public keys in a Quorum network", javaType = "List") - String PRIVATE_FOR = "PRIVATE_FOR"; + String PRIVATE_FOR = "CamelWeb3jPrivateFor"; @Metadata(label = "producer", description = "A transaction privateFrom", javaType = "String") - String PRIVATE_FROM = "PRIVATE_FROM"; + String PRIVATE_FROM = "CamelWeb3jPrivateFrom"; @Metadata(label = "producer", description = "The error code", javaType = "int") - String ERROR_CODE = "ERROR_CODE"; + String ERROR_CODE = "CamelWeb3jErrorCode"; @Metadata(label = "producer", description = "The error data", javaType = "String") - String ERROR_DATA = "ERROR_DATA"; + String ERROR_DATA = "CamelWeb3jErrorData"; @Metadata(label = "producer", description = "The error message", javaType = "String") - String ERROR_MESSAGE = "ERROR_MESSAGE"; + String ERROR_MESSAGE = "CamelWeb3jErrorMessage"; @Metadata(label = "consumer", description = "The status of the operation", javaType = "String") - String HEADER_STATUS = "status"; + String HEADER_STATUS = "CamelWeb3jStatus"; @Metadata(label = "consumer", description = "The operation", javaType = "String") - String HEADER_OPERATION = "operation"; + String HEADER_OPERATION = "CamelWeb3jHeaderOperation"; } diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jProducerTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jProducerTest.java index 93a5a03269bc0..54b8ff66f588c 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jProducerTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jProducerTest.java @@ -953,7 +953,7 @@ protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { from("direct:start") - .to(getUrl() + OPERATION.toLowerCase() + "=" + Web3jConstants.WEB3_CLIENT_VERSION); + .to(getUrl() + "operation" + "=" + Web3jConstants.WEB3_CLIENT_VERSION); } }; } diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jQuorumProducerTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jQuorumProducerTest.java index 9855b3a1fd478..f798a67fab3cf 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jQuorumProducerTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/Web3jQuorumProducerTest.java @@ -86,7 +86,7 @@ protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { from("direct:start") - .to(getUrl() + OPERATION.toLowerCase() + "=" + Web3jConstants.WEB3_CLIENT_VERSION); + .to(getUrl() + "operation" + "=" + Web3jConstants.WEB3_CLIENT_VERSION); } }; } diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerBlockHashTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerBlockHashTest.java index 246966ac2f344..a88bad9ecffdc 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerBlockHashTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerBlockHashTest.java @@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test; import static org.apache.camel.component.web3j.Web3jConstants.ETH_BLOCK_HASH_OBSERVABLE; -import static org.apache.camel.component.web3j.Web3jConstants.OPERATION; @Disabled("Requires Ganache instance with few transactions") public class Web3jConsumerBlockHashTest extends Web3jIntegrationTestSupport { @@ -41,7 +40,7 @@ public void configure() { errorHandler(deadLetterChannel("mock:error")); from("web3j://" + getUrl() - + OPERATION.toLowerCase() + "=" + ETH_BLOCK_HASH_OBSERVABLE) + + "operation" + "=" + ETH_BLOCK_HASH_OBSERVABLE) .to("mock:result"); } }; diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerBlockTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerBlockTest.java index c2424dd81d061..c3fd959095fed 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerBlockTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerBlockTest.java @@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test; import static org.apache.camel.component.web3j.Web3jConstants.BLOCK_OBSERVABLE; -import static org.apache.camel.component.web3j.Web3jConstants.OPERATION; @Disabled("Requires Ganache instance with few transactions") public class Web3jConsumerBlockTest extends Web3jIntegrationTestSupport { @@ -41,7 +40,7 @@ public void configure() { errorHandler(deadLetterChannel("mock:error")); from("web3j://" + getUrl() - + OPERATION.toLowerCase() + "=" + BLOCK_OBSERVABLE) + + "operation" + "=" + BLOCK_OBSERVABLE) .to("mock:result"); } }; diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerLogTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerLogTest.java index 4b030ddd2e9e7..0fbf5f6007b6e 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerLogTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerLogTest.java @@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test; import static org.apache.camel.component.web3j.Web3jConstants.ETH_LOG_OBSERVABLE; -import static org.apache.camel.component.web3j.Web3jConstants.OPERATION; @Disabled("Requires Ganache instance with few transactions") public class Web3jConsumerLogTest extends Web3jIntegrationTestSupport { @@ -41,7 +40,7 @@ public void configure() { errorHandler(deadLetterChannel("mock:error")); from("web3j://" + getUrl() - + OPERATION.toLowerCase() + "=" + ETH_LOG_OBSERVABLE + "&" + + "operation" + "=" + ETH_LOG_OBSERVABLE + "&" + "fromBlock=earliest&" + "toBlock=latest&" + "address=0xc8CDceCE5d006dAB638029EBCf6Dd666efF5A952") diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerMainnetTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerMainnetTest.java index f16bbcb2cb500..63fe59b43484a 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerMainnetTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerMainnetTest.java @@ -26,7 +26,6 @@ import org.junit.jupiter.api.Test; import org.web3j.protocol.core.methods.response.EthBlock; -import static org.apache.camel.component.web3j.Web3jConstants.OPERATION; import static org.apache.camel.component.web3j.Web3jConstants.REPLAY_BLOCKS_OBSERVABLE; @Disabled("Requires a local node or registration at Infura") @@ -51,7 +50,7 @@ public void configure() { errorHandler(deadLetterChannel("mock:error")); from("web3j://" + getUrl() - + OPERATION.toLowerCase() + "=" + REPLAY_BLOCKS_OBSERVABLE + "&" + + "operation" + "=" + REPLAY_BLOCKS_OBSERVABLE + "&" + "fromBlock=5713030&" + "toBlock=5713031&" + "fullTransactionObjects=false") diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerReplayBlockTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerReplayBlockTest.java index eb9eb77973235..199eb0659e64e 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerReplayBlockTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerReplayBlockTest.java @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import static org.apache.camel.component.web3j.Web3jConstants.OPERATION; import static org.apache.camel.component.web3j.Web3jConstants.REPLAY_BLOCKS_OBSERVABLE; @Disabled("Requires Ganache instance with 10 transactions") @@ -41,7 +40,7 @@ public void configure() { errorHandler(deadLetterChannel("mock:error")); from("web3j://" + getUrl() - + OPERATION.toLowerCase() + "=" + REPLAY_BLOCKS_OBSERVABLE + "&" + + "operation" + "=" + REPLAY_BLOCKS_OBSERVABLE + "&" + "fromBlock=0&" + "toBlock=2&" + "fullTransactionObjects=false") diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerTransactionsTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerTransactionsTest.java index 42ffe066a45c9..ed26afcde4c90 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerTransactionsTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jConsumerTransactionsTest.java @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -import static org.apache.camel.component.web3j.Web3jConstants.OPERATION; import static org.apache.camel.component.web3j.Web3jConstants.TRANSACTION_OBSERVABLE; @Disabled("Requires Ganache instance with few transactions") @@ -41,7 +40,7 @@ public void configure() { errorHandler(deadLetterChannel("mock:error")); from("web3j://" + getUrl() - + OPERATION.toLowerCase() + "=" + TRANSACTION_OBSERVABLE) + + "operation" + "=" + TRANSACTION_OBSERVABLE) .to("mock:result"); } }; diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jProducerGanacheTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jProducerGanacheTest.java index b280c7c4a03dc..33a556648d6de 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jProducerGanacheTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jProducerGanacheTest.java @@ -757,7 +757,7 @@ protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { from("direct:start") - .to("web3j://" + getUrl() + OPERATION.toLowerCase() + "=" + TRANSACTION); + .to("web3j://" + getUrl() + "operation" + "=" + TRANSACTION); } }; } diff --git a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jProducerMainnetTest.java b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jProducerMainnetTest.java index fa3edb50c9531..f387370ecd549 100644 --- a/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jProducerMainnetTest.java +++ b/components/camel-web3j/src/test/java/org/apache/camel/component/web3j/integration/Web3jProducerMainnetTest.java @@ -82,7 +82,7 @@ protected RouteBuilder createRouteBuilder() { return new RouteBuilder() { public void configure() { from("direct:start") - .to("web3j://" + getUrl() + OPERATION.toLowerCase() + "=" + TRANSACTION); + .to("web3j://" + getUrl() + "operation" + "=" + TRANSACTION); } }; } diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc index 38c45e94bc319..5eaa9ab4933be 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc @@ -632,6 +632,117 @@ directions, aligning the component with the rest of the Camel component catalog. `Camel`-prefixed user-header names from Iggy messages can supply a custom `headerFilterStrategy` to restore the previous behaviour. +=== camel-web3j + +The Exchange header constants in `Web3jConstants` have been renamed to follow the +Camel naming convention used across the rest of the component catalog. The Java +field names are unchanged; only the header string values have changed: + +[options="header"] +|=== +| Constant | Previous value | New value +| `Web3jConstants.ID` | `ID` | `CamelWeb3jId` +| `Web3jConstants.OPERATION` | `OPERATION` | `CamelWeb3jOperation` +| `Web3jConstants.AT_BLOCK` | `AT_BLOCK` | `CamelWeb3jAtBlock` +| `Web3jConstants.ADDRESS` | `ADDRESS` | `CamelWeb3jAddress` +| `Web3jConstants.ADDRESSES` | `ADDRESSES` | `CamelWeb3jAddresses` +| `Web3jConstants.FROM_ADDRESS` | `FROM_ADDRESS` | `CamelWeb3jFromAddress` +| `Web3jConstants.TO_ADDRESS` | `TO_ADDRESS` | `CamelWeb3jToAddress` +| `Web3jConstants.POSITION` | `POSITION` | `CamelWeb3jPosition` +| `Web3jConstants.BLOCK_HASH` | `BLOCK_HASH` | `CamelWeb3jBlockHash` +| `Web3jConstants.TRANSACTION_HASH` | `TRANSACTION_HASH` | `CamelWeb3jTransactionHash` +| `Web3jConstants.SHA3_HASH_OF_DATA_TO_SIGN` | `SHA3_HASH_OF_DATA_TO_SIGN` | `CamelWeb3jSha3HashOfDataToSign` +| `Web3jConstants.SIGNED_TRANSACTION_DATA` | `SIGNED_TRANSACTION_DATA` | `CamelWeb3jSignedTransactionData` +| `Web3jConstants.FULL_TRANSACTION_OBJECTS` | `FULL_TRANSACTION_OBJECTS` | `CamelWeb3jFullTransactionObjects` +| `Web3jConstants.INDEX` | `INDEX` | `CamelWeb3jIndex` +| `Web3jConstants.SOURCE_CODE` | `SOURCE_CODE` | `CamelWeb3jSourceCode` +| `Web3jConstants.FILTER_ID` | `FILTER_ID` | `CamelWeb3jFilterId` +| `Web3jConstants.DATABASE_NAME` | `DATABASE_NAME` | `CamelWeb3jDatabaseName` +| `Web3jConstants.KEY_NAME` | `KEY_NAME` | `CamelWeb3jKeyName` +| `Web3jConstants.NONCE` | `NONCE` | `CamelWeb3jNonce` +| `Web3jConstants.HEADER_POW_HASH` | `HEADER_POW_HASH` | `CamelWeb3jHeaderPowHash` +| `Web3jConstants.MIX_DIGEST` | `MIX_DIGEST` | `CamelWeb3jMixDigest` +| `Web3jConstants.CLIENT_ID` | `CLIENT_ID` | `CamelWeb3jClientId` +| `Web3jConstants.GAS_PRICE` | `GAS_PRICE` | `CamelWeb3jGasPrice` +| `Web3jConstants.GAS_LIMIT` | `GAS_LIMIT` | `CamelWeb3jGasLimit` +| `Web3jConstants.VALUE` | `VALUE` | `CamelWeb3jValue` +| `Web3jConstants.DATA` | `DATA` | `CamelWeb3jData` +| `Web3jConstants.FROM_BLOCK` | `FROM_BLOCK` | `CamelWeb3jFromBlock` +| `Web3jConstants.TO_BLOCK` | `TO_BLOCK` | `CamelWeb3jToBlock` +| `Web3jConstants.TOPICS` | `TOPICS` | `CamelWeb3jTopics` +| `Web3jConstants.PRIORITY` | `PRIORITY` | `CamelWeb3jPriority` +| `Web3jConstants.TTL` | `TTL` | `CamelWeb3jTtl` +| `Web3jConstants.PRIVATE_FOR` | `PRIVATE_FOR` | `CamelWeb3jPrivateFor` +| `Web3jConstants.PRIVATE_FROM` | `PRIVATE_FROM` | `CamelWeb3jPrivateFrom` +| `Web3jConstants.ERROR_CODE` | `ERROR_CODE` | `CamelWeb3jErrorCode` +| `Web3jConstants.ERROR_DATA` | `ERROR_DATA` | `CamelWeb3jErrorData` +| `Web3jConstants.ERROR_MESSAGE` | `ERROR_MESSAGE` | `CamelWeb3jErrorMessage` +| `Web3jConstants.HEADER_STATUS` | `status` | `CamelWeb3jStatus` +| `Web3jConstants.HEADER_OPERATION` | `operation` | `CamelWeb3jHeaderOperation` +| `Web3jConstants.ETH_HASHRATE` | `ETH_HASHRATE` | `CamelWeb3jEthHashrate` +|=== + +Routes that reference the constants symbolically (for example +`setHeader(Web3jConstants.FROM_ADDRESS, ...)`) continue to work without changes. +Routes that set the header by its literal string value (for example +`setHeader("FROM_ADDRESS", ...)`) must be updated to use the new value +(`setHeader("CamelWeb3jFromAddress", ...)`). + +The `Web3jConstants.ETH_HASHRATE` constant is dual-purpose: it is both the +`CamelWeb3jOperation` value that dispatches the `ethHashrate` RPC and the header +name read by the `ETH_SUBMIT_HASHRATE` operation. Routes that referenced the +literal string `"ETH_HASHRATE"` (in either role) must be updated to +`"CamelWeb3jEthHashrate"`. Routes using the symbolic constant reference are +unaffected. The other producer-dispatch operation identifiers (`WEB3_CLIENT_VERSION`, +`ETH_GAS_PRICE`, `ETH_SEND_TRANSACTION`, ...) keep their previous string values +because they are operation enum values rather than Exchange header names. + +As a consequence, the generated Endpoint DSL header accessors on +`Web3jHeaderNameBuilder` have been renamed accordingly: + +* `iD()` -> `web3jId()` +* `atBlock()` -> `web3jAtBlock()` +* `aDDRESS()` -> `web3jAddress()` +* `aDDRESSES()` -> `web3jAddresses()` +* `fromAddress()` -> `web3jFromAddress()` +* `toAddress()` -> `web3jToAddress()` +* `pOSITION()` -> `web3jPosition()` +* `blockHash()` -> `web3jBlockHash()` +* `transactionHash()` -> `web3jTransactionHash()` +* `sha3HashOfDataToSign()` -> `web3jSha3HashOfDataToSign()` +* `signedTransactionData()` -> `web3jSignedTransactionData()` +* `fullTransactionObjects()` -> `web3jFullTransactionObjects()` +* `iNDEX()` -> `web3jIndex()` +* `sourceCode()` -> `web3jSourceCode()` +* `filterId()` -> `web3jFilterId()` +* `databaseName()` -> `web3jDatabaseName()` +* `keyName()` -> `web3jKeyName()` +* `nONCE()` -> `web3jNonce()` +* `headerPowHash()` -> `web3jHeaderPowHash()` +* `mixDigest()` -> `web3jMixDigest()` +* `clientId()` -> `web3jClientId()` +* `gasPrice()` -> `web3jGasPrice()` +* `gasLimit()` -> `web3jGasLimit()` +* `vALUE()` -> `web3jValue()` +* `dATA()` -> `web3jData()` +* `fromBlock()` -> `web3jFromBlock()` +* `toBlock()` -> `web3jToBlock()` +* `tOPICS()` -> `web3jTopics()` +* `pRIORITY()` -> `web3jPriority()` +* `tTL()` -> `web3jTtl()` +* `privateFor()` -> `web3jPrivateFor()` +* `privateFrom()` -> `web3jPrivateFrom()` +* `errorCode()` -> `web3jErrorCode()` +* `errorData()` -> `web3jErrorData()` +* `errorMessage()` -> `web3jErrorMessage()` +* `status()` -> `web3jStatus()` +* `operation()` -> `web3jHeaderOperation()` +* `ethHashrate()` -> `web3jEthHashrate()` + +A new accessor `web3jOperation()` is also generated for `Web3jConstants.OPERATION` +(the producer dispatch header). This constant did not appear in the catalog +previously, so no DSL accessor renaming applies to it. + === Jackson dataformat documentation pages renamed The Jackson 2.x and Jackson 3.x lines ship the same dataformat names (`jackson`, `jacksonXml`, diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Web3jEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Web3jEndpointBuilderFactory.java index c4d2a3f4cb3ce..04e1a6fcb0a3f 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Web3jEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Web3jEndpointBuilderFactory.java @@ -1447,10 +1447,10 @@ public static class Web3jHeaderNameBuilder { * * Group: producer * - * @return the name of the header {@code ETH_HASHRATE}. + * @return the name of the header {@code Web3jEthHashrate}. */ - public String ethHashrate() { - return "ETH_HASHRATE"; + public String web3jEthHashrate() { + return "CamelWeb3jEthHashrate"; } /** * The id. @@ -1459,10 +1459,22 @@ public String ethHashrate() { * * Group: producer * - * @return the name of the header {@code ID}. + * @return the name of the header {@code Web3jId}. */ - public String iD() { - return "ID"; + public String web3jId() { + return "CamelWeb3jId"; + } + /** + * The operation to perform. + * + * The option is a: {@code String} type. + * + * Group: producer + * + * @return the name of the header {@code Web3jOperation}. + */ + public String web3jOperation() { + return "CamelWeb3jOperation"; } /** * The block number, or the string latest for the last mined block or @@ -1472,10 +1484,10 @@ public String iD() { * * Group: producer * - * @return the name of the header {@code AT_BLOCK}. + * @return the name of the header {@code Web3jAtBlock}. */ - public String atBlock() { - return "AT_BLOCK"; + public String web3jAtBlock() { + return "CamelWeb3jAtBlock"; } /** * Contract address. @@ -1484,10 +1496,10 @@ public String atBlock() { * * Group: producer * - * @return the name of the header {@code ADDRESS}. + * @return the name of the header {@code Web3jAddress}. */ - public String aDDRESS() { - return "ADDRESS"; + public String web3jAddress() { + return "CamelWeb3jAddress"; } /** * Contract address or a list of addresses. @@ -1496,10 +1508,10 @@ public String aDDRESS() { * * Group: producer * - * @return the name of the header {@code ADDRESSES}. + * @return the name of the header {@code Web3jAddresses}. */ - public String aDDRESSES() { - return "ADDRESSES"; + public String web3jAddresses() { + return "CamelWeb3jAddresses"; } /** * The address the transaction is send from. @@ -1508,10 +1520,10 @@ public String aDDRESSES() { * * Group: producer * - * @return the name of the header {@code FROM_ADDRESS}. + * @return the name of the header {@code Web3jFromAddress}. */ - public String fromAddress() { - return "FROM_ADDRESS"; + public String web3jFromAddress() { + return "CamelWeb3jFromAddress"; } /** * The address the transaction is directed to. @@ -1520,10 +1532,10 @@ public String fromAddress() { * * Group: producer * - * @return the name of the header {@code TO_ADDRESS}. + * @return the name of the header {@code Web3jToAddress}. */ - public String toAddress() { - return "TO_ADDRESS"; + public String web3jToAddress() { + return "CamelWeb3jToAddress"; } /** * The transaction index position withing a block. @@ -1532,10 +1544,10 @@ public String toAddress() { * * Group: producer * - * @return the name of the header {@code POSITION}. + * @return the name of the header {@code Web3jPosition}. */ - public String pOSITION() { - return "POSITION"; + public String web3jPosition() { + return "CamelWeb3jPosition"; } /** * Hash of the block where this transaction was in. @@ -1544,10 +1556,10 @@ public String pOSITION() { * * Group: producer * - * @return the name of the header {@code BLOCK_HASH}. + * @return the name of the header {@code Web3jBlockHash}. */ - public String blockHash() { - return "BLOCK_HASH"; + public String web3jBlockHash() { + return "CamelWeb3jBlockHash"; } /** * The information about a transaction requested by transaction hash. @@ -1556,10 +1568,10 @@ public String blockHash() { * * Group: producer * - * @return the name of the header {@code TRANSACTION_HASH}. + * @return the name of the header {@code Web3jTransactionHash}. */ - public String transactionHash() { - return "TRANSACTION_HASH"; + public String web3jTransactionHash() { + return "CamelWeb3jTransactionHash"; } /** * Message to sign by calculating an Ethereum specific signature. @@ -1568,10 +1580,10 @@ public String transactionHash() { * * Group: producer * - * @return the name of the header {@code SHA3_HASH_OF_DATA_TO_SIGN}. + * @return the name of the header {@code Web3jSha3HashOfDataToSign}. */ - public String sha3HashOfDataToSign() { - return "SHA3_HASH_OF_DATA_TO_SIGN"; + public String web3jSha3HashOfDataToSign() { + return "CamelWeb3jSha3HashOfDataToSign"; } /** * The signed transaction data for a new message call transaction or a @@ -1581,10 +1593,10 @@ public String sha3HashOfDataToSign() { * * Group: producer * - * @return the name of the header {@code SIGNED_TRANSACTION_DATA}. + * @return the name of the header {@code Web3jSignedTransactionData}. */ - public String signedTransactionData() { - return "SIGNED_TRANSACTION_DATA"; + public String web3jSignedTransactionData() { + return "CamelWeb3jSignedTransactionData"; } /** * If true it returns the full transaction objects, if false only the @@ -1594,10 +1606,10 @@ public String signedTransactionData() { * * Group: producer * - * @return the name of the header {@code FULL_TRANSACTION_OBJECTS}. + * @return the name of the header {@code Web3jFullTransactionObjects}. */ - public String fullTransactionObjects() { - return "FULL_TRANSACTION_OBJECTS"; + public String web3jFullTransactionObjects() { + return "CamelWeb3jFullTransactionObjects"; } /** * The transactions/uncle index position in the block. @@ -1606,10 +1618,10 @@ public String fullTransactionObjects() { * * Group: producer * - * @return the name of the header {@code INDEX}. + * @return the name of the header {@code Web3jIndex}. */ - public String iNDEX() { - return "INDEX"; + public String web3jIndex() { + return "CamelWeb3jIndex"; } /** * The source code to compile. @@ -1618,10 +1630,10 @@ public String iNDEX() { * * Group: producer * - * @return the name of the header {@code SOURCE_CODE}. + * @return the name of the header {@code Web3jSourceCode}. */ - public String sourceCode() { - return "SOURCE_CODE"; + public String web3jSourceCode() { + return "CamelWeb3jSourceCode"; } /** * The filter id to use. @@ -1630,10 +1642,10 @@ public String sourceCode() { * * Group: producer * - * @return the name of the header {@code FILTER_ID}. + * @return the name of the header {@code Web3jFilterId}. */ - public String filterId() { - return "FILTER_ID"; + public String web3jFilterId() { + return "CamelWeb3jFilterId"; } /** * The local database name. @@ -1642,10 +1654,10 @@ public String filterId() { * * Group: producer * - * @return the name of the header {@code DATABASE_NAME}. + * @return the name of the header {@code Web3jDatabaseName}. */ - public String databaseName() { - return "DATABASE_NAME"; + public String web3jDatabaseName() { + return "CamelWeb3jDatabaseName"; } /** * The key name in the database. @@ -1654,10 +1666,10 @@ public String databaseName() { * * Group: producer * - * @return the name of the header {@code KEY_NAME}. + * @return the name of the header {@code Web3jKeyName}. */ - public String keyName() { - return "KEY_NAME"; + public String web3jKeyName() { + return "CamelWeb3jKeyName"; } /** * The nonce found (64 bits) used for submitting a proof-of-work @@ -1667,10 +1679,10 @@ public String keyName() { * * Group: producer * - * @return the name of the header {@code NONCE}. + * @return the name of the header {@code Web3jNonce}. */ - public String nONCE() { - return "NONCE"; + public String web3jNonce() { + return "CamelWeb3jNonce"; } /** * The header's pow-hash (256 bits) used for submitting a proof-of-work @@ -1680,10 +1692,10 @@ public String nONCE() { * * Group: producer * - * @return the name of the header {@code HEADER_POW_HASH}. + * @return the name of the header {@code Web3jHeaderPowHash}. */ - public String headerPowHash() { - return "HEADER_POW_HASH"; + public String web3jHeaderPowHash() { + return "CamelWeb3jHeaderPowHash"; } /** * The mix digest (256 bits) used for submitting a proof-of-work @@ -1693,10 +1705,10 @@ public String headerPowHash() { * * Group: producer * - * @return the name of the header {@code MIX_DIGEST}. + * @return the name of the header {@code Web3jMixDigest}. */ - public String mixDigest() { - return "MIX_DIGEST"; + public String web3jMixDigest() { + return "CamelWeb3jMixDigest"; } /** * A random hexadecimal(32 bytes) ID identifying the client. @@ -1705,10 +1717,10 @@ public String mixDigest() { * * Group: producer * - * @return the name of the header {@code CLIENT_ID}. + * @return the name of the header {@code Web3jClientId}. */ - public String clientId() { - return "CLIENT_ID"; + public String web3jClientId() { + return "CamelWeb3jClientId"; } /** * Gas price used for each paid gas. @@ -1717,10 +1729,10 @@ public String clientId() { * * Group: producer * - * @return the name of the header {@code GAS_PRICE}. + * @return the name of the header {@code Web3jGasPrice}. */ - public String gasPrice() { - return "GAS_PRICE"; + public String web3jGasPrice() { + return "CamelWeb3jGasPrice"; } /** * The maximum gas allowed in this block. @@ -1729,10 +1741,10 @@ public String gasPrice() { * * Group: producer * - * @return the name of the header {@code GAS_LIMIT}. + * @return the name of the header {@code Web3jGasLimit}. */ - public String gasLimit() { - return "GAS_LIMIT"; + public String web3jGasLimit() { + return "CamelWeb3jGasLimit"; } /** * The value sent within a transaction. @@ -1741,10 +1753,10 @@ public String gasLimit() { * * Group: producer * - * @return the name of the header {@code VALUE}. + * @return the name of the header {@code Web3jValue}. */ - public String vALUE() { - return "VALUE"; + public String web3jValue() { + return "CamelWeb3jValue"; } /** * The compiled code of a contract OR the hash of the invoked method @@ -1754,10 +1766,10 @@ public String vALUE() { * * Group: producer * - * @return the name of the header {@code DATA}. + * @return the name of the header {@code Web3jData}. */ - public String dATA() { - return "DATA"; + public String web3jData() { + return "CamelWeb3jData"; } /** * The block number, or the string latest for the last mined block or @@ -1767,10 +1779,10 @@ public String dATA() { * * Group: producer * - * @return the name of the header {@code FROM_BLOCK}. + * @return the name of the header {@code Web3jFromBlock}. */ - public String fromBlock() { - return "FROM_BLOCK"; + public String web3jFromBlock() { + return "CamelWeb3jFromBlock"; } /** * The block number, or the string latest for the last mined block or @@ -1780,10 +1792,10 @@ public String fromBlock() { * * Group: producer * - * @return the name of the header {@code TO_BLOCK}. + * @return the name of the header {@code Web3jToBlock}. */ - public String toBlock() { - return "TO_BLOCK"; + public String web3jToBlock() { + return "CamelWeb3jToBlock"; } /** * Topics are order-dependent. Each topic can also be a list of topics. @@ -1793,10 +1805,10 @@ public String toBlock() { * * Group: producer * - * @return the name of the header {@code TOPICS}. + * @return the name of the header {@code Web3jTopics}. */ - public String tOPICS() { - return "TOPICS"; + public String web3jTopics() { + return "CamelWeb3jTopics"; } /** * The priority of a whisper message. @@ -1805,10 +1817,10 @@ public String tOPICS() { * * Group: producer * - * @return the name of the header {@code PRIORITY}. + * @return the name of the header {@code Web3jPriority}. */ - public String pRIORITY() { - return "PRIORITY"; + public String web3jPriority() { + return "CamelWeb3jPriority"; } /** * The time to live in seconds of a whisper message. @@ -1817,10 +1829,10 @@ public String pRIORITY() { * * Group: producer * - * @return the name of the header {@code TTL}. + * @return the name of the header {@code Web3jTtl}. */ - public String tTL() { - return "TTL"; + public String web3jTtl() { + return "CamelWeb3jTtl"; } /** * A transaction privateFor nodes with public keys in a Quorum network. @@ -1829,10 +1841,10 @@ public String tTL() { * * Group: producer * - * @return the name of the header {@code PRIVATE_FOR}. + * @return the name of the header {@code Web3jPrivateFor}. */ - public String privateFor() { - return "PRIVATE_FOR"; + public String web3jPrivateFor() { + return "CamelWeb3jPrivateFor"; } /** * A transaction privateFrom. @@ -1841,10 +1853,10 @@ public String privateFor() { * * Group: producer * - * @return the name of the header {@code PRIVATE_FROM}. + * @return the name of the header {@code Web3jPrivateFrom}. */ - public String privateFrom() { - return "PRIVATE_FROM"; + public String web3jPrivateFrom() { + return "CamelWeb3jPrivateFrom"; } /** * The error code. @@ -1853,10 +1865,10 @@ public String privateFrom() { * * Group: producer * - * @return the name of the header {@code ERROR_CODE}. + * @return the name of the header {@code Web3jErrorCode}. */ - public String errorCode() { - return "ERROR_CODE"; + public String web3jErrorCode() { + return "CamelWeb3jErrorCode"; } /** * The error data. @@ -1865,10 +1877,10 @@ public String errorCode() { * * Group: producer * - * @return the name of the header {@code ERROR_DATA}. + * @return the name of the header {@code Web3jErrorData}. */ - public String errorData() { - return "ERROR_DATA"; + public String web3jErrorData() { + return "CamelWeb3jErrorData"; } /** * The error message. @@ -1877,10 +1889,10 @@ public String errorData() { * * Group: producer * - * @return the name of the header {@code ERROR_MESSAGE}. + * @return the name of the header {@code Web3jErrorMessage}. */ - public String errorMessage() { - return "ERROR_MESSAGE"; + public String web3jErrorMessage() { + return "CamelWeb3jErrorMessage"; } /** * The status of the operation. @@ -1889,10 +1901,10 @@ public String errorMessage() { * * Group: consumer * - * @return the name of the header {@code status}. + * @return the name of the header {@code Web3jStatus}. */ - public String status() { - return "status"; + public String web3jStatus() { + return "CamelWeb3jStatus"; } /** * The operation. @@ -1901,10 +1913,10 @@ public String status() { * * Group: consumer * - * @return the name of the header {@code operation}. + * @return the name of the header {@code Web3jHeaderOperation}. */ - public String operation() { - return "operation"; + public String web3jHeaderOperation() { + return "CamelWeb3jHeaderOperation"; } } static Web3jEndpointBuilder endpointBuilder(String componentName, String path) {