-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.flow
executable file
·39 lines (26 loc) · 1.34 KB
/
init.flow
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
#!/bin/bash
echo Starting emulator and wallet-dev services
docker-compose -f /code/wallet/docker-compose.yml up -d
sleep 2
echo Deploying flow project with default addresses to emulator chain
flow project deploy --network=emulator
SELLER_ADDRESS=0x179b6b1cb6755e31
echo Seller Address: $SELLER_ADDRESS
# echo Create FUSD Minter for service account
# flow transactions send cadence/transactions/CreateFUSDMinter.cdc
echo Create MyW Vault for Service Account
flow transactions send cadence/transactions/SetupMyWVault.txn.cdc
echo Service Account:
flow accounts get f8d6e0586b0a20c7 |grep Contract
echo Seller Account:
flow accounts get $SELLER_ADDRESS |grep Contract
echo Create MyW Vault for Seller Account
flow transactions send cadence/transactions/SetupMyWVault.txn.cdc --signer Seller
echo "Send 10,000 MyW for Seller ($SELLER_ADDRESS)"
flow transactions send cadence/transactions/SendMyWToken.txn.cdc 10000.00 $SELLER_ADDRESS
echo "Setup MyWArt Collection ($SELLER_ADDRESS)"
flow transactions send cadence/transactions/InitMyWArtCollection.txn.cdc --signer Seller
# echo "Send 10,000 MyW for Account B $SELLER_ADDRESS"
# flow transactions send cadence/transactions/SendMyWToken.txn.cdc 10000.00 $ACCOUNT_B
# echo "Mint test MyWArt ($SELLER_ADDRESS)"
# flow transactions send cadence/transactions/MintMyWArt.txn.cdc 0xf8d6e0586b0a20c7 --signer Seller