Skip to content

Commit

Permalink
refactor(satp-hermes): error handling and grpc upgrade to 2.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Amaro <[email protected]>

fix(satp-hermes): fix tests so you can test each test individually

Signed-off-by: Carlos Amaro <[email protected]>
  • Loading branch information
LordKubaya committed Dec 6, 2024
1 parent 3039f23 commit a0a9ddb
Show file tree
Hide file tree
Showing 189 changed files with 32,470 additions and 4,163 deletions.
21 changes: 12 additions & 9 deletions packages/cactus-plugin-satp-hermes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"forge": "forge build ./src/solidity/*.sol --out ./src/solidity/generated",
"forge:all": "run-s 'forge' 'forge:test'",
"forge:test": "forge build ./src/test/solidity/contracts/*.sol --out ./src/test/solidity/generated",
"generate-proto": "cd src/main/proto && buf generate --template buf.gen.yaml --config buf.yaml --verbose",
"generate-proto": "cd src/main/proto && yarn buf generate --verbose",
"generate-sdk": "run-p 'generate-sdk:*'",
"generate-sdk:go": "openapi-generator-cli generate -i ./src/main/yml/bol/openapi-blo-bundled.yml -g go -o ./src/main/go/generated/gateway-client --additional-properties=packageName=generated,generateInterfaces=true,packageVersion=v0.0.1,moduleName=github.com/hyperledger/cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated --git-user-id hyperledger --git-repo-id cacti/packages/cactus-plugin-satp-hermes/src/main/go/generated",
"generate-sdk:typescript-axios-bol": "yarn bundle-openapi-yaml && yarn bundle-openapi-json && openapi-generator-cli generate -i ./src/main/yml/bol/openapi-blo-bundled.yml -g typescript-axios -o ./src/main/typescript/generated/gateway-client/typescript-axios/ --reserved-words-mappings protected=protected --enable-post-process-file",
Expand Down Expand Up @@ -97,11 +97,13 @@
}
},
"dependencies": {
"@bufbuild/protobuf": "1.10.0",
"@connectrpc/connect": "1.3.0",
"@connectrpc/connect-express": "1.3.0",
"@connectrpc/connect-node": "1.3.0",
"@connectrpc/protoc-gen-connect-es": "1.3.0",
"@bufbuild/protobuf": "2.2.2",
"@connectrpc/connect": "2.0.0",
"@connectrpc/connect-express": "2.0.0",
"@connectrpc/connect-node": "2.0.0",
"@connectrpc/protoc-gen-connect-es": "1.6.1",
"@foundry-rs/hardhat-forge": "0.1.17",
"@grpc/grpc-js": "1.12.4",
"@hyperledger/cactus-cmd-api-server": "2.0.0",
"@hyperledger/cactus-common": "2.0.0",
"@hyperledger/cactus-core": "2.0.0",
Expand All @@ -113,6 +115,7 @@
"@hyperledger/cactus-plugin-ledger-connector-fabric": "2.0.0",
"@hyperledger/cactus-plugin-object-store-ipfs": "2.0.0",
"@hyperledger/cactus-test-tooling": "2.0.0",
"@openzeppelin/contracts": "5.0.2",
"axios": "1.7.7",
"bignumber.js": "9.1.2",
"bn.js": "5.2.1",
Expand Down Expand Up @@ -146,16 +149,16 @@
},
"devDependencies": {
"@apidevtools/swagger-cli": "4.0.4",
"@bufbuild/buf": "1.30.0",
"@bufbuild/protoc-gen-es": "1.8.0",
"@bufbuild/buf": "^1.47.2",
"@bufbuild/protoc-gen-es": "2.2.2",
"@grpc/proto-loader": "0.7.13",
"@hyperledger/cactus-test-geth-ledger": "2.0.0-rc.7",
"@quobix/vacuum": "0.9.16",
"@types/body-parser": "1.19.4",
"@types/crypto-js": "4.0.1",
"@types/express": "5.0.0",
"@types/fs-extra": "11.0.4",
"@types/google-protobuf": "3.15.5",
"@types/google-protobuf": "3.15.12",
"@types/node": "18.18.2",
"@types/swagger-ui-express": "4.1.6",
"@types/tape": "4.13.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so

# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

_testmain.go

*.exe
*.test
*.prof
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
.gitignore
.travis.yml
README.md
api/openapi.yaml
api_admin.go
api_transaction.go
client.go
configuration.go
docs/APIError.md
docs/Action.md
docs/AdminApi.md
docs/Asset.md
docs/AuthzJwtClaim.md
docs/AuthzScope.md
docs/BridgeInfo.md
docs/Cancel200Response.md
docs/CancelRequest.md
docs/CancelResponse.md
docs/Chain.md
docs/Chains1Inner.md
docs/Continue200Response.md
docs/ContinueRequest.md
docs/ContinueResponse.md
docs/CredentialProfile.md
docs/DLTProtocol.md
docs/Estimate.md
docs/FeeCost.md
docs/GasCost.md
docs/GetAudit200Response.md
docs/GetAuditRequest.md
docs/GetAuditResponse.md
docs/GetHealthCheck200Response.md
docs/GetRoutes200Response.md
docs/GetRoutes200ResponseRoutesInner.md
docs/GetRoutes200ResponseRoutesInnerFromToken.md
docs/GetRoutes200ResponseRoutesInnerFromTokenExtensions.md
docs/GetRoutes200ResponseRoutesInnerFromTokenExtensionsBridgeInfoValue.md
docs/GetRoutes200ResponseRoutesInnerInsurance.md
docs/GetRoutes200ResponseRoutesInnerStepsInner.md
docs/GetRoutes200ResponseRoutesInnerStepsInnerAction.md
docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimate.md
docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateFeeCostsInner.md
docs/GetRoutes200ResponseRoutesInnerStepsInnerEstimateGasCostsInner.md
docs/GetRoutes200ResponseRoutesInnerStepsInnerToolDetails.md
docs/HealthCheckResponse.md
docs/IncludedStep.md
docs/Insurance.md
docs/IntegrationDetails.md
docs/Pause200Response.md
docs/PauseRequest.md
docs/PauseResponse.md
docs/Route.md
docs/RoutesResponse.md
docs/StatusRequest.md
docs/StatusResponse.md
docs/Token.md
docs/Transact200Response.md
docs/Transact200ResponseStatusResponse.md
docs/Transact200ResponseStatusResponseDestinationChain.md
docs/Transact200ResponseStatusResponseOriginChain.md
docs/TransactDefaultResponse.md
docs/TransactRequest.md
docs/TransactRequestSourceAsset.md
docs/TransactResponse.md
docs/TransactionApi.md
git_push.sh
go.mod
go.sum
model_action.go
model_api_error.go
model_asset.go
model_authz_jwt_claim.go
model_authz_scope.go
model_bridge_info.go
model_cancel_200_response.go
model_cancel_request.go
model_cancel_response.go
model_chain.go
model_chains_1_inner.go
model_continue_200_response.go
model_continue_request.go
model_continue_response.go
model_credential_profile.go
model_dlt_protocol.go
model_estimate.go
model_fee_cost.go
model_gas_cost.go
model_get_audit_200_response.go
model_get_audit_request.go
model_get_audit_response.go
model_get_health_check_200_response.go
model_get_routes_200_response.go
model_get_routes_200_response_routes_inner.go
model_get_routes_200_response_routes_inner_from_token.go
model_get_routes_200_response_routes_inner_from_token_extensions.go
model_get_routes_200_response_routes_inner_from_token_extensions_bridge_info_value.go
model_get_routes_200_response_routes_inner_insurance.go
model_get_routes_200_response_routes_inner_steps_inner.go
model_get_routes_200_response_routes_inner_steps_inner_action.go
model_get_routes_200_response_routes_inner_steps_inner_estimate.go
model_get_routes_200_response_routes_inner_steps_inner_estimate_fee_costs_inner.go
model_get_routes_200_response_routes_inner_steps_inner_estimate_gas_costs_inner.go
model_get_routes_200_response_routes_inner_steps_inner_tool_details.go
model_health_check_response.go
model_included_step.go
model_insurance.go
model_integration_details.go
model_pause_200_response.go
model_pause_request.go
model_pause_response.go
model_route.go
model_routes_response.go
model_status_request.go
model_status_response.go
model_token.go
model_transact_200_response.go
model_transact_200_response_status_response.go
model_transact_200_response_status_response_destination_chain.go
model_transact_200_response_status_response_origin_chain.go
model_transact_default_response.go
model_transact_request.go
model_transact_request_source_asset.go
model_transact_response.go
response.go
utils.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.6.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: go

install:
- go get -d -v .

script:
- go build -v ./

Loading

0 comments on commit a0a9ddb

Please sign in to comment.