@fortmatic/

demo-kitchen-sink

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • constants.js
  • handlers.js
  • init.js
  • logo.svg
  • style.css
  • utils.js

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.26538859705230844","path":"index.html","file":{"path":"index.html","content":{"asEncoding":{"base64":"PCFET0NUWVBFIGh0bWw+CjxodG1sPgoKPGhlYWQ+Cgk8dGl0bGU+RGVtbyBLaXRjaGVuIFNpbms8L3RpdGxlPgoJPG1ldGEgY2hhcnNldD0idXRmLTgiPgoJPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xLCBzaHJpbmstdG8tZml0PW5vIj4KCTxzY3JpcHQgc3JjPSJodHRwczovL2Nkbi5qc2RlbGl2ci5uZXQvZ2gvZXRoZXJldW0vd2ViMy5qc0AxLjAuMC1iZXRhLjM2L2Rpc3Qvd2ViMy5taW4uanMiPjwvc2NyaXB0PgoJPGxpbmsgaHJlZj0ic3R5bGUuY3NzIiByZWw9InN0eWxlc2hlZXQiIHR5cGU9InRleHQvY3NzIiAvPgogIDxzY3JpcHQgc3JjPSJodHRwczovL2Nkbi5qc2RlbGl2ci5uZXQvbnBtL2ZvcnRtYXRpY0AwLjcuNC9kaXN0L2ZvcnRtYXRpYy5qcyI+PC9zY3JpcHQ+CiAgPHNjcmlwdCBzcmM9ImNvbnN0YW50cy5qcyI+PC9zY3JpcHQ+CiAgPHNjcmlwdCBzcmM9InV0aWxzLmpzIj48L3NjcmlwdD4KICA8c2NyaXB0IHNyYz0iaGFuZGxlcnMuanMiPjwvc2NyaXB0PgoJPHNjcmlwdD4KICAgIGxldCBmbSA9IG5ldyBGb3J0bWF0aWMoJ3BrX2xpdmVfRjk1RkVFQ0IxQkUzMjRCNScpOwogICAgd2ViMyA9IG5ldyBXZWIzKGZtLmdldFByb3ZpZGVyKCkpOwoJPC9zY3JpcHQ+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D50bzwvbGFiZWw+CiAgICAgICAgICA8aW5wdXQgdHlwZT0idGV4dCIgbmFtZT0idG8iIHBsYWNlaG9sZGVyPSJ0byIgLz4KICAgICAgICAgIDxhIGNsYXNzPSJidG4iIG9uY2xpY2s9ImhhbmRsZUNvbXBvc2VUcmFuc2FjdGlvbih0aGlzKSI+U2VuZCBUcmFuc2FjdGlvbjwvYT4KICAgICAgICA8L2Rpdj4KICAgICAgPC9kaXY+CiAgICAgIDxkaXYgY2xhc3M9Im1ldGhvZCI+CiAgICAgICAgPGgzIGlkPSJmb3J0bWF0aWMtZGVwb3NpdCI+Rm9ydG1hdGljOiBEZXBvc2l0PC9oMz4KICAgICAgICA8cCBjbGFzcz0iZGVzY3JpcHRpb24iPgogICAgICAgICAgUHJvbXB0IHVzZXJzIHRoZWlyIFFSIGNvZGUgYW5kIEV0aGVyZXVtIHdhbGxldCBhZGRyZXNzIGZvciBkZXBvc2l0cy4KICAgICAgICA8L3A+CiAgICAgICAgPGRpdiBjbGFzcz0iZGl2aWRlciI+PC9kaXY+CiAgICAgICAgPGRpdiBjbGFzcz0iYWN0aW9uIj4KICAgICAgICAgIDxhIGNsYXNzPSJidG4iIG9uY2xpY2s9ImhhbmRsZURlcG9zaXQodGhpcykiPkRlcG9zaXQ8L2E+CiAgICAgICAgPC9kaXY+CiAgICAgIDwvZGl2PgogICAgPC9kaXY+CiAgPC9kaXY+Cgk8c2NyaXB0IHNyYz0iaW5pdC5qcyI+PC9zY3JpcHQ+CjwvYm9keT4KCjwvaHRtbD4="},"asBuffer":null},"loaded":true}}
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!DOCTYPE html>
<html>

<head>
	<title>Demo Kitchen Sink</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<script src="https://cdn.jsdelivr.net/gh/ethereum/[email protected]/dist/web3.min.js"></script>
	<link href="style.css" rel="stylesheet" type="text/css" />
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/fortmatic.js"></script>
  <script src="constants.js"></script>
  <script src="utils.js"></script>
  <script src="handlers.js"></script>
	<script>
    let fm = new Fortmatic('pk_live_F95FEECB1BE324B5');
    web3 = new Web3(fm.getProvider());
	</script>
</head>

