Skip to content

Commit

Permalink
Minor fix in vmt.md (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur authored Oct 22, 2024
1 parent ba1d02f commit b723ba5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/examples/Standards/vmt.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ The VMT service includes the following functions:
- `TransferFrom(from, to, id, amount)`
- `BatchTransferFrom(from, to, ids, amounts)`
- `BalanceOf(account, id)`
- `BalanceOfBatch(accounts, ids)`
- `IsApproved(account, operator)`
- `Name()`
- `Symbol()`
Expand Down Expand Up @@ -81,6 +82,14 @@ Returns the balance of tokens for a given account and token ID.
pub fn balance_of(&self, account: ActorId, id: TokenId) -> U256
```

#### `BalanceOfBatch`

Returns the balances of tokens for the specified accounts and token IDs.

```rust
pub fn balance_of_batch(&self, accounts: Vec<ActorId>, id: Vec<TokenId>) -> Vec<U256>
```

#### `IsApproved`

Checks if a specific operator is approved to manage the tokens of the `account`.
Expand Down Expand Up @@ -288,6 +297,7 @@ service Vmt {
query Burners : () -> vec actor_id;
query Minters : () -> vec actor_id;
query BalanceOf : (account: actor_id, id: u256) -> u256;
query BalanceOfBatch : (accounts: vec actor_id, ids: vec u256) -> vec u256;
query Decimals : () -> u8;


Expand Down

0 comments on commit b723ba5

Please sign in to comment.