@coopenomics/sdk 2026.9.18 → 2026.9.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -56,6 +56,62 @@ class Account {
56
56
  }
57
57
  }
58
58
 
59
+ const RAW_LIMIT = 4e3;
60
+ function parseFailure(url, status, body) {
61
+ const failure = {
62
+ url,
63
+ path: safePath(url),
64
+ httpStatus: status,
65
+ message: "",
66
+ details: [],
67
+ raw: body.slice(0, RAW_LIMIT)
68
+ };
69
+ try {
70
+ const parsed = JSON.parse(body);
71
+ const error = parsed?.error;
72
+ if (error) {
73
+ failure.code = typeof error.code === "number" ? error.code : void 0;
74
+ failure.name = typeof error.name === "string" ? error.name : void 0;
75
+ failure.message = String(error.what ?? parsed.message ?? "");
76
+ failure.details = Array.isArray(error.details) ? error.details.map((detail) => String(detail?.message ?? "")).filter(Boolean) : [];
77
+ } else {
78
+ failure.message = String(parsed?.message ?? "");
79
+ }
80
+ } catch {
81
+ failure.message = body.slice(0, 200);
82
+ }
83
+ return failure;
84
+ }
85
+ function safePath(url) {
86
+ try {
87
+ return new URL(url).pathname;
88
+ } catch {
89
+ return url;
90
+ }
91
+ }
92
+ function createChainFetch(onFailure, baseFetch) {
93
+ return async function chainFetch(input, init) {
94
+ const fetchImpl = baseFetch ?? globalThis.fetch;
95
+ const response = await fetchImpl(input, init);
96
+ if (response?.ok !== false)
97
+ return response;
98
+ try {
99
+ const body = await response.clone().text();
100
+ const url = String(response.url || (typeof input === "string" ? input : input?.url) || "");
101
+ onFailure(parseFailure(url, Number(response.status) || 0, body));
102
+ } catch {
103
+ }
104
+ return response;
105
+ };
106
+ }
107
+ function describeChainFailure(failure) {
108
+ const head = `${failure.path} \u2192 HTTP ${failure.httpStatus}`;
109
+ const code = failure.code ? ` [${failure.code}${failure.name ? ` ${failure.name}` : ""}]` : "";
110
+ const what = failure.message ? `: ${failure.message}` : "";
111
+ const details = failure.details.length ? ` \u2014 ${failure.details.join("; ")}` : "";
112
+ return `${head}${code}${what}${details}`;
113
+ }
114
+
59
115
  var __defProp$5 = Object.defineProperty;
60
116
  var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
