From ea0475c322677d5d0641723d62e324f854deb29e Mon Sep 17 00:00:00 2001 From: MedovTimur Date: Wed, 23 Oct 2024 00:17:49 +0300 Subject: [PATCH] minor fix in vmt --- docs/examples/Standards/vmt.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/examples/Standards/vmt.md b/docs/examples/Standards/vmt.md index 93193a3..f71f2cb 100644 --- a/docs/examples/Standards/vmt.md +++ b/docs/examples/Standards/vmt.md @@ -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()` @@ -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, id: Vec) -> Vec +``` + #### `IsApproved` Checks if a specific operator is approved to manage the tokens of the `account`. @@ -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;