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.
69 lines
2.0 KiB
69 lines
2.0 KiB
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>E2E Test Dapp</title>
|
|
<script src="node_modules/@metamask/onboarding/dist/metamask-onboarding.bundle.js" defer></script>
|
|
<script src="contract.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>E2E Test Dapp</h1>
|
|
</header>
|
|
<main>
|
|
<section>
|
|
<h2>Connect</h2>
|
|
<button id="connectButton" disabled></button>
|
|
</section>
|
|
<section>
|
|
<h2>Contract</h2>
|
|
<div>
|
|
<button id="deployButton" disabled>Deploy Contract</button>
|
|
<button id="depositButton" disabled>Deposit</button>
|
|
<button id="withdrawButton" disabled>Withdraw</button>
|
|
</div>
|
|
<div>
|
|
Contract Status: <span id="contractStatus">Not clicked</span>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<h2>Send Eth</h2>
|
|
<button id="sendButton" disabled>Send</button>
|
|
</section>
|
|
<section>
|
|
<h2>Send Tokens</h2>
|
|
<div>
|
|
Token: <span id="tokenAddress"></span>
|
|
</div>
|
|
<div>
|
|
<button id="createToken" disabled>Create Token</button>
|
|
<button id="transferTokens" disabled>Transfer Tokens</button>
|
|
<button id="approveTokens" disabled>Approve Tokens</button>
|
|
<button id="transferTokensWithoutGas" disabled>Transfer Tokens Without Gas</button>
|
|
<button id="approveTokensWithoutGas" disabled>Approve Tokens Without Gas</button>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<h2>Get Accounts</h2>
|
|
<button id="getAccounts">eth_accounts</button>
|
|
<div id="getAccountsResult"></div>
|
|
</section>
|
|
<section>
|
|
<h2>Status</h2>
|
|
<div>
|
|
Network: <span id="network"></span>
|
|
</div>
|
|
<div>
|
|
ChainId: <span id="chainId"></span>
|
|
</div>
|
|
<div>
|
|
Accounts: <span id="accounts"></span>
|
|
</div>
|
|
</section>
|
|
<section>
|
|
<h2>Sign Typed Data</h2>
|
|
<button id="signTypedData" disabled>Sign</button>
|
|
<div>Sign Typed Data Result: <span id="signTypedDataResult"></span></div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|
|
|