@reyaxyz/sdk 0.138.4 → 0.139.0
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/README.md +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/services/api-wallets/index.js +100 -0
- package/dist/services/api-wallets/index.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/services/api-wallets/index.d.ts +12 -0
- package/dist/types/services/api-wallets/index.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/index.ts +1 -0
- package/src/services/api-wallets/index.ts +71 -0
package/README.md
CHANGED
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
|
|
7
7
|
| Statements | Branches | Functions | Lines |
|
|
8
8
|
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
|
|
9
|
-
|  |  |  |  |
|
|
10
10
|
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.getTransactionModuleClient = exports.configureSDK = void 0;
|
|
18
|
+
__exportStar(require("./services/api-wallets"), exports);
|
|
18
19
|
__exportStar(require("./services/lp"), exports);
|
|
19
20
|
__exportStar(require("./services/margin-accounts"), exports);
|
|
20
21
|
__exportStar(require("./services/money-flows"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,6DAA2C;AAC3C,yDAAuC;AACvC,oDAAkC;AAClC,gEAA8C;AAC9C,mDAAiC;AACjC,mCAAoE;AAA3D,sGAAA,YAAY,OAAA;AAAE,oHAAA,0BAA0B,OAAA","sourcesContent":["export * from './services/lp';\nexport * from './services/margin-accounts';\nexport * from './services/money-flows';\nexport * from './services/orders';\nexport * from './services/conditional-orders';\nexport * from './services/token';\nexport { configureSDK, getTransactionModuleClient } from './config';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,gDAA8B;AAC9B,6DAA2C;AAC3C,yDAAuC;AACvC,oDAAkC;AAClC,gEAA8C;AAC9C,mDAAiC;AACjC,mCAAoE;AAA3D,sGAAA,YAAY,OAAA;AAAE,oHAAA,0BAA0B,OAAA","sourcesContent":["export * from './services/api-wallets';\nexport * from './services/lp';\nexport * from './services/margin-accounts';\nexport * from './services/money-flows';\nexport * from './services/orders';\nexport * from './services/conditional-orders';\nexport * from './services/token';\nexport { configureSDK, getTransactionModuleClient } from './config';\n"]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
+
exports.disableApiWallet = exports.enableApiWallet = void 0;
|
|
51
|
+
var common_1 = require("@reyaxyz/common");
|
|
52
|
+
var ethers_1 = require("ethers");
|
|
53
|
+
var network_1 = require("../../utils/network");
|
|
54
|
+
var signAndBroadcastTransaction_1 = require("../signAndBroadcastTransaction");
|
|
55
|
+
var enableApiWallet = function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
+
return __generator(this, function (_a) {
|
|
57
|
+
return [2 /*return*/, manageApiWallet(__assign(__assign({}, params), { action: 'enable' }))];
|
|
58
|
+
});
|
|
59
|
+
}); };
|
|
60
|
+
exports.enableApiWallet = enableApiWallet;
|
|
61
|
+
var disableApiWallet = function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
return __generator(this, function (_a) {
|
|
63
|
+
return [2 /*return*/, manageApiWallet(__assign(__assign({}, params), { action: 'disable' }))];
|
|
64
|
+
});
|
|
65
|
+
}); };
|
|
66
|
+
exports.disableApiWallet = disableApiWallet;
|
|
67
|
+
var manageApiWallet = function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
68
|
+
var signer, apiWalletAddress, action, signerAddress, deadline, reyaChainId, permissionState, signature, fnSig, fnArgs, ogInterface, data;
|
|
69
|
+
return __generator(this, function (_a) {
|
|
70
|
+
switch (_a.label) {
|
|
71
|
+
case 0:
|
|
72
|
+
signer = params.signer, apiWalletAddress = params.apiWalletAddress, action = params.action;
|
|
73
|
+
return [4 /*yield*/, signer.getAddress()];
|
|
74
|
+
case 1:
|
|
75
|
+
signerAddress = _a.sent();
|
|
76
|
+
deadline = (0, common_1.getCurrentTimestampInSeconds)() + 15;
|
|
77
|
+
reyaChainId = (0, network_1.getReyaNetwork)();
|
|
78
|
+
permissionState = action === 'enable';
|
|
79
|
+
return [4 /*yield*/, (0, common_1.signManagePermissionBySig)(signer, signerAddress, reyaChainId, apiWalletAddress, permissionState, deadline)];
|
|
80
|
+
case 2:
|
|
81
|
+
signature = _a.sent();
|
|
82
|
+
fnSig = 'managePermissionBySig';
|
|
83
|
+
fnArgs = [
|
|
84
|
+
signerAddress,
|
|
85
|
+
apiWalletAddress,
|
|
86
|
+
permissionState,
|
|
87
|
+
[signature.v, signature.r, signature.s, signature.deadline],
|
|
88
|
+
];
|
|
89
|
+
ogInterface = new ethers_1.Interface(common_1.OrdersGatewayAbi);
|
|
90
|
+
data = ogInterface.encodeFunctionData(fnSig, fnArgs);
|
|
91
|
+
return [4 /*yield*/, (0, signAndBroadcastTransaction_1.signAndBroadcastTransaction)(data, reyaChainId, common_1.ContractType.ORDERS_GATEWAY_PROXY, {
|
|
92
|
+
action: "".concat(action, "-api-wallet"),
|
|
93
|
+
})];
|
|
94
|
+
case 3:
|
|
95
|
+
_a.sent();
|
|
96
|
+
return [2 /*return*/];
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}); };
|
|
100
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["services/api-wallets/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAKyB;AACzB,iCAA0D;AAC1D,+CAAqD;AACrD,8EAA6E;AAWtE,IAAM,eAAe,GAAG,UAC7B,MAA6B;;QAE7B,sBAAO,eAAe,uBAAM,MAAM,KAAE,MAAM,EAAE,QAAQ,IAAG,EAAC;;KACzD,CAAC;AAJW,QAAA,eAAe,mBAI1B;AAEK,IAAM,gBAAgB,GAAG,UAC9B,MAA8B;;QAE9B,sBAAO,eAAe,uBAAM,MAAM,KAAE,MAAM,EAAE,SAAS,IAAG,EAAC;;KAC1D,CAAC;AAJW,QAAA,gBAAgB,oBAI3B;AAEF,IAAM,eAAe,GAAG,UACtB,MAA6B;;;;;gBAErB,MAAM,GAA+B,MAAM,OAArC,EAAE,gBAAgB,GAAa,MAAM,iBAAnB,EAAE,MAAM,GAAK,MAAM,OAAX,CAAY;gBAC9B,qBAAM,MAAM,CAAC,UAAU,EAAE,EAAA;;gBAAzC,aAAa,GAAG,SAAyB;gBACzC,QAAQ,GAAG,IAAA,qCAA4B,GAAE,GAAG,EAAE,CAAC;gBAC/C,WAAW,GAAG,IAAA,wBAAc,GAAE,CAAC;gBAC/B,eAAe,GAAG,MAAM,KAAK,QAAQ,CAAC;gBAE1B,qBAAM,IAAA,kCAAyB,EAC/C,MAAM,EACN,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,QAAQ,CACT,EAAA;;gBAPK,SAAS,GAAG,SAOjB;gBAEK,KAAK,GAAG,uBAAuB,CAAC;gBAChC,MAAM,GAAG;oBACb,aAAa;oBACb,gBAAgB;oBAChB,eAAe;oBACf,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC;iBAC5D,CAAC;gBAEI,WAAW,GAAG,IAAI,kBAAS,CAAC,yBAAgB,CAAC,CAAC;gBAC9C,IAAI,GAAG,WAAW,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;gBAE3D,qBAAM,IAAA,yDAA2B,EAC/B,IAAI,EACJ,WAAW,EACX,qBAAY,CAAC,oBAAoB,EACjC;wBACE,MAAM,EAAE,UAAG,MAAM,gBAAa;qBAC/B,CACF,EAAA;;gBAPD,SAOC,CAAC;gBAEF,sBAAO;;;KACR,CAAC","sourcesContent":["import {\n ContractType,\n getCurrentTimestampInSeconds,\n OrdersGatewayAbi,\n signManagePermissionBySig,\n} from '@reyaxyz/common';\nimport { Interface, JsonRpcSigner, Signer } from 'ethers';\nimport { getReyaNetwork } from '../../utils/network';\nimport { signAndBroadcastTransaction } from '../signAndBroadcastTransaction';\n\ntype ManageApiWalletParams = {\n signer: Signer | JsonRpcSigner;\n apiWalletAddress: string;\n action: 'enable' | 'disable';\n};\n\nexport type EnableApiWalletParams = Omit<ManageApiWalletParams, 'action'>;\nexport type DisableApiWalletParams = Omit<ManageApiWalletParams, 'action'>;\n\nexport const enableApiWallet = async (\n params: EnableApiWalletParams,\n): Promise<void> => {\n return manageApiWallet({ ...params, action: 'enable' });\n};\n\nexport const disableApiWallet = async (\n params: DisableApiWalletParams,\n): Promise<void> => {\n return manageApiWallet({ ...params, action: 'disable' });\n};\n\nconst manageApiWallet = async (\n params: ManageApiWalletParams,\n): Promise<void> => {\n const { signer, apiWalletAddress, action } = params;\n const signerAddress = await signer.getAddress();\n const deadline = getCurrentTimestampInSeconds() + 15;\n const reyaChainId = getReyaNetwork();\n const permissionState = action === 'enable';\n\n const signature = await signManagePermissionBySig(\n signer,\n signerAddress,\n reyaChainId,\n apiWalletAddress,\n permissionState,\n deadline,\n );\n\n const fnSig = 'managePermissionBySig';\n const fnArgs = [\n signerAddress,\n apiWalletAddress,\n permissionState,\n [signature.v, signature.r, signature.s, signature.deadline],\n ];\n\n const ogInterface = new Interface(OrdersGatewayAbi);\n const data = ogInterface.encodeFunctionData(fnSig, fnArgs);\n\n await signAndBroadcastTransaction(\n data,\n reyaChainId,\n ContractType.ORDERS_GATEWAY_PROXY,\n {\n action: `${action}-api-wallet`,\n },\n );\n\n return;\n};\n"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JsonRpcSigner, Signer } from 'ethers';
|
|
2
|
+
type ManageApiWalletParams = {
|
|
3
|
+
signer: Signer | JsonRpcSigner;
|
|
4
|
+
apiWalletAddress: string;
|
|
5
|
+
action: 'enable' | 'disable';
|
|
6
|
+
};
|
|
7
|
+
export type EnableApiWalletParams = Omit<ManageApiWalletParams, 'action'>;
|
|
8
|
+
export type DisableApiWalletParams = Omit<ManageApiWalletParams, 'action'>;
|
|
9
|
+
export declare const enableApiWallet: (params: EnableApiWalletParams) => Promise<void>;
|
|
10
|
+
export declare const disableApiWallet: (params: DisableApiWalletParams) => Promise<void>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["services/api-wallets/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAa,aAAa,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAI1D,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC;IAC/B,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC;AAC1E,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC;AAE3E,eAAO,MAAM,eAAe,WAClB,qBAAqB,KAC5B,QAAQ,IAAI,CAEd,CAAC;AAEF,eAAO,MAAM,gBAAgB,WACnB,sBAAsB,KAC7B,QAAQ,IAAI,CAEd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.139.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"generate:coverage-badges": "npx istanbul-badges-readme --silent"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@reyaxyz/common": "0.
|
|
32
|
+
"@reyaxyz/common": "0.317.0",
|
|
33
33
|
"axios": "1.6.2",
|
|
34
34
|
"bignumber.js": "9.1.2",
|
|
35
35
|
"ethers": "6.9.0"
|
|
36
36
|
},
|
|
37
37
|
"packageManager": "pnpm@8.3.1",
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "1ee6df49c8b20d53bbfe442ea2e98c9543274196"
|
|
39
39
|
}
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ContractType,
|
|
3
|
+
getCurrentTimestampInSeconds,
|
|
4
|
+
OrdersGatewayAbi,
|
|
5
|
+
signManagePermissionBySig,
|
|
6
|
+
} from '@reyaxyz/common';
|
|
7
|
+
import { Interface, JsonRpcSigner, Signer } from 'ethers';
|
|
8
|
+
import { getReyaNetwork } from '../../utils/network';
|
|
9
|
+
import { signAndBroadcastTransaction } from '../signAndBroadcastTransaction';
|
|
10
|
+
|
|
11
|
+
type ManageApiWalletParams = {
|
|
12
|
+
signer: Signer | JsonRpcSigner;
|
|
13
|
+
apiWalletAddress: string;
|
|
14
|
+
action: 'enable' | 'disable';
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type EnableApiWalletParams = Omit<ManageApiWalletParams, 'action'>;
|
|
18
|
+
export type DisableApiWalletParams = Omit<ManageApiWalletParams, 'action'>;
|
|
19
|
+
|
|
20
|
+
export const enableApiWallet = async (
|
|
21
|
+
params: EnableApiWalletParams,
|
|
22
|
+
): Promise<void> => {
|
|
23
|
+
return manageApiWallet({ ...params, action: 'enable' });
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const disableApiWallet = async (
|
|
27
|
+
params: DisableApiWalletParams,
|
|
28
|
+
): Promise<void> => {
|
|
29
|
+
return manageApiWallet({ ...params, action: 'disable' });
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const manageApiWallet = async (
|
|
33
|
+
params: ManageApiWalletParams,
|
|
34
|
+
): Promise<void> => {
|
|
35
|
+
const { signer, apiWalletAddress, action } = params;
|
|
36
|
+
const signerAddress = await signer.getAddress();
|
|
37
|
+
const deadline = getCurrentTimestampInSeconds() + 15;
|
|
38
|
+
const reyaChainId = getReyaNetwork();
|
|
39
|
+
const permissionState = action === 'enable';
|
|
40
|
+
|
|
41
|
+
const signature = await signManagePermissionBySig(
|
|
42
|
+
signer,
|
|
43
|
+
signerAddress,
|
|
44
|
+
reyaChainId,
|
|
45
|
+
apiWalletAddress,
|
|
46
|
+
permissionState,
|
|
47
|
+
deadline,
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
const fnSig = 'managePermissionBySig';
|
|
51
|
+
const fnArgs = [
|
|
52
|
+
signerAddress,
|
|
53
|
+
apiWalletAddress,
|
|
54
|
+
permissionState,
|
|
55
|
+
[signature.v, signature.r, signature.s, signature.deadline],
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
const ogInterface = new Interface(OrdersGatewayAbi);
|
|
59
|
+
const data = ogInterface.encodeFunctionData(fnSig, fnArgs);
|
|
60
|
+
|
|
61
|
+
await signAndBroadcastTransaction(
|
|
62
|
+
data,
|
|
63
|
+
reyaChainId,
|
|
64
|
+
ContractType.ORDERS_GATEWAY_PROXY,
|
|
65
|
+
{
|
|
66
|
+
action: `${action}-api-wallet`,
|
|
67
|
+
},
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
return;
|
|
71
|
+
};
|