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,305 @@
<?php
namespace App\Bean\Model\Wallet\Platform;
use App\Bean\Model\Base\BaseBean;
class WalletPlatformBalanceTransactionBean extends BaseBean
{
protected $id;
protected $sn;
protected $type;
protected $status;
protected $platform_id;
protected $balance_id;
protected $currency_code;
protected $block_transaction_id;
protected $bind_wallet_address_id;
protected $bind_wallet_address;
protected $from_wallet_address_id;
protected $from_wallet_address;
protected $to_wallet_address_id;
protected $to_wallet_address;
protected $uid;
protected $amount = 0;
protected $fee_amount = 0;
protected $before_total_amount;
protected $after_total_amount;
protected $remark;
protected $source_wallet_id;
protected $callback_time;
protected $callback_wallet_address_transaction_id;
protected $is_notify;
protected $created_at;
protected $updated_at;
public function getId()
{
return $this->id;
}
public function setId($id): void
{
$this->id = $id;
}
public function getSn()
{
return $this->sn;
}
public function setSn($sn): void
{
$this->sn = $sn;
}
public function getBindWalletAddressId()
{
return $this->bind_wallet_address_id;
}
public function setBindWalletAddressId($bind_wallet_address_id): void
{
$this->bind_wallet_address_id = $bind_wallet_address_id;
}
public function getBindWalletAddress()
{
return $this->bind_wallet_address;
}
public function setBindWalletAddress($bind_wallet_address): void
{
$this->bind_wallet_address = $bind_wallet_address;
}
public function getFromWalletAddressId()
{
return $this->from_wallet_address_id;
}
public function setFromWalletAddressId($from_wallet_address_id): void
{
$this->from_wallet_address_id = $from_wallet_address_id;
}
public function getFromWalletAddress()
{
return $this->from_wallet_address;
}
public function setFromWalletAddress($from_wallet_address): void
{
$this->from_wallet_address = $from_wallet_address;
}
public function getToWalletAddressId()
{
return $this->to_wallet_address_id;
}
public function setToWalletAddressId($to_wallet_address_id): void
{
$this->to_wallet_address_id = $to_wallet_address_id;
}
public function getToWalletAddress()
{
return $this->to_wallet_address;
}
public function setToWalletAddress($to_wallet_address): void
{
$this->to_wallet_address = $to_wallet_address;
}
public function getCallbackWalletAddressTransactionId()
{
return $this->callback_wallet_address_transaction_id;
}
public function setCallbackWalletAddressTransactionId($callback_wallet_address_transaction_id): void
{
$this->callback_wallet_address_transaction_id = $callback_wallet_address_transaction_id;
}
public function getUid()
{
return $this->uid;
}
public function setUid($uid): void
{
$this->uid = $uid;
}
public function getSourceWalletId()
{
return $this->source_wallet_id;
}
public function setSourceWalletId($source_wallet_id): void
{
$this->source_wallet_id = $source_wallet_id;
}
public function getBalanceId()
{
return $this->balance_id;
}
public function setBalanceId($balance_id): void
{
$this->balance_id = $balance_id;
}
public function getType()
{
return $this->type;
}
public function setType($type): void
{
$this->type = $type;
}
public function getStatus()
{
return $this->status;
}
public function setStatus($status): void
{
$this->status = $status;
}
public function getPlatformId()
{
return $this->platform_id;
}
public function setPlatformId($platform_id): void
{
$this->platform_id = $platform_id;
}
public function getCurrencyCode()
{
return $this->currency_code;
}
public function setCurrencyCode($currency_code): void
{
$this->currency_code = $currency_code;
}
public function getBlockTransactionId()
{
return $this->block_transaction_id;
}
public function setBlockTransactionId($block_transaction_id): void
{
$this->block_transaction_id = $block_transaction_id;
}
public function getFeeAmount()
{
return $this->fee_amount;
}
public function setFeeAmount($fee_amount): void
{
$this->fee_amount = $fee_amount;
}
public function getAmount()
{
return $this->amount;
}
public function setAmount($amount): void
{
$this->amount = $amount;
}
public function getBeforeTotalAmount()
{
return $this->before_total_amount;
}
public function setBeforeTotalAmount($before_total_amount): void
{
$this->before_total_amount = $before_total_amount;
}
public function getAfterTotalAmount()
{
return $this->after_total_amount;
}
public function setAfterTotalAmount($after_total_amount): void
{
$this->after_total_amount = $after_total_amount;
}
public function getRemark()
{
return $this->remark;
}
public function setRemark($remark): void
{
$this->remark = $remark;
}
public function getCallbackTime()
{
return $this->callback_time;
}
public function setCallbackTime($callback_time): void
{
$this->callback_time = $callback_time;
}
public function getIsNotify()
{
return $this->is_notify;
}
public function setIsNotify($is_notify): void
{
$this->is_notify = $is_notify;
}
public function getCreatedAt()
{
return $this->created_at;
}
public function setCreatedAt($created_at): void
{
$this->created_at = $created_at;
}
public function getUpdatedAt()
{
return $this->updated_at;
}
public function setUpdatedAt($updated_at): void
{
$this->updated_at = $updated_at;
}
}

