@coopenomics/sdk 2.2.0 → 2.2.3
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 +557 -384
- package/dist/index.d.cts +278 -148
- package/dist/index.d.mts +278 -148
- package/dist/index.d.ts +278 -148
- package/dist/index.mjs +557 -384
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,233 @@
|
|
|
1
|
+
import { Session, PrivateKey as PrivateKey$1, Bytes, Checksum256 } from '@wharfkit/session';
|
|
1
2
|
import WebSocket from 'isomorphic-ws';
|
|
2
|
-
import {
|
|
3
|
-
import { APIClient, PrivateKey, Action } from '@wharfkit/antelope';
|
|
3
|
+
import { PrivateKey, APIClient, Action } from '@wharfkit/antelope';
|
|
4
4
|
import { ContractKit, Table } from '@wharfkit/contract';
|
|
5
|
-
import { Session } from '@wharfkit/session';
|
|
6
5
|
import { WalletPluginPrivateKey } from '@wharfkit/wallet-plugin-privatekey';
|
|
6
|
+
import { createClient as createClient$1 } from 'graphql-ws';
|
|
7
|
+
|
|
8
|
+
var __defProp$2 = Object.defineProperty;
|
|
9
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __publicField$2 = (obj, key, value) => {
|
|
11
|
+
__defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
12
|
+
return value;
|
|
13
|
+
};
|
|
14
|
+
class Account {
|
|
15
|
+
constructor() {
|
|
16
|
+
__publicField$2(this, "username");
|
|
17
|
+
__publicField$2(this, "private_key");
|
|
18
|
+
__publicField$2(this, "public_key");
|
|
19
|
+
this.username = Account.generateUsername();
|
|
20
|
+
const keys = Account.generateKeys();
|
|
21
|
+
this.private_key = keys.private_key;
|
|
22
|
+
this.public_key = keys.public_key;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Генерирует случайное имя длиной 12 символов, состоящее только из букв.
|
|
26
|
+
* @returns Случайное имя.
|
|
27
|
+
*/
|
|
28
|
+
static generateUsername() {
|
|
29
|
+
let result = "";
|
|
30
|
+
const possible = "abcdefghijklmnopqrstuvwxyz";
|
|
31
|
+
for (let i = 0; i < 12; i++) {
|
|
32
|
+
result += possible.charAt(Math.floor(Math.random() * possible.length));
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Генерирует пару ключей (приватный и публичный) с использованием библиотеки @wharfkit/antelope.
|
|
38
|
+
* @returns Объект с приватным и публичным ключами.
|
|
39
|
+
*/
|
|
40
|
+
static generateKeys() {
|
|
41
|
+
const private_key_data = PrivateKey.generate("K1");
|
|
42
|
+
const public_key = private_key_data.toPublic().toString();
|
|
43
|
+
const private_key = private_key_data.toWif();
|
|
44
|
+
return {
|
|
45
|
+
private_key,
|
|
46
|
+
public_key
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
var __defProp$1 = Object.defineProperty;
|
|
52
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
53
|
+
var __publicField$1 = (obj, key, value) => {
|
|
54
|
+
__defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
55
|
+
return value;
|
|
56
|
+
};
|
|
57
|
+
class Canvas {
|
|
58
|
+
/**
|
|
59
|
+
* Создаёт элемент `<canvas>` внутри указанного контейнера.
|
|
60
|
+
* @param container - HTML-элемент, внутри которого создаётся canvas.
|
|
61
|
+
* @param width - Ширина canvas (по умолчанию 300).
|
|
62
|
+
* @param height - Высота canvas (по умолчанию 150).
|
|
63
|
+
*/
|
|
64
|
+
constructor(container, width = 300, height = 150) {
|
|
65
|
+
__publicField$1(this, "canvas");
|
|
66
|
+
__publicField$1(this, "ctx");
|
|
67
|
+
__publicField$1(this, "state", {
|
|
68
|
+
drawing: false,
|
|
69
|
+
lastX: 0,
|
|
70
|
+
lastY: 0
|
|
71
|
+
});
|
|
72
|
+
this.canvas = document.createElement("canvas");
|
|
73
|
+
this.canvas.width = width;
|
|
74
|
+
this.canvas.height = height;
|
|
75
|
+
container.appendChild(this.canvas);
|
|
76
|
+
this.ctx = this.canvas.getContext("2d");
|
|
77
|
+
this.ctx.lineWidth = 5;
|
|
78
|
+
this.ctx.lineJoin = "round";
|
|
79
|
+
this.ctx.lineCap = "round";
|
|
80
|
+
this.ctx.strokeStyle = "#000";
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Полностью очищает canvas.
|
|
84
|
+
*/
|
|
85
|
+
clearCanvas() {
|
|
86
|
+
this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Запускает процесс рисования (фиксирует начальные координаты).
|
|
90
|
+
* @param e - Событие мыши или касания.
|
|
91
|
+
*/
|
|
92
|
+
startDrawing(e) {
|
|
93
|
+
e.preventDefault();
|
|
94
|
+
this.state.drawing = true;
|
|
95
|
+
const rect = this.canvas.getBoundingClientRect();
|
|
96
|
+
const clientX = e instanceof MouseEvent ? e.clientX : e.touches[0].clientX;
|
|
97
|
+
const clientY = e instanceof MouseEvent ? e.clientY : e.touches[0].clientY;
|
|
98
|
+
this.state.lastX = clientX - rect.left;
|
|
99
|
+
this.state.lastY = clientY - rect.top;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Выполняет рисование линии от предыдущей точки к текущей.
|
|
103
|
+
* @param e - Событие мыши или касания.
|
|
104
|
+
*/
|
|
105
|
+
draw(e) {
|
|
106
|
+
if (!this.state.drawing)
|
|
107
|
+
return;
|
|
108
|
+
e.preventDefault();
|
|
109
|
+
this.ctx.beginPath();
|
|
110
|
+
this.ctx.moveTo(this.state.lastX, this.state.lastY);
|
|
111
|
+
const rect = this.canvas.getBoundingClientRect();
|
|
112
|
+
const clientX = e instanceof MouseEvent ? e.clientX : e.touches[0].clientX;
|
|
113
|
+
const clientY = e instanceof MouseEvent ? e.clientY : e.touches[0].clientY;
|
|
114
|
+
const x = clientX - rect.left;
|
|
115
|
+
const y = clientY - rect.top;
|
|
116
|
+
this.ctx.lineTo(x, y);
|
|
117
|
+
this.ctx.stroke();
|
|
118
|
+
this.state.lastX = x;
|
|
119
|
+
this.state.lastY = y;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Завершает процесс рисования (drawing = false).
|
|
123
|
+
*/
|
|
124
|
+
endDrawing() {
|
|
125
|
+
this.state.drawing = false;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Возвращает текущее содержимое canvas в формате base64 (PNG).
|
|
129
|
+
*/
|
|
130
|
+
getSignature() {
|
|
131
|
+
return this.canvas.toDataURL("image/png");
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
var __defProp = Object.defineProperty;
|
|
136
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
137
|
+
var __publicField = (obj, key, value) => {
|
|
138
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
139
|
+
return value;
|
|
140
|
+
};
|
|
141
|
+
class Wallet {
|
|
142
|
+
constructor(config) {
|
|
143
|
+
this.config = config;
|
|
144
|
+
__publicField(this, "apiClient");
|
|
145
|
+
__publicField(this, "contractKit");
|
|
146
|
+
__publicField(this, "session");
|
|
147
|
+
this.apiClient = new APIClient({ url: config.chain_url });
|
|
148
|
+
this.contractKit = new ContractKit({ client: this.apiClient });
|
|
149
|
+
}
|
|
150
|
+
async getInfo() {
|
|
151
|
+
return this.apiClient.v1.chain.get_info();
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Метод установки приватного ключа в кошелёк
|
|
155
|
+
* @param username - имя пользователя
|
|
156
|
+
* @param wif - приватный ключ
|
|
157
|
+
* @returns
|
|
158
|
+
*/
|
|
159
|
+
setWif(username, wif) {
|
|
160
|
+
this.session = new Session({
|
|
161
|
+
actor: username,
|
|
162
|
+
permission: "active",
|
|
163
|
+
chain: {
|
|
164
|
+
id: this.config.chain_id,
|
|
165
|
+
url: this.config.chain_url
|
|
166
|
+
},
|
|
167
|
+
walletPlugin: new WalletPluginPrivateKey(PrivateKey.fromString(wif))
|
|
168
|
+
});
|
|
169
|
+
return this;
|
|
170
|
+
}
|
|
171
|
+
async transact(actionOrActions, broadcast = true) {
|
|
172
|
+
if (!this.session)
|
|
173
|
+
throw new Error("Session is not initialized.");
|
|
174
|
+
const actions = Array.isArray(actionOrActions) ? await Promise.all(actionOrActions.map((action) => this.formActionFromAbi(action))) : [await this.formActionFromAbi(actionOrActions)];
|
|
175
|
+
return this.session.transact({ actions }, { broadcast });
|
|
176
|
+
}
|
|
177
|
+
async getAllRows(code, scope, tableName) {
|
|
178
|
+
const abi = await this.getAbi(code);
|
|
179
|
+
const table = this.createTable(code, tableName, abi);
|
|
180
|
+
const rows = await table.all({ scope });
|
|
181
|
+
return JSON.parse(JSON.stringify(rows));
|
|
182
|
+
}
|
|
183
|
+
async query(code, scope, tableName, options = { indexPosition: "primary" }) {
|
|
184
|
+
const { indexPosition = "primary", from, to, maxRows } = options;
|
|
185
|
+
const abi = await this.getAbi(code);
|
|
186
|
+
const table = this.createTable(code, tableName, abi);
|
|
187
|
+
const rows = await table.query({
|
|
188
|
+
scope,
|
|
189
|
+
index_position: indexPosition,
|
|
190
|
+
from,
|
|
191
|
+
to,
|
|
192
|
+
maxRows
|
|
193
|
+
});
|
|
194
|
+
return JSON.parse(JSON.stringify(rows));
|
|
195
|
+
}
|
|
196
|
+
async getRow(code, scope, tableName, primaryKey, indexPosition = "primary") {
|
|
197
|
+
const abi = await this.getAbi(code);
|
|
198
|
+
const table = this.createTable(code, tableName, abi);
|
|
199
|
+
const row = await table.get(String(primaryKey), {
|
|
200
|
+
scope,
|
|
201
|
+
index_position: indexPosition
|
|
202
|
+
});
|
|
203
|
+
return row ? JSON.parse(JSON.stringify(row)) : null;
|
|
204
|
+
}
|
|
205
|
+
async formActionFromAbi(action) {
|
|
206
|
+
const abi = await this.getAbi(action.account);
|
|
207
|
+
return Action.from(action, abi);
|
|
208
|
+
}
|
|
209
|
+
async getAbi(account) {
|
|
210
|
+
const { abi } = await this.apiClient.v1.chain.get_abi(account);
|
|
211
|
+
if (!abi)
|
|
212
|
+
throw new Error(`ABI for account "${account}" not found.`);
|
|
213
|
+
return abi;
|
|
214
|
+
}
|
|
215
|
+
createTable(code, tableName, abi) {
|
|
216
|
+
return new Table({
|
|
217
|
+
abi,
|
|
218
|
+
account: code,
|
|
219
|
+
name: tableName,
|
|
220
|
+
client: this.apiClient
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
const Classes = {
|
|
226
|
+
__proto__: null,
|
|
227
|
+
Account: Account,
|
|
228
|
+
Canvas: Canvas,
|
|
229
|
+
Wallet: Wallet
|
|
230
|
+
};
|
|
7
231
|
|
|
8
232
|
const AllTypesProps = {
|
|
9
233
|
AccountType: "enum",
|
|
@@ -1272,12 +1496,22 @@ const Gql = Chain(HOST, {
|
|
|
1272
1496
|
const ZeusScalars = ZeusSelect();
|
|
1273
1497
|
const fields = (k) => {
|
|
1274
1498
|
const t = ReturnTypes[k];
|
|
1499
|
+
const fnType = k in AllTypesProps ? AllTypesProps[k] : void 0;
|
|
1500
|
+
const hasFnTypes = typeof fnType === "object" ? fnType : void 0;
|
|
1275
1501
|
const o = Object.fromEntries(
|
|
1276
|
-
Object.entries(t).filter(([, value]) => {
|
|
1502
|
+
Object.entries(t).filter(([k2, value]) => {
|
|
1503
|
+
const isFunctionType = hasFnTypes && k2 in hasFnTypes && !!hasFnTypes[k2];
|
|
1504
|
+
if (isFunctionType)
|
|
1505
|
+
return false;
|
|
1277
1506
|
const isReturnType = ReturnTypes[value];
|
|
1278
|
-
if (!isReturnType
|
|
1507
|
+
if (!isReturnType)
|
|
1508
|
+
return true;
|
|
1509
|
+
if (typeof isReturnType !== "string")
|
|
1510
|
+
return false;
|
|
1511
|
+
if (isReturnType.startsWith("scalar.")) {
|
|
1279
1512
|
return true;
|
|
1280
1513
|
}
|
|
1514
|
+
return false;
|
|
1281
1515
|
}).map(([key]) => [key, true])
|
|
1282
1516
|
);
|
|
1283
1517
|
return o;
|
|
@@ -1608,136 +1842,44 @@ var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
|
1608
1842
|
return UserStatus2;
|
|
1609
1843
|
})(UserStatus || {});
|
|
1610
1844
|
|
|
1611
|
-
const index$
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
};
|
|
1650
|
-
|
|
1651
|
-
var __defProp = Object.defineProperty;
|
|
1652
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1653
|
-
var __publicField = (obj, key, value) => {
|
|
1654
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1655
|
-
return value;
|
|
1656
|
-
};
|
|
1657
|
-
class Wallet {
|
|
1658
|
-
constructor(config) {
|
|
1659
|
-
this.config = config;
|
|
1660
|
-
__publicField(this, "apiClient");
|
|
1661
|
-
__publicField(this, "contractKit");
|
|
1662
|
-
__publicField(this, "session");
|
|
1663
|
-
this.apiClient = new APIClient({ url: config.chain_url });
|
|
1664
|
-
this.contractKit = new ContractKit({ client: this.apiClient });
|
|
1665
|
-
}
|
|
1666
|
-
/**
|
|
1667
|
-
* Метод установки приватного ключа в кошелёк
|
|
1668
|
-
* @param username - имя пользователя
|
|
1669
|
-
* @param wif - приватный ключ
|
|
1670
|
-
* @returns
|
|
1671
|
-
*/
|
|
1672
|
-
setWif(username, wif) {
|
|
1673
|
-
this.session = new Session({
|
|
1674
|
-
actor: username,
|
|
1675
|
-
permission: "active",
|
|
1676
|
-
chain: {
|
|
1677
|
-
id: this.config.chain_id,
|
|
1678
|
-
url: this.config.chain_url
|
|
1679
|
-
},
|
|
1680
|
-
walletPlugin: new WalletPluginPrivateKey(PrivateKey.fromString(wif))
|
|
1681
|
-
});
|
|
1682
|
-
return this;
|
|
1683
|
-
}
|
|
1684
|
-
async transact(actionOrActions, broadcast = true) {
|
|
1685
|
-
if (!this.session)
|
|
1686
|
-
throw new Error("Session is not initialized.");
|
|
1687
|
-
const actions = Array.isArray(actionOrActions) ? await Promise.all(actionOrActions.map((action) => this.formActionFromAbi(action))) : [await this.formActionFromAbi(actionOrActions)];
|
|
1688
|
-
return this.session.transact({ actions }, { broadcast });
|
|
1689
|
-
}
|
|
1690
|
-
async getAllRows(code, scope, tableName) {
|
|
1691
|
-
const abi = await this.getAbi(code);
|
|
1692
|
-
const table = this.createTable(code, tableName, abi);
|
|
1693
|
-
const rows = await table.all({ scope });
|
|
1694
|
-
return JSON.parse(JSON.stringify(rows));
|
|
1695
|
-
}
|
|
1696
|
-
async query(code, scope, tableName, options = { indexPosition: "primary" }) {
|
|
1697
|
-
const { indexPosition = "primary", from, to, maxRows } = options;
|
|
1698
|
-
const abi = await this.getAbi(code);
|
|
1699
|
-
const table = this.createTable(code, tableName, abi);
|
|
1700
|
-
const rows = await table.query({
|
|
1701
|
-
scope,
|
|
1702
|
-
index_position: indexPosition,
|
|
1703
|
-
from,
|
|
1704
|
-
to,
|
|
1705
|
-
maxRows
|
|
1706
|
-
});
|
|
1707
|
-
return JSON.parse(JSON.stringify(rows));
|
|
1708
|
-
}
|
|
1709
|
-
async getRow(code, scope, tableName, primaryKey, indexPosition = "primary") {
|
|
1710
|
-
const abi = await this.getAbi(code);
|
|
1711
|
-
const table = this.createTable(code, tableName, abi);
|
|
1712
|
-
const row = await table.get(String(primaryKey), {
|
|
1713
|
-
scope,
|
|
1714
|
-
index_position: indexPosition
|
|
1715
|
-
});
|
|
1716
|
-
return row ? JSON.parse(JSON.stringify(row)) : null;
|
|
1717
|
-
}
|
|
1718
|
-
async formActionFromAbi(action) {
|
|
1719
|
-
const abi = await this.getAbi(action.account);
|
|
1720
|
-
return Action.from(action, abi);
|
|
1721
|
-
}
|
|
1722
|
-
async getAbi(account) {
|
|
1723
|
-
const { abi } = await this.apiClient.v1.chain.get_abi(account);
|
|
1724
|
-
if (!abi)
|
|
1725
|
-
throw new Error(`ABI for account "${account}" not found.`);
|
|
1726
|
-
return abi;
|
|
1727
|
-
}
|
|
1728
|
-
createTable(code, tableName, abi) {
|
|
1729
|
-
return new Table({
|
|
1730
|
-
abi,
|
|
1731
|
-
account: code,
|
|
1732
|
-
name: tableName,
|
|
1733
|
-
client: this.apiClient
|
|
1734
|
-
});
|
|
1735
|
-
}
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
const Classes = {
|
|
1739
|
-
__proto__: null,
|
|
1740
|
-
Wallet: Wallet
|
|
1845
|
+
const index$k = {
|
|
1846
|
+
__proto__: null,
|
|
1847
|
+
$: $,
|
|
1848
|
+
AccountType: AccountType,
|
|
1849
|
+
Chain: Chain,
|
|
1850
|
+
Country: Country,
|
|
1851
|
+
GRAPHQL_TYPE_SEPARATOR: GRAPHQL_TYPE_SEPARATOR,
|
|
1852
|
+
Gql: Gql,
|
|
1853
|
+
GraphQLError: GraphQLError,
|
|
1854
|
+
HEADERS: HEADERS,
|
|
1855
|
+
HOST: HOST,
|
|
1856
|
+
InternalArgsBuilt: InternalArgsBuilt,
|
|
1857
|
+
InternalsBuildQuery: InternalsBuildQuery,
|
|
1858
|
+
LangType: LangType,
|
|
1859
|
+
OrganizationType: OrganizationType,
|
|
1860
|
+
PaymentStatus: PaymentStatus,
|
|
1861
|
+
PrepareScalarPaths: PrepareScalarPaths,
|
|
1862
|
+
RegisterRole: RegisterRole,
|
|
1863
|
+
ResolveFromPath: ResolveFromPath,
|
|
1864
|
+
SEPARATOR: SEPARATOR,
|
|
1865
|
+
START_VAR_NAME: START_VAR_NAME,
|
|
1866
|
+
Selector: Selector,
|
|
1867
|
+
Subscription: Subscription,
|
|
1868
|
+
SubscriptionThunder: SubscriptionThunder,
|
|
1869
|
+
SystemStatus: SystemStatus,
|
|
1870
|
+
Thunder: Thunder,
|
|
1871
|
+
TypeFromSelector: TypeFromSelector,
|
|
1872
|
+
UserStatus: UserStatus,
|
|
1873
|
+
Zeus: Zeus,
|
|
1874
|
+
ZeusScalars: ZeusScalars,
|
|
1875
|
+
ZeusSelect: ZeusSelect,
|
|
1876
|
+
apiFetch: apiFetch,
|
|
1877
|
+
apiSubscription: apiSubscription,
|
|
1878
|
+
decodeScalarsInResponse: decodeScalarsInResponse,
|
|
1879
|
+
fields: fields,
|
|
1880
|
+
purifyGraphQLKey: purifyGraphQLKey,
|
|
1881
|
+
resolverFor: resolverFor,
|
|
1882
|
+
traverseResponse: traverseResponse
|
|
1741
1883
|
};
|
|
1742
1884
|
|
|
1743
1885
|
const rawExtensionSelector = {
|
|
@@ -1764,9 +1906,9 @@ const mutation$C = Selector("Mutation")({
|
|
|
1764
1906
|
});
|
|
1765
1907
|
|
|
1766
1908
|
const installExtension = {
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1909
|
+
__proto__: null,
|
|
1910
|
+
mutation: mutation$C,
|
|
1911
|
+
name: name$M
|
|
1770
1912
|
};
|
|
1771
1913
|
|
|
1772
1914
|
const name$L = "uninstallExtension";
|
|
@@ -1775,9 +1917,9 @@ const mutation$B = Selector("Mutation")({
|
|
|
1775
1917
|
});
|
|
1776
1918
|
|
|
1777
1919
|
const uninstallExtension = {
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1920
|
+
__proto__: null,
|
|
1921
|
+
mutation: mutation$B,
|
|
1922
|
+
name: name$L
|
|
1781
1923
|
};
|
|
1782
1924
|
|
|
1783
1925
|
const name$K = "updateExtension";
|
|
@@ -1786,16 +1928,16 @@ const mutation$A = Selector("Mutation")({
|
|
|
1786
1928
|
});
|
|
1787
1929
|
|
|
1788
1930
|
const updateExtension = {
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1931
|
+
__proto__: null,
|
|
1932
|
+
mutation: mutation$A,
|
|
1933
|
+
name: name$K
|
|
1792
1934
|
};
|
|
1793
1935
|
|
|
1794
|
-
const index$
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1936
|
+
const index$j = {
|
|
1937
|
+
__proto__: null,
|
|
1938
|
+
InstallExtension: installExtension,
|
|
1939
|
+
UninstallExtension: uninstallExtension,
|
|
1940
|
+
UpdateExtension: updateExtension
|
|
1799
1941
|
};
|
|
1800
1942
|
|
|
1801
1943
|
const rawBankAccountSelector = {
|
|
@@ -1834,9 +1976,9 @@ const mutation$z = Selector("Mutation")({
|
|
|
1834
1976
|
});
|
|
1835
1977
|
|
|
1836
1978
|
const createBankAccount = {
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1979
|
+
__proto__: null,
|
|
1980
|
+
mutation: mutation$z,
|
|
1981
|
+
name: name$J
|
|
1840
1982
|
};
|
|
1841
1983
|
|
|
1842
1984
|
const name$I = "deletePaymentMethod";
|
|
@@ -1845,9 +1987,9 @@ const mutation$y = Selector("Mutation")({
|
|
|
1845
1987
|
});
|
|
1846
1988
|
|
|
1847
1989
|
const deletePaymentMethod = {
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1990
|
+
__proto__: null,
|
|
1991
|
+
mutation: mutation$y,
|
|
1992
|
+
name: name$I
|
|
1851
1993
|
};
|
|
1852
1994
|
|
|
1853
1995
|
const name$H = "updateBankAccount";
|
|
@@ -1856,16 +1998,16 @@ const mutation$x = Selector("Mutation")({
|
|
|
1856
1998
|
});
|
|
1857
1999
|
|
|
1858
2000
|
const updateBankAccount = {
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
2001
|
+
__proto__: null,
|
|
2002
|
+
mutation: mutation$x,
|
|
2003
|
+
name: name$H
|
|
1862
2004
|
};
|
|
1863
2005
|
|
|
1864
|
-
const index$
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
2006
|
+
const index$i = {
|
|
2007
|
+
__proto__: null,
|
|
2008
|
+
CreateBankAccount: createBankAccount,
|
|
2009
|
+
DeletePaymentMethod: deletePaymentMethod,
|
|
2010
|
+
UpdateBankAccount: updateBankAccount
|
|
1869
2011
|
};
|
|
1870
2012
|
|
|
1871
2013
|
const rawBlockchainAccountSelector = {
|
|
@@ -2365,9 +2507,9 @@ const mutation$w = Selector("Mutation")({
|
|
|
2365
2507
|
});
|
|
2366
2508
|
|
|
2367
2509
|
const addTrustedAccount = {
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2510
|
+
__proto__: null,
|
|
2511
|
+
mutation: mutation$w,
|
|
2512
|
+
name: name$G
|
|
2371
2513
|
};
|
|
2372
2514
|
|
|
2373
2515
|
const name$F = "createBranch";
|
|
@@ -2376,9 +2518,9 @@ const mutation$v = Selector("Mutation")({
|
|
|
2376
2518
|
});
|
|
2377
2519
|
|
|
2378
2520
|
const createBranch = {
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2521
|
+
__proto__: null,
|
|
2522
|
+
mutation: mutation$v,
|
|
2523
|
+
name: name$F
|
|
2382
2524
|
};
|
|
2383
2525
|
|
|
2384
2526
|
const name$E = "deleteBranch";
|
|
@@ -2387,9 +2529,9 @@ const mutation$u = Selector("Mutation")({
|
|
|
2387
2529
|
});
|
|
2388
2530
|
|
|
2389
2531
|
const deleteBranch = {
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2532
|
+
__proto__: null,
|
|
2533
|
+
mutation: mutation$u,
|
|
2534
|
+
name: name$E
|
|
2393
2535
|
};
|
|
2394
2536
|
|
|
2395
2537
|
const name$D = "deleteTrustedAccount";
|
|
@@ -2398,9 +2540,9 @@ const mutation$t = Selector("Mutation")({
|
|
|
2398
2540
|
});
|
|
2399
2541
|
|
|
2400
2542
|
const deleteTrustedAccount = {
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2543
|
+
__proto__: null,
|
|
2544
|
+
mutation: mutation$t,
|
|
2545
|
+
name: name$D
|
|
2404
2546
|
};
|
|
2405
2547
|
|
|
2406
2548
|
const name$C = "editBranch";
|
|
@@ -2409,9 +2551,9 @@ const mutation$s = Selector("Mutation")({
|
|
|
2409
2551
|
});
|
|
2410
2552
|
|
|
2411
2553
|
const editBranch = {
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2554
|
+
__proto__: null,
|
|
2555
|
+
mutation: mutation$s,
|
|
2556
|
+
name: name$C
|
|
2415
2557
|
};
|
|
2416
2558
|
|
|
2417
2559
|
const name$B = "selectBranch";
|
|
@@ -2420,9 +2562,9 @@ const mutation$r = Selector("Mutation")({
|
|
|
2420
2562
|
});
|
|
2421
2563
|
|
|
2422
2564
|
const selectBranch = {
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2565
|
+
__proto__: null,
|
|
2566
|
+
mutation: mutation$r,
|
|
2567
|
+
name: name$B
|
|
2426
2568
|
};
|
|
2427
2569
|
|
|
2428
2570
|
const name$A = "generateSelectBranchDocument";
|
|
@@ -2431,20 +2573,20 @@ const mutation$q = Selector("Mutation")({
|
|
|
2431
2573
|
});
|
|
2432
2574
|
|
|
2433
2575
|
const generateSelectBranchDocument = {
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2576
|
+
__proto__: null,
|
|
2577
|
+
mutation: mutation$q,
|
|
2578
|
+
name: name$A
|
|
2437
2579
|
};
|
|
2438
2580
|
|
|
2439
|
-
const index$
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2581
|
+
const index$h = {
|
|
2582
|
+
__proto__: null,
|
|
2583
|
+
AddTrustedAccount: addTrustedAccount,
|
|
2584
|
+
CreateBranch: createBranch,
|
|
2585
|
+
DeleteBranch: deleteBranch,
|
|
2586
|
+
DeleteTrustedAccount: deleteTrustedAccount,
|
|
2587
|
+
EditBranch: editBranch,
|
|
2588
|
+
GenerateSelectBranchDocument: generateSelectBranchDocument,
|
|
2589
|
+
SelectBranch: selectBranch
|
|
2448
2590
|
};
|
|
2449
2591
|
|
|
2450
2592
|
const rawProjectFreeDecisionDocumentSelector = {
|
|
@@ -2463,9 +2605,9 @@ const mutation$p = Selector("Mutation")({
|
|
|
2463
2605
|
});
|
|
2464
2606
|
|
|
2465
2607
|
const generateProjectOfFreeDecisionDocument = {
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2608
|
+
__proto__: null,
|
|
2609
|
+
mutation: mutation$p,
|
|
2610
|
+
name: name$z
|
|
2469
2611
|
};
|
|
2470
2612
|
|
|
2471
2613
|
const rawFreeDecisionDocumentSelector = {
|
|
@@ -2493,9 +2635,9 @@ const mutation$o = Selector("Mutation")({
|
|
|
2493
2635
|
});
|
|
2494
2636
|
|
|
2495
2637
|
const generateFreeDecision = {
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2638
|
+
__proto__: null,
|
|
2639
|
+
mutation: mutation$o,
|
|
2640
|
+
name: name$y
|
|
2499
2641
|
};
|
|
2500
2642
|
|
|
2501
2643
|
const name$x = "publishProjectOfFreeDecision";
|
|
@@ -2504,9 +2646,9 @@ const mutation$n = Selector("Mutation")({
|
|
|
2504
2646
|
});
|
|
2505
2647
|
|
|
2506
2648
|
const publishProjectOfFreeDecision = {
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2649
|
+
__proto__: null,
|
|
2650
|
+
mutation: mutation$n,
|
|
2651
|
+
name: name$x
|
|
2510
2652
|
};
|
|
2511
2653
|
|
|
2512
2654
|
const name$w = "createProjectOfFreeDecision";
|
|
@@ -2515,17 +2657,17 @@ const mutation$m = Selector("Mutation")({
|
|
|
2515
2657
|
});
|
|
2516
2658
|
|
|
2517
2659
|
const createProjectOfFreeDecision = {
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2660
|
+
__proto__: null,
|
|
2661
|
+
mutation: mutation$m,
|
|
2662
|
+
name: name$w
|
|
2521
2663
|
};
|
|
2522
2664
|
|
|
2523
|
-
const index$
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2665
|
+
const index$g = {
|
|
2666
|
+
__proto__: null,
|
|
2667
|
+
CreateProjectOfFreeDecision: createProjectOfFreeDecision,
|
|
2668
|
+
GenerateFreeDecision: generateFreeDecision,
|
|
2669
|
+
GenerateProjectOfFreeDecision: generateProjectOfFreeDecisionDocument,
|
|
2670
|
+
PublishProjectOfFreeDecision: publishProjectOfFreeDecision
|
|
2529
2671
|
};
|
|
2530
2672
|
|
|
2531
2673
|
const name$v = "updateAccount";
|
|
@@ -2534,9 +2676,9 @@ const mutation$l = Selector("Mutation")({
|
|
|
2534
2676
|
});
|
|
2535
2677
|
|
|
2536
2678
|
const updateAccount = {
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2679
|
+
__proto__: null,
|
|
2680
|
+
mutation: mutation$l,
|
|
2681
|
+
name: name$v
|
|
2540
2682
|
};
|
|
2541
2683
|
|
|
2542
2684
|
const rawTokenSelector = {
|
|
@@ -2561,9 +2703,9 @@ const mutation$k = Selector("Mutation")({
|
|
|
2561
2703
|
});
|
|
2562
2704
|
|
|
2563
2705
|
const registerAccount = {
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2706
|
+
__proto__: null,
|
|
2707
|
+
mutation: mutation$k,
|
|
2708
|
+
name: name$u
|
|
2567
2709
|
};
|
|
2568
2710
|
|
|
2569
2711
|
const name$t = "startResetKey";
|
|
@@ -2572,9 +2714,9 @@ const mutation$j = Selector("Mutation")({
|
|
|
2572
2714
|
});
|
|
2573
2715
|
|
|
2574
2716
|
const startResetKey = {
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2717
|
+
__proto__: null,
|
|
2718
|
+
mutation: mutation$j,
|
|
2719
|
+
name: name$t
|
|
2578
2720
|
};
|
|
2579
2721
|
|
|
2580
2722
|
const name$s = "resetKey";
|
|
@@ -2583,17 +2725,17 @@ const mutation$i = Selector("Mutation")({
|
|
|
2583
2725
|
});
|
|
2584
2726
|
|
|
2585
2727
|
const resetKey = {
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2728
|
+
__proto__: null,
|
|
2729
|
+
mutation: mutation$i,
|
|
2730
|
+
name: name$s
|
|
2589
2731
|
};
|
|
2590
2732
|
|
|
2591
|
-
const index$
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2733
|
+
const index$f = {
|
|
2734
|
+
__proto__: null,
|
|
2735
|
+
RegisterAccount: registerAccount,
|
|
2736
|
+
ResetKey: resetKey,
|
|
2737
|
+
StartResetKey: startResetKey,
|
|
2738
|
+
UpdateAccount: updateAccount
|
|
2597
2739
|
};
|
|
2598
2740
|
|
|
2599
2741
|
const name$r = "refresh";
|
|
@@ -2602,9 +2744,9 @@ const mutation$h = Selector("Mutation")({
|
|
|
2602
2744
|
});
|
|
2603
2745
|
|
|
2604
2746
|
const refresh = {
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2747
|
+
__proto__: null,
|
|
2748
|
+
mutation: mutation$h,
|
|
2749
|
+
name: name$r
|
|
2608
2750
|
};
|
|
2609
2751
|
|
|
2610
2752
|
const name$q = "logout";
|
|
@@ -2613,9 +2755,9 @@ const mutation$g = Selector("Mutation")({
|
|
|
2613
2755
|
});
|
|
2614
2756
|
|
|
2615
2757
|
const logout = {
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2758
|
+
__proto__: null,
|
|
2759
|
+
mutation: mutation$g,
|
|
2760
|
+
name: name$q
|
|
2619
2761
|
};
|
|
2620
2762
|
|
|
2621
2763
|
const name$p = "login";
|
|
@@ -2624,16 +2766,16 @@ const mutation$f = Selector("Mutation")({
|
|
|
2624
2766
|
});
|
|
2625
2767
|
|
|
2626
2768
|
const login = {
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2769
|
+
__proto__: null,
|
|
2770
|
+
mutation: mutation$f,
|
|
2771
|
+
name: name$p
|
|
2630
2772
|
};
|
|
2631
2773
|
|
|
2632
|
-
const index$
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2774
|
+
const index$e = {
|
|
2775
|
+
__proto__: null,
|
|
2776
|
+
Login: login,
|
|
2777
|
+
Logout: logout,
|
|
2778
|
+
Refresh: refresh
|
|
2637
2779
|
};
|
|
2638
2780
|
|
|
2639
2781
|
const name$o = "initSystem";
|
|
@@ -2642,9 +2784,9 @@ const mutation$e = Selector("Mutation")({
|
|
|
2642
2784
|
});
|
|
2643
2785
|
|
|
2644
2786
|
const initSystem = {
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2787
|
+
__proto__: null,
|
|
2788
|
+
mutation: mutation$e,
|
|
2789
|
+
name: name$o
|
|
2648
2790
|
};
|
|
2649
2791
|
|
|
2650
2792
|
const name$n = "installSystem";
|
|
@@ -2653,9 +2795,9 @@ const mutation$d = Selector("Mutation")({
|
|
|
2653
2795
|
});
|
|
2654
2796
|
|
|
2655
2797
|
const installSystem = {
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2798
|
+
__proto__: null,
|
|
2799
|
+
mutation: mutation$d,
|
|
2800
|
+
name: name$n
|
|
2659
2801
|
};
|
|
2660
2802
|
|
|
2661
2803
|
const name$m = "setWif";
|
|
@@ -2664,9 +2806,9 @@ const mutation$c = Selector("Mutation")({
|
|
|
2664
2806
|
});
|
|
2665
2807
|
|
|
2666
2808
|
const setWif = {
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2809
|
+
__proto__: null,
|
|
2810
|
+
mutation: mutation$c,
|
|
2811
|
+
name: name$m
|
|
2670
2812
|
};
|
|
2671
2813
|
|
|
2672
2814
|
const name$l = "updateSystem";
|
|
@@ -2675,17 +2817,17 @@ const mutation$b = Selector("Mutation")({
|
|
|
2675
2817
|
});
|
|
2676
2818
|
|
|
2677
2819
|
const updateSystem = {
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2820
|
+
__proto__: null,
|
|
2821
|
+
mutation: mutation$b,
|
|
2822
|
+
name: name$l
|
|
2681
2823
|
};
|
|
2682
2824
|
|
|
2683
|
-
const index$
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2825
|
+
const index$d = {
|
|
2826
|
+
__proto__: null,
|
|
2827
|
+
InitSystem: initSystem,
|
|
2828
|
+
InstallSystem: installSystem,
|
|
2829
|
+
SetWif: setWif,
|
|
2830
|
+
UpdateSystem: updateSystem
|
|
2689
2831
|
};
|
|
2690
2832
|
|
|
2691
2833
|
const name$k = "generateParticipantApplication";
|
|
@@ -2694,9 +2836,9 @@ const mutation$a = Selector("Mutation")({
|
|
|
2694
2836
|
});
|
|
2695
2837
|
|
|
2696
2838
|
const generateParticipantApplication = {
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2839
|
+
__proto__: null,
|
|
2840
|
+
mutation: mutation$a,
|
|
2841
|
+
name: name$k
|
|
2700
2842
|
};
|
|
2701
2843
|
|
|
2702
2844
|
const name$j = "generateParticipantApplicationDecision";
|
|
@@ -2705,9 +2847,9 @@ const mutation$9 = Selector("Mutation")({
|
|
|
2705
2847
|
});
|
|
2706
2848
|
|
|
2707
2849
|
const generateParticipantApplicationDecision = {
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2850
|
+
__proto__: null,
|
|
2851
|
+
mutation: mutation$9,
|
|
2852
|
+
name: name$j
|
|
2711
2853
|
};
|
|
2712
2854
|
|
|
2713
2855
|
const name$i = "registerParticipant";
|
|
@@ -2716,9 +2858,9 @@ const mutation$8 = Selector("Mutation")({
|
|
|
2716
2858
|
});
|
|
2717
2859
|
|
|
2718
2860
|
const registerParticipant = {
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2861
|
+
__proto__: null,
|
|
2862
|
+
mutation: mutation$8,
|
|
2863
|
+
name: name$i
|
|
2722
2864
|
};
|
|
2723
2865
|
|
|
2724
2866
|
const name$h = "addParticipant";
|
|
@@ -2727,17 +2869,17 @@ const mutation$7 = Selector("Mutation")({
|
|
|
2727
2869
|
});
|
|
2728
2870
|
|
|
2729
2871
|
const addParticipant = {
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2872
|
+
__proto__: null,
|
|
2873
|
+
mutation: mutation$7,
|
|
2874
|
+
name: name$h
|
|
2733
2875
|
};
|
|
2734
2876
|
|
|
2735
|
-
const index$
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2877
|
+
const index$c = {
|
|
2878
|
+
__proto__: null,
|
|
2879
|
+
AddParticipant: addParticipant,
|
|
2880
|
+
GenerateParticipantApplication: generateParticipantApplication,
|
|
2881
|
+
GenerateParticipantApplicationDecision: generateParticipantApplicationDecision,
|
|
2882
|
+
RegisterParticipant: registerParticipant
|
|
2741
2883
|
};
|
|
2742
2884
|
|
|
2743
2885
|
const rawPaymentDetailsSelector = {
|
|
@@ -2771,9 +2913,9 @@ const mutation$6 = Selector("Mutation")({
|
|
|
2771
2913
|
});
|
|
2772
2914
|
|
|
2773
2915
|
const createInitial = {
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2916
|
+
__proto__: null,
|
|
2917
|
+
mutation: mutation$6,
|
|
2918
|
+
name: name$g
|
|
2777
2919
|
};
|
|
2778
2920
|
|
|
2779
2921
|
const name$f = "createDepositPayment";
|
|
@@ -2782,9 +2924,9 @@ const mutation$5 = Selector("Mutation")({
|
|
|
2782
2924
|
});
|
|
2783
2925
|
|
|
2784
2926
|
const createDeposit = {
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2927
|
+
__proto__: null,
|
|
2928
|
+
mutation: mutation$5,
|
|
2929
|
+
name: name$f
|
|
2788
2930
|
};
|
|
2789
2931
|
|
|
2790
2932
|
const name$e = "setPaymentStatus";
|
|
@@ -2793,16 +2935,16 @@ const mutation$4 = Selector("Mutation")({
|
|
|
2793
2935
|
});
|
|
2794
2936
|
|
|
2795
2937
|
const setPaymentStatus = {
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2938
|
+
__proto__: null,
|
|
2939
|
+
mutation: mutation$4,
|
|
2940
|
+
name: name$e
|
|
2799
2941
|
};
|
|
2800
2942
|
|
|
2801
|
-
const index$
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2943
|
+
const index$b = {
|
|
2944
|
+
__proto__: null,
|
|
2945
|
+
CreateDepositPayment: createDeposit,
|
|
2946
|
+
CreateInitialPayment: createInitial,
|
|
2947
|
+
SetPaymentStatus: setPaymentStatus
|
|
2806
2948
|
};
|
|
2807
2949
|
|
|
2808
2950
|
const name$d = "generatePrivacyAgreement";
|
|
@@ -2811,9 +2953,9 @@ const mutation$3 = Selector("Mutation")({
|
|
|
2811
2953
|
});
|
|
2812
2954
|
|
|
2813
2955
|
const generatePrivacyAgreement = {
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2956
|
+
__proto__: null,
|
|
2957
|
+
mutation: mutation$3,
|
|
2958
|
+
name: name$d
|
|
2817
2959
|
};
|
|
2818
2960
|
|
|
2819
2961
|
const name$c = "generateSignatureAgreement";
|
|
@@ -2822,9 +2964,9 @@ const mutation$2 = Selector("Mutation")({
|
|
|
2822
2964
|
});
|
|
2823
2965
|
|
|
2824
2966
|
const generateSignatureAgreement = {
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2967
|
+
__proto__: null,
|
|
2968
|
+
mutation: mutation$2,
|
|
2969
|
+
name: name$c
|
|
2828
2970
|
};
|
|
2829
2971
|
|
|
2830
2972
|
const name$b = "generateWalletAgreement";
|
|
@@ -2833,9 +2975,9 @@ const mutation$1 = Selector("Mutation")({
|
|
|
2833
2975
|
});
|
|
2834
2976
|
|
|
2835
2977
|
const generateWalletAgreement = {
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2978
|
+
__proto__: null,
|
|
2979
|
+
mutation: mutation$1,
|
|
2980
|
+
name: name$b
|
|
2839
2981
|
};
|
|
2840
2982
|
|
|
2841
2983
|
const name$a = "generateUserAgreement";
|
|
@@ -2844,31 +2986,31 @@ const mutation = Selector("Mutation")({
|
|
|
2844
2986
|
});
|
|
2845
2987
|
|
|
2846
2988
|
const generateUserAgreement = {
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
};
|
|
2851
|
-
|
|
2852
|
-
const index$b = {
|
|
2853
|
-
__proto__: null,
|
|
2854
|
-
GeneratePrivacyAgreement: generatePrivacyAgreement,
|
|
2855
|
-
GenerateSignatureAgreement: generateSignatureAgreement,
|
|
2856
|
-
GenerateUserAgreement: generateUserAgreement,
|
|
2857
|
-
GenerateWalletAgreement: generateWalletAgreement
|
|
2989
|
+
__proto__: null,
|
|
2990
|
+
mutation: mutation,
|
|
2991
|
+
name: name$a
|
|
2858
2992
|
};
|
|
2859
2993
|
|
|
2860
2994
|
const index$a = {
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2995
|
+
__proto__: null,
|
|
2996
|
+
GeneratePrivacyAgreement: generatePrivacyAgreement,
|
|
2997
|
+
GenerateSignatureAgreement: generateSignatureAgreement,
|
|
2998
|
+
GenerateUserAgreement: generateUserAgreement,
|
|
2999
|
+
GenerateWalletAgreement: generateWalletAgreement
|
|
3000
|
+
};
|
|
3001
|
+
|
|
3002
|
+
const Mutations = {
|
|
3003
|
+
__proto__: null,
|
|
3004
|
+
Accounts: index$f,
|
|
3005
|
+
Agreements: index$a,
|
|
3006
|
+
Auth: index$e,
|
|
3007
|
+
Branches: index$h,
|
|
3008
|
+
Extensions: index$j,
|
|
3009
|
+
FreeDecisions: index$g,
|
|
3010
|
+
Participants: index$c,
|
|
3011
|
+
PaymentMethods: index$i,
|
|
3012
|
+
Payments: index$b,
|
|
3013
|
+
System: index$d
|
|
2872
3014
|
};
|
|
2873
3015
|
|
|
2874
3016
|
const name$9 = "getExtensions";
|
|
@@ -2877,14 +3019,14 @@ const query$9 = Selector("Query")({
|
|
|
2877
3019
|
});
|
|
2878
3020
|
|
|
2879
3021
|
const getExtensions = {
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
3022
|
+
__proto__: null,
|
|
3023
|
+
name: name$9,
|
|
3024
|
+
query: query$9
|
|
2883
3025
|
};
|
|
2884
3026
|
|
|
2885
3027
|
const index$9 = {
|
|
2886
|
-
|
|
2887
|
-
|
|
3028
|
+
__proto__: null,
|
|
3029
|
+
GetExtensions: getExtensions
|
|
2888
3030
|
};
|
|
2889
3031
|
|
|
2890
3032
|
const paginationSelector = {
|
|
@@ -2903,13 +3045,13 @@ const query$8 = Selector("Query")({
|
|
|
2903
3045
|
});
|
|
2904
3046
|
|
|
2905
3047
|
const getPaymentMethods = {
|
|
2906
|
-
|
|
2907
|
-
|
|
3048
|
+
__proto__: null,
|
|
3049
|
+
query: query$8
|
|
2908
3050
|
};
|
|
2909
3051
|
|
|
2910
3052
|
const index$8 = {
|
|
2911
|
-
|
|
2912
|
-
|
|
3053
|
+
__proto__: null,
|
|
3054
|
+
GetPaymentMethods: getPaymentMethods
|
|
2913
3055
|
};
|
|
2914
3056
|
|
|
2915
3057
|
const name$7 = "getSystemInfo";
|
|
@@ -2918,14 +3060,14 @@ const query$7 = Selector("Query")({
|
|
|
2918
3060
|
});
|
|
2919
3061
|
|
|
2920
3062
|
const getSystemInfo = {
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
3063
|
+
__proto__: null,
|
|
3064
|
+
name: name$7,
|
|
3065
|
+
query: query$7
|
|
2924
3066
|
};
|
|
2925
3067
|
|
|
2926
3068
|
const index$7 = {
|
|
2927
|
-
|
|
2928
|
-
|
|
3069
|
+
__proto__: null,
|
|
3070
|
+
GetSystemInfo: getSystemInfo
|
|
2929
3071
|
};
|
|
2930
3072
|
|
|
2931
3073
|
const name$6 = "getAccount";
|
|
@@ -2934,9 +3076,9 @@ const query$6 = Selector("Query")({
|
|
|
2934
3076
|
});
|
|
2935
3077
|
|
|
2936
3078
|
const getAccount = {
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
3079
|
+
__proto__: null,
|
|
3080
|
+
name: name$6,
|
|
3081
|
+
query: query$6
|
|
2940
3082
|
};
|
|
2941
3083
|
|
|
2942
3084
|
const rawAccountsPaginationSelector = { ...paginationSelector, items: rawAccountSelector };
|
|
@@ -2948,15 +3090,15 @@ const query$5 = Selector("Query")({
|
|
|
2948
3090
|
});
|
|
2949
3091
|
|
|
2950
3092
|
const getAccounts = {
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
3093
|
+
__proto__: null,
|
|
3094
|
+
name: name$5,
|
|
3095
|
+
query: query$5
|
|
2954
3096
|
};
|
|
2955
3097
|
|
|
2956
3098
|
const index$6 = {
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
3099
|
+
__proto__: null,
|
|
3100
|
+
GetAccount: getAccount,
|
|
3101
|
+
GetAccounts: getAccounts
|
|
2960
3102
|
};
|
|
2961
3103
|
|
|
2962
3104
|
const name$4 = "getBranches";
|
|
@@ -2965,9 +3107,9 @@ const query$4 = Selector("Query")({
|
|
|
2965
3107
|
});
|
|
2966
3108
|
|
|
2967
3109
|
const getBranches = {
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
3110
|
+
__proto__: null,
|
|
3111
|
+
name: name$4,
|
|
3112
|
+
query: query$4
|
|
2971
3113
|
};
|
|
2972
3114
|
|
|
2973
3115
|
const name$3 = "getBranches";
|
|
@@ -2976,15 +3118,15 @@ const query$3 = Selector("Query")({
|
|
|
2976
3118
|
});
|
|
2977
3119
|
|
|
2978
3120
|
const getPublicBranches = {
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
3121
|
+
__proto__: null,
|
|
3122
|
+
name: name$3,
|
|
3123
|
+
query: query$3
|
|
2982
3124
|
};
|
|
2983
3125
|
|
|
2984
3126
|
const index$5 = {
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
3127
|
+
__proto__: null,
|
|
3128
|
+
GetBranches: getBranches,
|
|
3129
|
+
GetPublicBranches: getPublicBranches
|
|
2988
3130
|
};
|
|
2989
3131
|
|
|
2990
3132
|
const paymentPaginationSelector = { ...paginationSelector, items: rawPaymentSelector };
|
|
@@ -2994,13 +3136,13 @@ const query$2 = Selector("Query")({
|
|
|
2994
3136
|
});
|
|
2995
3137
|
|
|
2996
3138
|
const getPayments = {
|
|
2997
|
-
|
|
2998
|
-
|
|
3139
|
+
__proto__: null,
|
|
3140
|
+
query: query$2
|
|
2999
3141
|
};
|
|
3000
3142
|
|
|
3001
3143
|
const index$4 = {
|
|
3002
|
-
|
|
3003
|
-
|
|
3144
|
+
__proto__: null,
|
|
3145
|
+
GetPayments: getPayments
|
|
3004
3146
|
};
|
|
3005
3147
|
|
|
3006
3148
|
const rawParticipantApplicationDocumentSelector = {
|
|
@@ -3058,13 +3200,13 @@ const query$1 = Selector("Query")({
|
|
|
3058
3200
|
});
|
|
3059
3201
|
|
|
3060
3202
|
const getDocuments = {
|
|
3061
|
-
|
|
3062
|
-
|
|
3203
|
+
__proto__: null,
|
|
3204
|
+
query: query$1
|
|
3063
3205
|
};
|
|
3064
3206
|
|
|
3065
3207
|
const index$3 = {
|
|
3066
|
-
|
|
3067
|
-
|
|
3208
|
+
__proto__: null,
|
|
3209
|
+
GetDocuments: getDocuments
|
|
3068
3210
|
};
|
|
3069
3211
|
|
|
3070
3212
|
const rawSignedBlockchainDocumentSelector = {
|
|
@@ -3108,36 +3250,44 @@ const query = Selector("Query")({
|
|
|
3108
3250
|
});
|
|
3109
3251
|
|
|
3110
3252
|
const getAgenda = {
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3253
|
+
__proto__: null,
|
|
3254
|
+
name: name,
|
|
3255
|
+
query: query
|
|
3114
3256
|
};
|
|
3115
3257
|
|
|
3116
3258
|
const index$2 = {
|
|
3117
|
-
|
|
3118
|
-
|
|
3259
|
+
__proto__: null,
|
|
3260
|
+
GetAgenda: getAgenda
|
|
3119
3261
|
};
|
|
3120
3262
|
|
|
3121
3263
|
const index$1 = {
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3264
|
+
__proto__: null,
|
|
3265
|
+
Accounts: index$6,
|
|
3266
|
+
Agenda: index$2,
|
|
3267
|
+
Branches: index$5,
|
|
3268
|
+
Documents: index$3,
|
|
3269
|
+
Extensions: index$9,
|
|
3270
|
+
PaymentMethods: index$8,
|
|
3271
|
+
Payments: index$4,
|
|
3272
|
+
System: index$7
|
|
3131
3273
|
};
|
|
3132
3274
|
|
|
3133
3275
|
const index = {
|
|
3134
|
-
|
|
3276
|
+
__proto__: null
|
|
3135
3277
|
};
|
|
3136
3278
|
|
|
3137
3279
|
if (typeof globalThis.WebSocket === "undefined") {
|
|
3138
3280
|
globalThis.WebSocket = WebSocket;
|
|
3139
3281
|
}
|
|
3140
3282
|
let currentHeaders = {};
|
|
3283
|
+
const scalars = ZeusScalars({
|
|
3284
|
+
DateTime: {
|
|
3285
|
+
decode: (e) => new Date(e),
|
|
3286
|
+
// Преобразует строку в объект Date
|
|
3287
|
+
encode: (e) => e.toISOString()
|
|
3288
|
+
// Преобразует Date в ISO-строку
|
|
3289
|
+
}
|
|
3290
|
+
});
|
|
3141
3291
|
function createThunder(baseUrl) {
|
|
3142
3292
|
return Thunder(async (query, variables) => {
|
|
3143
3293
|
const response = await fetch(baseUrl, {
|
|
@@ -3166,15 +3316,37 @@ function createThunder(baseUrl) {
|
|
|
3166
3316
|
throw json.errors;
|
|
3167
3317
|
}
|
|
3168
3318
|
return json.data;
|
|
3169
|
-
});
|
|
3319
|
+
}, { scalars });
|
|
3170
3320
|
}
|
|
3171
3321
|
function createClient(options) {
|
|
3172
3322
|
currentHeaders = options.headers || {};
|
|
3173
3323
|
const thunder = createThunder(options.api_url);
|
|
3174
3324
|
const wallet = new Wallet(options);
|
|
3175
|
-
|
|
3325
|
+
async function login(email, wif) {
|
|
3326
|
+
const now = (await wallet.getInfo()).head_block_time.toString();
|
|
3327
|
+
const privateKey = PrivateKey$1.fromString(wif);
|
|
3328
|
+
const bytes = Bytes.fromString(now, "utf8");
|
|
3329
|
+
const checksum = Checksum256.hash(bytes);
|
|
3330
|
+
const signature = privateKey.signDigest(checksum).toString();
|
|
3331
|
+
const variables = {
|
|
3332
|
+
data: {
|
|
3333
|
+
email,
|
|
3334
|
+
now,
|
|
3335
|
+
signature
|
|
3336
|
+
}
|
|
3337
|
+
};
|
|
3338
|
+
const { [name$p]: result } = await thunder("mutation")(
|
|
3339
|
+
mutation$f,
|
|
3340
|
+
{
|
|
3341
|
+
variables
|
|
3342
|
+
}
|
|
3343
|
+
);
|
|
3344
|
+
currentHeaders.Authorization = `Bearer ${result.tokens.access.token}`;
|
|
3345
|
+
return result;
|
|
3346
|
+
}
|
|
3347
|
+
if (options.wif && options.username) {
|
|
3176
3348
|
wallet.setWif(options.username, options.wif);
|
|
3177
|
-
else if (options.wif && !options.username || !options.wif && options.username) {
|
|
3349
|
+
} else if (options.wif && !options.username || !options.wif && options.username) {
|
|
3178
3350
|
throw new Error("wif \u0438 username \u0434\u043E\u043B\u0436\u043D\u044B \u0431\u044B\u0442\u044C \u0443\u043A\u0430\u0437\u0430\u043D\u044B \u043E\u0434\u043D\u043E\u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E");
|
|
3179
3351
|
}
|
|
3180
3352
|
return {
|
|
@@ -3184,8 +3356,9 @@ function createClient(options) {
|
|
|
3184
3356
|
Query: thunder("query"),
|
|
3185
3357
|
Mutation: thunder("mutation"),
|
|
3186
3358
|
Subscription: Subscription(options.api_url.replace(/^http/, "ws")),
|
|
3187
|
-
Wallet: wallet
|
|
3359
|
+
Wallet: wallet,
|
|
3360
|
+
login
|
|
3188
3361
|
};
|
|
3189
3362
|
}
|
|
3190
3363
|
|
|
3191
|
-
export { Classes,
|
|
3364
|
+
export { Classes, Mutations, index$1 as Queries, index as Types, index$k as Zeus, createClient };
|