@proton/wrap-constants 0.0.83 → 0.1.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 +375 -172
- 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 +373 -173
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +3 -3
- 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
|
|
|
@@ -921,77 +922,77 @@ var initializeCoins = function initializeCoins(protonChain) {
|
|
|
921
922
|
};
|
|
922
923
|
};
|
|
923
924
|
|
|
924
|
-
var accountParser = /*#__PURE__*/string().regex(/^[.1-5a-z]{0,12}[.1-5a-j]?$/);
|
|
925
|
-
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({
|
|
926
927
|
actor: accountParser,
|
|
927
|
-
permission: /*#__PURE__*/string()
|
|
928
|
+
permission: /*#__PURE__*/z.string()
|
|
928
929
|
});
|
|
929
|
-
var authorizationsParser = /*#__PURE__*/array(authorizationParser).min(1);
|
|
930
|
-
var ExtendedAssetParser = /*#__PURE__*/object({
|
|
931
|
-
quantity: /*#__PURE__*/string(),
|
|
930
|
+
var authorizationsParser = /*#__PURE__*/z.array(authorizationParser).min(1);
|
|
931
|
+
var ExtendedAssetParser = /*#__PURE__*/z.object({
|
|
932
|
+
quantity: /*#__PURE__*/z.string(),
|
|
932
933
|
contract: accountParser
|
|
933
934
|
});
|
|
934
935
|
|
|
935
|
-
var actionParser = /*#__PURE__*/object({
|
|
936
|
-
account: /*#__PURE__*/string(),
|
|
937
|
-
name: /*#__PURE__*/string(),
|
|
938
|
-
authorization: /*#__PURE__*/array( /*#__PURE__*/object({
|
|
939
|
-
actor: /*#__PURE__*/string(),
|
|
940
|
-
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()
|
|
941
942
|
})),
|
|
942
|
-
data: /*#__PURE__*/any(),
|
|
943
|
-
hex_data: /*#__PURE__*/string().optional()
|
|
943
|
+
data: /*#__PURE__*/z.any(),
|
|
944
|
+
hex_data: /*#__PURE__*/z.string().optional()
|
|
944
945
|
});
|
|
945
|
-
var transactionExtensionsParser = /*#__PURE__*/array(number().or(string())).optional();
|
|
946
|
-
var rawTransactionParser = /*#__PURE__*/object({
|
|
947
|
-
expiration: /*#__PURE__*/string(),
|
|
948
|
-
ref_block_num: /*#__PURE__*/number(),
|
|
949
|
-
ref_block_prefix: /*#__PURE__*/number(),
|
|
950
|
-
max_net_usage_words: /*#__PURE__*/number(),
|
|
951
|
-
max_cpu_usage_ms: /*#__PURE__*/number(),
|
|
952
|
-
delay_sec: /*#__PURE__*/number(),
|
|
953
|
-
context_free_actions: /*#__PURE__*/array(actionParser),
|
|
954
|
-
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)
|
|
955
956
|
});
|
|
956
957
|
var baseActionParser = function baseActionParser(contract, action, data) {
|
|
957
|
-
return object({
|
|
958
|
-
account: contract === '*' ? accountParser : literal(contract),
|
|
959
|
-
name: literal(action),
|
|
960
|
-
data: object(data),
|
|
958
|
+
return z.object({
|
|
959
|
+
account: contract === '*' ? accountParser : z.literal(contract),
|
|
960
|
+
name: z.literal(action),
|
|
961
|
+
data: z.object(data),
|
|
961
962
|
authorization: authorizationsParser
|
|
962
963
|
});
|
|
963
964
|
};
|
|
964
965
|
var baseActionSerializedParser = function baseActionSerializedParser(contract, action, data) {
|
|
965
|
-
return object({
|
|
966
|
-
account: contract === '*' ? accountParser : literal(contract),
|
|
967
|
-
name: literal(action),
|
|
968
|
-
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)),
|
|
969
970
|
authorization: authorizationsParser
|
|
970
971
|
});
|
|
971
972
|
};
|
|
972
973
|
var webauthActionParser = function webauthActionParser(contract, action, data) {
|
|
973
|
-
return object({
|
|
974
|
-
account: literal('webauthn'),
|
|
975
|
-
name: literal('exec'),
|
|
976
|
-
data: object({
|
|
974
|
+
return z.object({
|
|
975
|
+
account: z.literal('webauthn'),
|
|
976
|
+
name: z.literal('exec'),
|
|
977
|
+
data: z.object({
|
|
977
978
|
account: accountParser,
|
|
978
|
-
key: object({
|
|
979
|
-
key: array(string().or(object({
|
|
980
|
-
modulus: string(),
|
|
981
|
-
exponent: string()
|
|
979
|
+
key: z.object({
|
|
980
|
+
key: z.array(z.string().or(z.object({
|
|
981
|
+
modulus: z.string(),
|
|
982
|
+
exponent: z.string()
|
|
982
983
|
}))),
|
|
983
|
-
user_presence: number(),
|
|
984
|
-
rpid: string()
|
|
984
|
+
user_presence: z.number(),
|
|
985
|
+
rpid: z.string()
|
|
985
986
|
}),
|
|
986
|
-
nonce: number(),
|
|
987
|
+
nonce: z.number(),
|
|
987
988
|
permissions: authorizationsParser,
|
|
988
|
-
signature: object({
|
|
989
|
-
auth_data: string(),
|
|
990
|
-
client_json: string(),
|
|
991
|
-
signature: string()
|
|
989
|
+
signature: z.object({
|
|
990
|
+
auth_data: z.string(),
|
|
991
|
+
client_json: z.string(),
|
|
992
|
+
signature: z.string()
|
|
992
993
|
}),
|
|
993
|
-
trx: rawTransactionParser.merge(object({
|
|
994
|
-
actions: array(baseActionSerializedParser(contract, action, data)).length(1)
|
|
994
|
+
trx: rawTransactionParser.merge(z.object({
|
|
995
|
+
actions: z.array(baseActionSerializedParser(contract, action, data)).length(1)
|
|
995
996
|
}))
|
|
996
997
|
}),
|
|
997
998
|
authorization: authorizationsParser
|
|
@@ -1000,8 +1001,8 @@ var webauthActionParser = function webauthActionParser(contract, action, data) {
|
|
|
1000
1001
|
var singleActionTransactionParser = function singleActionTransactionParser(contract, action, data) {
|
|
1001
1002
|
var baseAction = baseActionParser(contract, action, data);
|
|
1002
1003
|
var webauthAction = webauthActionParser(contract, action, data);
|
|
1003
|
-
return rawTransactionParser.merge(object({
|
|
1004
|
-
actions: array(baseAction.or(webauthAction)).length(1)
|
|
1004
|
+
return rawTransactionParser.merge(z.object({
|
|
1005
|
+
actions: z.array(baseAction.or(webauthAction)).length(1)
|
|
1005
1006
|
}));
|
|
1006
1007
|
};
|
|
1007
1008
|
|
|
@@ -1023,6 +1024,22 @@ function _extends() {
|
|
|
1023
1024
|
return _extends.apply(this, arguments);
|
|
1024
1025
|
}
|
|
1025
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
|
+
|
|
1026
1043
|
function _unsupportedIterableToArray(o, minLen) {
|
|
1027
1044
|
if (!o) return;
|
|
1028
1045
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -1076,6 +1093,7 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1076
1093
|
|
|
1077
1094
|
var constants = {
|
|
1078
1095
|
SWAP_CONTRACT: 'proton.swaps',
|
|
1096
|
+
DEX_CONTRACT: chain === 'proton' ? 'dextest21' : 'dex',
|
|
1079
1097
|
FEE_FACTOR: FEE_FACTOR,
|
|
1080
1098
|
GOOGLE_MAPS_KEY: 'AIzaSyDb2_CrK032kSIqBXbkdwmaLKWELl0SxVs',
|
|
1081
1099
|
SWAP_URL: chain === 'proton' ? 'https://otc.protonswap.com' : 'https://otc-test.protonswap.com',
|
|
@@ -1110,7 +1128,8 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1110
1128
|
WRAP_AUTH_ACTION: WRAP_AUTH_ACTION,
|
|
1111
1129
|
METAL_ENDPOINT: chain === 'proton' ? 'https://cirrus.metalpay.com' : 'https://cirrus-dev.metalpay.com',
|
|
1112
1130
|
METAL_PROTON_ENDPOINT: chain === 'proton' ? 'https://api.protonchain.com' : 'https://api-dev.protonchain.com',
|
|
1113
|
-
|
|
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'],
|
|
1114
1133
|
CHAIN_ID: chain === 'proton' ? '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0' : '71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd',
|
|
1115
1134
|
CHAIN: chain,
|
|
1116
1135
|
SWAP_COINS: swapCoins,
|
|
@@ -1158,57 +1177,57 @@ var initializeConstants = function initializeConstants(chain) {
|
|
|
1158
1177
|
};
|
|
1159
1178
|
|
|
1160
1179
|
var createAbstractAuthParser = function createAbstractAuthParser(contract, action, data) {
|
|
1161
|
-
return object({
|
|
1180
|
+
return z.object({
|
|
1162
1181
|
signer: authorizationParser,
|
|
1163
|
-
signatures: array(string()).length(1),
|
|
1182
|
+
signatures: z.array(z.string()).length(1),
|
|
1164
1183
|
transaction: singleActionTransactionParser(contract, action, data)
|
|
1165
1184
|
});
|
|
1166
1185
|
};
|
|
1167
1186
|
var generateAuthData = {
|
|
1168
|
-
time: /*#__PURE__*/string(),
|
|
1169
|
-
protonAccount: /*#__PURE__*/string()
|
|
1187
|
+
time: /*#__PURE__*/z.string(),
|
|
1188
|
+
protonAccount: /*#__PURE__*/z.string()
|
|
1170
1189
|
};
|
|
1171
1190
|
var generateAuthParser = /*#__PURE__*/createAbstractAuthParser(WRAP_CONTRACT, WRAP_AUTH_ACTION, generateAuthData);
|
|
1172
1191
|
|
|
1173
|
-
var addressParser = /*#__PURE__*/object({
|
|
1174
|
-
index: /*#__PURE__*/number(),
|
|
1192
|
+
var addressParser = /*#__PURE__*/z.object({
|
|
1193
|
+
index: /*#__PURE__*/z.number(),
|
|
1175
1194
|
account: accountParser,
|
|
1176
|
-
chain: /*#__PURE__*/string(),
|
|
1177
|
-
address: /*#__PURE__*/string(),
|
|
1178
|
-
address_hash: /*#__PURE__*/string()
|
|
1195
|
+
chain: /*#__PURE__*/z.string(),
|
|
1196
|
+
address: /*#__PURE__*/z.string(),
|
|
1197
|
+
address_hash: /*#__PURE__*/z.string()
|
|
1179
1198
|
});
|
|
1180
|
-
var generateAddressBodyParser = /*#__PURE__*/object({
|
|
1181
|
-
coin: string(),
|
|
1182
|
-
wallet: string()
|
|
1199
|
+
var generateAddressBodyParser = /*#__PURE__*/z.object({
|
|
1200
|
+
coin: z.string(),
|
|
1201
|
+
wallet: z.string()
|
|
1183
1202
|
}).merge(generateAuthParser);
|
|
1184
|
-
var generateAddressResponse = /*#__PURE__*/object({
|
|
1185
|
-
id: /*#__PURE__*/string(),
|
|
1186
|
-
address: /*#__PURE__*/string(),
|
|
1187
|
-
coin: /*#__PURE__*/string(),
|
|
1188
|
-
wallet: /*#__PURE__*/string(),
|
|
1189
|
-
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()
|
|
1190
1209
|
});
|
|
1191
1210
|
|
|
1192
|
-
var rateParser = /*#__PURE__*/object({
|
|
1193
|
-
counterCurrency: /*#__PURE__*/string(),
|
|
1194
|
-
price: /*#__PURE__*/number(),
|
|
1195
|
-
priceChangePercent: /*#__PURE__*/number(),
|
|
1196
|
-
marketCap: /*#__PURE__*/number(),
|
|
1197
|
-
volume: /*#__PURE__*/number(),
|
|
1198
|
-
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()
|
|
1199
1218
|
});
|
|
1200
|
-
var exchangeRateParser = /*#__PURE__*/object({
|
|
1201
|
-
contract: /*#__PURE__*/string(),
|
|
1202
|
-
symbol: /*#__PURE__*/string(),
|
|
1203
|
-
rank: /*#__PURE__*/number(),
|
|
1204
|
-
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)
|
|
1205
1224
|
});
|
|
1206
|
-
var exchangeRatesParser = /*#__PURE__*/array(exchangeRateParser);
|
|
1207
|
-
var bloksRatesParser = /*#__PURE__*/array( /*#__PURE__*/object({
|
|
1208
|
-
contract: /*#__PURE__*/string(),
|
|
1209
|
-
symbol: /*#__PURE__*/string(),
|
|
1210
|
-
rank: /*#__PURE__*/number(),
|
|
1211
|
-
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)
|
|
1212
1231
|
}));
|
|
1213
1232
|
|
|
1214
1233
|
var Type;
|
|
@@ -1218,91 +1237,91 @@ var Type;
|
|
|
1218
1237
|
Type["SEND"] = "send";
|
|
1219
1238
|
})(Type || (Type = {}));
|
|
1220
1239
|
|
|
1221
|
-
var depositBodyParser = /*#__PURE__*/object({
|
|
1222
|
-
id: /*#__PURE__*/string(),
|
|
1223
|
-
type: /*#__PURE__*/nativeEnum(Type),
|
|
1224
|
-
hash: /*#__PURE__*/string(),
|
|
1225
|
-
coin: /*#__PURE__*/string(),
|
|
1226
|
-
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"
|
|
1227
1246
|
|
|
1228
1247
|
});
|
|
1229
|
-
var transactionParser = /*#__PURE__*/object({
|
|
1230
|
-
id: /*#__PURE__*/string(),
|
|
1231
|
-
wallet: /*#__PURE__*/string(),
|
|
1232
|
-
value: /*#__PURE__*/number(),
|
|
1233
|
-
valueString: /*#__PURE__*/string(),
|
|
1234
|
-
address: /*#__PURE__*/string(),
|
|
1235
|
-
type: /*#__PURE__*/nativeEnum(Type),
|
|
1236
|
-
state: /*#__PURE__*/string(),
|
|
1237
|
-
confirmations: /*#__PURE__*/number(),
|
|
1238
|
-
hash: /*#__PURE__*/string(),
|
|
1239
|
-
blockHash: /*#__PURE__*/string().optional().nullable(),
|
|
1240
|
-
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
|
|
1241
1260
|
|
|
1242
1261
|
});
|
|
1243
1262
|
|
|
1244
|
-
var otcOrderResponseParser = /*#__PURE__*/object({
|
|
1245
|
-
success: /*#__PURE__*/boolean(),
|
|
1246
|
-
transaction_id: /*#__PURE__*/string(),
|
|
1247
|
-
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()
|
|
1248
1267
|
});
|
|
1249
|
-
var otcQuoteBodyParser = /*#__PURE__*/object({
|
|
1250
|
-
baseAmount: /*#__PURE__*/number(),
|
|
1251
|
-
baseSymbol: /*#__PURE__*/string(),
|
|
1252
|
-
quoteSymbol: /*#__PURE__*/string()
|
|
1268
|
+
var otcQuoteBodyParser = /*#__PURE__*/z.object({
|
|
1269
|
+
baseAmount: /*#__PURE__*/z.number(),
|
|
1270
|
+
baseSymbol: /*#__PURE__*/z.string(),
|
|
1271
|
+
quoteSymbol: /*#__PURE__*/z.string()
|
|
1253
1272
|
});
|
|
1254
|
-
var otcQuoteResponseParser = /*#__PURE__*/object({
|
|
1255
|
-
success: /*#__PURE__*/boolean(),
|
|
1256
|
-
token: /*#__PURE__*/string(),
|
|
1257
|
-
qty: /*#__PURE__*/number(),
|
|
1258
|
-
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()
|
|
1259
1278
|
});
|
|
1260
1279
|
|
|
1261
1280
|
var withdrawData = {
|
|
1262
|
-
from: /*#__PURE__*/string().refine(function (val) {
|
|
1281
|
+
from: /*#__PURE__*/z.string().refine(function (val) {
|
|
1263
1282
|
return val !== WRAP_CONTRACT;
|
|
1264
1283
|
}, {
|
|
1265
1284
|
message: WRAP_CONTRACT + " must be receiver"
|
|
1266
1285
|
}),
|
|
1267
|
-
to: /*#__PURE__*/literal(WRAP_CONTRACT),
|
|
1268
|
-
quantity: /*#__PURE__*/string(),
|
|
1269
|
-
memo: /*#__PURE__*/string()
|
|
1286
|
+
to: /*#__PURE__*/z.literal(WRAP_CONTRACT),
|
|
1287
|
+
quantity: /*#__PURE__*/z.string(),
|
|
1288
|
+
memo: /*#__PURE__*/z.string()
|
|
1270
1289
|
};
|
|
1271
|
-
var withdrawBodyParser = /*#__PURE__*/object({
|
|
1290
|
+
var withdrawBodyParser = /*#__PURE__*/z.object({
|
|
1272
1291
|
signer: authorizationParser,
|
|
1273
|
-
signatures: /*#__PURE__*/array(string()).length(1),
|
|
1292
|
+
signatures: /*#__PURE__*/z.array(z.string()).length(1),
|
|
1274
1293
|
transaction: /*#__PURE__*/singleActionTransactionParser('*', 'transfer', withdrawData),
|
|
1275
|
-
quoteId: /*#__PURE__*/string(),
|
|
1276
|
-
provider: /*#__PURE__*/string().optional()
|
|
1294
|
+
quoteId: /*#__PURE__*/z.string(),
|
|
1295
|
+
provider: /*#__PURE__*/z.string().optional()
|
|
1277
1296
|
});
|
|
1278
|
-
var withdrawMetalResponseParser = /*#__PURE__*/object({
|
|
1279
|
-
success: /*#__PURE__*/boolean(),
|
|
1280
|
-
id: /*#__PURE__*/string()
|
|
1297
|
+
var withdrawMetalResponseParser = /*#__PURE__*/z.object({
|
|
1298
|
+
success: /*#__PURE__*/z["boolean"](),
|
|
1299
|
+
id: /*#__PURE__*/z.string()
|
|
1281
1300
|
});
|
|
1282
|
-
var withdrawalFeeQuoteParser = /*#__PURE__*/object({
|
|
1283
|
-
quoteId: /*#__PURE__*/string(),
|
|
1284
|
-
estimatedFee: /*#__PURE__*/string(),
|
|
1285
|
-
currency: /*#__PURE__*/string(),
|
|
1286
|
-
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()
|
|
1287
1306
|
});
|
|
1288
1307
|
|
|
1289
|
-
var withdrawHistoryMetalSwapParser = /*#__PURE__*/object({
|
|
1290
|
-
id: /*#__PURE__*/string(),
|
|
1291
|
-
status: /*#__PURE__*/string(),
|
|
1292
|
-
amount: /*#__PURE__*/string(),
|
|
1293
|
-
currency: /*#__PURE__*/string(),
|
|
1294
|
-
network: /*#__PURE__*/string(),
|
|
1295
|
-
created: /*#__PURE__*/string(),
|
|
1296
|
-
withdrawalAddress: /*#__PURE__*/string(),
|
|
1297
|
-
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()
|
|
1298
1317
|
});
|
|
1299
|
-
var withdrawHistoryMetalResponseParser = /*#__PURE__*/object({
|
|
1300
|
-
swaps: /*#__PURE__*/array(withdrawHistoryMetalSwapParser),
|
|
1301
|
-
page: /*#__PURE__*/number(),
|
|
1302
|
-
pageSize: /*#__PURE__*/number(),
|
|
1303
|
-
numberOfElements: /*#__PURE__*/number(),
|
|
1304
|
-
totalPages: /*#__PURE__*/number(),
|
|
1305
|
-
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()
|
|
1306
1325
|
});
|
|
1307
1326
|
|
|
1308
1327
|
var Status;
|
|
@@ -1314,31 +1333,212 @@ var Status;
|
|
|
1314
1333
|
Status["PROCESSING"] = "processing";
|
|
1315
1334
|
})(Status || (Status = {}));
|
|
1316
1335
|
|
|
1317
|
-
var wrapStartParser = /*#__PURE__*/object({
|
|
1336
|
+
var wrapStartParser = /*#__PURE__*/z.object({
|
|
1318
1337
|
balance: ExtendedAssetParser,
|
|
1319
|
-
id: /*#__PURE__*/string(),
|
|
1320
|
-
txid: /*#__PURE__*/string(),
|
|
1321
|
-
chain: /*#__PURE__*/string(),
|
|
1322
|
-
deposit_address: /*#__PURE__*/string(),
|
|
1323
|
-
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()
|
|
1324
1343
|
});
|
|
1325
|
-
var wrapSetConfParser = /*#__PURE__*/object({
|
|
1326
|
-
wrap_hash: /*#__PURE__*/string(),
|
|
1327
|
-
confirmations: /*#__PURE__*/number()
|
|
1344
|
+
var wrapSetConfParser = /*#__PURE__*/z.object({
|
|
1345
|
+
wrap_hash: /*#__PURE__*/z.string(),
|
|
1346
|
+
confirmations: /*#__PURE__*/z.number()
|
|
1328
1347
|
});
|
|
1329
|
-
var wrapParser = /*#__PURE__*/object({
|
|
1330
|
-
index: /*#__PURE__*/number(),
|
|
1331
|
-
proton_account: /*#__PURE__*/string(),
|
|
1348
|
+
var wrapParser = /*#__PURE__*/z.object({
|
|
1349
|
+
index: /*#__PURE__*/z.number(),
|
|
1350
|
+
proton_account: /*#__PURE__*/z.string(),
|
|
1332
1351
|
balance: ExtendedAssetParser,
|
|
1333
|
-
id: /*#__PURE__*/string(),
|
|
1334
|
-
txid: /*#__PURE__*/string(),
|
|
1335
|
-
chain: /*#__PURE__*/string(),
|
|
1336
|
-
deposit_address: /*#__PURE__*/string(),
|
|
1337
|
-
status: /*#__PURE__*/nativeEnum(Status),
|
|
1338
|
-
finish_txid: /*#__PURE__*/string(),
|
|
1339
|
-
wrap_hash: /*#__PURE__*/string(),
|
|
1340
|
-
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()
|
|
1341
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.string(),
|
|
1443
|
+
ask: /*#__PURE__*/z.string(),
|
|
1444
|
+
bid: /*#__PURE__*/z.string(),
|
|
1445
|
+
count: /*#__PURE__*/z.number()
|
|
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 = {}));
|
|
1342
1542
|
|
|
1343
1543
|
var isSameToken = function isSameToken(token1, token2) {
|
|
1344
1544
|
return token1.xtokenSymbol === token2.xtokenSymbol && token1.xtokenPrecision === token2.xtokenPrecision && token1.xtokenContract === token2.xtokenContract;
|
|
@@ -1636,5 +1836,5 @@ var applyDiscountToFee = function applyDiscountToFee(fee, staked) {
|
|
|
1636
1836
|
}
|
|
1637
1837
|
};
|
|
1638
1838
|
|
|
1639
|
-
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 };
|
|
1640
1840
|
//# sourceMappingURL=wrap-constants.esm.js.map
|