@proton/wrap-constants 0.1.0 → 0.2.1
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/parsers/actions.d.ts +1 -1
- package/dist/parsers/address.d.ts +1 -1
- package/dist/parsers/auth.d.ts +1 -1
- package/dist/parsers/base.d.ts +1 -1
- package/dist/parsers/currency.d.ts +1 -1
- package/dist/parsers/deposit.d.ts +1 -1
- package/dist/parsers/dex.d.ts +14 -230
- package/dist/parsers/otc.d.ts +1 -1
- package/dist/parsers/withdraw.d.ts +1 -1
- package/dist/parsers/withdrawalHistory.d.ts +1 -1
- package/dist/parsers/wrap.d.ts +1 -1
- package/dist/wrap-constants.cjs.development.js +226 -345
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +223 -338
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/coins.ts +15 -1
- package/src/constants.ts +2 -2
- package/src/parsers/actions.ts +1 -1
- package/src/parsers/address.ts +1 -1
- package/src/parsers/auth.ts +1 -1
- package/src/parsers/base.ts +1 -1
- package/src/parsers/currency.ts +1 -1
- package/src/parsers/deposit.ts +1 -1
- package/src/parsers/dex.ts +8 -18
- package/src/parsers/otc.ts +1 -1
- package/src/parsers/withdraw.ts +1 -1
- package/src/parsers/withdrawalHistory.ts +1 -1
- package/src/parsers/wrap.ts +1 -1
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
|
-
var z = require('
|
|
8
|
-
var nestjsZod = require('nestjs-zod');
|
|
7
|
+
var z = require('zod');
|
|
9
8
|
var cloneDeep = _interopDefault(require('lodash.clonedeep'));
|
|
10
9
|
var bignumber_js = require('bignumber.js');
|
|
11
10
|
|
|
@@ -200,7 +199,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
200
199
|
allowBridge: IS_MAINNET,
|
|
201
200
|
allowLend: true,
|
|
202
201
|
allowBorrow: true,
|
|
203
|
-
name: 'Metal',
|
|
202
|
+
name: 'Metal DAO',
|
|
204
203
|
coin: 'MTL',
|
|
205
204
|
xtokenSymbol: 'XMT',
|
|
206
205
|
xtokenPrecision: 8,
|
|
@@ -216,6 +215,19 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
216
215
|
}] : []),
|
|
217
216
|
image: 'https://www.proton.org/images/tokens/xtokensXMT.png',
|
|
218
217
|
coingeckoId: 'metal'
|
|
218
|
+
}, {
|
|
219
|
+
allowSwap: IS_MAINNET,
|
|
220
|
+
allowBridge: false,
|
|
221
|
+
allowLend: false,
|
|
222
|
+
allowBorrow: false,
|
|
223
|
+
name: 'Metal Blockchain',
|
|
224
|
+
coin: 'METAL',
|
|
225
|
+
xtokenSymbol: 'METAL',
|
|
226
|
+
xtokenPrecision: 8,
|
|
227
|
+
xtokenContract: 'xtokens',
|
|
228
|
+
wallets: [],
|
|
229
|
+
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
|
|
230
|
+
coingeckoId: ''
|
|
219
231
|
}, {
|
|
220
232
|
allowSwap: true,
|
|
221
233
|
allowBridge: true,
|
|
@@ -924,77 +936,77 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
924
936
|
};
|
|
925
937
|
};
|
|
926
938
|
|
|
927
|
-
var accountParser = /*#__PURE__*/z.
|
|
928
|
-
var authorizationParser = /*#__PURE__*/z.
|
|
939
|
+
var accountParser = /*#__PURE__*/z.string().regex(/^[.1-5a-z]{0,12}[.1-5a-j]?$/);
|
|
940
|
+
var authorizationParser = /*#__PURE__*/z.object({
|
|
929
941
|
actor: accountParser,
|
|
930
|
-
permission: /*#__PURE__*/z.
|
|
942
|
+
permission: /*#__PURE__*/z.string()
|
|
931
943
|
});
|
|
932
|
-
var authorizationsParser = /*#__PURE__*/z.
|
|
933
|
-
var ExtendedAssetParser = /*#__PURE__*/z.
|
|
934
|
-
quantity: /*#__PURE__*/z.
|
|
944
|
+
var authorizationsParser = /*#__PURE__*/z.array(authorizationParser).min(1);
|
|
945
|
+
var ExtendedAssetParser = /*#__PURE__*/z.object({
|
|
946
|
+
quantity: /*#__PURE__*/z.string(),
|
|
935
947
|
contract: accountParser
|
|
936
948
|
});
|
|
937
949
|
|
|
938
|
-
var actionParser = /*#__PURE__*/z.
|
|
939
|
-
account: /*#__PURE__*/z.
|
|
940
|
-
name: /*#__PURE__*/z.
|
|
941
|
-
authorization: /*#__PURE__*/z.
|
|
942
|
-
actor: /*#__PURE__*/z.
|
|
943
|
-
permission: /*#__PURE__*/z.
|
|
950
|
+
var actionParser = /*#__PURE__*/z.object({
|
|
951
|
+
account: /*#__PURE__*/z.string(),
|
|
952
|
+
name: /*#__PURE__*/z.string(),
|
|
953
|
+
authorization: /*#__PURE__*/z.array( /*#__PURE__*/z.object({
|
|
954
|
+
actor: /*#__PURE__*/z.string(),
|
|
955
|
+
permission: /*#__PURE__*/z.string()
|
|
944
956
|
})),
|
|
945
|
-
data: /*#__PURE__*/z.
|
|
946
|
-
hex_data: /*#__PURE__*/z.
|
|
957
|
+
data: /*#__PURE__*/z.any(),
|
|
958
|
+
hex_data: /*#__PURE__*/z.string().optional()
|
|
947
959
|
});
|
|
948
|
-
var transactionExtensionsParser = /*#__PURE__*/z.
|
|
949
|
-
var rawTransactionParser = /*#__PURE__*/z.
|
|
950
|
-
expiration: /*#__PURE__*/z.
|
|
951
|
-
ref_block_num: /*#__PURE__*/z.
|
|
952
|
-
ref_block_prefix: /*#__PURE__*/z.
|
|
953
|
-
max_net_usage_words: /*#__PURE__*/z.
|
|
954
|
-
max_cpu_usage_ms: /*#__PURE__*/z.
|
|
955
|
-
delay_sec: /*#__PURE__*/z.
|
|
956
|
-
context_free_actions: /*#__PURE__*/z.
|
|
957
|
-
transaction_extensions: /*#__PURE__*/z.
|
|
960
|
+
var transactionExtensionsParser = /*#__PURE__*/z.array(z.number().or(z.string())).optional();
|
|
961
|
+
var rawTransactionParser = /*#__PURE__*/z.object({
|
|
962
|
+
expiration: /*#__PURE__*/z.string(),
|
|
963
|
+
ref_block_num: /*#__PURE__*/z.number(),
|
|
964
|
+
ref_block_prefix: /*#__PURE__*/z.number(),
|
|
965
|
+
max_net_usage_words: /*#__PURE__*/z.number(),
|
|
966
|
+
max_cpu_usage_ms: /*#__PURE__*/z.number(),
|
|
967
|
+
delay_sec: /*#__PURE__*/z.number(),
|
|
968
|
+
context_free_actions: /*#__PURE__*/z.array(actionParser),
|
|
969
|
+
transaction_extensions: /*#__PURE__*/z.array(transactionExtensionsParser)
|
|
958
970
|
});
|
|
959
971
|
var baseActionParser = function baseActionParser(contract, action, data) {
|
|
960
|
-
return z.
|
|
961
|
-
account: contract === '*' ? accountParser : z.
|
|
962
|
-
name: z.
|
|
963
|
-
data: z.
|
|
972
|
+
return z.object({
|
|
973
|
+
account: contract === '*' ? accountParser : z.literal(contract),
|
|
974
|
+
name: z.literal(action),
|
|
975
|
+
data: z.object(data),
|
|
964
976
|
authorization: authorizationsParser
|
|
965
977
|
});
|
|
966
978
|
};
|
|
967
979
|
var baseActionSerializedParser = function baseActionSerializedParser(contract, action, data) {
|
|
968
|
-
return z.
|
|
969
|
-
account: contract === '*' ? accountParser : z.
|
|
970
|
-
name: z.
|
|
971
|
-
data: z.
|
|
980
|
+
return z.object({
|
|
981
|
+
account: contract === '*' ? accountParser : z.literal(contract),
|
|
982
|
+
name: z.literal(action),
|
|
983
|
+
data: z.string().or(z.object(data)),
|
|
972
984
|
authorization: authorizationsParser
|
|
973
985
|
});
|
|
974
986
|
};
|
|
975
987
|
var webauthActionParser = function webauthActionParser(contract, action, data) {
|
|
976
|
-
return z.
|
|
977
|
-
account: z.
|
|
978
|
-
name: z.
|
|
979
|
-
data: z.
|
|
988
|
+
return z.object({
|
|
989
|
+
account: z.literal('webauthn'),
|
|
990
|
+
name: z.literal('exec'),
|
|
991
|
+
data: z.object({
|
|
980
992
|
account: accountParser,
|
|
981
|
-
key: z.
|
|
982
|
-
key: z.
|
|
983
|
-
modulus: z.
|
|
984
|
-
exponent: z.
|
|
993
|
+
key: z.object({
|
|
994
|
+
key: z.array(z.string().or(z.object({
|
|
995
|
+
modulus: z.string(),
|
|
996
|
+
exponent: z.string()
|
|
985
997
|
}))),
|
|
986
|
-
user_presence: z.
|
|
987
|
-
rpid: z.
|
|
998
|
+
user_presence: z.number(),
|
|
999
|
+
rpid: z.string()
|
|
988
1000
|
}),
|
|
989
|
-
nonce: z.
|
|
1001
|
+
nonce: z.number(),
|
|
990
1002
|
permissions: authorizationsParser,
|
|
991
|
-
signature: z.
|
|
992
|
-
auth_data: z.
|
|
993
|
-
client_json: z.
|
|
994
|
-
signature: z.
|
|
1003
|
+
signature: z.object({
|
|
1004
|
+
auth_data: z.string(),
|
|
1005
|
+
client_json: z.string(),
|
|
1006
|
+
signature: z.string()
|
|
995
1007
|
}),
|
|
996
|
-
trx: rawTransactionParser.merge(z.
|
|
997
|
-
actions: z.
|
|
1008
|
+
trx: rawTransactionParser.merge(z.object({
|
|
1009
|
+
actions: z.array(baseActionSerializedParser(contract, action, data)).length(1)
|
|
998
1010
|
}))
|
|
999
1011
|
}),
|
|
1000
1012
|
authorization: authorizationsParser
|
|
@@ -1003,13 +1015,13 @@ var webauthActionParser = function webauthActionParser(contract, action, data) {
|
|
|
1003
1015
|
var singleActionTransactionParser = function singleActionTransactionParser(contract, action, data) {
|
|
1004
1016
|
var baseAction = baseActionParser(contract, action, data);
|
|
1005
1017
|
var webauthAction = webauthActionParser(contract, action, data);
|
|
1006
|
-
return rawTransactionParser.merge(z.
|
|
1007
|
-
actions: z.
|
|
1018
|
+
return rawTransactionParser.merge(z.object({
|
|
1019
|
+
actions: z.array(baseAction.or(webauthAction)).length(1)
|
|
1008
1020
|
}));
|
|
1009
1021
|
};
|
|
1010
1022
|
|
|
1011
1023
|
function _extends() {
|
|
1012
|
-
_extends = Object.assign
|
|
1024
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1013
1025
|
for (var i = 1; i < arguments.length; i++) {
|
|
1014
1026
|
var source = arguments[i];
|
|
1015
1027
|
|
|
@@ -1022,26 +1034,9 @@ function _extends() {
|
|
|
1022
1034
|
|
|
1023
1035
|
return target;
|
|
1024
1036
|
};
|
|
1025
|
-
|
|
1026
1037
|
return _extends.apply(this, arguments);
|
|
1027
1038
|
}
|
|
1028
1039
|
|
|
1029
|
-
function _inheritsLoose(subClass, superClass) {
|
|
1030
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
1031
|
-
subClass.prototype.constructor = subClass;
|
|
1032
|
-
|
|
1033
|
-
_setPrototypeOf(subClass, superClass);
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
function _setPrototypeOf(o, p) {
|
|
1037
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
1038
|
-
o.__proto__ = p;
|
|
1039
|
-
return o;
|
|
1040
|
-
};
|
|
1041
|
-
|
|
1042
|
-
return _setPrototypeOf(o, p);
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
1040
|
function _unsupportedIterableToArray(o, minLen) {
|
|
1046
1041
|
if (!o) return;
|
|
1047
1042
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -1095,7 +1090,7 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1095
1090
|
|
|
1096
1091
|
var constants = {
|
|
1097
1092
|
SWAP_CONTRACT: 'proton.swaps',
|
|
1098
|
-
DEX_CONTRACT: chain === 'proton' ? '
|
|
1093
|
+
DEX_CONTRACT: chain === 'proton' ? 'dex' : 'dextest21',
|
|
1099
1094
|
FEE_FACTOR: FEE_FACTOR,
|
|
1100
1095
|
GOOGLE_MAPS_KEY: 'AIzaSyDb2_CrK032kSIqBXbkdwmaLKWELl0SxVs',
|
|
1101
1096
|
SWAP_URL: chain === 'proton' ? 'https://otc.protonswap.com' : 'https://otc-test.protonswap.com',
|
|
@@ -1179,57 +1174,57 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1179
1174
|
};
|
|
1180
1175
|
|
|
1181
1176
|
var createAbstractAuthParser = function createAbstractAuthParser(contract, action, data) {
|
|
1182
|
-
return z.
|
|
1177
|
+
return z.object({
|
|
1183
1178
|
signer: authorizationParser,
|
|
1184
|
-
signatures: z.
|
|
1179
|
+
signatures: z.array(z.string()).length(1),
|
|
1185
1180
|
transaction: singleActionTransactionParser(contract, action, data)
|
|
1186
1181
|
});
|
|
1187
1182
|
};
|
|
1188
1183
|
var generateAuthData = {
|
|
1189
|
-
time: /*#__PURE__*/z.
|
|
1190
|
-
protonAccount: /*#__PURE__*/z.
|
|
1184
|
+
time: /*#__PURE__*/z.string(),
|
|
1185
|
+
protonAccount: /*#__PURE__*/z.string()
|
|
1191
1186
|
};
|
|
1192
1187
|
var generateAuthParser = /*#__PURE__*/createAbstractAuthParser(WRAP_CONTRACT, WRAP_AUTH_ACTION, generateAuthData);
|
|
1193
1188
|
|
|
1194
|
-
var addressParser = /*#__PURE__*/z.
|
|
1195
|
-
index: /*#__PURE__*/z.
|
|
1189
|
+
var addressParser = /*#__PURE__*/z.object({
|
|
1190
|
+
index: /*#__PURE__*/z.number(),
|
|
1196
1191
|
account: accountParser,
|
|
1197
|
-
chain: /*#__PURE__*/z.
|
|
1198
|
-
address: /*#__PURE__*/z.
|
|
1199
|
-
address_hash: /*#__PURE__*/z.
|
|
1192
|
+
chain: /*#__PURE__*/z.string(),
|
|
1193
|
+
address: /*#__PURE__*/z.string(),
|
|
1194
|
+
address_hash: /*#__PURE__*/z.string()
|
|
1200
1195
|
});
|
|
1201
|
-
var generateAddressBodyParser = /*#__PURE__*/z.
|
|
1202
|
-
coin: z.
|
|
1203
|
-
wallet: z.
|
|
1196
|
+
var generateAddressBodyParser = /*#__PURE__*/z.object({
|
|
1197
|
+
coin: z.string(),
|
|
1198
|
+
wallet: z.string()
|
|
1204
1199
|
}).merge(generateAuthParser);
|
|
1205
|
-
var generateAddressResponse = /*#__PURE__*/z.
|
|
1206
|
-
id: /*#__PURE__*/z.
|
|
1207
|
-
address: /*#__PURE__*/z.
|
|
1208
|
-
coin: /*#__PURE__*/z.
|
|
1209
|
-
wallet: /*#__PURE__*/z.
|
|
1210
|
-
memo: /*#__PURE__*/z.
|
|
1200
|
+
var generateAddressResponse = /*#__PURE__*/z.object({
|
|
1201
|
+
id: /*#__PURE__*/z.string(),
|
|
1202
|
+
address: /*#__PURE__*/z.string(),
|
|
1203
|
+
coin: /*#__PURE__*/z.string(),
|
|
1204
|
+
wallet: /*#__PURE__*/z.string(),
|
|
1205
|
+
memo: /*#__PURE__*/z.string().optional()
|
|
1211
1206
|
});
|
|
1212
1207
|
|
|
1213
|
-
var rateParser = /*#__PURE__*/z.
|
|
1214
|
-
counterCurrency: /*#__PURE__*/z.
|
|
1215
|
-
price: /*#__PURE__*/z.
|
|
1216
|
-
priceChangePercent: /*#__PURE__*/z.
|
|
1217
|
-
marketCap: /*#__PURE__*/z.
|
|
1218
|
-
volume: /*#__PURE__*/z.
|
|
1219
|
-
timestamp: /*#__PURE__*/z.
|
|
1208
|
+
var rateParser = /*#__PURE__*/z.object({
|
|
1209
|
+
counterCurrency: /*#__PURE__*/z.string(),
|
|
1210
|
+
price: /*#__PURE__*/z.number(),
|
|
1211
|
+
priceChangePercent: /*#__PURE__*/z.number(),
|
|
1212
|
+
marketCap: /*#__PURE__*/z.number(),
|
|
1213
|
+
volume: /*#__PURE__*/z.number(),
|
|
1214
|
+
timestamp: /*#__PURE__*/z.number()
|
|
1220
1215
|
});
|
|
1221
|
-
var exchangeRateParser = /*#__PURE__*/z.
|
|
1222
|
-
contract: /*#__PURE__*/z.
|
|
1223
|
-
symbol: /*#__PURE__*/z.
|
|
1224
|
-
rank: /*#__PURE__*/z.
|
|
1225
|
-
rates: /*#__PURE__*/z.
|
|
1216
|
+
var exchangeRateParser = /*#__PURE__*/z.object({
|
|
1217
|
+
contract: /*#__PURE__*/z.string(),
|
|
1218
|
+
symbol: /*#__PURE__*/z.string(),
|
|
1219
|
+
rank: /*#__PURE__*/z.number(),
|
|
1220
|
+
rates: /*#__PURE__*/z.array(rateParser)
|
|
1226
1221
|
});
|
|
1227
|
-
var exchangeRatesParser = /*#__PURE__*/z.
|
|
1228
|
-
var bloksRatesParser = /*#__PURE__*/z.
|
|
1229
|
-
contract: /*#__PURE__*/z.
|
|
1230
|
-
symbol: /*#__PURE__*/z.
|
|
1231
|
-
rank: /*#__PURE__*/z.
|
|
1232
|
-
rates: /*#__PURE__*/z.
|
|
1222
|
+
var exchangeRatesParser = /*#__PURE__*/z.array(exchangeRateParser);
|
|
1223
|
+
var bloksRatesParser = /*#__PURE__*/z.array( /*#__PURE__*/z.object({
|
|
1224
|
+
contract: /*#__PURE__*/z.string(),
|
|
1225
|
+
symbol: /*#__PURE__*/z.string(),
|
|
1226
|
+
rank: /*#__PURE__*/z.number(),
|
|
1227
|
+
rates: /*#__PURE__*/z.array(rateParser)
|
|
1233
1228
|
}));
|
|
1234
1229
|
|
|
1235
1230
|
(function (Type) {
|
|
@@ -1237,91 +1232,91 @@ var bloksRatesParser = /*#__PURE__*/z.z.array( /*#__PURE__*/z.z.object({
|
|
|
1237
1232
|
Type["SEND"] = "send";
|
|
1238
1233
|
})(exports.Type || (exports.Type = {}));
|
|
1239
1234
|
|
|
1240
|
-
var depositBodyParser = /*#__PURE__*/z.
|
|
1241
|
-
id: /*#__PURE__*/z.
|
|
1242
|
-
type: /*#__PURE__*/z.
|
|
1243
|
-
hash: /*#__PURE__*/z.
|
|
1244
|
-
coin: /*#__PURE__*/z.
|
|
1245
|
-
wallet: /*#__PURE__*/z.
|
|
1235
|
+
var depositBodyParser = /*#__PURE__*/z.object({
|
|
1236
|
+
id: /*#__PURE__*/z.string(),
|
|
1237
|
+
type: /*#__PURE__*/z.nativeEnum(exports.Type),
|
|
1238
|
+
hash: /*#__PURE__*/z.string(),
|
|
1239
|
+
coin: /*#__PURE__*/z.string(),
|
|
1240
|
+
wallet: /*#__PURE__*/z.string() // "ETH-ROPSTEN" or "XPR-MAINNET"
|
|
1246
1241
|
|
|
1247
1242
|
});
|
|
1248
|
-
var transactionParser = /*#__PURE__*/z.
|
|
1249
|
-
id: /*#__PURE__*/z.
|
|
1250
|
-
wallet: /*#__PURE__*/z.
|
|
1251
|
-
value: /*#__PURE__*/z.
|
|
1252
|
-
valueString: /*#__PURE__*/z.
|
|
1253
|
-
address: /*#__PURE__*/z.
|
|
1254
|
-
type: /*#__PURE__*/z.
|
|
1255
|
-
state: /*#__PURE__*/z.
|
|
1256
|
-
confirmations: /*#__PURE__*/z.
|
|
1257
|
-
hash: /*#__PURE__*/z.
|
|
1258
|
-
blockHash: /*#__PURE__*/z.
|
|
1259
|
-
blockHeight: /*#__PURE__*/z.
|
|
1243
|
+
var transactionParser = /*#__PURE__*/z.object({
|
|
1244
|
+
id: /*#__PURE__*/z.string(),
|
|
1245
|
+
wallet: /*#__PURE__*/z.string(),
|
|
1246
|
+
value: /*#__PURE__*/z.number(),
|
|
1247
|
+
valueString: /*#__PURE__*/z.string(),
|
|
1248
|
+
address: /*#__PURE__*/z.string(),
|
|
1249
|
+
type: /*#__PURE__*/z.nativeEnum(exports.Type),
|
|
1250
|
+
state: /*#__PURE__*/z.string(),
|
|
1251
|
+
confirmations: /*#__PURE__*/z.number(),
|
|
1252
|
+
hash: /*#__PURE__*/z.string(),
|
|
1253
|
+
blockHash: /*#__PURE__*/z.string().optional().nullable(),
|
|
1254
|
+
blockHeight: /*#__PURE__*/z.number().optional().nullable() // 643159
|
|
1260
1255
|
|
|
1261
1256
|
});
|
|
1262
1257
|
|
|
1263
|
-
var otcOrderResponseParser = /*#__PURE__*/z.
|
|
1264
|
-
success: /*#__PURE__*/z.
|
|
1265
|
-
transaction_id: /*#__PURE__*/z.
|
|
1266
|
-
errormsg: /*#__PURE__*/z.
|
|
1258
|
+
var otcOrderResponseParser = /*#__PURE__*/z.object({
|
|
1259
|
+
success: /*#__PURE__*/z.boolean(),
|
|
1260
|
+
transaction_id: /*#__PURE__*/z.string(),
|
|
1261
|
+
errormsg: /*#__PURE__*/z.string().optional()
|
|
1267
1262
|
});
|
|
1268
|
-
var otcQuoteBodyParser = /*#__PURE__*/z.
|
|
1269
|
-
baseAmount: /*#__PURE__*/z.
|
|
1270
|
-
baseSymbol: /*#__PURE__*/z.
|
|
1271
|
-
quoteSymbol: /*#__PURE__*/z.
|
|
1263
|
+
var otcQuoteBodyParser = /*#__PURE__*/z.object({
|
|
1264
|
+
baseAmount: /*#__PURE__*/z.number(),
|
|
1265
|
+
baseSymbol: /*#__PURE__*/z.string(),
|
|
1266
|
+
quoteSymbol: /*#__PURE__*/z.string()
|
|
1272
1267
|
});
|
|
1273
|
-
var otcQuoteResponseParser = /*#__PURE__*/z.
|
|
1274
|
-
success: /*#__PURE__*/z.
|
|
1275
|
-
token: /*#__PURE__*/z.
|
|
1276
|
-
qty: /*#__PURE__*/z.
|
|
1277
|
-
errormsg: /*#__PURE__*/z.
|
|
1268
|
+
var otcQuoteResponseParser = /*#__PURE__*/z.object({
|
|
1269
|
+
success: /*#__PURE__*/z.boolean(),
|
|
1270
|
+
token: /*#__PURE__*/z.string(),
|
|
1271
|
+
qty: /*#__PURE__*/z.number(),
|
|
1272
|
+
errormsg: /*#__PURE__*/z.string().optional()
|
|
1278
1273
|
});
|
|
1279
1274
|
|
|
1280
1275
|
var withdrawData = {
|
|
1281
|
-
from: /*#__PURE__*/z.
|
|
1276
|
+
from: /*#__PURE__*/z.string().refine(function (val) {
|
|
1282
1277
|
return val !== WRAP_CONTRACT;
|
|
1283
1278
|
}, {
|
|
1284
1279
|
message: WRAP_CONTRACT + " must be receiver"
|
|
1285
1280
|
}),
|
|
1286
|
-
to: /*#__PURE__*/z.
|
|
1287
|
-
quantity: /*#__PURE__*/z.
|
|
1288
|
-
memo: /*#__PURE__*/z.
|
|
1281
|
+
to: /*#__PURE__*/z.literal(WRAP_CONTRACT),
|
|
1282
|
+
quantity: /*#__PURE__*/z.string(),
|
|
1283
|
+
memo: /*#__PURE__*/z.string()
|
|
1289
1284
|
};
|
|
1290
|
-
var withdrawBodyParser = /*#__PURE__*/z.
|
|
1285
|
+
var withdrawBodyParser = /*#__PURE__*/z.object({
|
|
1291
1286
|
signer: authorizationParser,
|
|
1292
|
-
signatures: /*#__PURE__*/z.
|
|
1287
|
+
signatures: /*#__PURE__*/z.array(z.string()).length(1),
|
|
1293
1288
|
transaction: /*#__PURE__*/singleActionTransactionParser('*', 'transfer', withdrawData),
|
|
1294
|
-
quoteId: /*#__PURE__*/z.
|
|
1295
|
-
provider: /*#__PURE__*/z.
|
|
1289
|
+
quoteId: /*#__PURE__*/z.string(),
|
|
1290
|
+
provider: /*#__PURE__*/z.string().optional()
|
|
1296
1291
|
});
|
|
1297
|
-
var withdrawMetalResponseParser = /*#__PURE__*/z.
|
|
1298
|
-
success: /*#__PURE__*/z.
|
|
1299
|
-
id: /*#__PURE__*/z.
|
|
1292
|
+
var withdrawMetalResponseParser = /*#__PURE__*/z.object({
|
|
1293
|
+
success: /*#__PURE__*/z.boolean(),
|
|
1294
|
+
id: /*#__PURE__*/z.string()
|
|
1300
1295
|
});
|
|
1301
|
-
var withdrawalFeeQuoteParser = /*#__PURE__*/z.
|
|
1302
|
-
quoteId: /*#__PURE__*/z.
|
|
1303
|
-
estimatedFee: /*#__PURE__*/z.
|
|
1304
|
-
currency: /*#__PURE__*/z.
|
|
1305
|
-
network: /*#__PURE__*/z.
|
|
1296
|
+
var withdrawalFeeQuoteParser = /*#__PURE__*/z.object({
|
|
1297
|
+
quoteId: /*#__PURE__*/z.string(),
|
|
1298
|
+
estimatedFee: /*#__PURE__*/z.string(),
|
|
1299
|
+
currency: /*#__PURE__*/z.string(),
|
|
1300
|
+
network: /*#__PURE__*/z.string()
|
|
1306
1301
|
});
|
|
1307
1302
|
|
|
1308
|
-
var withdrawHistoryMetalSwapParser = /*#__PURE__*/z.
|
|
1309
|
-
id: /*#__PURE__*/z.
|
|
1310
|
-
status: /*#__PURE__*/z.
|
|
1311
|
-
amount: /*#__PURE__*/z.
|
|
1312
|
-
currency: /*#__PURE__*/z.
|
|
1313
|
-
network: /*#__PURE__*/z.
|
|
1314
|
-
created: /*#__PURE__*/z.
|
|
1315
|
-
withdrawalAddress: /*#__PURE__*/z.
|
|
1316
|
-
withdrawalHash: /*#__PURE__*/z.
|
|
1303
|
+
var withdrawHistoryMetalSwapParser = /*#__PURE__*/z.object({
|
|
1304
|
+
id: /*#__PURE__*/z.string(),
|
|
1305
|
+
status: /*#__PURE__*/z.string(),
|
|
1306
|
+
amount: /*#__PURE__*/z.string(),
|
|
1307
|
+
currency: /*#__PURE__*/z.string(),
|
|
1308
|
+
network: /*#__PURE__*/z.string(),
|
|
1309
|
+
created: /*#__PURE__*/z.string(),
|
|
1310
|
+
withdrawalAddress: /*#__PURE__*/z.string(),
|
|
1311
|
+
withdrawalHash: /*#__PURE__*/z.string().optional()
|
|
1317
1312
|
});
|
|
1318
|
-
var withdrawHistoryMetalResponseParser = /*#__PURE__*/z.
|
|
1319
|
-
swaps: /*#__PURE__*/z.
|
|
1320
|
-
page: /*#__PURE__*/z.
|
|
1321
|
-
pageSize: /*#__PURE__*/z.
|
|
1322
|
-
numberOfElements: /*#__PURE__*/z.
|
|
1323
|
-
totalPages: /*#__PURE__*/z.
|
|
1324
|
-
totalElements: /*#__PURE__*/z.
|
|
1313
|
+
var withdrawHistoryMetalResponseParser = /*#__PURE__*/z.object({
|
|
1314
|
+
swaps: /*#__PURE__*/z.array(withdrawHistoryMetalSwapParser),
|
|
1315
|
+
page: /*#__PURE__*/z.number(),
|
|
1316
|
+
pageSize: /*#__PURE__*/z.number(),
|
|
1317
|
+
numberOfElements: /*#__PURE__*/z.number(),
|
|
1318
|
+
totalPages: /*#__PURE__*/z.number(),
|
|
1319
|
+
totalElements: /*#__PURE__*/z.number()
|
|
1325
1320
|
});
|
|
1326
1321
|
|
|
1327
1322
|
(function (Status) {
|
|
@@ -1331,185 +1326,75 @@ var withdrawHistoryMetalResponseParser = /*#__PURE__*/z.z.object({
|
|
|
1331
1326
|
Status["PROCESSING"] = "processing";
|
|
1332
1327
|
})(exports.Status || (exports.Status = {}));
|
|
1333
1328
|
|
|
1334
|
-
var wrapStartParser = /*#__PURE__*/z.
|
|
1329
|
+
var wrapStartParser = /*#__PURE__*/z.object({
|
|
1335
1330
|
balance: ExtendedAssetParser,
|
|
1336
|
-
id: /*#__PURE__*/z.
|
|
1337
|
-
txid: /*#__PURE__*/z.
|
|
1338
|
-
chain: /*#__PURE__*/z.
|
|
1339
|
-
deposit_address: /*#__PURE__*/z.
|
|
1340
|
-
confirmations: /*#__PURE__*/z.
|
|
1331
|
+
id: /*#__PURE__*/z.string(),
|
|
1332
|
+
txid: /*#__PURE__*/z.string(),
|
|
1333
|
+
chain: /*#__PURE__*/z.string(),
|
|
1334
|
+
deposit_address: /*#__PURE__*/z.string(),
|
|
1335
|
+
confirmations: /*#__PURE__*/z.number()
|
|
1341
1336
|
});
|
|
1342
|
-
var wrapSetConfParser = /*#__PURE__*/z.
|
|
1343
|
-
wrap_hash: /*#__PURE__*/z.
|
|
1344
|
-
confirmations: /*#__PURE__*/z.
|
|
1337
|
+
var wrapSetConfParser = /*#__PURE__*/z.object({
|
|
1338
|
+
wrap_hash: /*#__PURE__*/z.string(),
|
|
1339
|
+
confirmations: /*#__PURE__*/z.number()
|
|
1345
1340
|
});
|
|
1346
|
-
var wrapParser = /*#__PURE__*/z.
|
|
1347
|
-
index: /*#__PURE__*/z.
|
|
1348
|
-
proton_account: /*#__PURE__*/z.
|
|
1341
|
+
var wrapParser = /*#__PURE__*/z.object({
|
|
1342
|
+
index: /*#__PURE__*/z.number(),
|
|
1343
|
+
proton_account: /*#__PURE__*/z.string(),
|
|
1349
1344
|
balance: ExtendedAssetParser,
|
|
1350
|
-
id: /*#__PURE__*/z.
|
|
1351
|
-
txid: /*#__PURE__*/z.
|
|
1352
|
-
chain: /*#__PURE__*/z.
|
|
1353
|
-
deposit_address: /*#__PURE__*/z.
|
|
1354
|
-
status: /*#__PURE__*/z.
|
|
1355
|
-
finish_txid: /*#__PURE__*/z.
|
|
1356
|
-
wrap_hash: /*#__PURE__*/z.
|
|
1357
|
-
confirmations: /*#__PURE__*/z.
|
|
1345
|
+
id: /*#__PURE__*/z.string(),
|
|
1346
|
+
txid: /*#__PURE__*/z.string(),
|
|
1347
|
+
chain: /*#__PURE__*/z.string(),
|
|
1348
|
+
deposit_address: /*#__PURE__*/z.string(),
|
|
1349
|
+
status: /*#__PURE__*/z.nativeEnum(exports.Status),
|
|
1350
|
+
finish_txid: /*#__PURE__*/z.string(),
|
|
1351
|
+
wrap_hash: /*#__PURE__*/z.string(),
|
|
1352
|
+
confirmations: /*#__PURE__*/z.number()
|
|
1358
1353
|
});
|
|
1359
1354
|
|
|
1360
|
-
var numTransform = /*#__PURE__*/z.
|
|
1361
|
-
var ohlcvParser = /*#__PURE__*/z.
|
|
1362
|
-
time: /*#__PURE__*/z.
|
|
1363
|
-
open: /*#__PURE__*/z.
|
|
1364
|
-
high: /*#__PURE__*/z.
|
|
1365
|
-
low: /*#__PURE__*/z.
|
|
1366
|
-
close: /*#__PURE__*/z.
|
|
1367
|
-
volume: /*#__PURE__*/z.
|
|
1368
|
-
volume_bid: /*#__PURE__*/z.
|
|
1369
|
-
count: /*#__PURE__*/z.
|
|
1355
|
+
var numTransform = /*#__PURE__*/z.string().regex(/\d+/).transform(Number);
|
|
1356
|
+
var ohlcvParser = /*#__PURE__*/z.object({
|
|
1357
|
+
time: /*#__PURE__*/z.number(),
|
|
1358
|
+
open: /*#__PURE__*/z.number(),
|
|
1359
|
+
high: /*#__PURE__*/z.number(),
|
|
1360
|
+
low: /*#__PURE__*/z.number(),
|
|
1361
|
+
close: /*#__PURE__*/z.number(),
|
|
1362
|
+
volume: /*#__PURE__*/z.number(),
|
|
1363
|
+
volume_bid: /*#__PURE__*/z.number(),
|
|
1364
|
+
count: /*#__PURE__*/z.number()
|
|
1370
1365
|
});
|
|
1371
|
-
var
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
return OHLCV_DTO;
|
|
1379
|
-
}( /*#__PURE__*/nestjsZod.createZodDto(ohlcvParser));
|
|
1380
|
-
var getOhlcvParser = /*#__PURE__*/z.z.object({
|
|
1381
|
-
interval: /*#__PURE__*/z.z.string(),
|
|
1382
|
-
dateFrom: /*#__PURE__*/z.z.string(),
|
|
1383
|
-
dateTo: /*#__PURE__*/z.z.string(),
|
|
1384
|
-
marketId: /*#__PURE__*/z.z.number().or(numTransform),
|
|
1385
|
-
limit: /*#__PURE__*/z.z.number().or(numTransform)["default"](500).refine(function (n) {
|
|
1366
|
+
var getOhlcvParser = /*#__PURE__*/z.object({
|
|
1367
|
+
interval: /*#__PURE__*/z.string(),
|
|
1368
|
+
dateFrom: /*#__PURE__*/z.string(),
|
|
1369
|
+
dateTo: /*#__PURE__*/z.string(),
|
|
1370
|
+
marketId: /*#__PURE__*/z.number().or(numTransform),
|
|
1371
|
+
limit: /*#__PURE__*/z.number().or(numTransform)["default"](500).refine(function (n) {
|
|
1386
1372
|
return n <= 1000;
|
|
1387
1373
|
}, 'Max limit is 1000')
|
|
1388
1374
|
});
|
|
1389
|
-
var
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
quantity_init: /*#__PURE__*/z.z.number().optional(),
|
|
1405
|
-
quantity_curr: /*#__PURE__*/z.z.number(),
|
|
1406
|
-
price: /*#__PURE__*/z.z.number(),
|
|
1407
|
-
account_name: /*#__PURE__*/z.z.string(),
|
|
1408
|
-
order_side: /*#__PURE__*/z.z.number(),
|
|
1409
|
-
order_type: /*#__PURE__*/z.z.number(),
|
|
1410
|
-
status: /*#__PURE__*/z.z.string(),
|
|
1411
|
-
quantity_change: /*#__PURE__*/z.z.number(),
|
|
1412
|
-
trx_id: /*#__PURE__*/z.z.string()
|
|
1375
|
+
var orderHistoryParser = /*#__PURE__*/z.object({
|
|
1376
|
+
seq: /*#__PURE__*/z.number(),
|
|
1377
|
+
block_num: /*#__PURE__*/z.number(),
|
|
1378
|
+
block_time: /*#__PURE__*/z.string(),
|
|
1379
|
+
order_id: /*#__PURE__*/z.number(),
|
|
1380
|
+
market_id: /*#__PURE__*/z.number(),
|
|
1381
|
+
quantity_init: /*#__PURE__*/z.number().optional(),
|
|
1382
|
+
quantity_curr: /*#__PURE__*/z.number(),
|
|
1383
|
+
price: /*#__PURE__*/z.number(),
|
|
1384
|
+
account_name: /*#__PURE__*/z.string(),
|
|
1385
|
+
order_side: /*#__PURE__*/z.number(),
|
|
1386
|
+
order_type: /*#__PURE__*/z.number(),
|
|
1387
|
+
status: /*#__PURE__*/z.string(),
|
|
1388
|
+
quantity_change: /*#__PURE__*/z.number(),
|
|
1389
|
+
trx_id: /*#__PURE__*/z.string()
|
|
1413
1390
|
});
|
|
1414
|
-
var
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
function
|
|
1418
|
-
return _createZodDto3.apply(this, arguments) || this;
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
return OrderHistory_DTO;
|
|
1422
|
-
}( /*#__PURE__*/nestjsZod.createZodDto(orderHistoryParser));
|
|
1423
|
-
var getOrderHistoryParser = /*#__PURE__*/z.z.object({
|
|
1424
|
-
account: /*#__PURE__*/z.z.string(),
|
|
1425
|
-
offset: /*#__PURE__*/z.z.number().or(numTransform)["default"](0),
|
|
1426
|
-
limit: /*#__PURE__*/z.z.number().or(numTransform)["default"](100).refine(function (n) {
|
|
1427
|
-
return n <= 250;
|
|
1428
|
-
}, 'Max limit is 250')
|
|
1429
|
-
});
|
|
1430
|
-
var GetOrderHistory_DTO = /*#__PURE__*/function (_createZodDto4) {
|
|
1431
|
-
_inheritsLoose(GetOrderHistory_DTO, _createZodDto4);
|
|
1432
|
-
|
|
1433
|
-
function GetOrderHistory_DTO() {
|
|
1434
|
-
return _createZodDto4.apply(this, arguments) || this;
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
return GetOrderHistory_DTO;
|
|
1438
|
-
}( /*#__PURE__*/nestjsZod.createZodDto(getOrderHistoryParser));
|
|
1439
|
-
var depthParser = /*#__PURE__*/z.z.object({
|
|
1440
|
-
level: /*#__PURE__*/z.z.string(),
|
|
1441
|
-
ask: /*#__PURE__*/z.z.string(),
|
|
1442
|
-
bid: /*#__PURE__*/z.z.string(),
|
|
1443
|
-
count: /*#__PURE__*/z.z.number()
|
|
1444
|
-
});
|
|
1445
|
-
var Depth_DTO = /*#__PURE__*/function (_createZodDto5) {
|
|
1446
|
-
_inheritsLoose(Depth_DTO, _createZodDto5);
|
|
1447
|
-
|
|
1448
|
-
function Depth_DTO() {
|
|
1449
|
-
return _createZodDto5.apply(this, arguments) || this;
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
return Depth_DTO;
|
|
1453
|
-
}( /*#__PURE__*/nestjsZod.createZodDto(depthParser));
|
|
1454
|
-
var getDepthParser = /*#__PURE__*/z.z.object({
|
|
1455
|
-
marketId: /*#__PURE__*/z.z.number(),
|
|
1456
|
-
step: /*#__PURE__*/z.z.string(),
|
|
1457
|
-
side: /*#__PURE__*/z.z.string(),
|
|
1458
|
-
limit: /*#__PURE__*/z.z.number().or(numTransform)["default"](100).refine(function (n) {
|
|
1459
|
-
return n <= 250;
|
|
1460
|
-
}, 'Max limit is 250')
|
|
1461
|
-
});
|
|
1462
|
-
var GetDepth_DTO = /*#__PURE__*/function (_createZodDto6) {
|
|
1463
|
-
_inheritsLoose(GetDepth_DTO, _createZodDto6);
|
|
1464
|
-
|
|
1465
|
-
function GetDepth_DTO() {
|
|
1466
|
-
return _createZodDto6.apply(this, arguments) || this;
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
return GetDepth_DTO;
|
|
1470
|
-
}( /*#__PURE__*/nestjsZod.createZodDto(getDepthParser));
|
|
1471
|
-
var tradeParser = /*#__PURE__*/z.z.object({
|
|
1472
|
-
block_num: /*#__PURE__*/z.z.number(),
|
|
1473
|
-
block_time: /*#__PURE__*/z.z.string(),
|
|
1474
|
-
trade_id: /*#__PURE__*/z.z.number(),
|
|
1475
|
-
market_id: /*#__PURE__*/z.z.number(),
|
|
1476
|
-
price: /*#__PURE__*/z.z.number(),
|
|
1477
|
-
bid_user: /*#__PURE__*/z.z.string(),
|
|
1478
|
-
bid_user_order_id: /*#__PURE__*/z.z.number(),
|
|
1479
|
-
bid_amount: /*#__PURE__*/z.z.number(),
|
|
1480
|
-
bid_fee: /*#__PURE__*/z.z.number(),
|
|
1481
|
-
ask_user: /*#__PURE__*/z.z.string(),
|
|
1482
|
-
ask_user_order_id: /*#__PURE__*/z.z.number(),
|
|
1483
|
-
ask_amount: /*#__PURE__*/z.z.number(),
|
|
1484
|
-
ask_fee: /*#__PURE__*/z.z.number(),
|
|
1485
|
-
order_side: /*#__PURE__*/z.z.number(),
|
|
1486
|
-
trx_id: /*#__PURE__*/z.z.string()
|
|
1487
|
-
});
|
|
1488
|
-
var Trade_DTO = /*#__PURE__*/function (_createZodDto7) {
|
|
1489
|
-
_inheritsLoose(Trade_DTO, _createZodDto7);
|
|
1490
|
-
|
|
1491
|
-
function Trade_DTO() {
|
|
1492
|
-
return _createZodDto7.apply(this, arguments) || this;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
return Trade_DTO;
|
|
1496
|
-
}( /*#__PURE__*/nestjsZod.createZodDto(tradeParser));
|
|
1497
|
-
var getTradesParser = /*#__PURE__*/z.z.object({
|
|
1498
|
-
marketId: /*#__PURE__*/z.z.number().or(numTransform),
|
|
1499
|
-
offset: /*#__PURE__*/z.z.number().or(numTransform)["default"](0),
|
|
1500
|
-
limit: /*#__PURE__*/z.z.number().or(numTransform)["default"](100).refine(function (n) {
|
|
1391
|
+
var getOrderHistoryParser = /*#__PURE__*/z.object({
|
|
1392
|
+
account: /*#__PURE__*/z.string(),
|
|
1393
|
+
offset: /*#__PURE__*/z.number().or(numTransform)["default"](0),
|
|
1394
|
+
limit: /*#__PURE__*/z.number().or(numTransform)["default"](100).refine(function (n) {
|
|
1501
1395
|
return n <= 250;
|
|
1502
1396
|
}, 'Max limit is 250')
|
|
1503
1397
|
});
|
|
1504
|
-
var GetTrades_DTO = /*#__PURE__*/function (_createZodDto8) {
|
|
1505
|
-
_inheritsLoose(GetTrades_DTO, _createZodDto8);
|
|
1506
|
-
|
|
1507
|
-
function GetTrades_DTO() {
|
|
1508
|
-
return _createZodDto8.apply(this, arguments) || this;
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
return GetTrades_DTO;
|
|
1512
|
-
}( /*#__PURE__*/nestjsZod.createZodDto(getTradesParser));
|
|
1513
1398
|
|
|
1514
1399
|
(function (orderType) {
|
|
1515
1400
|
orderType[orderType["INVALID"] = 0] = "INVALID";
|
|
@@ -1829,19 +1714,11 @@ var applyDiscountToFee = function applyDiscountToFee(fee, staked) {
|
|
|
1829
1714
|
}
|
|
1830
1715
|
};
|
|
1831
1716
|
|
|
1832
|
-
exports.Depth_DTO = Depth_DTO;
|
|
1833
1717
|
exports.ExtendedAssetParser = ExtendedAssetParser;
|
|
1834
1718
|
exports.FEE_FACTOR = FEE_FACTOR;
|
|
1835
|
-
exports.GetDepth_DTO = GetDepth_DTO;
|
|
1836
|
-
exports.GetOHLCV_DTO = GetOHLCV_DTO;
|
|
1837
|
-
exports.GetOrderHistory_DTO = GetOrderHistory_DTO;
|
|
1838
|
-
exports.GetTrades_DTO = GetTrades_DTO;
|
|
1839
1719
|
exports.Graph = Graph;
|
|
1840
1720
|
exports.ILink = ILink;
|
|
1841
1721
|
exports.INode = INode;
|
|
1842
|
-
exports.OHLCV_DTO = OHLCV_DTO;
|
|
1843
|
-
exports.OrderHistory_DTO = OrderHistory_DTO;
|
|
1844
|
-
exports.Trade_DTO = Trade_DTO;
|
|
1845
1722
|
exports.WRAP_AUTH_ACTION = WRAP_AUTH_ACTION;
|
|
1846
1723
|
exports.WRAP_CONTRACT = WRAP_CONTRACT;
|
|
1847
1724
|
exports.accountParser = accountParser;
|
|
@@ -1863,11 +1740,15 @@ exports.explorerLinkByChain = explorerLinkByChain;
|
|
|
1863
1740
|
exports.generateAddressBodyParser = generateAddressBodyParser;
|
|
1864
1741
|
exports.generateAddressResponse = generateAddressResponse;
|
|
1865
1742
|
exports.generateAuthParser = generateAuthParser;
|
|
1743
|
+
exports.getOhlcvParser = getOhlcvParser;
|
|
1744
|
+
exports.getOrderHistoryParser = getOrderHistoryParser;
|
|
1866
1745
|
exports.initializeCoins = initializeCoins;
|
|
1867
1746
|
exports.initializeConstants = initializeConstants;
|
|
1868
1747
|
exports.isInputInvalid = isInputInvalid;
|
|
1869
1748
|
exports.isSameToken = isSameToken;
|
|
1870
1749
|
exports.median = median;
|
|
1750
|
+
exports.ohlcvParser = ohlcvParser;
|
|
1751
|
+
exports.orderHistoryParser = orderHistoryParser;
|
|
1871
1752
|
exports.otcOrderResponseParser = otcOrderResponseParser;
|
|
1872
1753
|
exports.otcQuoteBodyParser = otcQuoteBodyParser;
|
|
1873
1754
|
exports.otcQuoteResponseParser = otcQuoteResponseParser;
|