diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc8c1d6..071cb1d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,19 +34,19 @@ jobs: - name: Download PHP Installer run: | - php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.0/installer.php', 'installer.php');" + php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.1/installer.php', 'installer.php');" php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; } echo PHP_EOL;" - name: Install PHP Extension (Windows) if: matrix.operating-system == 'windows-2019' - run: php installer.php -v 1.37.0 + run: php installer.php -v 1.37.1 - name: Install PHP Extension (Ubuntu/Mac) if: matrix.operating-system != 'windows-2019' - run: sudo php installer.php -v 1.37.0 + run: sudo php installer.php -v 1.37.1 - name: Test PHP Extension - run: php installer.php -v 1.37.0 -T + run: php installer.php -v 1.37.1 -T - name: Check PHP Extensions run: php -m diff --git a/README.md b/README.md index b815147..ddc07f0 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ Use [radianceteam/ton-client-php](https://hub.docker.com/r/radianceteam/ton-clie as a base image in your `Dockerfile`: ```bash -FROM radianceteam/ton-client-php:1.37.0-php7.4-cli +FROM radianceteam/ton-client-php:1.37.1-php7.4-cli COPY . /usr/src/myapp WORKDIR /usr/src/myapp CMD [ "php", "./your-script.php" ] @@ -149,7 +149,7 @@ CMD [ "php", "./your-script.php" ] Basically, do anything you can do with the [original PHP image](https://hub.docker.com/_/php) by just replacing `FROM php:-` with -`FROM radianceteam/ton-client-php:1.37.0-php-`. +`FROM radianceteam/ton-client-php:1.37.1-php-`. Note: only `cli`, `fpm` and `zts` variants are supported ATM. diff --git a/api.json b/api.json index dcff6db..cbcb386 100644 --- a/api.json +++ b/api.json @@ -1,5 +1,5 @@ { - "version": "1.37.0", + "version": "1.37.1", "modules": [ { "name": "client", @@ -7608,14 +7608,14 @@ } ], "summary": "Pin the BOC with `pin` name.", - "description": "Such BOC will not be removed from cache until it is unpinned" + "description": "Such BOC will not be removed from cache until it is unpinned BOCs can have several pins and each of the pins has reference counter indicating how many\ntimes the BOC was pinned with the pin. BOC is removed from cache after all references for all\npins are unpinned with `cache_unpin` function calls." }, { "name": "Unpinned", "type": "Struct", "struct_fields": [], - "summary": " ", - "description": null + "summary": "BOC is placed into a common BOC pool with limited size regulated by LRU (least recently used) cache lifecycle.", + "description": "BOC resides there until it is replaced with other BOCs if it is not used" } ], "summary": null, @@ -8867,7 +8867,7 @@ }, { "name": "cache_set", - "summary": "Save BOC into cache", + "summary": "Save BOC into cache or increase pin counter for existing pinned BOC", "description": null, "params": [ { @@ -8905,8 +8905,8 @@ }, { "name": "cache_unpin", - "summary": "Unpin BOCs with specified pin.", - "description": "BOCs which don't have another pins will be removed from cache", + "summary": "Unpin BOCs with specified pin defined in the `cache_set`. Decrease pin reference counter for BOCs with specified pin defined in the `cache_set`. BOCs which have only 1 pin and its reference counter become 0 will be removed from cache", + "description": null, "params": [ { "name": "context", @@ -10681,7 +10681,7 @@ "number_type": "UInt", "number_size": 64, "summary": "Deprecated.", - "description": "Left for backward compatibility. Does not participate in account transaction fees calculation." + "description": "Contains the same data as ext_in_msg_fee field" }, { "name": "storage_fee", @@ -10713,7 +10713,7 @@ "number_type": "UInt", "number_size": 64, "summary": "Deprecated.", - "description": "This is the field that is named as `total_fees` in GraphQL API Transaction type. `total_account_fees` name is misleading, because it does not mean account fees, instead it means\nvalidators total fees received for the transaction execution. It does not include some forward fees that account\nactually pays now, but validators will receive later during value delivery to another account (not even in the receiving\ntransaction).\nBecause of all of this, this field is not interesting for those who wants to understand\nthe real account fees, this is why it is deprecated and left for backward compatibility." + "description": "Contains the same data as account_fees field" }, { "name": "total_output", @@ -12554,7 +12554,7 @@ { "name": "subscribe", "summary": "Creates a subscription", - "description": "The subscription is a persistent communication channel between\nclient and Everscale Network.\n\n### Important Notes on Subscriptions\n\nUnfortunately sometimes the connection with the network brakes down.\nIn this situation the library attempts to reconnect to the network.\nThis reconnection sequence can take significant time.\nAll of this time the client is disconnected from the network.\n\nBad news is that all changes that happened while\nthe client was disconnected are lost.\n\nGood news is that the client report errors to the callback when\nit loses and resumes connection.\n\nSo, if the lost changes are important to the application then\nthe application must handle these error reports.\n\nLibrary reports errors with `responseType` == 101\nand the error object passed via `params`.\n\nWhen the library has successfully reconnected\nthe application receives callback with\n`responseType` == 101 and `params.code` == 614 (NetworkModuleResumed).\n\nApplication can use several ways to handle this situation:\n- If application monitors changes for the single\nobject (for example specific account): application\ncan perform a query for this object and handle actual data as a\nregular data from the subscription.\n- If application monitors sequence of some objects\n(for example transactions of the specific account): application must\nrefresh all cached (or visible to user) lists where this sequences presents.", + "description": "The subscription is a persistent communication channel between\nclient and Everscale Network.\n\n### Important Notes on Subscriptions\n\nUnfortunately sometimes the connection with the network breakes down.\nIn this situation the library attempts to reconnect to the network.\nThis reconnection sequence can take significant time.\nAll of this time the client is disconnected from the network.\n\nBad news is that all changes that happened while\nthe client was disconnected are lost.\n\nGood news is that the client report errors to the callback when\nit loses and resumes connection.\n\nSo, if the lost changes are important to the application then\nthe application must handle these error reports.\n\nLibrary reports errors with `responseType` == 101\nand the error object passed via `params`.\n\nWhen the library has successfully reconnected\nthe application receives callback with\n`responseType` == 101 and `params.code` == 614 (NetworkModuleResumed).\n\nApplication can use several ways to handle this situation:\n- If application monitors changes for the single\nobject (for example specific account): application\ncan perform a query for this object and handle actual data as a\nregular data from the subscription.\n- If application monitors sequence of some objects\n(for example transactions of the specific account): application must\nrefresh all cached (or visible to user) lists where this sequences presents.", "params": [ { "name": "context", diff --git a/composer.json b/composer.json index 6fe9ef5..33d6b15 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "require": { "php": ">=7.4", "ext-json": "*", - "ext-ton_client": ">=1.37.0", + "ext-ton_client": ">=1.37.1", "psr/log": "^1.1" }, "scripts": { diff --git a/composer.lock b/composer.lock index 0ff8be5..981e818 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "44535b6e978f744e9ec817d1d79636e4", + "content-hash": "44aed1d74940f7db3c26b9258a98813a", "packages": [ { "name": "psr/log", @@ -291,21 +291,21 @@ }, { "name": "nette/php-generator", - "version": "v3.6.7", + "version": "v3.6.8", "source": { "type": "git", "url": "https://github.com/nette/php-generator.git", - "reference": "b9ba414c9895fd9420887f20eeb4eabde123677f" + "reference": "9073c8ac505b5f65af3bc2d1665be7d256e2dbe3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nette/php-generator/zipball/b9ba414c9895fd9420887f20eeb4eabde123677f", - "reference": "b9ba414c9895fd9420887f20eeb4eabde123677f", + "url": "https://api.github.com/repos/nette/php-generator/zipball/9073c8ac505b5f65af3bc2d1665be7d256e2dbe3", + "reference": "9073c8ac505b5f65af3bc2d1665be7d256e2dbe3", "shasum": "" }, "require": { "nette/utils": "^3.1.2", - "php": ">=7.2 <8.2" + "php": ">=7.2 <8.3" }, "require-dev": { "nette/tester": "^2.4", @@ -353,26 +353,26 @@ ], "support": { "issues": "https://github.com/nette/php-generator/issues", - "source": "https://github.com/nette/php-generator/tree/v3.6.7" + "source": "https://github.com/nette/php-generator/tree/v3.6.8" }, - "time": "2022-03-10T01:51:00+00:00" + "time": "2022-09-12T22:13:59+00:00" }, { "name": "nette/utils", - "version": "v3.2.7", + "version": "v3.2.8", "source": { "type": "git", "url": "https://github.com/nette/utils.git", - "reference": "0af4e3de4df9f1543534beab255ccf459e7a2c99" + "reference": "02a54c4c872b99e4ec05c4aec54b5a06eb0f6368" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nette/utils/zipball/0af4e3de4df9f1543534beab255ccf459e7a2c99", - "reference": "0af4e3de4df9f1543534beab255ccf459e7a2c99", + "url": "https://api.github.com/repos/nette/utils/zipball/02a54c4c872b99e4ec05c4aec54b5a06eb0f6368", + "reference": "02a54c4c872b99e4ec05c4aec54b5a06eb0f6368", "shasum": "" }, "require": { - "php": ">=7.2 <8.2" + "php": ">=7.2 <8.3" }, "conflict": { "nette/di": "<3.0.6" @@ -438,22 +438,22 @@ ], "support": { "issues": "https://github.com/nette/utils/issues", - "source": "https://github.com/nette/utils/tree/v3.2.7" + "source": "https://github.com/nette/utils/tree/v3.2.8" }, - "time": "2022-01-24T11:29:14+00:00" + "time": "2022-09-12T23:36:20+00:00" }, { "name": "nikic/php-parser", - "version": "v4.14.0", + "version": "v4.15.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1" + "reference": "0ef6c55a3f47f89d7a374e6f835197a0b5fcf900" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/34bea19b6e03d8153165d8f30bba4c3be86184c1", - "reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/0ef6c55a3f47f89d7a374e6f835197a0b5fcf900", + "reference": "0ef6c55a3f47f89d7a374e6f835197a0b5fcf900", "shasum": "" }, "require": { @@ -494,9 +494,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.14.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.1" }, - "time": "2022-05-31T20:59:12+00:00" + "time": "2022-09-04T07:30:47+00:00" }, { "name": "phar-io/manifest", @@ -609,252 +609,25 @@ }, "time": "2022-02-21T01:04:05+00:00" }, - { - "name": "phpdocumentor/reflection-common", - "version": "2.2.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-2.x": "2.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" - } - ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" - }, - "time": "2020-06-27T09:03:43+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "5.3.0", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", - "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", - "shasum": "" - }, - "require": { - "ext-filter": "*", - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.2", - "psalm/phar": "^4.8" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - }, - { - "name": "Jaap van Otterdijk", - "email": "account@ijaap.nl" - } - ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" - }, - "time": "2021-10-19T17:43:47+00:00" - }, - { - "name": "phpdocumentor/type-resolver", - "version": "1.6.1", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "77a32518733312af16a44300404e945338981de3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/77a32518733312af16a44300404e945338981de3", - "reference": "77a32518733312af16a44300404e945338981de3", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.0" - }, - "require-dev": { - "ext-tokenizer": "*", - "psalm/phar": "^4.8" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" - } - ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", - "support": { - "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.1" - }, - "time": "2022-03-15T21:29:03+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "v1.15.0", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.2", - "phpdocumentor/reflection-docblock": "^5.2", - "sebastian/comparator": "^3.0 || ^4.0", - "sebastian/recursion-context": "^3.0 || ^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^6.0 || ^7.0", - "phpunit/phpunit": "^8.0 || ^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" - }, - "time": "2021-12-08T12:19:24+00:00" - }, { "name": "phpunit/php-code-coverage", - "version": "9.2.15", + "version": "9.2.17", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f" + "reference": "aa94dc41e8661fe90c7316849907cba3007b10d8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2e9da11878c4202f97915c1cb4bb1ca318a63f5f", - "reference": "2e9da11878c4202f97915c1cb4bb1ca318a63f5f", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/aa94dc41e8661fe90c7316849907cba3007b10d8", + "reference": "aa94dc41e8661fe90c7316849907cba3007b10d8", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.13.0", + "nikic/php-parser": "^4.14", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -903,7 +676,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.15" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.17" }, "funding": [ { @@ -911,7 +684,7 @@ "type": "github" } ], - "time": "2022-03-07T09:28:20+00:00" + "time": "2022-08-30T12:24:04+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1156,16 +929,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.21", + "version": "9.5.24", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1" + "reference": "d0aa6097bef9fd42458a9b3c49da32c6ce6129c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0e32b76be457de00e83213528f6bb37e2a38fcb1", - "reference": "0e32b76be457de00e83213528f6bb37e2a38fcb1", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d0aa6097bef9fd42458a9b3c49da32c6ce6129c5", + "reference": "d0aa6097bef9fd42458a9b3c49da32c6ce6129c5", "shasum": "" }, "require": { @@ -1180,7 +953,6 @@ "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", - "phpspec/prophecy": "^1.12.1", "phpunit/php-code-coverage": "^9.2.13", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", @@ -1195,12 +967,9 @@ "sebastian/global-state": "^5.0.1", "sebastian/object-enumerator": "^4.0.3", "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^3.0", + "sebastian/type": "^3.1", "sebastian/version": "^3.0.2" }, - "require-dev": { - "phpspec/prophecy-phpunit": "^2.0.1" - }, "suggest": { "ext-soap": "*", "ext-xdebug": "*" @@ -1242,7 +1011,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.21" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.24" }, "funding": [ { @@ -1254,7 +1023,7 @@ "type": "github" } ], - "time": "2022-06-19T12:14:25+00:00" + "time": "2022-08-30T07:42:16+00:00" }, { "name": "sebastian/cli-parser", @@ -2113,16 +1882,16 @@ }, { "name": "sebastian/type", - "version": "3.0.0", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad" + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", - "reference": "b233b84bc4465aff7b57cf1c4bc75c86d00d6dad", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", "shasum": "" }, "require": { @@ -2134,7 +1903,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.2-dev" } }, "autoload": { @@ -2157,7 +1926,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/3.0.0" + "source": "https://github.com/sebastianbergmann/type/tree/3.2.0" }, "funding": [ { @@ -2165,7 +1934,7 @@ "type": "github" } ], - "time": "2022-03-15T09:54:48+00:00" + "time": "2022-09-12T14:47:03+00:00" }, { "name": "sebastian/version", @@ -2269,64 +2038,6 @@ } ], "time": "2021-07-28T10:34:58+00:00" - }, - { - "name": "webmozart/assert", - "version": "1.11.0", - "source": { - "type": "git", - "url": "https://github.com/webmozarts/assert.git", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", - "shasum": "" - }, - "require": { - "ext-ctype": "*", - "php": "^7.2 || ^8.0" - }, - "conflict": { - "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<4.6.1 || 4.6.2" - }, - "require-dev": { - "phpunit/phpunit": "^8.5.13" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "support": { - "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.11.0" - }, - "time": "2022-06-03T18:03:27+00:00" } ], "aliases": [], @@ -2337,7 +2048,7 @@ "platform": { "php": ">=7.4", "ext-json": "*", - "ext-ton_client": ">=1.37.0" + "ext-ton_client": ">=1.37.1" }, "platform-dev": { "ext-readline": "*" diff --git a/docker/7.4/cli/Dockerfile b/docker/7.4/cli/Dockerfile index d0328b0..fbf67a4 100644 --- a/docker/7.4/cli/Dockerfile +++ b/docker/7.4/cli/Dockerfile @@ -1,7 +1,7 @@ FROM php:7.4-cli -RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.0/installer.php', 'installer.php');" +RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.1/installer.php', 'installer.php');" RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;" -RUN php installer.php -v 1.37.0 -RUN php installer.php -v 1.37.0 -T +RUN php installer.php -v 1.37.1 +RUN php installer.php -v 1.37.1 -T RUN rm installer.php \ No newline at end of file diff --git a/docker/7.4/fpm/Dockerfile b/docker/7.4/fpm/Dockerfile index f14a6c4..0c78400 100644 --- a/docker/7.4/fpm/Dockerfile +++ b/docker/7.4/fpm/Dockerfile @@ -1,7 +1,7 @@ FROM php:7.4-fpm -RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.0/installer.php', 'installer.php');" +RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.1/installer.php', 'installer.php');" RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;" -RUN php installer.php -v 1.37.0 -RUN php installer.php -v 1.37.0 -T +RUN php installer.php -v 1.37.1 +RUN php installer.php -v 1.37.1 -T RUN rm installer.php \ No newline at end of file diff --git a/docker/7.4/zts/Dockerfile b/docker/7.4/zts/Dockerfile index feec232..dae5e32 100644 --- a/docker/7.4/zts/Dockerfile +++ b/docker/7.4/zts/Dockerfile @@ -1,7 +1,7 @@ FROM php:7.4-zts -RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.0/installer.php', 'installer.php');" +RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.1/installer.php', 'installer.php');" RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;" -RUN php installer.php -v 1.37.0 -RUN php installer.php -v 1.37.0 -T +RUN php installer.php -v 1.37.1 +RUN php installer.php -v 1.37.1 -T RUN rm installer.php \ No newline at end of file diff --git a/docker/8.0/cli/Dockerfile b/docker/8.0/cli/Dockerfile index 35fc7ba..e8507ae 100644 --- a/docker/8.0/cli/Dockerfile +++ b/docker/8.0/cli/Dockerfile @@ -1,7 +1,7 @@ FROM php:8.0-cli -RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.0/installer.php', 'installer.php');" +RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.1/installer.php', 'installer.php');" RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;" -RUN php installer.php -v 1.37.0 -RUN php installer.php -v 1.37.0 -T +RUN php installer.php -v 1.37.1 +RUN php installer.php -v 1.37.1 -T RUN rm installer.php \ No newline at end of file diff --git a/docker/8.0/fpm/Dockerfile b/docker/8.0/fpm/Dockerfile index d322276..6e4b06d 100644 --- a/docker/8.0/fpm/Dockerfile +++ b/docker/8.0/fpm/Dockerfile @@ -1,7 +1,7 @@ FROM php:8.0-fpm -RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.0/installer.php', 'installer.php');" +RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.1/installer.php', 'installer.php');" RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;" -RUN php installer.php -v 1.37.0 -RUN php installer.php -v 1.37.0 -T +RUN php installer.php -v 1.37.1 +RUN php installer.php -v 1.37.1 -T RUN rm installer.php \ No newline at end of file diff --git a/docker/8.0/zts/Dockerfile b/docker/8.0/zts/Dockerfile index eac7c27..f05a7d8 100644 --- a/docker/8.0/zts/Dockerfile +++ b/docker/8.0/zts/Dockerfile @@ -1,7 +1,7 @@ FROM php:8.0-zts -RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.0/installer.php', 'installer.php');" +RUN php -r "copy('https://raw.githubusercontent.com/radianceteam/ton-client-php-ext/1.37.1/installer.php', 'installer.php');" RUN php -r "if (hash_file('sha384', 'installer.php') === '03586e200bc1c87f000c5a0eea27aa688eb451a5b946579205ca918bbffda7234359e2d0e176aa53e841c6a77b8de959') { echo 'Installer verified'; } else { echo 'Installer corrupt'; exit(1); } echo PHP_EOL;" -RUN php installer.php -v 1.37.0 -RUN php installer.php -v 1.37.0 -T +RUN php installer.php -v 1.37.1 +RUN php installer.php -v 1.37.1 -T RUN rm installer.php \ No newline at end of file diff --git a/src/TON/Boc/Async/AsyncBocModule.php b/src/TON/Boc/Async/AsyncBocModule.php index a147587..05f3f75 100644 --- a/src/TON/Boc/Async/AsyncBocModule.php +++ b/src/TON/Boc/Async/AsyncBocModule.php @@ -145,7 +145,6 @@ public function cacheSetAsync(ParamsOfBocCacheSet $params): AsyncResultOfBocCach } /** - * BOCs which don't have another pins will be removed from cache * @param ParamsOfBocCacheUnpin $params * @return AsyncResult */ diff --git a/src/TON/Boc/Async/BocModuleAsyncInterface.php b/src/TON/Boc/Async/BocModuleAsyncInterface.php index 97fff29..b79647e 100644 --- a/src/TON/Boc/Async/BocModuleAsyncInterface.php +++ b/src/TON/Boc/Async/BocModuleAsyncInterface.php @@ -100,7 +100,6 @@ function cacheGetAsync(ParamsOfBocCacheGet $params): AsyncResultOfBocCacheGet; function cacheSetAsync(ParamsOfBocCacheSet $params): AsyncResultOfBocCacheSet; /** - * BOCs which don't have another pins will be removed from cache * @param ParamsOfBocCacheUnpin $params * @return AsyncResult */ diff --git a/src/TON/Boc/BocModule.php b/src/TON/Boc/BocModule.php index 8d67a85..fec0a8e 100644 --- a/src/TON/Boc/BocModule.php +++ b/src/TON/Boc/BocModule.php @@ -138,7 +138,6 @@ public function cacheSet(ParamsOfBocCacheSet $params): ResultOfBocCacheSet } /** - * BOCs which don't have another pins will be removed from cache * @param ParamsOfBocCacheUnpin $params */ public function cacheUnpin(ParamsOfBocCacheUnpin $params) diff --git a/src/TON/Boc/BocModuleInterface.php b/src/TON/Boc/BocModuleInterface.php index 0557a28..865be8a 100644 --- a/src/TON/Boc/BocModuleInterface.php +++ b/src/TON/Boc/BocModuleInterface.php @@ -89,7 +89,6 @@ function cacheGet(ParamsOfBocCacheGet $params): ResultOfBocCacheGet; function cacheSet(ParamsOfBocCacheSet $params): ResultOfBocCacheSet; /** - * BOCs which don't have another pins will be removed from cache * @param ParamsOfBocCacheUnpin $params */ function cacheUnpin(ParamsOfBocCacheUnpin $params); diff --git a/src/TON/Net/Async/AsyncNetModule.php b/src/TON/Net/Async/AsyncNetModule.php index cd48949..41c706a 100644 --- a/src/TON/Net/Async/AsyncNetModule.php +++ b/src/TON/Net/Async/AsyncNetModule.php @@ -163,7 +163,7 @@ public function subscribeCollectionAsync(ParamsOfSubscribeCollection $params): A * * ### Important Notes on Subscriptions * - * Unfortunately sometimes the connection with the network brakes down. + * Unfortunately sometimes the connection with the network breakes down. * In this situation the library attempts to reconnect to the network. * This reconnection sequence can take significant time. * All of this time the client is disconnected from the network. diff --git a/src/TON/Net/Async/NetModuleAsyncInterface.php b/src/TON/Net/Async/NetModuleAsyncInterface.php index 0ab9ff2..8900783 100644 --- a/src/TON/Net/Async/NetModuleAsyncInterface.php +++ b/src/TON/Net/Async/NetModuleAsyncInterface.php @@ -130,7 +130,7 @@ function subscribeCollectionAsync(ParamsOfSubscribeCollection $params): AsyncRes * * ### Important Notes on Subscriptions * - * Unfortunately sometimes the connection with the network brakes down. + * Unfortunately sometimes the connection with the network breakes down. * In this situation the library attempts to reconnect to the network. * This reconnection sequence can take significant time. * All of this time the client is disconnected from the network. diff --git a/src/TON/Tvm/TransactionFees.php b/src/TON/Tvm/TransactionFees.php index f41d506..1f54598 100644 --- a/src/TON/Tvm/TransactionFees.php +++ b/src/TON/Tvm/TransactionFees.php @@ -13,7 +13,7 @@ class TransactionFees implements JsonSerializable { - /** Left for backward compatibility. Does not participate in account transaction fees calculation. */ + /** Contains the same data as ext_in_msg_fee field */ private int $_inMsgFwdFee; private int $_storageFee; private int $_gasFee; @@ -21,14 +21,7 @@ class TransactionFees implements JsonSerializable /** Contains the same data as total_fwd_fees field. Deprecated because of its confusing name, that is not the same with GraphQL API Transaction type's field. */ private int $_outMsgsFwdFee; - /** - * This is the field that is named as `total_fees` in GraphQL API Transaction type. `total_account_fees` name is misleading, because it does not mean account fees, instead it means - * validators total fees received for the transaction execution. It does not include some forward fees that account - * actually pays now, but validators will receive later during value delivery to another account (not even in the receiving - * transaction). - * Because of all of this, this field is not interesting for those who wants to understand - * the real account fees, this is why it is deprecated and left for backward compatibility. - */ + /** Contains the same data as account_fees field */ private int $_totalAccountFees; private int $_totalOutput; private int $_extInMsgFee; @@ -50,7 +43,7 @@ public function __construct(?array $dto = null) } /** - * Left for backward compatibility. Does not participate in account transaction fees calculation. + * Contains the same data as ext_in_msg_fee field */ public function getInMsgFwdFee(): int { @@ -76,12 +69,7 @@ public function getOutMsgsFwdFee(): int } /** - * This is the field that is named as `total_fees` in GraphQL API Transaction type. `total_account_fees` name is misleading, because it does not mean account fees, instead it means - * validators total fees received for the transaction execution. It does not include some forward fees that account - * actually pays now, but validators will receive later during value delivery to another account (not even in the receiving - * transaction). - * Because of all of this, this field is not interesting for those who wants to understand - * the real account fees, this is why it is deprecated and left for backward compatibility. + * Contains the same data as account_fees field */ public function getTotalAccountFees(): int { @@ -109,7 +97,7 @@ public function getAccountFees(): int } /** - * Left for backward compatibility. Does not participate in account transaction fees calculation. + * Contains the same data as ext_in_msg_fee field * @return self */ public function setInMsgFwdFee(int $inMsgFwdFee): self @@ -147,12 +135,7 @@ public function setOutMsgsFwdFee(int $outMsgsFwdFee): self } /** - * This is the field that is named as `total_fees` in GraphQL API Transaction type. `total_account_fees` name is misleading, because it does not mean account fees, instead it means - * validators total fees received for the transaction execution. It does not include some forward fees that account - * actually pays now, but validators will receive later during value delivery to another account (not even in the receiving - * transaction). - * Because of all of this, this field is not interesting for those who wants to understand - * the real account fees, this is why it is deprecated and left for backward compatibility. + * Contains the same data as account_fees field * @return self */ public function setTotalAccountFees(int $totalAccountFees): self diff --git a/tests/TON/Client/ClientModuleTests.php b/tests/TON/Client/ClientModuleTests.php index dce1e70..1bbe11b 100644 --- a/tests/TON/Client/ClientModuleTests.php +++ b/tests/TON/Client/ClientModuleTests.php @@ -19,7 +19,7 @@ public function testVersion() $result = $this->_client->version(); $this->assertNotNull($result); $this->assertMatchesRegularExpression('/^\d+\.\d+\.\d+$/', $result->getVersion()); - $this->assertEquals('1.37.0', $result->getVersion()); + $this->assertEquals('1.37.1', $result->getVersion()); } public function testGetApiReference()