(Feature) [Spending Limit] Send funds#1276
(Feature) [Spending Limit] Send funds#1276fernandomg merged 19 commits intofeature/#413-SpendingLimit-in-appfrom
Conversation
- this allows to display data hash when there's no info to display - also helps to decode data that has not being decoded by the backend and the frontend can do
…ormation - same layout as the Remove tx modal
several things going on here. - The txs is under the `custom tx` umbrella, instead of `Modify settings` one. - This is a WIP as there's still missing SpendingLimitTxExecute information - also, I'm not ok with how the components are structured
|
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
[warning] @typescript-eslint/explicit-module-boundary-types
Report generated by eslint-plus-action |
|
Travis automatic deployment: |
…ist-SpendingLimit
…ndFunds-SpendingLimit
|
Travis automatic deployment: |
…dFunds-SpendingLimit # Conflicts: # src/routes/safe/store/actions/transactions/utils/multiSendDecodedDetails.ts
- close modal once the user confirms the tx
|
Travis automatic deployment: |
…ndFunds-SpendingLimit
|
Travis automatic deployment: |
src/logic/contracts/methodIds.ts
Outdated
| export const SPENDING_LIMIT_METHOD_TO_ID = { | ||
| '0xe71bdf41': 'addDelegate', | ||
| '0xbeaeb388': 'setAllowance', | ||
| '0x4515641a': 'executeAllowanceTransfer', |
There was a problem hiding this comment.
Here we are using string instead of const defined in SPENDING_LIMIT_METHOD_NAMES.
I think you are trying to use same pattern used in
src/routes/safe/store/models/types/transactions.d.ts SAFE_METHOD_NAMES -> METHOD_TO_ID
There was a problem hiding this comment.
done, thanks for the catch
| /> | ||
| </Col> | ||
| </Row> | ||
| {tokenSpendingLimit && ( |
There was a problem hiding this comment.
This component is getting really big
Should we plan to extract some fragments into smaller child components?
There was a problem hiding this comment.
honestly, I didn't want to jump into the refactor hell. So I decided, at the time, to keep everything in the same place.
But anyway, extracted the radioButtons-related row to a SpendingLimitRow component.
Any feedback is welcome.
There was a problem hiding this comment.
I think it's fine to keep it as is in this PR but address it in a different one.
There was a problem hiding this comment.
Appreciate that some of the new additions were split on a new component.
I'm fine with it as long as a task of tech debt is added to backlog
|
Travis automatic deployment: |
- also set missing types
|
Travis automatic deployment: |
| /> | ||
| </Col> | ||
| </Row> | ||
| {tokenSpendingLimit && ( |
There was a problem hiding this comment.
Appreciate that some of the new additions were split on a new component.
I'm fine with it as long as a task of tech debt is added to backlog



This PR closes #693, by: