Now we will stake EOS for CPU/NET so that we can run transactions.
# below amounts use 100 EOS total
cleos -u $JUNGLE_ENDPOINT system delegatebw $JUNGLE_ACCOUNT$JUNGLE_ACCOUNT"35.0000 EOS""65.0000 EOS" -p $JUNGLE_ACCOUNT@active
Now unfortunately this isn't enough EOS to set the smart contract. We need to buy RAM, but the faucet only allows 1 use per 6 hours, so what do we do? We create 3 more accounts, send the faceted EOS to our account, and buy that RAM. Let's go.
Create more accounts
Create 3 more accounts using the same public key as before here
If the trx by some miracle goes through, skip toBuy more resources.
If you get Error 3080004: Transaction exceeded the current CPU usage limit imposed on the transaction then you will need to stake some of the CPU first (5 EOS of the 100 you got) then send the remaining CPU (95 from the 5 you're about to stake).
cleos -u $JUNGLE_ENDPOINT system delegatebw $GENEROUS_JUNGLE_ACCOUNT$GENEROUS_JUNGLE_ACCOUNT"0.0000 EOS""5.0000 EOS" -p $GENEROUS_JUNGLE_ACCOUNT@active
Adjust transfer amount, from, and actor to:
Buy More Resources
Now we will buy 285 EOS worth of RAM.
cleos -u $JUNGLE_ENDPOINT system buyram $JUNGLE_ACCOUNT$JUNGLE_ACCOUNT"285.0000 EOS" -p $JUNGLE_ACCOUNT@active
Set eosio.code permission
eosio.code allows a smart contract to sign actions itself, we will set this up under the active permission level.
cleos -u $JUNGLE_ENDPOINTset account permission $JUNGLE_ACCOUNT active $JUNGLE_ACCOUNT --add-code
If you still don't have enough CPU/NET, repeat the process and delegate more CPU/NET