feat: add sequance for ethereum service#2
Open
rickliujh wants to merge 1 commit into
Open
Conversation
Member
Author
nnmax
approved these changes
Dec 12, 2023
Member
Author
|
@nnmax target field in request and response has been updated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

ETHEREUM WATCHER API SPEC
[POST] /ews/v1/gas-report
request body:
{ "target": { "type": "market-transactions", // type of the target "address": "0xdsfjl3j3214jljfdklj1lkjkl24", // collection address "tokenId": "1234", // tokenId for the specific collection address (aka collection/contract address) "markets": ["seaport"], // reports from which markets should be included "network": "mainnet" // ethereum network }, "args": { "pushNotification": true, // specify whether push notification is needed "timeout": 60 // in seconds, this field is mendatory when pushNotification is set to true } }response:
{ "id": "ea79904d-11ac-499e-9d28-71aac784c5ee", "target": { "type": "market-transactions", // type of the target "address": "0xdsfjl3j3214jljfdklj1lkjkl24", // collection address "tokenId": "1234", // tokenId for the specific collection address (aka collection/contract address) "markets": ["seaport"], // reports from which markets should be included "network": "mainnet" // ethereum network }, "gasReport": { "timestamp": 1702230377, // timestamp of transaction of present gas fee report "gasLimit": "123", // bigint, could be null "gasPrice": "123", // bigint, could be null "maxPriorityFeePerGas": "123", // bigint required "maxFeePerGas": "123", // bigint, required "baseFee": "123", // bigint, required }, "pushNotification": true // should be true if requested }[DELETE] /ews/v1/gas-report/{id}
request body:
NAN
response:
[WS]
event body:
{ "id": "ea79904d-11ac-499e-9d28-71aac784c5ee", "eventId": "45b6712e-01ef-4781-a0e1-49109ba32363", "target": { "type": "market-transactions", // type of the target "address": "0xdsfjl3j3214jljfdklj1lkjkl24", // collection address "tokenId": "1234", // tokenId for the specific collection address (aka collection/contract address) "markets": ["seaport"], // reports from which markets should be included "network": "mainnet" // ethereum network }, "gasReport": { "timestamp": 1702230377, "gasLimit": "123", // bigint, could be null "gasPrice": "123", // bigint, could be null "maxPriorityFeePerGas": "123", // bigint required "maxFeePerGas": "123", // bigint, required "baseFee": "123", // bigint, required }, "pushNotification": true // should be true if requested }