@proton/wrap-constants 0.0.85 → 0.2.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/dist/constants.d.ts +2 -0
- 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 +508 -0
- package/dist/parsers/index.d.ts +1 -0
- 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 +376 -186
- 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 +374 -187
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/coins.ts +1 -15
- package/src/constants.ts +9 -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 +167 -0
- package/src/parsers/index.ts +2 -1
- 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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'nestjs-zod/z';
|
|
2
|
+
import { createZodDto } from 'nestjs-zod';
|
|
2
3
|
import cloneDeep from 'lodash.clonedeep';
|
|
3
4
|
import { BigNumber } from 'bignumber.js';
|
|
4
5
|
|
|
@@ -197,7 +198,7 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
197
198
|
allowBridge: IS_MAINNET,
|
|
198
199
|
allowLend: true,
|
|
199
200
|
allowBorrow: true,
|
|
200
|
-
name: 'Metal
|
|
201
|
+
name: 'Metal',
|
|
201
202
|
coin: 'MTL',
|
|
202
203
|
xtokenSymbol: 'XMT',
|
|
203
204
|
xtokenPrecision: 8,
|
|
@@ -213,19 +214,6 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
213
214
|
}] : []),
|
|
214
215
|
image: 'https://www.proton.org/images/tokens/xtokensXMT.png',
|
|
215
216
|
coingeckoId: 'metal'
|
|
216
|
-
}, {
|
|
217
|
-
allowSwap: IS_MAINNET,
|
|
218
|
-
allowBridge: false,
|
|
219
|
-
allowLend: false,
|
|
220
|
-
allowBorrow: false,
|
|
221
|
-
name: 'Metal Chain',
|
|
222
|
-
coin: 'METAL',
|
|
223
|
-
xtokenSymbol: 'METAL',
|
|
224
|
-
xtokenPrecision: 8,
|
|
225
|
-
xtokenContract: 'xtokens',
|
|
226
|
-
wallets: [],
|
|
227
|
-
image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
|
|
228
|
-
coingeckoId: ''
|
|
229
217
|
}, {
|
|
230
218
|
allowSwap: true,
|
|
231
219
|
allowBridge: true,
|
|
@@ -934,77 +922,77 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
934
922
|
};
|
|
935
923
|
};
|
|
936
924
|
|
|
937
|
-
var accountParser = /*#__PURE__*/string().regex(/^[.1-5a-z]{0,12}[.1-5a-j]?$/);
|
|
938
|
-
var authorizationParser = /*#__PURE__*/object({
|
|
925
|
+
var accountParser = /*#__PURE__*/z.string().regex(/^[.1-5a-z]{0,12}[.1-5a-j]?$/);
|
|
926
|
+
var authorizationParser = /*#__PURE__*/z.object({
|
|
939
927
|
actor: accountParser,
|
|
940
|
-
permission: /*#__PURE__*/string()
|
|
928
|
+
permission: /*#__PURE__*/z.string()
|
|
941
929
|
});
|
|
942
|
-
var authorizationsParser = /*#__PURE__*/array(authorizationParser).min(1);
|
|
943
|
-
var ExtendedAssetParser = /*#__PURE__*/object({
|
|
944
|
-
quantity: /*#__PURE__*/string(),
|
|
930
|
+
var authorizationsParser = /*#__PURE__*/z.array(authorizationParser).min(1);
|
|
931
|
+
var ExtendedAssetParser = /*#__PURE__*/z.object({
|
|
932
|
+
quantity: /*#__PURE__*/z.string(),
|
|
945
933
|
contract: accountParser
|
|
946
934
|
});
|
|
947
935
|
|
|
948
|
-
var actionParser = /*#__PURE__*/object({
|
|
949
|
-
account: /*#__PURE__*/string(),
|
|
950
|
-
name: /*#__PURE__*/string(),
|
|
951
|
-
authorization: /*#__PURE__*/array( /*#__PURE__*/object({
|
|
952
|
-
actor: /*#__PURE__*/string(),
|
|
953
|
-
permission: /*#__PURE__*/string()
|
|
936
|
+
var actionParser = /*#__PURE__*/z.object({
|
|
937
|
+
account: /*#__PURE__*/z.string(),
|
|
938
|
+
name: /*#__PURE__*/z.string(),
|
|
939
|
+
authorization: /*#__PURE__*/z.array( /*#__PURE__*/z.object({
|
|
940
|
+
actor: /*#__PURE__*/z.string(),
|
|
941
|
+
permission: /*#__PURE__*/z.string()
|
|
954
942
|
})),
|
|
955
|
-
data: /*#__PURE__*/any(),
|
|
956
|
-
hex_data: /*#__PURE__*/string().optional()
|
|
943
|
+
data: /*#__PURE__*/z.any(),
|
|
944
|
+
hex_data: /*#__PURE__*/z.string().optional()
|
|
957
945
|
});
|
|
958
|
-
var transactionExtensionsParser = /*#__PURE__*/array(number().or(string())).optional();
|
|
959
|
-
var rawTransactionParser = /*#__PURE__*/object({
|
|
960
|
-
expiration: /*#__PURE__*/string(),
|
|
961
|
-
ref_block_num: /*#__PURE__*/number(),
|
|
962
|
-
ref_block_prefix: /*#__PURE__*/number(),
|
|
963
|
-
max_net_usage_words: /*#__PURE__*/number(),
|
|
964
|
-
max_cpu_usage_ms: /*#__PURE__*/number(),
|
|
965
|
-
delay_sec: /*#__PURE__*/number(),
|
|
966
|
-
context_free_actions: /*#__PURE__*/array(actionParser),
|
|
967
|
-
transaction_extensions: /*#__PURE__*/array(transactionExtensionsParser)
|
|
946
|
+
var transactionExtensionsParser = /*#__PURE__*/z.array(z.number().or(z.string())).optional();
|
|
947
|
+
var rawTransactionParser = /*#__PURE__*/z.object({
|
|
948
|
+
expiration: /*#__PURE__*/z.string(),
|
|
949
|
+
ref_block_num: /*#__PURE__*/z.number(),
|
|
950
|
+
ref_block_prefix: /*#__PURE__*/z.number(),
|
|
951
|
+
max_net_usage_words: /*#__PURE__*/z.number(),
|
|
952
|
+
max_cpu_usage_ms: /*#__PURE__*/z.number(),
|
|
953
|
+
delay_sec: /*#__PURE__*/z.number(),
|
|
954
|
+
context_free_actions: /*#__PURE__*/z.array(actionParser),
|
|
955
|
+
transaction_extensions: /*#__PURE__*/z.array(transactionExtensionsParser)
|
|
968
956
|
});
|
|
969
957
|
var baseActionParser = function baseActionParser(contract, action, data) {
|
|
970
|
-
return object({
|
|
971
|
-
account: contract === '*' ? accountParser : literal(contract),
|
|
972
|
-
name: literal(action),
|
|
973
|
-
data: object(data),
|
|
958
|
+
return z.object({
|
|
959
|
+
account: contract === '*' ? accountParser : z.literal(contract),
|
|
960
|
+
name: z.literal(action),
|
|
961
|
+
data: z.object(data),
|
|
974
962
|
authorization: authorizationsParser
|
|
975
963
|
});
|
|
976
964
|
};
|
|
977
965
|
var baseActionSerializedParser = function baseActionSerializedParser(contract, action, data) {
|
|
978
|
-
return object({
|
|
979
|
-
account: contract === '*' ? accountParser : literal(contract),
|
|
980
|
-
name: literal(action),
|
|
981
|
-
data: string().or(object(data)),
|
|
966
|
+
return z.object({
|
|
967
|
+
account: contract === '*' ? accountParser : z.literal(contract),
|
|
968
|
+
name: z.literal(action),
|
|
969
|
+
data: z.string().or(z.object(data)),
|
|
982
970
|
authorization: authorizationsParser
|
|
983
971
|
});
|
|
984
972
|
};
|
|
985
973
|
var webauthActionParser = function webauthActionParser(contract, action, data) {
|
|
986
|
-
return object({
|
|
987
|
-
account: literal('webauthn'),
|
|
988
|
-
name: literal('exec'),
|
|
989
|
-
data: object({
|
|
974
|
+
return z.object({
|
|
975
|
+
account: z.literal('webauthn'),
|
|
976
|
+
name: z.literal('exec'),
|
|
977
|
+
data: z.object({
|
|
990
978
|
account: accountParser,
|
|
991
|
-
key: object({
|
|
992
|
-
key: array(string().or(object({
|
|
993
|
-
modulus: string(),
|
|
994
|
-
exponent: string()
|
|
979
|
+
key: z.object({
|
|
980
|
+
key: z.array(z.string().or(z.object({
|
|
981
|
+
modulus: z.string(),
|
|
982
|
+
exponent: z.string()
|
|
995
983
|
}))),
|
|
996
|
-
user_presence: number(),
|
|
997
|
-
rpid: string()
|
|
984
|
+
user_presence: z.number(),
|
|
985
|
+
rpid: z.string()
|
|
998
986
|
}),
|
|
999
|
-
nonce: number(),
|
|
987
|
+
nonce: z.number(),
|
|
1000
988
|
permissions: authorizationsParser,
|
|
1001
|
-
signature: object({
|
|
1002
|
-
auth_data: string(),
|
|
1003
|
-
client_json: string(),
|
|
1004
|
-
signature: string()
|
|
989
|
+
signature: z.object({
|
|
990
|
+
auth_data: z.string(),
|
|
991
|
+
client_json: z.string(),
|
|
992
|
+
signature: z.string()
|
|
1005
993
|
}),
|
|
1006
|
-
trx: rawTransactionParser.merge(object({
|
|
1007
|
-
actions: array(baseActionSerializedParser(contract, action, data)).length(1)
|
|
994
|
+
trx: rawTransactionParser.merge(z.object({
|
|
995
|
+
actions: z.array(baseActionSerializedParser(contract, action, data)).length(1)
|
|
1008
996
|
}))
|
|
1009
997
|
}),
|
|
1010
998
|
authorization: authorizationsParser
|
|
@@ -1013,8 +1001,8 @@ var webauthActionParser = function webauthActionParser(contract, action, data) {
|
|
|
1013
1001
|
var singleActionTransactionParser = function singleActionTransactionParser(contract, action, data) {
|
|
1014
1002
|
var baseAction = baseActionParser(contract, action, data);
|
|
1015
1003
|
var webauthAction = webauthActionParser(contract, action, data);
|
|
1016
|
-
return rawTransactionParser.merge(object({
|
|
1017
|
-
actions: array(baseAction.or(webauthAction)).length(1)
|
|
1004
|
+
return rawTransactionParser.merge(z.object({
|
|
1005
|
+
actions: z.array(baseAction.or(webauthAction)).length(1)
|
|
1018
1006
|
}));
|
|
1019
1007
|
};
|
|
1020
1008
|
|
|
@@ -1036,6 +1024,22 @@ function _extends() {
|
|
|
1036
1024
|
return _extends.apply(this, arguments);
|
|
1037
1025
|
}
|
|
1038
1026
|
|
|
1027
|
+
function _inheritsLoose(subClass, superClass) {
|
|
1028
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
1029
|
+
subClass.prototype.constructor = subClass;
|
|
1030
|
+
|
|
1031
|
+
_setPrototypeOf(subClass, superClass);
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
function _setPrototypeOf(o, p) {
|
|
1035
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
1036
|
+
o.__proto__ = p;
|
|
1037
|
+
return o;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
return _setPrototypeOf(o, p);
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1039
1043
|
function _unsupportedIterableToArray(o, minLen) {
|
|
1040
1044
|
if (!o) return;
|
|
1041
1045
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -1089,6 +1093,7 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1089
1093
|
|
|
1090
1094
|
var constants = {
|
|
1091
1095
|
SWAP_CONTRACT: 'proton.swaps',
|
|
1096
|
+
DEX_CONTRACT: chain === 'proton' ? 'dextest21' : 'dex',
|
|
1092
1097
|
FEE_FACTOR: FEE_FACTOR,
|
|
1093
1098
|
GOOGLE_MAPS_KEY: 'AIzaSyDb2_CrK032kSIqBXbkdwmaLKWELl0SxVs',
|
|
1094
1099
|
SWAP_URL: chain === 'proton' ? 'https://otc.protonswap.com' : 'https://otc-test.protonswap.com',
|
|
@@ -1123,7 +1128,8 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1123
1128
|
WRAP_AUTH_ACTION: WRAP_AUTH_ACTION,
|
|
1124
1129
|
METAL_ENDPOINT: chain === 'proton' ? 'https://cirrus.metalpay.com' : 'https://cirrus-dev.metalpay.com',
|
|
1125
1130
|
METAL_PROTON_ENDPOINT: chain === 'proton' ? 'https://api.protonchain.com' : 'https://api-dev.protonchain.com',
|
|
1126
|
-
|
|
1131
|
+
METAL_DEX_ENDPOINT: chain === 'proton' ? 'https://metallicus-dbapi-dev01.binfra.one' : 'https://metallicus-dbapi-dev01.binfra.one',
|
|
1132
|
+
PROTON_ENDPOINTS: chain === 'proton' ? ['https://metal-proton-rpc.global.binfra.one', 'https://proton.greymass.com', 'https://proton.eoscafeblock.com', 'https://proton.cryptolions.io', 'https://proton.eosusa.news'] : ['https://metal-protontest-rpc.global.binfra.one', 'https://testnet.protonchain.com'],
|
|
1127
1133
|
CHAIN_ID: chain === 'proton' ? '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0' : '71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd',
|
|
1128
1134
|
CHAIN: chain,
|
|
1129
1135
|
SWAP_COINS: swapCoins,
|
|
@@ -1171,57 +1177,57 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1171
1177
|
};
|
|
1172
1178
|
|
|
1173
1179
|
var createAbstractAuthParser = function createAbstractAuthParser(contract, action, data) {
|
|
1174
|
-
return object({
|
|
1180
|
+
return z.object({
|
|
1175
1181
|
signer: authorizationParser,
|
|
1176
|
-
signatures: array(string()).length(1),
|
|
1182
|
+
signatures: z.array(z.string()).length(1),
|
|
1177
1183
|
transaction: singleActionTransactionParser(contract, action, data)
|
|
1178
1184
|
});
|
|
1179
1185
|
};
|
|
1180
1186
|
var generateAuthData = {
|
|
1181
|
-
time: /*#__PURE__*/string(),
|
|
1182
|
-
protonAccount: /*#__PURE__*/string()
|
|
1187
|
+
time: /*#__PURE__*/z.string(),
|
|
1188
|
+
protonAccount: /*#__PURE__*/z.string()
|
|
1183
1189
|
};
|
|
1184
1190
|
var generateAuthParser = /*#__PURE__*/createAbstractAuthParser(WRAP_CONTRACT, WRAP_AUTH_ACTION, generateAuthData);
|
|
1185
1191
|
|
|
1186
|
-
var addressParser = /*#__PURE__*/object({
|
|
1187
|
-
index: /*#__PURE__*/number(),
|
|
1192
|
+
var addressParser = /*#__PURE__*/z.object({
|
|
1193
|
+
index: /*#__PURE__*/z.number(),
|
|
1188
1194
|
account: accountParser,
|
|
1189
|
-
chain: /*#__PURE__*/string(),
|
|
1190
|
-
address: /*#__PURE__*/string(),
|
|
1191
|
-
address_hash: /*#__PURE__*/string()
|
|
1195
|
+
chain: /*#__PURE__*/z.string(),
|
|
1196
|
+
address: /*#__PURE__*/z.string(),
|
|
1197
|
+
address_hash: /*#__PURE__*/z.string()
|
|
1192
1198
|
});
|
|
1193
|
-
var generateAddressBodyParser = /*#__PURE__*/object({
|
|
1194
|
-
coin: string(),
|
|
1195
|
-
wallet: string()
|
|
1199
|
+
var generateAddressBodyParser = /*#__PURE__*/z.object({
|
|
1200
|
+
coin: z.string(),
|
|
1201
|
+
wallet: z.string()
|
|
1196
1202
|
}).merge(generateAuthParser);
|
|
1197
|
-
var generateAddressResponse = /*#__PURE__*/object({
|
|
1198
|
-
id: /*#__PURE__*/string(),
|
|
1199
|
-
address: /*#__PURE__*/string(),
|
|
1200
|
-
coin: /*#__PURE__*/string(),
|
|
1201
|
-
wallet: /*#__PURE__*/string(),
|
|
1202
|
-
memo: /*#__PURE__*/string().optional()
|
|
1203
|
+
var generateAddressResponse = /*#__PURE__*/z.object({
|
|
1204
|
+
id: /*#__PURE__*/z.string(),
|
|
1205
|
+
address: /*#__PURE__*/z.string(),
|
|
1206
|
+
coin: /*#__PURE__*/z.string(),
|
|
1207
|
+
wallet: /*#__PURE__*/z.string(),
|
|
1208
|
+
memo: /*#__PURE__*/z.string().optional()
|
|
1203
1209
|
});
|
|
1204
1210
|
|
|
1205
|
-
var rateParser = /*#__PURE__*/object({
|
|
1206
|
-
counterCurrency: /*#__PURE__*/string(),
|
|
1207
|
-
price: /*#__PURE__*/number(),
|
|
1208
|
-
priceChangePercent: /*#__PURE__*/number(),
|
|
1209
|
-
marketCap: /*#__PURE__*/number(),
|
|
1210
|
-
volume: /*#__PURE__*/number(),
|
|
1211
|
-
timestamp: /*#__PURE__*/number()
|
|
1211
|
+
var rateParser = /*#__PURE__*/z.object({
|
|
1212
|
+
counterCurrency: /*#__PURE__*/z.string(),
|
|
1213
|
+
price: /*#__PURE__*/z.number(),
|
|
1214
|
+
priceChangePercent: /*#__PURE__*/z.number(),
|
|
1215
|
+
marketCap: /*#__PURE__*/z.number(),
|
|
1216
|
+
volume: /*#__PURE__*/z.number(),
|
|
1217
|
+
timestamp: /*#__PURE__*/z.number()
|
|
1212
1218
|
});
|
|
1213
|
-
var exchangeRateParser = /*#__PURE__*/object({
|
|
1214
|
-
contract: /*#__PURE__*/string(),
|
|
1215
|
-
symbol: /*#__PURE__*/string(),
|
|
1216
|
-
rank: /*#__PURE__*/number(),
|
|
1217
|
-
rates: /*#__PURE__*/array(rateParser)
|
|
1219
|
+
var exchangeRateParser = /*#__PURE__*/z.object({
|
|
1220
|
+
contract: /*#__PURE__*/z.string(),
|
|
1221
|
+
symbol: /*#__PURE__*/z.string(),
|
|
1222
|
+
rank: /*#__PURE__*/z.number(),
|
|
1223
|
+
rates: /*#__PURE__*/z.array(rateParser)
|
|
1218
1224
|
});
|
|
1219
|
-
var exchangeRatesParser = /*#__PURE__*/array(exchangeRateParser);
|
|
1220
|
-
var bloksRatesParser = /*#__PURE__*/array( /*#__PURE__*/object({
|
|
1221
|
-
contract: /*#__PURE__*/string(),
|
|
1222
|
-
symbol: /*#__PURE__*/string(),
|
|
1223
|
-
rank: /*#__PURE__*/number(),
|
|
1224
|
-
rates: /*#__PURE__*/array(rateParser)
|
|
1225
|
+
var exchangeRatesParser = /*#__PURE__*/z.array(exchangeRateParser);
|
|
1226
|
+
var bloksRatesParser = /*#__PURE__*/z.array( /*#__PURE__*/z.object({
|
|
1227
|
+
contract: /*#__PURE__*/z.string(),
|
|
1228
|
+
symbol: /*#__PURE__*/z.string(),
|
|
1229
|
+
rank: /*#__PURE__*/z.number(),
|
|
1230
|
+
rates: /*#__PURE__*/z.array(rateParser)
|
|
1225
1231
|
}));
|
|
1226
1232
|
|
|
1227
1233
|
var Type;
|
|
@@ -1231,91 +1237,91 @@ var Type;
|
|
|
1231
1237
|
Type["SEND"] = "send";
|
|
1232
1238
|
})(Type || (Type = {}));
|
|
1233
1239
|
|
|
1234
|
-
var depositBodyParser = /*#__PURE__*/object({
|
|
1235
|
-
id: /*#__PURE__*/string(),
|
|
1236
|
-
type: /*#__PURE__*/nativeEnum(Type),
|
|
1237
|
-
hash: /*#__PURE__*/string(),
|
|
1238
|
-
coin: /*#__PURE__*/string(),
|
|
1239
|
-
wallet: /*#__PURE__*/string() // "ETH-ROPSTEN" or "XPR-MAINNET"
|
|
1240
|
+
var depositBodyParser = /*#__PURE__*/z.object({
|
|
1241
|
+
id: /*#__PURE__*/z.string(),
|
|
1242
|
+
type: /*#__PURE__*/z.nativeEnum(Type),
|
|
1243
|
+
hash: /*#__PURE__*/z.string(),
|
|
1244
|
+
coin: /*#__PURE__*/z.string(),
|
|
1245
|
+
wallet: /*#__PURE__*/z.string() // "ETH-ROPSTEN" or "XPR-MAINNET"
|
|
1240
1246
|
|
|
1241
1247
|
});
|
|
1242
|
-
var transactionParser = /*#__PURE__*/object({
|
|
1243
|
-
id: /*#__PURE__*/string(),
|
|
1244
|
-
wallet: /*#__PURE__*/string(),
|
|
1245
|
-
value: /*#__PURE__*/number(),
|
|
1246
|
-
valueString: /*#__PURE__*/string(),
|
|
1247
|
-
address: /*#__PURE__*/string(),
|
|
1248
|
-
type: /*#__PURE__*/nativeEnum(Type),
|
|
1249
|
-
state: /*#__PURE__*/string(),
|
|
1250
|
-
confirmations: /*#__PURE__*/number(),
|
|
1251
|
-
hash: /*#__PURE__*/string(),
|
|
1252
|
-
blockHash: /*#__PURE__*/string().optional().nullable(),
|
|
1253
|
-
blockHeight: /*#__PURE__*/number().optional().nullable() // 643159
|
|
1248
|
+
var transactionParser = /*#__PURE__*/z.object({
|
|
1249
|
+
id: /*#__PURE__*/z.string(),
|
|
1250
|
+
wallet: /*#__PURE__*/z.string(),
|
|
1251
|
+
value: /*#__PURE__*/z.number(),
|
|
1252
|
+
valueString: /*#__PURE__*/z.string(),
|
|
1253
|
+
address: /*#__PURE__*/z.string(),
|
|
1254
|
+
type: /*#__PURE__*/z.nativeEnum(Type),
|
|
1255
|
+
state: /*#__PURE__*/z.string(),
|
|
1256
|
+
confirmations: /*#__PURE__*/z.number(),
|
|
1257
|
+
hash: /*#__PURE__*/z.string(),
|
|
1258
|
+
blockHash: /*#__PURE__*/z.string().optional().nullable(),
|
|
1259
|
+
blockHeight: /*#__PURE__*/z.number().optional().nullable() // 643159
|
|
1254
1260
|
|
|
1255
1261
|
});
|
|
1256
1262
|
|
|
1257
|
-
var otcOrderResponseParser = /*#__PURE__*/object({
|
|
1258
|
-
success: /*#__PURE__*/boolean(),
|
|
1259
|
-
transaction_id: /*#__PURE__*/string(),
|
|
1260
|
-
errormsg: /*#__PURE__*/string().optional()
|
|
1263
|
+
var otcOrderResponseParser = /*#__PURE__*/z.object({
|
|
1264
|
+
success: /*#__PURE__*/z["boolean"](),
|
|
1265
|
+
transaction_id: /*#__PURE__*/z.string(),
|
|
1266
|
+
errormsg: /*#__PURE__*/z.string().optional()
|
|
1261
1267
|
});
|
|
1262
|
-
var otcQuoteBodyParser = /*#__PURE__*/object({
|
|
1263
|
-
baseAmount: /*#__PURE__*/number(),
|
|
1264
|
-
baseSymbol: /*#__PURE__*/string(),
|
|
1265
|
-
quoteSymbol: /*#__PURE__*/string()
|
|
1268
|
+
var otcQuoteBodyParser = /*#__PURE__*/z.object({
|
|
1269
|
+
baseAmount: /*#__PURE__*/z.number(),
|
|
1270
|
+
baseSymbol: /*#__PURE__*/z.string(),
|
|
1271
|
+
quoteSymbol: /*#__PURE__*/z.string()
|
|
1266
1272
|
});
|
|
1267
|
-
var otcQuoteResponseParser = /*#__PURE__*/object({
|
|
1268
|
-
success: /*#__PURE__*/boolean(),
|
|
1269
|
-
token: /*#__PURE__*/string(),
|
|
1270
|
-
qty: /*#__PURE__*/number(),
|
|
1271
|
-
errormsg: /*#__PURE__*/string().optional()
|
|
1273
|
+
var otcQuoteResponseParser = /*#__PURE__*/z.object({
|
|
1274
|
+
success: /*#__PURE__*/z["boolean"](),
|
|
1275
|
+
token: /*#__PURE__*/z.string(),
|
|
1276
|
+
qty: /*#__PURE__*/z.number(),
|
|
1277
|
+
errormsg: /*#__PURE__*/z.string().optional()
|
|
1272
1278
|
});
|
|
1273
1279
|
|
|
1274
1280
|
var withdrawData = {
|
|
1275
|
-
from: /*#__PURE__*/string().refine(function (val) {
|
|
1281
|
+
from: /*#__PURE__*/z.string().refine(function (val) {
|
|
1276
1282
|
return val !== WRAP_CONTRACT;
|
|
1277
1283
|
}, {
|
|
1278
1284
|
message: WRAP_CONTRACT + " must be receiver"
|
|
1279
1285
|
}),
|
|
1280
|
-
to: /*#__PURE__*/literal(WRAP_CONTRACT),
|
|
1281
|
-
quantity: /*#__PURE__*/string(),
|
|
1282
|
-
memo: /*#__PURE__*/string()
|
|
1286
|
+
to: /*#__PURE__*/z.literal(WRAP_CONTRACT),
|
|
1287
|
+
quantity: /*#__PURE__*/z.string(),
|
|
1288
|
+
memo: /*#__PURE__*/z.string()
|
|
1283
1289
|
};
|
|
1284
|
-
var withdrawBodyParser = /*#__PURE__*/object({
|
|
1290
|
+
var withdrawBodyParser = /*#__PURE__*/z.object({
|
|
1285
1291
|
signer: authorizationParser,
|
|
1286
|
-
signatures: /*#__PURE__*/array(string()).length(1),
|
|
1292
|
+
signatures: /*#__PURE__*/z.array(z.string()).length(1),
|
|
1287
1293
|
transaction: /*#__PURE__*/singleActionTransactionParser('*', 'transfer', withdrawData),
|
|
1288
|
-
quoteId: /*#__PURE__*/string(),
|
|
1289
|
-
provider: /*#__PURE__*/string().optional()
|
|
1294
|
+
quoteId: /*#__PURE__*/z.string(),
|
|
1295
|
+
provider: /*#__PURE__*/z.string().optional()
|
|
1290
1296
|
});
|
|
1291
|
-
var withdrawMetalResponseParser = /*#__PURE__*/object({
|
|
1292
|
-
success: /*#__PURE__*/boolean(),
|
|
1293
|
-
id: /*#__PURE__*/string()
|
|
1297
|
+
var withdrawMetalResponseParser = /*#__PURE__*/z.object({
|
|
1298
|
+
success: /*#__PURE__*/z["boolean"](),
|
|
1299
|
+
id: /*#__PURE__*/z.string()
|
|
1294
1300
|
});
|
|
1295
|
-
var withdrawalFeeQuoteParser = /*#__PURE__*/object({
|
|
1296
|
-
quoteId: /*#__PURE__*/string(),
|
|
1297
|
-
estimatedFee: /*#__PURE__*/string(),
|
|
1298
|
-
currency: /*#__PURE__*/string(),
|
|
1299
|
-
network: /*#__PURE__*/string()
|
|
1301
|
+
var withdrawalFeeQuoteParser = /*#__PURE__*/z.object({
|
|
1302
|
+
quoteId: /*#__PURE__*/z.string(),
|
|
1303
|
+
estimatedFee: /*#__PURE__*/z.string(),
|
|
1304
|
+
currency: /*#__PURE__*/z.string(),
|
|
1305
|
+
network: /*#__PURE__*/z.string()
|
|
1300
1306
|
});
|
|
1301
1307
|
|
|
1302
|
-
var withdrawHistoryMetalSwapParser = /*#__PURE__*/object({
|
|
1303
|
-
id: /*#__PURE__*/string(),
|
|
1304
|
-
status: /*#__PURE__*/string(),
|
|
1305
|
-
amount: /*#__PURE__*/string(),
|
|
1306
|
-
currency: /*#__PURE__*/string(),
|
|
1307
|
-
network: /*#__PURE__*/string(),
|
|
1308
|
-
created: /*#__PURE__*/string(),
|
|
1309
|
-
withdrawalAddress: /*#__PURE__*/string(),
|
|
1310
|
-
withdrawalHash: /*#__PURE__*/string().optional()
|
|
1308
|
+
var withdrawHistoryMetalSwapParser = /*#__PURE__*/z.object({
|
|
1309
|
+
id: /*#__PURE__*/z.string(),
|
|
1310
|
+
status: /*#__PURE__*/z.string(),
|
|
1311
|
+
amount: /*#__PURE__*/z.string(),
|
|
1312
|
+
currency: /*#__PURE__*/z.string(),
|
|
1313
|
+
network: /*#__PURE__*/z.string(),
|
|
1314
|
+
created: /*#__PURE__*/z.string(),
|
|
1315
|
+
withdrawalAddress: /*#__PURE__*/z.string(),
|
|
1316
|
+
withdrawalHash: /*#__PURE__*/z.string().optional()
|
|
1311
1317
|
});
|
|
1312
|
-
var withdrawHistoryMetalResponseParser = /*#__PURE__*/object({
|
|
1313
|
-
swaps: /*#__PURE__*/array(withdrawHistoryMetalSwapParser),
|
|
1314
|
-
page: /*#__PURE__*/number(),
|
|
1315
|
-
pageSize: /*#__PURE__*/number(),
|
|
1316
|
-
numberOfElements: /*#__PURE__*/number(),
|
|
1317
|
-
totalPages: /*#__PURE__*/number(),
|
|
1318
|
-
totalElements: /*#__PURE__*/number()
|
|
1318
|
+
var withdrawHistoryMetalResponseParser = /*#__PURE__*/z.object({
|
|
1319
|
+
swaps: /*#__PURE__*/z.array(withdrawHistoryMetalSwapParser),
|
|
1320
|
+
page: /*#__PURE__*/z.number(),
|
|
1321
|
+
pageSize: /*#__PURE__*/z.number(),
|
|
1322
|
+
numberOfElements: /*#__PURE__*/z.number(),
|
|
1323
|
+
totalPages: /*#__PURE__*/z.number(),
|
|
1324
|
+
totalElements: /*#__PURE__*/z.number()
|
|
1319
1325
|
});
|
|
1320
1326
|
|
|
1321
1327
|
var Status;
|
|
@@ -1327,31 +1333,212 @@ var Status;
|
|
|
1327
1333
|
Status["PROCESSING"] = "processing";
|
|
1328
1334
|
})(Status || (Status = {}));
|
|
1329
1335
|
|
|
1330
|
-
var wrapStartParser = /*#__PURE__*/object({
|
|
1336
|
+
var wrapStartParser = /*#__PURE__*/z.object({
|
|
1331
1337
|
balance: ExtendedAssetParser,
|
|
1332
|
-
id: /*#__PURE__*/string(),
|
|
1333
|
-
txid: /*#__PURE__*/string(),
|
|
1334
|
-
chain: /*#__PURE__*/string(),
|
|
1335
|
-
deposit_address: /*#__PURE__*/string(),
|
|
1336
|
-
confirmations: /*#__PURE__*/number()
|
|
1338
|
+
id: /*#__PURE__*/z.string(),
|
|
1339
|
+
txid: /*#__PURE__*/z.string(),
|
|
1340
|
+
chain: /*#__PURE__*/z.string(),
|
|
1341
|
+
deposit_address: /*#__PURE__*/z.string(),
|
|
1342
|
+
confirmations: /*#__PURE__*/z.number()
|
|
1337
1343
|
});
|
|
1338
|
-
var wrapSetConfParser = /*#__PURE__*/object({
|
|
1339
|
-
wrap_hash: /*#__PURE__*/string(),
|
|
1340
|
-
confirmations: /*#__PURE__*/number()
|
|
1344
|
+
var wrapSetConfParser = /*#__PURE__*/z.object({
|
|
1345
|
+
wrap_hash: /*#__PURE__*/z.string(),
|
|
1346
|
+
confirmations: /*#__PURE__*/z.number()
|
|
1341
1347
|
});
|
|
1342
|
-
var wrapParser = /*#__PURE__*/object({
|
|
1343
|
-
index: /*#__PURE__*/number(),
|
|
1344
|
-
proton_account: /*#__PURE__*/string(),
|
|
1348
|
+
var wrapParser = /*#__PURE__*/z.object({
|
|
1349
|
+
index: /*#__PURE__*/z.number(),
|
|
1350
|
+
proton_account: /*#__PURE__*/z.string(),
|
|
1345
1351
|
balance: ExtendedAssetParser,
|
|
1346
|
-
id: /*#__PURE__*/string(),
|
|
1347
|
-
txid: /*#__PURE__*/string(),
|
|
1348
|
-
chain: /*#__PURE__*/string(),
|
|
1349
|
-
deposit_address: /*#__PURE__*/string(),
|
|
1350
|
-
status: /*#__PURE__*/nativeEnum(Status),
|
|
1351
|
-
finish_txid: /*#__PURE__*/string(),
|
|
1352
|
-
wrap_hash: /*#__PURE__*/string(),
|
|
1353
|
-
confirmations: /*#__PURE__*/number()
|
|
1352
|
+
id: /*#__PURE__*/z.string(),
|
|
1353
|
+
txid: /*#__PURE__*/z.string(),
|
|
1354
|
+
chain: /*#__PURE__*/z.string(),
|
|
1355
|
+
deposit_address: /*#__PURE__*/z.string(),
|
|
1356
|
+
status: /*#__PURE__*/z.nativeEnum(Status),
|
|
1357
|
+
finish_txid: /*#__PURE__*/z.string(),
|
|
1358
|
+
wrap_hash: /*#__PURE__*/z.string(),
|
|
1359
|
+
confirmations: /*#__PURE__*/z.number()
|
|
1360
|
+
});
|
|
1361
|
+
|
|
1362
|
+
var numTransform = /*#__PURE__*/z.string().regex(/\d+/).transform(Number);
|
|
1363
|
+
var ohlcvParser = /*#__PURE__*/z.object({
|
|
1364
|
+
time: /*#__PURE__*/z.number(),
|
|
1365
|
+
open: /*#__PURE__*/z.number(),
|
|
1366
|
+
high: /*#__PURE__*/z.number(),
|
|
1367
|
+
low: /*#__PURE__*/z.number(),
|
|
1368
|
+
close: /*#__PURE__*/z.number(),
|
|
1369
|
+
volume: /*#__PURE__*/z.number(),
|
|
1370
|
+
volume_bid: /*#__PURE__*/z.number(),
|
|
1371
|
+
count: /*#__PURE__*/z.number()
|
|
1372
|
+
});
|
|
1373
|
+
var OHLCV_DTO = /*#__PURE__*/function (_createZodDto) {
|
|
1374
|
+
_inheritsLoose(OHLCV_DTO, _createZodDto);
|
|
1375
|
+
|
|
1376
|
+
function OHLCV_DTO() {
|
|
1377
|
+
return _createZodDto.apply(this, arguments) || this;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
return OHLCV_DTO;
|
|
1381
|
+
}( /*#__PURE__*/createZodDto(ohlcvParser));
|
|
1382
|
+
var getOhlcvParser = /*#__PURE__*/z.object({
|
|
1383
|
+
interval: /*#__PURE__*/z.string(),
|
|
1384
|
+
dateFrom: /*#__PURE__*/z.string(),
|
|
1385
|
+
dateTo: /*#__PURE__*/z.string(),
|
|
1386
|
+
marketId: /*#__PURE__*/z.number().or(numTransform),
|
|
1387
|
+
limit: /*#__PURE__*/z.number().or(numTransform)["default"](500).refine(function (n) {
|
|
1388
|
+
return n <= 1000;
|
|
1389
|
+
}, 'Max limit is 1000')
|
|
1390
|
+
});
|
|
1391
|
+
var GetOHLCV_DTO = /*#__PURE__*/function (_createZodDto2) {
|
|
1392
|
+
_inheritsLoose(GetOHLCV_DTO, _createZodDto2);
|
|
1393
|
+
|
|
1394
|
+
function GetOHLCV_DTO() {
|
|
1395
|
+
return _createZodDto2.apply(this, arguments) || this;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
return GetOHLCV_DTO;
|
|
1399
|
+
}( /*#__PURE__*/createZodDto(getOhlcvParser));
|
|
1400
|
+
var orderHistoryParser = /*#__PURE__*/z.object({
|
|
1401
|
+
seq: /*#__PURE__*/z.number(),
|
|
1402
|
+
block_num: /*#__PURE__*/z.number(),
|
|
1403
|
+
block_time: /*#__PURE__*/z.string(),
|
|
1404
|
+
order_id: /*#__PURE__*/z.number(),
|
|
1405
|
+
market_id: /*#__PURE__*/z.number(),
|
|
1406
|
+
quantity_init: /*#__PURE__*/z.number().optional(),
|
|
1407
|
+
quantity_curr: /*#__PURE__*/z.number(),
|
|
1408
|
+
price: /*#__PURE__*/z.number(),
|
|
1409
|
+
account_name: /*#__PURE__*/z.string(),
|
|
1410
|
+
order_side: /*#__PURE__*/z.number(),
|
|
1411
|
+
order_type: /*#__PURE__*/z.number(),
|
|
1412
|
+
status: /*#__PURE__*/z.string(),
|
|
1413
|
+
quantity_change: /*#__PURE__*/z.number(),
|
|
1414
|
+
trx_id: /*#__PURE__*/z.string()
|
|
1415
|
+
});
|
|
1416
|
+
var OrderHistory_DTO = /*#__PURE__*/function (_createZodDto3) {
|
|
1417
|
+
_inheritsLoose(OrderHistory_DTO, _createZodDto3);
|
|
1418
|
+
|
|
1419
|
+
function OrderHistory_DTO() {
|
|
1420
|
+
return _createZodDto3.apply(this, arguments) || this;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
return OrderHistory_DTO;
|
|
1424
|
+
}( /*#__PURE__*/createZodDto(orderHistoryParser));
|
|
1425
|
+
var getOrderHistoryParser = /*#__PURE__*/z.object({
|
|
1426
|
+
account: /*#__PURE__*/z.string(),
|
|
1427
|
+
offset: /*#__PURE__*/z.number().or(numTransform)["default"](0),
|
|
1428
|
+
limit: /*#__PURE__*/z.number().or(numTransform)["default"](100).refine(function (n) {
|
|
1429
|
+
return n <= 250;
|
|
1430
|
+
}, 'Max limit is 250')
|
|
1431
|
+
});
|
|
1432
|
+
var GetOrderHistory_DTO = /*#__PURE__*/function (_createZodDto4) {
|
|
1433
|
+
_inheritsLoose(GetOrderHistory_DTO, _createZodDto4);
|
|
1434
|
+
|
|
1435
|
+
function GetOrderHistory_DTO() {
|
|
1436
|
+
return _createZodDto4.apply(this, arguments) || this;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
return GetOrderHistory_DTO;
|
|
1440
|
+
}( /*#__PURE__*/createZodDto(getOrderHistoryParser));
|
|
1441
|
+
var depthParser = /*#__PURE__*/z.object({
|
|
1442
|
+
level: /*#__PURE__*/z.number(),
|
|
1443
|
+
ask: /*#__PURE__*/z.number(),
|
|
1444
|
+
bid: /*#__PURE__*/z.number(),
|
|
1445
|
+
count: /*#__PURE__*/z.number()
|
|
1354
1446
|
});
|
|
1447
|
+
var Depth_DTO = /*#__PURE__*/function (_createZodDto5) {
|
|
1448
|
+
_inheritsLoose(Depth_DTO, _createZodDto5);
|
|
1449
|
+
|
|
1450
|
+
function Depth_DTO() {
|
|
1451
|
+
return _createZodDto5.apply(this, arguments) || this;
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
return Depth_DTO;
|
|
1455
|
+
}( /*#__PURE__*/createZodDto(depthParser));
|
|
1456
|
+
var getDepthParser = /*#__PURE__*/z.object({
|
|
1457
|
+
marketId: /*#__PURE__*/z.number(),
|
|
1458
|
+
step: /*#__PURE__*/z.string(),
|
|
1459
|
+
side: /*#__PURE__*/z.string(),
|
|
1460
|
+
limit: /*#__PURE__*/z.number().or(numTransform)["default"](100).refine(function (n) {
|
|
1461
|
+
return n <= 250;
|
|
1462
|
+
}, 'Max limit is 250')
|
|
1463
|
+
});
|
|
1464
|
+
var GetDepth_DTO = /*#__PURE__*/function (_createZodDto6) {
|
|
1465
|
+
_inheritsLoose(GetDepth_DTO, _createZodDto6);
|
|
1466
|
+
|
|
1467
|
+
function GetDepth_DTO() {
|
|
1468
|
+
return _createZodDto6.apply(this, arguments) || this;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
return GetDepth_DTO;
|
|
1472
|
+
}( /*#__PURE__*/createZodDto(getDepthParser));
|
|
1473
|
+
var tradeParser = /*#__PURE__*/z.object({
|
|
1474
|
+
block_num: /*#__PURE__*/z.number(),
|
|
1475
|
+
block_time: /*#__PURE__*/z.string(),
|
|
1476
|
+
trade_id: /*#__PURE__*/z.number(),
|
|
1477
|
+
market_id: /*#__PURE__*/z.number(),
|
|
1478
|
+
price: /*#__PURE__*/z.number(),
|
|
1479
|
+
bid_user: /*#__PURE__*/z.string(),
|
|
1480
|
+
bid_user_order_id: /*#__PURE__*/z.number(),
|
|
1481
|
+
bid_amount: /*#__PURE__*/z.number(),
|
|
1482
|
+
bid_fee: /*#__PURE__*/z.number(),
|
|
1483
|
+
ask_user: /*#__PURE__*/z.string(),
|
|
1484
|
+
ask_user_order_id: /*#__PURE__*/z.number(),
|
|
1485
|
+
ask_amount: /*#__PURE__*/z.number(),
|
|
1486
|
+
ask_fee: /*#__PURE__*/z.number(),
|
|
1487
|
+
order_side: /*#__PURE__*/z.number(),
|
|
1488
|
+
trx_id: /*#__PURE__*/z.string()
|
|
1489
|
+
});
|
|
1490
|
+
var Trade_DTO = /*#__PURE__*/function (_createZodDto7) {
|
|
1491
|
+
_inheritsLoose(Trade_DTO, _createZodDto7);
|
|
1492
|
+
|
|
1493
|
+
function Trade_DTO() {
|
|
1494
|
+
return _createZodDto7.apply(this, arguments) || this;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
return Trade_DTO;
|
|
1498
|
+
}( /*#__PURE__*/createZodDto(tradeParser));
|
|
1499
|
+
var getTradesParser = /*#__PURE__*/z.object({
|
|
1500
|
+
marketId: /*#__PURE__*/z.number().or(numTransform),
|
|
1501
|
+
offset: /*#__PURE__*/z.number().or(numTransform)["default"](0),
|
|
1502
|
+
limit: /*#__PURE__*/z.number().or(numTransform)["default"](100).refine(function (n) {
|
|
1503
|
+
return n <= 250;
|
|
1504
|
+
}, 'Max limit is 250')
|
|
1505
|
+
});
|
|
1506
|
+
var GetTrades_DTO = /*#__PURE__*/function (_createZodDto8) {
|
|
1507
|
+
_inheritsLoose(GetTrades_DTO, _createZodDto8);
|
|
1508
|
+
|
|
1509
|
+
function GetTrades_DTO() {
|
|
1510
|
+
return _createZodDto8.apply(this, arguments) || this;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
return GetTrades_DTO;
|
|
1514
|
+
}( /*#__PURE__*/createZodDto(getTradesParser));
|
|
1515
|
+
var orderType;
|
|
1516
|
+
|
|
1517
|
+
(function (orderType) {
|
|
1518
|
+
orderType[orderType["INVALID"] = 0] = "INVALID";
|
|
1519
|
+
orderType[orderType["MARKET"] = 1] = "MARKET";
|
|
1520
|
+
orderType[orderType["LIMIT"] = 2] = "LIMIT";
|
|
1521
|
+
orderType[orderType["STOPLOSS"] = 3] = "STOPLOSS";
|
|
1522
|
+
orderType[orderType["TAKEPROFIT"] = 4] = "TAKEPROFIT";
|
|
1523
|
+
})(orderType || (orderType = {}));
|
|
1524
|
+
|
|
1525
|
+
var orderSide;
|
|
1526
|
+
|
|
1527
|
+
(function (orderSide) {
|
|
1528
|
+
orderSide[orderSide["INVALID"] = 0] = "INVALID";
|
|
1529
|
+
orderSide[orderSide["BUY"] = 1] = "BUY";
|
|
1530
|
+
orderSide[orderSide["SELL"] = 2] = "SELL";
|
|
1531
|
+
})(orderSide || (orderSide = {}));
|
|
1532
|
+
|
|
1533
|
+
var logStatus;
|
|
1534
|
+
|
|
1535
|
+
(function (logStatus) {
|
|
1536
|
+
logStatus["CREATE"] = "create";
|
|
1537
|
+
logStatus["UPDATE"] = "update";
|
|
1538
|
+
logStatus["TRANSFER"] = "transfer";
|
|
1539
|
+
logStatus["CANCEL"] = "cancel";
|
|
1540
|
+
logStatus["DELETE"] = "delete";
|
|
1541
|
+
})(logStatus || (logStatus = {}));
|
|
1355
1542
|
|
|
1356
1543
|
var isSameToken = function isSameToken(token1, token2) {
|
|
1357
1544
|
return token1.xtokenSymbol === token2.xtokenSymbol && token1.xtokenPrecision === token2.xtokenPrecision && token1.xtokenContract === token2.xtokenContract;
|
|
@@ -1649,5 +1836,5 @@ var applyDiscountToFee = function applyDiscountToFee(fee, staked) {
|
|
|
1649
1836
|
}
|
|
1650
1837
|
};
|
|
1651
1838
|
|
|
1652
|
-
export { Chains, ExtendedAssetParser, FEE_FACTOR, Graph, ILink, INode, Networks, Status, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, accountParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, depositBodyParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, generateAddressBodyParser, generateAddressResponse, generateAuthParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, median, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, similarChains, singleActionTransactionParser, transactionParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
|
1839
|
+
export { Chains, Depth_DTO, ExtendedAssetParser, FEE_FACTOR, GetDepth_DTO, GetOHLCV_DTO, GetOrderHistory_DTO, GetTrades_DTO, Graph, ILink, INode, Networks, OHLCV_DTO, OrderHistory_DTO, Status, Trade_DTO, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, accountParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, depositBodyParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, generateAddressBodyParser, generateAddressResponse, generateAuthParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, logStatus, median, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, similarChains, singleActionTransactionParser, transactionParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
|
1653
1840
|
//# sourceMappingURL=wrap-constants.esm.js.map
|