Skip to content

Commit

Permalink
Shaders: Explorer/parser updated (blackhole)
Browse files Browse the repository at this point in the history
  • Loading branch information
valdok committed Mar 19, 2024
1 parent 0c1a424 commit 786b7da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bvm/Shaders/Explorer/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ namespace Testnet {
#include "../dao-core-testnet/contract.h"
}
#include "../minter/contract.h"
#include "../blackhole/contract.h"

template <uint32_t nMaxLen>
void DocAddTextLen(const char* szID, const void* szValue, uint32_t nLen)
Expand Down Expand Up @@ -196,6 +197,7 @@ void DocAddPerc(const char* sz, MultiPrecision::Float x, uint32_t nDigsAfterDot
macro(Faucet, Faucet::s_SID) \
macro(Faucet2, Faucet2::s_SID) \
macro(Minter, Minter::s_SID) \
macro(BlackHole, BlackHole::s_SID) \

#define HandleContractsVer(macro) \
macro(Oracle2, Oracle2::s_pSID) \
Expand Down Expand Up @@ -2223,6 +2225,19 @@ void ParserContext::OnState_Minter()
// TODO - tokens list
}

void ParserContext::OnMethod_BlackHole()
{
switch (m_iMethod)
{
case BlackHole::Method::Deposit::s_iMethod:
OnMethod("Deposit");
break;
}
}

void ParserContext::OnState_BlackHole()
{
}

void ParserContext::WriteAmmSettings(const Amm::Settings& stg)
{
Expand Down
Binary file modified bvm/Shaders/Explorer/Parser.wasm
Binary file not shown.

0 comments on commit 786b7da

Please sign in to comment.