View File

@ -0,0 +1,79 @@
<?php
namespace App\Bean\Model\Wallet\Tron;
use App\Bean\Model\Base\BaseBean;
class WalletTronBlockBean extends BaseBean
{
protected $id;
protected $status;
protected $block_id;
protected $block_num;
protected $block_timestamp;
protected $created_at;
public function getId()
{
return $this->id;
}
public function setId($id): void
{
$this->id = $id;
}
public function getStatus()
{
return $this->status;
}
public function setStatus($status): void
{
$this->status = $status;
}
public function getBlockId()
{
return $this->block_id;
}
public function setBlockId($block_id): void
{
$this->block_id = $block_id;
}
public function getBlockNum()
{
return $this->block_num;
}
public function setBlockNum($block_num): void
{
$this->block_num = $block_num;
}
public function getBlockTimestamp()
{
return $this->block_timestamp;
}
public function setBlockTimestamp($block_timestamp): void
{
$this->block_timestamp = $block_timestamp;
}
public function getCreatedAt()
{
return $this->created_at;
}
public function setCreatedAt($created_at): void
{
$this->created_at = $created_at;
}
}

View File

@ -0,0 +1,124 @@
<?php
namespace App\Bean\Model\Wallet\Wallet;
use App\Bean\Model\Base\BaseBean;
class WalletAddressBean extends BaseBean
{
protected $id;
protected $use_status;
protected $currency_code;
protected $balance;
protected $address_hex;
protected $address_base58;
protected $private_key;
protected $remark;
protected $created_at;
protected $updated_at;
public function getId()
{
return $this->id;
}
public function setId($id): void
{
$this->id = $id;
}
public function getUseStatus()
{
return $this->use_status;
}
public function setUseStatus($use_status): void
{
$this->use_status = $use_status;
}
public function getCurrencyCode()
{
return $this->currency_code;
}
public function setCurrencyCode($currency_code): void
{
$this->currency_code = $currency_code;
}
public function getBalance()
{
return $this->balance;
}
public function setBalance($balance): void
{
$this->balance = $balance;
}
public function getAddressHex()
{
return $this->address_hex;
}
public function setAddressHex($address_hex): void
{
$this->address_hex = $address_hex;
}
public function getAddressBase58()
{
return $this->address_base58;
}
public function setAddressBase58($address_base58): void
{
$this->address_base58 = $address_base58;
}
public function getPrivateKey()
{
return $this->private_key;
}
public function setPrivateKey($private_key): void
{
$this->private_key = $private_key;
}
public function getRemark()
{
return $this->remark;
}
public function setRemark($remark): void
{
$this->remark = $remark;
}
public function getCreatedAt()
{
return $this->created_at;
}
public function setCreatedAt($created_at): void
{
$this->created_at = $created_at;
}
public function getUpdatedAt()
{
return $this->updated_at;
}
public function setUpdatedAt($updated_at): void
{
$this->updated_at = $updated_at;
}
}

