3. Deposit
If you successfully deposited some tokens, they will be locked into DepositContract, and the contract will mint the corresponding, equivalent amount of tokens that will be used in Plasma.
3-1. Implement deposit
You can call the deposit
function from the plasma light client.
The users can simply deposit tokens into Plasma just by invoking this function.
Plasma Light Client API reference | deposit
3-2. Add deposit function to the CLI
In order to enable invoking deposit
function from the CLI Wallet, write a process to execute the deposit
function when the deposit is entered in ReadLine.
3-3. Deposit your ether
Launch the CLI Wallet and deposit your Ether into Plasma!
Start the app with the node command and try deposit <amount>
.
* At this time, the unit is wei.
Current source code
Click here
Go to the next step!
You have now deposited your Ether to Plasma.
Let's see if your deposit was successfully completed, by checking your balance.
Move on to the 4. Show balance step.