added a function to notify the status of deployment to backend #2
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.
This pull request includes several changes to the
index.js
andnetwork.js
files to enhance the deployment notification process and improve code consistency by standardizing formatting. The most important changes include adding a new function to send deployment notifications and updating the RPC URL configurations.Enhancements to deployment notifications:
sendNotificationToBackend
function to send deployment notifications to the backend service. This function constructs a payload with relevant deployment data and sends it via a POST request. (index.js
)executeDeploy
function to send deployment notifications at the start, success, and failure points of the deployment process. This ensures that the backend service is informed about the deployment status at each critical stage. (index.js
)Code formatting improvements:
RPC_URL
object by removing unnecessary newlines and aligning the URL arrays. (network.js
) [1] [2]getLatestBlockNumber
function to use consistent indentation and quotation marks, improving code readability. (network.js
) [1] [2]