Follow the instructions illustrated in the README.
- The ledger canister is deployed through the
default
account, which is granted a big amount of funds on deployment. Thetransfer
function needs to be called bydefault
account in order to give a specified amount of ICPs to a specified account. You can look at the required parameters fortransfer
method inside thebid
andcloseAuction
methods. Pay attention at the fact thatfrom_subaccount
andto
fields are not of typePrincipal
, but of typeBlob
. You will have to retrieve that Blob by calling the backend methodgetAccountId
from cli. Then you will have to call ledger methodtransfer
with the required args. - Pay attention to the TODOs inside
bid
function. Maybe we need to find a way to call ledger canister from frontend (assuming the secondtransfer
call inbid
does not work), but I couldn't find anything about this online. - Check the files in
scripts
to check how ledger is built. Also checkMarkdown
.
Look at the latest URLs pinned on dfinity dev slack channel.