forked from TheCardRoomNFT/tcr.mint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuse_cases.txt
More file actions
53 lines (39 loc) · 2.67 KB
/
use_cases.txt
File metadata and controls
53 lines (39 loc) · 2.67 KB
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
53
1. Query Network Status:
> python3 -m tcr.status --network=testnet
> python3 -m tcr.status --network=mainnet
2. Query Wallet Holdings:
The applications know about three different addresses.
* Address Index 0: ROOT, Default address where outputs are sent
* Address Index 1: MINT, Monitor for incoming payments
* Address Index 2: PRESALE, Monitor for presale payments
Display UTXOs for all three known addresses (delegated and undelegated):
> python3 -m tcr.status --network=testnet --wallet=testnet1
3. Transfer ADA (lovelace) from one wallet to another:
> python3 -m tcr.buybot --network=testnet --src=testnet1 --dst=testnet2 --amount=430000000
4. Get the Presale address & confirm by generating whitelist (which should be empty):
> python3 -m tcr.status --network=mainnet --wallet=tcr_mint
> python3 -m tcr.genwhitelist --network=testnet --drop=tn_series_3 --output=whitelist.json
5. Generate a drop:
New drop with random data (seed written to log file):
> python3 -m tcr.nftmint --network=testnet --create-drop=tn_series_3 --policy=tn_policy1
> python3 -m tcr.nftmint --network=mainnet --create-drop=tcr_series_2 --policy=tcr_series_2 --seed=1634027967
Set a seed to recreate a drop:
> python3 -m tcr.nftmint --network=testnet --create-drop=tn_series_3 --policy=tn_policy1 --seed=1634631884
6. Upload images to IPFS via infura.io
For "cards" do this before generating the drop
Updates metadata in series metametadata or nft metadata depending on "cards" or "layers"
> python3 -m tcr.ipfs --network=testnet --drop=tn_series_3 --projectid=<id> --projectsecret=<secret>
7. Transfer some ADA for presale:
> python3 -m tcr.buybot --network=testnet --src=testnet2 --dst=addr_test1qqmd54x5tqlj4mw7rtfjmec40eetjm595kjezyc3mxhthuy75v3zsngxtma9ul5efvwuut80dsgqv76zdu8fc72472hsqqzw0p --amount=9000000
8. Generate the whitelist again:
> python3 -m tcr.genwhitelist --network=testnet --drop=tn_series_3 --output=whitelist.json
9. Mint tokens from the whitelist (and continue to general sale):
> python3 -m tcr.nftmint --network=testnet --mint --whitelist=whitelist.json --drop=tn_series_3
10. Transfer all tokens to another wallet:
> python3 -m tcr.buybot --network=testnet --dst=testnet1 --src=testnet2 --all
11. Burn tokens held by the minting wallet:
> python3 -m tcr.nftmint --network=testnet --burn --policy=tn_policy1 --confirm
12. Refund a payment:
> python3 -m tcr.refund --network=mainnet --src=tcr_mint --utxo=559b16940536fe9b91ab77b391afdb2ed576e3a17179a8cb7acde724e1dd835a
13. Refund another payment:
> python3 -m tcr.refund --network=mainnet --src=tcr_mint --utxo=6c869968950ee4e3469d744e8bd33d58f6c327b6430e11db4e2b42149ae57267