wallet tron transactions
This commit is contained in:
@ -14,6 +14,7 @@ class CustomerWalletBalanceTransactionBean extends BaseBean
|
||||
protected $uid;
|
||||
protected $currency_code = CustomerWalletCurrencyModel::CODE_USDT_TRC20;
|
||||
protected $amount = 0;
|
||||
protected $fee_amount = 0;
|
||||
protected $before_total_amount;
|
||||
protected $after_total_amount;
|
||||
protected $source_params;
|
||||
@ -27,6 +28,17 @@ class CustomerWalletBalanceTransactionBean extends BaseBean
|
||||
protected $created_at;
|
||||
protected $updated_at;
|
||||
|
||||
public function getFeeAmount(): int
|
||||
{
|
||||
return $this->fee_amount;
|
||||
}
|
||||
|
||||
public function setFeeAmount(int $fee_amount): void
|
||||
{
|
||||
$this->fee_amount = $fee_amount;
|
||||
}
|
||||
|
||||
|
||||
public function getTargetPostOrderDisputeId()
|
||||
{
|
||||
return $this->target_post_order_dispute_id;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
79
app/Bean/Model/Wallet/Tron/WalletTronBlockBean.php
Normal file
79
app/Bean/Model/Wallet/Tron/WalletTronBlockBean.php
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
124
app/Bean/Model/Wallet/Wallet/WalletAddressBean.php
Normal file
124
app/Bean/Model/Wallet/Wallet/WalletAddressBean.php
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
169
app/Bean/Model/Wallet/Wallet/WalletAddressTransactionBean.php
Normal file
169
app/Bean/Model/Wallet/Wallet/WalletAddressTransactionBean.php
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
79
app/Bean/Model/Wallet/Wallet/WalletPlatformBindBean.php
Normal file
79
app/Bean/Model/Wallet/Wallet/WalletPlatformBindBean.php
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
25
app/Bean/Queue/QueueBaseBean.php
Normal file
25
app/Bean/Queue/QueueBaseBean.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace App\Bean\Queue;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class QueueBaseBean extends BaseBean
|
||||
{
|
||||
const TRY_LIMIT = 3;
|
||||
protected $try_times = 0;
|
||||
|
||||
public function IncrTryTimes($num = 1): void
|
||||
{
|
||||
$this->try_times += $num;
|
||||
}
|
||||
|
||||
public function checkTryTimes(): bool
|
||||
{
|
||||
if($this->try_times >= self::TRY_LIMIT) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
123
app/Bean/Queue/Wallet/QueueEventBean.php
Normal file
123
app/Bean/Queue/Wallet/QueueEventBean.php
Normal file
@ -0,0 +1,123 @@
|
||||
<?php
|
||||
namespace App\Bean\Queue\Wallet;
|
||||
|
||||
use App\Bean\Queue\QueueBaseBean;
|
||||
use App\Bean\Sdk\Wallet\Tron\EventResultBean;
|
||||
use App\Bean\Sdk\Wallet\Tron\EventResultTypeBean;
|
||||
|
||||
class QueueEventBean extends QueueBaseBean
|
||||
{
|
||||
const QUEUE_NAME = 'queue_wallet_address_transaction';
|
||||
protected $block_number;
|
||||
protected $block_timestamp;
|
||||
protected $caller_contract_address;
|
||||
protected $contract_address;
|
||||
protected $event;
|
||||
protected $event_index;
|
||||
protected $event_name;
|
||||
protected EventResultBean $result;
|
||||
protected EventResultTypeBean $result_type;
|
||||
protected $transaction_id;
|
||||
|
||||
public function getBlockNumber()
|
||||
{
|
||||
return $this->block_number;
|
||||
}
|
||||
|
||||
public function setBlockNumber($block_number): void
|
||||
{
|
||||
$this->block_number = $block_number;
|
||||
}
|
||||
|
||||
public function getBlockTimestamp()
|
||||
{
|
||||
return $this->block_timestamp;
|
||||
}
|
||||
|
||||
public function setBlockTimestamp($block_timestamp): void
|
||||
{
|
||||
$this->block_timestamp = $block_timestamp;
|
||||
}
|
||||
|
||||
public function getCallerContractAddress()
|
||||
{
|
||||
return $this->caller_contract_address;
|
||||
}
|
||||
|
||||
public function setCallerContractAddress($caller_contract_address): void
|
||||
{
|
||||
$this->caller_contract_address = $caller_contract_address;
|
||||
}
|
||||
|
||||
public function getContractAddress()
|
||||
{
|
||||
return $this->contract_address;
|
||||
}
|
||||
|
||||
public function setContractAddress($contract_address): void
|
||||
{
|
||||
$this->contract_address = $contract_address;
|
||||
}
|
||||
|
||||
public function getEvent()
|
||||
{
|
||||
return $this->event;
|
||||
}
|
||||
|
||||
public function setEvent($event): void
|
||||
{
|
||||
$this->event = $event;
|
||||
}
|
||||
|
||||
public function getEventIndex()
|
||||
{
|
||||
return $this->event_index;
|
||||
}
|
||||
|
||||
public function setEventIndex($event_index): void
|
||||
{
|
||||
$this->event_index = $event_index;
|
||||
}
|
||||
|
||||
public function getEventName()
|
||||
{
|
||||
return $this->event_name;
|
||||
}
|
||||
|
||||
public function setEventName($event_name): void
|
||||
{
|
||||
$this->event_name = $event_name;
|
||||
}
|
||||
|
||||
public function getResult(): EventResultBean
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
public function setResult(EventResultBean $result): void
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
public function getResultType(): EventResultTypeBean
|
||||
{
|
||||
return $this->result_type;
|
||||
}
|
||||
|
||||
public function setResultType(EventResultTypeBean $result_type): void
|
||||
{
|
||||
$this->result_type = $result_type;
|
||||
}
|
||||
|
||||
public function getTransactionId()
|
||||
{
|
||||
return $this->transaction_id;
|
||||
}
|
||||
|
||||
public function setTransactionId($transaction_id): void
|
||||
{
|
||||
$this->transaction_id = $transaction_id;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
84
app/Bean/Queue/Wallet/QueueNotifyToPlatformBean.php
Normal file
84
app/Bean/Queue/Wallet/QueueNotifyToPlatformBean.php
Normal file
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
namespace App\Bean\Queue\Wallet;
|
||||
|
||||
use App\Bean\Queue\QueueBaseBean;
|
||||
|
||||
class QueueNotifyToPlatformBean extends QueueBaseBean
|
||||
{
|
||||
const QUEUE_NAME = 'queue_notify_to_platform';
|
||||
|
||||
const TYPE_WITHDRAW = 1;
|
||||
|
||||
protected $type;
|
||||
protected $sn;
|
||||
protected $amount;
|
||||
protected $currency_code;
|
||||
protected $status;
|
||||
protected $platform_id;
|
||||
|
||||
public function getPlatformId()
|
||||
{
|
||||
return $this->platform_id;
|
||||
}
|
||||
|
||||
public function setPlatformId($platform_id): void
|
||||
{
|
||||
$this->platform_id = $platform_id;
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
public function setType($type): void
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
public function getSn()
|
||||
{
|
||||
return $this->sn;
|
||||
}
|
||||
|
||||
public function setSn($sn): void
|
||||
{
|
||||
$this->sn = $sn;
|
||||
}
|
||||
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
public function setAmount($amount): void
|
||||
{
|
||||
$this->amount = $amount;
|
||||
}
|
||||
|
||||
public function getCurrencyCode()
|
||||
{
|
||||
return $this->currency_code;
|
||||
}
|
||||
|
||||
public function setCurrencyCode($currency_code): void
|
||||
{
|
||||
$this->currency_code = $currency_code;
|
||||
}
|
||||
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
public function setStatus($status): void
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
35
app/Bean/Queue/Wallet/QueueWalletBlockBean.php
Normal file
35
app/Bean/Queue/Wallet/QueueWalletBlockBean.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
namespace App\Bean\Queue\Wallet;
|
||||
|
||||
use App\Bean\Queue\QueueBaseBean;
|
||||
|
||||
class QueueWalletBlockBean extends QueueBaseBean
|
||||
{
|
||||
const QUEUE_NAME = 'queue_wallet_block';
|
||||
|
||||
protected $id;
|
||||
protected $block_number;
|
||||
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function setId($id): void
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function getBlockNumber()
|
||||
{
|
||||
return $this->block_number;
|
||||
}
|
||||
|
||||
public function setBlockNumber($block_number): void
|
||||
{
|
||||
$this->block_number = $block_number;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
25
app/Bean/Queue/Wallet/QueueWalletBlockTransactionBean.php
Normal file
25
app/Bean/Queue/Wallet/QueueWalletBlockTransactionBean.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Bean\Queue\Wallet;
|
||||
|
||||
use App\Bean\Queue\QueueBaseBean;
|
||||
|
||||
class QueueWalletBlockTransactionBean extends QueueBaseBean
|
||||
{
|
||||
const QUEUE_NAME = 'queue_wallet_block_transaction';
|
||||
|
||||
protected array $data = [];
|
||||
|
||||
public function getData(): array
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function setData(array $data): void
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
69
app/Bean/Queue/Wallet/QueueWalletPlatformTransactionBean.php
Normal file
69
app/Bean/Queue/Wallet/QueueWalletPlatformTransactionBean.php
Normal file
@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
namespace App\Bean\Queue\Wallet;
|
||||
|
||||
use App\Bean\Queue\QueueBaseBean;
|
||||
|
||||
class QueueWalletPlatformTransactionBean extends QueueBaseBean
|
||||
{
|
||||
const QUEUE_NAME = 'queue_wallet_platform_transaction';
|
||||
|
||||
protected $wallet_id;
|
||||
protected $wallet_transaction_id;
|
||||
protected $block_transaction_id;
|
||||
protected $amount;
|
||||
protected $type;
|
||||
|
||||
public function getWalletId()
|
||||
{
|
||||
return $this->wallet_id;
|
||||
}
|
||||
|
||||
public function setWalletId($wallet_id): void
|
||||
{
|
||||
$this->wallet_id = $wallet_id;
|
||||
}
|
||||
|
||||
public function getWalletTransactionId()
|
||||
{
|
||||
return $this->wallet_transaction_id;
|
||||
}
|
||||
|
||||
public function setWalletTransactionId($wallet_transaction_id): void
|
||||
{
|
||||
$this->wallet_transaction_id = $wallet_transaction_id;
|
||||
}
|
||||
|
||||
public function getBlockTransactionId()
|
||||
{
|
||||
return $this->block_transaction_id;
|
||||
}
|
||||
|
||||
public function setBlockTransactionId($block_transaction_id): void
|
||||
{
|
||||
$this->block_transaction_id = $block_transaction_id;
|
||||
}
|
||||
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
public function setAmount($amount): void
|
||||
{
|
||||
$this->amount = $amount;
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
public function setType($type): void
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace App\Bean\Queue\Wallet;
|
||||
|
||||
use App\Bean\Queue\QueueBaseBean;
|
||||
|
||||
class QueueWalletPlatformWithdrawTransferBean extends QueueBaseBean
|
||||
{
|
||||
const QUEUE_NAME = 'queue_wallet_platform_withdraw_transfer';
|
||||
|
||||
protected $transaction_id;
|
||||
|
||||
public function getTransactionId()
|
||||
{
|
||||
return $this->transaction_id;
|
||||
}
|
||||
|
||||
public function setTransactionId($transaction_id): void
|
||||
{
|
||||
$this->transaction_id = $transaction_id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
88
app/Bean/Sdk/Wallet/Tron/AccountTransactionBean.php
Normal file
88
app/Bean/Sdk/Wallet/Tron/AccountTransactionBean.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class AccountTransactionBean extends BaseBean
|
||||
{
|
||||
protected $transaction_id;
|
||||
protected AccountTransactionTokenInfoBean $token_info;
|
||||
protected $block_timestamp;
|
||||
protected $from;
|
||||
protected $to;
|
||||
protected $type;
|
||||
protected $value;
|
||||
|
||||
public function getTransactionId()
|
||||
{
|
||||
return $this->transaction_id;
|
||||
}
|
||||
|
||||
public function setTransactionId($transaction_id): void
|
||||
{
|
||||
$this->transaction_id = $transaction_id;
|
||||
}
|
||||
|
||||
public function getTokenInfo(): AccountTransactionTokenInfoBean
|
||||
{
|
||||
return $this->token_info;
|
||||
}
|
||||
|
||||
public function setTokenInfo(AccountTransactionTokenInfoBean $token_info): void
|
||||
{
|
||||
$this->token_info = $token_info;
|
||||
}
|
||||
|
||||
public function getBlockTimestamp()
|
||||
{
|
||||
return $this->block_timestamp;
|
||||
}
|
||||
|
||||
public function setBlockTimestamp($block_timestamp): void
|
||||
{
|
||||
$this->block_timestamp = $block_timestamp;
|
||||
}
|
||||
|
||||
public function getFrom()
|
||||
{
|
||||
return $this->from;
|
||||
}
|
||||
|
||||
public function setFrom($from): void
|
||||
{
|
||||
$this->from = $from;
|
||||
}
|
||||
|
||||
public function getTo()
|
||||
{
|
||||
return $this->to;
|
||||
}
|
||||
|
||||
public function setTo($to): void
|
||||
{
|
||||
$this->to = $to;
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
public function setType($type): void
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function setValue($value): void
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
55
app/Bean/Sdk/Wallet/Tron/AccountTransactionTokenInfoBean.php
Normal file
55
app/Bean/Sdk/Wallet/Tron/AccountTransactionTokenInfoBean.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class AccountTransactionTokenInfoBean extends BaseBean
|
||||
{
|
||||
protected $symbol;
|
||||
protected $address;
|
||||
protected $decimals;
|
||||
protected $name;
|
||||
|
||||
public function getSymbol()
|
||||
{
|
||||
return $this->symbol;
|
||||
}
|
||||
|
||||
public function setSymbol($symbol): void
|
||||
{
|
||||
$this->symbol = $symbol;
|
||||
}
|
||||
|
||||
public function getAddress()
|
||||
{
|
||||
return $this->address;
|
||||
}
|
||||
|
||||
public function setAddress($address): void
|
||||
{
|
||||
$this->address = $address;
|
||||
}
|
||||
|
||||
public function getDecimals()
|
||||
{
|
||||
return $this->decimals;
|
||||
}
|
||||
|
||||
public function setDecimals($decimals): void
|
||||
{
|
||||
$this->decimals = $decimals;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function setName($name): void
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
119
app/Bean/Sdk/Wallet/Tron/BlockEventBean.php
Normal file
119
app/Bean/Sdk/Wallet/Tron/BlockEventBean.php
Normal file
@ -0,0 +1,119 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class BlockEventBean extends BaseBean
|
||||
{
|
||||
protected $block_number;
|
||||
protected $block_timestamp;
|
||||
protected $caller_contract_address;
|
||||
protected $contract_address;
|
||||
protected $event;
|
||||
protected $event_index;
|
||||
protected $event_name;
|
||||
protected BlockEventResultBean $result;
|
||||
protected $result_type;
|
||||
protected $transaction_id;
|
||||
|
||||
public function getBlockNumber()
|
||||
{
|
||||
return $this->block_number;
|
||||
}
|
||||
|
||||
public function setBlockNumber($block_number): void
|
||||
{
|
||||
$this->block_number = $block_number;
|
||||
}
|
||||
|
||||
public function getBlockTimestamp()
|
||||
{
|
||||
return $this->block_timestamp;
|
||||
}
|
||||
|
||||
public function setBlockTimestamp($block_timestamp): void
|
||||
{
|
||||
$this->block_timestamp = $block_timestamp;
|
||||
}
|
||||
|
||||
public function getCallerContractAddress()
|
||||
{
|
||||
return $this->caller_contract_address;
|
||||
}
|
||||
|
||||
public function setCallerContractAddress($caller_contract_address): void
|
||||
{
|
||||
$this->caller_contract_address = $caller_contract_address;
|
||||
}
|
||||
|
||||
public function getContractAddress()
|
||||
{
|
||||
return $this->contract_address;
|
||||
}
|
||||
|
||||
public function setContractAddress($contract_address): void
|
||||
{
|
||||
$this->contract_address = $contract_address;
|
||||
}
|
||||
|
||||
public function getEvent()
|
||||
{
|
||||
return $this->event;
|
||||
}
|
||||
|
||||
public function setEvent($event): void
|
||||
{
|
||||
$this->event = $event;
|
||||
}
|
||||
|
||||
public function getEventIndex()
|
||||
{
|
||||
return $this->event_index;
|
||||
}
|
||||
|
||||
public function setEventIndex($event_index): void
|
||||
{
|
||||
$this->event_index = $event_index;
|
||||
}
|
||||
|
||||
public function getEventName()
|
||||
{
|
||||
return $this->event_name;
|
||||
}
|
||||
|
||||
public function setEventName($event_name): void
|
||||
{
|
||||
$this->event_name = $event_name;
|
||||
}
|
||||
|
||||
public function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
public function setResult($result): void
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
public function getResultType()
|
||||
{
|
||||
return $this->result_type;
|
||||
}
|
||||
|
||||
public function setResultType($result_type): void
|
||||
{
|
||||
$this->result_type = $result_type;
|
||||
}
|
||||
|
||||
public function getTransactionId()
|
||||
{
|
||||
return $this->transaction_id;
|
||||
}
|
||||
|
||||
public function setTransactionId($transaction_id): void
|
||||
{
|
||||
$this->transaction_id = $transaction_id;
|
||||
}
|
||||
}
|
||||
|
||||
44
app/Bean/Sdk/Wallet/Tron/BlockEventResultBean.php
Normal file
44
app/Bean/Sdk/Wallet/Tron/BlockEventResultBean.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class BlockEventResultBean extends BaseBean
|
||||
{
|
||||
protected $from;
|
||||
protected $to;
|
||||
protected $value;
|
||||
|
||||
public function getFrom()
|
||||
{
|
||||
return $this->from;
|
||||
}
|
||||
|
||||
public function setFrom($from): void
|
||||
{
|
||||
$this->from = $from;
|
||||
}
|
||||
|
||||
public function getTo()
|
||||
{
|
||||
return $this->to;
|
||||
}
|
||||
|
||||
public function setTo($to): void
|
||||
{
|
||||
$this->to = $to;
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function setValue($value): void
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
120
app/Bean/Sdk/Wallet/Tron/EventBean.php
Normal file
120
app/Bean/Sdk/Wallet/Tron/EventBean.php
Normal file
@ -0,0 +1,120 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class EventBean extends BaseBean
|
||||
{
|
||||
protected $block_number;
|
||||
protected $block_timestamp;
|
||||
protected $caller_contract_address;
|
||||
protected $contract_address;
|
||||
protected $event;
|
||||
protected $event_index;
|
||||
protected $event_name;
|
||||
protected EventResultBean $result;
|
||||
protected EventResultTypeBean $result_type;
|
||||
protected $transaction_id;
|
||||
|
||||
public function getBlockNumber()
|
||||
{
|
||||
return $this->block_number;
|
||||
}
|
||||
|
||||
public function setBlockNumber($block_number): void
|
||||
{
|
||||
$this->block_number = $block_number;
|
||||
}
|
||||
|
||||
public function getBlockTimestamp()
|
||||
{
|
||||
return $this->block_timestamp;
|
||||
}
|
||||
|
||||
public function setBlockTimestamp($block_timestamp): void
|
||||
{
|
||||
$this->block_timestamp = $block_timestamp;
|
||||
}
|
||||
|
||||
public function getCallerContractAddress()
|
||||
{
|
||||
return $this->caller_contract_address;
|
||||
}
|
||||
|
||||
public function setCallerContractAddress($caller_contract_address): void
|
||||
{
|
||||
$this->caller_contract_address = $caller_contract_address;
|
||||
}
|
||||
|
||||
public function getContractAddress()
|
||||
{
|
||||
return $this->contract_address;
|
||||
}
|
||||
|
||||
public function setContractAddress($contract_address): void
|
||||
{
|
||||
$this->contract_address = $contract_address;
|
||||
}
|
||||
|
||||
public function getEvent()
|
||||
{
|
||||
return $this->event;
|
||||
}
|
||||
|
||||
public function setEvent($event): void
|
||||
{
|
||||
$this->event = $event;
|
||||
}
|
||||
|
||||
public function getEventIndex()
|
||||
{
|
||||
return $this->event_index;
|
||||
}
|
||||
|
||||
public function setEventIndex($event_index): void
|
||||
{
|
||||
$this->event_index = $event_index;
|
||||
}
|
||||
|
||||
public function getEventName()
|
||||
{
|
||||
return $this->event_name;
|
||||
}
|
||||
|
||||
public function setEventName($event_name): void
|
||||
{
|
||||
$this->event_name = $event_name;
|
||||
}
|
||||
|
||||
public function getResult(): EventResultBean
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
public function setResult(EventResultBean $result): void
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
public function getResultType(): EventResultTypeBean
|
||||
{
|
||||
return $this->result_type;
|
||||
}
|
||||
|
||||
public function setResultType(EventResultTypeBean $result_type): void
|
||||
{
|
||||
$this->result_type = $result_type;
|
||||
}
|
||||
|
||||
public function getTransactionId()
|
||||
{
|
||||
return $this->transaction_id;
|
||||
}
|
||||
|
||||
public function setTransactionId($transaction_id): void
|
||||
{
|
||||
$this->transaction_id = $transaction_id;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
43
app/Bean/Sdk/Wallet/Tron/EventResultBean.php
Normal file
43
app/Bean/Sdk/Wallet/Tron/EventResultBean.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class EventResultBean extends BaseBean
|
||||
{
|
||||
protected $from;
|
||||
protected $to;
|
||||
protected $value;
|
||||
|
||||
public function getFrom()
|
||||
{
|
||||
return $this->from;
|
||||
}
|
||||
|
||||
public function setFrom($from): void
|
||||
{
|
||||
$this->from = $from;
|
||||
}
|
||||
|
||||
public function getTo()
|
||||
{
|
||||
return $this->to;
|
||||
}
|
||||
|
||||
public function setTo($to): void
|
||||
{
|
||||
$this->to = $to;
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function setValue($value): void
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
43
app/Bean/Sdk/Wallet/Tron/EventResultTypeBean.php
Normal file
43
app/Bean/Sdk/Wallet/Tron/EventResultTypeBean.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class EventResultTypeBean extends BaseBean
|
||||
{
|
||||
protected $from;
|
||||
protected $to;
|
||||
protected $value;
|
||||
|
||||
public function getFrom()
|
||||
{
|
||||
return $this->from;
|
||||
}
|
||||
|
||||
public function setFrom($from): void
|
||||
{
|
||||
$this->from = $from;
|
||||
}
|
||||
|
||||
public function getTo()
|
||||
{
|
||||
return $this->to;
|
||||
}
|
||||
|
||||
public function setTo($to): void
|
||||
{
|
||||
$this->to = $to;
|
||||
}
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function setValue($value): void
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
55
app/Bean/Sdk/Wallet/Tron/MetaBean.php
Normal file
55
app/Bean/Sdk/Wallet/Tron/MetaBean.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class MetaBean extends BaseBean
|
||||
{
|
||||
protected $at;
|
||||
protected $fingerprint;
|
||||
protected MetaLinksBean $links;
|
||||
protected $page_size;
|
||||
|
||||
public function getAt()
|
||||
{
|
||||
return $this->at;
|
||||
}
|
||||
|
||||
public function setAt($at): void
|
||||
{
|
||||
$this->at = $at;
|
||||
}
|
||||
|
||||
public function getFingerprint()
|
||||
{
|
||||
return $this->fingerprint;
|
||||
}
|
||||
|
||||
public function setFingerprint($fingerprint): void
|
||||
{
|
||||
$this->fingerprint = $fingerprint;
|
||||
}
|
||||
|
||||
public function getLinks(): MetaLinksBean
|
||||
{
|
||||
return $this->links;
|
||||
}
|
||||
|
||||
public function setLinks(MetaLinksBean $links): void
|
||||
{
|
||||
$this->links = $links;
|
||||
}
|
||||
|
||||
public function getPageSize()
|
||||
{
|
||||
return $this->page_size;
|
||||
}
|
||||
|
||||
public function setPageSize($page_size): void
|
||||
{
|
||||
$this->page_size = $page_size;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
10
app/Bean/Sdk/Wallet/Tron/MetaLinksBean.php
Normal file
10
app/Bean/Sdk/Wallet/Tron/MetaLinksBean.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class MetaLinksBean extends BaseBean
|
||||
{
|
||||
protected $next;
|
||||
|
||||
}
|
||||
34
app/Bean/Sdk/Wallet/Tron/NowBlockBean.php
Normal file
34
app/Bean/Sdk/Wallet/Tron/NowBlockBean.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class NowBlockBean extends BaseBean
|
||||
{
|
||||
protected $block_number;
|
||||
protected $block_timestamp;
|
||||
|
||||
public function getBlockNumber()
|
||||
{
|
||||
return $this->block_number;
|
||||
}
|
||||
|
||||
public function setBlockNumber($block_number): void
|
||||
{
|
||||
$this->block_number = $block_number;
|
||||
}
|
||||
|
||||
public function getBlockTimestamp()
|
||||
{
|
||||
return $this->block_timestamp;
|
||||
}
|
||||
|
||||
public function setBlockTimestamp($block_timestamp): void
|
||||
{
|
||||
$this->block_timestamp = $block_timestamp;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
43
app/Bean/Sdk/Wallet/Tron/ResponseBean.php
Normal file
43
app/Bean/Sdk/Wallet/Tron/ResponseBean.php
Normal file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class ResponseBean extends BaseBean
|
||||
{
|
||||
protected $data;
|
||||
protected bool $success;
|
||||
protected MetaBean $meta;
|
||||
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
public function setData($data): void
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
public function getSuccess(): bool
|
||||
{
|
||||
return $this->success;
|
||||
}
|
||||
|
||||
public function setSuccess($success): void
|
||||
{
|
||||
$this->success = $success;
|
||||
}
|
||||
|
||||
public function getMeta(): MetaBean
|
||||
{
|
||||
return $this->meta;
|
||||
}
|
||||
|
||||
public function setMeta($meta): void
|
||||
{
|
||||
$this->meta = $meta;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
55
app/Bean/Sdk/Wallet/Tron/TokenAddressBean.php
Normal file
55
app/Bean/Sdk/Wallet/Tron/TokenAddressBean.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class TokenAddressBean extends BaseBean
|
||||
{
|
||||
public $private_key;
|
||||
public $public_key;
|
||||
public $address_hex;
|
||||
public $address_base58;
|
||||
|
||||
public function getPrivateKey()
|
||||
{
|
||||
return $this->private_key;
|
||||
}
|
||||
|
||||
public function setPrivateKey($private_key): void
|
||||
{
|
||||
$this->private_key = $private_key;
|
||||
}
|
||||
|
||||
public function getPublicKey()
|
||||
{
|
||||
return $this->public_key;
|
||||
}
|
||||
|
||||
public function setPublicKey($public_key): void
|
||||
{
|
||||
$this->public_key = $public_key;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
33
app/Bean/Sdk/Wallet/Tron/TransferTransactionBean.php
Normal file
33
app/Bean/Sdk/Wallet/Tron/TransferTransactionBean.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace App\Bean\Sdk\Wallet\Tron;
|
||||
|
||||
use App\Bean\Model\Base\BaseBean;
|
||||
|
||||
class TransferTransactionBean extends BaseBean
|
||||
{
|
||||
protected $txID;
|
||||
protected $raw_data;
|
||||
|
||||
public function getTxID()
|
||||
{
|
||||
return $this->txID;
|
||||
}
|
||||
|
||||
public function setTxID($txID): void
|
||||
{
|
||||
$this->txID = $txID;
|
||||
}
|
||||
|
||||
public function getRawData()
|
||||
{
|
||||
return $this->raw_data;
|
||||
}
|
||||
|
||||
public function setRawData($raw_data): void
|
||||
{
|
||||
$this->raw_data = $raw_data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user