From a9687ed9be822ddcb8e42d8d2f312f76eb5ca0de Mon Sep 17 00:00:00 2001 From: Dario Rekowski on RockPI Date: Wed, 23 Oct 2019 08:54:32 +0000 Subject: [PATCH] adding proto messages and protobuf to composer --- composer.json | 3 +- composer.lock | 318 ++++++++++-------- src/Model/Messages/GPBMetadata/BasicTypes.php | 40 +++ .../Messages/GPBMetadata/StateCreateGroup.php | 31 ++ .../GPBMetadata/StateGroupChangeParent.php | 31 ++ .../Messages/GPBMetadata/Transaction.php | 31 ++ .../Messages/GPBMetadata/TransactionBody.php | 40 +++ .../GPBMetadata/TransactionCreation.php | 29 ++ src/Model/Messages/GPBMetadata/Transfer.php | 29 ++ src/Model/Messages/Gradido/Key.php | 96 ++++++ src/Model/Messages/Gradido/ReceiverAmount.php | 85 +++++ src/Model/Messages/Gradido/SenderAmount.php | 119 +++++++ src/Model/Messages/Gradido/SignatureMap.php | 65 ++++ src/Model/Messages/Gradido/SignaturePair.php | 123 +++++++ .../Messages/Gradido/StateCreateGroup.php | 114 +++++++ .../Gradido/StateGroupChangeParent.php | 114 +++++++ src/Model/Messages/Gradido/Timestamp.php | 101 ++++++ .../Messages/Gradido/TimestampSeconds.php | 67 ++++ src/Model/Messages/Gradido/Transaction.php | 166 +++++++++ .../Messages/Gradido/TransactionBody.php | 166 +++++++++ .../Messages/Gradido/TransactionCreation.php | 88 +++++ src/Model/Messages/Gradido/Transfer.php | 85 +++++ .../protobuf/gradido/BasicTypes.proto | 13 +- .../protobuf/gradido/StateCreateGroup.proto | 2 +- .../gradido/StateGroupChangeParent.proto | 2 +- .../protobuf/gradido/Transaction.proto | 3 +- .../protobuf/gradido/TransactionBody.proto | 4 +- .../gradido/TransactionCreation.proto | 13 + .../Messages/protobuf/gradido/Transfer.proto | 13 +- src/Template/Layout/frontend.ctp | 56 +++ src/Template/Pages/cake_home.ctp | 276 +++++++++++++++ 31 files changed, 2167 insertions(+), 156 deletions(-) create mode 100644 src/Model/Messages/GPBMetadata/BasicTypes.php create mode 100644 src/Model/Messages/GPBMetadata/StateCreateGroup.php create mode 100644 src/Model/Messages/GPBMetadata/StateGroupChangeParent.php create mode 100644 src/Model/Messages/GPBMetadata/Transaction.php create mode 100644 src/Model/Messages/GPBMetadata/TransactionBody.php create mode 100644 src/Model/Messages/GPBMetadata/TransactionCreation.php create mode 100644 src/Model/Messages/GPBMetadata/Transfer.php create mode 100644 src/Model/Messages/Gradido/Key.php create mode 100644 src/Model/Messages/Gradido/ReceiverAmount.php create mode 100644 src/Model/Messages/Gradido/SenderAmount.php create mode 100644 src/Model/Messages/Gradido/SignatureMap.php create mode 100644 src/Model/Messages/Gradido/SignaturePair.php create mode 100644 src/Model/Messages/Gradido/StateCreateGroup.php create mode 100644 src/Model/Messages/Gradido/StateGroupChangeParent.php create mode 100644 src/Model/Messages/Gradido/Timestamp.php create mode 100644 src/Model/Messages/Gradido/TimestampSeconds.php create mode 100644 src/Model/Messages/Gradido/Transaction.php create mode 100644 src/Model/Messages/Gradido/TransactionBody.php create mode 100644 src/Model/Messages/Gradido/TransactionCreation.php create mode 100644 src/Model/Messages/Gradido/Transfer.php create mode 100644 src/Model/Messages/protobuf/gradido/TransactionCreation.proto create mode 100644 src/Template/Layout/frontend.ctp create mode 100644 src/Template/Pages/cake_home.ctp diff --git a/composer.json b/composer.json index a85d42c51..4094bda89 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,8 @@ "cakephp/migrations": "^2.0.0", "cakephp/plugin-installer": "^1.0", "mobiledetect/mobiledetectlib": "2.*", - "paragonie/sodium_compat": "^1.11" + "paragonie/sodium_compat": "^1.11", + "google/protobuf": "v3.10.*" }, "require-dev": { "cakephp/bake": "^1.9.0", diff --git a/composer.lock b/composer.lock index ae70ee26a..5a686e44e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "67bc2c5a0445873e8399d5b549a7076a", + "content-hash": "2944d37824c58c80f9759fff3074fa2d", "packages": [ { "name": "aura/intl", @@ -54,16 +54,16 @@ }, { "name": "cakephp/cakephp", - "version": "3.8.3", + "version": "3.8.5", "source": { "type": "git", "url": "https://github.com/cakephp/cakephp.git", - "reference": "705b43b70e87ec226a6b37099013de1003a17c17" + "reference": "ea64434740f0d2a53438f95a3de414de63a11101" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cakephp/cakephp/zipball/705b43b70e87ec226a6b37099013de1003a17c17", - "reference": "705b43b70e87ec226a6b37099013de1003a17c17", + "url": "https://api.github.com/repos/cakephp/cakephp/zipball/ea64434740f0d2a53438f95a3de414de63a11101", + "reference": "ea64434740f0d2a53438f95a3de414de63a11101", "shasum": "" }, "require": { @@ -139,7 +139,7 @@ "rapid-development", "validation" ], - "time": "2019-08-31T02:05:56+00:00" + "time": "2019-10-07T00:51:50+00:00" }, { "name": "cakephp/chronos", @@ -200,23 +200,23 @@ }, { "name": "cakephp/migrations", - "version": "2.2.0", + "version": "2.3.0", "source": { "type": "git", "url": "https://github.com/cakephp/migrations.git", - "reference": "38fbee62e7f387dbe0dc7ef492aa7dddb8e304fc" + "reference": "3d1750bb218958b4c48fea1365c619bedea62d69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cakephp/migrations/zipball/38fbee62e7f387dbe0dc7ef492aa7dddb8e304fc", - "reference": "38fbee62e7f387dbe0dc7ef492aa7dddb8e304fc", + "url": "https://api.github.com/repos/cakephp/migrations/zipball/3d1750bb218958b4c48fea1365c619bedea62d69", + "reference": "3d1750bb218958b4c48fea1365c619bedea62d69", "shasum": "" }, "require": { "cakephp/cache": "^3.6.0", "cakephp/orm": "^3.6.0", "php": ">=5.6.0", - "robmorgan/phinx": "^0.10.3" + "robmorgan/phinx": "^0.10.3|^0.11.1" }, "require-dev": { "cakephp/bake": "^1.7.0", @@ -249,7 +249,7 @@ "cakephp", "migrations" ], - "time": "2019-07-22T03:02:47+00:00" + "time": "2019-10-07T22:04:21+00:00" }, { "name": "cakephp/plugin-installer", @@ -293,17 +293,58 @@ "time": "2019-07-25T15:43:38+00:00" }, { - "name": "mobiledetect/mobiledetectlib", - "version": "2.8.33", + "name": "google/protobuf", + "version": "v3.10.0", "source": { "type": "git", - "url": "https://github.com/serbanghita/Mobile-Detect.git", - "reference": "cd385290f9a0d609d2eddd165a1e44ec1bf12102" + "url": "https://github.com/protocolbuffers/protobuf-php.git", + "reference": "5dffdd2c84112e6c91fd84f92e3df96649426881" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/serbanghita/Mobile-Detect/zipball/cd385290f9a0d609d2eddd165a1e44ec1bf12102", - "reference": "cd385290f9a0d609d2eddd165a1e44ec1bf12102", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/5dffdd2c84112e6c91fd84f92e3df96649426881", + "reference": "5dffdd2c84112e6c91fd84f92e3df96649426881", + "shasum": "" + }, + "require": { + "php": ">=5.5.0" + }, + "require-dev": { + "phpunit/phpunit": ">=4.8.0" + }, + "suggest": { + "ext-bcmath": "Need to support JSON deserialization" + }, + "type": "library", + "autoload": { + "psr-4": { + "Google\\Protobuf\\": "src/Google/Protobuf", + "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "proto library for PHP", + "homepage": "https://developers.google.com/protocol-buffers/", + "keywords": [ + "proto" + ], + "time": "2019-10-03T20:08:37+00:00" + }, + { + "name": "mobiledetect/mobiledetectlib", + "version": "2.8.34", + "source": { + "type": "git", + "url": "https://github.com/serbanghita/Mobile-Detect.git", + "reference": "6f8113f57a508494ca36acbcfa2dc2d923c7ed5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/serbanghita/Mobile-Detect/zipball/6f8113f57a508494ca36acbcfa2dc2d923c7ed5b", + "reference": "6f8113f57a508494ca36acbcfa2dc2d923c7ed5b", "shasum": "" }, "require": { @@ -328,9 +369,9 @@ "authors": [ { "name": "Serban Ghita", - "role": "Developer", "email": "serbanghita@gmail.com", - "homepage": "http://mobiledetect.net" + "homepage": "http://mobiledetect.net", + "role": "Developer" } ], "description": "Mobile_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.", @@ -342,7 +383,7 @@ "mobile detector", "php mobile detect" ], - "time": "2018-09-01T15:05:15+00:00" + "time": "2019-09-18T18:44:20+00:00" }, { "name": "paragonie/random_compat", @@ -391,16 +432,16 @@ }, { "name": "paragonie/sodium_compat", - "version": "v1.11.1", + "version": "v1.12.0", "source": { "type": "git", "url": "https://github.com/paragonie/sodium_compat.git", - "reference": "a9f968bc99485f85f9303a8524c3485a7e87bc15" + "reference": "8228b286d6b8fe24825f42ce02403f72656ac826" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/sodium_compat/zipball/a9f968bc99485f85f9303a8524c3485a7e87bc15", - "reference": "a9f968bc99485f85f9303a8524c3485a7e87bc15", + "url": "https://api.github.com/repos/paragonie/sodium_compat/zipball/8228b286d6b8fe24825f42ce02403f72656ac826", + "reference": "8228b286d6b8fe24825f42ce02403f72656ac826", "shasum": "" }, "require": { @@ -408,7 +449,7 @@ "php": "^5.2.4|^5.3|^5.4|^5.5|^5.6|^7|^8" }, "require-dev": { - "phpunit/phpunit": "^3|^4|^5" + "phpunit/phpunit": "^3|^4|^5|^6|^7" }, "suggest": { "ext-libsodium": "PHP < 7.0: Better performance, password hashing (Argon2i), secure memory management (memzero), and better security.", @@ -469,7 +510,7 @@ "secret-key cryptography", "side-channel resistant" ], - "time": "2019-09-12T12:05:58+00:00" + "time": "2019-10-19T15:30:42+00:00" }, { "name": "psr/container", @@ -667,29 +708,31 @@ }, { "name": "robmorgan/phinx", - "version": "0.10.8", + "version": "0.11.1", "source": { "type": "git", "url": "https://github.com/cakephp/phinx.git", - "reference": "1960e93169707096fdfde04904a204970077f4be" + "reference": "a6cced878695d26396b26dfd62ce300aea07de05" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cakephp/phinx/zipball/1960e93169707096fdfde04904a204970077f4be", - "reference": "1960e93169707096fdfde04904a204970077f4be", + "url": "https://api.github.com/repos/cakephp/phinx/zipball/a6cced878695d26396b26dfd62ce300aea07de05", + "reference": "a6cced878695d26396b26dfd62ce300aea07de05", "shasum": "" }, "require": { "cakephp/collection": "^3.6", + "cakephp/core": "^3.6", "cakephp/database": "^3.6", + "cakephp/datasource": "^3.6", "php": ">=5.6", - "symfony/config": "^2.8|^3.0|^4.0", - "symfony/console": "^2.8|^3.0|^4.0", - "symfony/yaml": "^2.8|^3.0|^4.0" + "symfony/config": "^3.4|^4.0", + "symfony/console": "^3.4|^4.0", + "symfony/yaml": "^3.4|^4.0" }, "require-dev": { "cakephp/cakephp-codesniffer": "^3.0", - "phpunit/phpunit": ">=5.7,<7.0", + "phpunit/phpunit": ">=5.7,<8.0", "sebastian/comparator": ">=1.2.3" }, "bin": [ @@ -706,18 +749,18 @@ "MIT" ], "authors": [ - { - "name": "Woody Gilk", - "email": "woody.gilk@gmail.com", - "homepage": "http://shadowhand.me", - "role": "Developer" - }, { "name": "Rob Morgan", "email": "robbym@gmail.com", "homepage": "https://robmorgan.id.au", "role": "Lead Developer" }, + { + "name": "Woody Gilk", + "email": "woody.gilk@gmail.com", + "homepage": "https://shadowhand.me", + "role": "Developer" + }, { "name": "Richard Quadling", "email": "rquadling@gmail.com", @@ -725,7 +768,8 @@ }, { "name": "CakePHP Community", - "homepage": "https://github.com/cakephp/phinx/graphs/contributors" + "homepage": "https://github.com/cakephp/phinx/graphs/contributors", + "role": "Developer" } ], "description": "Phinx makes it ridiculously easy to manage the database migrations for your PHP app.", @@ -737,20 +781,20 @@ "migrations", "phinx" ], - "time": "2019-07-08T16:59:55+00:00" + "time": "2019-08-28T12:24:19+00:00" }, { "name": "symfony/config", - "version": "v4.3.4", + "version": "v4.3.5", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "07d49c0f823e0bc367c6d84e35b61419188a5ece" + "reference": "0acb26407a9e1a64a275142f0ae5e36436342720" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/07d49c0f823e0bc367c6d84e35b61419188a5ece", - "reference": "07d49c0f823e0bc367c6d84e35b61419188a5ece", + "url": "https://api.github.com/repos/symfony/config/zipball/0acb26407a9e1a64a275142f0ae5e36436342720", + "reference": "0acb26407a9e1a64a275142f0ae5e36436342720", "shasum": "" }, "require": { @@ -801,20 +845,20 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2019-08-26T08:26:39+00:00" + "time": "2019-09-19T15:51:53+00:00" }, { "name": "symfony/console", - "version": "v4.3.4", + "version": "v4.3.5", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "de63799239b3881b8a08f8481b22348f77ed7b36" + "reference": "929ddf360d401b958f611d44e726094ab46a7369" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/de63799239b3881b8a08f8481b22348f77ed7b36", - "reference": "de63799239b3881b8a08f8481b22348f77ed7b36", + "url": "https://api.github.com/repos/symfony/console/zipball/929ddf360d401b958f611d44e726094ab46a7369", + "reference": "929ddf360d401b958f611d44e726094ab46a7369", "shasum": "" }, "require": { @@ -876,11 +920,11 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2019-08-26T08:26:39+00:00" + "time": "2019-10-07T12:36:49+00:00" }, { "name": "symfony/filesystem", - "version": "v4.3.4", + "version": "v4.3.5", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -1105,16 +1149,16 @@ }, { "name": "symfony/service-contracts", - "version": "v1.1.6", + "version": "v1.1.7", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "ea7263d6b6d5f798b56a45a5b8d686725f2719a3" + "reference": "ffcde9615dc5bb4825b9f6aed07716f1f57faae0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/ea7263d6b6d5f798b56a45a5b8d686725f2719a3", - "reference": "ea7263d6b6d5f798b56a45a5b8d686725f2719a3", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/ffcde9615dc5bb4825b9f6aed07716f1f57faae0", + "reference": "ffcde9615dc5bb4825b9f6aed07716f1f57faae0", "shasum": "" }, "require": { @@ -1159,20 +1203,20 @@ "interoperability", "standards" ], - "time": "2019-08-20T14:44:19+00:00" + "time": "2019-09-17T11:12:18+00:00" }, { "name": "symfony/yaml", - "version": "v4.3.4", + "version": "v4.3.5", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "5a0b7c32dc3ec56fd4abae8a4a71b0cf05013686" + "reference": "41e16350a2a1c7383c4735aa2f9fce74cf3d1178" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/5a0b7c32dc3ec56fd4abae8a4a71b0cf05013686", - "reference": "5a0b7c32dc3ec56fd4abae8a4a71b0cf05013686", + "url": "https://api.github.com/repos/symfony/yaml/zipball/41e16350a2a1c7383c4735aa2f9fce74cf3d1178", + "reference": "41e16350a2a1c7383c4735aa2f9fce74cf3d1178", "shasum": "" }, "require": { @@ -1218,7 +1262,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2019-08-20T14:27:59+00:00" + "time": "2019-09-11T15:41:19+00:00" }, { "name": "zendframework/zend-diactoros", @@ -1550,16 +1594,16 @@ }, { "name": "cakephp/debug_kit", - "version": "3.20.2", + "version": "3.20.3", "source": { "type": "git", "url": "https://github.com/cakephp/debug_kit.git", - "reference": "0ea1b56978e3f9a5c5c3091b4e1732c1446fae7d" + "reference": "2ebc6b61fdb4741e890c564ab4d55a9b1d29c47f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cakephp/debug_kit/zipball/0ea1b56978e3f9a5c5c3091b4e1732c1446fae7d", - "reference": "0ea1b56978e3f9a5c5c3091b4e1732c1446fae7d", + "url": "https://api.github.com/repos/cakephp/debug_kit/zipball/2ebc6b61fdb4741e890c564ab4d55a9b1d29c47f", + "reference": "2ebc6b61fdb4741e890c564ab4d55a9b1d29c47f", "shasum": "" }, "require": { @@ -1606,7 +1650,7 @@ "debug", "kit" ], - "time": "2019-08-27T00:17:02+00:00" + "time": "2019-10-09T01:55:34+00:00" }, { "name": "composer/ca-bundle", @@ -2252,23 +2296,23 @@ }, { "name": "justinrainbow/json-schema", - "version": "5.2.8", + "version": "5.2.9", "source": { "type": "git", "url": "https://github.com/justinrainbow/json-schema.git", - "reference": "dcb6e1006bb5fd1e392b4daa68932880f37550d4" + "reference": "44c6787311242a979fa15c704327c20e7221a0e4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/dcb6e1006bb5fd1e392b4daa68932880f37550d4", - "reference": "dcb6e1006bb5fd1e392b4daa68932880f37550d4", + "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/44c6787311242a979fa15c704327c20e7221a0e4", + "reference": "44c6787311242a979fa15c704327c20e7221a0e4", "shasum": "" }, "require": { "php": ">=5.3.3" }, "require-dev": { - "friendsofphp/php-cs-fixer": "~2.2.20", + "friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1", "json-schema/json-schema-test-suite": "1.2.0", "phpunit/phpunit": "^4.8.35" }, @@ -2314,7 +2358,7 @@ "json", "schema" ], - "time": "2019-01-14T23:55:14+00:00" + "time": "2019-09-25T14:49:45+00:00" }, { "name": "m1/env", @@ -2577,35 +2621,33 @@ }, { "name": "phpdocumentor/reflection-common", - "version": "1.0.1", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6" + "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", - "reference": "21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a", + "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a", "shasum": "" }, "require": { - "php": ">=5.5" + "php": ">=7.1" }, "require-dev": { - "phpunit/phpunit": "^4.6" + "phpunit/phpunit": "~6" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.x-dev" } }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src" - ] + "phpDocumentor\\Reflection\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2627,30 +2669,30 @@ "reflection", "static analysis" ], - "time": "2017-09-11T18:02:19+00:00" + "time": "2018-08-07T13:53:10+00:00" }, { "name": "phpdocumentor/reflection-docblock", - "version": "4.3.1", + "version": "4.3.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c" + "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c", - "reference": "bdd9f737ebc2a01c06ea7ff4308ec6697db9b53c", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/b83ff7cfcfee7827e1e78b637a5904fe6a96698e", + "reference": "b83ff7cfcfee7827e1e78b637a5904fe6a96698e", "shasum": "" }, "require": { "php": "^7.0", - "phpdocumentor/reflection-common": "^1.0.0", - "phpdocumentor/type-resolver": "^0.4.0", + "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0", + "phpdocumentor/type-resolver": "~0.4 || ^1.0.0", "webmozart/assert": "^1.0" }, "require-dev": { - "doctrine/instantiator": "~1.0.5", + "doctrine/instantiator": "^1.0.5", "mockery/mockery": "^1.0", "phpunit/phpunit": "^6.4" }, @@ -2678,41 +2720,40 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2019-04-30T17:48:53+00:00" + "time": "2019-09-12T14:27:41+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "0.4.0", + "version": "1.0.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7" + "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/9c977708995954784726e25d0cd1dddf4e65b0f7", - "reference": "9c977708995954784726e25d0cd1dddf4e65b0f7", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", + "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", "shasum": "" }, "require": { - "php": "^5.5 || ^7.0", - "phpdocumentor/reflection-common": "^1.0" + "php": "^7.1", + "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "mockery/mockery": "^0.9.4", - "phpunit/phpunit": "^5.2||^4.8.24" + "ext-tokenizer": "^7.1", + "mockery/mockery": "~1", + "phpunit/phpunit": "^7.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] + "phpDocumentor\\Reflection\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -2725,26 +2766,27 @@ "email": "me@mikevanriel.com" } ], - "time": "2017-07-14T14:27:02+00:00" + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "time": "2019-08-22T18:11:29+00:00" }, { "name": "phpspec/prophecy", - "version": "1.8.1", + "version": "1.9.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76" + "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/1927e75f4ed19131ec9bcc3b002e07fb1173ee76", - "reference": "1927e75f4ed19131ec9bcc3b002e07fb1173ee76", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0cc100ae56aa32b9203", + "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", "sebastian/comparator": "^1.1|^2.0|^3.0", "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, @@ -2788,7 +2830,7 @@ "spy", "stub" ], - "time": "2019-06-13T12:50:23+00:00" + "time": "2019-10-03T11:07:50+00:00" }, { "name": "phpunit/php-code-coverage", @@ -3470,16 +3512,16 @@ }, { "name": "sebastian/exporter", - "version": "3.1.1", + "version": "3.1.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "06a9a5947f47b3029d76118eb5c22802e5869687" + "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/06a9a5947f47b3029d76118eb5c22802e5869687", - "reference": "06a9a5947f47b3029d76118eb5c22802e5869687", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e", + "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e", "shasum": "" }, "require": { @@ -3533,7 +3575,7 @@ "export", "exporter" ], - "time": "2019-08-11T12:43:14+00:00" + "time": "2019-09-14T09:02:43+00:00" }, { "name": "sebastian/global-state", @@ -3911,16 +3953,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.4.2", + "version": "3.5.1", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8" + "reference": "82cd0f854ceca17731d6d019c7098e3755c45060" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8", - "reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/82cd0f854ceca17731d6d019c7098e3755c45060", + "reference": "82cd0f854ceca17731d6d019c7098e3755c45060", "shasum": "" }, "require": { @@ -3958,20 +4000,20 @@ "phpcs", "standards" ], - "time": "2019-04-10T23:49:02+00:00" + "time": "2019-10-16T21:14:26+00:00" }, { "name": "symfony/finder", - "version": "v4.3.4", + "version": "v4.3.5", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "86c1c929f0a4b24812e1eb109262fc3372c8e9f2" + "reference": "5e575faa95548d0586f6bedaeabec259714e44d1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/86c1c929f0a4b24812e1eb109262fc3372c8e9f2", - "reference": "86c1c929f0a4b24812e1eb109262fc3372c8e9f2", + "url": "https://api.github.com/repos/symfony/finder/zipball/5e575faa95548d0586f6bedaeabec259714e44d1", + "reference": "5e575faa95548d0586f6bedaeabec259714e44d1", "shasum": "" }, "require": { @@ -4007,7 +4049,7 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-08-14T12:26:46+00:00" + "time": "2019-09-16T11:29:48+00:00" }, { "name": "symfony/polyfill-php72", @@ -4066,16 +4108,16 @@ }, { "name": "symfony/process", - "version": "v4.3.4", + "version": "v4.3.5", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "e89969c00d762349f078db1128506f7f3dcc0d4a" + "reference": "50556892f3cc47d4200bfd1075314139c4c9ff4b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/e89969c00d762349f078db1128506f7f3dcc0d4a", - "reference": "e89969c00d762349f078db1128506f7f3dcc0d4a", + "url": "https://api.github.com/repos/symfony/process/zipball/50556892f3cc47d4200bfd1075314139c4c9ff4b", + "reference": "50556892f3cc47d4200bfd1075314139c4c9ff4b", "shasum": "" }, "require": { @@ -4111,20 +4153,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2019-08-26T08:26:39+00:00" + "time": "2019-09-26T21:17:10+00:00" }, { "name": "symfony/var-dumper", - "version": "v4.3.4", + "version": "v4.3.5", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "641043e0f3e615990a0f29479f9c117e8a6698c6" + "reference": "bde8957fc415fdc6964f33916a3755737744ff05" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/641043e0f3e615990a0f29479f9c117e8a6698c6", - "reference": "641043e0f3e615990a0f29479f9c117e8a6698c6", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/bde8957fc415fdc6964f33916a3755737744ff05", + "reference": "bde8957fc415fdc6964f33916a3755737744ff05", "shasum": "" }, "require": { @@ -4187,7 +4229,7 @@ "debug", "dump" ], - "time": "2019-08-26T08:26:39+00:00" + "time": "2019-10-04T19:48:13+00:00" }, { "name": "theseer/tokenizer", diff --git a/src/Model/Messages/GPBMetadata/BasicTypes.php b/src/Model/Messages/GPBMetadata/BasicTypes.php new file mode 100644 index 000000000..113202053 --- /dev/null +++ b/src/Model/Messages/GPBMetadata/BasicTypes.php @@ -0,0 +1,40 @@ +internalAddGeneratedFile(hex2bin( + "0ae0030a10426173696354797065732e70726f746f12076772616469646f" . + "22380a034b657912110a076564323535313918022001280c480012170a0d" . + "656432353531395f726566313018032001280c480042050a036b65792258" . + "0a0d5369676e617475726550616972120e0a067075624b65791801200128" . + "0c12110a076564323535313918022001280c480012170a0d656432353531" . + "395f726566313018032001280c4800420b0a097369676e61747572652237" . + "0a0c5369676e61747572654d617012270a07736967506169721801200328" . + "0b32162e6772616469646f2e5369676e617475726550616972222b0a0954" . + "696d657374616d70120f0a077365636f6e6473180120012803120d0a056e" . + "616e6f7318022001280522230a1054696d657374616d705365636f6e6473" . + "120f0a077365636f6e647318012001280322590a0c53656e646572416d6f" . + "756e74121d0a15656432353531395f73656e6465725f7075626b65791801" . + "2001280c120e0a06616d6f756e74180220012812121a0a1273656e646572" . + "46696e616c42616c616e636518032001281222410a0e5265636569766572" . + "416d6f756e74121f0a17656432353531395f72656365697665725f707562" . + "6b657918012001280c120e0a06616d6f756e74180220012812620670726f" . + "746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/src/Model/Messages/GPBMetadata/StateCreateGroup.php b/src/Model/Messages/GPBMetadata/StateCreateGroup.php new file mode 100644 index 000000000..24ef6b2a7 --- /dev/null +++ b/src/Model/Messages/GPBMetadata/StateCreateGroup.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile(hex2bin( + "0ab7010a16537461746543726561746547726f75702e70726f746f120767" . + "72616469646f228b010a10537461746543726561746547726f7570120c0a" . + "046e616d6518012001280912240a0e67726f75705075626c69634b657918" . + "022001280b320c2e6772616469646f2e4b6579122a0a14706172656e7447" . + "726f75705075626c69634b657918032001280b320c2e6772616469646f2e" . + "4b65794a04080410055211686564657261436f6e73656e73757349646206" . + "70726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/src/Model/Messages/GPBMetadata/StateGroupChangeParent.php b/src/Model/Messages/GPBMetadata/StateGroupChangeParent.php new file mode 100644 index 000000000..8f9111842 --- /dev/null +++ b/src/Model/Messages/GPBMetadata/StateGroupChangeParent.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile(hex2bin( + "0ace010a1c537461746547726f75704368616e6765506172656e742e7072" . + "6f746f12076772616469646f229c010a16537461746547726f7570436861" . + "6e6765506172656e7412240a0e67726f75705075626c69634b6579180120" . + "01280b320c2e6772616469646f2e4b6579122d0a176e6577506172656e74" . + "47726f75705075626c69634b657918022001280b320c2e6772616469646f" . + "2e4b6579122d0a176f6c64506172656e7447726f75705075626c69634b65" . + "7918032001280b320c2e6772616469646f2e4b6579620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/src/Model/Messages/GPBMetadata/Transaction.php b/src/Model/Messages/GPBMetadata/Transaction.php new file mode 100644 index 000000000..9f1d8ff23 --- /dev/null +++ b/src/Model/Messages/GPBMetadata/Transaction.php @@ -0,0 +1,31 @@ +internalAddGeneratedFile(hex2bin( + "0ab7010a115472616e73616374696f6e2e70726f746f1207677261646964" . + "6f2290010a0b5472616e73616374696f6e120a0a02696418012001280412" . + "2b0a08726563656976656418022001280b32192e6772616469646f2e5469" . + "6d657374616d705365636f6e647312250a067369674d617018032001280b" . + "32152e6772616469646f2e5369676e61747572654d6170120e0a06747848" . + "61736818042001280c12110a09626f6479427974657318052001280c6206" . + "70726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/src/Model/Messages/GPBMetadata/TransactionBody.php b/src/Model/Messages/GPBMetadata/TransactionBody.php new file mode 100644 index 000000000..d225389b6 --- /dev/null +++ b/src/Model/Messages/GPBMetadata/TransactionBody.php @@ -0,0 +1,40 @@ +internalAddGeneratedFile(hex2bin( + "0aec020a155472616e73616374696f6e426f64792e70726f746f12076772" . + "616469646f1a16537461746543726561746547726f75702e70726f746f1a" . + "1c537461746547726f75704368616e6765506172656e742e70726f746f1a" . + "195472616e73616374696f6e4372656174696f6e2e70726f746f22f0010a" . + "0f5472616e73616374696f6e426f6479120c0a046d656d6f180120012809" . + "12300a0b63726561746547726f757018022001280b32192e677261646964" . + "6f2e537461746543726561746547726f75704800123c0a1167726f757043" . + "68616e6765506172656e7418032001280b321f2e6772616469646f2e5374" . + "61746547726f75704368616e6765506172656e74480012250a087472616e" . + "7366657218042001280b32112e6772616469646f2e5472616e7366657248" . + "0012300a086372656174696f6e18052001280b321c2e6772616469646f2e" . + "5472616e73616374696f6e4372656174696f6e480042060a046461746162" . + "0670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/src/Model/Messages/GPBMetadata/TransactionCreation.php b/src/Model/Messages/GPBMetadata/TransactionCreation.php new file mode 100644 index 000000000..c8984298c --- /dev/null +++ b/src/Model/Messages/GPBMetadata/TransactionCreation.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile(hex2bin( + "0a88010a195472616e73616374696f6e4372656174696f6e2e70726f746f" . + "12076772616469646f225a0a135472616e73616374696f6e437265617469" . + "6f6e122f0a0e7265636569766572416d6f756e7418012001280b32172e67" . + "72616469646f2e5265636569766572416d6f756e7412120a0a6964656e74" . + "5f68617368180220012811620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/src/Model/Messages/GPBMetadata/Transfer.php b/src/Model/Messages/GPBMetadata/Transfer.php new file mode 100644 index 000000000..f5236ee43 --- /dev/null +++ b/src/Model/Messages/GPBMetadata/Transfer.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile(hex2bin( + "0a8d010a0e5472616e736665722e70726f746f12076772616469646f226a" . + "0a085472616e73666572122c0a0d73656e646572416d6f756e7473180120" . + "03280b32152e6772616469646f2e53656e646572416d6f756e7412300a0f" . + "7265636569766572416d6f756e747318022003280b32172e677261646964" . + "6f2e5265636569766572416d6f756e74620670726f746f33" + ), true); + + static::$is_initialized = true; + } +} + diff --git a/src/Model/Messages/Gradido/Key.php b/src/Model/Messages/Gradido/Key.php new file mode 100644 index 000000000..af956f506 --- /dev/null +++ b/src/Model/Messages/Gradido/Key.php @@ -0,0 +1,96 @@ +gradido.Key + */ +final class Key extends \Google\Protobuf\Internal\Message +{ + protected $key; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ed25519 + * ed25519 signature (libsodium default) + * @type string $ed25519_ref10 + * ed25519 ref10 signature + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\BasicTypes::initOnce(); + parent::__construct($data); + } + + /** + * ed25519 signature (libsodium default) + * + * Generated from protobuf field bytes ed25519 = 2; + * @return string + */ + public function getEd25519() + { + return $this->readOneof(2); + } + + /** + * ed25519 signature (libsodium default) + * + * Generated from protobuf field bytes ed25519 = 2; + * @param string $var + * @return $this + */ + public function setEd25519($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * ed25519 ref10 signature + * + * Generated from protobuf field bytes ed25519_ref10 = 3; + * @return string + */ + public function getEd25519Ref10() + { + return $this->readOneof(3); + } + + /** + * ed25519 ref10 signature + * + * Generated from protobuf field bytes ed25519_ref10 = 3; + * @param string $var + * @return $this + */ + public function setEd25519Ref10($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getKey() + { + return $this->whichOneof("key"); + } + +} + diff --git a/src/Model/Messages/Gradido/ReceiverAmount.php b/src/Model/Messages/Gradido/ReceiverAmount.php new file mode 100644 index 000000000..d09ceab79 --- /dev/null +++ b/src/Model/Messages/Gradido/ReceiverAmount.php @@ -0,0 +1,85 @@ +gradido.ReceiverAmount + */ +final class ReceiverAmount extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field bytes ed25519_receiver_pubkey = 1; + */ + private $ed25519_receiver_pubkey = ''; + /** + * Generated from protobuf field sint64 amount = 2; + */ + private $amount = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ed25519_receiver_pubkey + * @type int|string $amount + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\BasicTypes::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bytes ed25519_receiver_pubkey = 1; + * @return string + */ + public function getEd25519ReceiverPubkey() + { + return $this->ed25519_receiver_pubkey; + } + + /** + * Generated from protobuf field bytes ed25519_receiver_pubkey = 1; + * @param string $var + * @return $this + */ + public function setEd25519ReceiverPubkey($var) + { + GPBUtil::checkString($var, False); + $this->ed25519_receiver_pubkey = $var; + + return $this; + } + + /** + * Generated from protobuf field sint64 amount = 2; + * @return int|string + */ + public function getAmount() + { + return $this->amount; + } + + /** + * Generated from protobuf field sint64 amount = 2; + * @param int|string $var + * @return $this + */ + public function setAmount($var) + { + GPBUtil::checkInt64($var); + $this->amount = $var; + + return $this; + } + +} + diff --git a/src/Model/Messages/Gradido/SenderAmount.php b/src/Model/Messages/Gradido/SenderAmount.php new file mode 100644 index 000000000..bd1b62fc1 --- /dev/null +++ b/src/Model/Messages/Gradido/SenderAmount.php @@ -0,0 +1,119 @@ +gradido.SenderAmount + */ +final class SenderAmount extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field bytes ed25519_sender_pubkey = 1; + */ + private $ed25519_sender_pubkey = ''; + /** + * Generated from protobuf field sint64 amount = 2; + */ + private $amount = 0; + /** + * sender balance after transaction, including perishability + * + * Generated from protobuf field sint64 senderFinalBalance = 3; + */ + private $senderFinalBalance = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ed25519_sender_pubkey + * @type int|string $amount + * @type int|string $senderFinalBalance + * sender balance after transaction, including perishability + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\BasicTypes::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bytes ed25519_sender_pubkey = 1; + * @return string + */ + public function getEd25519SenderPubkey() + { + return $this->ed25519_sender_pubkey; + } + + /** + * Generated from protobuf field bytes ed25519_sender_pubkey = 1; + * @param string $var + * @return $this + */ + public function setEd25519SenderPubkey($var) + { + GPBUtil::checkString($var, False); + $this->ed25519_sender_pubkey = $var; + + return $this; + } + + /** + * Generated from protobuf field sint64 amount = 2; + * @return int|string + */ + public function getAmount() + { + return $this->amount; + } + + /** + * Generated from protobuf field sint64 amount = 2; + * @param int|string $var + * @return $this + */ + public function setAmount($var) + { + GPBUtil::checkInt64($var); + $this->amount = $var; + + return $this; + } + + /** + * sender balance after transaction, including perishability + * + * Generated from protobuf field sint64 senderFinalBalance = 3; + * @return int|string + */ + public function getSenderFinalBalance() + { + return $this->senderFinalBalance; + } + + /** + * sender balance after transaction, including perishability + * + * Generated from protobuf field sint64 senderFinalBalance = 3; + * @param int|string $var + * @return $this + */ + public function setSenderFinalBalance($var) + { + GPBUtil::checkInt64($var); + $this->senderFinalBalance = $var; + + return $this; + } + +} + diff --git a/src/Model/Messages/Gradido/SignatureMap.php b/src/Model/Messages/Gradido/SignatureMap.php new file mode 100644 index 000000000..6a589c133 --- /dev/null +++ b/src/Model/Messages/Gradido/SignatureMap.php @@ -0,0 +1,65 @@ +gradido.SignatureMap + */ +final class SignatureMap extends \Google\Protobuf\Internal\Message +{ + /** + * Each signature pair corresponds to a unique Key required to sign the transaction. + * + * Generated from protobuf field repeated .gradido.SignaturePair sigPair = 1; + */ + private $sigPair; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Gradido\SignaturePair[]|\Google\Protobuf\Internal\RepeatedField $sigPair + * Each signature pair corresponds to a unique Key required to sign the transaction. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\BasicTypes::initOnce(); + parent::__construct($data); + } + + /** + * Each signature pair corresponds to a unique Key required to sign the transaction. + * + * Generated from protobuf field repeated .gradido.SignaturePair sigPair = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSigPair() + { + return $this->sigPair; + } + + /** + * Each signature pair corresponds to a unique Key required to sign the transaction. + * + * Generated from protobuf field repeated .gradido.SignaturePair sigPair = 1; + * @param \Gradido\SignaturePair[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSigPair($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Gradido\SignaturePair::class); + $this->sigPair = $arr; + + return $this; + } + +} + diff --git a/src/Model/Messages/Gradido/SignaturePair.php b/src/Model/Messages/Gradido/SignaturePair.php new file mode 100644 index 000000000..6daef4154 --- /dev/null +++ b/src/Model/Messages/Gradido/SignaturePair.php @@ -0,0 +1,123 @@ +gradido.SignaturePair + */ +final class SignaturePair extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field bytes pubKey = 1; + */ + private $pubKey = ''; + protected $signature; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $pubKey + * @type string $ed25519 + * ed25519 signature (libsodium default) + * @type string $ed25519_ref10 + * ed25519 ref10 signature + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\BasicTypes::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bytes pubKey = 1; + * @return string + */ + public function getPubKey() + { + return $this->pubKey; + } + + /** + * Generated from protobuf field bytes pubKey = 1; + * @param string $var + * @return $this + */ + public function setPubKey($var) + { + GPBUtil::checkString($var, False); + $this->pubKey = $var; + + return $this; + } + + /** + * ed25519 signature (libsodium default) + * + * Generated from protobuf field bytes ed25519 = 2; + * @return string + */ + public function getEd25519() + { + return $this->readOneof(2); + } + + /** + * ed25519 signature (libsodium default) + * + * Generated from protobuf field bytes ed25519 = 2; + * @param string $var + * @return $this + */ + public function setEd25519($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * ed25519 ref10 signature + * + * Generated from protobuf field bytes ed25519_ref10 = 3; + * @return string + */ + public function getEd25519Ref10() + { + return $this->readOneof(3); + } + + /** + * ed25519 ref10 signature + * + * Generated from protobuf field bytes ed25519_ref10 = 3; + * @param string $var + * @return $this + */ + public function setEd25519Ref10($var) + { + GPBUtil::checkString($var, False); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * @return string + */ + public function getSignature() + { + return $this->whichOneof("signature"); + } + +} + diff --git a/src/Model/Messages/Gradido/StateCreateGroup.php b/src/Model/Messages/Gradido/StateCreateGroup.php new file mode 100644 index 000000000..785245950 --- /dev/null +++ b/src/Model/Messages/Gradido/StateCreateGroup.php @@ -0,0 +1,114 @@ +gradido.StateCreateGroup + */ +final class StateCreateGroup extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string name = 1; + */ + private $name = ''; + /** + * Generated from protobuf field .gradido.Key groupPublicKey = 2; + */ + private $groupPublicKey = null; + /** + * Generated from protobuf field .gradido.Key parentGroupPublicKey = 3; + */ + private $parentGroupPublicKey = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * @type \Gradido\Key $groupPublicKey + * @type \Gradido\Key $parentGroupPublicKey + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\StateCreateGroup::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 .gradido.Key groupPublicKey = 2; + * @return \Gradido\Key + */ + public function getGroupPublicKey() + { + return $this->groupPublicKey; + } + + /** + * Generated from protobuf field .gradido.Key groupPublicKey = 2; + * @param \Gradido\Key $var + * @return $this + */ + public function setGroupPublicKey($var) + { + GPBUtil::checkMessage($var, \Gradido\Key::class); + $this->groupPublicKey = $var; + + return $this; + } + + /** + * Generated from protobuf field .gradido.Key parentGroupPublicKey = 3; + * @return \Gradido\Key + */ + public function getParentGroupPublicKey() + { + return $this->parentGroupPublicKey; + } + + /** + * Generated from protobuf field .gradido.Key parentGroupPublicKey = 3; + * @param \Gradido\Key $var + * @return $this + */ + public function setParentGroupPublicKey($var) + { + GPBUtil::checkMessage($var, \Gradido\Key::class); + $this->parentGroupPublicKey = $var; + + return $this; + } + +} + diff --git a/src/Model/Messages/Gradido/StateGroupChangeParent.php b/src/Model/Messages/Gradido/StateGroupChangeParent.php new file mode 100644 index 000000000..2fd2bbd48 --- /dev/null +++ b/src/Model/Messages/Gradido/StateGroupChangeParent.php @@ -0,0 +1,114 @@ +gradido.StateGroupChangeParent + */ +final class StateGroupChangeParent extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .gradido.Key groupPublicKey = 1; + */ + private $groupPublicKey = null; + /** + * Generated from protobuf field .gradido.Key newParentGroupPublicKey = 2; + */ + private $newParentGroupPublicKey = null; + /** + * Generated from protobuf field .gradido.Key oldParentGroupPublicKey = 3; + */ + private $oldParentGroupPublicKey = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Gradido\Key $groupPublicKey + * @type \Gradido\Key $newParentGroupPublicKey + * @type \Gradido\Key $oldParentGroupPublicKey + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\StateGroupChangeParent::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .gradido.Key groupPublicKey = 1; + * @return \Gradido\Key + */ + public function getGroupPublicKey() + { + return $this->groupPublicKey; + } + + /** + * Generated from protobuf field .gradido.Key groupPublicKey = 1; + * @param \Gradido\Key $var + * @return $this + */ + public function setGroupPublicKey($var) + { + GPBUtil::checkMessage($var, \Gradido\Key::class); + $this->groupPublicKey = $var; + + return $this; + } + + /** + * Generated from protobuf field .gradido.Key newParentGroupPublicKey = 2; + * @return \Gradido\Key + */ + public function getNewParentGroupPublicKey() + { + return $this->newParentGroupPublicKey; + } + + /** + * Generated from protobuf field .gradido.Key newParentGroupPublicKey = 2; + * @param \Gradido\Key $var + * @return $this + */ + public function setNewParentGroupPublicKey($var) + { + GPBUtil::checkMessage($var, \Gradido\Key::class); + $this->newParentGroupPublicKey = $var; + + return $this; + } + + /** + * Generated from protobuf field .gradido.Key oldParentGroupPublicKey = 3; + * @return \Gradido\Key + */ + public function getOldParentGroupPublicKey() + { + return $this->oldParentGroupPublicKey; + } + + /** + * Generated from protobuf field .gradido.Key oldParentGroupPublicKey = 3; + * @param \Gradido\Key $var + * @return $this + */ + public function setOldParentGroupPublicKey($var) + { + GPBUtil::checkMessage($var, \Gradido\Key::class); + $this->oldParentGroupPublicKey = $var; + + return $this; + } + +} + diff --git a/src/Model/Messages/Gradido/Timestamp.php b/src/Model/Messages/Gradido/Timestamp.php new file mode 100644 index 000000000..38dca8db7 --- /dev/null +++ b/src/Model/Messages/Gradido/Timestamp.php @@ -0,0 +1,101 @@ +gradido.Timestamp + */ +final class Timestamp extends \Google\Protobuf\Internal\Message +{ + /** + * Number of complete seconds since the start of the epoch + * + * Generated from protobuf field int64 seconds = 1; + */ + private $seconds = 0; + /** + * Number of nanoseconds since the start of the last second + * + * Generated from protobuf field int32 nanos = 2; + */ + private $nanos = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $seconds + * Number of complete seconds since the start of the epoch + * @type int $nanos + * Number of nanoseconds since the start of the last second + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\BasicTypes::initOnce(); + parent::__construct($data); + } + + /** + * Number of complete seconds since the start of the epoch + * + * Generated from protobuf field int64 seconds = 1; + * @return int|string + */ + public function getSeconds() + { + return $this->seconds; + } + + /** + * Number of complete seconds since the start of the epoch + * + * Generated from protobuf field int64 seconds = 1; + * @param int|string $var + * @return $this + */ + public function setSeconds($var) + { + GPBUtil::checkInt64($var); + $this->seconds = $var; + + return $this; + } + + /** + * Number of nanoseconds since the start of the last second + * + * Generated from protobuf field int32 nanos = 2; + * @return int + */ + public function getNanos() + { + return $this->nanos; + } + + /** + * Number of nanoseconds since the start of the last second + * + * Generated from protobuf field int32 nanos = 2; + * @param int $var + * @return $this + */ + public function setNanos($var) + { + GPBUtil::checkInt32($var); + $this->nanos = $var; + + return $this; + } + +} + diff --git a/src/Model/Messages/Gradido/TimestampSeconds.php b/src/Model/Messages/Gradido/TimestampSeconds.php new file mode 100644 index 000000000..15a402836 --- /dev/null +++ b/src/Model/Messages/Gradido/TimestampSeconds.php @@ -0,0 +1,67 @@ +gradido.TimestampSeconds + */ +final class TimestampSeconds extends \Google\Protobuf\Internal\Message +{ + /** + * Number of complete seconds since the start of the epoch + * + * Generated from protobuf field int64 seconds = 1; + */ + private $seconds = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $seconds + * Number of complete seconds since the start of the epoch + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\BasicTypes::initOnce(); + parent::__construct($data); + } + + /** + * Number of complete seconds since the start of the epoch + * + * Generated from protobuf field int64 seconds = 1; + * @return int|string + */ + public function getSeconds() + { + return $this->seconds; + } + + /** + * Number of complete seconds since the start of the epoch + * + * Generated from protobuf field int64 seconds = 1; + * @param int|string $var + * @return $this + */ + public function setSeconds($var) + { + GPBUtil::checkInt64($var); + $this->seconds = $var; + + return $this; + } + +} + diff --git a/src/Model/Messages/Gradido/Transaction.php b/src/Model/Messages/Gradido/Transaction.php new file mode 100644 index 000000000..4adb3f95f --- /dev/null +++ b/src/Model/Messages/Gradido/Transaction.php @@ -0,0 +1,166 @@ +gradido.Transaction + */ +final class Transaction extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field uint64 id = 1; + */ + private $id = 0; + /** + * Generated from protobuf field .gradido.TimestampSeconds received = 2; + */ + private $received = null; + /** + * Generated from protobuf field .gradido.SignatureMap sigMap = 3; + */ + private $sigMap = null; + /** + * Generated from protobuf field bytes txHash = 4; + */ + private $txHash = ''; + /** + * Generated from protobuf field bytes bodyBytes = 5; + */ + private $bodyBytes = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $id + * @type \Gradido\TimestampSeconds $received + * @type \Gradido\SignatureMap $sigMap + * @type string $txHash + * @type string $bodyBytes + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Transaction::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint64 id = 1; + * @return int|string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field uint64 id = 1; + * @param int|string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkUint64($var); + $this->id = $var; + + return $this; + } + + /** + * Generated from protobuf field .gradido.TimestampSeconds received = 2; + * @return \Gradido\TimestampSeconds + */ + public function getReceived() + { + return $this->received; + } + + /** + * Generated from protobuf field .gradido.TimestampSeconds received = 2; + * @param \Gradido\TimestampSeconds $var + * @return $this + */ + public function setReceived($var) + { + GPBUtil::checkMessage($var, \Gradido\TimestampSeconds::class); + $this->received = $var; + + return $this; + } + + /** + * Generated from protobuf field .gradido.SignatureMap sigMap = 3; + * @return \Gradido\SignatureMap + */ + public function getSigMap() + { + return $this->sigMap; + } + + /** + * Generated from protobuf field .gradido.SignatureMap sigMap = 3; + * @param \Gradido\SignatureMap $var + * @return $this + */ + public function setSigMap($var) + { + GPBUtil::checkMessage($var, \Gradido\SignatureMap::class); + $this->sigMap = $var; + + return $this; + } + + /** + * Generated from protobuf field bytes txHash = 4; + * @return string + */ + public function getTxHash() + { + return $this->txHash; + } + + /** + * Generated from protobuf field bytes txHash = 4; + * @param string $var + * @return $this + */ + public function setTxHash($var) + { + GPBUtil::checkString($var, False); + $this->txHash = $var; + + return $this; + } + + /** + * Generated from protobuf field bytes bodyBytes = 5; + * @return string + */ + public function getBodyBytes() + { + return $this->bodyBytes; + } + + /** + * Generated from protobuf field bytes bodyBytes = 5; + * @param string $var + * @return $this + */ + public function setBodyBytes($var) + { + GPBUtil::checkString($var, False); + $this->bodyBytes = $var; + + return $this; + } + +} + diff --git a/src/Model/Messages/Gradido/TransactionBody.php b/src/Model/Messages/Gradido/TransactionBody.php new file mode 100644 index 000000000..b2f3925a9 --- /dev/null +++ b/src/Model/Messages/Gradido/TransactionBody.php @@ -0,0 +1,166 @@ +gradido.TransactionBody + */ +final class TransactionBody extends \Google\Protobuf\Internal\Message +{ + /** + * max 150 chars + * + * Generated from protobuf field string memo = 1; + */ + private $memo = ''; + protected $data; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $memo + * max 150 chars + * @type \Gradido\StateCreateGroup $createGroup + * @type \Gradido\StateGroupChangeParent $groupChangeParent + * @type \Gradido\Transfer $transfer + * @type \Gradido\TransactionCreation $creation + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\TransactionBody::initOnce(); + parent::__construct($data); + } + + /** + * max 150 chars + * + * Generated from protobuf field string memo = 1; + * @return string + */ + public function getMemo() + { + return $this->memo; + } + + /** + * max 150 chars + * + * Generated from protobuf field string memo = 1; + * @param string $var + * @return $this + */ + public function setMemo($var) + { + GPBUtil::checkString($var, True); + $this->memo = $var; + + return $this; + } + + /** + * Generated from protobuf field .gradido.StateCreateGroup createGroup = 2; + * @return \Gradido\StateCreateGroup + */ + public function getCreateGroup() + { + return $this->readOneof(2); + } + + /** + * Generated from protobuf field .gradido.StateCreateGroup createGroup = 2; + * @param \Gradido\StateCreateGroup $var + * @return $this + */ + public function setCreateGroup($var) + { + GPBUtil::checkMessage($var, \Gradido\StateCreateGroup::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Generated from protobuf field .gradido.StateGroupChangeParent groupChangeParent = 3; + * @return \Gradido\StateGroupChangeParent + */ + public function getGroupChangeParent() + { + return $this->readOneof(3); + } + + /** + * Generated from protobuf field .gradido.StateGroupChangeParent groupChangeParent = 3; + * @param \Gradido\StateGroupChangeParent $var + * @return $this + */ + public function setGroupChangeParent($var) + { + GPBUtil::checkMessage($var, \Gradido\StateGroupChangeParent::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Generated from protobuf field .gradido.Transfer transfer = 4; + * @return \Gradido\Transfer + */ + public function getTransfer() + { + return $this->readOneof(4); + } + + /** + * Generated from protobuf field .gradido.Transfer transfer = 4; + * @param \Gradido\Transfer $var + * @return $this + */ + public function setTransfer($var) + { + GPBUtil::checkMessage($var, \Gradido\Transfer::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Generated from protobuf field .gradido.TransactionCreation creation = 5; + * @return \Gradido\TransactionCreation + */ + public function getCreation() + { + return $this->readOneof(5); + } + + /** + * Generated from protobuf field .gradido.TransactionCreation creation = 5; + * @param \Gradido\TransactionCreation $var + * @return $this + */ + public function setCreation($var) + { + GPBUtil::checkMessage($var, \Gradido\TransactionCreation::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * @return string + */ + public function getData() + { + return $this->whichOneof("data"); + } + +} + diff --git a/src/Model/Messages/Gradido/TransactionCreation.php b/src/Model/Messages/Gradido/TransactionCreation.php new file mode 100644 index 000000000..1a8e36752 --- /dev/null +++ b/src/Model/Messages/Gradido/TransactionCreation.php @@ -0,0 +1,88 @@ +gradido.TransactionCreation + */ +final class TransactionCreation extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .gradido.ReceiverAmount receiverAmount = 1; + */ + private $receiverAmount = null; + /** + * Generated from protobuf field sint32 ident_hash = 2; + */ + private $ident_hash = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Gradido\ReceiverAmount $receiverAmount + * @type int $ident_hash + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\TransactionCreation::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .gradido.ReceiverAmount receiverAmount = 1; + * @return \Gradido\ReceiverAmount + */ + public function getReceiverAmount() + { + return $this->receiverAmount; + } + + /** + * Generated from protobuf field .gradido.ReceiverAmount receiverAmount = 1; + * @param \Gradido\ReceiverAmount $var + * @return $this + */ + public function setReceiverAmount($var) + { + GPBUtil::checkMessage($var, \Gradido\ReceiverAmount::class); + $this->receiverAmount = $var; + + return $this; + } + + /** + * Generated from protobuf field sint32 ident_hash = 2; + * @return int + */ + public function getIdentHash() + { + return $this->ident_hash; + } + + /** + * Generated from protobuf field sint32 ident_hash = 2; + * @param int $var + * @return $this + */ + public function setIdentHash($var) + { + GPBUtil::checkInt32($var); + $this->ident_hash = $var; + + return $this; + } + +} + diff --git a/src/Model/Messages/Gradido/Transfer.php b/src/Model/Messages/Gradido/Transfer.php new file mode 100644 index 000000000..6d403b0dc --- /dev/null +++ b/src/Model/Messages/Gradido/Transfer.php @@ -0,0 +1,85 @@ +gradido.Transfer + */ +final class Transfer extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated .gradido.SenderAmount senderAmounts = 1; + */ + private $senderAmounts; + /** + * Generated from protobuf field repeated .gradido.ReceiverAmount receiverAmounts = 2; + */ + private $receiverAmounts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Gradido\SenderAmount[]|\Google\Protobuf\Internal\RepeatedField $senderAmounts + * @type \Gradido\ReceiverAmount[]|\Google\Protobuf\Internal\RepeatedField $receiverAmounts + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Transfer::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .gradido.SenderAmount senderAmounts = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSenderAmounts() + { + return $this->senderAmounts; + } + + /** + * Generated from protobuf field repeated .gradido.SenderAmount senderAmounts = 1; + * @param \Gradido\SenderAmount[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSenderAmounts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Gradido\SenderAmount::class); + $this->senderAmounts = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .gradido.ReceiverAmount receiverAmounts = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getReceiverAmounts() + { + return $this->receiverAmounts; + } + + /** + * Generated from protobuf field repeated .gradido.ReceiverAmount receiverAmounts = 2; + * @param \Gradido\ReceiverAmount[]|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setReceiverAmounts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Gradido\ReceiverAmount::class); + $this->receiverAmounts = $arr; + + return $this; + } + +} + diff --git a/src/Model/Messages/protobuf/gradido/BasicTypes.proto b/src/Model/Messages/protobuf/gradido/BasicTypes.proto index 6e0f208d9..5820b6bb1 100644 --- a/src/Model/Messages/protobuf/gradido/BasicTypes.proto +++ b/src/Model/Messages/protobuf/gradido/BasicTypes.proto @@ -1,4 +1,4 @@ -syntax = "proto3" +syntax = "proto3"; package gradido; @@ -30,4 +30,15 @@ message Timestamp { /* An exact date and time, with a resolution of one second (no nanoseconds). */ message TimestampSeconds { int64 seconds = 1; // Number of complete seconds since the start of the epoch +} + +message SenderAmount { + bytes ed25519_sender_pubkey = 1; + sint64 amount = 2; + sint64 senderFinalBalance = 3; // sender balance after transaction, including perishability +} + +message ReceiverAmount { + bytes ed25519_receiver_pubkey = 1; + sint64 amount = 2; } \ No newline at end of file diff --git a/src/Model/Messages/protobuf/gradido/StateCreateGroup.proto b/src/Model/Messages/protobuf/gradido/StateCreateGroup.proto index 0fd3b58c7..f43da8779 100644 --- a/src/Model/Messages/protobuf/gradido/StateCreateGroup.proto +++ b/src/Model/Messages/protobuf/gradido/StateCreateGroup.proto @@ -1,4 +1,4 @@ -syntax = "proto3" +syntax = "proto3"; package gradido; diff --git a/src/Model/Messages/protobuf/gradido/StateGroupChangeParent.proto b/src/Model/Messages/protobuf/gradido/StateGroupChangeParent.proto index 8742bf5aa..f21042a66 100644 --- a/src/Model/Messages/protobuf/gradido/StateGroupChangeParent.proto +++ b/src/Model/Messages/protobuf/gradido/StateGroupChangeParent.proto @@ -1,4 +1,4 @@ -syntax = "proto3" +syntax = "proto3"; package gradido; diff --git a/src/Model/Messages/protobuf/gradido/Transaction.proto b/src/Model/Messages/protobuf/gradido/Transaction.proto index 37bfffe60..6cd78f1a2 100644 --- a/src/Model/Messages/protobuf/gradido/Transaction.proto +++ b/src/Model/Messages/protobuf/gradido/Transaction.proto @@ -1,9 +1,8 @@ -syntax = "proto3" +syntax = "proto3"; package gradido; import "BasicTypes.proto"; -import "TransactionBody.proto"; /* id will be set by Node server diff --git a/src/Model/Messages/protobuf/gradido/TransactionBody.proto b/src/Model/Messages/protobuf/gradido/TransactionBody.proto index e85f09b52..352d33745 100644 --- a/src/Model/Messages/protobuf/gradido/TransactionBody.proto +++ b/src/Model/Messages/protobuf/gradido/TransactionBody.proto @@ -1,10 +1,11 @@ -syntax = "proto3" +syntax = "proto3"; package gradido; import "Transfer.proto"; import "StateCreateGroup.proto"; import "StateGroupChangeParent.proto"; +import "TransactionCreation.proto"; message TransactionBody { string memo = 1; // max 150 chars @@ -12,5 +13,6 @@ message TransactionBody { StateCreateGroup createGroup = 2; StateGroupChangeParent groupChangeParent = 3; Transfer transfer = 4; + TransactionCreation creation = 5; } } \ No newline at end of file diff --git a/src/Model/Messages/protobuf/gradido/TransactionCreation.proto b/src/Model/Messages/protobuf/gradido/TransactionCreation.proto new file mode 100644 index 000000000..41c9dce04 --- /dev/null +++ b/src/Model/Messages/protobuf/gradido/TransactionCreation.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package gradido; + +import "BasicTypes.proto"; + +// need signature from group admin or +// percent of group users another than the receiver +message TransactionCreation { + ReceiverAmount receiverAmount = 1; + sint32 ident_hash = 2; + +} \ No newline at end of file diff --git a/src/Model/Messages/protobuf/gradido/Transfer.proto b/src/Model/Messages/protobuf/gradido/Transfer.proto index ebff885df..60965cc19 100644 --- a/src/Model/Messages/protobuf/gradido/Transfer.proto +++ b/src/Model/Messages/protobuf/gradido/Transfer.proto @@ -1,17 +1,8 @@ -syntax = "proto3" +syntax = "proto3"; package gradido; -message SenderAmount { - bytes ed25519_sender_pubkey = 1; - sint64 amount = 2; - sint64 senderFinalBalance = 3; // sender balance after transaction, including perishability -} - -message ReceiverAmount { - bytes ed25519_receiver_pubkey = 1; - sint64 amount = 2; -} +import "BasicTypes.proto"; message Transfer { repeated SenderAmount senderAmounts = 1; diff --git a/src/Template/Layout/frontend.ctp b/src/Template/Layout/frontend.ctp new file mode 100644 index 000000000..0f389c99a --- /dev/null +++ b/src/Template/Layout/frontend.ctp @@ -0,0 +1,56 @@ + + + + + Html->charset() ?> + + + <?= $cakeDescription ?>: + <?= $this->fetch('title') ?> + + Html->meta('icon') ?> + + Html->css('base.css') ?> + Html->css('styles.css') ?> + + fetch('meta') ?> + fetch('css') ?> + fetch('script') ?> + + + + Flash->render() ?> +
+ fetch('content') ?> +
+ + + diff --git a/src/Template/Pages/cake_home.ctp b/src/Template/Pages/cake_home.ctp new file mode 100644 index 000000000..5a3731e4c --- /dev/null +++ b/src/Template/Pages/cake_home.ctp @@ -0,0 +1,276 @@ +layout = false; + +if (!Configure::read('debug')) : + throw new NotFoundException( + 'Please replace src/Template/Pages/home.ctp with your own version or re-enable debug mode.' + ); +endif; + +$cakeDescription = 'CakePHP: the rapid development PHP framework'; +?> + + + + Html->charset() ?> + + + <?= $cakeDescription ?> + + + Html->meta('icon') ?> + Html->css('base.css') ?> + Html->css('style.css') ?> + Html->css('home.css') ?> + + + + +
+
Html->image('cake.logo.svg') ?>
+
+

Welcome to CakePHP Red Velvet. Build fast. Grow solid.

+
+
+ +
+
+
+

Please be aware that this page will not be shown if you turn off debug mode unless you replace src/Template/Pages/home.ctp with your own version.

+
+
+ +
+ +
+
+ +
+
+

Environment

+
    + =')) : ?> +
  • Your version of PHP is 5.6.0 or higher (detected ).
  • + +
  • Your version of PHP is too low. You need PHP 5.6.0 or higher to use CakePHP (detected ).
  • + + + +
  • Your version of PHP has the mbstring extension loaded.
  • + +
  • Your version of PHP does NOT have the mbstring extension loaded.
  • + + + +
  • Your version of PHP has the openssl extension loaded.
  • + +
  • Your version of PHP has the mcrypt extension loaded.
  • + +
  • Your version of PHP does NOT have the openssl or mcrypt extension loaded.
  • + + + +
  • Your version of PHP has the intl extension loaded.
  • + +
  • Your version of PHP does NOT have the intl extension loaded.
  • + +
+
+
+

Filesystem

+
    + +
  • Your tmp directory is writable.
  • + +
  • Your tmp directory is NOT writable.
  • + + + +
  • Your logs directory is writable.
  • + +
  • Your logs directory is NOT writable.
  • + + + + +
  • The Engine is being used for core caching. To change the config edit config/app.php
  • + +
  • Your cache is NOT working. Please check the settings in config/app.php
  • + +
+
+
+
+ +
+
+

Database

+ connect(); + } catch (Exception $connectionError) { + $connected = false; + $errorMsg = $connectionError->getMessage(); + if (method_exists($connectionError, 'getAttributes')) : + $attributes = $connectionError->getAttributes(); + if (isset($errorMsg['message'])) : + $errorMsg .= '
' . $attributes['message']; + endif; + endif; + } + ?> +
    + +
  • CakePHP is able to connect to the database.
  • + +
  • CakePHP is NOT able to connect to the database.
  • + +
+
+
+

DebugKit

+
    + +
  • DebugKit is loaded.
  • + +
  • DebugKit is NOT loaded. You need to either install pdo_sqlite, or define the "debug_kit" connection name.
  • + +
+
+
+
+ +
+
+

Editing this Page

+
    +
  • To change the content of this page, edit: src/Template/Pages/home.ctp.
  • +
  • You can also add some CSS styles for your pages at: webroot/css/.
  • +
+
+
+

Getting Started

+ +
+
+ +
+
+

More about Cake

+

+ CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Front Controller and MVC.
+ Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility. +

+
+
+
+ +
+
+ P +

Help and Bug Reports

+ +
+
+ r +

Docs and Downloads

+ +
+
+ s +

Training and Certification

+ +
+
+ + +