This PR refactors the code to adapt to the Casper Node API changes. The URLs for the node services were updated to the new format. The procedure was altered to make, sign, and deploy directly from the application, rather than using an external service. Also, some redundant code was removed and the Content Security Policy (CSP) was updated accordingly. Update detailed error handling for all deploy related functions, ensuring that the data property of a returned error isn't always a string.
Make sure to fill in all the below sections.
Description
This PR refactors the code to adapt to the Casper Node API changes. The URLs for the node services were updated to the new format. The procedure was altered to make, sign, and deploy directly from the application, rather than using an external service. Also, some redundant code was removed and the Content Security Policy (CSP) was updated accordingly. Update detailed error handling for all deploy related functions, ensuring that the data property of a returned error isn't always a string.
Linked tickets
WALLET-315
Checklist
[x] Make sure this PR title follows semantic release conventions: https://semantic-release.gitbook.io/semantic-release/#commit-message-format
[ ] If the PR adds any new text to the UI, make sure they are localized
[ ] Include a screenshot or recording if implementing significant UI or user flow change
[x] When this PR affects architecture changes wait for review from Dmytro before merging