Skip to content

Commit

Permalink
deploy: 99f0623
Browse files Browse the repository at this point in the history
  • Loading branch information
github-merge-queue[bot] committed Jul 15, 2024
1 parent bd6a5ab commit 77d29a6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions api.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ <h2 id="events"><a class="header" href="#events">Events</a></h2>
Pause: PauseEvent,
Mint: MintEvent,
Burn: BurnEvent,
Transfer: TransferEvent,
BalanceChange: BalanceChangeEvent,
}

export class SetAdminEvent extends Struct({
Expand All @@ -242,15 +242,15 @@ <h2 id="events"><a class="header" href="#events">Events</a></h2>
amount: UInt64,
}) {}

class TransferEvent extends Struct({
from: PublicKey,
to: PublicKey,
amount: UInt64,
export class BalanceChangeEvent extends Struct({
address: PublicKey,
amount: Int64,
}) {}
</code></pre>
<p>Note that <code>approveBase</code> does not emit an event. Thus, transfers where the account updates have been
constructed externally to <code>FungibleToken</code> will not have an event emitted by the <code>FungibleToken</code>
contract.</p>
<p>Note that <code>MintEvent</code>, <code>BurnEvent</code>, and <code>BalanceChangeEvent</code> each signal that the balance of an
account changes. The difference is that <code>MintEvent</code> and <code>BurnEvent</code> are emitted when tokens are
minted/burned, and <code>BalanceChangeEvent</code> is emitted when a transaction takes tokens from some
addresses, and sends them to others.</p>

</main>

Expand Down
16 changes: 8 additions & 8 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ <h2 id="events"><a class="header" href="#events">Events</a></h2>
Pause: PauseEvent,
Mint: MintEvent,
Burn: BurnEvent,
Transfer: TransferEvent,
BalanceChange: BalanceChangeEvent,
}

export class SetAdminEvent extends Struct({
Expand All @@ -318,15 +318,15 @@ <h2 id="events"><a class="header" href="#events">Events</a></h2>
amount: UInt64,
}) {}

class TransferEvent extends Struct({
from: PublicKey,
to: PublicKey,
amount: UInt64,
export class BalanceChangeEvent extends Struct({
address: PublicKey,
amount: Int64,
}) {}
</code></pre>
<p>Note that <code>approveBase</code> does not emit an event. Thus, transfers where the account updates have been
constructed externally to <code>FungibleToken</code> will not have an event emitted by the <code>FungibleToken</code>
contract.</p>
<p>Note that <code>MintEvent</code>, <code>BurnEvent</code>, and <code>BalanceChangeEvent</code> each signal that the balance of an
account changes. The difference is that <code>MintEvent</code> and <code>BurnEvent</code> are emitted when tokens are
minted/burned, and <code>BalanceChangeEvent</code> is emitted when a transaction takes tokens from some
addresses, and sends them to others.</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="deploy"><a class="header" href="#deploy">Deploy</a></h1>
<p>To create a new token, deploy the <code>FungibleToken</code> contract. You will need an admin account as well,
to control permissions. You can either use the supplied contract <code>FungibleTokenAdmin</code>, or write your
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 77d29a6

Please sign in to comment.