diff --git a/src/lib/client/Model/ResponseWrapperSolanaTokenSecurityDex.php b/src/lib/client/Model/ResponseWrapperSolanaTokenSecurityDex.php index 7345e94..c969da2 100644 --- a/src/lib/client/Model/ResponseWrapperSolanaTokenSecurityDex.php +++ b/src/lib/client/Model/ResponseWrapperSolanaTokenSecurityDex.php @@ -65,6 +65,7 @@ class ResponseWrapperSolanaTokenSecurityDex implements ModelInterface, ArrayAcce 'type' => 'string', 'dex_name' => 'string', 'day' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityDay', + 'burn_percent' => 'float', 'lp_amount' => 'string', 'fee_rate' => 'string' ]; @@ -84,6 +85,7 @@ class ResponseWrapperSolanaTokenSecurityDex implements ModelInterface, ArrayAcce 'type' => null, 'dex_name' => null, 'day' => null, + 'burn_percent' => null, 'lp_amount' => null, 'fee_rate' => null ]; @@ -124,6 +126,7 @@ public static function swaggerFormats() 'type' => 'type', 'dex_name' => 'dex_name', 'day' => 'day', + 'burn_percent' => 'burn_percent', 'lp_amount' => 'lp_amount', 'fee_rate' => 'fee_rate' ]; @@ -143,6 +146,7 @@ public static function swaggerFormats() 'type' => 'setType', 'dex_name' => 'setDexName', 'day' => 'setDay', + 'burn_percent' => 'setBurnPercent', 'lp_amount' => 'setLpAmount', 'fee_rate' => 'setFeeRate' ]; @@ -162,6 +166,7 @@ public static function swaggerFormats() 'type' => 'getType', 'dex_name' => 'getDexName', 'day' => 'getDay', + 'burn_percent' => 'getBurnPercent', 'lp_amount' => 'getLpAmount', 'fee_rate' => 'getFeeRate' ]; @@ -233,6 +238,7 @@ public function __construct(array $data = null) $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['dex_name'] = isset($data['dex_name']) ? $data['dex_name'] : null; $this->container['day'] = isset($data['day']) ? $data['day'] : null; + $this->container['burn_percent'] = isset($data['burn_percent']) ? $data['burn_percent'] : null; $this->container['lp_amount'] = isset($data['lp_amount']) ? $data['lp_amount'] : null; $this->container['fee_rate'] = isset($data['fee_rate']) ? $data['fee_rate'] : null; } @@ -477,6 +483,30 @@ public function setDay($day) return $this; } + /** + * Gets burn_percent + * + * @return float + */ + public function getBurnPercent() + { + return $this->container['burn_percent']; + } + + /** + * Sets burn_percent + * + * @param float $burn_percent Percentage of burned LP + * + * @return $this + */ + public function setBurnPercent($burn_percent) + { + $this->container['burn_percent'] = $burn_percent; + + return $this; + } + /** * Gets lp_amount * diff --git a/src/lib/client/Model/ResponseWrapperSolanaTokenSecurityHolders.php b/src/lib/client/Model/ResponseWrapperSolanaTokenSecurityHolders.php new file mode 100644 index 0000000..f6cc5a2 --- /dev/null +++ b/src/lib/client/Model/ResponseWrapperSolanaTokenSecurityHolders.php @@ -0,0 +1,450 @@ + 'int', + 'balance' => 'string', + 'locked_detail' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLockedDetail[]', + 'token_account' => 'string', + 'tag' => 'string', + 'percent' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'is_locked' => 'int32', + 'balance' => null, + 'locked_detail' => null, + 'token_account' => null, + 'tag' => null, + 'percent' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'is_locked' => 'is_locked', + 'balance' => 'balance', + 'locked_detail' => 'locked_detail', + 'token_account' => 'token_account', + 'tag' => 'tag', + 'percent' => 'percent' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'is_locked' => 'setIsLocked', + 'balance' => 'setBalance', + 'locked_detail' => 'setLockedDetail', + 'token_account' => 'setTokenAccount', + 'tag' => 'setTag', + 'percent' => 'setPercent' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'is_locked' => 'getIsLocked', + 'balance' => 'getBalance', + 'locked_detail' => 'getLockedDetail', + 'token_account' => 'getTokenAccount', + 'tag' => 'getTag', + 'percent' => 'getPercent' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['is_locked'] = isset($data['is_locked']) ? $data['is_locked'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : null; + $this->container['locked_detail'] = isset($data['locked_detail']) ? $data['locked_detail'] : null; + $this->container['token_account'] = isset($data['token_account']) ? $data['token_account'] : null; + $this->container['tag'] = isset($data['tag']) ? $data['tag'] : null; + $this->container['percent'] = isset($data['percent']) ? $data['percent'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets is_locked + * + * @return int + */ + public function getIsLocked() + { + return $this->container['is_locked']; + } + + /** + * Sets is_locked + * + * @param int $is_locked It describes whether the tokens owned by the holder are locked \"1\" means true; \"0\" means false; (3) 'tag' describes the address's public tag. Example:Burn (Notice:About \"locked\":We only support the token lock addresses or black hole addresses that we have included. ) + * + * @return $this + */ + public function setIsLocked($is_locked) + { + $this->container['is_locked'] = $is_locked; + + return $this; + } + + /** + * Gets balance + * + * @return string + */ + public function getBalance() + { + return $this->container['balance']; + } + + /** + * Sets balance + * + * @param string $balance Amount of tokens held. + * + * @return $this + */ + public function setBalance($balance) + { + $this->container['balance'] = $balance; + + return $this; + } + + /** + * Gets locked_detail + * + * @return \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLockedDetail[] + */ + public function getLockedDetail() + { + return $this->container['locked_detail']; + } + + /** + * Sets locked_detail + * + * @param \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLockedDetail[] $locked_detail It is an array, decribes lock position info of this holder, only shows when \"locked\":1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) + * + * @return $this + */ + public function setLockedDetail($locked_detail) + { + $this->container['locked_detail'] = $locked_detail; + + return $this; + } + + /** + * Gets token_account + * + * @return string + */ + public function getTokenAccount() + { + return $this->container['token_account']; + } + + /** + * Sets token_account + * + * @param string $token_account Address of the holder. + * + * @return $this + */ + public function setTokenAccount($token_account) + { + $this->container['token_account'] = $token_account; + + return $this; + } + + /** + * Gets tag + * + * @return string + */ + public function getTag() + { + return $this->container['tag']; + } + + /** + * Sets tag + * + * @param string $tag Tag information of the holder. + * + * @return $this + */ + public function setTag($tag) + { + $this->container['tag'] = $tag; + + return $this; + } + + /** + * Gets percent + * + * @return string + */ + public function getPercent() + { + return $this->container['percent']; + } + + /** + * Sets percent + * + * @param string $percent Percentage of total supply held. + * + * @return $this + */ + public function setPercent($percent) + { + $this->container['percent'] = $percent; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + #[\ReturnTypeWillChange] + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + #[\ReturnTypeWillChange] + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/src/lib/client/Model/ResponseWrapperTokenSecurityLockedDetail.php b/src/lib/client/Model/ResponseWrapperSolanaTokenSecurityLockedDetail.php similarity index 96% rename from src/lib/client/Model/ResponseWrapperTokenSecurityLockedDetail.php rename to src/lib/client/Model/ResponseWrapperSolanaTokenSecurityLockedDetail.php index da8eacd..1d7dff3 100644 --- a/src/lib/client/Model/ResponseWrapperTokenSecurityLockedDetail.php +++ b/src/lib/client/Model/ResponseWrapperSolanaTokenSecurityLockedDetail.php @@ -1,6 +1,6 @@ '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityClosable', 'transfer_hook' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityTransferHook[]', 'transfer_hook_upgradable' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityTransferHookUpgradable', - 'trusted_token' => 'string', + 'trusted_token' => 'int', 'default_account_state_upgradable' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable', 'none_transferable' => 'string', 'default_account_state' => 'string', 'mintable' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityMintable', 'balance_mutable_authority' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority', 'transfer_fee' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityTransferFee', - 'holders' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLpHolders[]', + 'holders' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityHolders[]', 'freezable' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityFreezable', 'metadata_mutable' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityMetadataMutable', 'dex' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityDex[]', @@ -89,7 +89,7 @@ class ResponseWrapperSolanaTokenSecurityResult implements ModelInterface, ArrayA 'closable' => null, 'transfer_hook' => null, 'transfer_hook_upgradable' => null, - 'trusted_token' => null, + 'trusted_token' => 'int32', 'default_account_state_upgradable' => null, 'none_transferable' => null, 'default_account_state' => null, @@ -451,7 +451,7 @@ public function setTransferHookUpgradable($transfer_hook_upgradable) /** * Gets trusted_token * - * @return string + * @return int */ public function getTrustedToken() { @@ -461,7 +461,7 @@ public function getTrustedToken() /** * Sets trusted_token * - * @param string $trusted_token If the token is a famous and trustworthy one. \"1\" means yes. + * @param int $trusted_token If the token is a famous and trustworthy one. \"1\" means yes. * * @return $this */ @@ -619,7 +619,7 @@ public function setTransferFee($transfer_fee) /** * Gets holders * - * @return \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLpHolders[] + * @return \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityHolders[] */ public function getHolders() { @@ -629,7 +629,7 @@ public function getHolders() /** * Sets holders * - * @param \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLpHolders[] $holders List of top 10 addresses holding the token and their balances. + * @param \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityHolders[] $holders List of top 10 addresses holding the token and their balances. * * @return $this */ diff --git a/src/lib/client/Model/ResponseWrapperTokenSecurityHolders.php b/src/lib/client/Model/ResponseWrapperTokenSecurityHolders.php index f45f277..46c9bab 100644 --- a/src/lib/client/Model/ResponseWrapperTokenSecurityHolders.php +++ b/src/lib/client/Model/ResponseWrapperTokenSecurityHolders.php @@ -60,7 +60,7 @@ class ResponseWrapperTokenSecurityHolders implements ModelInterface, ArrayAccess 'is_contract' => 'int', 'address' => 'string', 'balance' => 'string', - 'locked_detail' => '\Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[]', + 'locked_detail' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLockedDetail[]', 'tag' => 'string', 'percent' => 'string' ]; @@ -336,7 +336,7 @@ public function setBalance($balance) /** * Gets locked_detail * - * @return \Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[] + * @return \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLockedDetail[] */ public function getLockedDetail() { @@ -346,7 +346,7 @@ public function getLockedDetail() /** * Sets locked_detail * - * @param \Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[] $locked_detail It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) + * @param \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLockedDetail[] $locked_detail It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) * * @return $this */ diff --git a/src/lib/client/Model/ResponseWrapperTokenSecurityLpHolders.php b/src/lib/client/Model/ResponseWrapperTokenSecurityLpHolders.php index 5c35a3a..40fd588 100644 --- a/src/lib/client/Model/ResponseWrapperTokenSecurityLpHolders.php +++ b/src/lib/client/Model/ResponseWrapperTokenSecurityLpHolders.php @@ -61,7 +61,7 @@ class ResponseWrapperTokenSecurityLpHolders implements ModelInterface, ArrayAcce 'address' => 'string', 'balance' => 'string', 'nft_list' => '\Swagger\Client\Model\ResponseWrapperTokenSecurityNFTList[]', - 'locked_detail' => '\Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[]', + 'locked_detail' => '\Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLockedDetail[]', 'tag' => 'string', 'percent' => 'string' ]; @@ -366,7 +366,7 @@ public function setNftList($nft_list) /** * Gets locked_detail * - * @return \Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[] + * @return \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLockedDetail[] */ public function getLockedDetail() { @@ -376,7 +376,7 @@ public function getLockedDetail() /** * Sets locked_detail * - * @param \Swagger\Client\Model\ResponseWrapperTokenSecurityLockedDetail[] $locked_detail It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) + * @param \Swagger\Client\Model\ResponseWrapperSolanaTokenSecurityLockedDetail[] $locked_detail It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) * * @return $this */ diff --git a/src/lib/client/Model/TaNftLockerLockInfoobject.php b/src/lib/client/Model/TaNftLockerLockInfoobject.php index 8e43998..4e6805b 100644 --- a/src/lib/client/Model/TaNftLockerLockInfoobject.php +++ b/src/lib/client/Model/TaNftLockerLockInfoobject.php @@ -72,7 +72,7 @@ class TaNftLockerLockInfoobject implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'end_time' => 'int32', + 'end_time' => 'int64', 'lock_id' => null, 'nft_id' => null, 'nft_position_manager' => null, diff --git a/src/lib/client/Model/TaTokenLockerLockInfoobject.php b/src/lib/client/Model/TaTokenLockerLockInfoobject.php index 876adc9..3f18580 100644 --- a/src/lib/client/Model/TaTokenLockerLockInfoobject.php +++ b/src/lib/client/Model/TaTokenLockerLockInfoobject.php @@ -74,7 +74,7 @@ class TaTokenLockerLockInfoobject implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'amount' => null, - 'end_time' => 'int32', + 'end_time' => 'int64', 'is_lp_token' => 'int32', 'lock_id' => null, 'owner' => null,