<body>
  <div class="container">
    <div class="menu">
      <img alt="logo" src="logo.svg" />
      <h4>Web3 Methods</h4>
      <div class="list">
        <a href="#eth-send-transaction">Send ETH Transaction</a>
        <a href="#user-authentication">User Authentication</a>
        <a href="#personal-sign">Signing: Personal Sign</a>
        <a href="#sign-typed-data">Signing: Sign Typed Data</a>
      </div>
      <h4>Smart Contract</h4>
      <div class="list">
        <a href="#erc20-transfer">ERC20: Transfer</a>
        <a href="#erc20-approve">ERC20: Approve</a>
        <a href="#erc20-transfer-from">ERC20: TransferFrom</a>
      </div>
      <h4>Custom Methods</h4>
      <div class="list">
        <a href="#fortmatic-compose">Fortmatic: Compose</a>
        <a href="#fortmatic-deposit">Fortmatic: Deposit</a>
      </div>
    </div>
    <div class="methods">
      <div class="method warning">
        All transactions will be made on the mainnet!
      </div>
      <div class="method">
        <h3 id="eth-send-transaction">web3.eth.sendTransaction</h3>
        <p class="description">
          Send a basic Ether transaction to the Ethereum network.
        </p>
        <div class="divider"></div>
        <div class="action">
          <label>value</label>
          <input type="number" name="value" placeholder="value" />
          <label>to</label>
          <input type="text" name="to" placeholder="to" />
          <a class="btn" onclick="handleEthSendTransaction(this)">Send Transaction</a>
        </div>
      </div>
      <div class="method">
        <h3 id="user-authentication">User Authentication</h3>
        <p class="description">
          There are many ways to authenticate an user and get their public address.
        </p>
        <div class="divider"></div>
        <div class="action">
          <a class="btn" onclick="handleGetAccounts()">web3.eth.getAccounts</a>
          <a class="btn" onclick="handleGetCoinbase()">web3.eth.getCoinbase</a>
          <a class="btn" onclick="handleProviderEnable()">EIP-1102: provider.enable()</a>
          <a class="btn" onclick="handleLogoutUser()">Fortmatic: Logout User</a>
        </div>
      </div>
      <div class="method">
        <h3 id="personal-sign">sendAsync: personal_sign</h3>
        <p class="description">
          Signs data using a specific account (Legacy way).
        </p>
        <div class="divider"></div>
        <div class="action">
          <label>message</label>
          <input type="text" name="message" placeholder="message" />
          <a class="btn" onclick="handlePersonalSign(this)">Sign Data</a>
        </div>
      </div>
      <div class="method">
        <h3 id="sign-typed-data">sendAsync: eth_signTypedData</h3>
        <p class="description">
          Signs data using EIP-712.
        </p>
        <div class="divider"></div>
        <div class="action">
          <label>json</label>
          <textarea name="json" rows="12"></textarea>
          <a class="btn" onclick="handleSignTypedData(this)">Sign Data</a>
        </div>
      </div>
      <div class="method">
        <h3 id="erc20-transfer">ERC20: Transfer</h3>
        <p class="description">
          Transfer selected ERC20 token.
        </p>
        <div class="divider"></div>
        <div class="action">
          <label>select token</label>
          <select name="contract-address">
            <option value="0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359">DAI</option>
            <option value="0xe41d2489571d322189246dafa5ebde1f4699f498">ZRX</option>
            <option value="0xB8c77482e45F1F44dE1745F52C74426C631bDD52">BNB</option>
            <option value="0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2">MKR</option>
          </select>
          <label>value</label>
          <input type="number" name="value" placeholder="value" />
          <label>to</label>
          <input type="text" name="to" placeholder="to" />
          <a class="btn" onclick="handleERC20Transfer(this)">Transfer Token</a>
        </div>
      </div>
      <div class="method">
        <h3 id="erc20-approve">ERC20: Approve</h3>
        <p class="description">
          Approve an address to transfer ERC20 token on your behalf.
        </p>
        <div class="divider"></div>
        <div class="action">
          <label>select token</label>
          <select name="contract-address">
            <option value="0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359">DAI</option>
            <option value="0xe41d2489571d322189246dafa5ebde1f4699f498">ZRX</option>
            <option value="0xB8c77482e45F1F44dE1745F52C74426C631bDD52">BNB</option>
            <option value="0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2">MKR</option>
          </select>
          <label>amount</label>
          <input type="number" name="amount" placeholder="amount" />
          <label>address</label>
          <input type="text" name="address" placeholder="address" />
          <a class="btn" onclick="handleERC20Approve(this)">Approve Transfer</a>
        </div>
      </div>
      <div class="method">
        <h3 id="erc20-transfer-from">ERC20: TransferFrom</h3>
        <p class="description">
          Allows an approved address to send tokens from one account to another.
        </p>
        <div class="divider"></div>
        <div class="action">
          <label>select token</label>
          <select name="contract-address">
            <option value="0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359">DAI</option>
            <option value="0xe41d2489571d322189246dafa5ebde1f4699f498">ZRX</option>
            <option value="0xB8c77482e45F1F44dE1745F52C74426C631bDD52">BNB</option>
            <option value="0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2">MKR</option>
          </select>
          <label>value</label>
          <input type="number" name="value" placeholder="value" />
          <label>from</label>
          <input type="text" name="from" placeholder="from" />
          <label>to</label>
          <input type="text" name="to" placeholder="to" />
          <a class="btn" onclick="handleERC20TransferFrom(this)">Send Transfer Request</a>
        </div>
      </div>
      <div class="method">
        <h3 id="fortmatic-compose">Fortmatic: Compose</h3>
        <p class="description">
          Edit and send a transaction to the Ethereum network.
        </p>
        <div class="divider"></div>
        <div class="action">
          <label>value</label>
          <input type="number" name="value" placeholder="value" />
          <label>to</label>
          <input type="text" name="to" placeholder="to" />
          <a class="btn" onclick="handleComposeTransaction(this)">Send Transaction</a>
        </div>
      </div>
      <div class="method">
        <h3 id="fortmatic-deposit">Fortmatic: Deposit</h3>
        <p class="description">
          Prompt users their QR code and Ethereum wallet address for deposits.
        </p>
        <div class="divider"></div>
        <div class="action">
          <a class="btn" onclick="handleDeposit(this)">Deposit</a>
        </div>
      </div>
    </div>
  </div>
	<script src="init.js"></script>
</body>

</html>
result
console