mirror of
https://github.com/Instadapp/dsa-connectors-old.git
synced 2024-07-29 22:47:46 +00:00
minor edits
This commit is contained in:
parent
6370eccfbd
commit
6464676a93
12
README.md
12
README.md
|
@ -1,6 +1,6 @@
|
|||
# DSA Connectors
|
||||
|
||||
Connectors are standardized modules that let Smart Account interact with various smart contracts, and make the important actions accessible to smart accounts.
|
||||
Connectors are standard modules that let DeFi Smart Account interact with various smart contracts, and make the important actions accessible.
|
||||
|
||||
## Add Custom Connectors
|
||||
|
||||
|
@ -13,17 +13,17 @@ Connectors are standardized modules that let Smart Account interact with various
|
|||
|
||||
## Requirements
|
||||
|
||||
- Import common files from `contracts/common` directory.
|
||||
- The contracts should not have `selfdestruct()`.
|
||||
- The contracts should not have `delegatecall()`.
|
||||
- Use `uint(-1)` for maximum amount everywhere.
|
||||
- Import files from common directory.
|
||||
- Use `getEthAddr()` to get an address to denote Ethereum (non-ERC20) related operations.
|
||||
- Use `getEthAddr()` to denote Ethereum (non-ERC20).
|
||||
- Use `address(this)` instead of `msg.sender` for fetching balance on-chain, etc.
|
||||
- If needed, add `getId` & `setId`, two additional parameter for external public facing functions to fetch or store values.
|
||||
- If required, Add two additional parameter, `getId` & `setId` in external public functions.
|
||||
- Use `getUint()` or `setUint()` functions to fetch or store values.
|
||||
- Call `emitEvent()` after every external public facing functions to follow a common event standard for better analytics.
|
||||
- Call `emitEvent()` after every external public functions.
|
||||
|
||||
Check out [mock.sol](https://github.com/InstaDApp/dsa-connectors/blob/master/contracts/connectors/mock.sol) for reference.
|
||||
Be sure to check [this mock file](https://github.com/InstaDApp/dsa-connectors/blob/master/contracts/connectors/mock.sol) for reference.
|
||||
|
||||
## Support
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user