Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Changed the wasm binary output destination #145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ dev-account.env
.cache/

# ignore contract build files
build/release
out
2 changes: 1 addition & 1 deletion asconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "near-sdk-as/asconfig.json",
"options": {
"measure": true,
"binaryFile": "./build/release/contract.wasm"
"binaryFile": "./out/main.wasm"
}
}
40 changes: 40 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
</head>
<body style="background: #fff">
<div class="container">
<h1>Hello, you have got a token!</h1>

<div class="sign-in" style="display: none;">
<p>You'll need to sign in to call contract methods:</p>
<button class="btn btn-primary">Sign In</button>
</div>

<div class="after-sign-in" style="display: none;">
<p>Here is how you use can use it from JavaScript.</p>

<p>To init:</p>
<pre>
await contract.init({initialOwner: walletAccount.getAccountId()})
</pre>

<p>To check your balance:</p>
<pre>
await contract.balanceOf({tokenOwner: walletAccount.getAccountId()})
</pre>

<p>To send money:</p>
<pre>
await contract.transfer({to: 'bob.near', tokens: '1000'})
</pre>
</div>
<div class="after-sign-in sign-out" style="display: none;">
<button class="btn btn-primary">Sign Out</button>
</div>
</div>
<script src="/main.1f19ae8e.js"></script>
</body>
</html>
Loading