61
117
  var __publicField$5 = (obj, key, value) => {
@@ -90,15 +146,21 @@ class Blockchain {
90
146
  * @returns Текущий экземпляр Blockchain для цепочного вызова.
91
147
  */
92
148
  setWif(username, wif, permission = "active") {
93
- this.session = new session.Session({
94
- actor: username,
95
- permission,
96
- chain: {
97
- id: this.config.chain_id,
98
- url: this.config.chain_url
149
+ const onFailure = this.config.onChainFailure;
150
+ this.session = new session.Session(
151
+ {
152
+ actor: username,
153
+ permission,
154
+ chain: {
155
+ id: this.config.chain_id,
156
+ url: this.config.chain_url
157
+ },
158
+ walletPlugin: new walletPluginPrivatekey.WalletPluginPrivateKey(antelope.PrivateKey.fromString(wif))
99
159
  },
100
- walletPlugin: new walletPluginPrivatekey.WalletPluginPrivateKey(antelope.PrivateKey.fromString(wif))
101
- });
160
+ // Ответ узла виден только здесь: `session.transact` оставляет от него
161
+ // первую строку подробностей без кода исключения и без тела.
162
+ onFailure ? { fetch: createChainFetch(onFailure) } : void 0
163
+ );
102
164
  return this;
103
165
  }
104
166
  /**
@@ -19750,6 +19812,20 @@ function wsSubscription(url, options = {}) {
19750
19812
  if (isBrowserOffline())
19751
19813
  return false;
19752
19814
  return typeof errOrCloseEvent === "object" && errOrCloseEvent !== null && "code" in errOrCloseEvent;
19815
+ },
19816
+ // Постоянные слушатели транспорта. Без них отказ внутреннего промиса
19817
+ // подключения (сокет закрылся, пока подписчиков уже нет) всплывал как
19818
+ // необработанное отклонение промиса и уезжал в журнал ошибок кабинета
19819
+ // событием `CloseEvent (type=close)` — без стека и без смысла
19820
+ // (инцидент 17.09.2026). Канал от этого не страдает: реконнект ведёт
19821
+ // graphql-ws, здесь только запись в консоль.
19822
+ on: {
19823
+ error: (err) => {
19824
+ console.warn("[ws] \u043E\u0448\u0438\u0431\u043A\u0430 \u0442\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442\u0430 \u043F\u043E\u0434\u043F\u0438\u0441\u043E\u043A (\u0440\u0435\u043A\u043E\u043D\u043D\u0435\u043A\u0442 \u0441\u0430\u043C)", err);
19825
+ },
19826
+ closed: (event) => {
19827
+ console.warn("[ws] \u0442\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442 \u043F\u043E\u0434\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u043A\u0440\u044B\u0442 (\u0440\u0435\u043A\u043E\u043D\u043D\u0435\u043A\u0442 \u0441\u0430\u043C)", event);
19828
+ }
19753
19829
  }
19754
19830
  });
19755
19831
  }
@@ -23900,3 +23976,5 @@ exports.Selectors = index$1h;
23900
23976
  exports.Subscriptions = index$5;
23901
23977
  exports.Types = index;
23902
23978
  exports.Zeus = index$1j;
23979
+ exports.createChainFetch = createChainFetch;
23980
+ exports.describeChainFailure = describeChainFailure;
package/dist/index.d.cts CHANGED
@@ -68158,10 +68158,62 @@ declare class Account {
68158
68158
  private static generateKeys;
68159
68159
  }
68160
68160
 
68161
+ /**
68162
+ * Перехват ответов узла цепи.
68163
+ *
68164
+ * Все обращения к цепи — и чтение, и отправка транзакций — уходят через `fetch`
68165
+ * сессии wharfkit. Это единственное место, где ответ узла виден целиком: дальше
68166
+ * `session.transact` подменяет `APIError` на `new Error(details[0].message)`, и
68167
+ * от ответа остаётся одна строка без кода, имени исключения и остальных
68168
+ * подробностей. Поэтому разбор отказов цепи делается ЗДЕСЬ, а не в местах, где
68169
+ * ошибка всплывает.
68170
+ *
68171
+ * Инцидент 17.09.2026: `POST /api/v1/chain/send_transaction` со страницы
68172
+ * повестки совета ответил 500, и по логам восстановить причину не удалось —
68173
+ * ответ узла нигде не сохранялся.
68174
+ */
68175
+ /** Разобранный отказ узла — то, что осталось бы неизвестным без перехвата. */
68176
+ interface ChainFailure {
68177
+ /** Полный адрес запроса. */
68178
+ url: string;
68179
+ /** Путь вида `/v1/chain/send_transaction` — по нему видно, что делали. */
68180
+ path: string;
68181
+ /** Код ответа HTTP; узлы Antelope отвечают 500 на любую отклонённую транзакцию. */
68182
+ httpStatus: number;
68183
+ /** Код исключения цепи (3080004 — не уложились в CPU, 3050003 — ассерт контракта). */
68184
+ code?: number;
68185
+ /** Имя исключения цепи (`tx_cpu_usage_exceeded`, `eosio_assert_message_exception`). */
68186
+ name?: string;
68187
+ /** Короткое описание отказа (`error.what`). */
68188
+ message: string;
68189
+ /** Подробности отказа: для ассерта контракта здесь его текст. */
68190
+ details: string[];
68191
+ /** Тело ответа как есть, обрезанное — на случай, если разбор не удался. */
68192
+ raw: string;
68193
+ }
68194
+ /** Тип `fetch`, который ждёт wharfkit. */
68195
+ type FetchLike = (input: any, init?: any) => Promise<any>;
68196
+ /**
68197
+ * Обёртка над `fetch` для сессии цепи: при неуспешном ответе разбирает тело и
68198
+ * отдаёт его наблюдателю, после чего возвращает ответ вызывающему нетронутым.
68199
+ *
68200
+ * Наблюдатель не имеет права ломать запрос: его исключение здесь гасится — иначе
68201
+ * сбой журналирования превратился бы в сбой операции пайщика.
68202
+ */
68203
+ declare function createChainFetch(onFailure: (failure: ChainFailure) => void, baseFetch?: FetchLike): FetchLike;
68204
+ /** Человекочитаемая строка отказа для журнала. */
68205
+ declare function describeChainFailure(failure: ChainFailure): string;
68206
+
68161
68207
  type IndexPosition = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'quinary' | 'senary' | 'septenary' | 'octonary' | 'nonary' | 'denary';
68162
68208
  interface BlockchainConfig {
68163
68209
  chain_url: string;
68164
68210
  chain_id: string;
68211
+ /**
68212
+ * Наблюдатель отказов узла. Получает разобранный ответ цепи целиком — с кодом
68213
+ * исключения и подробностями, которые `session.transact` дальше стирает.
68214
+ * Не задан — отказы просто не журналируются.
68215
+ */
68216
+ onChainFailure?: (failure: ChainFailure) => void;
68165
68217
  }
68166
68218
 
68167
68219
  /**
@@ -132900,5 +132952,5 @@ declare class Client {
132900
132952
  private createThunder;
132901
132953
  }
132902
132954
 
132903
- export { Classes, Client, GraphQLResponseError, Mutations, index$8 as Queries, index$7 as Selectors, index$3 as Subscriptions, index as Types, index$1j as Zeus };
132904
- export type { AccessTokenUnavailableError, GraphQLErrorItem };
132955
+ export { Classes, Client, GraphQLResponseError, Mutations, index$8 as Queries, index$7 as Selectors, index$3 as Subscriptions, index as Types, index$1j as Zeus, createChainFetch, describeChainFailure };
132956
+ export type { AccessTokenUnavailableError, ChainFailure, GraphQLErrorItem };
package/dist/index.d.mts CHANGED
@@ -68158,10 +68158,62 @@ declare class Account {
68158
68158
  private static generateKeys;
68159
68159
  }
68160
68160
 
68161
+ /**
68162
+ * Перехват ответов узла цепи.
68163
+ *
68164
+ * Все обращения к цепи — и чтение, и отправка транзакций — уходят через `fetch`
68165
+ * сессии wharfkit. Это единственное место, где ответ узла виден целиком: дальше
68166
+ * `session.transact` подменяет `APIError` на `new Error(details[0].message)`, и
68167
+ * от ответа остаётся одна строка без кода, имени исключения и остальных
68168
+ * подробностей. Поэтому разбор отказов цепи делается ЗДЕСЬ, а не в местах, где
68169
+ * ошибка всплывает.
68170
+ *
68171
+ * Инцидент 17.09.2026: `POST /api/v1/chain/send_transaction` со страницы
68172
+ * повестки совета ответил 500, и по логам восстановить причину не удалось —
68173
+ * ответ узла нигде не сохранялся.
68174
+ */
68175
+ /** Разобранный отказ узла — то, что осталось бы неизвестным без перехвата. */
68176
+ interface ChainFailure {
68177
+ /** Полный адрес запроса. */
68178
+ url: string;
68179
+ /** Путь вида `/v1/chain/send_transaction` — по нему видно, что делали. */
68180
+ path: string;
68181
+ /** Код ответа HTTP; узлы Antelope отвечают 500 на любую отклонённую транзакцию. */
68182
+ httpStatus: number;
68183
+ /** Код исключения цепи (3080004 — не уложились в CPU, 3050003 — ассерт контракта). */
68184
+ code?: number;
68185
+ /** Имя исключения цепи (`tx_cpu_usage_exceeded`, `eosio_assert_message_exception`). */
68186
+ name?: string;
68187
+ /** Короткое описание отказа (`error.what`). */
68188
+ message: string;
68189
+ /** Подробности отказа: для ассерта контракта здесь его текст. */
68190
+ details: string[];
68191
+ /** Тело ответа как есть, обрезанное — на случай, если разбор не удался. */
68192
+ raw: string;
68193
+ }
68194
+ /** Тип `fetch`, который ждёт wharfkit. */
68195
+ type FetchLike = (input: any, init?: any) => Promise<any>;
68196
+ /**
68197
+ * Обёртка над `fetch` для сессии цепи: при неуспешном ответе разбирает тело и
68198
+ * отдаёт его наблюдателю, после чего возвращает ответ вызывающему нетронутым.
68199
+ *
68200
+ * Наблюдатель не имеет права ломать запрос: его исключение здесь гасится — иначе
68201
+ * сбой журналирования превратился бы в сбой операции пайщика.
68202
+ */
68203
+ declare function createChainFetch(onFailure: (failure: ChainFailure) => void, baseFetch?: FetchLike): FetchLike;
68204
+ /** Человекочитаемая строка отказа для журнала. */
68205
+ declare function describeChainFailure(failure: ChainFailure): string;
68206
+
68161
68207
  type IndexPosition = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'quinary' | 'senary' | 'septenary' | 'octonary' | 'nonary' | 'denary';
68162
68208
  interface BlockchainConfig {
68163
68209
  chain_url: string;
68164
68210
  chain_id: string;
68211
+ /**
68212
+ * Наблюдатель отказов узла. Получает разобранный ответ цепи целиком — с кодом
68213
+ * исключения и подробностями, которые `session.transact` дальше стирает.
68214
+ * Не задан — отказы просто не журналируются.
68215
+ */
68216
+ onChainFailure?: (failure: ChainFailure) => void;
68165
68217
  }
68166
68218
 
68167
68219
  /**
@@ -132900,5 +132952,5 @@ declare class Client {
132900
132952
  private createThunder;
132901
132953
  }
132902
132954
 
132903
- export { Classes, Client, GraphQLResponseError, Mutations, index$8 as Queries, index$7 as Selectors, index$3 as Subscriptions, index as Types, index$1j as Zeus };
132904
- export type { AccessTokenUnavailableError, GraphQLErrorItem };
132955
+ export { Classes, Client, GraphQLResponseError, Mutations, index$8 as Queries, index$7 as Selectors, index$3 as Subscriptions, index as Types, index$1j as Zeus, createChainFetch, describeChainFailure };
132956
+ export type { AccessTokenUnavailableError, ChainFailure, GraphQLErrorItem };
package/dist/index.d.ts CHANGED
@@ -68158,10 +68158,62 @@ declare class Account {
68158
68158
  private static generateKeys;
68159
68159
  }
68160
68160
 
68161
+ /**
68162
+ * Перехват ответов узла цепи.
68163
+ *
68164
+ * Все обращения к цепи — и чтение, и отправка транзакций — уходят через `fetch`
68165
+ * сессии wharfkit. Это единственное место, где ответ узла виден целиком: дальше
68166
+ * `session.transact` подменяет `APIError` на `new Error(details[0].message)`, и
68167
+ * от ответа остаётся одна строка без кода, имени исключения и остальных
68168
+ * подробностей. Поэтому разбор отказов цепи делается ЗДЕСЬ, а не в местах, где
68169
+ * ошибка всплывает.
68170
+ *
68171
+ * Инцидент 17.09.2026: `POST /api/v1/chain/send_transaction` со страницы
68172
+ * повестки совета ответил 500, и по логам восстановить причину не удалось —
68173
+ * ответ узла нигде не сохранялся.
68174
+ */
68175
+ /** Разобранный отказ узла — то, что осталось бы неизвестным без перехвата. */
68176
+ interface ChainFailure {
68177
+ /** Полный адрес запроса. */
68178
+ url: string;
68179
+ /** Путь вида `/v1/chain/send_transaction` — по нему видно, что делали. */
68180
+ path: string;
68181
+ /** Код ответа HTTP; узлы Antelope отвечают 500 на любую отклонённую транзакцию. */
68182
+ httpStatus: number;
68183
+ /** Код исключения цепи (3080004 — не уложились в CPU, 3050003 — ассерт контракта). */
68184
+ code?: number;
68185
+ /** Имя исключения цепи (`tx_cpu_usage_exceeded`, `eosio_assert_message_exception`). */
68186
+ name?: string;
68187
+ /** Короткое описание отказа (`error.what`). */
68188
+ message: string;
68189
+ /** Подробности отказа: для ассерта контракта здесь его текст. */
68190
+ details: string[];
68191
+ /** Тело ответа как есть, обрезанное — на случай, если разбор не удался. */
68192
+ raw: string;
68193
+ }
68194
+ /** Тип `fetch`, который ждёт wharfkit. */
68195
+ type FetchLike = (input: any, init?: any) => Promise<any>;
68196
+ /**
68197
+ * Обёртка над `fetch` для сессии цепи: при неуспешном ответе разбирает тело и
68198
+ * отдаёт его наблюдателю, после чего возвращает ответ вызывающему нетронутым.
68199
+ *
68200
+ * Наблюдатель не имеет права ломать запрос: его исключение здесь гасится — иначе
68201
+ * сбой журналирования превратился бы в сбой операции пайщика.
68202
+ */
68203
+ declare function createChainFetch(onFailure: (failure: ChainFailure) => void, baseFetch?: FetchLike): FetchLike;
68204
+ /** Человекочитаемая строка отказа для журнала. */
68205
+ declare function describeChainFailure(failure: ChainFailure): string;
68206
+
68161
68207
  type IndexPosition = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'quinary' | 'senary' | 'septenary' | 'octonary' | 'nonary' | 'denary';
68162
68208
  interface BlockchainConfig {
68163
68209
  chain_url: string;
68164
68210
  chain_id: string;
68211
+ /**
68212
+ * Наблюдатель отказов узла. Получает разобранный ответ цепи целиком — с кодом
68213
+ * исключения и подробностями, которые `session.transact` дальше стирает.
68214
+ * Не задан — отказы просто не журналируются.
68215
+ */
68216
+ onChainFailure?: (failure: ChainFailure) => void;
68165
68217
  }
68166
68218
 
68167
68219
  /**
@@ -132900,5 +132952,5 @@ declare class Client {
132900
132952
  private createThunder;
132901
132953
  }
132902
132954
 
132903
- export { Classes, Client, GraphQLResponseError, Mutations, index$8 as Queries, index$7 as Selectors, index$3 as Subscriptions, index as Types, index$1j as Zeus };
132904
- export type { AccessTokenUnavailableError, GraphQLErrorItem };
132955
+ export { Classes, Client, GraphQLResponseError, Mutations, index$8 as Queries, index$7 as Selectors, index$3 as Subscriptions, index as Types, index$1j as Zeus, createChainFetch, describeChainFailure };
132956
+ export type { AccessTokenUnavailableError, ChainFailure, GraphQLErrorItem };
package/dist/index.mjs CHANGED
@@ -49,6 +49,62 @@ class Account {
49
49
  }
50
50
  }
51
51
 
52
+ const RAW_LIMIT = 4e3;
53
+ function parseFailure(url, status, body) {
54
+ const failure = {
55
+ url,
56
+ path: safePath(url),
57
+ httpStatus: status,
58
+ message: "",
59
+ details: [],
60
+ raw: body.slice(0, RAW_LIMIT)
61
+ };
62
+ try {
63
+ const parsed = JSON.parse(body);
64
+ const error = parsed?.error;
65
+ if (error) {
66
+ failure.code = typeof error.code === "number" ? error.code : void 0;
67
+ failure.name = typeof error.name === "string" ? error.name : void 0;
68
+ failure.message = String(error.what ?? parsed.message ?? "");
69
+ failure.details = Array.isArray(error.details) ? error.details.map((detail) => String(detail?.message ?? "")).filter(Boolean) : [];
70
+ } else {
71
+ failure.message = String(parsed?.message ?? "");
72
+ }
73
+ } catch {
74
+ failure.message = body.slice(0, 200);
75
+ }
76
+ return failure;
77
+ }
78
+ function safePath(url) {
79
+ try {
80
+ return new URL(url).pathname;
81
+ } catch {
82
+ return url;
83
+ }
84
+ }
85
+ function createChainFetch(onFailure, baseFetch) {
86
+ return async function chainFetch(input, init) {
87
+ const fetchImpl = baseFetch ?? globalThis.fetch;
88
+ const response = await fetchImpl(input, init);
89
+ if (response?.ok !== false)
90
+ return response;
91
+ try {
92
+ const body = await response.clone().text();
93
+ const url = String(response.url || (typeof input === "string" ? input : input?.url) || "");
94
+ onFailure(parseFailure(url, Number(response.status) || 0, body));
95
+ } catch {
96
+ }
97
+ return response;
98
+ };
99
+ }
100
+ function describeChainFailure(failure) {
101
+ const head = `${failure.path} \u2192 HTTP ${failure.httpStatus}`;
102
+ const code = failure.code ? ` [${failure.code}${failure.name ? ` ${failure.name}` : ""}]` : "";
103
+ const what = failure.message ? `: ${failure.message}` : "";
104
+ const details = failure.details.length ? ` \u2014 ${failure.details.join("; ")}` : "";
105
+ return `${head}${code}${what}${details}`;
106
+ }
107
+
52
108
  var __defProp$5 = Object.defineProperty;
53
109
  var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
54
110
  var __publicField$5 = (obj, key, value) => {
@@ -83,15 +139,21 @@ class Blockchain {
83
139
  * @returns Текущий экземпляр Blockchain для цепочного вызова.
84
140
  */
85
141
  setWif(username, wif, permission = "active") {
86
- this.session = new Session({
87
- actor: username,
88
- permission,
89
- chain: {
90
- id: this.config.chain_id,
91
- url: this.config.chain_url
142
+ const onFailure = this.config.onChainFailure;
143
+ this.session = new Session(
144
+ {
145
+ actor: username,
146
+ permission,
147
+ chain: {
148
+ id: this.config.chain_id,
149
+ url: this.config.chain_url
150
+ },
151
+ walletPlugin: new WalletPluginPrivateKey(PrivateKey.fromString(wif))
92
152
  },
93
- walletPlugin: new WalletPluginPrivateKey(PrivateKey.fromString(wif))
94
- });
153
+ // Ответ узла виден только здесь: `session.transact` оставляет от него
154
+ // первую строку подробностей без кода исключения и без тела.
155
+ onFailure ? { fetch: createChainFetch(onFailure) } : void 0
156
+ );
95
157
  return this;
96
158
  }
97
159
  /**
@@ -19743,6 +19805,20 @@ function wsSubscription(url, options = {}) {
19743
19805
  if (isBrowserOffline())
19744
19806
  return false;
19745
19807
  return typeof errOrCloseEvent === "object" && errOrCloseEvent !== null && "code" in errOrCloseEvent;
19808
+ },
19809
+ // Постоянные слушатели транспорта. Без них отказ внутреннего промиса
19810
+ // подключения (сокет закрылся, пока подписчиков уже нет) всплывал как
19811
+ // необработанное отклонение промиса и уезжал в журнал ошибок кабинета
19812
+ // событием `CloseEvent (type=close)` — без стека и без смысла
19813
+ // (инцидент 17.09.2026). Канал от этого не страдает: реконнект ведёт
19814
+ // graphql-ws, здесь только запись в консоль.
19815
+ on: {
19816
+ error: (err) => {
19817
+ console.warn("[ws] \u043E\u0448\u0438\u0431\u043A\u0430 \u0442\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442\u0430 \u043F\u043E\u0434\u043F\u0438\u0441\u043E\u043A (\u0440\u0435\u043A\u043E\u043D\u043D\u0435\u043A\u0442 \u0441\u0430\u043C)", err);
19818
+ },
19819
+ closed: (event) => {
19820
+ console.warn("[ws] \u0442\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442 \u043F\u043E\u0434\u043F\u0438\u0441\u043E\u043A \u0437\u0430\u043A\u0440\u044B\u0442 (\u0440\u0435\u043A\u043E\u043D\u043D\u0435\u043A\u0442 \u0441\u0430\u043C)", event);
19821
+ }
19746
19822
  }
19747
19823
  });
19748
19824
  }
@@ -23884,4 +23960,4 @@ __publicField(_Client, "scalars", ZeusScalars({
23884
23960
  }));
23885
23961
  let Client = _Client;
23886
23962
 
23887
- export { Classes, Client, GraphQLResponseError, Mutations, index$9 as Queries, index$1h as Selectors, index$5 as Subscriptions, index as Types, index$1j as Zeus };
23963
+ export { Classes, Client, GraphQLResponseError, Mutations, index$9 as Queries, index$1h as Selectors, index$5 as Subscriptions, index as Types, index$1j as Zeus, createChainFetch, describeChainFailure };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopenomics/sdk",
3
3
  "type": "module",
4
- "version": "2026.9.18",
4
+ "version": "2026.9.19",
5
5
  "private": false,
6
6
  "packageManager": "pnpm@10.33.0",
7
7
  "description": "TypeScript SDK для работы с API кооператива",
@@ -49,7 +49,7 @@
49
49
  "@wharfkit/session": "^1.4.0",
50
50
  "@wharfkit/wallet-plugin-privatekey": "^1.1.0",
51
51
  "canonicalize": "^2.0.0",
52
- "cooptypes": "2026.9.18",
52
+ "cooptypes": "2026.9.19",
53
53
  "graphql": "^16.9.0",
54
54
  "graphql-request": "^7.1.2",
55
55
  "graphql-tag": "^2.12.6",
@@ -77,5 +77,5 @@
77
77
  "vite": "^5.4.3",
78
78
  "vitest": "^2.0.5"
79
79
  },
80
- "gitHead": "0f980a64f09af16c6ac217e5467be87a2d0ab634"
80
+ "gitHead": "902bd2627e36f1ac40dd09ef42627c0c53c3cdb1"
81
81
  }