8000 feat(connector-besu): add WatchSolidityEventV1 endpoint by petermetz · Pull Request #3844 · hyperledger-cacti/cacti · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat(connector-besu): add WatchSolidityEventV1 endpoint #3844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,14 @@
"Iroha",
"Irohad",
"isready",
"ISZERO",
"jboss",
"joho",
"JORDI",
"jsrsa",
"jsrsasign",
"JUMPDEST",
"JUMPI",
"keccak",
"Keychain",
"Keycloak",
Expand All @@ -134,13 +137,15 @@
"miekg",
"mitchellh",
"msal",
"MLOAD",
"MSPCONFIGPATH",
"MSPID",
"Mspids",
"MSPIDSCOPEALLFORTX",
"MSPIDSCOPEANYFORTX",
"msps",
"Mtls",
"MULMOD",
"myapp",
"mychannel",
"myroot",
Expand Down Expand Up @@ -217,6 +222,8 @@
"UNMODELED",
"utxoexample",
"uuidv",
"viem",
"VIEM",
"vscc",
"vuln",
"wasm",
Expand All @@ -225,7 +232,7 @@
"Xdai",
"xeipuuv",
"XUIDH"
],
],
"dictionaries": [
"typescript,node,npm,go,rust"
],
Expand Down
8 changes: 5 additions & 3 deletions packages/cactus-plugin-ledger-connector-besu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"codegen:openapi": "npm run generate-sdk",
"codegen:proto": "run-s proto:openapi proto:protoc-gen-ts",
"generate-sdk": "run-s 'generate-sdk:*'",
"generate-sdk:go": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g go -o ./src/main/go/generated/openapi/go-client/ --git-user-id hyperledger --git-repo-id $(echo $npm_package_name | replace @hyperledger/ \"\" -z)/src/main/go/generated/openapi/go-client --package-name $(echo $npm_package_name | replace @hyperledger/ \"\" -z) --reserved-words-mappings protected=protected --ignore-file-override ../../openapi-generator-ignore",
"generate-sdk:typescript-axios": "openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected --ignore-file-override ../../openapi-generator-ignore",
"proto:openapi": "yarn run --top-level openapi-generator-cli generate -i ./src/main/json/openapi.json -g protobuf-schema --model-name-suffix=PB --language-specific-primitives=google.protobuf.Any --type-mappings=AnyType=google.protobuf.Any --type-mappings=object=google.protobuf.Any --additional-properties=packageName=org.hyperledger.cacti.plugin.ledger.connector.besu -o ./src/main/proto/generated/openapi/ -t=./src/main/mustache/openapi-generator/templates/protobuf-schema/ --ignore-file-override ../../openapi-generator-ignore",
"generate-sdk:go": "JAVA_OPTS=\"-Dlog.level=error\" openapi-generator-cli generate -i ./src/main/json/openapi.json -g go -o ./src/main/go/generated/openapi/go-client/ --git-user-id hyperledger --git-repo-id $(echo $npm_package_name | replace @hyperledger/ \"\" -z)/src/main/go/generated/openapi/go-client --package-name $(echo $npm_package_name | replace @hyperledger/ \"\" -z) --reserved-words-mappings protected=protected --ignore-file-override ../../openapi-generator-ignore",
"generate-sdk:typescript-axios": "JAVA_OPTS=\"-Dlog.level=error\" openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected --ignore-file-override ../../openapi-generator-ignore",
"proto:openapi": "JAVA_OPTS=\"-Dlog.level=error\" yarn run --top-level openapi-generator-cli generate -i ./src/main/json/openapi.json -g protobuf-schema --model-name-suffix=PB --language-specific-primitives=google.protobuf.Any --type-mappings=AnyType=google.protobuf.Any --type-mappings=object=google.protobuf.Any --additional-properties=packageName=org.hyperledger.cacti.plugin.ledger.connector.besu -o ./src/main/proto/generated/openapi/ -t=./src/main/mustache/openapi-generator/templates/protobuf-schema/ --ignore-file-override ../../openapi-generator-ignore",
"proto:protoc-gen-ts": "yarn run --top-level grpc_tools_node_protoc --plugin=protoc-gen-ts=../../node_modules/.bin/protoc-gen-ts --ts_out=grpc_js:./src/main/typescript/generated/proto/protoc-gen-ts/ --proto_path ./src/main/proto/generated/openapi/ --proto_path ./src/main/proto/generated/openapi/models/ --proto_path ./src/main/proto/ ./src/main/proto/generated/openapi/services/*.proto ./src/main/proto/services/*.proto",
"watch": "npm-watch",
"webpack": "npm-run-all webpack:dev",
Expand All @@ -73,8 +73,10 @@
"prom-client": "15.1.3",
"run-time-error-cjs": "1.4.0",
"rxjs": "7.8.1",
"safe-stable-stringify": "2.5.0",
"socket.io-client-fixed-types": "4.5.4",
"typescript-optional": "2.0.1",
"viem": "2.25.0",
"web3": "1.6.1",
"web3-core": "1.6.1",
"web3-eth": "1.6.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ model_solidity_contract_json_artifact.go
model_solidity_contract_json_artifact_compiler.go
model_solidity_contract_json_artifact_gas_estimates.go
model_solidity_contract_json_artifact_gas_estimates_creation.go
model_viem_v2_24_2_event_log.go
model_viem_v2_24_2_watch_events_v1_progress.go
model_watch_blocks_v1.go
model_watch_blocks_v1_progress.go
model_watch_blocks_v1_request.go
model_watch_events_v1.go
model_watch_events_v1_request.go
model_web3_block_header.go
model_web3_block_header_timestamp.go
model_web3_signing_credential.go
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Go API client for cactus-plugin-ledger-connector-besu

Can perform basic tasks on a Besu ledger
Can perform basic tasks on a Besu ledger such as executing transactions, streaming blocks or solidity smart contract events.

## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
Expand Down Expand Up @@ -126,9 +126,13 @@ Class | Method | HTTP request | Description
- [SolidityContractJsonArtifactCompiler](docs/SolidityContractJsonArtifactCompiler.md)
- [SolidityContractJsonArtifactGasEstimates](docs/SolidityContractJsonArtifactGasEstimates.md)
- [SolidityContractJsonArtifactGasEstimatesCreation](docs/SolidityContractJsonArtifactGasEstimatesCreation.md)
- [ViemV2242EventLog](docs/ViemV2242EventLog.md)
- [ViemV2242WatchEventsV1Progress](docs/ViemV2242WatchEventsV1Progress.md)
- [WatchBlocksV1](docs/WatchBlocksV1.md)
- [WatchBlocksV1Progress](docs/WatchBlocksV1Progress.md)
- [WatchBlocksV1Request](docs/WatchBlocksV1Request.md)
- [WatchEventsV1](docs/WatchEventsV1.md)
- [WatchEventsV1Request](docs/WatchEventsV1Request.md)
- [Web3BlockHeader](docs/Web3BlockHeader.md)
- [Web3BlockHeaderTimestamp](docs/Web3BlockHeaderTimestamp.md)
- [Web3SigningCredential](docs/Web3SigningCredential.md)
Expand Down
10000
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
openapi: 3.0.3
info:
description: Can perform basic tasks on a Besu ledger
description: "Can perform basic tasks on a Besu ledger such as executing transactions,\
\ streaming blocks or solidity smart contract events."
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
title: Hyperledger Cactus Plugin - Connector Besu
title: Hyperledger Cacti Plugin - Besu Connector
version: 2.1.0
servers:
- url: /
Expand Down Expand Up @@ -630,6 +631,127 @@ components:
required:
- event
type: object
WatchEventsV1:
enum:
- org.lfdecentralizedtrust.cacti.api.async.besu.WatchEventsV1.Subscribe
- org.lfdecentralizedtrust.cacti.api.async.besu.WatchEventsV1.Next
- org.lfdecentralizedtrust.cacti.api.async.besu.WatchEventsV1.Unsubscribe
- org.lfdecentralizedtrust.cacti.api.async.besu.WatchEventsV1.Error
- org.lfdecentralizedtrust.cacti.api.async.besu.WatchEventsV1.Complete
type: string
x-enum-varnames:
- Subscribe
- Next
- Unsubscribe
- Error
- Complete
WatchEventsV1Request:
properties:
requestId:
description: A unique identifier for this request.
format: uuid
type: string
abi:
items:
type: object
type: array
socketAckTimeoutMs:
default: 30000
description: Timeout for socket acknowledgment in milliseconds.
type: integer
address:
description: Address of the contract to watch for events.
type: string
eventName:
type: string
fromBlock:
description: The number of the block from which to start watching the events.
format: int64
type: string
required:
- abi
- requestId
type: object
ViemV2_24_2_WatchEventsV1Progress:
description: The event log as provided by the Web3 v1.6.1 library.
properties:
requestId:
description: A unique identifier for the request that originated this event.
format: uuid
type: string
logs:
items:
$ref: '#/components/schemas/ViemV2_24_2_EventLog'
type: array
required:
- eventLog
- requestId
type: object
ViemV2_24_2_EventLog:
properties:
address:
description: The address of the contract that emitted the log. Contains
a 0x prefix.
type: string
args:
description: The arguments provided to the Solidity event's constructor
at the time of the emission of the event. Note that BigInt values within
this object will get serialized into strings during transport because
JSON cannot handle BigInts natively.
nullable: false
type: object
blockHash:
description: The block hash as a 0x prefixed HEX string.
nullable: false
type: string
blockNumber:
description: The block number. Originally provided as a BigInt by the underlying
implementation but serialized to a string to avoid data integrity issues
during transport since JSON can only handle the old Javascript number
type and nothing bigger than that.
nullable: false
type: string
data:
description: The log data as a 0x prefixed HEX string.
type: string
eventName:
description: The case-sensitive name of the Solidity event type that was
emitted on-chain.
nullable: false
type: string
logIndex:
description: The log index within the block.
format: int32
type: integer
removed:
type: boolean
topics:
description: An array of log topics represented as 0x prefixed HEX strings.
items:
nullable: false
type: string
nullable: false
type: array
transactionHash:
description: The 0x prefixed transaction hash HEX string.
type: string
transactionIndex:
description: The transaction index within the block.
format: int32
type: integer
required:
- address
- args
- blockHash
- blockNumber
- data
- eventName
- logIndex
- removed
- topics
- transactionHash
- transactionIndex
type: object
Web3BlockHeader:
properties:
number:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading
0