
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@stove-labs/arbitrage-bot-accountant
Advanced tools
This repository is related to the core library of the arbitrage bot.
The accountant is a plugin that retrieves balances for any given native or token contract. This is used to keep track of balance changes before and after arbitrage is performed.
Every token contract follows its own implementation of a token standard. Therefore it is not a viable approach to read the account ballance entry from a ledger Big_map, because we would need to be aware of each and every token implementation.
Tezos token FA1.2 TZIP-7 and FA2TZIP-12 have on-chain view entrypoints that usually get called by other smart contracts to get the total_supply of token_balance for a given account address. The result is returned through an operation as callback to the caller.
Fortunately, recent protocol upgrades on Tezos have provided a way to call those view entrypoints through the node without the need of injecting any on-chain operation when using the run_view endpoint. Taquito SDK abstracts this and makes this feature easily available to dApp developers.
// src/accountant.ts
// FA1.2 getBalance as defined in TZIP-7
await tokenContractInstance.views.getBalance(botAddress).read()
// FA2 balance_of as defined in TZIP-12
await tokenContractInstance.views.balance_of(
[
{ owner: botAddress, token_id: tokenId },
]
).read()
FAQs
accounting for tezos balances
We found that @stove-labs/arbitrage-bot-accountant demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers