wallet tron transactions
This commit is contained in:
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