wallet tron transactions

This commit is contained in:
cano
2024-03-25 06:15:36 +08:00
parent 4b8f205e86
commit 489090382f
83 changed files with 5424 additions and 1343 deletions

View File

@ -0,0 +1,23 @@
<?php
namespace App\Cache\Key;
use App\Cache\Base\KeyBaseCache;
class TronKeyCache extends KeyBaseCache
{
protected string $prefix = 'WalletTronKeyCache:'; //缓存前缀
const NOW_BLOCK = 'nowBlock'; //当前区块
function setNowBlock(string $block): bool
{
return $this->setKey(self::NOW_BLOCK, $block);
}
function getNowBlock(): bool|array|string|null
{
return $this->getByKey(self::NOW_BLOCK);
}
}