Skip to content

Commit

Permalink
Upgrade to SDK version 1.37.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry committed Sep 13, 2022
1 parent d0fcb1a commit 3429c33
Show file tree
Hide file tree
Showing 19 changed files with 87 additions and 397 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ 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" ]
```

Basically, do anything you can do with the [original PHP image](https://hub.docker.com/_/php)
by just replacing `FROM php:<PHP_VERSION>-<PHP_IMAGE_VARIANT>` with
`FROM radianceteam/ton-client-php:1.37.0-php<PHP_VERSION>-<PHP_IMAGE_VARIANT>`.
`FROM radianceteam/ton-client-php:1.37.1-php<PHP_VERSION>-<PHP_IMAGE_VARIANT>`.

Note: only `cli`, `fpm` and `zts` variants are supported ATM.

Expand Down
20 changes: 10 additions & 10 deletions api.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.37.0",
"version": "1.37.1",
"modules": [
{
"name": "client",
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading

0 comments on commit 3429c33

Please sign in to comment.