You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.8 KiB
51 lines
1.8 KiB
<html>
|
|
<head>
|
|
<title>E2E Test Dapp</title>
|
|
</head>
|
|
<body>
|
|
<div style="display: flex; flex-flow: column;">
|
|
<div style="display: flex; font-size: 1.25rem;">Contract</div>
|
|
<div style="display: flex;">
|
|
<button id="deployButton">Deploy Contract</button>
|
|
<button id="depositButton">Deposit</button>
|
|
<button id="withdrawButton">Withdraw</button>
|
|
</div>
|
|
<div id="contractStatus" style="display: flex; font-size: 1rem;">
|
|
Not clicked
|
|
</div>
|
|
</div>
|
|
<div style="display: flex; flex-flow: column;">
|
|
<div style="display: flex; font-size: 1.25rem;">Send eth</div>
|
|
<div style="display: flex;">
|
|
<button id="sendButton">Send</button>
|
|
</div>
|
|
</div>
|
|
<div style="display: flex; flex-flow: column;">
|
|
<div style="display: flex; font-size: 1.25rem;">Send tokens</div>
|
|
<div id="tokenAddress"></div>
|
|
<div style="display: flex;">
|
|
<button id="createToken">Create Token</button>
|
|
<button id="transferTokens">Transfer Tokens</button>
|
|
<button id="approveTokens">Approve Tokens</button>
|
|
<button id="transferTokensWithoutGas">Transfer Tokens Without Gas</button>
|
|
<button id="approveTokensWithoutGas">Approve Tokens Without Gas</button>
|
|
</div>
|
|
</div>
|
|
<div style="display: flex; flex-flow: column;">
|
|
<div>Network: <div id="network"></div></div>
|
|
<div>ChainId: <div id="chainId"></div></div>
|
|
<div>Accounts: <div id="accounts"></div></div>
|
|
<div style="display: flex;">
|
|
</div>
|
|
<div style="display: flex; flex-flow: column;">
|
|
<div style="display: flex; font-size: 1.25rem;">Sign Typed Data</div>
|
|
<div style="display: flex;">
|
|
<button id="signTypedData">Sign</button>
|
|
<div>Sign Typed Data Result: <div id="signTypedDataResult"></div></div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="contract.js"></script>
|
|
</body>
|
|
|
|
</html> |