View File

@ -0,0 +1,169 @@
<?php
namespace App\Bean\Model\Wallet\Wallet;
use App\Bean\Model\Base\BaseBean;
class WalletAddressTransactionBean extends BaseBean
{
protected $id;
protected $currency_code;
protected $type;
protected $wallet_address_id;
protected $amount;
protected $block_transaction_id;
protected $block_number;
protected $block_event_name;
protected $block_from_address;
protected $block_to_address;
protected $block_value;
protected $block_timestamp;
protected $created_at;
protected $is_notify;
public function getId()
{
return $this->id;
}
public function setId($id): void
{
$this->id = $id;
}
public function getCurrencyCode()
{
return $this->currency_code;
}
public function setCurrencyCode($currency_code): void
{
$this->currency_code = $currency_code;
}
public function getType()
{
return $this->type;
}
public function setType($type): void
{
$this->type = $type;
}
public function getWalletAddressId()
{
return $this->wallet_address_id;
}
public function setWalletAddressId($wallet_address_id): void
{
$this->wallet_address_id = $wallet_address_id;
}
public function getAmount()
{
return $this->amount;
}
public function setAmount($amount): void
{
$this->amount = $amount;
}
public function getBlockTransactionId()
{
return $this->block_transaction_id;
}
public function setBlockTransactionId($block_transaction_id): void
{
$this->block_transaction_id = $block_transaction_id;
}
public function getBlockNumber()
{
return $this->block_number;
}
public function setBlockNumber($block_number): void
{
$this->block_number = $block_number;
}
public function getBlockEventName()
{
return $this->block_event_name;
}
public function setBlockEventName($block_event_name): void
{
$this->block_event_name = $block_event_name;
}
public function getBlockFromAddress()
{
return $this->block_from_address;
}
public function setBlockFromAddress($block_from_address): void
{
$this->block_from_address = $block_from_address;
}
public function getBlockToAddress()
{
return $this->block_to_address;
}
public function setBlockToAddress($block_to_address): void
{
$this->block_to_address = $block_to_address;
}
public function getBlockValue()
{
return $this->block_value;
}
public function setBlockValue($block_value): void
{
$this->block_value = $block_value;
}
public function getBlockTimestamp()
{
return $this->block_timestamp;
}
public function setBlockTimestamp($block_timestamp): void
{
$this->block_timestamp = $block_timestamp;
}
public function getCreatedAt()
{
return $this->created_at;
}
public function setCreatedAt($created_at): void
{
$this->created_at = $created_at;
}
public function getIsNotify()
{
return $this->is_notify;
}
public function setIsNotify($is_notify): void
{
$this->is_notify = $is_notify;
}
}

View File

@ -0,0 +1,79 @@
<?php
namespace App\Bean\Model\Wallet\Wallet;
use App\Bean\Model\Base\BaseBean;
class WalletPlatformBindBean extends BaseBean
{
protected $id;
protected $platform_id;
protected $wallet_address_id;
protected $currency_code;
protected $uid;
protected $created_at;
public function getId()
{
return $this->id;
}
public function setId($id): void
{
$this->id = $id;
}
public function getPlatformId()
{
return $this->platform_id;
}
public function setPlatformId($platform_id): void
{
$this->platform_id = $platform_id;
}
public function getWalletAddressId()
{
return $this->wallet_address_id;
}
public function setWalletAddressId($wallet_address_id): void
{
$this->wallet_address_id = $wallet_address_id;
}
public function getCurrencyCode()
{
return $this->currency_code;
}
public function setCurrencyCode($currency_code): void
{
$this->currency_code = $currency_code;
}
public function getUid()
{
return $this->uid;
}
public function setUid($uid): void
{
$this->uid = $uid;
}
public function getCreatedAt()
{
return $this->created_at;
}
public function setCreatedAt($created_at): void
{
$this->created_at = $created_at;
}
}