-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
132 lines (114 loc) · 4.72 KB
/
index.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
</head>
<body>
<div>
<h2>Log In</h2>
<button id="connect">Conectar con Metamask</button>
<div>Connectada con cuenta: <span id="walletId"></span></div>
</div>
</br>
<h2>Balances de USDC y BBTKN</h2>
<div>
<label for="usdcBalance">USD Coin Balance:</label>
<span id="usdcBalance"></span>
<button id="usdcUpdate">Refresh</button>
</div>
<div>
<label for="bbitesTknBalance">BBites Token Balance:</label>
<span id="bbitesTknBalance"></span>
<button id="bbitesTknUpdate">Refresh</button>
</div>
</br>
<h2>Approves (USDC y BBToken) en Goerli</h2>
<div>
<label for="approveInput">Approve BBites Token a Public Sale</label>
<input type="text" id="approveInput" name="approveInput" placeholder="# BBtokens to approve">
<button id="approveButtonBBTkn">Approve</button>
<span id="approveError" style="color: red;"></span>
</div>
</br>
<div>
<label for="approveInputUSDC">Approve USDC a Public Sale</label>
<input type="text" id="approveInputUSDC" name="approveInputUSDC" placeholder="# USDC to approve">
<button id="approveButtonUSDC">Approve</button>
<span id="approveErrorUSDC" style="color: red;"></span>
</div>
</br>
<h2>Comprando NFTs en Public Sale en Goerli</h2>
<div>
<label for="purchaseInput">Purchase By Id with BBites tokens (0 - 699)</label>
<input type="text" id="purchaseInput" name="purchaseInput" placeholder="NFT id">
<button id="purchaseButton">Purchase</button>
<span id="purchaseError" style="color: red;"></span>
</div>
</br>
<div>
<label for="purchaseInputUSDC">Purchase By Id with USDC (0 - 699)</label>
<input type="number" id="purchaseInputUSDC" name="purchaseInputUSDC" placeholder="NFT id">
<input type="number" id="amountInUSDCInput" name="amountInUSDCInput" placeholder="UDSC amount in">
<button id="purchaseButtonUSDC">Purchase</button>
<span id="purchaseErrorUSDC" style="color: red;"></span>
</div>
</br>
<div>
<label for="purchaseInputEtherId">Purchase By Id With Ether (700 - 999)</label>
<input type="text" id="purchaseInputEtherId" name="purchaseInputEtherId" placeholder="NFT id">
<button id="purchaseButtonEtherId">Purchase</button>
<span id="purchaseEtherIdError" style="color: red;"></span>
</div>
</br>
<div>
<label for="sendEtherInput">Send Ether to Public Sale (random 700 - 999)</label>
<button id="sendEtherButton">Send</button>
<span id="sendEtherError" style="color: red;"></span>
</div>
</br>
<div>
<label for="priceNftIdInput">Consult NFT price by id</label>
<input type="number" id="priceNftIdInput" name="priceNftIdInput" placeholder="NFT id">
<button id="getPriceNftByIdBttn">Get Price</button>
<span id="priceNftByIdText"></span>
<span id="getPriceNftError" style="color: red;"></span>
</div>
</br>
<h2>Acuñando de whitelist en NFT Contract en Mumbai</h2>
<div>
<label for="priceNftIdInput">Get proofs for id and account:</label>
<input type="number" id="inputIdProofId" name="inputIdProof" placeholder="NFT id">
<input type="text" id="inputAccountProofId" name="inputAccountProof" placeholder="Account">
<button id="getProofsButtonId">Print and Copy To Clipboard</button>
<span id="showProofsTextId"></span>
</div>
</br>
<div>
<label for="priceNftIdInput">Mint with Whitelist:</label>
<input type="text" id="whiteListToInputId" name="whiteListToInput" placeholder="to">
<input type="number" id="whiteListToInputTokenId" name="whiteListToInputToken" placeholder="tokenId">
<input type="text" id="whiteListToInputProofsId" name="whiteListToInputProofs" placeholder="proofs">
<button id="safeMintWhiteListBttnId">Safe Mint</button>
<span id="whiteListErrorId" style="color: red;"></span>
</div>
</br>
<div>
<label for="buyBackInputId">Buy Back and Burn NFT:</label>
<input type="number" id="buyBackInputId" name="buyBackInput" placeholder="NFT id">
<button id="buyBackBttn">Buy Back and Burn</button>
<span id="buyBackErrorId" style="color: red;"></span>
</div>
</br>
<h2>Eventos</h2>
<h3>Contrato Public Sale (Goerli)</h3>
<div id="pubSList"></div>
<h3>Contrato BBites Token (Goerli)</h3>
<div id="bbitesTList"></div>
<h3>Contrato NFT (Mumbai) </h3>
<div id="nftList"></div>
<div id="burnList"></div>
</body>
</html>