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