Conversation
|
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
[warning] @typescript-eslint/explicit-module-boundary-types
[warning] @typescript-eslint/no-non-null-assertion
Report generated by eslint-plus-action |
- also added typings for the contract
- also fixed ADDRESSBOOK_EDIT_ENTRY key
- also used hooks for styles - and safe-react-components wherever is possible
- create spending limit - list spending limit - delete spending limit
bc68b4c to
c135a04
Compare
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
| return ( | ||
| <> | ||
| <ResetTimeLabel> | ||
| <Text size="xl">Set a reset-time to have the allowance automatically refill after a defined time-period.</Text> |
There was a problem hiding this comment.
"Set a reset time so the allowance automatically refills after the defined time period"
|
@francovenica, frow what we discussed in the walkthrough with the team. The only visible addition was the explanatory text next to the |
|
Travis automatic deployment: |
|
I gave spending limits to an user and then I removed him as owner of the safe. It respects the limit allowed still, so at least that user won't be able to use more of what it was set to him. The safe: https://pr1637--safereact.review.gnosisdev.com/rinkeby/app/#/safes/0x7f58E04c2949CDA2A61E7413E9d8DA93b1726D7F/transactions |
Yeah that's fine. It should be possible to use the spending limit as a non-owner. Just not via our UI yet. :) |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
1 similar comment
|
Travis automatic deployment: |
|
Travis automatic deployment: |
… coin - also removed the `useMemo` hook
…feature/413-spendingLimit
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
The issue with the token not showing when disabling them in the assets tab was fixed The other reports can be left for improvements for the 2.17 version An owner being able to use tokens from outside of the safe while not being an owner is not an issue then. Tested:
It looks good to me |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
This PR is a replacement for #1351. Given it's a big feature and it was there for around 4 months, its history became very hard to follow.
This PR closes #413, by:
NOTE:
Before merging this feature, we need to remove the hardcoded address in constants.ts file and set the global variable
REACT_APP_SPENDING_LIMIT_MODULE_ADDRESSto the audited module address.How to test
This is an ordered list of the feature's sub-tasks.
Implementation details are in the PRs description.
#1151 (comment)
#1261 (comment)
#1276 (comment)
What this feature adds to the safe:
Spending Limit as a Setting option
New Spending Limit
Identify Spending Limit Transactions
Action 2: Add Beneficiary
Action 3: Set the Spending Limit
Action 2: Set the Spending Limit
Use the Spending Limit allowance