mirror of
				https://github.com/Instadapp/dsa-connectors-old.git
				synced 2024-07-29 22:47:46 +00:00 
			
		
		
		
	Awesome list of DSA Connectors
			
		
		| contracts | ||
| migrations | ||
| .gitignore | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| todo.md | ||
| truffle-config.js | ||
DSA Connectors
Connectors are standardized modules that let Smart Account interact with various smart contracts, and make the important actions accessible to smart accounts.
Add Custom Connectors
- Fork and clone it
- Create a feature branch: git checkout -b new-connector
- Add the connector solidity file to contracts/connectors
- Commit changes: git commit -am 'Added a connector'
- Push to the remote branch: git push origin new-connector
- Create a new Pull Request.
Requirements
- 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 address(this)instead ofmsg.senderfor fetching balance on-chain, etc.
- If needed, add getId&setId, two additional parameter for external public facing functions to fetch or store values.
- Use getUint()orsetUint()functions to fetch or store values.
- Call emitEvent()after every external public facing functions to follow a common event standard for better analytics.
Check out mock.sol for reference.
Support
If you can't find something you're looking for or have any questions, ask them at our developers community on Telegram, Discord or simply send an Email.
