Skip to content
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

Add helpers at /apis/{apiName}/listeners/{eventPath} #696

Merged
merged 13 commits into from
Apr 12, 2022

Commits on Apr 12, 2022

  1. Add NormalizeContractLocation to blockchain plugin

    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    6beb79d View commit details
    Browse the repository at this point in the history
  2. Coerce Ethereum contract addresses to lowercase

    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    9b84a79 View commit details
    Browse the repository at this point in the history
  3. Make "topic" a required field for contract listeners

    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    f381e38 View commit details
    Browse the repository at this point in the history
  4. Add "signature" field to contract listeners

    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    9ae16d9 View commit details
    Browse the repository at this point in the history
  5. Populate signature/location metric fields for Fabric

    These are used only for reporting and filtering on Prometheus.
    
    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    15ea852 View commit details
    Browse the repository at this point in the history
  6. Enforce uniqueness of topic+location+signature for contract listeners

    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    111f71d View commit details
    Browse the repository at this point in the history
  7. Add helpers at /apis/{apiName}/listeners/{eventPath}

    GET and POST to list matching listeners or create new ones.
    
    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    77069d6 View commit details
    Browse the repository at this point in the history
  8. Remove invoke & query endpoints under /contracts/interfaces

    The same purpose is served by the root /contract/invoke and
    /contracts/query endpoints, when passing an interface ID.
    
    Also split "methodPath" out as a separate parameter, so it's
    clear that you must specify either it or "method".
    
    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    d52645a View commit details
    Browse the repository at this point in the history
  9. Expose GET/POST for API listeners in ffi2swagger

    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    2526e75 View commit details
    Browse the repository at this point in the history
  10. Add index on contract listener signature

    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    20daf4d View commit details
    Browse the repository at this point in the history
  11. Validate Ethereum address when normalizing location

    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    7a2d732 View commit details
    Browse the repository at this point in the history
  12. Handle event signatures that include tuples

    Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
    awrichar committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    2540e71 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    87e5a23 View commit details
    Browse the repository at this point in the history