forked from critesjosh/helloCelo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helloCelo.js
52 lines (42 loc) · 1.03 KB
/
helloCelo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// Add package imports and setup here
//
// 1. Import ContractKit
// 2. Init a new kit, connected to the alfajores testnet
//
// Read Accounts
//
async function readAccount(){
// 3. Get the token contract wrappers
// 4. Address to look up
// 5. Get Get token balances
// Print balances
}
//
// Create an Account
//
// 6. Import the getAccount function
async function createAccount(){
// 7. Get your account
// 8. Get the token contract wrappers
// 9. Get your token balances
// Print your account info
}
//
// Send CELO
//
async function send(){
// 10. Get your account
// 11. Add your account to ContractKit to sign transactions
// 12. Specify recipient Address
// 13. Specify an amount to send
// 14. Get the token contract wrappers
// 15. Transfer CELO and cUSD from your account to anAddress
// 16. Wait for the transactions to be processed
// 17. Print receipts
// 18. Get your new balances
// 19. Print new balances
}
readAccount()
createAccount()
send()