This issue corresponds to the Transfer funds transaction type inside the "Control safe" dialog. In order to make the transaction, we are going to use a bridge to execute the transactions across chains. The Safe Core SDK may still be needed to get the balance and tokens of the safe (Which needs to be investigated further).
The transaction is expected to work for cross-chain safes/contracts.
Implementation
This issue is complete when...
[x] Clicking the max button in the amount input fills the field with the balance of the safe.
[x] The token selector only has tokens available in the safe.
[ ] Submitting the form creates a correct transaction/many transactions (in the case of a multi transaction) that can be viewed, approved, rejected, executed, etc.
Steps to get the dev env ready for testing transactions:
0. Have your normal dev env already running.
1. cd src/lib/colonyNetwork
2. git fetch
3. git checkout maint/cross-chain-safe
4. git submodule update --init
5. yarn
6. yarn provision:safe:contracts
7. cd lib/safe-contracts then yarn
8. cd ../.. (back into colonyNetwork)
9. bash scripts/start-bridging-environment.sh
10. node scripts/start-bridging-environment.js
You'll see this in the console if the steps were run successfully:
Description
This issue corresponds to the
Transfer funds
transaction type inside the "Control safe" dialog. In order to make the transaction, we are going to use a bridge to execute the transactions across chains. The Safe Core SDK may still be needed to get the balance and tokens of the safe (Which needs to be investigated further).The transaction is expected to work for cross-chain safes/contracts.
Implementation
This issue is complete when...
[x] Clicking the max button in the amount input fills the field with the balance of the safe.
[x] The token selector only has tokens available in the safe.
[ ] Submitting the form creates a correct transaction/many transactions (in the case of a multi transaction) that can be viewed, approved, rejected, executed, etc.
Steps to get the dev env ready for testing transactions:
You'll see this in the console if the steps were run successfully:
Suggestions