isERC1155BatchDeposit
Checks if a request is a ERC-1155 deposit coming from the ERC1155BatchPortal
smart contract.
Usage
import { createApp } from "@deroll/app";
import { isERC1155BatchDeposit, parseERC1155BatchDeposit } from "@deroll/wallet";
// create app
const app = createApp({ url: "http://127.0.0.1:5004" });
app.addAdvanceHandler(async (data) => {
if (isERC1155BatchDeposit(data)) {
const deposit = parseERC1155BatchDeposit(data.payload);
deposit.sendertokentokenIdsvalues
}
return "accept";
});
Returns
Type: boolean
True if request is a ERC-1155 deposit from the ERC1155BatchPortal
smart contract.
Parameters
Type: AdvanceRequestData