diff --git a/composer.json b/composer.json index 5e9a7b8..b23146b 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,7 @@ ], "require": { "php": ">=5.6", + "ext-mbstring": "*", "deemru/abcode": "^1.0", "deemru/blake2b": "^1.0", "deemru/curve25519": "^1.0", @@ -20,17 +21,14 @@ "deemru/pairs": "^1.0", "deemru/cloaked": "^1.0", "deemru/fetcher": "^1.0", - "google/protobuf": "^3.13", - "ext-mbstring": "*" + "waves/protobuf": "^1.4" }, "suggest": { "ext-sodium": "Up to ~2000x faster sign/verify" }, "autoload": { "psr-4": { - "deemru\\": "src/", - "Waves\\": "protobuf/Waves/", - "GPBMetadata\\Waves\\": "protobuf/GPBMetadata/Waves/" + "deemru\\": "src/" } }, "scripts": { diff --git a/protobuf/.gitattributes b/protobuf/.gitattributes deleted file mode 100644 index 94f480d..0000000 --- a/protobuf/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -* text=auto eol=lf \ No newline at end of file diff --git a/protobuf/GPBMetadata/Waves/Amount.php b/protobuf/GPBMetadata/Waves/Amount.php deleted file mode 100644 index b9b88bb..0000000 --- a/protobuf/GPBMetadata/Waves/Amount.php +++ /dev/null @@ -1,30 +0,0 @@ -internalAddGeneratedFile( - ' -° -waves/amount.protowaves"* -Amount -asset_id (  -amount (B_ -com.wavesplatform.protobufZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/wavesªWavesbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/protobuf/GPBMetadata/Waves/Block.php b/protobuf/GPBMetadata/Waves/Block.php deleted file mode 100644 index 899d34e..0000000 --- a/protobuf/GPBMetadata/Waves/Block.php +++ /dev/null @@ -1,55 +0,0 @@ -internalAddGeneratedFile( - ' -â -waves/block.protowaves"Ð -Block# -header ( 2.waves.Block.Header - signature ( . - transactions ( 2.waves.SignedTransactionÞ -Header -chain_id ( - reference (  - base_target ( -generation_signature (  - feature_votes (  - timestamp ( -version ( - generator (  - reward_vote ( -transactions_root - ( "œ - -MicroBlock -version ( - reference (  -updated_block_signature (  -sender_public_key ( . - transactions ( 2.waves.SignedTransaction"e -SignedMicroBlock& - micro_block ( 2.waves.MicroBlock - signature (  -total_block_id ( Be - com.wavesplatform.protobuf.blockZ9github.com/wavesplatform/gowaves/pkg/grpc/generated/wavesªWavesbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/protobuf/GPBMetadata/Waves/InvokeScriptResult.php b/protobuf/GPBMetadata/Waves/InvokeScriptResult.php deleted file mode 100644 index 01999a1..0000000 Binary files a/protobuf/GPBMetadata/Waves/InvokeScriptResult.php and /dev/null differ diff --git a/protobuf/GPBMetadata/Waves/Order.php b/protobuf/GPBMetadata/Waves/Order.php deleted file mode 100644 index d683cbd..0000000 Binary files a/protobuf/GPBMetadata/Waves/Order.php and /dev/null differ diff --git a/protobuf/GPBMetadata/Waves/Recipient.php b/protobuf/GPBMetadata/Waves/Recipient.php deleted file mode 100644 index d78d51a..0000000 Binary files a/protobuf/GPBMetadata/Waves/Recipient.php and /dev/null differ diff --git a/protobuf/GPBMetadata/Waves/Transaction.php b/protobuf/GPBMetadata/Waves/Transaction.php deleted file mode 100644 index 9d86011..0000000 Binary files a/protobuf/GPBMetadata/Waves/Transaction.php and /dev/null differ diff --git a/protobuf/README.md b/protobuf/README.md deleted file mode 100644 index 8300fdc..0000000 --- a/protobuf/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Protocol Buffers for Waves Platform - -The PHP code in this directory is automatically generated and can be independently reproduced. - -## Versions - -- protoc — [v3.13.0](https://github.com/protocolbuffers/protobuf/releases/tag/v3.13.0) -- proto/waves — [v1.2.6](https://github.com/wavesplatform/protobuf-schemas/tree/v1.2.6/proto/waves) - -## Generation - -- Run batch file: [`protobuf.bat`](protobuf.bat) diff --git a/protobuf/Waves/Amount.php b/protobuf/Waves/Amount.php deleted file mode 100644 index 5660f22..0000000 --- a/protobuf/Waves/Amount.php +++ /dev/null @@ -1,85 +0,0 @@ -waves.Amount - */ -class Amount extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes asset_id = 1; - */ - protected $asset_id = ''; - /** - * Generated from protobuf field int64 amount = 2; - */ - protected $amount = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset_id - * @type int|string $amount - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Amount::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @return string - */ - public function getAssetId() - { - return $this->asset_id; - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @param string $var - * @return $this - */ - public function setAssetId($var) - { - GPBUtil::checkString($var, False); - $this->asset_id = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/AssetPair.php b/protobuf/Waves/AssetPair.php deleted file mode 100644 index 4122728..0000000 --- a/protobuf/Waves/AssetPair.php +++ /dev/null @@ -1,85 +0,0 @@ -waves.AssetPair - */ -class AssetPair extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes amount_asset_id = 1; - */ - protected $amount_asset_id = ''; - /** - * Generated from protobuf field bytes price_asset_id = 2; - */ - protected $price_asset_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $amount_asset_id - * @type string $price_asset_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Order::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes amount_asset_id = 1; - * @return string - */ - public function getAmountAssetId() - { - return $this->amount_asset_id; - } - - /** - * Generated from protobuf field bytes amount_asset_id = 1; - * @param string $var - * @return $this - */ - public function setAmountAssetId($var) - { - GPBUtil::checkString($var, False); - $this->amount_asset_id = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes price_asset_id = 2; - * @return string - */ - public function getPriceAssetId() - { - return $this->price_asset_id; - } - - /** - * Generated from protobuf field bytes price_asset_id = 2; - * @param string $var - * @return $this - */ - public function setPriceAssetId($var) - { - GPBUtil::checkString($var, False); - $this->price_asset_id = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/Block.php b/protobuf/Waves/Block.php deleted file mode 100644 index f5b6b2b..0000000 --- a/protobuf/Waves/Block.php +++ /dev/null @@ -1,122 +0,0 @@ -waves.Block - */ -class Block extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Block.Header header = 1; - */ - protected $header = null; - /** - * Generated from protobuf field bytes signature = 2; - */ - protected $signature = ''; - /** - * Generated from protobuf field repeated .waves.SignedTransaction transactions = 3; - */ - private $transactions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Block\Header $header - * @type string $signature - * @type array<\Waves\SignedTransaction>|\Google\Protobuf\Internal\RepeatedField $transactions - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Block::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Block.Header header = 1; - * @return \Waves\Block\Header|null - */ - public function getHeader() - { - return $this->header; - } - - public function hasHeader() - { - return isset($this->header); - } - - public function clearHeader() - { - unset($this->header); - } - - /** - * Generated from protobuf field .waves.Block.Header header = 1; - * @param \Waves\Block\Header $var - * @return $this - */ - public function setHeader($var) - { - GPBUtil::checkMessage($var, \Waves\Block\Header::class); - $this->header = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes signature = 2; - * @return string - */ - public function getSignature() - { - return $this->signature; - } - - /** - * Generated from protobuf field bytes signature = 2; - * @param string $var - * @return $this - */ - public function setSignature($var) - { - GPBUtil::checkString($var, False); - $this->signature = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.SignedTransaction transactions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransactions() - { - return $this->transactions; - } - - /** - * Generated from protobuf field repeated .waves.SignedTransaction transactions = 3; - * @param array<\Waves\SignedTransaction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransactions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\SignedTransaction::class); - $this->transactions = $arr; - - return $this; - } - -} - diff --git a/protobuf/Waves/Block/Header.php b/protobuf/Waves/Block/Header.php deleted file mode 100644 index f983ec5..0000000 --- a/protobuf/Waves/Block/Header.php +++ /dev/null @@ -1,304 +0,0 @@ -waves.Block.Header - */ -class Header extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field int32 chain_id = 1; - */ - protected $chain_id = 0; - /** - * Generated from protobuf field bytes reference = 2; - */ - protected $reference = ''; - /** - * Generated from protobuf field int64 base_target = 3; - */ - protected $base_target = 0; - /** - * Generated from protobuf field bytes generation_signature = 4; - */ - protected $generation_signature = ''; - /** - * Generated from protobuf field repeated uint32 feature_votes = 5; - */ - private $feature_votes; - /** - * Generated from protobuf field int64 timestamp = 6; - */ - protected $timestamp = 0; - /** - * Generated from protobuf field int32 version = 7; - */ - protected $version = 0; - /** - * Generated from protobuf field bytes generator = 8; - */ - protected $generator = ''; - /** - * Generated from protobuf field int64 reward_vote = 9; - */ - protected $reward_vote = 0; - /** - * Generated from protobuf field bytes transactions_root = 10; - */ - protected $transactions_root = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $chain_id - * @type string $reference - * @type int|string $base_target - * @type string $generation_signature - * @type array|\Google\Protobuf\Internal\RepeatedField $feature_votes - * @type int|string $timestamp - * @type int $version - * @type string $generator - * @type int|string $reward_vote - * @type string $transactions_root - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Block::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field int32 chain_id = 1; - * @return int - */ - public function getChainId() - { - return $this->chain_id; - } - - /** - * Generated from protobuf field int32 chain_id = 1; - * @param int $var - * @return $this - */ - public function setChainId($var) - { - GPBUtil::checkInt32($var); - $this->chain_id = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes reference = 2; - * @return string - */ - public function getReference() - { - return $this->reference; - } - - /** - * Generated from protobuf field bytes reference = 2; - * @param string $var - * @return $this - */ - public function setReference($var) - { - GPBUtil::checkString($var, False); - $this->reference = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 base_target = 3; - * @return int|string - */ - public function getBaseTarget() - { - return $this->base_target; - } - - /** - * Generated from protobuf field int64 base_target = 3; - * @param int|string $var - * @return $this - */ - public function setBaseTarget($var) - { - GPBUtil::checkInt64($var); - $this->base_target = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes generation_signature = 4; - * @return string - */ - public function getGenerationSignature() - { - return $this->generation_signature; - } - - /** - * Generated from protobuf field bytes generation_signature = 4; - * @param string $var - * @return $this - */ - public function setGenerationSignature($var) - { - GPBUtil::checkString($var, False); - $this->generation_signature = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated uint32 feature_votes = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFeatureVotes() - { - return $this->feature_votes; - } - - /** - * Generated from protobuf field repeated uint32 feature_votes = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFeatureVotes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32); - $this->feature_votes = $arr; - - return $this; - } - - /** - * Generated from protobuf field int64 timestamp = 6; - * @return int|string - */ - public function getTimestamp() - { - return $this->timestamp; - } - - /** - * Generated from protobuf field int64 timestamp = 6; - * @param int|string $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkInt64($var); - $this->timestamp = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 version = 7; - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Generated from protobuf field int32 version = 7; - * @param int $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkInt32($var); - $this->version = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes generator = 8; - * @return string - */ - public function getGenerator() - { - return $this->generator; - } - - /** - * Generated from protobuf field bytes generator = 8; - * @param string $var - * @return $this - */ - public function setGenerator($var) - { - GPBUtil::checkString($var, False); - $this->generator = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 reward_vote = 9; - * @return int|string - */ - public function getRewardVote() - { - return $this->reward_vote; - } - - /** - * Generated from protobuf field int64 reward_vote = 9; - * @param int|string $var - * @return $this - */ - public function setRewardVote($var) - { - GPBUtil::checkInt64($var); - $this->reward_vote = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes transactions_root = 10; - * @return string - */ - public function getTransactionsRoot() - { - return $this->transactions_root; - } - - /** - * Generated from protobuf field bytes transactions_root = 10; - * @param string $var - * @return $this - */ - public function setTransactionsRoot($var) - { - GPBUtil::checkString($var, False); - $this->transactions_root = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Header::class, \Waves\Block_Header::class); - diff --git a/protobuf/Waves/BurnTransactionData.php b/protobuf/Waves/BurnTransactionData.php deleted file mode 100644 index 9e536ea..0000000 --- a/protobuf/Waves/BurnTransactionData.php +++ /dev/null @@ -1,68 +0,0 @@ -waves.BurnTransactionData - */ -class BurnTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Amount asset_amount = 1; - */ - protected $asset_amount = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Amount $asset_amount - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Amount asset_amount = 1; - * @return \Waves\Amount|null - */ - public function getAssetAmount() - { - return $this->asset_amount; - } - - public function hasAssetAmount() - { - return isset($this->asset_amount); - } - - public function clearAssetAmount() - { - unset($this->asset_amount); - } - - /** - * Generated from protobuf field .waves.Amount asset_amount = 1; - * @param \Waves\Amount $var - * @return $this - */ - public function setAssetAmount($var) - { - GPBUtil::checkMessage($var, \Waves\Amount::class); - $this->asset_amount = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/CreateAliasTransactionData.php b/protobuf/Waves/CreateAliasTransactionData.php deleted file mode 100644 index dae6a01..0000000 --- a/protobuf/Waves/CreateAliasTransactionData.php +++ /dev/null @@ -1,58 +0,0 @@ -waves.CreateAliasTransactionData - */ -class CreateAliasTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string alias = 1; - */ - protected $alias = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $alias - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string alias = 1; - * @return string - */ - public function getAlias() - { - return $this->alias; - } - - /** - * Generated from protobuf field string alias = 1; - * @param string $var - * @return $this - */ - public function setAlias($var) - { - GPBUtil::checkString($var, True); - $this->alias = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/DataTransactionData.php b/protobuf/Waves/DataTransactionData.php deleted file mode 100644 index 714ba45..0000000 --- a/protobuf/Waves/DataTransactionData.php +++ /dev/null @@ -1,58 +0,0 @@ -waves.DataTransactionData - */ -class DataTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated .waves.DataTransactionData.DataEntry data = 1; - */ - private $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Waves\DataTransactionData\DataEntry>|\Google\Protobuf\Internal\RepeatedField $data - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field repeated .waves.DataTransactionData.DataEntry data = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getData() - { - return $this->data; - } - - /** - * Generated from protobuf field repeated .waves.DataTransactionData.DataEntry data = 1; - * @param array<\Waves\DataTransactionData\DataEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setData($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\DataTransactionData\DataEntry::class); - $this->data = $arr; - - return $this; - } - -} - diff --git a/protobuf/Waves/DataTransactionData/DataEntry.php b/protobuf/Waves/DataTransactionData/DataEntry.php deleted file mode 100644 index f10809f..0000000 --- a/protobuf/Waves/DataTransactionData/DataEntry.php +++ /dev/null @@ -1,182 +0,0 @@ -waves.DataTransactionData.DataEntry - */ -class DataEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * @type int|string $int_value - * @type bool $bool_value - * @type string $binary_value - * @type string $string_value - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 int_value = 10; - * @return int|string - */ - public function getIntValue() - { - return $this->readOneof(10); - } - - public function hasIntValue() - { - return $this->hasOneof(10); - } - - /** - * Generated from protobuf field int64 int_value = 10; - * @param int|string $var - * @return $this - */ - public function setIntValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Generated from protobuf field bool bool_value = 11; - * @return bool - */ - public function getBoolValue() - { - return $this->readOneof(11); - } - - public function hasBoolValue() - { - return $this->hasOneof(11); - } - - /** - * Generated from protobuf field bool bool_value = 11; - * @param bool $var - * @return $this - */ - public function setBoolValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Generated from protobuf field bytes binary_value = 12; - * @return string - */ - public function getBinaryValue() - { - return $this->readOneof(12); - } - - public function hasBinaryValue() - { - return $this->hasOneof(12); - } - - /** - * Generated from protobuf field bytes binary_value = 12; - * @param string $var - * @return $this - */ - public function setBinaryValue($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Generated from protobuf field string string_value = 13; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(13); - } - - public function hasStringValue() - { - return $this->hasOneof(13); - } - - /** - * Generated from protobuf field string string_value = 13; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataEntry::class, \Waves\DataTransactionData_DataEntry::class); - diff --git a/protobuf/Waves/ExchangeTransactionData.php b/protobuf/Waves/ExchangeTransactionData.php deleted file mode 100644 index adfe59f..0000000 --- a/protobuf/Waves/ExchangeTransactionData.php +++ /dev/null @@ -1,166 +0,0 @@ -waves.ExchangeTransactionData - */ -class ExchangeTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field int64 amount = 1; - */ - protected $amount = 0; - /** - * Generated from protobuf field int64 price = 2; - */ - protected $price = 0; - /** - * Generated from protobuf field int64 buy_matcher_fee = 3; - */ - protected $buy_matcher_fee = 0; - /** - * Generated from protobuf field int64 sell_matcher_fee = 4; - */ - protected $sell_matcher_fee = 0; - /** - * Generated from protobuf field repeated .waves.Order orders = 5; - */ - private $orders; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $amount - * @type int|string $price - * @type int|string $buy_matcher_fee - * @type int|string $sell_matcher_fee - * @type array<\Waves\Order>|\Google\Protobuf\Internal\RepeatedField $orders - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field int64 amount = 1; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 1; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 price = 2; - * @return int|string - */ - public function getPrice() - { - return $this->price; - } - - /** - * Generated from protobuf field int64 price = 2; - * @param int|string $var - * @return $this - */ - public function setPrice($var) - { - GPBUtil::checkInt64($var); - $this->price = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 buy_matcher_fee = 3; - * @return int|string - */ - public function getBuyMatcherFee() - { - return $this->buy_matcher_fee; - } - - /** - * Generated from protobuf field int64 buy_matcher_fee = 3; - * @param int|string $var - * @return $this - */ - public function setBuyMatcherFee($var) - { - GPBUtil::checkInt64($var); - $this->buy_matcher_fee = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 sell_matcher_fee = 4; - * @return int|string - */ - public function getSellMatcherFee() - { - return $this->sell_matcher_fee; - } - - /** - * Generated from protobuf field int64 sell_matcher_fee = 4; - * @param int|string $var - * @return $this - */ - public function setSellMatcherFee($var) - { - GPBUtil::checkInt64($var); - $this->sell_matcher_fee = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.Order orders = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrders() - { - return $this->orders; - } - - /** - * Generated from protobuf field repeated .waves.Order orders = 5; - * @param array<\Waves\Order>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\Order::class); - $this->orders = $arr; - - return $this; - } - -} - diff --git a/protobuf/Waves/GenesisTransactionData.php b/protobuf/Waves/GenesisTransactionData.php deleted file mode 100644 index bb8ff6d..0000000 --- a/protobuf/Waves/GenesisTransactionData.php +++ /dev/null @@ -1,85 +0,0 @@ -waves.GenesisTransactionData - */ -class GenesisTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes recipient_address = 1; - */ - protected $recipient_address = ''; - /** - * Generated from protobuf field int64 amount = 2; - */ - protected $amount = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $recipient_address - * @type int|string $amount - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes recipient_address = 1; - * @return string - */ - public function getRecipientAddress() - { - return $this->recipient_address; - } - - /** - * Generated from protobuf field bytes recipient_address = 1; - * @param string $var - * @return $this - */ - public function setRecipientAddress($var) - { - GPBUtil::checkString($var, False); - $this->recipient_address = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/InvokeExpressionTransactionData.php b/protobuf/Waves/InvokeExpressionTransactionData.php deleted file mode 100644 index c497930..0000000 --- a/protobuf/Waves/InvokeExpressionTransactionData.php +++ /dev/null @@ -1,58 +0,0 @@ -waves.InvokeExpressionTransactionData - */ -class InvokeExpressionTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes expression = 1; - */ - protected $expression = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $expression - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes expression = 1; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * Generated from protobuf field bytes expression = 1; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, False); - $this->expression = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/InvokeScriptResult.php b/protobuf/Waves/InvokeScriptResult.php deleted file mode 100644 index c6a5b10..0000000 --- a/protobuf/Waves/InvokeScriptResult.php +++ /dev/null @@ -1,311 +0,0 @@ -waves.InvokeScriptResult - */ -class InvokeScriptResult extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated .waves.DataTransactionData.DataEntry data = 1; - */ - private $data; - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Payment transfers = 2; - */ - private $transfers; - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Issue issues = 3; - */ - private $issues; - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Reissue reissues = 4; - */ - private $reissues; - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Burn burns = 5; - */ - private $burns; - /** - * Generated from protobuf field .waves.InvokeScriptResult.ErrorMessage error_message = 6; - */ - protected $error_message = null; - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.SponsorFee sponsor_fees = 7; - */ - private $sponsor_fees; - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Lease leases = 8; - */ - private $leases; - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.LeaseCancel lease_cancels = 9; - */ - private $lease_cancels; - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Invocation invokes = 10; - */ - private $invokes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Waves\DataTransactionData\DataEntry>|\Google\Protobuf\Internal\RepeatedField $data - * @type array<\Waves\InvokeScriptResult\Payment>|\Google\Protobuf\Internal\RepeatedField $transfers - * @type array<\Waves\InvokeScriptResult\Issue>|\Google\Protobuf\Internal\RepeatedField $issues - * @type array<\Waves\InvokeScriptResult\Reissue>|\Google\Protobuf\Internal\RepeatedField $reissues - * @type array<\Waves\InvokeScriptResult\Burn>|\Google\Protobuf\Internal\RepeatedField $burns - * @type \Waves\InvokeScriptResult\ErrorMessage $error_message - * @type array<\Waves\InvokeScriptResult\SponsorFee>|\Google\Protobuf\Internal\RepeatedField $sponsor_fees - * @type array<\Waves\InvokeScriptResult\Lease>|\Google\Protobuf\Internal\RepeatedField $leases - * @type array<\Waves\InvokeScriptResult\LeaseCancel>|\Google\Protobuf\Internal\RepeatedField $lease_cancels - * @type array<\Waves\InvokeScriptResult\Invocation>|\Google\Protobuf\Internal\RepeatedField $invokes - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field repeated .waves.DataTransactionData.DataEntry data = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getData() - { - return $this->data; - } - - /** - * Generated from protobuf field repeated .waves.DataTransactionData.DataEntry data = 1; - * @param array<\Waves\DataTransactionData\DataEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setData($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\DataTransactionData\DataEntry::class); - $this->data = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Payment transfers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransfers() - { - return $this->transfers; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Payment transfers = 2; - * @param array<\Waves\InvokeScriptResult\Payment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransfers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\Payment::class); - $this->transfers = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Issue issues = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIssues() - { - return $this->issues; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Issue issues = 3; - * @param array<\Waves\InvokeScriptResult\Issue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\Issue::class); - $this->issues = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Reissue reissues = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReissues() - { - return $this->reissues; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Reissue reissues = 4; - * @param array<\Waves\InvokeScriptResult\Reissue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReissues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\Reissue::class); - $this->reissues = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Burn burns = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBurns() - { - return $this->burns; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Burn burns = 5; - * @param array<\Waves\InvokeScriptResult\Burn>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBurns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\Burn::class); - $this->burns = $arr; - - return $this; - } - - /** - * Generated from protobuf field .waves.InvokeScriptResult.ErrorMessage error_message = 6; - * @return \Waves\InvokeScriptResult\ErrorMessage|null - */ - public function getErrorMessage() - { - return $this->error_message; - } - - public function hasErrorMessage() - { - return isset($this->error_message); - } - - public function clearErrorMessage() - { - unset($this->error_message); - } - - /** - * Generated from protobuf field .waves.InvokeScriptResult.ErrorMessage error_message = 6; - * @param \Waves\InvokeScriptResult\ErrorMessage $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkMessage($var, \Waves\InvokeScriptResult\ErrorMessage::class); - $this->error_message = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.SponsorFee sponsor_fees = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSponsorFees() - { - return $this->sponsor_fees; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.SponsorFee sponsor_fees = 7; - * @param array<\Waves\InvokeScriptResult\SponsorFee>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSponsorFees($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\SponsorFee::class); - $this->sponsor_fees = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Lease leases = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLeases() - { - return $this->leases; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Lease leases = 8; - * @param array<\Waves\InvokeScriptResult\Lease>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLeases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\Lease::class); - $this->leases = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.LeaseCancel lease_cancels = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLeaseCancels() - { - return $this->lease_cancels; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.LeaseCancel lease_cancels = 9; - * @param array<\Waves\InvokeScriptResult\LeaseCancel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLeaseCancels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\LeaseCancel::class); - $this->lease_cancels = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Invocation invokes = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInvokes() - { - return $this->invokes; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Invocation invokes = 10; - * @param array<\Waves\InvokeScriptResult\Invocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInvokes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\Invocation::class); - $this->invokes = $arr; - - return $this; - } - -} - diff --git a/protobuf/Waves/InvokeScriptResult/Burn.php b/protobuf/Waves/InvokeScriptResult/Burn.php deleted file mode 100644 index ce99a53..0000000 --- a/protobuf/Waves/InvokeScriptResult/Burn.php +++ /dev/null @@ -1,88 +0,0 @@ -waves.InvokeScriptResult.Burn - */ -class Burn extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes asset_id = 1; - */ - protected $asset_id = ''; - /** - * Generated from protobuf field int64 amount = 2; - */ - protected $amount = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset_id - * @type int|string $amount - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @return string - */ - public function getAssetId() - { - return $this->asset_id; - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @param string $var - * @return $this - */ - public function setAssetId($var) - { - GPBUtil::checkString($var, False); - $this->asset_id = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Burn::class, \Waves\InvokeScriptResult_Burn::class); - diff --git a/protobuf/Waves/InvokeScriptResult/Call.php b/protobuf/Waves/InvokeScriptResult/Call.php deleted file mode 100644 index 5d4a4ac..0000000 --- a/protobuf/Waves/InvokeScriptResult/Call.php +++ /dev/null @@ -1,120 +0,0 @@ -waves.InvokeScriptResult.Call - */ -class Call extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string function = 1; - */ - protected $function = ''; - /** - * Generated from protobuf field repeated bytes args_bytes = 2 [deprecated = true]; - * @deprecated - */ - private $args_bytes; - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Call.Argument args = 3; - */ - private $args; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $function - * @type array|\Google\Protobuf\Internal\RepeatedField $args_bytes - * @type array<\Waves\InvokeScriptResult\Call\Argument>|\Google\Protobuf\Internal\RepeatedField $args - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string function = 1; - * @return string - */ - public function getFunction() - { - return $this->function; - } - - /** - * Generated from protobuf field string function = 1; - * @param string $var - * @return $this - */ - public function setFunction($var) - { - GPBUtil::checkString($var, True); - $this->function = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated bytes args_bytes = 2 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getArgsBytes() - { - @trigger_error('args_bytes is deprecated.', E_USER_DEPRECATED); - return $this->args_bytes; - } - - /** - * Generated from protobuf field repeated bytes args_bytes = 2 [deprecated = true]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setArgsBytes($var) - { - @trigger_error('args_bytes is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->args_bytes = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Call.Argument args = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getArgs() - { - return $this->args; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Call.Argument args = 3; - * @param array<\Waves\InvokeScriptResult\Call\Argument>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setArgs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\Call\Argument::class); - $this->args = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Call::class, \Waves\InvokeScriptResult_Call::class); - diff --git a/protobuf/Waves/InvokeScriptResult/Call/Argument.php b/protobuf/Waves/InvokeScriptResult/Call/Argument.php deleted file mode 100644 index 411cf4c..0000000 --- a/protobuf/Waves/InvokeScriptResult/Call/Argument.php +++ /dev/null @@ -1,211 +0,0 @@ -waves.InvokeScriptResult.Call.Argument - */ -class Argument extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $integer_value - * @type string $binary_value - * @type string $string_value - * @type bool $boolean_value - * @type string $case_obj - * @type \Waves\InvokeScriptResult\Call\Argument\PBList $list - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field int64 integer_value = 1; - * @return int|string - */ - public function getIntegerValue() - { - return $this->readOneof(1); - } - - public function hasIntegerValue() - { - return $this->hasOneof(1); - } - - /** - * Generated from protobuf field int64 integer_value = 1; - * @param int|string $var - * @return $this - */ - public function setIntegerValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Generated from protobuf field bytes binary_value = 2; - * @return string - */ - public function getBinaryValue() - { - return $this->readOneof(2); - } - - public function hasBinaryValue() - { - return $this->hasOneof(2); - } - - /** - * Generated from protobuf field bytes binary_value = 2; - * @param string $var - * @return $this - */ - public function setBinaryValue($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Generated from protobuf field string string_value = 3; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(3); - } - - public function hasStringValue() - { - return $this->hasOneof(3); - } - - /** - * Generated from protobuf field string string_value = 3; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Generated from protobuf field bool boolean_value = 4; - * @return bool - */ - public function getBooleanValue() - { - return $this->readOneof(4); - } - - public function hasBooleanValue() - { - return $this->hasOneof(4); - } - - /** - * Generated from protobuf field bool boolean_value = 4; - * @param bool $var - * @return $this - */ - public function setBooleanValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Generated from protobuf field bytes case_obj = 5; - * @return string - */ - public function getCaseObj() - { - return $this->readOneof(5); - } - - public function hasCaseObj() - { - return $this->hasOneof(5); - } - - /** - * Generated from protobuf field bytes case_obj = 5; - * @param string $var - * @return $this - */ - public function setCaseObj($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.InvokeScriptResult.Call.Argument.List list = 10; - * @return \Waves\InvokeScriptResult\Call\Argument\PBList|null - */ - public function getList() - { - return $this->readOneof(10); - } - - public function hasList() - { - return $this->hasOneof(10); - } - - /** - * Generated from protobuf field .waves.InvokeScriptResult.Call.Argument.List list = 10; - * @param \Waves\InvokeScriptResult\Call\Argument\PBList $var - * @return $this - */ - public function setList($var) - { - GPBUtil::checkMessage($var, \Waves\InvokeScriptResult\Call\Argument\PBList::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Argument::class, \Waves\InvokeScriptResult_Call_Argument::class); - diff --git a/protobuf/Waves/InvokeScriptResult/Call/Argument/PBList.php b/protobuf/Waves/InvokeScriptResult/Call/Argument/PBList.php deleted file mode 100644 index 7923908..0000000 --- a/protobuf/Waves/InvokeScriptResult/Call/Argument/PBList.php +++ /dev/null @@ -1,61 +0,0 @@ -waves.InvokeScriptResult.Call.Argument.List - */ -class PBList extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Call.Argument items = 1; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Waves\InvokeScriptResult\Call\Argument>|\Google\Protobuf\Internal\RepeatedField $items - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Call.Argument items = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * Generated from protobuf field repeated .waves.InvokeScriptResult.Call.Argument items = 1; - * @param array<\Waves\InvokeScriptResult\Call\Argument>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\InvokeScriptResult\Call\Argument::class); - $this->items = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PBList::class, \Waves\InvokeScriptResult_Call_Argument_List::class); - diff --git a/protobuf/Waves/InvokeScriptResult/ErrorMessage.php b/protobuf/Waves/InvokeScriptResult/ErrorMessage.php deleted file mode 100644 index b3f0c78..0000000 --- a/protobuf/Waves/InvokeScriptResult/ErrorMessage.php +++ /dev/null @@ -1,88 +0,0 @@ -waves.InvokeScriptResult.ErrorMessage - */ -class ErrorMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field int32 code = 1; - */ - protected $code = 0; - /** - * Generated from protobuf field string text = 2; - */ - protected $text = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $code - * @type string $text - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field int32 code = 1; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * Generated from protobuf field int32 code = 1; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkInt32($var); - $this->code = $var; - - return $this; - } - - /** - * Generated from protobuf field string text = 2; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Generated from protobuf field string text = 2; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ErrorMessage::class, \Waves\InvokeScriptResult_ErrorMessage::class); - diff --git a/protobuf/Waves/InvokeScriptResult/Invocation.php b/protobuf/Waves/InvokeScriptResult/Invocation.php deleted file mode 100644 index 9d4611e..0000000 --- a/protobuf/Waves/InvokeScriptResult/Invocation.php +++ /dev/null @@ -1,162 +0,0 @@ -waves.InvokeScriptResult.Invocation - */ -class Invocation extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes dApp = 1; - */ - protected $dApp = ''; - /** - * Generated from protobuf field .waves.InvokeScriptResult.Call call = 2; - */ - protected $call = null; - /** - * Generated from protobuf field repeated .waves.Amount payments = 3; - */ - private $payments; - /** - * Generated from protobuf field .waves.InvokeScriptResult stateChanges = 4; - */ - protected $stateChanges = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dApp - * @type \Waves\InvokeScriptResult\Call $call - * @type array<\Waves\Amount>|\Google\Protobuf\Internal\RepeatedField $payments - * @type \Waves\InvokeScriptResult $stateChanges - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes dApp = 1; - * @return string - */ - public function getDApp() - { - return $this->dApp; - } - - /** - * Generated from protobuf field bytes dApp = 1; - * @param string $var - * @return $this - */ - public function setDApp($var) - { - GPBUtil::checkString($var, False); - $this->dApp = $var; - - return $this; - } - - /** - * Generated from protobuf field .waves.InvokeScriptResult.Call call = 2; - * @return \Waves\InvokeScriptResult\Call|null - */ - public function getCall() - { - return $this->call; - } - - public function hasCall() - { - return isset($this->call); - } - - public function clearCall() - { - unset($this->call); - } - - /** - * Generated from protobuf field .waves.InvokeScriptResult.Call call = 2; - * @param \Waves\InvokeScriptResult\Call $var - * @return $this - */ - public function setCall($var) - { - GPBUtil::checkMessage($var, \Waves\InvokeScriptResult\Call::class); - $this->call = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.Amount payments = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPayments() - { - return $this->payments; - } - - /** - * Generated from protobuf field repeated .waves.Amount payments = 3; - * @param array<\Waves\Amount>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPayments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\Amount::class); - $this->payments = $arr; - - return $this; - } - - /** - * Generated from protobuf field .waves.InvokeScriptResult stateChanges = 4; - * @return \Waves\InvokeScriptResult|null - */ - public function getStateChanges() - { - return $this->stateChanges; - } - - public function hasStateChanges() - { - return isset($this->stateChanges); - } - - public function clearStateChanges() - { - unset($this->stateChanges); - } - - /** - * Generated from protobuf field .waves.InvokeScriptResult stateChanges = 4; - * @param \Waves\InvokeScriptResult $var - * @return $this - */ - public function setStateChanges($var) - { - GPBUtil::checkMessage($var, \Waves\InvokeScriptResult::class); - $this->stateChanges = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Invocation::class, \Waves\InvokeScriptResult_Invocation::class); - diff --git a/protobuf/Waves/InvokeScriptResult/Issue.php b/protobuf/Waves/InvokeScriptResult/Issue.php deleted file mode 100644 index 538526b..0000000 --- a/protobuf/Waves/InvokeScriptResult/Issue.php +++ /dev/null @@ -1,250 +0,0 @@ -waves.InvokeScriptResult.Issue - */ -class Issue extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes asset_id = 1; - */ - protected $asset_id = ''; - /** - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Generated from protobuf field int64 amount = 4; - */ - protected $amount = 0; - /** - * Generated from protobuf field int32 decimals = 5; - */ - protected $decimals = 0; - /** - * Generated from protobuf field bool reissuable = 6; - */ - protected $reissuable = false; - /** - * Generated from protobuf field bytes script = 7; - */ - protected $script = ''; - /** - * Generated from protobuf field int64 nonce = 8; - */ - protected $nonce = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset_id - * @type string $name - * @type string $description - * @type int|string $amount - * @type int $decimals - * @type bool $reissuable - * @type string $script - * @type int|string $nonce - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @return string - */ - public function getAssetId() - { - return $this->asset_id; - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @param string $var - * @return $this - */ - public function setAssetId($var) - { - GPBUtil::checkString($var, False); - $this->asset_id = $var; - - return $this; - } - - /** - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 4; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 4; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 decimals = 5; - * @return int - */ - public function getDecimals() - { - return $this->decimals; - } - - /** - * Generated from protobuf field int32 decimals = 5; - * @param int $var - * @return $this - */ - public function setDecimals($var) - { - GPBUtil::checkInt32($var); - $this->decimals = $var; - - return $this; - } - - /** - * Generated from protobuf field bool reissuable = 6; - * @return bool - */ - public function getReissuable() - { - return $this->reissuable; - } - - /** - * Generated from protobuf field bool reissuable = 6; - * @param bool $var - * @return $this - */ - public function setReissuable($var) - { - GPBUtil::checkBool($var); - $this->reissuable = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes script = 7; - * @return string - */ - public function getScript() - { - return $this->script; - } - - /** - * Generated from protobuf field bytes script = 7; - * @param string $var - * @return $this - */ - public function setScript($var) - { - GPBUtil::checkString($var, False); - $this->script = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 nonce = 8; - * @return int|string - */ - public function getNonce() - { - return $this->nonce; - } - - /** - * Generated from protobuf field int64 nonce = 8; - * @param int|string $var - * @return $this - */ - public function setNonce($var) - { - GPBUtil::checkInt64($var); - $this->nonce = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Issue::class, \Waves\InvokeScriptResult_Issue::class); - diff --git a/protobuf/Waves/InvokeScriptResult/Lease.php b/protobuf/Waves/InvokeScriptResult/Lease.php deleted file mode 100644 index 23dce43..0000000 --- a/protobuf/Waves/InvokeScriptResult/Lease.php +++ /dev/null @@ -1,152 +0,0 @@ -waves.InvokeScriptResult.Lease - */ -class Lease extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - */ - protected $recipient = null; - /** - * Generated from protobuf field int64 amount = 2; - */ - protected $amount = 0; - /** - * Generated from protobuf field int64 nonce = 3; - */ - protected $nonce = 0; - /** - * Generated from protobuf field bytes lease_id = 4; - */ - protected $lease_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Recipient $recipient - * @type int|string $amount - * @type int|string $nonce - * @type string $lease_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - * @return \Waves\Recipient|null - */ - public function getRecipient() - { - return $this->recipient; - } - - public function hasRecipient() - { - return isset($this->recipient); - } - - public function clearRecipient() - { - unset($this->recipient); - } - - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - * @param \Waves\Recipient $var - * @return $this - */ - public function setRecipient($var) - { - GPBUtil::checkMessage($var, \Waves\Recipient::class); - $this->recipient = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 nonce = 3; - * @return int|string - */ - public function getNonce() - { - return $this->nonce; - } - - /** - * Generated from protobuf field int64 nonce = 3; - * @param int|string $var - * @return $this - */ - public function setNonce($var) - { - GPBUtil::checkInt64($var); - $this->nonce = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes lease_id = 4; - * @return string - */ - public function getLeaseId() - { - return $this->lease_id; - } - - /** - * Generated from protobuf field bytes lease_id = 4; - * @param string $var - * @return $this - */ - public function setLeaseId($var) - { - GPBUtil::checkString($var, False); - $this->lease_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Lease::class, \Waves\InvokeScriptResult_Lease::class); - diff --git a/protobuf/Waves/InvokeScriptResult/LeaseCancel.php b/protobuf/Waves/InvokeScriptResult/LeaseCancel.php deleted file mode 100644 index 6dd63af..0000000 --- a/protobuf/Waves/InvokeScriptResult/LeaseCancel.php +++ /dev/null @@ -1,61 +0,0 @@ -waves.InvokeScriptResult.LeaseCancel - */ -class LeaseCancel extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes lease_id = 1; - */ - protected $lease_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $lease_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes lease_id = 1; - * @return string - */ - public function getLeaseId() - { - return $this->lease_id; - } - - /** - * Generated from protobuf field bytes lease_id = 1; - * @param string $var - * @return $this - */ - public function setLeaseId($var) - { - GPBUtil::checkString($var, False); - $this->lease_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LeaseCancel::class, \Waves\InvokeScriptResult_LeaseCancel::class); - diff --git a/protobuf/Waves/InvokeScriptResult/Payment.php b/protobuf/Waves/InvokeScriptResult/Payment.php deleted file mode 100644 index df1ef90..0000000 --- a/protobuf/Waves/InvokeScriptResult/Payment.php +++ /dev/null @@ -1,98 +0,0 @@ -waves.InvokeScriptResult.Payment - */ -class Payment extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes address = 1; - */ - protected $address = ''; - /** - * Generated from protobuf field .waves.Amount amount = 2; - */ - protected $amount = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $address - * @type \Waves\Amount $amount - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes address = 1; - * @return string - */ - public function getAddress() - { - return $this->address; - } - - /** - * Generated from protobuf field bytes address = 1; - * @param string $var - * @return $this - */ - public function setAddress($var) - { - GPBUtil::checkString($var, False); - $this->address = $var; - - return $this; - } - - /** - * Generated from protobuf field .waves.Amount amount = 2; - * @return \Waves\Amount|null - */ - public function getAmount() - { - return $this->amount; - } - - public function hasAmount() - { - return isset($this->amount); - } - - public function clearAmount() - { - unset($this->amount); - } - - /** - * Generated from protobuf field .waves.Amount amount = 2; - * @param \Waves\Amount $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkMessage($var, \Waves\Amount::class); - $this->amount = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Payment::class, \Waves\InvokeScriptResult_Payment::class); - diff --git a/protobuf/Waves/InvokeScriptResult/Reissue.php b/protobuf/Waves/InvokeScriptResult/Reissue.php deleted file mode 100644 index e1f13ca..0000000 --- a/protobuf/Waves/InvokeScriptResult/Reissue.php +++ /dev/null @@ -1,115 +0,0 @@ -waves.InvokeScriptResult.Reissue - */ -class Reissue extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes asset_id = 1; - */ - protected $asset_id = ''; - /** - * Generated from protobuf field int64 amount = 2; - */ - protected $amount = 0; - /** - * Generated from protobuf field bool is_reissuable = 3; - */ - protected $is_reissuable = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset_id - * @type int|string $amount - * @type bool $is_reissuable - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @return string - */ - public function getAssetId() - { - return $this->asset_id; - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @param string $var - * @return $this - */ - public function setAssetId($var) - { - GPBUtil::checkString($var, False); - $this->asset_id = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - - /** - * Generated from protobuf field bool is_reissuable = 3; - * @return bool - */ - public function getIsReissuable() - { - return $this->is_reissuable; - } - - /** - * Generated from protobuf field bool is_reissuable = 3; - * @param bool $var - * @return $this - */ - public function setIsReissuable($var) - { - GPBUtil::checkBool($var); - $this->is_reissuable = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Reissue::class, \Waves\InvokeScriptResult_Reissue::class); - diff --git a/protobuf/Waves/InvokeScriptResult/SponsorFee.php b/protobuf/Waves/InvokeScriptResult/SponsorFee.php deleted file mode 100644 index 4e7affe..0000000 --- a/protobuf/Waves/InvokeScriptResult/SponsorFee.php +++ /dev/null @@ -1,71 +0,0 @@ -waves.InvokeScriptResult.SponsorFee - */ -class SponsorFee extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Amount min_fee = 1; - */ - protected $min_fee = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Amount $min_fee - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\InvokeScriptResult::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Amount min_fee = 1; - * @return \Waves\Amount|null - */ - public function getMinFee() - { - return $this->min_fee; - } - - public function hasMinFee() - { - return isset($this->min_fee); - } - - public function clearMinFee() - { - unset($this->min_fee); - } - - /** - * Generated from protobuf field .waves.Amount min_fee = 1; - * @param \Waves\Amount $var - * @return $this - */ - public function setMinFee($var) - { - GPBUtil::checkMessage($var, \Waves\Amount::class); - $this->min_fee = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SponsorFee::class, \Waves\InvokeScriptResult_SponsorFee::class); - diff --git a/protobuf/Waves/InvokeScriptTransactionData.php b/protobuf/Waves/InvokeScriptTransactionData.php deleted file mode 100644 index 62129a8..0000000 --- a/protobuf/Waves/InvokeScriptTransactionData.php +++ /dev/null @@ -1,122 +0,0 @@ -waves.InvokeScriptTransactionData - */ -class InvokeScriptTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Recipient d_app = 1; - */ - protected $d_app = null; - /** - * Generated from protobuf field bytes function_call = 2; - */ - protected $function_call = ''; - /** - * Generated from protobuf field repeated .waves.Amount payments = 3; - */ - private $payments; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Recipient $d_app - * @type string $function_call - * @type array<\Waves\Amount>|\Google\Protobuf\Internal\RepeatedField $payments - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Recipient d_app = 1; - * @return \Waves\Recipient|null - */ - public function getDApp() - { - return $this->d_app; - } - - public function hasDApp() - { - return isset($this->d_app); - } - - public function clearDApp() - { - unset($this->d_app); - } - - /** - * Generated from protobuf field .waves.Recipient d_app = 1; - * @param \Waves\Recipient $var - * @return $this - */ - public function setDApp($var) - { - GPBUtil::checkMessage($var, \Waves\Recipient::class); - $this->d_app = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes function_call = 2; - * @return string - */ - public function getFunctionCall() - { - return $this->function_call; - } - - /** - * Generated from protobuf field bytes function_call = 2; - * @param string $var - * @return $this - */ - public function setFunctionCall($var) - { - GPBUtil::checkString($var, False); - $this->function_call = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.Amount payments = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPayments() - { - return $this->payments; - } - - /** - * Generated from protobuf field repeated .waves.Amount payments = 3; - * @param array<\Waves\Amount>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPayments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\Amount::class); - $this->payments = $arr; - - return $this; - } - -} - diff --git a/protobuf/Waves/IssueTransactionData.php b/protobuf/Waves/IssueTransactionData.php deleted file mode 100644 index f3c5bde..0000000 --- a/protobuf/Waves/IssueTransactionData.php +++ /dev/null @@ -1,193 +0,0 @@ -waves.IssueTransactionData - */ -class IssueTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Generated from protobuf field int64 amount = 3; - */ - protected $amount = 0; - /** - * Generated from protobuf field int32 decimals = 4; - */ - protected $decimals = 0; - /** - * Generated from protobuf field bool reissuable = 5; - */ - protected $reissuable = false; - /** - * Generated from protobuf field bytes script = 6; - */ - protected $script = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * @type string $description - * @type int|string $amount - * @type int $decimals - * @type bool $reissuable - * @type string $script - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 3; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 3; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 decimals = 4; - * @return int - */ - public function getDecimals() - { - return $this->decimals; - } - - /** - * Generated from protobuf field int32 decimals = 4; - * @param int $var - * @return $this - */ - public function setDecimals($var) - { - GPBUtil::checkInt32($var); - $this->decimals = $var; - - return $this; - } - - /** - * Generated from protobuf field bool reissuable = 5; - * @return bool - */ - public function getReissuable() - { - return $this->reissuable; - } - - /** - * Generated from protobuf field bool reissuable = 5; - * @param bool $var - * @return $this - */ - public function setReissuable($var) - { - GPBUtil::checkBool($var); - $this->reissuable = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes script = 6; - * @return string - */ - public function getScript() - { - return $this->script; - } - - /** - * Generated from protobuf field bytes script = 6; - * @param string $var - * @return $this - */ - public function setScript($var) - { - GPBUtil::checkString($var, False); - $this->script = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/LeaseCancelTransactionData.php b/protobuf/Waves/LeaseCancelTransactionData.php deleted file mode 100644 index a7ae96d..0000000 --- a/protobuf/Waves/LeaseCancelTransactionData.php +++ /dev/null @@ -1,58 +0,0 @@ -waves.LeaseCancelTransactionData - */ -class LeaseCancelTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes lease_id = 1; - */ - protected $lease_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $lease_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes lease_id = 1; - * @return string - */ - public function getLeaseId() - { - return $this->lease_id; - } - - /** - * Generated from protobuf field bytes lease_id = 1; - * @param string $var - * @return $this - */ - public function setLeaseId($var) - { - GPBUtil::checkString($var, False); - $this->lease_id = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/LeaseTransactionData.php b/protobuf/Waves/LeaseTransactionData.php deleted file mode 100644 index fc49c0b..0000000 --- a/protobuf/Waves/LeaseTransactionData.php +++ /dev/null @@ -1,95 +0,0 @@ -waves.LeaseTransactionData - */ -class LeaseTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - */ - protected $recipient = null; - /** - * Generated from protobuf field int64 amount = 2; - */ - protected $amount = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Recipient $recipient - * @type int|string $amount - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - * @return \Waves\Recipient|null - */ - public function getRecipient() - { - return $this->recipient; - } - - public function hasRecipient() - { - return isset($this->recipient); - } - - public function clearRecipient() - { - unset($this->recipient); - } - - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - * @param \Waves\Recipient $var - * @return $this - */ - public function setRecipient($var) - { - GPBUtil::checkMessage($var, \Waves\Recipient::class); - $this->recipient = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/MassTransferTransactionData.php b/protobuf/Waves/MassTransferTransactionData.php deleted file mode 100644 index 3166a35..0000000 --- a/protobuf/Waves/MassTransferTransactionData.php +++ /dev/null @@ -1,112 +0,0 @@ -waves.MassTransferTransactionData - */ -class MassTransferTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes asset_id = 1; - */ - protected $asset_id = ''; - /** - * Generated from protobuf field repeated .waves.MassTransferTransactionData.Transfer transfers = 2; - */ - private $transfers; - /** - * Generated from protobuf field bytes attachment = 3; - */ - protected $attachment = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset_id - * @type array<\Waves\MassTransferTransactionData\Transfer>|\Google\Protobuf\Internal\RepeatedField $transfers - * @type string $attachment - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @return string - */ - public function getAssetId() - { - return $this->asset_id; - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @param string $var - * @return $this - */ - public function setAssetId($var) - { - GPBUtil::checkString($var, False); - $this->asset_id = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.MassTransferTransactionData.Transfer transfers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransfers() - { - return $this->transfers; - } - - /** - * Generated from protobuf field repeated .waves.MassTransferTransactionData.Transfer transfers = 2; - * @param array<\Waves\MassTransferTransactionData\Transfer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransfers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\MassTransferTransactionData\Transfer::class); - $this->transfers = $arr; - - return $this; - } - - /** - * Generated from protobuf field bytes attachment = 3; - * @return string - */ - public function getAttachment() - { - return $this->attachment; - } - - /** - * Generated from protobuf field bytes attachment = 3; - * @param string $var - * @return $this - */ - public function setAttachment($var) - { - GPBUtil::checkString($var, False); - $this->attachment = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/MassTransferTransactionData/Transfer.php b/protobuf/Waves/MassTransferTransactionData/Transfer.php deleted file mode 100644 index e1f12ad..0000000 --- a/protobuf/Waves/MassTransferTransactionData/Transfer.php +++ /dev/null @@ -1,98 +0,0 @@ -waves.MassTransferTransactionData.Transfer - */ -class Transfer extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - */ - protected $recipient = null; - /** - * Generated from protobuf field int64 amount = 2; - */ - protected $amount = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Recipient $recipient - * @type int|string $amount - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - * @return \Waves\Recipient|null - */ - public function getRecipient() - { - return $this->recipient; - } - - public function hasRecipient() - { - return isset($this->recipient); - } - - public function clearRecipient() - { - unset($this->recipient); - } - - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - * @param \Waves\Recipient $var - * @return $this - */ - public function setRecipient($var) - { - GPBUtil::checkMessage($var, \Waves\Recipient::class); - $this->recipient = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Transfer::class, \Waves\MassTransferTransactionData_Transfer::class); - diff --git a/protobuf/Waves/MicroBlock.php b/protobuf/Waves/MicroBlock.php deleted file mode 100644 index 0fd5f2e..0000000 --- a/protobuf/Waves/MicroBlock.php +++ /dev/null @@ -1,166 +0,0 @@ -waves.MicroBlock - */ -class MicroBlock extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field int32 version = 1; - */ - protected $version = 0; - /** - * Generated from protobuf field bytes reference = 2; - */ - protected $reference = ''; - /** - * Generated from protobuf field bytes updated_block_signature = 3; - */ - protected $updated_block_signature = ''; - /** - * Generated from protobuf field bytes sender_public_key = 4; - */ - protected $sender_public_key = ''; - /** - * Generated from protobuf field repeated .waves.SignedTransaction transactions = 5; - */ - private $transactions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $version - * @type string $reference - * @type string $updated_block_signature - * @type string $sender_public_key - * @type array<\Waves\SignedTransaction>|\Google\Protobuf\Internal\RepeatedField $transactions - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Block::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field int32 version = 1; - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Generated from protobuf field int32 version = 1; - * @param int $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkInt32($var); - $this->version = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes reference = 2; - * @return string - */ - public function getReference() - { - return $this->reference; - } - - /** - * Generated from protobuf field bytes reference = 2; - * @param string $var - * @return $this - */ - public function setReference($var) - { - GPBUtil::checkString($var, False); - $this->reference = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes updated_block_signature = 3; - * @return string - */ - public function getUpdatedBlockSignature() - { - return $this->updated_block_signature; - } - - /** - * Generated from protobuf field bytes updated_block_signature = 3; - * @param string $var - * @return $this - */ - public function setUpdatedBlockSignature($var) - { - GPBUtil::checkString($var, False); - $this->updated_block_signature = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes sender_public_key = 4; - * @return string - */ - public function getSenderPublicKey() - { - return $this->sender_public_key; - } - - /** - * Generated from protobuf field bytes sender_public_key = 4; - * @param string $var - * @return $this - */ - public function setSenderPublicKey($var) - { - GPBUtil::checkString($var, False); - $this->sender_public_key = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .waves.SignedTransaction transactions = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransactions() - { - return $this->transactions; - } - - /** - * Generated from protobuf field repeated .waves.SignedTransaction transactions = 5; - * @param array<\Waves\SignedTransaction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransactions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Waves\SignedTransaction::class); - $this->transactions = $arr; - - return $this; - } - -} - diff --git a/protobuf/Waves/Order.php b/protobuf/Waves/Order.php deleted file mode 100644 index 94720de..0000000 --- a/protobuf/Waves/Order.php +++ /dev/null @@ -1,440 +0,0 @@ -waves.Order - */ -class Order extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field int32 chain_id = 1; - */ - protected $chain_id = 0; - /** - * Generated from protobuf field bytes matcher_public_key = 3; - */ - protected $matcher_public_key = ''; - /** - * Generated from protobuf field .waves.AssetPair asset_pair = 4; - */ - protected $asset_pair = null; - /** - * Generated from protobuf field .waves.Order.Side order_side = 5; - */ - protected $order_side = 0; - /** - * Generated from protobuf field int64 amount = 6; - */ - protected $amount = 0; - /** - * Generated from protobuf field int64 price = 7; - */ - protected $price = 0; - /** - * Generated from protobuf field int64 timestamp = 8; - */ - protected $timestamp = 0; - /** - * Generated from protobuf field int64 expiration = 9; - */ - protected $expiration = 0; - /** - * Generated from protobuf field .waves.Amount matcher_fee = 10; - */ - protected $matcher_fee = null; - /** - * Generated from protobuf field int32 version = 11; - */ - protected $version = 0; - /** - * Generated from protobuf field repeated bytes proofs = 12; - */ - private $proofs; - /** - * Generated from protobuf field .waves.Order.PriceMode price_mode = 14; - */ - protected $price_mode = 0; - protected $sender; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $chain_id - * @type string $matcher_public_key - * @type \Waves\AssetPair $asset_pair - * @type int $order_side - * @type int|string $amount - * @type int|string $price - * @type int|string $timestamp - * @type int|string $expiration - * @type \Waves\Amount $matcher_fee - * @type int $version - * @type array|\Google\Protobuf\Internal\RepeatedField $proofs - * @type int $price_mode - * @type string $sender_public_key - * @type string $eip712_signature - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Order::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field int32 chain_id = 1; - * @return int - */ - public function getChainId() - { - return $this->chain_id; - } - - /** - * Generated from protobuf field int32 chain_id = 1; - * @param int $var - * @return $this - */ - public function setChainId($var) - { - GPBUtil::checkInt32($var); - $this->chain_id = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes matcher_public_key = 3; - * @return string - */ - public function getMatcherPublicKey() - { - return $this->matcher_public_key; - } - - /** - * Generated from protobuf field bytes matcher_public_key = 3; - * @param string $var - * @return $this - */ - public function setMatcherPublicKey($var) - { - GPBUtil::checkString($var, False); - $this->matcher_public_key = $var; - - return $this; - } - - /** - * Generated from protobuf field .waves.AssetPair asset_pair = 4; - * @return \Waves\AssetPair|null - */ - public function getAssetPair() - { - return $this->asset_pair; - } - - public function hasAssetPair() - { - return isset($this->asset_pair); - } - - public function clearAssetPair() - { - unset($this->asset_pair); - } - - /** - * Generated from protobuf field .waves.AssetPair asset_pair = 4; - * @param \Waves\AssetPair $var - * @return $this - */ - public function setAssetPair($var) - { - GPBUtil::checkMessage($var, \Waves\AssetPair::class); - $this->asset_pair = $var; - - return $this; - } - - /** - * Generated from protobuf field .waves.Order.Side order_side = 5; - * @return int - */ - public function getOrderSide() - { - return $this->order_side; - } - - /** - * Generated from protobuf field .waves.Order.Side order_side = 5; - * @param int $var - * @return $this - */ - public function setOrderSide($var) - { - GPBUtil::checkEnum($var, \Waves\Order\Side::class); - $this->order_side = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 6; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 6; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 price = 7; - * @return int|string - */ - public function getPrice() - { - return $this->price; - } - - /** - * Generated from protobuf field int64 price = 7; - * @param int|string $var - * @return $this - */ - public function setPrice($var) - { - GPBUtil::checkInt64($var); - $this->price = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 timestamp = 8; - * @return int|string - */ - public function getTimestamp() - { - return $this->timestamp; - } - - /** - * Generated from protobuf field int64 timestamp = 8; - * @param int|string $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkInt64($var); - $this->timestamp = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 expiration = 9; - * @return int|string - */ - public function getExpiration() - { - return $this->expiration; - } - - /** - * Generated from protobuf field int64 expiration = 9; - * @param int|string $var - * @return $this - */ - public function setExpiration($var) - { - GPBUtil::checkInt64($var); - $this->expiration = $var; - - return $this; - } - - /** - * Generated from protobuf field .waves.Amount matcher_fee = 10; - * @return \Waves\Amount|null - */ - public function getMatcherFee() - { - return $this->matcher_fee; - } - - public function hasMatcherFee() - { - return isset($this->matcher_fee); - } - - public function clearMatcherFee() - { - unset($this->matcher_fee); - } - - /** - * Generated from protobuf field .waves.Amount matcher_fee = 10; - * @param \Waves\Amount $var - * @return $this - */ - public function setMatcherFee($var) - { - GPBUtil::checkMessage($var, \Waves\Amount::class); - $this->matcher_fee = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 version = 11; - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Generated from protobuf field int32 version = 11; - * @param int $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkInt32($var); - $this->version = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated bytes proofs = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProofs() - { - return $this->proofs; - } - - /** - * Generated from protobuf field repeated bytes proofs = 12; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProofs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->proofs = $arr; - - return $this; - } - - /** - * Generated from protobuf field .waves.Order.PriceMode price_mode = 14; - * @return int - */ - public function getPriceMode() - { - return $this->price_mode; - } - - /** - * Generated from protobuf field .waves.Order.PriceMode price_mode = 14; - * @param int $var - * @return $this - */ - public function setPriceMode($var) - { - GPBUtil::checkEnum($var, \Waves\Order\PriceMode::class); - $this->price_mode = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes sender_public_key = 2; - * @return string - */ - public function getSenderPublicKey() - { - return $this->readOneof(2); - } - - public function hasSenderPublicKey() - { - return $this->hasOneof(2); - } - - /** - * Generated from protobuf field bytes sender_public_key = 2; - * @param string $var - * @return $this - */ - public function setSenderPublicKey($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Generated from protobuf field bytes eip712_signature = 13; - * @return string - */ - public function getEip712Signature() - { - return $this->readOneof(13); - } - - public function hasEip712Signature() - { - return $this->hasOneof(13); - } - - /** - * Generated from protobuf field bytes eip712_signature = 13; - * @param string $var - * @return $this - */ - public function setEip712Signature($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * @return string - */ - public function getSender() - { - return $this->whichOneof("sender"); - } - -} - diff --git a/protobuf/Waves/Order/PriceMode.php b/protobuf/Waves/Order/PriceMode.php deleted file mode 100644 index 5bbf4f7..0000000 --- a/protobuf/Waves/Order/PriceMode.php +++ /dev/null @@ -1,60 +0,0 @@ -waves.Order.PriceMode - */ -class PriceMode -{ - /** - * Generated from protobuf enum DEFAULT = 0; - */ - const PBDEFAULT = 0; - /** - * Generated from protobuf enum FIXED_DECIMALS = 1; - */ - const FIXED_DECIMALS = 1; - /** - * Generated from protobuf enum ASSET_DECIMALS = 2; - */ - const ASSET_DECIMALS = 2; - - private static $valueToName = [ - self::PBDEFAULT => 'DEFAULT', - self::FIXED_DECIMALS => 'FIXED_DECIMALS', - self::ASSET_DECIMALS => 'ASSET_DECIMALS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PriceMode::class, \Waves\Order_PriceMode::class); - diff --git a/protobuf/Waves/Order/Side.php b/protobuf/Waves/Order/Side.php deleted file mode 100644 index 9df4c01..0000000 --- a/protobuf/Waves/Order/Side.php +++ /dev/null @@ -1,51 +0,0 @@ -waves.Order.Side - */ -class Side -{ - /** - * Generated from protobuf enum BUY = 0; - */ - const BUY = 0; - /** - * Generated from protobuf enum SELL = 1; - */ - const SELL = 1; - - private static $valueToName = [ - self::BUY => 'BUY', - self::SELL => 'SELL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Side::class, \Waves\Order_Side::class); - diff --git a/protobuf/Waves/PaymentTransactionData.php b/protobuf/Waves/PaymentTransactionData.php deleted file mode 100644 index f5ee486..0000000 --- a/protobuf/Waves/PaymentTransactionData.php +++ /dev/null @@ -1,85 +0,0 @@ -waves.PaymentTransactionData - */ -class PaymentTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes recipient_address = 1; - */ - protected $recipient_address = ''; - /** - * Generated from protobuf field int64 amount = 2; - */ - protected $amount = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $recipient_address - * @type int|string $amount - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes recipient_address = 1; - * @return string - */ - public function getRecipientAddress() - { - return $this->recipient_address; - } - - /** - * Generated from protobuf field bytes recipient_address = 1; - * @param string $var - * @return $this - */ - public function setRecipientAddress($var) - { - GPBUtil::checkString($var, False); - $this->recipient_address = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @return int|string - */ - public function getAmount() - { - return $this->amount; - } - - /** - * Generated from protobuf field int64 amount = 2; - * @param int|string $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkInt64($var); - $this->amount = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/Recipient.php b/protobuf/Waves/Recipient.php deleted file mode 100644 index d267dc6..0000000 --- a/protobuf/Waves/Recipient.php +++ /dev/null @@ -1,101 +0,0 @@ -waves.Recipient - */ -class Recipient extends \Google\Protobuf\Internal\Message -{ - protected $recipient; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $public_key_hash - * First 20 bytes of the result of the Keccak256(Blake2b256(publicKey)) hashing function. - * @type string $alias - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Recipient::initOnce(); - parent::__construct($data); - } - - /** - * First 20 bytes of the result of the Keccak256(Blake2b256(publicKey)) hashing function. - * - * Generated from protobuf field bytes public_key_hash = 1; - * @return string - */ - public function getPublicKeyHash() - { - return $this->readOneof(1); - } - - public function hasPublicKeyHash() - { - return $this->hasOneof(1); - } - - /** - * First 20 bytes of the result of the Keccak256(Blake2b256(publicKey)) hashing function. - * - * Generated from protobuf field bytes public_key_hash = 1; - * @param string $var - * @return $this - */ - public function setPublicKeyHash($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Generated from protobuf field string alias = 2; - * @return string - */ - public function getAlias() - { - return $this->readOneof(2); - } - - public function hasAlias() - { - return $this->hasOneof(2); - } - - /** - * Generated from protobuf field string alias = 2; - * @param string $var - * @return $this - */ - public function setAlias($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getRecipient() - { - return $this->whichOneof("recipient"); - } - -} - diff --git a/protobuf/Waves/ReissueTransactionData.php b/protobuf/Waves/ReissueTransactionData.php deleted file mode 100644 index 56e8801..0000000 --- a/protobuf/Waves/ReissueTransactionData.php +++ /dev/null @@ -1,95 +0,0 @@ -waves.ReissueTransactionData - */ -class ReissueTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Amount asset_amount = 1; - */ - protected $asset_amount = null; - /** - * Generated from protobuf field bool reissuable = 2; - */ - protected $reissuable = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Amount $asset_amount - * @type bool $reissuable - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Amount asset_amount = 1; - * @return \Waves\Amount|null - */ - public function getAssetAmount() - { - return $this->asset_amount; - } - - public function hasAssetAmount() - { - return isset($this->asset_amount); - } - - public function clearAssetAmount() - { - unset($this->asset_amount); - } - - /** - * Generated from protobuf field .waves.Amount asset_amount = 1; - * @param \Waves\Amount $var - * @return $this - */ - public function setAssetAmount($var) - { - GPBUtil::checkMessage($var, \Waves\Amount::class); - $this->asset_amount = $var; - - return $this; - } - - /** - * Generated from protobuf field bool reissuable = 2; - * @return bool - */ - public function getReissuable() - { - return $this->reissuable; - } - - /** - * Generated from protobuf field bool reissuable = 2; - * @param bool $var - * @return $this - */ - public function setReissuable($var) - { - GPBUtil::checkBool($var); - $this->reissuable = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/SetAssetScriptTransactionData.php b/protobuf/Waves/SetAssetScriptTransactionData.php deleted file mode 100644 index 14ae25f..0000000 --- a/protobuf/Waves/SetAssetScriptTransactionData.php +++ /dev/null @@ -1,85 +0,0 @@ -waves.SetAssetScriptTransactionData - */ -class SetAssetScriptTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes asset_id = 1; - */ - protected $asset_id = ''; - /** - * Generated from protobuf field bytes script = 2; - */ - protected $script = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset_id - * @type string $script - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @return string - */ - public function getAssetId() - { - return $this->asset_id; - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @param string $var - * @return $this - */ - public function setAssetId($var) - { - GPBUtil::checkString($var, False); - $this->asset_id = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes script = 2; - * @return string - */ - public function getScript() - { - return $this->script; - } - - /** - * Generated from protobuf field bytes script = 2; - * @param string $var - * @return $this - */ - public function setScript($var) - { - GPBUtil::checkString($var, False); - $this->script = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/SetScriptTransactionData.php b/protobuf/Waves/SetScriptTransactionData.php deleted file mode 100644 index 472044e..0000000 --- a/protobuf/Waves/SetScriptTransactionData.php +++ /dev/null @@ -1,58 +0,0 @@ -waves.SetScriptTransactionData - */ -class SetScriptTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes script = 1; - */ - protected $script = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $script - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes script = 1; - * @return string - */ - public function getScript() - { - return $this->script; - } - - /** - * Generated from protobuf field bytes script = 1; - * @param string $var - * @return $this - */ - public function setScript($var) - { - GPBUtil::checkString($var, False); - $this->script = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/SignedMicroBlock.php b/protobuf/Waves/SignedMicroBlock.php deleted file mode 100644 index 3cf0e05..0000000 --- a/protobuf/Waves/SignedMicroBlock.php +++ /dev/null @@ -1,122 +0,0 @@ -waves.SignedMicroBlock - */ -class SignedMicroBlock extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.MicroBlock micro_block = 1; - */ - protected $micro_block = null; - /** - * Generated from protobuf field bytes signature = 2; - */ - protected $signature = ''; - /** - * Generated from protobuf field bytes total_block_id = 3; - */ - protected $total_block_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\MicroBlock $micro_block - * @type string $signature - * @type string $total_block_id - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Block::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.MicroBlock micro_block = 1; - * @return \Waves\MicroBlock|null - */ - public function getMicroBlock() - { - return $this->micro_block; - } - - public function hasMicroBlock() - { - return isset($this->micro_block); - } - - public function clearMicroBlock() - { - unset($this->micro_block); - } - - /** - * Generated from protobuf field .waves.MicroBlock micro_block = 1; - * @param \Waves\MicroBlock $var - * @return $this - */ - public function setMicroBlock($var) - { - GPBUtil::checkMessage($var, \Waves\MicroBlock::class); - $this->micro_block = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes signature = 2; - * @return string - */ - public function getSignature() - { - return $this->signature; - } - - /** - * Generated from protobuf field bytes signature = 2; - * @param string $var - * @return $this - */ - public function setSignature($var) - { - GPBUtil::checkString($var, False); - $this->signature = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes total_block_id = 3; - * @return string - */ - public function getTotalBlockId() - { - return $this->total_block_id; - } - - /** - * Generated from protobuf field bytes total_block_id = 3; - * @param string $var - * @return $this - */ - public function setTotalBlockId($var) - { - GPBUtil::checkString($var, False); - $this->total_block_id = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/SignedTransaction.php b/protobuf/Waves/SignedTransaction.php deleted file mode 100644 index 078ecb1..0000000 --- a/protobuf/Waves/SignedTransaction.php +++ /dev/null @@ -1,123 +0,0 @@ -waves.SignedTransaction - */ -class SignedTransaction extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated bytes proofs = 2; - */ - private $proofs; - protected $transaction; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Transaction $waves_transaction - * @type string $ethereum_transaction - * @type array|\Google\Protobuf\Internal\RepeatedField $proofs - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Transaction waves_transaction = 1; - * @return \Waves\Transaction|null - */ - public function getWavesTransaction() - { - return $this->readOneof(1); - } - - public function hasWavesTransaction() - { - return $this->hasOneof(1); - } - - /** - * Generated from protobuf field .waves.Transaction waves_transaction = 1; - * @param \Waves\Transaction $var - * @return $this - */ - public function setWavesTransaction($var) - { - GPBUtil::checkMessage($var, \Waves\Transaction::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Generated from protobuf field bytes ethereum_transaction = 3; - * @return string - */ - public function getEthereumTransaction() - { - return $this->readOneof(3); - } - - public function hasEthereumTransaction() - { - return $this->hasOneof(3); - } - - /** - * Generated from protobuf field bytes ethereum_transaction = 3; - * @param string $var - * @return $this - */ - public function setEthereumTransaction($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Generated from protobuf field repeated bytes proofs = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProofs() - { - return $this->proofs; - } - - /** - * Generated from protobuf field repeated bytes proofs = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProofs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::BYTES); - $this->proofs = $arr; - - return $this; - } - - /** - * @return string - */ - public function getTransaction() - { - return $this->whichOneof("transaction"); - } - -} - diff --git a/protobuf/Waves/SponsorFeeTransactionData.php b/protobuf/Waves/SponsorFeeTransactionData.php deleted file mode 100644 index 8edd4ef..0000000 --- a/protobuf/Waves/SponsorFeeTransactionData.php +++ /dev/null @@ -1,68 +0,0 @@ -waves.SponsorFeeTransactionData - */ -class SponsorFeeTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Amount min_fee = 1; - */ - protected $min_fee = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Amount $min_fee - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Amount min_fee = 1; - * @return \Waves\Amount|null - */ - public function getMinFee() - { - return $this->min_fee; - } - - public function hasMinFee() - { - return isset($this->min_fee); - } - - public function clearMinFee() - { - unset($this->min_fee); - } - - /** - * Generated from protobuf field .waves.Amount min_fee = 1; - * @param \Waves\Amount $var - * @return $this - */ - public function setMinFee($var) - { - GPBUtil::checkMessage($var, \Waves\Amount::class); - $this->min_fee = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/Transaction.php b/protobuf/Waves/Transaction.php deleted file mode 100644 index 21feb78..0000000 --- a/protobuf/Waves/Transaction.php +++ /dev/null @@ -1,689 +0,0 @@ -waves.Transaction - */ -class Transaction extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field int32 chain_id = 1; - */ - protected $chain_id = 0; - /** - * Generated from protobuf field bytes sender_public_key = 2; - */ - protected $sender_public_key = ''; - /** - * Generated from protobuf field .waves.Amount fee = 3; - */ - protected $fee = null; - /** - * Generated from protobuf field int64 timestamp = 4; - */ - protected $timestamp = 0; - /** - * Generated from protobuf field int32 version = 5; - */ - protected $version = 0; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $chain_id - * @type string $sender_public_key - * @type \Waves\Amount $fee - * @type int|string $timestamp - * @type int $version - * @type \Waves\GenesisTransactionData $genesis - * @type \Waves\PaymentTransactionData $payment - * @type \Waves\IssueTransactionData $issue - * @type \Waves\TransferTransactionData $transfer - * @type \Waves\ReissueTransactionData $reissue - * @type \Waves\BurnTransactionData $burn - * @type \Waves\ExchangeTransactionData $exchange - * @type \Waves\LeaseTransactionData $lease - * @type \Waves\LeaseCancelTransactionData $lease_cancel - * @type \Waves\CreateAliasTransactionData $create_alias - * @type \Waves\MassTransferTransactionData $mass_transfer - * @type \Waves\DataTransactionData $data_transaction - * @type \Waves\SetScriptTransactionData $set_script - * @type \Waves\SponsorFeeTransactionData $sponsor_fee - * @type \Waves\SetAssetScriptTransactionData $set_asset_script - * @type \Waves\InvokeScriptTransactionData $invoke_script - * @type \Waves\UpdateAssetInfoTransactionData $update_asset_info - * @type \Waves\InvokeExpressionTransactionData $invoke_expression - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field int32 chain_id = 1; - * @return int - */ - public function getChainId() - { - return $this->chain_id; - } - - /** - * Generated from protobuf field int32 chain_id = 1; - * @param int $var - * @return $this - */ - public function setChainId($var) - { - GPBUtil::checkInt32($var); - $this->chain_id = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes sender_public_key = 2; - * @return string - */ - public function getSenderPublicKey() - { - return $this->sender_public_key; - } - - /** - * Generated from protobuf field bytes sender_public_key = 2; - * @param string $var - * @return $this - */ - public function setSenderPublicKey($var) - { - GPBUtil::checkString($var, False); - $this->sender_public_key = $var; - - return $this; - } - - /** - * Generated from protobuf field .waves.Amount fee = 3; - * @return \Waves\Amount|null - */ - public function getFee() - { - return $this->fee; - } - - public function hasFee() - { - return isset($this->fee); - } - - public function clearFee() - { - unset($this->fee); - } - - /** - * Generated from protobuf field .waves.Amount fee = 3; - * @param \Waves\Amount $var - * @return $this - */ - public function setFee($var) - { - GPBUtil::checkMessage($var, \Waves\Amount::class); - $this->fee = $var; - - return $this; - } - - /** - * Generated from protobuf field int64 timestamp = 4; - * @return int|string - */ - public function getTimestamp() - { - return $this->timestamp; - } - - /** - * Generated from protobuf field int64 timestamp = 4; - * @param int|string $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkInt64($var); - $this->timestamp = $var; - - return $this; - } - - /** - * Generated from protobuf field int32 version = 5; - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * Generated from protobuf field int32 version = 5; - * @param int $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkInt32($var); - $this->version = $var; - - return $this; - } - - /** - * Generated from protobuf field .waves.GenesisTransactionData genesis = 101; - * @return \Waves\GenesisTransactionData|null - */ - public function getGenesis() - { - return $this->readOneof(101); - } - - public function hasGenesis() - { - return $this->hasOneof(101); - } - - /** - * Generated from protobuf field .waves.GenesisTransactionData genesis = 101; - * @param \Waves\GenesisTransactionData $var - * @return $this - */ - public function setGenesis($var) - { - GPBUtil::checkMessage($var, \Waves\GenesisTransactionData::class); - $this->writeOneof(101, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.PaymentTransactionData payment = 102; - * @return \Waves\PaymentTransactionData|null - */ - public function getPayment() - { - return $this->readOneof(102); - } - - public function hasPayment() - { - return $this->hasOneof(102); - } - - /** - * Generated from protobuf field .waves.PaymentTransactionData payment = 102; - * @param \Waves\PaymentTransactionData $var - * @return $this - */ - public function setPayment($var) - { - GPBUtil::checkMessage($var, \Waves\PaymentTransactionData::class); - $this->writeOneof(102, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.IssueTransactionData issue = 103; - * @return \Waves\IssueTransactionData|null - */ - public function getIssue() - { - return $this->readOneof(103); - } - - public function hasIssue() - { - return $this->hasOneof(103); - } - - /** - * Generated from protobuf field .waves.IssueTransactionData issue = 103; - * @param \Waves\IssueTransactionData $var - * @return $this - */ - public function setIssue($var) - { - GPBUtil::checkMessage($var, \Waves\IssueTransactionData::class); - $this->writeOneof(103, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.TransferTransactionData transfer = 104; - * @return \Waves\TransferTransactionData|null - */ - public function getTransfer() - { - return $this->readOneof(104); - } - - public function hasTransfer() - { - return $this->hasOneof(104); - } - - /** - * Generated from protobuf field .waves.TransferTransactionData transfer = 104; - * @param \Waves\TransferTransactionData $var - * @return $this - */ - public function setTransfer($var) - { - GPBUtil::checkMessage($var, \Waves\TransferTransactionData::class); - $this->writeOneof(104, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.ReissueTransactionData reissue = 105; - * @return \Waves\ReissueTransactionData|null - */ - public function getReissue() - { - return $this->readOneof(105); - } - - public function hasReissue() - { - return $this->hasOneof(105); - } - - /** - * Generated from protobuf field .waves.ReissueTransactionData reissue = 105; - * @param \Waves\ReissueTransactionData $var - * @return $this - */ - public function setReissue($var) - { - GPBUtil::checkMessage($var, \Waves\ReissueTransactionData::class); - $this->writeOneof(105, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.BurnTransactionData burn = 106; - * @return \Waves\BurnTransactionData|null - */ - public function getBurn() - { - return $this->readOneof(106); - } - - public function hasBurn() - { - return $this->hasOneof(106); - } - - /** - * Generated from protobuf field .waves.BurnTransactionData burn = 106; - * @param \Waves\BurnTransactionData $var - * @return $this - */ - public function setBurn($var) - { - GPBUtil::checkMessage($var, \Waves\BurnTransactionData::class); - $this->writeOneof(106, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.ExchangeTransactionData exchange = 107; - * @return \Waves\ExchangeTransactionData|null - */ - public function getExchange() - { - return $this->readOneof(107); - } - - public function hasExchange() - { - return $this->hasOneof(107); - } - - /** - * Generated from protobuf field .waves.ExchangeTransactionData exchange = 107; - * @param \Waves\ExchangeTransactionData $var - * @return $this - */ - public function setExchange($var) - { - GPBUtil::checkMessage($var, \Waves\ExchangeTransactionData::class); - $this->writeOneof(107, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.LeaseTransactionData lease = 108; - * @return \Waves\LeaseTransactionData|null - */ - public function getLease() - { - return $this->readOneof(108); - } - - public function hasLease() - { - return $this->hasOneof(108); - } - - /** - * Generated from protobuf field .waves.LeaseTransactionData lease = 108; - * @param \Waves\LeaseTransactionData $var - * @return $this - */ - public function setLease($var) - { - GPBUtil::checkMessage($var, \Waves\LeaseTransactionData::class); - $this->writeOneof(108, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.LeaseCancelTransactionData lease_cancel = 109; - * @return \Waves\LeaseCancelTransactionData|null - */ - public function getLeaseCancel() - { - return $this->readOneof(109); - } - - public function hasLeaseCancel() - { - return $this->hasOneof(109); - } - - /** - * Generated from protobuf field .waves.LeaseCancelTransactionData lease_cancel = 109; - * @param \Waves\LeaseCancelTransactionData $var - * @return $this - */ - public function setLeaseCancel($var) - { - GPBUtil::checkMessage($var, \Waves\LeaseCancelTransactionData::class); - $this->writeOneof(109, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.CreateAliasTransactionData create_alias = 110; - * @return \Waves\CreateAliasTransactionData|null - */ - public function getCreateAlias() - { - return $this->readOneof(110); - } - - public function hasCreateAlias() - { - return $this->hasOneof(110); - } - - /** - * Generated from protobuf field .waves.CreateAliasTransactionData create_alias = 110; - * @param \Waves\CreateAliasTransactionData $var - * @return $this - */ - public function setCreateAlias($var) - { - GPBUtil::checkMessage($var, \Waves\CreateAliasTransactionData::class); - $this->writeOneof(110, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.MassTransferTransactionData mass_transfer = 111; - * @return \Waves\MassTransferTransactionData|null - */ - public function getMassTransfer() - { - return $this->readOneof(111); - } - - public function hasMassTransfer() - { - return $this->hasOneof(111); - } - - /** - * Generated from protobuf field .waves.MassTransferTransactionData mass_transfer = 111; - * @param \Waves\MassTransferTransactionData $var - * @return $this - */ - public function setMassTransfer($var) - { - GPBUtil::checkMessage($var, \Waves\MassTransferTransactionData::class); - $this->writeOneof(111, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.DataTransactionData data_transaction = 112; - * @return \Waves\DataTransactionData|null - */ - public function getDataTransaction() - { - return $this->readOneof(112); - } - - public function hasDataTransaction() - { - return $this->hasOneof(112); - } - - /** - * Generated from protobuf field .waves.DataTransactionData data_transaction = 112; - * @param \Waves\DataTransactionData $var - * @return $this - */ - public function setDataTransaction($var) - { - GPBUtil::checkMessage($var, \Waves\DataTransactionData::class); - $this->writeOneof(112, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.SetScriptTransactionData set_script = 113; - * @return \Waves\SetScriptTransactionData|null - */ - public function getSetScript() - { - return $this->readOneof(113); - } - - public function hasSetScript() - { - return $this->hasOneof(113); - } - - /** - * Generated from protobuf field .waves.SetScriptTransactionData set_script = 113; - * @param \Waves\SetScriptTransactionData $var - * @return $this - */ - public function setSetScript($var) - { - GPBUtil::checkMessage($var, \Waves\SetScriptTransactionData::class); - $this->writeOneof(113, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.SponsorFeeTransactionData sponsor_fee = 114; - * @return \Waves\SponsorFeeTransactionData|null - */ - public function getSponsorFee() - { - return $this->readOneof(114); - } - - public function hasSponsorFee() - { - return $this->hasOneof(114); - } - - /** - * Generated from protobuf field .waves.SponsorFeeTransactionData sponsor_fee = 114; - * @param \Waves\SponsorFeeTransactionData $var - * @return $this - */ - public function setSponsorFee($var) - { - GPBUtil::checkMessage($var, \Waves\SponsorFeeTransactionData::class); - $this->writeOneof(114, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.SetAssetScriptTransactionData set_asset_script = 115; - * @return \Waves\SetAssetScriptTransactionData|null - */ - public function getSetAssetScript() - { - return $this->readOneof(115); - } - - public function hasSetAssetScript() - { - return $this->hasOneof(115); - } - - /** - * Generated from protobuf field .waves.SetAssetScriptTransactionData set_asset_script = 115; - * @param \Waves\SetAssetScriptTransactionData $var - * @return $this - */ - public function setSetAssetScript($var) - { - GPBUtil::checkMessage($var, \Waves\SetAssetScriptTransactionData::class); - $this->writeOneof(115, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.InvokeScriptTransactionData invoke_script = 116; - * @return \Waves\InvokeScriptTransactionData|null - */ - public function getInvokeScript() - { - return $this->readOneof(116); - } - - public function hasInvokeScript() - { - return $this->hasOneof(116); - } - - /** - * Generated from protobuf field .waves.InvokeScriptTransactionData invoke_script = 116; - * @param \Waves\InvokeScriptTransactionData $var - * @return $this - */ - public function setInvokeScript($var) - { - GPBUtil::checkMessage($var, \Waves\InvokeScriptTransactionData::class); - $this->writeOneof(116, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.UpdateAssetInfoTransactionData update_asset_info = 117; - * @return \Waves\UpdateAssetInfoTransactionData|null - */ - public function getUpdateAssetInfo() - { - return $this->readOneof(117); - } - - public function hasUpdateAssetInfo() - { - return $this->hasOneof(117); - } - - /** - * Generated from protobuf field .waves.UpdateAssetInfoTransactionData update_asset_info = 117; - * @param \Waves\UpdateAssetInfoTransactionData $var - * @return $this - */ - public function setUpdateAssetInfo($var) - { - GPBUtil::checkMessage($var, \Waves\UpdateAssetInfoTransactionData::class); - $this->writeOneof(117, $var); - - return $this; - } - - /** - * Generated from protobuf field .waves.InvokeExpressionTransactionData invoke_expression = 119; - * @return \Waves\InvokeExpressionTransactionData|null - */ - public function getInvokeExpression() - { - return $this->readOneof(119); - } - - public function hasInvokeExpression() - { - return $this->hasOneof(119); - } - - /** - * Generated from protobuf field .waves.InvokeExpressionTransactionData invoke_expression = 119; - * @param \Waves\InvokeExpressionTransactionData $var - * @return $this - */ - public function setInvokeExpression($var) - { - GPBUtil::checkMessage($var, \Waves\InvokeExpressionTransactionData::class); - $this->writeOneof(119, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/protobuf/Waves/TransferTransactionData.php b/protobuf/Waves/TransferTransactionData.php deleted file mode 100644 index e4c03be..0000000 --- a/protobuf/Waves/TransferTransactionData.php +++ /dev/null @@ -1,132 +0,0 @@ -waves.TransferTransactionData - */ -class TransferTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - */ - protected $recipient = null; - /** - * Generated from protobuf field .waves.Amount amount = 2; - */ - protected $amount = null; - /** - * Generated from protobuf field bytes attachment = 3; - */ - protected $attachment = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Waves\Recipient $recipient - * @type \Waves\Amount $amount - * @type string $attachment - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - * @return \Waves\Recipient|null - */ - public function getRecipient() - { - return $this->recipient; - } - - public function hasRecipient() - { - return isset($this->recipient); - } - - public function clearRecipient() - { - unset($this->recipient); - } - - /** - * Generated from protobuf field .waves.Recipient recipient = 1; - * @param \Waves\Recipient $var - * @return $this - */ - public function setRecipient($var) - { - GPBUtil::checkMessage($var, \Waves\Recipient::class); - $this->recipient = $var; - - return $this; - } - - /** - * Generated from protobuf field .waves.Amount amount = 2; - * @return \Waves\Amount|null - */ - public function getAmount() - { - return $this->amount; - } - - public function hasAmount() - { - return isset($this->amount); - } - - public function clearAmount() - { - unset($this->amount); - } - - /** - * Generated from protobuf field .waves.Amount amount = 2; - * @param \Waves\Amount $var - * @return $this - */ - public function setAmount($var) - { - GPBUtil::checkMessage($var, \Waves\Amount::class); - $this->amount = $var; - - return $this; - } - - /** - * Generated from protobuf field bytes attachment = 3; - * @return string - */ - public function getAttachment() - { - return $this->attachment; - } - - /** - * Generated from protobuf field bytes attachment = 3; - * @param string $var - * @return $this - */ - public function setAttachment($var) - { - GPBUtil::checkString($var, False); - $this->attachment = $var; - - return $this; - } - -} - diff --git a/protobuf/Waves/UpdateAssetInfoTransactionData.php b/protobuf/Waves/UpdateAssetInfoTransactionData.php deleted file mode 100644 index e50fd9f..0000000 --- a/protobuf/Waves/UpdateAssetInfoTransactionData.php +++ /dev/null @@ -1,112 +0,0 @@ -waves.UpdateAssetInfoTransactionData - */ -class UpdateAssetInfoTransactionData extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field bytes asset_id = 1; - */ - protected $asset_id = ''; - /** - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $asset_id - * @type string $name - * @type string $description - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Waves\Transaction::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @return string - */ - public function getAssetId() - { - return $this->asset_id; - } - - /** - * Generated from protobuf field bytes asset_id = 1; - * @param string $var - * @return $this - */ - public function setAssetId($var) - { - GPBUtil::checkString($var, False); - $this->asset_id = $var; - - return $this; - } - - /** - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/protobuf/protobuf.bat b/protobuf/protobuf.bat deleted file mode 100644 index d20f4db..0000000 --- a/protobuf/protobuf.bat +++ /dev/null @@ -1,27 +0,0 @@ -cd /d %~dp0.. -set PROTOC_VERSION=22.2 -set PROTO_WAVES_VERSION=1.4.4 - -set PROTOC_URL=https://github.com/protocolbuffers/protobuf/releases/download/v%PROTOC_VERSION%/ -set PROTOC_ARCH=protoc-%PROTOC_VERSION%-win32.zip -set PROTO_WAVES_URL=https://github.com/wavesplatform/protobuf-schemas/archive/ -set PROTO_WAVES_ARCH=v%PROTO_WAVES_VERSION%.zip - -set PROTO_STABLE=protobuf -set PROTO_TEMP=protobuf-%random%%random% - -mkdir %PROTO_TEMP% -cd %PROTO_TEMP% - -curl -fsSL -o %PROTOC_ARCH% %PROTOC_URL%%PROTOC_ARCH% -7z x %PROTOC_ARCH% -aoa - -curl -fsSL -o %PROTO_WAVES_ARCH% %PROTO_WAVES_URL%%PROTO_WAVES_ARCH% -7z x %PROTO_WAVES_ARCH% -aoa - -mkdir %PROTO_STABLE% -bin\protoc --php_out=protobuf -Iprotobuf-schemas-%PROTO_WAVES_VERSION%/proto protobuf-schemas-%PROTO_WAVES_VERSION%/proto/waves/*.proto - -xcopy /S /Y protobuf ..\protobuf -cd .. -rmdir /s /q %PROTO_TEMP% \ No newline at end of file diff --git a/src/WavesKit.php b/src/WavesKit.php index 5d1eec0..13c5df7 100644 --- a/src/WavesKit.php +++ b/src/WavesKit.php @@ -2393,7 +2393,7 @@ public function txBody( $tx ) case 16: // invoke script if( $tx['version'] === 2 ) { - $dApp = new \Waves\Recipient; + $dApp = new \Waves\Protobuf\Recipient; if( $tx['dApp'][0] === '3' ) $dApp->setPublicKeyHash( substr( $this->base58Decode( $tx['dApp'] ), 2, 20 ) ); else @@ -2413,22 +2413,22 @@ public function txBody( $tx ) $payments = []; foreach( $tx['payment'] as $rec ) { - $amount = new \Waves\Amount; + $amount = new \Waves\Protobuf\Amount; if( isset( $rec['assetId'] ) ) $amount->setAssetId( $this->base58Decode( $rec['assetId'] ) ); $amount->setAmount( $rec['amount'] ); $payments[] = $amount; } - $feeAmount = new \Waves\Amount; + $feeAmount = new \Waves\Protobuf\Amount; if( isset( $tx['feeAssetId'] ) ) $feeAmount->setAssetId( $this->base58Decode( $tx['feeAssetId'] ) ); $feeAmount->setAmount( $tx['fee'] ); - $invokeScript = new \Waves\InvokeScriptTransactionData; + $invokeScript = new \Waves\Protobuf\InvokeScriptTransactionData; $invokeScript->setDApp( $dApp ); $invokeScript->setFunctionCall( $body ); $invokeScript->setPayments( $payments ); - $pbtx = new \Waves\Transaction(); + $pbtx = new \Waves\Protobuf\Transaction(); $pbtx->setInvokeScript( $invokeScript ); $pbtx->setVersion( $tx['version'] ); @@ -2469,16 +2469,16 @@ public function txBody( $tx ) break; case 17: // update asset info - $updateAssetInfo = new \Waves\UpdateAssetInfoTransactionData; + $updateAssetInfo = new \Waves\Protobuf\UpdateAssetInfoTransactionData; $updateAssetInfo->setAssetId( $this->base58Decode( $tx['assetId'] ) ); $updateAssetInfo->setName( $tx['name'] ); $updateAssetInfo->setDescription( $tx['description'] ); - $feeAmount = new \Waves\Amount; + $feeAmount = new \Waves\Protobuf\Amount; if( isset( $tx['feeAssetId'] ) ) $feeAmount->setAssetId( $tx['feeAssetId'] ); $feeAmount->setAmount( $tx['fee'] ); - $pbtx = new \Waves\Transaction(); + $pbtx = new \Waves\Protobuf\Transaction(); $pbtx->setUpdateAssetInfo( $updateAssetInfo ); $pbtx->setVersion( $tx['version'] ); diff --git a/test/selftest.php b/test/selftest.php index 5fcc1bc..dfe0f87 100644 --- a/test/selftest.php +++ b/test/selftest.php @@ -281,7 +281,7 @@ public function finish() $wkFaucet->height(); unset( $wkFaucet->logFunction ); $wkFaucet->height(); - $wkFaucet->setNodeAddress( $wkFaucet->nodes ); + $wkFaucet->setNodeAddress( $nodes ); $wkFaucet->setSeed( getenv( 'WAVESKIT_SEED' ) ); $address = $wkFaucet->getAddress(); $balance = $wkFaucet->balance();