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

Feat/show invokehostfunction info #212

Closed
wants to merge 25 commits into from

Conversation

CERP27
Copy link
Contributor

@CERP27 CERP27 commented May 13, 2024

Summary

This PR is responsible for displaying detailed information about the operations that arrive at Simple Signer when they are of type invokeHostFunction. We use the Soroban server to review the contract to which the operation is directed in order to retrieve the names of the parameters used by the method called within the contract, whether it is a Smart Contract or a Stellar Asset Contract

Details

  • Update Stellar dependencies
  • Install Buffer dependencies
  • Remove invokeHostFunction case from DynamicOperationComponentFactory to create a new InvokeHostFunctionComponentFactory
  • Add Parameters and Parametros to translations jsons
  • Create getMethodValue to extract the methods value from the operations arguments
  • Create getStellarAssetContractFunctions to extract the names of the inputs of the SAC methods
  • Update InvokeHostFunctionComponent:
    • Add the title of the function called in the contract as FunctionType
    • Add Description if the function called has one
    • Add the function parameters used in the transaction if is has some

Evidence

image
image
image

jjuannn and others added 24 commits April 15, 2024 12:40
* Create sonarqube and parse output scripts for CodeBuild

* Create buildspec.yml file for CodeBuild

* Replace sonarqube scan script file extension from .js to .cjs

* Skip qualityCheck in sonar script to avoid problems with Svelte

* Remove 'token' property in sonar scanner config since it's not required for sonarqube v9
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) to 7.23.2 and updates ancestor dependencies [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) and [@trivago/prettier-plugin-sort-imports](https://github.com/trivago/prettier-plugin-sort-imports). These dependencies need to be updated together.


Updates `@babel/traverse` from 7.17.12 to 7.23.2
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

Updates `@babel/traverse` from 7.13.0 to 7.23.2
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

Updates `@trivago/prettier-plugin-sort-imports` from 3.2.0 to 4.3.0
- [Release notes](https://github.com/trivago/prettier-plugin-sort-imports/releases)
- [Changelog](https://github.com/trivago/prettier-plugin-sort-imports/blob/main/CHANGELOG.md)
- [Commits](trivago/prettier-plugin-sort-imports@v3.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
- dependency-name: "@babel/traverse"
  dependency-type: indirect
- dependency-name: "@trivago/prettier-plugin-sort-imports"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
…i-ac0620bd6a

Bump @babel/traverse and @trivago/prettier-plugin-sort-imports
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 2.9.13 to 2.9.18.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v2.9.18/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v2.9.18/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Remove invokeHostFunction case from DynamicOperationComponentFactory to use it separatedly
Create InvokeHostFunctionComponentFactory to create the invokeHostFunctionComponent with specific paramentes only avaliable using asynchronus code
Add Parameters and Parametros to translation to show the parameters of the smart contracts methods
Create getStellarAssetContractFunctions to extract the names of the inputs of the SAC methods
- Add the title of the function called in the contract as FunctionType
- Add Description if the function called has one
- Add the function parameters used in the transaction if is has some
- Create async initializeTransactionData to get operations info to show
- Call initializeTransactionData when the component is mount
Change how getMethodsValues return when the case is scvMap for better comprehension
- Change the way of showing the parameters
- Show the contract ID info
Update the way to return the info when the type is scvMap or scvVec
@CERP27 CERP27 closed this May 16, 2024
@CERP27 CERP27 deleted the feat/show-invokehostfunction-info branch May 17, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants