@paraspell/sdk-core 11.9.3 → 11.11.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/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { blake2b } from '@noble/hashes/blake2';
2
- import { isChainEvm, getAssetsObject, InvalidCurrencyError, isForeignAsset, extractAssetLocation, findAssetInfoOrThrow, getNativeAssetSymbol, getOtherAssets, isAssetEqual, findNativeAssetInfoOrThrow, findAssetInfo, isTAsset, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, isOverrideLocationSpecifier, findAssetInfoByLoc, findAssetOnDestOrThrow, Native, hasXcmPaymentApiSupport, getExistentialDeposit, getRelayChainSymbol, findNativeAssetInfo, isAssetXcEqual, hasSupportForAsset, isSymbolSpecifier, normalizeLocation, getEdFromAssetOrThrow, normalizeSymbol } from '@paraspell/assets';
2
+ import { isChainEvm, getAssetsObject, InvalidCurrencyError, isForeignAsset, extractAssetLocation, findAssetInfoOrThrow, getNativeAssetSymbol, getOtherAssets, isAssetEqual, findNativeAssetInfoOrThrow, findAssetInfo, isTAsset, getExistentialDepositOrThrow, isSymbolMatch, hasDryRunSupport, isOverrideLocationSpecifier, findAssetInfoByLoc, findAssetOnDestOrThrow, findAssetInfoOnDest, Native, hasXcmPaymentApiSupport, getExistentialDeposit, getRelayChainSymbol, findNativeAssetInfo, isAssetXcEqual, hasSupportForAsset, isSymbolSpecifier, normalizeLocation, getEdFromAssetOrThrow, normalizeSymbol } from '@paraspell/assets';
3
3
  export * from '@paraspell/assets';
4
4
  import { base58 } from '@scure/base';
5
5
  import { isAddress, parseUnits, createPublicClient, http, getContract, pad, toHex, getAddress, concat, keccak256 } from 'viem';
@@ -941,2126 +941,2127 @@ var getRelayChainOf = function getRelayChainOf(chain) {
941
941
  return getChain(chain).ecosystem;
942
942
  };
943
943
 
944
- var AssetHubPolkadot$1 = {
945
- name: "Asset Hub",
946
- info: "PolkadotAssetHub",
947
- paraId: 1000,
948
- providers: [
949
- {
950
- name: "Dwellir",
951
- endpoint: "wss://asset-hub-polkadot-rpc.n.dwellir.com"
952
- },
953
- {
954
- name: "Dwellir Tunisia",
955
- endpoint: "wss://statemint-rpc-tn.dwellir.com"
956
- },
957
- {
958
- name: "IBP1",
959
- endpoint: "wss://sys.ibp.network/asset-hub-polkadot"
960
- },
961
- {
962
- name: "IBP2",
963
- endpoint: "wss://asset-hub-polkadot.dotters.network"
964
- },
965
- {
966
- name: "LuckyFriday",
967
- endpoint: "wss://rpc-asset-hub-polkadot.luckyfriday.io"
968
- },
969
- {
970
- name: "OnFinality",
971
- endpoint: "wss://statemint.api.onfinality.io/public-ws"
972
- },
973
- {
974
- name: "Parity",
975
- endpoint: "wss://polkadot-asset-hub-rpc.polkadot.io"
976
- },
977
- {
978
- name: "RadiumBlock",
979
- endpoint: "wss://statemint.public.curie.radiumblock.co/ws"
980
- },
981
- {
982
- name: "Stakeworld",
983
- endpoint: "wss://dot-rpc.stakeworld.io/assethub"
984
- }
985
- ]
944
+ var createChainClient = /*#__PURE__*/function () {
945
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(api, chain) {
946
+ return _regenerator().w(function (_context) {
947
+ while (1) switch (_context.n) {
948
+ case 0:
949
+ _context.n = 1;
950
+ return api.init(chain);
951
+ case 1:
952
+ return _context.a(2, api.getApi());
953
+ }
954
+ }, _callee);
955
+ }));
956
+ return function createChainClient(_x, _x2) {
957
+ return _ref.apply(this, arguments);
958
+ };
959
+ }();
960
+
961
+ /* eslint-disable @typescript-eslint/no-explicit-any */
962
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
963
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
964
+ var getLocationTokenId = function getLocationTokenId(location, chain) {
965
+ if (location.interior.type === 'Here') {
966
+ // native token
967
+ return getNativeAssetSymbol(chain);
968
+ }
969
+ var foreignAssets = getOtherAssets(chain);
970
+ if (location.interior.type === 'X2') {
971
+ if (location.interior.value[0].type === 'PalletInstance' && location.interior.value[0].value === 50 && location.interior.value[1].type === 'GeneralIndex') {
972
+ var _foreignAssets$find$a, _foreignAssets$find;
973
+ var assetId = location.interior.value[1].value;
974
+ return (_foreignAssets$find$a = (_foreignAssets$find = foreignAssets.find(function (asset) {
975
+ return asset.assetId === String(assetId);
976
+ })) === null || _foreignAssets$find === void 0 ? void 0 : _foreignAssets$find.assetId) !== null && _foreignAssets$find$a !== void 0 ? _foreignAssets$find$a : null;
977
+ }
978
+ }
979
+ return null;
980
+ };
981
+
982
+ var computeFeeFromDryRun = function computeFeeFromDryRun(dryRun, chain, executionFee) {
983
+ var isFeeAsset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
984
+ // Extract delivery fees from emitted events
985
+ var deliveryFees = [];
986
+ var assetConversionFee = 0n;
987
+ var _iterator = _createForOfIteratorHelper(dryRun.value.emitted_events),
988
+ _step;
989
+ try {
990
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
991
+ var _e$value, _e$value2;
992
+ var e = _step.value;
993
+ var isXcmEvent = e.type === 'XcmPallet' || e.type === 'PolkadotXcm' || e.type === 'CumulusXcm';
994
+ var isFeesPaid = e.value.type === 'FeesPaid';
995
+ if (isXcmEvent && isFeesPaid && e.value.value.fees) {
996
+ var _iterator2 = _createForOfIteratorHelper(e.value.value.fees),
997
+ _step2;
998
+ try {
999
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1000
+ var feeItem = _step2.value;
1001
+ if (feeItem.fun.type === 'NonFungible') continue;
1002
+ var plancks = feeItem.fun.value;
1003
+ var tokenSymbol = getLocationTokenId(feeItem.id, chain);
1004
+ if (!tokenSymbol || !plancks) continue;
1005
+ deliveryFees.push({
1006
+ plancks: plancks,
1007
+ tokenSymbol: tokenSymbol
1008
+ });
1009
+ }
1010
+ } catch (err) {
1011
+ _iterator2.e(err);
1012
+ } finally {
1013
+ _iterator2.f();
1014
+ }
1015
+ }
1016
+ if (isFeeAsset && e.type === 'AssetConversion' && ((_e$value = e.value) === null || _e$value === void 0 ? void 0 : _e$value.type) === 'SwapCreditExecuted' && (_e$value2 = e.value) !== null && _e$value2 !== void 0 && _e$value2.value && e.value.value.amount_in !== undefined && e.value.value.amount_in !== null) {
1017
+ assetConversionFee += e.value.value.amount_in;
1018
+ }
1019
+ }
1020
+ } catch (err) {
1021
+ _iterator.e(err);
1022
+ } finally {
1023
+ _iterator.f();
1024
+ }
1025
+ if (isFeeAsset && assetConversionFee > 0n) {
1026
+ return assetConversionFee;
1027
+ } else {
1028
+ var nativeAssetSymbol = getNativeAssetSymbol(chain);
1029
+ var totalDeliveryFees = deliveryFees.filter(function (df) {
1030
+ return df.tokenSymbol === nativeAssetSymbol;
1031
+ }).reduce(function (acc, df) {
1032
+ return acc + df.plancks;
1033
+ }, 0n);
1034
+ return totalDeliveryFees + executionFee;
1035
+ }
1036
+ };
1037
+
1038
+ var getLocationTokenIdPjs = function getLocationTokenIdPjs(location, chain) {
1039
+ if (location.interior === 'Here') {
1040
+ // native token
1041
+ return getNativeAssetSymbol(chain);
1042
+ }
1043
+ var foreignAssets = getOtherAssets(chain);
1044
+ if (location.interior.X2 && hasJunction(location, 'PalletInstance', '50') && hasJunction(location, 'GeneralIndex')) {
1045
+ var _foreignAssets$find$s, _foreignAssets$find;
1046
+ var assetId = getJunctionValue(location, 'GeneralIndex');
1047
+ return (_foreignAssets$find$s = (_foreignAssets$find = foreignAssets.find(function (asset) {
1048
+ return asset.assetId === String(assetId);
1049
+ })) === null || _foreignAssets$find === void 0 ? void 0 : _foreignAssets$find.symbol) !== null && _foreignAssets$find$s !== void 0 ? _foreignAssets$find$s : null;
1050
+ }
1051
+ return null;
1052
+ };
1053
+
1054
+ var computeFeeFromDryRunPjs = function computeFeeFromDryRunPjs(dryRun, chain, executionFee) {
1055
+ // Extract delivery fees from emitted events
1056
+ var deliveryFees = [];
1057
+ var _iterator = _createForOfIteratorHelper(dryRun.Ok.emittedEvents),
1058
+ _step;
1059
+ try {
1060
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1061
+ var e = _step.value;
1062
+ var isXcmEvent = e.section === 'xcmPallet' || e.section === 'polkadotXcm' || e.section === 'cumulusXcm';
1063
+ var isFeesPaid = e.method === 'FeesPaid';
1064
+ if (isXcmEvent && isFeesPaid && e.data.fees) {
1065
+ var _iterator2 = _createForOfIteratorHelper(e.data.fees),
1066
+ _step2;
1067
+ try {
1068
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1069
+ var feeItem = _step2.value;
1070
+ if (feeItem.fun.NonFungible) continue;
1071
+ var plancks = BigInt(feeItem.fun.Fungible.replace(/,/g, ''));
1072
+ var tokenSymbol = getLocationTokenIdPjs(feeItem.id, chain);
1073
+ if (!tokenSymbol || !plancks) continue;
1074
+ deliveryFees.push({
1075
+ plancks: plancks,
1076
+ tokenSymbol: tokenSymbol
1077
+ });
1078
+ }
1079
+ } catch (err) {
1080
+ _iterator2.e(err);
1081
+ } finally {
1082
+ _iterator2.f();
1083
+ }
1084
+ }
1085
+ }
1086
+ } catch (err) {
1087
+ _iterator.e(err);
1088
+ } finally {
1089
+ _iterator.f();
1090
+ }
1091
+ var nativeAssetSymbol = getNativeAssetSymbol(chain);
1092
+ // Sum the fees that match the feeToken
1093
+ var totalDeliveryFees = deliveryFees.filter(function (df) {
1094
+ return df.tokenSymbol === nativeAssetSymbol;
1095
+ }).reduce(function (acc, df) {
1096
+ return acc + df.plancks;
1097
+ }, 0n);
1098
+ return totalDeliveryFees + executionFee;
1099
+ };
1100
+
1101
+ /**
1102
+ * The options for the batch builder.
1103
+ */
1104
+ var BatchMode;
1105
+ (function (BatchMode) {
1106
+ /**
1107
+ * Does not commit if one of the calls in the batch fails.
1108
+ */
1109
+ BatchMode["BATCH_ALL"] = "BATCH_ALL";
1110
+ /**
1111
+ * Commits each successful call regardless if a call fails.
1112
+ */
1113
+ BatchMode["BATCH"] = "BATCH";
1114
+ })(BatchMode || (BatchMode = {}));
1115
+
1116
+ var XTokensError;
1117
+ (function (XTokensError) {
1118
+ XTokensError["AssetHasNoReserve"] = "AssetHasNoReserve";
1119
+ XTokensError["NotCrossChainTransfer"] = "NotCrossChainTransfer";
1120
+ XTokensError["InvalidDest"] = "InvalidDest";
1121
+ XTokensError["NotCrossChainTransferableCurrency"] = "NotCrossChainTransferableCurrency";
1122
+ XTokensError["UnweighableMessage"] = "UnweighableMessage";
1123
+ XTokensError["XcmExecutionFailed"] = "XcmExecutionFailed";
1124
+ XTokensError["CannotReanchor"] = "CannotReanchor";
1125
+ XTokensError["InvalidAncestry"] = "InvalidAncestry";
1126
+ XTokensError["InvalidAsset"] = "InvalidAsset";
1127
+ XTokensError["DestinationNotInvertible"] = "DestinationNotInvertible";
1128
+ XTokensError["BadVersion"] = "BadVersion";
1129
+ XTokensError["DistinctReserveForAssetAndFee"] = "DistinctReserveForAssetAndFee";
1130
+ XTokensError["ZeroFee"] = "ZeroFee";
1131
+ XTokensError["ZeroAmount"] = "ZeroAmount";
1132
+ XTokensError["TooManyAssetsBeingSent"] = "TooManyAssetsBeingSent";
1133
+ XTokensError["AssetIndexNonExistent"] = "AssetIndexNonExistent";
1134
+ XTokensError["FeeNotEnough"] = "FeeNotEnough";
1135
+ XTokensError["NotSupportedLocation"] = "NotSupportedLocation";
1136
+ XTokensError["MinXcmFeeNotDefined"] = "MinXcmFeeNotDefined";
1137
+ XTokensError["RateLimited"] = "RateLimited";
1138
+ })(XTokensError || (XTokensError = {}));
1139
+ var PolkadotXcmError;
1140
+ (function (PolkadotXcmError) {
1141
+ PolkadotXcmError["Unreachable"] = "Unreachable";
1142
+ PolkadotXcmError["SendFailure"] = "SendFailure";
1143
+ PolkadotXcmError["Filtered"] = "Filtered";
1144
+ PolkadotXcmError["UnweighableMessage"] = "UnweighableMessage";
1145
+ PolkadotXcmError["DestinationNotInvertible"] = "DestinationNotInvertible";
1146
+ PolkadotXcmError["Empty"] = "Empty";
1147
+ PolkadotXcmError["CannotReanchor"] = "CannotReanchor";
1148
+ PolkadotXcmError["TooManyAssets"] = "TooManyAssets";
1149
+ PolkadotXcmError["InvalidOrigin"] = "InvalidOrigin";
1150
+ PolkadotXcmError["BadVersion"] = "BadVersion";
1151
+ PolkadotXcmError["BadLocation"] = "BadLocation";
1152
+ PolkadotXcmError["NoSubscription"] = "NoSubscription";
1153
+ PolkadotXcmError["AlreadySubscribed"] = "AlreadySubscribed";
1154
+ PolkadotXcmError["CannotCheckOutTeleport"] = "CannotCheckOutTeleport";
1155
+ PolkadotXcmError["LowBalance"] = "LowBalance";
1156
+ PolkadotXcmError["TooManyLocks"] = "TooManyLocks";
1157
+ PolkadotXcmError["AccountNotSovereign"] = "AccountNotSovereign";
1158
+ PolkadotXcmError["FeesNotMet"] = "FeesNotMet";
1159
+ PolkadotXcmError["LockNotFound"] = "LockNotFound";
1160
+ PolkadotXcmError["InUse"] = "InUse";
1161
+ PolkadotXcmError["REMOVED"] = "REMOVED";
1162
+ PolkadotXcmError["InvalidAssetUnknownReserve"] = "InvalidAssetUnknownReserve";
1163
+ PolkadotXcmError["InvalidAssetUnsupportedReserve"] = "InvalidAssetUnsupportedReserve";
1164
+ PolkadotXcmError["TooManyReserves"] = "TooManyReserves";
1165
+ PolkadotXcmError["LocalExecutionIncomplete"] = "LocalExecutionIncomplete";
1166
+ PolkadotXcmError["TooManyAuthorizedAliases"] = "TooManyAuthorizedAliases";
1167
+ PolkadotXcmError["ExpiresInPast"] = "ExpiresInPast";
1168
+ PolkadotXcmError["AliasNotFound"] = "AliasNotFound";
1169
+ PolkadotXcmError["LocalExecutionIncompleteWithError"] = "LocalExecutionIncompleteWithError";
1170
+ })(PolkadotXcmError || (PolkadotXcmError = {}));
1171
+
1172
+ var resolveModuleError = function resolveModuleError(chain, error) {
1173
+ var palletDetails = getSupportedPalletsDetails(chain).find(function (p) {
1174
+ return p.index === Number(error.index);
1175
+ });
1176
+ if (!palletDetails) {
1177
+ throw new InvalidParameterError("Pallet with index ".concat(error.index, " not found"));
1178
+ }
1179
+ // Use only the first byte of the error to get the error index
1180
+ var errorIndex = Number(error.error.slice(0, 4));
1181
+ var name = palletDetails.name;
1182
+ if (name !== 'XTokens' && name !== 'PolkadotXcm' && name !== 'XcmPallet') {
1183
+ throw new InvalidParameterError("Pallet ".concat(name, " is not supported"));
1184
+ }
1185
+ var failureReason = name === 'XTokens' ? Object.values(XTokensError)[errorIndex] : Object.values(PolkadotXcmError)[errorIndex];
1186
+ if (!failureReason) {
1187
+ throw new InvalidParameterError("Error index ".concat(errorIndex, " not found in ").concat(name, " pallet"));
1188
+ }
1189
+ return failureReason;
986
1190
  };
987
- var Acala$1 = {
988
- name: "Acala",
989
- info: "acala",
990
- paraId: 2000,
991
- providers: [
992
- {
993
- name: "Acala Foundation 0",
994
- endpoint: "wss://acala-rpc-0.aca-api.network"
995
- },
996
- {
997
- name: "Acala Foundation 1",
998
- endpoint: "wss://acala-rpc-1.aca-api.network"
999
- },
1000
- {
1001
- name: "Acala Foundation 3",
1002
- endpoint: "wss://acala-rpc-3.aca-api.network/ws"
1003
- },
1004
- {
1005
- name: "Dwellir",
1006
- endpoint: "wss://acala-rpc.n.dwellir.com"
1007
- },
1008
- {
1009
- name: "IBP1",
1010
- endpoint: "wss://acala.ibp.network"
1011
- },
1012
- {
1013
- name: "IBP2",
1014
- endpoint: "wss://acala.dotters.network"
1015
- }
1016
- ]
1191
+
1192
+ var isAssetHub = function isAssetHub(chain) {
1193
+ return chain === 'AssetHubPolkadot' || chain === 'AssetHubKusama';
1017
1194
  };
1018
- var Ajuna$1 = {
1019
- name: "Ajuna Network",
1020
- info: "ajuna",
1021
- paraId: 2051,
1022
- providers: [
1023
- {
1024
- name: "AjunaNetwork",
1025
- endpoint: "wss://rpc-para.ajuna.network"
1026
- },
1027
- {
1028
- name: "IBP1",
1029
- endpoint: "wss://ajuna.ibp.network"
1030
- },
1031
- {
1032
- name: "IBP2",
1033
- endpoint: "wss://ajuna.dotters.network"
1034
- }
1035
- ]
1195
+ var isBridgeHub = function isBridgeHub(chain) {
1196
+ return chain === 'BridgeHubPolkadot' || chain === 'BridgeHubKusama';
1036
1197
  };
1037
- var Astar$1 = {
1038
- name: "Astar",
1039
- info: "astar",
1040
- paraId: 2006,
1041
- providers: [
1042
- {
1043
- name: "Astar",
1044
- endpoint: "wss://rpc.astar.network"
1045
- },
1046
- {
1047
- name: "Blast",
1048
- endpoint: "wss://astar.public.blastapi.io"
1049
- },
1050
- {
1051
- name: "Dwellir",
1052
- endpoint: "wss://astar-rpc.n.dwellir.com"
1053
- },
1054
- {
1055
- name: "OnFinality",
1056
- endpoint: "wss://astar.api.onfinality.io/public-ws"
1057
- },
1058
- {
1059
- name: "RadiumBlock",
1060
- endpoint: "wss://astar.public.curie.radiumblock.co/ws"
1061
- }
1062
- ]
1198
+ var isPeople = function isPeople(chain) {
1199
+ return chain === 'PeoplePolkadot' || chain === 'PeopleKusama';
1063
1200
  };
1064
- var BifrostPolkadot$1 = {
1065
- name: "Bifrost",
1066
- info: "bifrost",
1067
- paraId: 2030,
1068
- providers: [
1069
- {
1070
- name: "IBP1",
1071
- endpoint: "wss://bifrost-polkadot.ibp.network"
1072
- },
1073
- {
1074
- name: "IBP2",
1075
- endpoint: "wss://bifrost-polkadot.dotters.network"
1076
- },
1077
- {
1078
- name: "Liebi",
1079
- endpoint: "wss://hk.p.bifrost-rpc.liebi.com/ws"
1080
- },
1081
- {
1082
- name: "LiebiEU",
1083
- endpoint: "wss://eu.bifrost-polkadot-rpc.liebi.com/ws"
1084
- }
1085
- ]
1201
+ var isSystemPara = function isSystemPara(chain) {
1202
+ return isAssetHub(chain) || isBridgeHub(chain) || isPeople(chain);
1086
1203
  };
1087
- var BridgeHubPolkadot$1 = {
1088
- name: "Bridge Hub",
1089
- info: "polkadotBridgeHub",
1090
- paraId: 1002,
1091
- providers: [
1092
- {
1093
- name: "Dwellir",
1094
- endpoint: "wss://bridge-hub-polkadot-rpc.n.dwellir.com"
1095
- },
1096
- {
1097
- name: "Dwellir Tunisia",
1098
- endpoint: "wss://polkadot-bridge-hub-rpc-tn.dwellir.com"
1099
- },
1100
- {
1101
- name: "IBP1",
1102
- endpoint: "wss://sys.ibp.network/bridgehub-polkadot"
1103
- },
1104
- {
1105
- name: "IBP2",
1106
- endpoint: "wss://bridge-hub-polkadot.dotters.network"
1107
- },
1108
- {
1109
- name: "LuckyFriday",
1110
- endpoint: "wss://rpc-bridge-hub-polkadot.luckyfriday.io"
1111
- },
1112
- {
1113
- name: "OnFinality",
1114
- endpoint: "wss://bridgehub-polkadot.api.onfinality.io/public-ws"
1115
- },
1116
- {
1117
- name: "Parity",
1118
- endpoint: "wss://polkadot-bridge-hub-rpc.polkadot.io"
1119
- },
1120
- {
1121
- name: "RadiumBlock",
1122
- endpoint: "wss://bridgehub-polkadot.public.curie.radiumblock.co/ws"
1123
- },
1124
- {
1125
- name: "Stakeworld",
1126
- endpoint: "wss://dot-rpc.stakeworld.io/bridgehub"
1127
- }
1128
- ]
1204
+ var mul = function mul(v, num) {
1205
+ var den = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1n;
1206
+ return v * num / den;
1129
1207
  };
1130
- var Centrifuge$1 = {
1131
- name: "Centrifuge",
1132
- info: "centrifuge",
1133
- paraId: 2031,
1134
- providers: [
1135
- {
1136
- name: "LuckyFriday",
1137
- endpoint: "wss://rpc-centrifuge.luckyfriday.io"
1138
- },
1139
- {
1140
- name: "OnFinality",
1141
- endpoint: "wss://centrifuge-parachain.api.onfinality.io/public-ws"
1142
- }
1143
- ]
1208
+ var padFee = function padFee(raw, origin, dest, side) {
1209
+ var relayOrigin = isRelayChain(origin);
1210
+ var relayDest = isRelayChain(dest);
1211
+ var sysParaOrigin = isSystemPara(origin);
1212
+ var sysParaDest = isSystemPara(dest);
1213
+ var relayToPara = relayOrigin && !relayDest;
1214
+ var sysParaToPara = sysParaOrigin && !sysParaDest;
1215
+ var paraToPara = !relayOrigin && !sysParaOrigin;
1216
+ if (sysParaToPara) return raw * 40n;
1217
+ if (relayToPara) return side === 'origin' ? mul(raw, 320n, 100n) : mul(raw, 3000n, 100n);
1218
+ if (paraToPara && side == 'origin' && origin === 'Mythos' && dest !== 'Ethereum') {
1219
+ return 150000000000000000n;
1220
+ }
1221
+ if (paraToPara) return mul(raw, 130n, 100n);
1222
+ // apply default 30% padding
1223
+ return mul(raw, 130n, 100n);
1144
1224
  };
1145
- var ComposableFinance$1 = {
1146
- name: "Composable Finance",
1147
- info: "composable",
1148
- paraId: 2019,
1149
- providers: [
1150
- {
1151
- name: "Composable",
1152
- endpoint: "wss://rpc.composable.finance"
1153
- }
1154
- ]
1225
+ var padFeeBy = function padFeeBy(amount, percent) {
1226
+ return mul(amount, BigInt(100 + percent), 100n);
1155
1227
  };
1156
- var Darwinia$1 = {
1157
- name: "Darwinia",
1158
- info: "darwinia",
1159
- paraId: 2046,
1160
- providers: [
1161
- {
1162
- name: "Darwinia",
1163
- endpoint: "wss://rpc.darwinia.network"
1164
- },
1165
- {
1166
- name: "Dwellir",
1167
- endpoint: "wss://darwinia-rpc.n.dwellir.com"
1168
- },
1169
- {
1170
- name: "Subquery",
1171
- endpoint: "wss://darwinia.rpc.subquery.network/public/ws"
1172
- }
1173
- ]
1228
+
1229
+ var resolveScenario = function resolveScenario(origin, destination) {
1230
+ if (isRelayChain(origin)) return 'RelayToPara';
1231
+ var isRelayDestination = !isTLocation(destination) && isRelayChain(destination);
1232
+ if (isRelayDestination) return 'ParaToRelay';
1233
+ return 'ParaToPara';
1234
+ };
1235
+
1236
+ var createX1Payload = function createX1Payload(version, junction) {
1237
+ return version === Version.V3 ? {
1238
+ X1: junction
1239
+ } : {
1240
+ X1: [junction]
1241
+ };
1242
+ };
1243
+
1244
+ var createAccountPayload = function createAccountPayload(api, address) {
1245
+ return isAddress(address) ? {
1246
+ AccountKey20: {
1247
+ key: address
1248
+ }
1249
+ } : {
1250
+ AccountId32: {
1251
+ id: api.accountToHex(address)
1252
+ }
1253
+ };
1254
+ };
1255
+ var createBeneficiaryLocXTokens = function createBeneficiaryLocXTokens(_ref) {
1256
+ var api = _ref.api,
1257
+ recipientAddress = _ref.address,
1258
+ origin = _ref.origin,
1259
+ destination = _ref.destination,
1260
+ version = _ref.version,
1261
+ paraId = _ref.paraId;
1262
+ if (isTLocation(recipientAddress)) {
1263
+ return recipientAddress;
1264
+ }
1265
+ var scenario = resolveScenario(origin, destination);
1266
+ var accountPayload = createAccountPayload(api, recipientAddress);
1267
+ if (scenario === 'ParaToRelay') {
1268
+ return {
1269
+ parents: Parents.ONE,
1270
+ interior: createX1Payload(version, {
1271
+ AccountId32: {
1272
+ id: api.accountToHex(recipientAddress)
1273
+ }
1274
+ })
1275
+ };
1276
+ } else if (scenario === 'ParaToPara') {
1277
+ return {
1278
+ parents: Parents.ONE,
1279
+ interior: {
1280
+ X2: [{
1281
+ Parachain: paraId
1282
+ }, accountPayload]
1283
+ }
1284
+ };
1285
+ }
1286
+ return {
1287
+ parents: Parents.ZERO,
1288
+ interior: createX1Payload(version, accountPayload)
1289
+ };
1174
1290
  };
1175
- var EnergyWebX$1 = {
1176
- name: "Energy Web X",
1177
- info: "ewx",
1178
- paraId: 3345,
1179
- providers: [
1180
- {
1181
- name: "Energy Web",
1182
- endpoint: "wss://public-rpc.mainnet.energywebx.com/"
1183
- }
1184
- ]
1291
+ var createBeneficiaryLocation = function createBeneficiaryLocation(_ref2) {
1292
+ var api = _ref2.api,
1293
+ address = _ref2.address,
1294
+ version = _ref2.version;
1295
+ if (isTLocation(address)) return address;
1296
+ var accountPayload = createAccountPayload(api, address);
1297
+ return {
1298
+ parents: Parents.ZERO,
1299
+ interior: createX1Payload(version, accountPayload)
1300
+ };
1185
1301
  };
1186
- var Hydration$1 = {
1187
- name: "Hydration",
1188
- info: "hydradx",
1189
- paraId: 2034,
1302
+
1303
+ var AssetHubPolkadot$1 = {
1304
+ name: "Asset Hub",
1305
+ info: "PolkadotAssetHub",
1306
+ paraId: 1000,
1190
1307
  providers: [
1191
1308
  {
1192
1309
  name: "Dwellir",
1193
- endpoint: "wss://hydration-rpc.n.dwellir.com"
1310
+ endpoint: "wss://asset-hub-polkadot-rpc.n.dwellir.com"
1194
1311
  },
1195
1312
  {
1196
- name: "Helikon",
1197
- endpoint: "wss://rpc.helikon.io/hydradx"
1313
+ name: "Dwellir Tunisia",
1314
+ endpoint: "wss://statemint-rpc-tn.dwellir.com"
1198
1315
  },
1199
1316
  {
1200
1317
  name: "IBP1",
1201
- endpoint: "wss://hydration.ibp.network"
1318
+ endpoint: "wss://sys.ibp.network/asset-hub-polkadot"
1202
1319
  },
1203
1320
  {
1204
1321
  name: "IBP2",
1205
- endpoint: "wss://hydration.dotters.network"
1206
- }
1207
- ]
1208
- };
1209
- var IntegriteePolkadot$1 = {
1210
- name: "Integritee Network",
1211
- info: "integritee",
1212
- paraId: 2039,
1213
- providers: [
1214
- {
1215
- name: "Integritee",
1216
- endpoint: "wss://polkadot.api.integritee.network"
1217
- }
1218
- ]
1219
- };
1220
- var Interlay$1 = {
1221
- name: "Interlay",
1222
- info: "interlay",
1223
- paraId: 2032,
1224
- providers: [
1225
- {
1226
- name: "Kintsugi Labs",
1227
- endpoint: "wss://api.interlay.io/parachain"
1322
+ endpoint: "wss://asset-hub-polkadot.dotters.network"
1228
1323
  },
1229
1324
  {
1230
1325
  name: "LuckyFriday",
1231
- endpoint: "wss://rpc-interlay.luckyfriday.io/"
1232
- }
1233
- ]
1234
- };
1235
- var Heima$1 = {
1236
- name: "Heima",
1237
- info: "heima",
1238
- paraId: 2013,
1239
- providers: [
1240
- {
1241
- name: "Dwellir",
1242
- endpoint: "wss://heima-rpc.n.dwellir.com"
1243
- },
1244
- {
1245
- name: "Heima",
1246
- endpoint: "wss://rpc.heima-parachain.heima.network"
1247
- }
1248
- ]
1249
- };
1250
- var Jamton$1 = {
1251
- name: "JAMTON",
1252
- info: "jamton",
1253
- paraId: 3397,
1254
- providers: [
1255
- {
1256
- name: "Jamton",
1257
- endpoint: "wss://rpc.jamton.network"
1258
- }
1259
- ]
1260
- };
1261
- var Moonbeam$1 = {
1262
- name: "Moonbeam",
1263
- info: "moonbeam",
1264
- paraId: 2004,
1265
- providers: [
1266
- {
1267
- name: "Allnodes",
1268
- endpoint: "wss://moonbeam-rpc.publicnode.com"
1269
- },
1270
- {
1271
- name: "Blast",
1272
- endpoint: "wss://moonbeam.public.blastapi.io"
1273
- },
1274
- {
1275
- name: "Dwellir",
1276
- endpoint: "wss://moonbeam-rpc.n.dwellir.com"
1277
- },
1278
- {
1279
- name: "IBP1",
1280
- endpoint: "wss://moonbeam.ibp.network"
1281
- },
1282
- {
1283
- name: "IBP2",
1284
- endpoint: "wss://moonbeam.dotters.network"
1326
+ endpoint: "wss://rpc-asset-hub-polkadot.luckyfriday.io"
1285
1327
  },
1286
1328
  {
1287
- name: "Moonbeam Foundation",
1288
- endpoint: "wss://wss.api.moonbeam.network"
1329
+ name: "OnFinality",
1330
+ endpoint: "wss://statemint.api.onfinality.io/public-ws"
1289
1331
  },
1290
1332
  {
1291
- name: "OnFinality",
1292
- endpoint: "wss://moonbeam.api.onfinality.io/public-ws"
1333
+ name: "Parity",
1334
+ endpoint: "wss://polkadot-asset-hub-rpc.polkadot.io"
1293
1335
  },
1294
1336
  {
1295
1337
  name: "RadiumBlock",
1296
- endpoint: "wss://moonbeam.public.curie.radiumblock.co/ws"
1338
+ endpoint: "wss://statemint.public.curie.radiumblock.co/ws"
1297
1339
  },
1298
1340
  {
1299
- name: "UnitedBloc",
1300
- endpoint: "wss://moonbeam.unitedbloc.com"
1341
+ name: "Stakeworld",
1342
+ endpoint: "wss://dot-rpc.stakeworld.io/assethub"
1301
1343
  }
1302
1344
  ]
1303
1345
  };
1304
- var CoretimePolkadot$1 = {
1305
- name: "Coretime",
1306
- info: "polkadotCoretime",
1307
- paraId: 1005,
1346
+ var Acala$1 = {
1347
+ name: "Acala",
1348
+ info: "acala",
1349
+ paraId: 2000,
1308
1350
  providers: [
1309
1351
  {
1310
- name: "Dwellir",
1311
- endpoint: "wss://coretime-polkadot-rpc.n.dwellir.com"
1312
- },
1313
- {
1314
- name: "IBP1",
1315
- endpoint: "wss://sys.ibp.network/coretime-polkadot"
1316
- },
1317
- {
1318
- name: "IBP2",
1319
- endpoint: "wss://coretime-polkadot.dotters.network"
1320
- },
1321
- {
1322
- name: "LuckyFriday",
1323
- endpoint: "wss://rpc-coretime-polkadot.luckyfriday.io"
1352
+ name: "Acala Foundation 0",
1353
+ endpoint: "wss://acala-rpc-0.aca-api.network"
1324
1354
  },
1325
1355
  {
1326
- name: "OnFinality",
1327
- endpoint: "wss://coretime-polkadot.api.onfinality.io/public-ws"
1356
+ name: "Acala Foundation 1",
1357
+ endpoint: "wss://acala-rpc-1.aca-api.network"
1328
1358
  },
1329
1359
  {
1330
- name: "Parity",
1331
- endpoint: "wss://polkadot-coretime-rpc.polkadot.io"
1360
+ name: "Acala Foundation 3",
1361
+ endpoint: "wss://acala-rpc-3.aca-api.network/ws"
1332
1362
  },
1333
- {
1334
- name: "Stakeworld",
1335
- endpoint: "wss://dot-rpc.stakeworld.io/coretime"
1336
- }
1337
- ]
1338
- };
1339
- var Collectives$1 = {
1340
- name: "Collectives",
1341
- info: "polkadotCollectives",
1342
- paraId: 1001,
1343
- providers: [
1344
1363
  {
1345
1364
  name: "Dwellir",
1346
- endpoint: "wss://collectives-polkadot-rpc.n.dwellir.com"
1347
- },
1348
- {
1349
- name: "Dwellir Tunisia",
1350
- endpoint: "wss://polkadot-collectives-rpc-tn.dwellir.com"
1365
+ endpoint: "wss://acala-rpc.n.dwellir.com"
1351
1366
  },
1352
1367
  {
1353
1368
  name: "IBP1",
1354
- endpoint: "wss://sys.ibp.network/collectives-polkadot"
1369
+ endpoint: "wss://acala.ibp.network"
1355
1370
  },
1356
1371
  {
1357
1372
  name: "IBP2",
1358
- endpoint: "wss://collectives-polkadot.dotters.network"
1359
- },
1360
- {
1361
- name: "LuckyFriday",
1362
- endpoint: "wss://rpc-collectives-polkadot.luckyfriday.io"
1363
- },
1364
- {
1365
- name: "OnFinality",
1366
- endpoint: "wss://collectives.api.onfinality.io/public-ws"
1367
- },
1368
- {
1369
- name: "Parity",
1370
- endpoint: "wss://polkadot-collectives-rpc.polkadot.io"
1371
- },
1372
- {
1373
- name: "RadiumBlock",
1374
- endpoint: "wss://collectives.public.curie.radiumblock.co/ws"
1375
- },
1376
- {
1377
- name: "Stakeworld",
1378
- endpoint: "wss://dot-rpc.stakeworld.io/collectives"
1373
+ endpoint: "wss://acala.dotters.network"
1379
1374
  }
1380
1375
  ]
1381
1376
  };
1382
- var Crust$1 = {
1383
- name: "Crust",
1384
- info: "crustParachain",
1385
- paraId: 2008,
1377
+ var Ajuna$1 = {
1378
+ name: "Ajuna Network",
1379
+ info: "ajuna",
1380
+ paraId: 2051,
1386
1381
  providers: [
1387
1382
  {
1388
- name: "Crust",
1389
- endpoint: "wss://crust-parachain.crustapps.net"
1390
- },
1391
- {
1392
- name: "Crust APP",
1393
- endpoint: "wss://crust-parachain.crustnetwork.app"
1383
+ name: "AjunaNetwork",
1384
+ endpoint: "wss://rpc-para.ajuna.network"
1394
1385
  },
1395
1386
  {
1396
- name: "Crust CC",
1397
- endpoint: "wss://crust-parachain.crustnetwork.cc"
1387
+ name: "IBP1",
1388
+ endpoint: "wss://ajuna.ibp.network"
1398
1389
  },
1399
1390
  {
1400
- name: "Crust XYZ",
1401
- endpoint: "wss://crust-parachain.crustnetwork.xyz"
1402
- }
1403
- ]
1404
- };
1405
- var Manta$1 = {
1406
- name: "Manta",
1407
- info: "manta",
1408
- paraId: 2104,
1409
- providers: [
1410
- {
1411
- name: "Manta Network",
1412
- endpoint: "wss://ws.manta.systems"
1391
+ name: "IBP2",
1392
+ endpoint: "wss://ajuna.dotters.network"
1413
1393
  }
1414
1394
  ]
1415
1395
  };
1416
- var Nodle$1 = {
1417
- name: "Nodle",
1418
- info: "nodle",
1419
- paraId: 2026,
1396
+ var Astar$1 = {
1397
+ name: "Astar",
1398
+ info: "astar",
1399
+ paraId: 2006,
1420
1400
  providers: [
1401
+ {
1402
+ name: "Astar",
1403
+ endpoint: "wss://rpc.astar.network"
1404
+ },
1405
+ {
1406
+ name: "Blast",
1407
+ endpoint: "wss://astar.public.blastapi.io"
1408
+ },
1421
1409
  {
1422
1410
  name: "Dwellir",
1423
- endpoint: "wss://nodle-rpc.dwellir.com"
1411
+ endpoint: "wss://astar-rpc.n.dwellir.com"
1424
1412
  },
1425
1413
  {
1426
1414
  name: "OnFinality",
1427
- endpoint: "wss://nodle-parachain.api.onfinality.io/public-ws"
1428
- }
1429
- ]
1430
- };
1431
- var NeuroWeb$1 = {
1432
- name: "NeuroWeb",
1433
- info: "neuroweb",
1434
- paraId: 2043,
1435
- providers: [
1415
+ endpoint: "wss://astar.api.onfinality.io/public-ws"
1416
+ },
1436
1417
  {
1437
- name: "TraceLabs",
1438
- endpoint: "wss://parachain-rpc.origin-trail.network"
1418
+ name: "RadiumBlock",
1419
+ endpoint: "wss://astar.public.curie.radiumblock.co/ws"
1439
1420
  }
1440
1421
  ]
1441
1422
  };
1442
- var Pendulum$1 = {
1443
- name: "Pendulum",
1444
- info: "pendulum",
1445
- paraId: 2094,
1423
+ var BifrostPolkadot$1 = {
1424
+ name: "Bifrost",
1425
+ info: "bifrost",
1426
+ paraId: 2030,
1446
1427
  providers: [
1447
1428
  {
1448
- name: "PendulumChain",
1449
- endpoint: "wss://rpc-pendulum.prd.pendulumchain.tech"
1429
+ name: "IBP1",
1430
+ endpoint: "wss://bifrost-polkadot.ibp.network"
1431
+ },
1432
+ {
1433
+ name: "IBP2",
1434
+ endpoint: "wss://bifrost-polkadot.dotters.network"
1435
+ },
1436
+ {
1437
+ name: "Liebi",
1438
+ endpoint: "wss://hk.p.bifrost-rpc.liebi.com/ws"
1439
+ },
1440
+ {
1441
+ name: "LiebiEU",
1442
+ endpoint: "wss://eu.bifrost-polkadot-rpc.liebi.com/ws"
1450
1443
  }
1451
1444
  ]
1452
1445
  };
1453
- var Phala$1 = {
1454
- name: "Phala Network",
1455
- info: "phala",
1456
- paraId: 2035,
1446
+ var BridgeHubPolkadot$1 = {
1447
+ name: "Bridge Hub",
1448
+ info: "polkadotBridgeHub",
1449
+ paraId: 1002,
1457
1450
  providers: [
1458
1451
  {
1459
1452
  name: "Dwellir",
1460
- endpoint: "wss://phala-rpc.n.dwellir.com"
1453
+ endpoint: "wss://bridge-hub-polkadot-rpc.n.dwellir.com"
1461
1454
  },
1462
1455
  {
1463
- name: "Helikon",
1464
- endpoint: "wss://rpc.helikon.io/phala"
1456
+ name: "Dwellir Tunisia",
1457
+ endpoint: "wss://polkadot-bridge-hub-rpc-tn.dwellir.com"
1458
+ },
1459
+ {
1460
+ name: "IBP1",
1461
+ endpoint: "wss://sys.ibp.network/bridgehub-polkadot"
1462
+ },
1463
+ {
1464
+ name: "IBP2",
1465
+ endpoint: "wss://bridge-hub-polkadot.dotters.network"
1466
+ },
1467
+ {
1468
+ name: "LuckyFriday",
1469
+ endpoint: "wss://rpc-bridge-hub-polkadot.luckyfriday.io"
1465
1470
  },
1466
1471
  {
1467
1472
  name: "OnFinality",
1468
- endpoint: "wss://phala.api.onfinality.io/public-ws"
1473
+ endpoint: "wss://bridgehub-polkadot.api.onfinality.io/public-ws"
1474
+ },
1475
+ {
1476
+ name: "Parity",
1477
+ endpoint: "wss://polkadot-bridge-hub-rpc.polkadot.io"
1469
1478
  },
1470
1479
  {
1471
1480
  name: "RadiumBlock",
1472
- endpoint: "wss://phala.public.curie.radiumblock.co/ws"
1473
- }
1474
- ]
1475
- };
1476
- var Subsocial$1 = {
1477
- name: "Subsocial",
1478
- info: "subsocial",
1479
- paraId: 2101,
1480
- providers: [
1481
+ endpoint: "wss://bridgehub-polkadot.public.curie.radiumblock.co/ws"
1482
+ },
1481
1483
  {
1482
- name: "Dappforce",
1483
- endpoint: "wss://para.subsocial.network"
1484
+ name: "Stakeworld",
1485
+ endpoint: "wss://dot-rpc.stakeworld.io/bridgehub"
1484
1486
  }
1485
1487
  ]
1486
1488
  };
1487
- var KiltSpiritnet$1 = {
1488
- name: "KILT Spiritnet",
1489
- info: "kilt",
1490
- paraId: 2086,
1489
+ var Centrifuge$1 = {
1490
+ name: "Centrifuge",
1491
+ info: "centrifuge",
1492
+ paraId: 2031,
1491
1493
  providers: [
1492
1494
  {
1493
- name: "IBP1",
1494
- endpoint: "wss://kilt.ibp.network"
1495
- },
1496
- {
1497
- name: "IBP2",
1498
- endpoint: "wss://kilt.dotters.network"
1495
+ name: "LuckyFriday",
1496
+ endpoint: "wss://rpc-centrifuge.luckyfriday.io"
1499
1497
  },
1500
1498
  {
1501
- name: "KILT Foundation",
1502
- endpoint: "wss://spiritnet.kilt.io/"
1499
+ name: "OnFinality",
1500
+ endpoint: "wss://centrifuge-parachain.api.onfinality.io/public-ws"
1503
1501
  }
1504
1502
  ]
1505
1503
  };
1506
- var Curio$1 = {
1507
- name: "Curio",
1508
- info: "curio",
1509
- paraId: 3339,
1504
+ var ComposableFinance$1 = {
1505
+ name: "Composable Finance",
1506
+ info: "composable",
1507
+ paraId: 2019,
1510
1508
  providers: [
1511
1509
  {
1512
- name: "Curio",
1513
- endpoint: "wss://parachain.curioinvest.com/"
1510
+ name: "Composable",
1511
+ endpoint: "wss://rpc.composable.finance"
1514
1512
  }
1515
1513
  ]
1516
1514
  };
1517
- var Mythos$1 = {
1518
- name: "Mythos",
1519
- info: "mythos",
1520
- paraId: 3369,
1515
+ var Darwinia$1 = {
1516
+ name: "Darwinia",
1517
+ info: "darwinia",
1518
+ paraId: 2046,
1521
1519
  providers: [
1522
1520
  {
1523
- name: "Helikon",
1524
- endpoint: "wss://rpc.helikon.io/mythos"
1525
- },
1526
- {
1527
- name: "IBP1",
1528
- endpoint: "wss://mythos.ibp.network"
1521
+ name: "Darwinia",
1522
+ endpoint: "wss://rpc.darwinia.network"
1529
1523
  },
1530
1524
  {
1531
- name: "IBP2",
1532
- endpoint: "wss://mythos.dotters.network"
1525
+ name: "Dwellir",
1526
+ endpoint: "wss://darwinia-rpc.n.dwellir.com"
1533
1527
  },
1534
1528
  {
1535
- name: "parity",
1536
- endpoint: "wss://polkadot-mythos-rpc.polkadot.io"
1529
+ name: "Subquery",
1530
+ endpoint: "wss://darwinia.rpc.subquery.network/public/ws"
1537
1531
  }
1538
1532
  ]
1539
1533
  };
1540
- var Peaq$1 = {
1541
- name: "peaq",
1542
- info: "peaq",
1543
- paraId: 3338,
1534
+ var EnergyWebX$1 = {
1535
+ name: "Energy Web X",
1536
+ info: "ewx",
1537
+ paraId: 3345,
1544
1538
  providers: [
1545
1539
  {
1546
- name: "OnFinality",
1547
- endpoint: "wss://peaq.api.onfinality.io/public-ws"
1540
+ name: "Energy Web",
1541
+ endpoint: "wss://public-rpc.mainnet.energywebx.com/"
1548
1542
  }
1549
1543
  ]
1550
1544
  };
1551
- var Polimec$1 = {
1552
- name: "Polimec",
1553
- info: "polimec",
1554
- paraId: 3344,
1545
+ var Hydration$1 = {
1546
+ name: "Hydration",
1547
+ info: "hydradx",
1548
+ paraId: 2034,
1555
1549
  providers: [
1556
1550
  {
1557
- name: "Amforc",
1558
- endpoint: "wss://polimec.rpc.amforc.com"
1551
+ name: "Dwellir",
1552
+ endpoint: "wss://hydration-rpc.n.dwellir.com"
1559
1553
  },
1560
1554
  {
1561
1555
  name: "Helikon",
1562
- endpoint: "wss://rpc.helikon.io/polimec"
1556
+ endpoint: "wss://rpc.helikon.io/hydradx"
1563
1557
  },
1564
1558
  {
1565
1559
  name: "IBP1",
1566
- endpoint: "wss://polimec.ibp.network"
1560
+ endpoint: "wss://hydration.ibp.network"
1567
1561
  },
1568
1562
  {
1569
1563
  name: "IBP2",
1570
- endpoint: "wss://polimec.dotters.network"
1571
- },
1572
- {
1573
- name: "Polimec Foundation",
1574
- endpoint: "wss://rpc.polimec.org"
1564
+ endpoint: "wss://hydration.dotters.network"
1575
1565
  }
1576
1566
  ]
1577
1567
  };
1578
- var RobonomicsPolkadot$1 = {
1579
- name: "Robonomics",
1580
- info: "robonomics",
1581
- paraId: 3388,
1568
+ var IntegriteePolkadot$1 = {
1569
+ name: "Integritee Network",
1570
+ info: "integritee",
1571
+ paraId: 2039,
1582
1572
  providers: [
1583
1573
  {
1584
- name: "Airalab",
1585
- endpoint: "wss://polkadot.rpc.robonomics.network/"
1574
+ name: "Integritee",
1575
+ endpoint: "wss://polkadot.api.integritee.network"
1586
1576
  }
1587
1577
  ]
1588
1578
  };
1589
- var PeoplePolkadot$1 = {
1590
- name: "People",
1591
- info: "polkadotPeople",
1592
- paraId: 1004,
1579
+ var Interlay$1 = {
1580
+ name: "Interlay",
1581
+ info: "interlay",
1582
+ paraId: 2032,
1593
1583
  providers: [
1594
1584
  {
1595
- name: "Dwellir",
1596
- endpoint: "wss://people-polkadot-rpc.n.dwellir.com"
1597
- },
1598
- {
1599
- name: "IBP1",
1600
- endpoint: "wss://sys.ibp.network/people-polkadot"
1601
- },
1602
- {
1603
- name: "IBP2",
1604
- endpoint: "wss://people-polkadot.dotters.network"
1585
+ name: "Kintsugi Labs",
1586
+ endpoint: "wss://api.interlay.io/parachain"
1605
1587
  },
1606
1588
  {
1607
1589
  name: "LuckyFriday",
1608
- endpoint: "wss://rpc-people-polkadot.luckyfriday.io"
1609
- },
1590
+ endpoint: "wss://rpc-interlay.luckyfriday.io/"
1591
+ }
1592
+ ]
1593
+ };
1594
+ var Heima$1 = {
1595
+ name: "Heima",
1596
+ info: "heima",
1597
+ paraId: 2013,
1598
+ providers: [
1610
1599
  {
1611
- name: "OnFinality",
1612
- endpoint: "wss://people-polkadot.api.onfinality.io/public-ws"
1600
+ name: "Dwellir",
1601
+ endpoint: "wss://heima-rpc.n.dwellir.com"
1613
1602
  },
1614
1603
  {
1615
- name: "Parity",
1616
- endpoint: "wss://polkadot-people-rpc.polkadot.io"
1617
- },
1604
+ name: "Heima",
1605
+ endpoint: "wss://rpc.heima-parachain.heima.network"
1606
+ }
1607
+ ]
1608
+ };
1609
+ var Jamton$1 = {
1610
+ name: "JAMTON",
1611
+ info: "jamton",
1612
+ paraId: 3397,
1613
+ providers: [
1618
1614
  {
1619
- name: "Stakeworld",
1620
- endpoint: "wss://dot-rpc.stakeworld.io/people"
1615
+ name: "Jamton",
1616
+ endpoint: "wss://rpc.jamton.network"
1621
1617
  }
1622
1618
  ]
1623
1619
  };
1624
- var Unique$1 = {
1625
- name: "Unique Network",
1626
- info: "unique",
1627
- paraId: 2037,
1620
+ var Moonbeam$1 = {
1621
+ name: "Moonbeam",
1622
+ info: "moonbeam",
1623
+ paraId: 2004,
1628
1624
  providers: [
1629
1625
  {
1630
- name: "Geo Load Balancer",
1631
- endpoint: "wss://ws.unique.network"
1626
+ name: "Allnodes",
1627
+ endpoint: "wss://moonbeam-rpc.publicnode.com"
1628
+ },
1629
+ {
1630
+ name: "Blast",
1631
+ endpoint: "wss://moonbeam.public.blastapi.io"
1632
+ },
1633
+ {
1634
+ name: "Dwellir",
1635
+ endpoint: "wss://moonbeam-rpc.n.dwellir.com"
1632
1636
  },
1633
1637
  {
1634
1638
  name: "IBP1",
1635
- endpoint: "wss://unique.ibp.network"
1639
+ endpoint: "wss://moonbeam.ibp.network"
1636
1640
  },
1637
1641
  {
1638
1642
  name: "IBP2",
1639
- endpoint: "wss://unique.dotters.network"
1643
+ endpoint: "wss://moonbeam.dotters.network"
1640
1644
  },
1641
1645
  {
1642
- name: "Unique America",
1643
- endpoint: "wss://us-ws.unique.network"
1646
+ name: "Moonbeam Foundation",
1647
+ endpoint: "wss://wss.api.moonbeam.network"
1644
1648
  },
1645
1649
  {
1646
- name: "Unique Asia",
1647
- endpoint: "wss://asia-ws.unique.network"
1650
+ name: "OnFinality",
1651
+ endpoint: "wss://moonbeam.api.onfinality.io/public-ws"
1648
1652
  },
1649
1653
  {
1650
- name: "Unique Europe",
1651
- endpoint: "wss://eu-ws.unique.network"
1652
- }
1653
- ]
1654
- };
1655
- var Xode$1 = {
1656
- name: "Xode",
1657
- info: "xode",
1658
- paraId: 3417,
1659
- providers: [
1660
- {
1661
- name: "XodeCommunity",
1662
- endpoint: "wss://polkadot-rpcnode.xode.net"
1654
+ name: "RadiumBlock",
1655
+ endpoint: "wss://moonbeam.public.curie.radiumblock.co/ws"
1663
1656
  },
1664
1657
  {
1665
- name: "Zeeve",
1666
- endpoint: "wss://xode-polkadot-rpc-01.zeeve.net/y0yxg038wn1fncc/rpc"
1658
+ name: "UnitedBloc",
1659
+ endpoint: "wss://moonbeam.unitedbloc.com"
1667
1660
  }
1668
1661
  ]
1669
1662
  };
1670
- var AssetHubKusama$1 = {
1671
- name: "Asset Hub",
1672
- info: "KusamaAssetHub",
1673
- paraId: 1000,
1663
+ var CoretimePolkadot$1 = {
1664
+ name: "Coretime",
1665
+ info: "polkadotCoretime",
1666
+ paraId: 1005,
1674
1667
  providers: [
1675
1668
  {
1676
1669
  name: "Dwellir",
1677
- endpoint: "wss://asset-hub-kusama-rpc.n.dwellir.com"
1678
- },
1679
- {
1680
- name: "Dwellir Tunisia",
1681
- endpoint: "wss://statemine-rpc-tn.dwellir.com"
1670
+ endpoint: "wss://coretime-polkadot-rpc.n.dwellir.com"
1682
1671
  },
1683
1672
  {
1684
1673
  name: "IBP1",
1685
- endpoint: "wss://sys.ibp.network/asset-hub-kusama"
1674
+ endpoint: "wss://sys.ibp.network/coretime-polkadot"
1686
1675
  },
1687
1676
  {
1688
1677
  name: "IBP2",
1689
- endpoint: "wss://asset-hub-kusama.dotters.network"
1678
+ endpoint: "wss://coretime-polkadot.dotters.network"
1690
1679
  },
1691
1680
  {
1692
1681
  name: "LuckyFriday",
1693
- endpoint: "wss://rpc-asset-hub-kusama.luckyfriday.io"
1682
+ endpoint: "wss://rpc-coretime-polkadot.luckyfriday.io"
1694
1683
  },
1695
1684
  {
1696
1685
  name: "OnFinality",
1697
- endpoint: "wss://assethub-kusama.api.onfinality.io/public-ws"
1686
+ endpoint: "wss://coretime-polkadot.api.onfinality.io/public-ws"
1698
1687
  },
1699
1688
  {
1700
1689
  name: "Parity",
1701
- endpoint: "wss://kusama-asset-hub-rpc.polkadot.io"
1702
- },
1703
- {
1704
- name: "RadiumBlock",
1705
- endpoint: "wss://statemine.public.curie.radiumblock.co/ws"
1690
+ endpoint: "wss://polkadot-coretime-rpc.polkadot.io"
1706
1691
  },
1707
1692
  {
1708
1693
  name: "Stakeworld",
1709
- endpoint: "wss://ksm-rpc.stakeworld.io/assethub"
1694
+ endpoint: "wss://dot-rpc.stakeworld.io/coretime"
1710
1695
  }
1711
1696
  ]
1712
1697
  };
1713
- var BridgeHubKusama$1 = {
1714
- name: "Bridge Hub",
1715
- info: "kusamaBridgeHub",
1716
- paraId: 1002,
1698
+ var Collectives$1 = {
1699
+ name: "Collectives",
1700
+ info: "polkadotCollectives",
1701
+ paraId: 1001,
1717
1702
  providers: [
1718
1703
  {
1719
1704
  name: "Dwellir",
1720
- endpoint: "wss://bridge-hub-kusama-rpc.n.dwellir.com"
1705
+ endpoint: "wss://collectives-polkadot-rpc.n.dwellir.com"
1721
1706
  },
1722
1707
  {
1723
1708
  name: "Dwellir Tunisia",
1724
- endpoint: "wss://kusama-bridge-hub-rpc-tn.dwellir.com"
1709
+ endpoint: "wss://polkadot-collectives-rpc-tn.dwellir.com"
1725
1710
  },
1726
1711
  {
1727
1712
  name: "IBP1",
1728
- endpoint: "wss://sys.ibp.network/bridgehub-kusama"
1713
+ endpoint: "wss://sys.ibp.network/collectives-polkadot"
1729
1714
  },
1730
1715
  {
1731
1716
  name: "IBP2",
1732
- endpoint: "wss://bridge-hub-kusama.dotters.network"
1717
+ endpoint: "wss://collectives-polkadot.dotters.network"
1733
1718
  },
1734
1719
  {
1735
1720
  name: "LuckyFriday",
1736
- endpoint: "wss://rpc-bridge-hub-kusama.luckyfriday.io"
1721
+ endpoint: "wss://rpc-collectives-polkadot.luckyfriday.io"
1737
1722
  },
1738
1723
  {
1739
1724
  name: "OnFinality",
1740
- endpoint: "wss://bridgehub-kusama.api.onfinality.io/public-ws"
1725
+ endpoint: "wss://collectives.api.onfinality.io/public-ws"
1741
1726
  },
1742
1727
  {
1743
1728
  name: "Parity",
1744
- endpoint: "wss://kusama-bridge-hub-rpc.polkadot.io"
1729
+ endpoint: "wss://polkadot-collectives-rpc.polkadot.io"
1745
1730
  },
1746
1731
  {
1747
1732
  name: "RadiumBlock",
1748
- endpoint: "wss://bridgehub-kusama.public.curie.radiumblock.co/ws"
1733
+ endpoint: "wss://collectives.public.curie.radiumblock.co/ws"
1749
1734
  },
1750
1735
  {
1751
1736
  name: "Stakeworld",
1752
- endpoint: "wss://ksm-rpc.stakeworld.io/bridgehub"
1753
- }
1754
- ]
1755
- };
1756
- var IntegriteeKusama$1 = {
1757
- name: "Integritee Network",
1758
- info: "integritee",
1759
- paraId: 2015,
1760
- providers: [
1761
- {
1762
- name: "Integritee",
1763
- endpoint: "wss://kusama.api.integritee.network"
1764
- },
1765
- {
1766
- name: "OnFinality",
1767
- endpoint: "wss://integritee-kusama.api.onfinality.io/public-ws"
1737
+ endpoint: "wss://dot-rpc.stakeworld.io/collectives"
1768
1738
  }
1769
1739
  ]
1770
1740
  };
1771
- var Karura$1 = {
1772
- name: "Karura",
1773
- info: "karura",
1774
- paraId: 2000,
1741
+ var Crust$1 = {
1742
+ name: "Crust",
1743
+ info: "crustParachain",
1744
+ paraId: 2008,
1775
1745
  providers: [
1776
1746
  {
1777
- name: "Acala Foundation 0",
1778
- endpoint: "wss://karura-rpc-0.aca-api.network"
1779
- },
1780
- {
1781
- name: "Acala Foundation 1",
1782
- endpoint: "wss://karura-rpc-1.aca-api.network"
1747
+ name: "Crust",
1748
+ endpoint: "wss://crust-parachain.crustapps.net"
1783
1749
  },
1784
1750
  {
1785
- name: "Acala Foundation 2",
1786
- endpoint: "wss://karura-rpc-2.aca-api.network/ws"
1751
+ name: "Crust APP",
1752
+ endpoint: "wss://crust-parachain.crustnetwork.app"
1787
1753
  },
1788
1754
  {
1789
- name: "Acala Foundation 3",
1790
- endpoint: "wss://karura-rpc-3.aca-api.network/ws"
1755
+ name: "Crust CC",
1756
+ endpoint: "wss://crust-parachain.crustnetwork.cc"
1791
1757
  },
1792
1758
  {
1793
- name: "Dwellir",
1794
- endpoint: "wss://karura-rpc.n.dwellir.com"
1759
+ name: "Crust XYZ",
1760
+ endpoint: "wss://crust-parachain.crustnetwork.xyz"
1795
1761
  }
1796
1762
  ]
1797
1763
  };
1798
- var Kintsugi$1 = {
1799
- name: "Kintsugi BTC",
1800
- info: "kintsugi",
1801
- paraId: 2092,
1764
+ var Manta$1 = {
1765
+ name: "Manta",
1766
+ info: "manta",
1767
+ paraId: 2104,
1802
1768
  providers: [
1803
1769
  {
1804
- name: "Kintsugi Labs",
1805
- endpoint: "wss://api-kusama.interlay.io/parachain"
1806
- },
1807
- {
1808
- name: "OnFinality",
1809
- endpoint: "wss://kintsugi.api.onfinality.io/public-ws"
1770
+ name: "Manta Network",
1771
+ endpoint: "wss://ws.manta.systems"
1810
1772
  }
1811
1773
  ]
1812
1774
  };
1813
- var Moonriver$1 = {
1814
- name: "Moonriver",
1815
- info: "moonriver",
1816
- paraId: 2023,
1775
+ var Nodle$1 = {
1776
+ name: "Nodle",
1777
+ info: "nodle",
1778
+ paraId: 2026,
1817
1779
  providers: [
1818
- {
1819
- name: "Allnodes",
1820
- endpoint: "wss://moonriver-rpc.publicnode.com"
1821
- },
1822
1780
  {
1823
1781
  name: "Dwellir",
1824
- endpoint: "wss://moonriver-rpc.n.dwellir.com"
1825
- },
1826
- {
1827
- name: "Moonbeam Foundation",
1828
- endpoint: "wss://wss.api.moonriver.moonbeam.network"
1782
+ endpoint: "wss://nodle-rpc.dwellir.com"
1829
1783
  },
1830
1784
  {
1831
1785
  name: "OnFinality",
1832
- endpoint: "wss://moonriver.api.onfinality.io/public-ws"
1833
- },
1834
- {
1835
- name: "RadiumBlock",
1836
- endpoint: "wss://moonriver.public.curie.radiumblock.co/ws"
1837
- },
1838
- {
1839
- name: "UnitedBloc",
1840
- endpoint: "wss://moonriver.unitedbloc.com"
1786
+ endpoint: "wss://nodle-parachain.api.onfinality.io/public-ws"
1841
1787
  }
1842
1788
  ]
1843
1789
  };
1844
- var CoretimeKusama$1 = {
1845
- name: "Coretime",
1846
- info: "kusamaCoretime",
1847
- paraId: 1005,
1790
+ var NeuroWeb$1 = {
1791
+ name: "NeuroWeb",
1792
+ info: "neuroweb",
1793
+ paraId: 2043,
1848
1794
  providers: [
1849
1795
  {
1850
- name: "Dwellir",
1851
- endpoint: "wss://coretime-kusama-rpc.n.dwellir.com"
1852
- },
1853
- {
1854
- name: "IBP1",
1855
- endpoint: "wss://sys.ibp.network/coretime-kusama"
1856
- },
1857
- {
1858
- name: "IBP2",
1859
- endpoint: "wss://coretime-kusama.dotters.network"
1860
- },
1861
- {
1862
- name: "LuckyFriday",
1863
- endpoint: "wss://rpc-coretime-kusama.luckyfriday.io"
1864
- },
1865
- {
1866
- name: "OnFinality",
1867
- endpoint: "wss://coretime-kusama.api.onfinality.io/public-ws"
1868
- },
1869
- {
1870
- name: "Parity",
1871
- endpoint: "wss://kusama-coretime-rpc.polkadot.io"
1872
- },
1796
+ name: "TraceLabs",
1797
+ endpoint: "wss://parachain-rpc.origin-trail.network"
1798
+ }
1799
+ ]
1800
+ };
1801
+ var Pendulum$1 = {
1802
+ name: "Pendulum",
1803
+ info: "pendulum",
1804
+ paraId: 2094,
1805
+ providers: [
1873
1806
  {
1874
- name: "Stakeworld",
1875
- endpoint: "wss://ksm-rpc.stakeworld.io/coretime"
1807
+ name: "PendulumChain",
1808
+ endpoint: "wss://rpc-pendulum.prd.pendulumchain.tech"
1876
1809
  }
1877
1810
  ]
1878
1811
  };
1879
- var Encointer$1 = {
1880
- name: "Encointer Network",
1881
- info: "encointer",
1882
- paraId: 1001,
1812
+ var Phala$1 = {
1813
+ name: "Phala Network",
1814
+ info: "phala",
1815
+ paraId: 2035,
1883
1816
  providers: [
1884
1817
  {
1885
1818
  name: "Dwellir",
1886
- endpoint: "wss://encointer-kusama-rpc.n.dwellir.com"
1887
- },
1888
- {
1889
- name: "Encointer Association",
1890
- endpoint: "wss://kusama.api.encointer.org"
1819
+ endpoint: "wss://phala-rpc.n.dwellir.com"
1891
1820
  },
1892
1821
  {
1893
- name: "IBP1",
1894
- endpoint: "wss://sys.ibp.network/encointer-kusama"
1822
+ name: "Helikon",
1823
+ endpoint: "wss://rpc.helikon.io/phala"
1895
1824
  },
1896
1825
  {
1897
- name: "IBP2",
1898
- endpoint: "wss://encointer-kusama.dotters.network"
1826
+ name: "OnFinality",
1827
+ endpoint: "wss://phala.api.onfinality.io/public-ws"
1899
1828
  },
1900
1829
  {
1901
- name: "LuckyFriday",
1902
- endpoint: "wss://rpc-encointer-kusama.luckyfriday.io"
1830
+ name: "RadiumBlock",
1831
+ endpoint: "wss://phala.public.curie.radiumblock.co/ws"
1903
1832
  }
1904
1833
  ]
1905
1834
  };
1906
- var Altair$1 = {
1907
- name: "Altair",
1908
- info: "altair",
1909
- paraId: 2088,
1835
+ var Subsocial$1 = {
1836
+ name: "Subsocial",
1837
+ info: "subsocial",
1838
+ paraId: 2101,
1910
1839
  providers: [
1911
1840
  {
1912
- name: "OnFinality",
1913
- endpoint: "wss://altair.api.onfinality.io/public-ws"
1841
+ name: "Dappforce",
1842
+ endpoint: "wss://para.subsocial.network"
1914
1843
  }
1915
1844
  ]
1916
1845
  };
1917
- var Amplitude$1 = {
1918
- name: "Amplitude",
1919
- info: "amplitude",
1920
- paraId: 2124,
1846
+ var KiltSpiritnet$1 = {
1847
+ name: "KILT Spiritnet",
1848
+ info: "kilt",
1849
+ paraId: 2086,
1921
1850
  providers: [
1922
1851
  {
1923
- name: "PendulumChain",
1924
- endpoint: "wss://rpc-amplitude.pendulumchain.tech"
1925
- }
1926
- ]
1927
- };
1928
- var Basilisk$1 = {
1929
- name: "Basilisk",
1930
- info: "basilisk",
1931
- paraId: 2090,
1932
- providers: [
1852
+ name: "IBP1",
1853
+ endpoint: "wss://kilt.ibp.network"
1854
+ },
1933
1855
  {
1934
- name: "Basilisk",
1935
- endpoint: "wss://rpc.basilisk.cloud"
1856
+ name: "IBP2",
1857
+ endpoint: "wss://kilt.dotters.network"
1936
1858
  },
1937
1859
  {
1938
- name: "Dwellir",
1939
- endpoint: "wss://basilisk-rpc.n.dwellir.com"
1860
+ name: "KILT Foundation",
1861
+ endpoint: "wss://spiritnet.kilt.io/"
1940
1862
  }
1941
1863
  ]
1942
1864
  };
1943
- var BifrostKusama$1 = {
1944
- name: "Bifrost",
1945
- info: "bifrost",
1946
- paraId: 2001,
1865
+ var Curio$1 = {
1866
+ name: "Curio",
1867
+ info: "curio",
1868
+ paraId: 3339,
1947
1869
  providers: [
1948
1870
  {
1949
- name: "Liebi",
1950
- endpoint: "wss://bifrost-rpc.liebi.com/ws"
1951
- },
1952
- {
1953
- name: "LiebiUS",
1954
- endpoint: "wss://us.bifrost-rpc.liebi.com/ws"
1871
+ name: "Curio",
1872
+ endpoint: "wss://parachain.curioinvest.com/"
1955
1873
  }
1956
1874
  ]
1957
1875
  };
1958
- var CrustShadow$1 = {
1959
- name: "Crust Shadow",
1960
- info: "shadow",
1961
- paraId: 2012,
1876
+ var Mythos$1 = {
1877
+ name: "Mythos",
1878
+ info: "mythos",
1879
+ paraId: 3369,
1962
1880
  providers: [
1963
1881
  {
1964
- name: "Crust",
1965
- endpoint: "wss://rpc-shadow.crust.network/"
1882
+ name: "Helikon",
1883
+ endpoint: "wss://rpc.helikon.io/mythos"
1966
1884
  },
1967
1885
  {
1968
- name: "Crust APP",
1969
- endpoint: "wss://rpc-shadow.crustnetwork.app"
1886
+ name: "IBP1",
1887
+ endpoint: "wss://mythos.ibp.network"
1970
1888
  },
1971
1889
  {
1972
- name: "Crust CC",
1973
- endpoint: "wss://rpc-shadow.crustnetwork.cc"
1890
+ name: "IBP2",
1891
+ endpoint: "wss://mythos.dotters.network"
1974
1892
  },
1975
1893
  {
1976
- name: "Crust XYZ",
1977
- endpoint: "wss://rpc-shadow.crustnetwork.xyz"
1894
+ name: "parity",
1895
+ endpoint: "wss://polkadot-mythos-rpc.polkadot.io"
1978
1896
  }
1979
1897
  ]
1980
1898
  };
1981
- var Crab$1 = {
1982
- name: "Crab",
1983
- info: "crab",
1984
- paraId: 2105,
1899
+ var Peaq$1 = {
1900
+ name: "peaq",
1901
+ info: "peaq",
1902
+ paraId: 3338,
1985
1903
  providers: [
1986
1904
  {
1987
- name: "Darwinia",
1988
- endpoint: "wss://crab-rpc.darwinia.network/"
1989
- },
1990
- {
1991
- name: "Dwellir",
1992
- endpoint: "wss://darwiniacrab-rpc.n.dwellir.com"
1905
+ name: "OnFinality",
1906
+ endpoint: "wss://peaq.api.onfinality.io/public-ws"
1993
1907
  }
1994
1908
  ]
1995
1909
  };
1996
- var Laos$1 = {
1997
- name: "Laos",
1998
- info: "laos",
1999
- paraId: 3370,
1910
+ var Polimec$1 = {
1911
+ name: "Polimec",
1912
+ info: "polimec",
1913
+ paraId: 3344,
2000
1914
  providers: [
2001
1915
  {
2002
- name: "laosfoundation.io",
2003
- endpoint: "wss://rpc.laos.laosfoundation.io"
2004
- }
2005
- ]
2006
- };
2007
- var Quartz$1 = {
2008
- name: "QUARTZ by UNIQUE",
2009
- info: "quartz",
2010
- paraId: 2095,
2011
- providers: [
1916
+ name: "Amforc",
1917
+ endpoint: "wss://polimec.rpc.amforc.com"
1918
+ },
2012
1919
  {
2013
- name: "Geo Load Balancer",
2014
- endpoint: "wss://ws-quartz.unique.network"
1920
+ name: "Helikon",
1921
+ endpoint: "wss://rpc.helikon.io/polimec"
2015
1922
  },
2016
1923
  {
2017
- name: "Unique Europe",
2018
- endpoint: "wss://eu-ws-quartz.unique.network"
1924
+ name: "IBP1",
1925
+ endpoint: "wss://polimec.ibp.network"
1926
+ },
1927
+ {
1928
+ name: "IBP2",
1929
+ endpoint: "wss://polimec.dotters.network"
1930
+ },
1931
+ {
1932
+ name: "Polimec Foundation",
1933
+ endpoint: "wss://rpc.polimec.org"
2019
1934
  }
2020
1935
  ]
2021
1936
  };
2022
- var RobonomicsKusama$1 = {
1937
+ var RobonomicsPolkadot$1 = {
2023
1938
  name: "Robonomics",
2024
1939
  info: "robonomics",
2025
- paraId: 2048,
1940
+ paraId: 3388,
2026
1941
  providers: [
2027
1942
  {
2028
1943
  name: "Airalab",
2029
- endpoint: "wss://kusama.rpc.robonomics.network/"
1944
+ endpoint: "wss://polkadot.rpc.robonomics.network/"
2030
1945
  }
2031
1946
  ]
2032
1947
  };
2033
- var PeopleKusama$1 = {
1948
+ var PeoplePolkadot$1 = {
2034
1949
  name: "People",
2035
- info: "kusamaPeople",
1950
+ info: "polkadotPeople",
2036
1951
  paraId: 1004,
2037
1952
  providers: [
2038
1953
  {
2039
1954
  name: "Dwellir",
2040
- endpoint: "wss://people-kusama-rpc.n.dwellir.com"
2041
- },
2042
- {
2043
- name: "Helixstreet",
2044
- endpoint: "wss://rpc-people-kusama.helixstreet.io"
1955
+ endpoint: "wss://people-polkadot-rpc.n.dwellir.com"
2045
1956
  },
2046
1957
  {
2047
1958
  name: "IBP1",
2048
- endpoint: "wss://sys.ibp.network/people-kusama"
1959
+ endpoint: "wss://sys.ibp.network/people-polkadot"
2049
1960
  },
2050
1961
  {
2051
1962
  name: "IBP2",
2052
- endpoint: "wss://people-kusama.dotters.network"
1963
+ endpoint: "wss://people-polkadot.dotters.network"
2053
1964
  },
2054
1965
  {
2055
1966
  name: "LuckyFriday",
2056
- endpoint: "wss://rpc-people-kusama.luckyfriday.io"
1967
+ endpoint: "wss://rpc-people-polkadot.luckyfriday.io"
2057
1968
  },
2058
1969
  {
2059
1970
  name: "OnFinality",
2060
- endpoint: "wss://people-kusama.api.onfinality.io/public-ws"
1971
+ endpoint: "wss://people-polkadot.api.onfinality.io/public-ws"
2061
1972
  },
2062
1973
  {
2063
1974
  name: "Parity",
2064
- endpoint: "wss://kusama-people-rpc.polkadot.io"
1975
+ endpoint: "wss://polkadot-people-rpc.polkadot.io"
2065
1976
  },
2066
1977
  {
2067
1978
  name: "Stakeworld",
2068
- endpoint: "wss://ksm-rpc.stakeworld.io/people"
1979
+ endpoint: "wss://dot-rpc.stakeworld.io/people"
2069
1980
  }
2070
1981
  ]
2071
1982
  };
2072
- var Shiden$1 = {
2073
- name: "Shiden",
2074
- info: "shiden",
2075
- paraId: 2007,
1983
+ var Unique$1 = {
1984
+ name: "Unique Network",
1985
+ info: "unique",
1986
+ paraId: 2037,
2076
1987
  providers: [
2077
1988
  {
2078
- name: "Astar",
2079
- endpoint: "wss://rpc.shiden.astar.network"
1989
+ name: "Geo Load Balancer",
1990
+ endpoint: "wss://ws.unique.network"
2080
1991
  },
2081
1992
  {
2082
- name: "Dwellir",
2083
- endpoint: "wss://shiden-rpc.n.dwellir.com"
1993
+ name: "IBP1",
1994
+ endpoint: "wss://unique.ibp.network"
2084
1995
  },
2085
1996
  {
2086
- name: "OnFinality",
2087
- endpoint: "wss://shiden.api.onfinality.io/public-ws"
1997
+ name: "IBP2",
1998
+ endpoint: "wss://unique.dotters.network"
2088
1999
  },
2089
2000
  {
2090
- name: "RadiumBlock",
2091
- endpoint: "wss://shiden.public.curie.radiumblock.co/ws"
2001
+ name: "Unique America",
2002
+ endpoint: "wss://us-ws.unique.network"
2003
+ },
2004
+ {
2005
+ name: "Unique Asia",
2006
+ endpoint: "wss://asia-ws.unique.network"
2007
+ },
2008
+ {
2009
+ name: "Unique Europe",
2010
+ endpoint: "wss://eu-ws.unique.network"
2092
2011
  }
2093
2012
  ]
2094
2013
  };
2095
- var Zeitgeist$1 = {
2096
- name: "Zeitgeist",
2097
- info: "zeitgeist",
2098
- paraId: 2092,
2014
+ var Xode$1 = {
2015
+ name: "Xode",
2016
+ info: "xode",
2017
+ paraId: 3417,
2099
2018
  providers: [
2100
2019
  {
2101
- name: "OnFinality",
2102
- endpoint: "wss://zeitgeist.api.onfinality.io/public-ws"
2020
+ name: "XodeCommunity",
2021
+ endpoint: "wss://polkadot-rpcnode.xode.net"
2022
+ },
2023
+ {
2024
+ name: "Zeeve",
2025
+ endpoint: "wss://xode-polkadot-rpc-01.zeeve.net/y0yxg038wn1fncc/rpc"
2103
2026
  }
2104
2027
  ]
2105
2028
  };
2106
- var AssetHubWestend$1 = {
2029
+ var AssetHubKusama$1 = {
2107
2030
  name: "Asset Hub",
2108
- info: "WestendAssetHub",
2031
+ info: "KusamaAssetHub",
2109
2032
  paraId: 1000,
2110
2033
  providers: [
2111
2034
  {
2112
2035
  name: "Dwellir",
2113
- endpoint: "wss://asset-hub-westend-rpc.n.dwellir.com"
2036
+ endpoint: "wss://asset-hub-kusama-rpc.n.dwellir.com"
2114
2037
  },
2115
2038
  {
2116
2039
  name: "Dwellir Tunisia",
2117
- endpoint: "wss://westmint-rpc-tn.dwellir.com"
2040
+ endpoint: "wss://statemine-rpc-tn.dwellir.com"
2041
+ },
2042
+ {
2043
+ name: "IBP1",
2044
+ endpoint: "wss://sys.ibp.network/asset-hub-kusama"
2045
+ },
2046
+ {
2047
+ name: "IBP2",
2048
+ endpoint: "wss://asset-hub-kusama.dotters.network"
2049
+ },
2050
+ {
2051
+ name: "LuckyFriday",
2052
+ endpoint: "wss://rpc-asset-hub-kusama.luckyfriday.io"
2053
+ },
2054
+ {
2055
+ name: "OnFinality",
2056
+ endpoint: "wss://assethub-kusama.api.onfinality.io/public-ws"
2118
2057
  },
2119
2058
  {
2120
2059
  name: "Parity",
2121
- endpoint: "wss://westend-asset-hub-rpc.polkadot.io"
2060
+ endpoint: "wss://kusama-asset-hub-rpc.polkadot.io"
2122
2061
  },
2123
2062
  {
2124
- name: "Permanence DAO EU",
2125
- endpoint: "wss://asset-hub-westend.rpc.permanence.io"
2063
+ name: "RadiumBlock",
2064
+ endpoint: "wss://statemine.public.curie.radiumblock.co/ws"
2065
+ },
2066
+ {
2067
+ name: "Stakeworld",
2068
+ endpoint: "wss://ksm-rpc.stakeworld.io/assethub"
2126
2069
  }
2127
2070
  ]
2128
2071
  };
2129
- var BridgeHubWestend$1 = {
2072
+ var BridgeHubKusama$1 = {
2130
2073
  name: "Bridge Hub",
2131
- info: "westendBridgeHub",
2074
+ info: "kusamaBridgeHub",
2132
2075
  paraId: 1002,
2133
2076
  providers: [
2134
2077
  {
2135
2078
  name: "Dwellir",
2136
- endpoint: "wss://bridge-hub-westend-rpc.n.dwellir.com"
2079
+ endpoint: "wss://bridge-hub-kusama-rpc.n.dwellir.com"
2137
2080
  },
2138
2081
  {
2139
2082
  name: "Dwellir Tunisia",
2140
- endpoint: "wss://westend-bridge-hub-rpc-tn.dwellir.com"
2083
+ endpoint: "wss://kusama-bridge-hub-rpc-tn.dwellir.com"
2141
2084
  },
2142
2085
  {
2143
- name: "Parity",
2144
- endpoint: "wss://westend-bridge-hub-rpc.polkadot.io"
2145
- }
2146
- ]
2147
- };
2148
- var CollectivesWestend$1 = {
2149
- name: "Collectives",
2150
- info: "westendCollectives",
2151
- paraId: 1001,
2152
- providers: [
2086
+ name: "IBP1",
2087
+ endpoint: "wss://sys.ibp.network/bridgehub-kusama"
2088
+ },
2153
2089
  {
2154
- name: "Dwellir",
2155
- endpoint: "wss://collectives-westend-rpc.n.dwellir.com"
2090
+ name: "IBP2",
2091
+ endpoint: "wss://bridge-hub-kusama.dotters.network"
2156
2092
  },
2157
2093
  {
2158
- name: "Dwellir Tunisia",
2159
- endpoint: "wss://westend-collectives-rpc-tn.dwellir.com"
2094
+ name: "LuckyFriday",
2095
+ endpoint: "wss://rpc-bridge-hub-kusama.luckyfriday.io"
2096
+ },
2097
+ {
2098
+ name: "OnFinality",
2099
+ endpoint: "wss://bridgehub-kusama.api.onfinality.io/public-ws"
2160
2100
  },
2161
2101
  {
2162
2102
  name: "Parity",
2163
- endpoint: "wss://westend-collectives-rpc.polkadot.io"
2164
- }
2165
- ]
2166
- };
2167
- var CoretimeWestend$1 = {
2168
- name: "Coretime",
2169
- info: "westendCoretime",
2170
- paraId: 1005,
2171
- providers: [
2103
+ endpoint: "wss://kusama-bridge-hub-rpc.polkadot.io"
2104
+ },
2172
2105
  {
2173
- name: "Dwellir",
2174
- endpoint: "wss://coretime-westend-rpc.n.dwellir.com"
2106
+ name: "RadiumBlock",
2107
+ endpoint: "wss://bridgehub-kusama.public.curie.radiumblock.co/ws"
2175
2108
  },
2176
2109
  {
2177
- name: "Parity",
2178
- endpoint: "wss://westend-coretime-rpc.polkadot.io"
2110
+ name: "Stakeworld",
2111
+ endpoint: "wss://ksm-rpc.stakeworld.io/bridgehub"
2179
2112
  }
2180
2113
  ]
2181
2114
  };
2182
- var Penpal$1 = {
2183
- name: "Penpal",
2184
- info: "westendPenpal",
2185
- paraId: 2042,
2115
+ var IntegriteeKusama$1 = {
2116
+ name: "Integritee Network",
2117
+ info: "integritee",
2118
+ paraId: 2015,
2186
2119
  providers: [
2187
2120
  {
2188
- name: "Parity",
2189
- endpoint: "wss://westend-penpal-rpc.polkadot.io"
2121
+ name: "Integritee",
2122
+ endpoint: "wss://kusama.api.integritee.network"
2123
+ },
2124
+ {
2125
+ name: "OnFinality",
2126
+ endpoint: "wss://integritee-kusama.api.onfinality.io/public-ws"
2190
2127
  }
2191
2128
  ]
2192
2129
  };
2193
- var PeopleWestend$1 = {
2194
- name: "People",
2195
- info: "westendPeople",
2196
- paraId: 1004,
2130
+ var Karura$1 = {
2131
+ name: "Karura",
2132
+ info: "karura",
2133
+ paraId: 2000,
2197
2134
  providers: [
2198
2135
  {
2199
- name: "Dwellir",
2200
- endpoint: "wss://people-westend-rpc.n.dwellir.com"
2136
+ name: "Acala Foundation 0",
2137
+ endpoint: "wss://karura-rpc-0.aca-api.network"
2201
2138
  },
2202
2139
  {
2203
- name: "Parity",
2204
- endpoint: "wss://westend-people-rpc.polkadot.io"
2140
+ name: "Acala Foundation 1",
2141
+ endpoint: "wss://karura-rpc-1.aca-api.network"
2142
+ },
2143
+ {
2144
+ name: "Acala Foundation 2",
2145
+ endpoint: "wss://karura-rpc-2.aca-api.network/ws"
2146
+ },
2147
+ {
2148
+ name: "Acala Foundation 3",
2149
+ endpoint: "wss://karura-rpc-3.aca-api.network/ws"
2150
+ },
2151
+ {
2152
+ name: "Dwellir",
2153
+ endpoint: "wss://karura-rpc.n.dwellir.com"
2205
2154
  }
2206
2155
  ]
2207
2156
  };
2208
- var AjunaPaseo$1 = {
2209
- name: "Ajuna Network (Paseo)",
2210
- info: "Ajuna(paseo)",
2211
- paraId: 2051,
2157
+ var Kintsugi$1 = {
2158
+ name: "Kintsugi BTC",
2159
+ info: "kintsugi",
2160
+ paraId: 2092,
2212
2161
  providers: [
2213
2162
  {
2214
- name: "BajunNetwork",
2215
- endpoint: "wss://rpc-paseo.ajuna.network"
2163
+ name: "Kintsugi Labs",
2164
+ endpoint: "wss://api-kusama.interlay.io/parachain"
2165
+ },
2166
+ {
2167
+ name: "OnFinality",
2168
+ endpoint: "wss://kintsugi.api.onfinality.io/public-ws"
2216
2169
  }
2217
2170
  ]
2218
2171
  };
2219
- var AssetHubPaseo$1 = {
2220
- name: "Asset Hub",
2221
- info: "PaseoAssetHub",
2222
- paraId: 1000,
2172
+ var Moonriver$1 = {
2173
+ name: "Moonriver",
2174
+ info: "moonriver",
2175
+ paraId: 2023,
2223
2176
  providers: [
2177
+ {
2178
+ name: "Allnodes",
2179
+ endpoint: "wss://moonriver-rpc.publicnode.com"
2180
+ },
2224
2181
  {
2225
2182
  name: "Dwellir",
2226
- endpoint: "wss://asset-hub-paseo-rpc.n.dwellir.com"
2183
+ endpoint: "wss://moonriver-rpc.n.dwellir.com"
2227
2184
  },
2228
2185
  {
2229
- name: "IBP1",
2230
- endpoint: "wss://sys.ibp.network/asset-hub-paseo"
2186
+ name: "Moonbeam Foundation",
2187
+ endpoint: "wss://wss.api.moonriver.moonbeam.network"
2231
2188
  },
2232
2189
  {
2233
- name: "IBP2",
2234
- endpoint: "wss://asset-hub-paseo.dotters.network"
2190
+ name: "OnFinality",
2191
+ endpoint: "wss://moonriver.api.onfinality.io/public-ws"
2235
2192
  },
2236
2193
  {
2237
- name: "StakeWorld",
2238
- endpoint: "wss://pas-rpc.stakeworld.io/assethub"
2194
+ name: "RadiumBlock",
2195
+ endpoint: "wss://moonriver.public.curie.radiumblock.co/ws"
2239
2196
  },
2240
2197
  {
2241
- name: "TurboFlakes",
2242
- endpoint: "wss://sys.turboflakes.io/asset-hub-paseo"
2198
+ name: "UnitedBloc",
2199
+ endpoint: "wss://moonriver.unitedbloc.com"
2243
2200
  }
2244
2201
  ]
2245
2202
  };
2246
- var BifrostPaseo$1 = {
2247
- name: "Bifrost",
2248
- info: "Bifrost(Paseo)",
2249
- paraId: 2030,
2203
+ var CoretimeKusama$1 = {
2204
+ name: "Coretime",
2205
+ info: "kusamaCoretime",
2206
+ paraId: 1005,
2250
2207
  providers: [
2251
2208
  {
2252
- name: "Liebi",
2253
- endpoint: "wss://bifrost-rpc.paseo.liebi.com/ws"
2254
- }
2255
- ]
2256
- };
2257
- var BridgeHubPaseo$1 = {
2258
- name: "Bridge Hub",
2259
- info: "PaseoBridgeHub",
2260
- paraId: 1002,
2261
- providers: [
2209
+ name: "Dwellir",
2210
+ endpoint: "wss://coretime-kusama-rpc.n.dwellir.com"
2211
+ },
2262
2212
  {
2263
2213
  name: "IBP1",
2264
- endpoint: "wss://sys.ibp.network/bridgehub-paseo"
2214
+ endpoint: "wss://sys.ibp.network/coretime-kusama"
2265
2215
  },
2266
2216
  {
2267
2217
  name: "IBP2",
2268
- endpoint: "wss://bridge-hub-paseo.dotters.network"
2269
- }
2270
- ]
2271
- };
2272
- var CoretimePaseo$1 = {
2273
- name: "Coretime",
2274
- info: "PaseoCoretime",
2275
- paraId: 1005,
2276
- providers: [
2218
+ endpoint: "wss://coretime-kusama.dotters.network"
2219
+ },
2277
2220
  {
2278
- name: "IBP1",
2279
- endpoint: "wss://sys.ibp.network/coretime-paseo"
2221
+ name: "LuckyFriday",
2222
+ endpoint: "wss://rpc-coretime-kusama.luckyfriday.io"
2280
2223
  },
2281
2224
  {
2282
- name: "IBP2",
2283
- endpoint: "wss://coretime-paseo.dotters.network"
2284
- }
2285
- ]
2286
- };
2287
- var EnergyWebXPaseo$1 = {
2288
- name: "PEX",
2289
- info: "paseoEwx",
2290
- paraId: 3345,
2291
- providers: [
2225
+ name: "OnFinality",
2226
+ endpoint: "wss://coretime-kusama.api.onfinality.io/public-ws"
2227
+ },
2292
2228
  {
2293
- name: "Energy Web",
2294
- endpoint: "wss://public-rpc.testnet.energywebx.com/"
2295
- }
2296
- ]
2297
- };
2298
- var HeimaPaseo$1 = {
2299
- name: "Heima paseo",
2300
- info: "heima-paseo",
2301
- paraId: 2106,
2302
- providers: [
2229
+ name: "Parity",
2230
+ endpoint: "wss://kusama-coretime-rpc.polkadot.io"
2231
+ },
2303
2232
  {
2304
- name: "Heima",
2305
- endpoint: "wss://rpc.paseo-parachain.heima.network"
2233
+ name: "Stakeworld",
2234
+ endpoint: "wss://ksm-rpc.stakeworld.io/coretime"
2306
2235
  }
2307
2236
  ]
2308
2237
  };
2309
- var HydrationPaseo$1 = {
2310
- name: "Hydration (Paseo)",
2311
- info: "rococoHydraDX",
2312
- paraId: 2034,
2238
+ var Encointer$1 = {
2239
+ name: "Encointer Network",
2240
+ info: "encointer",
2241
+ paraId: 1001,
2313
2242
  providers: [
2314
2243
  {
2315
- name: "Galactic Council",
2316
- endpoint: "wss://paseo-rpc.play.hydration.cloud"
2317
- }
2318
- ]
2319
- };
2320
- var IntegriteePaseo$1 = {
2321
- name: "Integritee Network (Paseo)",
2322
- info: "integritee",
2323
- paraId: 2039,
2324
- providers: [
2244
+ name: "Dwellir",
2245
+ endpoint: "wss://encointer-kusama-rpc.n.dwellir.com"
2246
+ },
2325
2247
  {
2326
- name: "Integritee",
2327
- endpoint: "wss://paseo.api.integritee.network"
2248
+ name: "Encointer Association",
2249
+ endpoint: "wss://kusama.api.encointer.org"
2250
+ },
2251
+ {
2252
+ name: "IBP1",
2253
+ endpoint: "wss://sys.ibp.network/encointer-kusama"
2254
+ },
2255
+ {
2256
+ name: "IBP2",
2257
+ endpoint: "wss://encointer-kusama.dotters.network"
2258
+ },
2259
+ {
2260
+ name: "LuckyFriday",
2261
+ endpoint: "wss://rpc-encointer-kusama.luckyfriday.io"
2328
2262
  }
2329
2263
  ]
2330
2264
  };
2331
- var KiltPaseo$1 = {
2332
- name: "KILT Peregrine",
2333
- info: "kilt",
2334
- paraId: 2086,
2265
+ var Altair$1 = {
2266
+ name: "Altair",
2267
+ info: "altair",
2268
+ paraId: 2088,
2335
2269
  providers: [
2336
2270
  {
2337
- name: "KILT Foundation",
2338
- endpoint: "wss://peregrine.kilt.io/"
2271
+ name: "OnFinality",
2272
+ endpoint: "wss://altair.api.onfinality.io/public-ws"
2339
2273
  }
2340
2274
  ]
2341
2275
  };
2342
- var LaosPaseo$1 = {
2343
- name: "Laos Sigma",
2344
- info: "laos-sigma",
2345
- paraId: 4006,
2276
+ var Amplitude$1 = {
2277
+ name: "Amplitude",
2278
+ info: "amplitude",
2279
+ paraId: 2124,
2346
2280
  providers: [
2347
2281
  {
2348
- name: "freeverse.io",
2349
- endpoint: "wss://rpc.laossigma.laosfoundation.io"
2282
+ name: "PendulumChain",
2283
+ endpoint: "wss://rpc-amplitude.pendulumchain.tech"
2350
2284
  }
2351
2285
  ]
2352
2286
  };
2353
- var NeuroWebPaseo$1 = {
2354
- name: "NeuroWeb Testnet",
2355
- info: "NeuroWeb",
2356
- paraId: 2043,
2287
+ var Basilisk$1 = {
2288
+ name: "Basilisk",
2289
+ info: "basilisk",
2290
+ paraId: 2090,
2357
2291
  providers: [
2358
2292
  {
2359
- name: "TraceLabs",
2360
- endpoint: "wss://parachain-testnet-rpc.origin-trail.network/"
2293
+ name: "Basilisk",
2294
+ endpoint: "wss://rpc.basilisk.cloud"
2295
+ },
2296
+ {
2297
+ name: "Dwellir",
2298
+ endpoint: "wss://basilisk-rpc.n.dwellir.com"
2361
2299
  }
2362
2300
  ]
2363
2301
  };
2364
- var NodlePaseo$1 = {
2365
- name: "Nodle",
2366
- info: "NodleParadis",
2367
- paraId: 2026,
2302
+ var BifrostKusama$1 = {
2303
+ name: "Bifrost",
2304
+ info: "bifrost",
2305
+ paraId: 2001,
2368
2306
  providers: [
2369
2307
  {
2370
- name: "OnFinality",
2371
- endpoint: "wss://node-7273232234617282560.nv.onfinality.io/ws?apikey=b937a7d7-7395-49b9-b745-60a0342fa365"
2308
+ name: "Liebi",
2309
+ endpoint: "wss://bifrost-rpc.liebi.com/ws"
2310
+ },
2311
+ {
2312
+ name: "LiebiUS",
2313
+ endpoint: "wss://us.bifrost-rpc.liebi.com/ws"
2372
2314
  }
2373
2315
  ]
2374
2316
  };
2375
- var PAssetHub$1 = {
2376
- name: "PAssetHub - Contracts",
2377
- info: "PAssetHub - Contracts",
2378
- paraId: 1111,
2317
+ var CrustShadow$1 = {
2318
+ name: "Crust Shadow",
2319
+ info: "shadow",
2320
+ paraId: 2012,
2379
2321
  providers: [
2380
2322
  {
2381
- name: "IBP1",
2382
- endpoint: "wss://passet-hub-paseo.ibp.network"
2323
+ name: "Crust",
2324
+ endpoint: "wss://rpc-shadow.crust.network/"
2383
2325
  },
2384
2326
  {
2385
- name: "IBP2",
2386
- endpoint: "wss://passet-hub-paseo.dotters.network"
2327
+ name: "Crust APP",
2328
+ endpoint: "wss://rpc-shadow.crustnetwork.app"
2387
2329
  },
2388
2330
  {
2389
- name: "Parity",
2390
- endpoint: "wss://testnet-passet-hub.polkadot.io"
2331
+ name: "Crust CC",
2332
+ endpoint: "wss://rpc-shadow.crustnetwork.cc"
2333
+ },
2334
+ {
2335
+ name: "Crust XYZ",
2336
+ endpoint: "wss://rpc-shadow.crustnetwork.xyz"
2391
2337
  }
2392
2338
  ]
2393
2339
  };
2394
- var PeoplePaseo$1 = {
2395
- name: "People",
2396
- info: "PaseoPeopleChain",
2397
- paraId: 1004,
2340
+ var Crab$1 = {
2341
+ name: "Crab",
2342
+ info: "crab",
2343
+ paraId: 2105,
2398
2344
  providers: [
2399
2345
  {
2400
- name: "Amforc",
2401
- endpoint: "wss://people-paseo.rpc.amforc.com"
2402
- },
2403
- {
2404
- name: "IBP1",
2405
- endpoint: "wss://sys.ibp.network/people-paseo"
2346
+ name: "Darwinia",
2347
+ endpoint: "wss://crab-rpc.darwinia.network/"
2406
2348
  },
2407
2349
  {
2408
- name: "IBP2",
2409
- endpoint: "wss://people-paseo.dotters.network"
2350
+ name: "Dwellir",
2351
+ endpoint: "wss://darwiniacrab-rpc.n.dwellir.com"
2410
2352
  }
2411
2353
  ]
2412
2354
  };
2413
- var ZeitgeistPaseo$1 = {
2414
- name: "Zeitgeist Battery Station",
2415
- info: "ZeitgeistBatteryStation",
2416
- paraId: 2101,
2355
+ var Laos$1 = {
2356
+ name: "Laos",
2357
+ info: "laos",
2358
+ paraId: 3370,
2417
2359
  providers: [
2418
2360
  {
2419
- name: "Zeitgeist",
2420
- endpoint: "wss://bsr.zeitgeist.pm"
2361
+ name: "laosfoundation.io",
2362
+ endpoint: "wss://rpc.laos.laosfoundation.io"
2421
2363
  }
2422
2364
  ]
2423
2365
  };
2424
- var Polkadot = {
2425
- name: "Polkadot Relay",
2426
- info: "polkadot",
2427
- paraId: 0,
2366
+ var Quartz$1 = {
2367
+ name: "QUARTZ by UNIQUE",
2368
+ info: "quartz",
2369
+ paraId: 2095,
2428
2370
  providers: [
2429
2371
  {
2430
- name: "Allnodes",
2431
- endpoint: "wss://polkadot-rpc.publicnode.com"
2372
+ name: "Geo Load Balancer",
2373
+ endpoint: "wss://ws-quartz.unique.network"
2432
2374
  },
2433
2375
  {
2434
- name: "Blockops",
2435
- endpoint: "wss://polkadot-public-rpc.blockops.network/ws"
2436
- },
2376
+ name: "Unique Europe",
2377
+ endpoint: "wss://eu-ws-quartz.unique.network"
2378
+ }
2379
+ ]
2380
+ };
2381
+ var RobonomicsKusama$1 = {
2382
+ name: "Robonomics",
2383
+ info: "robonomics",
2384
+ paraId: 2048,
2385
+ providers: [
2437
2386
  {
2438
- name: "Dwellir",
2439
- endpoint: "wss://polkadot-rpc.n.dwellir.com"
2440
- },
2387
+ name: "Airalab",
2388
+ endpoint: "wss://kusama.rpc.robonomics.network/"
2389
+ }
2390
+ ]
2391
+ };
2392
+ var PeopleKusama$1 = {
2393
+ name: "People",
2394
+ info: "kusamaPeople",
2395
+ paraId: 1004,
2396
+ providers: [
2441
2397
  {
2442
- name: "Dwellir Tunisia",
2443
- endpoint: "wss://polkadot-rpc-tn.dwellir.com"
2398
+ name: "Dwellir",
2399
+ endpoint: "wss://people-kusama-rpc.n.dwellir.com"
2444
2400
  },
2445
2401
  {
2446
2402
  name: "Helixstreet",
2447
- endpoint: "wss://rpc-polkadot.helixstreet.io"
2403
+ endpoint: "wss://rpc-people-kusama.helixstreet.io"
2448
2404
  },
2449
2405
  {
2450
2406
  name: "IBP1",
2451
- endpoint: "wss://rpc.ibp.network/polkadot"
2407
+ endpoint: "wss://sys.ibp.network/people-kusama"
2452
2408
  },
2453
2409
  {
2454
2410
  name: "IBP2",
2455
- endpoint: "wss://polkadot.dotters.network"
2411
+ endpoint: "wss://people-kusama.dotters.network"
2456
2412
  },
2457
2413
  {
2458
2414
  name: "LuckyFriday",
2459
- endpoint: "wss://rpc-polkadot.luckyfriday.io"
2415
+ endpoint: "wss://rpc-people-kusama.luckyfriday.io"
2460
2416
  },
2461
2417
  {
2462
2418
  name: "OnFinality",
2463
- endpoint: "wss://polkadot.api.onfinality.io/public-ws"
2419
+ endpoint: "wss://people-kusama.api.onfinality.io/public-ws"
2464
2420
  },
2465
2421
  {
2466
- name: "Permanence DAO EU",
2467
- endpoint: "wss://polkadot.rpc.permanence.io"
2422
+ name: "Parity",
2423
+ endpoint: "wss://kusama-people-rpc.polkadot.io"
2468
2424
  },
2469
2425
  {
2470
- name: "RadiumBlock",
2471
- endpoint: "wss://polkadot.public.curie.radiumblock.co/ws"
2426
+ name: "Stakeworld",
2427
+ endpoint: "wss://ksm-rpc.stakeworld.io/people"
2428
+ }
2429
+ ]
2430
+ };
2431
+ var Shiden$1 = {
2432
+ name: "Shiden",
2433
+ info: "shiden",
2434
+ paraId: 2007,
2435
+ providers: [
2436
+ {
2437
+ name: "Astar",
2438
+ endpoint: "wss://rpc.shiden.astar.network"
2472
2439
  },
2473
2440
  {
2474
- name: "Simply Staking",
2475
- endpoint: "wss://spectrum-03.simplystaking.xyz/cG9sa2Fkb3QtMDMtOTFkMmYwZGYtcG9sa2Fkb3Q/LjwBJpV3dIKyWQ/polkadot/mainnet/"
2441
+ name: "Dwellir",
2442
+ endpoint: "wss://shiden-rpc.n.dwellir.com"
2476
2443
  },
2477
2444
  {
2478
- name: "Stakeworld",
2479
- endpoint: "wss://dot-rpc.stakeworld.io"
2445
+ name: "OnFinality",
2446
+ endpoint: "wss://shiden.api.onfinality.io/public-ws"
2480
2447
  },
2481
2448
  {
2482
- name: "SubQuery",
2483
- endpoint: "wss://polkadot.rpc.subquery.network/public/ws"
2449
+ name: "RadiumBlock",
2450
+ endpoint: "wss://shiden.public.curie.radiumblock.co/ws"
2484
2451
  }
2485
2452
  ]
2486
2453
  };
2487
- var Kusama = {
2488
- name: "Kusama Relay",
2489
- info: "kusama",
2490
- paraId: 0,
2454
+ var Zeitgeist$1 = {
2455
+ name: "Zeitgeist",
2456
+ info: "zeitgeist",
2457
+ paraId: 2092,
2491
2458
  providers: [
2492
2459
  {
2493
- name: "Allnodes",
2494
- endpoint: "wss://kusama-rpc.publicnode.com"
2495
- },
2496
- {
2497
- name: "Blockops",
2498
- endpoint: "wss://kusama-public-rpc.blockops.network/ws"
2499
- },
2460
+ name: "OnFinality",
2461
+ endpoint: "wss://zeitgeist.api.onfinality.io/public-ws"
2462
+ }
2463
+ ]
2464
+ };
2465
+ var AssetHubWestend$1 = {
2466
+ name: "Asset Hub",
2467
+ info: "WestendAssetHub",
2468
+ paraId: 1000,
2469
+ providers: [
2500
2470
  {
2501
2471
  name: "Dwellir",
2502
- endpoint: "wss://kusama-rpc.n.dwellir.com"
2472
+ endpoint: "wss://asset-hub-westend-rpc.n.dwellir.com"
2503
2473
  },
2504
2474
  {
2505
2475
  name: "Dwellir Tunisia",
2506
- endpoint: "wss://kusama-rpc-tn.dwellir.com"
2476
+ endpoint: "wss://westmint-rpc-tn.dwellir.com"
2507
2477
  },
2508
2478
  {
2509
- name: "Helixstreet",
2510
- endpoint: "wss://rpc-kusama.helixstreet.io"
2479
+ name: "Parity",
2480
+ endpoint: "wss://westend-asset-hub-rpc.polkadot.io"
2511
2481
  },
2512
2482
  {
2513
- name: "IBP1",
2514
- endpoint: "wss://rpc.ibp.network/kusama"
2515
- },
2483
+ name: "Permanence DAO EU",
2484
+ endpoint: "wss://asset-hub-westend.rpc.permanence.io"
2485
+ }
2486
+ ]
2487
+ };
2488
+ var BridgeHubWestend$1 = {
2489
+ name: "Bridge Hub",
2490
+ info: "westendBridgeHub",
2491
+ paraId: 1002,
2492
+ providers: [
2516
2493
  {
2517
- name: "IBP2",
2518
- endpoint: "wss://kusama.dotters.network"
2494
+ name: "Dwellir",
2495
+ endpoint: "wss://bridge-hub-westend-rpc.n.dwellir.com"
2519
2496
  },
2520
2497
  {
2521
- name: "LuckyFriday",
2522
- endpoint: "wss://rpc-kusama.luckyfriday.io"
2498
+ name: "Dwellir Tunisia",
2499
+ endpoint: "wss://westend-bridge-hub-rpc-tn.dwellir.com"
2523
2500
  },
2524
2501
  {
2525
- name: "OnFinality",
2526
- endpoint: "wss://kusama.api.onfinality.io/public-ws"
2502
+ name: "Parity",
2503
+ endpoint: "wss://westend-bridge-hub-rpc.polkadot.io"
2504
+ }
2505
+ ]
2506
+ };
2507
+ var CollectivesWestend$1 = {
2508
+ name: "Collectives",
2509
+ info: "westendCollectives",
2510
+ paraId: 1001,
2511
+ providers: [
2512
+ {
2513
+ name: "Dwellir",
2514
+ endpoint: "wss://collectives-westend-rpc.n.dwellir.com"
2527
2515
  },
2528
2516
  {
2529
- name: "RadiumBlock",
2530
- endpoint: "wss://kusama.public.curie.radiumblock.co/ws"
2517
+ name: "Dwellir Tunisia",
2518
+ endpoint: "wss://westend-collectives-rpc-tn.dwellir.com"
2531
2519
  },
2532
2520
  {
2533
- name: "Stakeworld",
2534
- endpoint: "wss://ksm-rpc.stakeworld.io"
2521
+ name: "Parity",
2522
+ endpoint: "wss://westend-collectives-rpc.polkadot.io"
2535
2523
  }
2536
2524
  ]
2537
2525
  };
2538
- var Westend = {
2539
- name: "Westend Relay",
2540
- info: "westend",
2541
- paraId: 0,
2526
+ var CoretimeWestend$1 = {
2527
+ name: "Coretime",
2528
+ info: "westendCoretime",
2529
+ paraId: 1005,
2542
2530
  providers: [
2543
2531
  {
2544
2532
  name: "Dwellir",
2545
- endpoint: "wss://westend-rpc.n.dwellir.com"
2546
- },
2547
- {
2548
- name: "Dwellir Tunisia",
2549
- endpoint: "wss://westend-rpc-tn.dwellir.com"
2533
+ endpoint: "wss://coretime-westend-rpc.n.dwellir.com"
2550
2534
  },
2551
2535
  {
2552
- name: "OnFinality",
2553
- endpoint: "wss://westend.api.onfinality.io/public-ws"
2554
- },
2536
+ name: "Parity",
2537
+ endpoint: "wss://westend-coretime-rpc.polkadot.io"
2538
+ }
2539
+ ]
2540
+ };
2541
+ var Penpal$1 = {
2542
+ name: "Penpal",
2543
+ info: "westendPenpal",
2544
+ paraId: 2042,
2545
+ providers: [
2555
2546
  {
2556
2547
  name: "Parity",
2557
- endpoint: "wss://westend-rpc.polkadot.io"
2548
+ endpoint: "wss://westend-penpal-rpc.polkadot.io"
2549
+ }
2550
+ ]
2551
+ };
2552
+ var PeopleWestend$1 = {
2553
+ name: "People",
2554
+ info: "westendPeople",
2555
+ paraId: 1004,
2556
+ providers: [
2557
+ {
2558
+ name: "Dwellir",
2559
+ endpoint: "wss://people-westend-rpc.n.dwellir.com"
2558
2560
  },
2559
2561
  {
2560
- name: "RadiumBlock",
2561
- endpoint: "wss://westend.public.curie.radiumblock.co/ws"
2562
+ name: "Parity",
2563
+ endpoint: "wss://westend-people-rpc.polkadot.io"
2562
2564
  }
2563
2565
  ]
2564
2566
  };
2565
- var Paseo = {
2566
- name: "Paseo Relay",
2567
- info: "paseo",
2568
- paraId: 0,
2567
+ var AjunaPaseo$1 = {
2568
+ name: "Ajuna Network (Paseo)",
2569
+ info: "Ajuna(paseo)",
2570
+ paraId: 2051,
2569
2571
  providers: [
2570
2572
  {
2571
- name: "Amforc",
2572
- endpoint: "wss://paseo.rpc.amforc.com"
2573
- },
2573
+ name: "BajunNetwork",
2574
+ endpoint: "wss://rpc-paseo.ajuna.network"
2575
+ }
2576
+ ]
2577
+ };
2578
+ var AssetHubPaseo$1 = {
2579
+ name: "Asset Hub",
2580
+ info: "PaseoAssetHub",
2581
+ paraId: 1000,
2582
+ providers: [
2574
2583
  {
2575
2584
  name: "Dwellir",
2576
- endpoint: "wss://paseo-rpc.n.dwellir.com"
2585
+ endpoint: "wss://asset-hub-paseo-rpc.n.dwellir.com"
2577
2586
  },
2578
2587
  {
2579
2588
  name: "IBP1",
2580
- endpoint: "wss://rpc.ibp.network/paseo"
2589
+ endpoint: "wss://sys.ibp.network/asset-hub-paseo"
2581
2590
  },
2582
2591
  {
2583
2592
  name: "IBP2",
2584
- endpoint: "wss://paseo.dotters.network"
2593
+ endpoint: "wss://asset-hub-paseo.dotters.network"
2585
2594
  },
2586
2595
  {
2587
2596
  name: "StakeWorld",
2588
- endpoint: "wss://pas-rpc.stakeworld.io"
2597
+ endpoint: "wss://pas-rpc.stakeworld.io/assethub"
2598
+ },
2599
+ {
2600
+ name: "TurboFlakes",
2601
+ endpoint: "wss://sys.turboflakes.io/asset-hub-paseo"
2589
2602
  }
2590
2603
  ]
2591
2604
  };
2592
- var configs = {
2593
- AssetHubPolkadot: AssetHubPolkadot$1,
2594
- Acala: Acala$1,
2595
- Ajuna: Ajuna$1,
2596
- Astar: Astar$1,
2597
- BifrostPolkadot: BifrostPolkadot$1,
2598
- BridgeHubPolkadot: BridgeHubPolkadot$1,
2599
- Centrifuge: Centrifuge$1,
2600
- ComposableFinance: ComposableFinance$1,
2601
- Darwinia: Darwinia$1,
2602
- EnergyWebX: EnergyWebX$1,
2603
- Hydration: Hydration$1,
2604
- IntegriteePolkadot: IntegriteePolkadot$1,
2605
- Interlay: Interlay$1,
2606
- Heima: Heima$1,
2607
- Jamton: Jamton$1,
2608
- Moonbeam: Moonbeam$1,
2609
- CoretimePolkadot: CoretimePolkadot$1,
2610
- Collectives: Collectives$1,
2611
- Crust: Crust$1,
2612
- Manta: Manta$1,
2613
- Nodle: Nodle$1,
2614
- NeuroWeb: NeuroWeb$1,
2615
- Pendulum: Pendulum$1,
2616
- Phala: Phala$1,
2617
- Subsocial: Subsocial$1,
2618
- KiltSpiritnet: KiltSpiritnet$1,
2619
- Curio: Curio$1,
2620
- Mythos: Mythos$1,
2621
- Peaq: Peaq$1,
2622
- Polimec: Polimec$1,
2623
- RobonomicsPolkadot: RobonomicsPolkadot$1,
2624
- PeoplePolkadot: PeoplePolkadot$1,
2625
- Unique: Unique$1,
2626
- Xode: Xode$1,
2627
- AssetHubKusama: AssetHubKusama$1,
2628
- BridgeHubKusama: BridgeHubKusama$1,
2629
- IntegriteeKusama: IntegriteeKusama$1,
2630
- Karura: Karura$1,
2631
- Kintsugi: Kintsugi$1,
2632
- Moonriver: Moonriver$1,
2633
- CoretimeKusama: CoretimeKusama$1,
2634
- Encointer: Encointer$1,
2635
- Altair: Altair$1,
2636
- Amplitude: Amplitude$1,
2637
- Basilisk: Basilisk$1,
2638
- BifrostKusama: BifrostKusama$1,
2639
- CrustShadow: CrustShadow$1,
2640
- Crab: Crab$1,
2641
- Laos: Laos$1,
2642
- Quartz: Quartz$1,
2643
- RobonomicsKusama: RobonomicsKusama$1,
2644
- PeopleKusama: PeopleKusama$1,
2645
- Shiden: Shiden$1,
2646
- Zeitgeist: Zeitgeist$1,
2647
- AssetHubWestend: AssetHubWestend$1,
2648
- BridgeHubWestend: BridgeHubWestend$1,
2649
- CollectivesWestend: CollectivesWestend$1,
2650
- CoretimeWestend: CoretimeWestend$1,
2651
- Penpal: Penpal$1,
2652
- PeopleWestend: PeopleWestend$1,
2653
- AjunaPaseo: AjunaPaseo$1,
2654
- AssetHubPaseo: AssetHubPaseo$1,
2655
- BifrostPaseo: BifrostPaseo$1,
2656
- BridgeHubPaseo: BridgeHubPaseo$1,
2657
- CoretimePaseo: CoretimePaseo$1,
2658
- EnergyWebXPaseo: EnergyWebXPaseo$1,
2659
- HeimaPaseo: HeimaPaseo$1,
2660
- HydrationPaseo: HydrationPaseo$1,
2661
- IntegriteePaseo: IntegriteePaseo$1,
2662
- KiltPaseo: KiltPaseo$1,
2663
- LaosPaseo: LaosPaseo$1,
2664
- NeuroWebPaseo: NeuroWebPaseo$1,
2665
- NodlePaseo: NodlePaseo$1,
2666
- PAssetHub: PAssetHub$1,
2667
- PeoplePaseo: PeoplePaseo$1,
2668
- ZeitgeistPaseo: ZeitgeistPaseo$1,
2669
- Polkadot: Polkadot,
2670
- Kusama: Kusama,
2671
- Westend: Westend,
2672
- Paseo: Paseo
2673
- };
2674
-
2675
- var configsMap = configs;
2676
- var getChainConfig = function getChainConfig(chain) {
2677
- return configsMap[chain];
2678
- };
2679
-
2680
- var getChainProviders = function getChainProviders(chain) {
2681
- var _getChainConfig = getChainConfig(chain),
2682
- providers = _getChainConfig.providers;
2683
- if (providers.length === 0) {
2684
- throw new InvalidParameterError("No providers found for chain ".concat(chain));
2685
- }
2686
- // Prefer Dwellir provider
2687
- providers.sort(function (a, b) {
2688
- return (a.name === 'Dwellir' ? 0 : 1) - (b.name === 'Dwellir' ? 0 : 1);
2689
- });
2690
- return providers.map(function (p) {
2691
- return p.endpoint;
2692
- });
2605
+ var BifrostPaseo$1 = {
2606
+ name: "Bifrost",
2607
+ info: "Bifrost(Paseo)",
2608
+ paraId: 2030,
2609
+ providers: [
2610
+ {
2611
+ name: "Liebi",
2612
+ endpoint: "wss://bifrost-rpc.paseo.liebi.com/ws"
2613
+ }
2614
+ ]
2693
2615
  };
2694
-
2695
- /**
2696
- * Retrieves the parachain ID for a specified chain.
2697
- *
2698
- * @param chain - The chain for which to get the paraId.
2699
- * @returns The parachain ID of the chain.
2700
- */
2701
- var getParaId = function getParaId(chain) {
2702
- if (chain === 'Ethereum') {
2703
- return ETH_PARA_ID;
2704
- }
2705
- return getChainConfig(chain).paraId;
2616
+ var BridgeHubPaseo$1 = {
2617
+ name: "Bridge Hub",
2618
+ info: "PaseoBridgeHub",
2619
+ paraId: 1002,
2620
+ providers: [
2621
+ {
2622
+ name: "IBP1",
2623
+ endpoint: "wss://sys.ibp.network/bridgehub-paseo"
2624
+ },
2625
+ {
2626
+ name: "IBP2",
2627
+ endpoint: "wss://bridge-hub-paseo.dotters.network"
2628
+ }
2629
+ ]
2706
2630
  };
2707
-
2708
- var createChainClient = /*#__PURE__*/function () {
2709
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(api, chain) {
2710
- var wsUrl;
2711
- return _regenerator().w(function (_context) {
2712
- while (1) switch (_context.n) {
2713
- case 0:
2714
- wsUrl = getChainProviders(chain);
2715
- return _context.a(2, api.createApiInstance(wsUrl, chain));
2716
- }
2717
- }, _callee);
2718
- }));
2719
- return function createChainClient(_x, _x2) {
2720
- return _ref.apply(this, arguments);
2721
- };
2722
- }();
2723
-
2724
- /* eslint-disable @typescript-eslint/no-explicit-any */
2725
- /* eslint-disable @typescript-eslint/no-unsafe-member-access */
2726
- /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2727
- var getLocationTokenId = function getLocationTokenId(location, chain) {
2728
- if (location.interior.type === 'Here') {
2729
- // native token
2730
- return getNativeAssetSymbol(chain);
2731
- }
2732
- var foreignAssets = getOtherAssets(chain);
2733
- if (location.interior.type === 'X2') {
2734
- if (location.interior.value[0].type === 'PalletInstance' && location.interior.value[0].value === 50 && location.interior.value[1].type === 'GeneralIndex') {
2735
- var _foreignAssets$find$a, _foreignAssets$find;
2736
- var assetId = location.interior.value[1].value;
2737
- return (_foreignAssets$find$a = (_foreignAssets$find = foreignAssets.find(function (asset) {
2738
- return asset.assetId === String(assetId);
2739
- })) === null || _foreignAssets$find === void 0 ? void 0 : _foreignAssets$find.assetId) !== null && _foreignAssets$find$a !== void 0 ? _foreignAssets$find$a : null;
2740
- }
2741
- }
2742
- return null;
2631
+ var CoretimePaseo$1 = {
2632
+ name: "Coretime",
2633
+ info: "PaseoCoretime",
2634
+ paraId: 1005,
2635
+ providers: [
2636
+ {
2637
+ name: "IBP1",
2638
+ endpoint: "wss://sys.ibp.network/coretime-paseo"
2639
+ },
2640
+ {
2641
+ name: "IBP2",
2642
+ endpoint: "wss://coretime-paseo.dotters.network"
2643
+ }
2644
+ ]
2743
2645
  };
2744
-
2745
- var computeFeeFromDryRun = function computeFeeFromDryRun(dryRun, chain, executionFee) {
2746
- var isFeeAsset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
2747
- // Extract delivery fees from emitted events
2748
- var deliveryFees = [];
2749
- var assetConversionFee = 0n;
2750
- var _iterator = _createForOfIteratorHelper(dryRun.value.emitted_events),
2751
- _step;
2752
- try {
2753
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2754
- var _e$value, _e$value2;
2755
- var e = _step.value;
2756
- var isXcmEvent = e.type === 'XcmPallet' || e.type === 'PolkadotXcm' || e.type === 'CumulusXcm';
2757
- var isFeesPaid = e.value.type === 'FeesPaid';
2758
- if (isXcmEvent && isFeesPaid && e.value.value.fees) {
2759
- var _iterator2 = _createForOfIteratorHelper(e.value.value.fees),
2760
- _step2;
2761
- try {
2762
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2763
- var feeItem = _step2.value;
2764
- if (feeItem.fun.type === 'NonFungible') continue;
2765
- var plancks = feeItem.fun.value;
2766
- var tokenSymbol = getLocationTokenId(feeItem.id, chain);
2767
- if (!tokenSymbol || !plancks) continue;
2768
- deliveryFees.push({
2769
- plancks: plancks,
2770
- tokenSymbol: tokenSymbol
2771
- });
2772
- }
2773
- } catch (err) {
2774
- _iterator2.e(err);
2775
- } finally {
2776
- _iterator2.f();
2777
- }
2778
- }
2779
- if (isFeeAsset && e.type === 'AssetConversion' && ((_e$value = e.value) === null || _e$value === void 0 ? void 0 : _e$value.type) === 'SwapCreditExecuted' && (_e$value2 = e.value) !== null && _e$value2 !== void 0 && _e$value2.value && e.value.value.amount_in !== undefined && e.value.value.amount_in !== null) {
2780
- assetConversionFee += e.value.value.amount_in;
2781
- }
2782
- }
2783
- } catch (err) {
2784
- _iterator.e(err);
2785
- } finally {
2786
- _iterator.f();
2787
- }
2788
- if (isFeeAsset && assetConversionFee > 0n) {
2789
- return assetConversionFee;
2790
- } else {
2791
- var nativeAssetSymbol = getNativeAssetSymbol(chain);
2792
- var totalDeliveryFees = deliveryFees.filter(function (df) {
2793
- return df.tokenSymbol === nativeAssetSymbol;
2794
- }).reduce(function (acc, df) {
2795
- return acc + df.plancks;
2796
- }, 0n);
2797
- return totalDeliveryFees + executionFee;
2798
- }
2646
+ var EnergyWebXPaseo$1 = {
2647
+ name: "PEX",
2648
+ info: "paseoEwx",
2649
+ paraId: 3345,
2650
+ providers: [
2651
+ {
2652
+ name: "Energy Web",
2653
+ endpoint: "wss://public-rpc.testnet.energywebx.com/"
2654
+ }
2655
+ ]
2799
2656
  };
2800
-
2801
- var getLocationTokenIdPjs = function getLocationTokenIdPjs(location, chain) {
2802
- if (location.interior === 'Here') {
2803
- // native token
2804
- return getNativeAssetSymbol(chain);
2805
- }
2806
- var foreignAssets = getOtherAssets(chain);
2807
- if (location.interior.X2 && hasJunction(location, 'PalletInstance', '50') && hasJunction(location, 'GeneralIndex')) {
2808
- var _foreignAssets$find$s, _foreignAssets$find;
2809
- var assetId = getJunctionValue(location, 'GeneralIndex');
2810
- return (_foreignAssets$find$s = (_foreignAssets$find = foreignAssets.find(function (asset) {
2811
- return asset.assetId === String(assetId);
2812
- })) === null || _foreignAssets$find === void 0 ? void 0 : _foreignAssets$find.symbol) !== null && _foreignAssets$find$s !== void 0 ? _foreignAssets$find$s : null;
2813
- }
2814
- return null;
2657
+ var HeimaPaseo$1 = {
2658
+ name: "Heima paseo",
2659
+ info: "heima-paseo",
2660
+ paraId: 2106,
2661
+ providers: [
2662
+ {
2663
+ name: "Heima",
2664
+ endpoint: "wss://rpc.paseo-parachain.heima.network"
2665
+ }
2666
+ ]
2815
2667
  };
2816
-
2817
- var computeFeeFromDryRunPjs = function computeFeeFromDryRunPjs(dryRun, chain, executionFee) {
2818
- // Extract delivery fees from emitted events
2819
- var deliveryFees = [];
2820
- var _iterator = _createForOfIteratorHelper(dryRun.Ok.emittedEvents),
2821
- _step;
2822
- try {
2823
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
2824
- var e = _step.value;
2825
- var isXcmEvent = e.section === 'xcmPallet' || e.section === 'polkadotXcm' || e.section === 'cumulusXcm';
2826
- var isFeesPaid = e.method === 'FeesPaid';
2827
- if (isXcmEvent && isFeesPaid && e.data.fees) {
2828
- var _iterator2 = _createForOfIteratorHelper(e.data.fees),
2829
- _step2;
2830
- try {
2831
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
2832
- var feeItem = _step2.value;
2833
- if (feeItem.fun.NonFungible) continue;
2834
- var plancks = BigInt(feeItem.fun.Fungible.replace(/,/g, ''));
2835
- var tokenSymbol = getLocationTokenIdPjs(feeItem.id, chain);
2836
- if (!tokenSymbol || !plancks) continue;
2837
- deliveryFees.push({
2838
- plancks: plancks,
2839
- tokenSymbol: tokenSymbol
2840
- });
2841
- }
2842
- } catch (err) {
2843
- _iterator2.e(err);
2844
- } finally {
2845
- _iterator2.f();
2846
- }
2847
- }
2848
- }
2849
- } catch (err) {
2850
- _iterator.e(err);
2851
- } finally {
2852
- _iterator.f();
2853
- }
2854
- var nativeAssetSymbol = getNativeAssetSymbol(chain);
2855
- // Sum the fees that match the feeToken
2856
- var totalDeliveryFees = deliveryFees.filter(function (df) {
2857
- return df.tokenSymbol === nativeAssetSymbol;
2858
- }).reduce(function (acc, df) {
2859
- return acc + df.plancks;
2860
- }, 0n);
2861
- return totalDeliveryFees + executionFee;
2668
+ var HydrationPaseo$1 = {
2669
+ name: "Hydration (Paseo)",
2670
+ info: "rococoHydraDX",
2671
+ paraId: 2034,
2672
+ providers: [
2673
+ {
2674
+ name: "Galactic Council",
2675
+ endpoint: "wss://paseo-rpc.play.hydration.cloud"
2676
+ }
2677
+ ]
2862
2678
  };
2863
-
2864
- /**
2865
- * The options for the batch builder.
2866
- */
2867
- var BatchMode;
2868
- (function (BatchMode) {
2869
- /**
2870
- * Does not commit if one of the calls in the batch fails.
2871
- */
2872
- BatchMode["BATCH_ALL"] = "BATCH_ALL";
2873
- /**
2874
- * Commits each successful call regardless if a call fails.
2875
- */
2876
- BatchMode["BATCH"] = "BATCH";
2877
- })(BatchMode || (BatchMode = {}));
2878
-
2879
- var XTokensError;
2880
- (function (XTokensError) {
2881
- XTokensError["AssetHasNoReserve"] = "AssetHasNoReserve";
2882
- XTokensError["NotCrossChainTransfer"] = "NotCrossChainTransfer";
2883
- XTokensError["InvalidDest"] = "InvalidDest";
2884
- XTokensError["NotCrossChainTransferableCurrency"] = "NotCrossChainTransferableCurrency";
2885
- XTokensError["UnweighableMessage"] = "UnweighableMessage";
2886
- XTokensError["XcmExecutionFailed"] = "XcmExecutionFailed";
2887
- XTokensError["CannotReanchor"] = "CannotReanchor";
2888
- XTokensError["InvalidAncestry"] = "InvalidAncestry";
2889
- XTokensError["InvalidAsset"] = "InvalidAsset";
2890
- XTokensError["DestinationNotInvertible"] = "DestinationNotInvertible";
2891
- XTokensError["BadVersion"] = "BadVersion";
2892
- XTokensError["DistinctReserveForAssetAndFee"] = "DistinctReserveForAssetAndFee";
2893
- XTokensError["ZeroFee"] = "ZeroFee";
2894
- XTokensError["ZeroAmount"] = "ZeroAmount";
2895
- XTokensError["TooManyAssetsBeingSent"] = "TooManyAssetsBeingSent";
2896
- XTokensError["AssetIndexNonExistent"] = "AssetIndexNonExistent";
2897
- XTokensError["FeeNotEnough"] = "FeeNotEnough";
2898
- XTokensError["NotSupportedLocation"] = "NotSupportedLocation";
2899
- XTokensError["MinXcmFeeNotDefined"] = "MinXcmFeeNotDefined";
2900
- XTokensError["RateLimited"] = "RateLimited";
2901
- })(XTokensError || (XTokensError = {}));
2902
- var PolkadotXcmError;
2903
- (function (PolkadotXcmError) {
2904
- PolkadotXcmError["Unreachable"] = "Unreachable";
2905
- PolkadotXcmError["SendFailure"] = "SendFailure";
2906
- PolkadotXcmError["Filtered"] = "Filtered";
2907
- PolkadotXcmError["UnweighableMessage"] = "UnweighableMessage";
2908
- PolkadotXcmError["DestinationNotInvertible"] = "DestinationNotInvertible";
2909
- PolkadotXcmError["Empty"] = "Empty";
2910
- PolkadotXcmError["CannotReanchor"] = "CannotReanchor";
2911
- PolkadotXcmError["TooManyAssets"] = "TooManyAssets";
2912
- PolkadotXcmError["InvalidOrigin"] = "InvalidOrigin";
2913
- PolkadotXcmError["BadVersion"] = "BadVersion";
2914
- PolkadotXcmError["BadLocation"] = "BadLocation";
2915
- PolkadotXcmError["NoSubscription"] = "NoSubscription";
2916
- PolkadotXcmError["AlreadySubscribed"] = "AlreadySubscribed";
2917
- PolkadotXcmError["CannotCheckOutTeleport"] = "CannotCheckOutTeleport";
2918
- PolkadotXcmError["LowBalance"] = "LowBalance";
2919
- PolkadotXcmError["TooManyLocks"] = "TooManyLocks";
2920
- PolkadotXcmError["AccountNotSovereign"] = "AccountNotSovereign";
2921
- PolkadotXcmError["FeesNotMet"] = "FeesNotMet";
2922
- PolkadotXcmError["LockNotFound"] = "LockNotFound";
2923
- PolkadotXcmError["InUse"] = "InUse";
2924
- PolkadotXcmError["REMOVED"] = "REMOVED";
2925
- PolkadotXcmError["InvalidAssetUnknownReserve"] = "InvalidAssetUnknownReserve";
2926
- PolkadotXcmError["InvalidAssetUnsupportedReserve"] = "InvalidAssetUnsupportedReserve";
2927
- PolkadotXcmError["TooManyReserves"] = "TooManyReserves";
2928
- PolkadotXcmError["LocalExecutionIncomplete"] = "LocalExecutionIncomplete";
2929
- PolkadotXcmError["TooManyAuthorizedAliases"] = "TooManyAuthorizedAliases";
2930
- PolkadotXcmError["ExpiresInPast"] = "ExpiresInPast";
2931
- PolkadotXcmError["AliasNotFound"] = "AliasNotFound";
2932
- PolkadotXcmError["LocalExecutionIncompleteWithError"] = "LocalExecutionIncompleteWithError";
2933
- })(PolkadotXcmError || (PolkadotXcmError = {}));
2934
-
2935
- var resolveModuleError = function resolveModuleError(chain, error) {
2936
- var palletDetails = getSupportedPalletsDetails(chain).find(function (p) {
2937
- return p.index === Number(error.index);
2938
- });
2939
- if (!palletDetails) {
2940
- throw new InvalidParameterError("Pallet with index ".concat(error.index, " not found"));
2941
- }
2942
- // Use only the first byte of the error to get the error index
2943
- var errorIndex = Number(error.error.slice(0, 4));
2944
- var name = palletDetails.name;
2945
- if (name !== 'XTokens' && name !== 'PolkadotXcm' && name !== 'XcmPallet') {
2946
- throw new InvalidParameterError("Pallet ".concat(name, " is not supported"));
2947
- }
2948
- var failureReason = name === 'XTokens' ? Object.values(XTokensError)[errorIndex] : Object.values(PolkadotXcmError)[errorIndex];
2949
- if (!failureReason) {
2950
- throw new InvalidParameterError("Error index ".concat(errorIndex, " not found in ").concat(name, " pallet"));
2951
- }
2952
- return failureReason;
2679
+ var IntegriteePaseo$1 = {
2680
+ name: "Integritee Network (Paseo)",
2681
+ info: "integritee",
2682
+ paraId: 2039,
2683
+ providers: [
2684
+ {
2685
+ name: "Integritee",
2686
+ endpoint: "wss://paseo.api.integritee.network"
2687
+ }
2688
+ ]
2953
2689
  };
2954
-
2955
- var isAssetHub = function isAssetHub(chain) {
2956
- return chain === 'AssetHubPolkadot' || chain === 'AssetHubKusama';
2690
+ var KiltPaseo$1 = {
2691
+ name: "KILT Peregrine",
2692
+ info: "kilt",
2693
+ paraId: 2086,
2694
+ providers: [
2695
+ {
2696
+ name: "KILT Foundation",
2697
+ endpoint: "wss://peregrine.kilt.io/"
2698
+ }
2699
+ ]
2957
2700
  };
2958
- var isBridgeHub = function isBridgeHub(chain) {
2959
- return chain === 'BridgeHubPolkadot' || chain === 'BridgeHubKusama';
2701
+ var LaosPaseo$1 = {
2702
+ name: "Laos Sigma",
2703
+ info: "laos-sigma",
2704
+ paraId: 4006,
2705
+ providers: [
2706
+ {
2707
+ name: "freeverse.io",
2708
+ endpoint: "wss://rpc.laossigma.laosfoundation.io"
2709
+ }
2710
+ ]
2960
2711
  };
2961
- var isPeople = function isPeople(chain) {
2962
- return chain === 'PeoplePolkadot' || chain === 'PeopleKusama';
2712
+ var NeuroWebPaseo$1 = {
2713
+ name: "NeuroWeb Testnet",
2714
+ info: "NeuroWeb",
2715
+ paraId: 2043,
2716
+ providers: [
2717
+ {
2718
+ name: "TraceLabs",
2719
+ endpoint: "wss://parachain-testnet-rpc.origin-trail.network/"
2720
+ }
2721
+ ]
2963
2722
  };
2964
- var isSystemPara = function isSystemPara(chain) {
2965
- return isAssetHub(chain) || isBridgeHub(chain) || isPeople(chain);
2723
+ var NodlePaseo$1 = {
2724
+ name: "Nodle",
2725
+ info: "NodleParadis",
2726
+ paraId: 2026,
2727
+ providers: [
2728
+ {
2729
+ name: "OnFinality",
2730
+ endpoint: "wss://node-7273232234617282560.nv.onfinality.io/ws?apikey=b937a7d7-7395-49b9-b745-60a0342fa365"
2731
+ }
2732
+ ]
2966
2733
  };
2967
- var mul = function mul(v, num) {
2968
- var den = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1n;
2969
- return v * num / den;
2734
+ var PAssetHub$1 = {
2735
+ name: "PAssetHub - Contracts",
2736
+ info: "PAssetHub - Contracts",
2737
+ paraId: 1111,
2738
+ providers: [
2739
+ {
2740
+ name: "IBP1",
2741
+ endpoint: "wss://passet-hub-paseo.ibp.network"
2742
+ },
2743
+ {
2744
+ name: "IBP2",
2745
+ endpoint: "wss://passet-hub-paseo.dotters.network"
2746
+ },
2747
+ {
2748
+ name: "Parity",
2749
+ endpoint: "wss://testnet-passet-hub.polkadot.io"
2750
+ }
2751
+ ]
2970
2752
  };
2971
- var padFee = function padFee(raw, origin, dest, side) {
2972
- var relayOrigin = isRelayChain(origin);
2973
- var relayDest = isRelayChain(dest);
2974
- var sysParaOrigin = isSystemPara(origin);
2975
- var sysParaDest = isSystemPara(dest);
2976
- var relayToPara = relayOrigin && !relayDest;
2977
- var sysParaToPara = sysParaOrigin && !sysParaDest;
2978
- var paraToPara = !relayOrigin && !sysParaOrigin;
2979
- if (sysParaToPara) return raw * 40n;
2980
- if (relayToPara) return side === 'origin' ? mul(raw, 320n, 100n) : mul(raw, 3000n, 100n);
2981
- if (paraToPara && side == 'origin' && origin === 'Mythos' && dest !== 'Ethereum') {
2982
- return 150000000000000000n;
2983
- }
2984
- if (paraToPara) return mul(raw, 130n, 100n);
2985
- // apply default 30% padding
2986
- return mul(raw, 130n, 100n);
2753
+ var PeoplePaseo$1 = {
2754
+ name: "People",
2755
+ info: "PaseoPeopleChain",
2756
+ paraId: 1004,
2757
+ providers: [
2758
+ {
2759
+ name: "Amforc",
2760
+ endpoint: "wss://people-paseo.rpc.amforc.com"
2761
+ },
2762
+ {
2763
+ name: "IBP1",
2764
+ endpoint: "wss://sys.ibp.network/people-paseo"
2765
+ },
2766
+ {
2767
+ name: "IBP2",
2768
+ endpoint: "wss://people-paseo.dotters.network"
2769
+ }
2770
+ ]
2771
+ };
2772
+ var ZeitgeistPaseo$1 = {
2773
+ name: "Zeitgeist Battery Station",
2774
+ info: "ZeitgeistBatteryStation",
2775
+ paraId: 2101,
2776
+ providers: [
2777
+ {
2778
+ name: "Zeitgeist",
2779
+ endpoint: "wss://bsr.zeitgeist.pm"
2780
+ }
2781
+ ]
2782
+ };
2783
+ var Polkadot = {
2784
+ name: "Polkadot Relay",
2785
+ info: "polkadot",
2786
+ paraId: 0,
2787
+ providers: [
2788
+ {
2789
+ name: "Allnodes",
2790
+ endpoint: "wss://polkadot-rpc.publicnode.com"
2791
+ },
2792
+ {
2793
+ name: "Blockops",
2794
+ endpoint: "wss://polkadot-public-rpc.blockops.network/ws"
2795
+ },
2796
+ {
2797
+ name: "Dwellir",
2798
+ endpoint: "wss://polkadot-rpc.n.dwellir.com"
2799
+ },
2800
+ {
2801
+ name: "Dwellir Tunisia",
2802
+ endpoint: "wss://polkadot-rpc-tn.dwellir.com"
2803
+ },
2804
+ {
2805
+ name: "Helixstreet",
2806
+ endpoint: "wss://rpc-polkadot.helixstreet.io"
2807
+ },
2808
+ {
2809
+ name: "IBP1",
2810
+ endpoint: "wss://rpc.ibp.network/polkadot"
2811
+ },
2812
+ {
2813
+ name: "IBP2",
2814
+ endpoint: "wss://polkadot.dotters.network"
2815
+ },
2816
+ {
2817
+ name: "LuckyFriday",
2818
+ endpoint: "wss://rpc-polkadot.luckyfriday.io"
2819
+ },
2820
+ {
2821
+ name: "OnFinality",
2822
+ endpoint: "wss://polkadot.api.onfinality.io/public-ws"
2823
+ },
2824
+ {
2825
+ name: "Permanence DAO EU",
2826
+ endpoint: "wss://polkadot.rpc.permanence.io"
2827
+ },
2828
+ {
2829
+ name: "RadiumBlock",
2830
+ endpoint: "wss://polkadot.public.curie.radiumblock.co/ws"
2831
+ },
2832
+ {
2833
+ name: "Simply Staking",
2834
+ endpoint: "wss://spectrum-03.simplystaking.xyz/cG9sa2Fkb3QtMDMtOTFkMmYwZGYtcG9sa2Fkb3Q/LjwBJpV3dIKyWQ/polkadot/mainnet/"
2835
+ },
2836
+ {
2837
+ name: "Stakeworld",
2838
+ endpoint: "wss://dot-rpc.stakeworld.io"
2839
+ },
2840
+ {
2841
+ name: "SubQuery",
2842
+ endpoint: "wss://polkadot.rpc.subquery.network/public/ws"
2843
+ }
2844
+ ]
2845
+ };
2846
+ var Kusama = {
2847
+ name: "Kusama Relay",
2848
+ info: "kusama",
2849
+ paraId: 0,
2850
+ providers: [
2851
+ {
2852
+ name: "Allnodes",
2853
+ endpoint: "wss://kusama-rpc.publicnode.com"
2854
+ },
2855
+ {
2856
+ name: "Blockops",
2857
+ endpoint: "wss://kusama-public-rpc.blockops.network/ws"
2858
+ },
2859
+ {
2860
+ name: "Dwellir",
2861
+ endpoint: "wss://kusama-rpc.n.dwellir.com"
2862
+ },
2863
+ {
2864
+ name: "Dwellir Tunisia",
2865
+ endpoint: "wss://kusama-rpc-tn.dwellir.com"
2866
+ },
2867
+ {
2868
+ name: "Helixstreet",
2869
+ endpoint: "wss://rpc-kusama.helixstreet.io"
2870
+ },
2871
+ {
2872
+ name: "IBP1",
2873
+ endpoint: "wss://rpc.ibp.network/kusama"
2874
+ },
2875
+ {
2876
+ name: "IBP2",
2877
+ endpoint: "wss://kusama.dotters.network"
2878
+ },
2879
+ {
2880
+ name: "LuckyFriday",
2881
+ endpoint: "wss://rpc-kusama.luckyfriday.io"
2882
+ },
2883
+ {
2884
+ name: "OnFinality",
2885
+ endpoint: "wss://kusama.api.onfinality.io/public-ws"
2886
+ },
2887
+ {
2888
+ name: "RadiumBlock",
2889
+ endpoint: "wss://kusama.public.curie.radiumblock.co/ws"
2890
+ },
2891
+ {
2892
+ name: "Stakeworld",
2893
+ endpoint: "wss://ksm-rpc.stakeworld.io"
2894
+ }
2895
+ ]
2896
+ };
2897
+ var Westend = {
2898
+ name: "Westend Relay",
2899
+ info: "westend",
2900
+ paraId: 0,
2901
+ providers: [
2902
+ {
2903
+ name: "Dwellir",
2904
+ endpoint: "wss://westend-rpc.n.dwellir.com"
2905
+ },
2906
+ {
2907
+ name: "Dwellir Tunisia",
2908
+ endpoint: "wss://westend-rpc-tn.dwellir.com"
2909
+ },
2910
+ {
2911
+ name: "OnFinality",
2912
+ endpoint: "wss://westend.api.onfinality.io/public-ws"
2913
+ },
2914
+ {
2915
+ name: "Parity",
2916
+ endpoint: "wss://westend-rpc.polkadot.io"
2917
+ },
2918
+ {
2919
+ name: "RadiumBlock",
2920
+ endpoint: "wss://westend.public.curie.radiumblock.co/ws"
2921
+ }
2922
+ ]
2987
2923
  };
2988
- var padFeeBy = function padFeeBy(amount, percent) {
2989
- return mul(amount, BigInt(100 + percent), 100n);
2924
+ var Paseo = {
2925
+ name: "Paseo Relay",
2926
+ info: "paseo",
2927
+ paraId: 0,
2928
+ providers: [
2929
+ {
2930
+ name: "Amforc",
2931
+ endpoint: "wss://paseo.rpc.amforc.com"
2932
+ },
2933
+ {
2934
+ name: "Dwellir",
2935
+ endpoint: "wss://paseo-rpc.n.dwellir.com"
2936
+ },
2937
+ {
2938
+ name: "IBP1",
2939
+ endpoint: "wss://rpc.ibp.network/paseo"
2940
+ },
2941
+ {
2942
+ name: "IBP2",
2943
+ endpoint: "wss://paseo.dotters.network"
2944
+ },
2945
+ {
2946
+ name: "StakeWorld",
2947
+ endpoint: "wss://pas-rpc.stakeworld.io"
2948
+ }
2949
+ ]
2990
2950
  };
2991
-
2992
- var resolveScenario = function resolveScenario(origin, destination) {
2993
- if (isRelayChain(origin)) return 'RelayToPara';
2994
- var isRelayDestination = !isTLocation(destination) && isRelayChain(destination);
2995
- if (isRelayDestination) return 'ParaToRelay';
2996
- return 'ParaToPara';
2951
+ var configs = {
2952
+ AssetHubPolkadot: AssetHubPolkadot$1,
2953
+ Acala: Acala$1,
2954
+ Ajuna: Ajuna$1,
2955
+ Astar: Astar$1,
2956
+ BifrostPolkadot: BifrostPolkadot$1,
2957
+ BridgeHubPolkadot: BridgeHubPolkadot$1,
2958
+ Centrifuge: Centrifuge$1,
2959
+ ComposableFinance: ComposableFinance$1,
2960
+ Darwinia: Darwinia$1,
2961
+ EnergyWebX: EnergyWebX$1,
2962
+ Hydration: Hydration$1,
2963
+ IntegriteePolkadot: IntegriteePolkadot$1,
2964
+ Interlay: Interlay$1,
2965
+ Heima: Heima$1,
2966
+ Jamton: Jamton$1,
2967
+ Moonbeam: Moonbeam$1,
2968
+ CoretimePolkadot: CoretimePolkadot$1,
2969
+ Collectives: Collectives$1,
2970
+ Crust: Crust$1,
2971
+ Manta: Manta$1,
2972
+ Nodle: Nodle$1,
2973
+ NeuroWeb: NeuroWeb$1,
2974
+ Pendulum: Pendulum$1,
2975
+ Phala: Phala$1,
2976
+ Subsocial: Subsocial$1,
2977
+ KiltSpiritnet: KiltSpiritnet$1,
2978
+ Curio: Curio$1,
2979
+ Mythos: Mythos$1,
2980
+ Peaq: Peaq$1,
2981
+ Polimec: Polimec$1,
2982
+ RobonomicsPolkadot: RobonomicsPolkadot$1,
2983
+ PeoplePolkadot: PeoplePolkadot$1,
2984
+ Unique: Unique$1,
2985
+ Xode: Xode$1,
2986
+ AssetHubKusama: AssetHubKusama$1,
2987
+ BridgeHubKusama: BridgeHubKusama$1,
2988
+ IntegriteeKusama: IntegriteeKusama$1,
2989
+ Karura: Karura$1,
2990
+ Kintsugi: Kintsugi$1,
2991
+ Moonriver: Moonriver$1,
2992
+ CoretimeKusama: CoretimeKusama$1,
2993
+ Encointer: Encointer$1,
2994
+ Altair: Altair$1,
2995
+ Amplitude: Amplitude$1,
2996
+ Basilisk: Basilisk$1,
2997
+ BifrostKusama: BifrostKusama$1,
2998
+ CrustShadow: CrustShadow$1,
2999
+ Crab: Crab$1,
3000
+ Laos: Laos$1,
3001
+ Quartz: Quartz$1,
3002
+ RobonomicsKusama: RobonomicsKusama$1,
3003
+ PeopleKusama: PeopleKusama$1,
3004
+ Shiden: Shiden$1,
3005
+ Zeitgeist: Zeitgeist$1,
3006
+ AssetHubWestend: AssetHubWestend$1,
3007
+ BridgeHubWestend: BridgeHubWestend$1,
3008
+ CollectivesWestend: CollectivesWestend$1,
3009
+ CoretimeWestend: CoretimeWestend$1,
3010
+ Penpal: Penpal$1,
3011
+ PeopleWestend: PeopleWestend$1,
3012
+ AjunaPaseo: AjunaPaseo$1,
3013
+ AssetHubPaseo: AssetHubPaseo$1,
3014
+ BifrostPaseo: BifrostPaseo$1,
3015
+ BridgeHubPaseo: BridgeHubPaseo$1,
3016
+ CoretimePaseo: CoretimePaseo$1,
3017
+ EnergyWebXPaseo: EnergyWebXPaseo$1,
3018
+ HeimaPaseo: HeimaPaseo$1,
3019
+ HydrationPaseo: HydrationPaseo$1,
3020
+ IntegriteePaseo: IntegriteePaseo$1,
3021
+ KiltPaseo: KiltPaseo$1,
3022
+ LaosPaseo: LaosPaseo$1,
3023
+ NeuroWebPaseo: NeuroWebPaseo$1,
3024
+ NodlePaseo: NodlePaseo$1,
3025
+ PAssetHub: PAssetHub$1,
3026
+ PeoplePaseo: PeoplePaseo$1,
3027
+ ZeitgeistPaseo: ZeitgeistPaseo$1,
3028
+ Polkadot: Polkadot,
3029
+ Kusama: Kusama,
3030
+ Westend: Westend,
3031
+ Paseo: Paseo
2997
3032
  };
2998
3033
 
2999
- var createX1Payload = function createX1Payload(version, junction) {
3000
- return version === Version.V3 ? {
3001
- X1: junction
3002
- } : {
3003
- X1: [junction]
3004
- };
3034
+ var configsMap = configs;
3035
+ var getChainConfig = function getChainConfig(chain) {
3036
+ return configsMap[chain];
3005
3037
  };
3006
3038
 
3007
- var createAccountPayload = function createAccountPayload(api, address) {
3008
- return isAddress(address) ? {
3009
- AccountKey20: {
3010
- key: address
3011
- }
3012
- } : {
3013
- AccountId32: {
3014
- id: api.accountToHex(address)
3015
- }
3016
- };
3017
- };
3018
- var createBeneficiaryLocXTokens = function createBeneficiaryLocXTokens(_ref) {
3019
- var api = _ref.api,
3020
- recipientAddress = _ref.address,
3021
- origin = _ref.origin,
3022
- destination = _ref.destination,
3023
- version = _ref.version,
3024
- paraId = _ref.paraId;
3025
- if (isTLocation(recipientAddress)) {
3026
- return recipientAddress;
3027
- }
3028
- var scenario = resolveScenario(origin, destination);
3029
- var accountPayload = createAccountPayload(api, recipientAddress);
3030
- if (scenario === 'ParaToRelay') {
3031
- return {
3032
- parents: Parents.ONE,
3033
- interior: createX1Payload(version, {
3034
- AccountId32: {
3035
- id: api.accountToHex(recipientAddress)
3036
- }
3037
- })
3038
- };
3039
- } else if (scenario === 'ParaToPara') {
3040
- return {
3041
- parents: Parents.ONE,
3042
- interior: {
3043
- X2: [{
3044
- Parachain: paraId
3045
- }, accountPayload]
3046
- }
3047
- };
3039
+ var getChainProviders = function getChainProviders(chain) {
3040
+ var _getChainConfig = getChainConfig(chain),
3041
+ providers = _getChainConfig.providers;
3042
+ if (providers.length === 0) {
3043
+ throw new InvalidParameterError("No providers found for chain ".concat(chain));
3048
3044
  }
3049
- return {
3050
- parents: Parents.ZERO,
3051
- interior: createX1Payload(version, accountPayload)
3052
- };
3045
+ // Prefer Dwellir provider
3046
+ providers.sort(function (a, b) {
3047
+ return (a.name === 'Dwellir' ? 0 : 1) - (b.name === 'Dwellir' ? 0 : 1);
3048
+ });
3049
+ return providers.map(function (p) {
3050
+ return p.endpoint;
3051
+ });
3053
3052
  };
3054
- var createBeneficiaryLocation = function createBeneficiaryLocation(_ref2) {
3055
- var api = _ref2.api,
3056
- address = _ref2.address,
3057
- version = _ref2.version;
3058
- if (isTLocation(address)) return address;
3059
- var accountPayload = createAccountPayload(api, address);
3060
- return {
3061
- parents: Parents.ZERO,
3062
- interior: createX1Payload(version, accountPayload)
3063
- };
3053
+
3054
+ /**
3055
+ * Retrieves the parachain ID for a specified chain.
3056
+ *
3057
+ * @param chain - The chain for which to get the paraId.
3058
+ * @returns The parachain ID of the chain.
3059
+ */
3060
+ var getParaId = function getParaId(chain) {
3061
+ if (chain === 'Ethereum') {
3062
+ return ETH_PARA_ID;
3063
+ }
3064
+ return getChainConfig(chain).paraId;
3064
3065
  };
3065
3066
 
3066
3067
  var getChainLocation = function getChainLocation(chain, destChain) {
@@ -5316,19 +5317,18 @@ var dryRunInternal = /*#__PURE__*/function () {
5316
5317
  initialForwardedXcms = originDryModified.forwardedXcms, initialDestParaId = originDryModified.destParaId;
5317
5318
  processHop = /*#__PURE__*/function () {
5318
5319
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
5319
- var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, isDestination, hopAsset, hopDryRun;
5320
+ var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, hopAsset, _findAssetInfoOnDest, hopDryRun;
5320
5321
  return _regenerator().w(function (_context) {
5321
5322
  while (1) switch (_context.n) {
5322
5323
  case 0:
5323
- hopApi = params.api, currentChain = params.currentChain, currentOrigin = params.currentOrigin, currentAsset = params.currentAsset, forwardedXcms = params.forwardedXcms, hasPassedExchange = params.hasPassedExchange, isDestination = params.isDestination;
5324
+ hopApi = params.api, currentChain = params.currentChain, currentOrigin = params.currentOrigin, currentAsset = params.currentAsset, forwardedXcms = params.forwardedXcms, hasPassedExchange = params.hasPassedExchange;
5324
5325
  if (asset.location && asset.location.parents === Parents.TWO) {
5325
5326
  hopAsset = findNativeAssetInfoOrThrow(getRelayChainOf(currentChain));
5326
5327
  } else if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
5327
5328
  hopAsset = findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo);
5328
- } else if (isDestination) {
5329
- hopAsset = findAssetOnDestOrThrow(origin, currentChain, currency);
5330
5329
  } else {
5331
5330
  hopAsset = asset;
5331
+ hopAsset = (_findAssetInfoOnDest = findAssetInfoOnDest(origin, currentChain, currency)) !== null && _findAssetInfoOnDest !== void 0 ? _findAssetInfoOnDest : asset;
5332
5332
  }
5333
5333
  if (hasDryRunSupport(currentChain)) {
5334
5334
  _context.n = 1;
@@ -11468,7 +11468,7 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
11468
11468
  case 10:
11469
11469
  processHop = /*#__PURE__*/function () {
11470
11470
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
11471
- var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, hopAsset, hopResult;
11471
+ var hopApi, currentChain, currentOrigin, currentAsset, forwardedXcms, hasPassedExchange, hopAsset, _findAssetInfoOnDest, hopResult;
11472
11472
  return _regenerator().w(function (_context) {
11473
11473
  while (1) switch (_context.n) {
11474
11474
  case 0:
@@ -11476,10 +11476,8 @@ var getXcmFeeInternal = /*#__PURE__*/function () {
11476
11476
  if (!(currentAsset.location && currentAsset.location.parents === Parents.TWO)) {
11477
11477
  if (hasPassedExchange && swapConfig && currentChain !== swapConfig.exchangeChain) {
11478
11478
  hopAsset = findAssetOnDestOrThrow(swapConfig.exchangeChain, currentChain, swapConfig.currencyTo);
11479
- } else if (destination === currentChain) {
11480
- hopAsset = findAssetOnDestOrThrow(origin, currentChain, currency);
11481
11479
  } else {
11482
- hopAsset = currentAsset;
11480
+ hopAsset = (_findAssetInfoOnDest = findAssetInfoOnDest(origin, currentChain, currency)) !== null && _findAssetInfoOnDest !== void 0 ? _findAssetInfoOnDest : currentAsset;
11483
11481
  }
11484
11482
  } else {
11485
11483
  hopAsset = findNativeAssetInfoOrThrow(getRelayChainOf(currentChain));
@@ -12161,83 +12159,56 @@ var buildDestInfo = /*#__PURE__*/function () {
12161
12159
 
12162
12160
  var buildHopInfo = /*#__PURE__*/function () {
12163
12161
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
12164
- var api, chain, feeData, originChain, asset, currency, senderAddress, ahAddress, hopApi, resolvedAddress, nativeBalanceOnHop, nativeAssetSymbolOnHop, xcmFeeDetails, isBridgeHub, hopAsset, hopCurrencyPayload, balance, ed;
12162
+ var api, chain, feeData, originChain, asset, currency, hopApi, xcmFeeDetails, isBridgeHub, hopAsset, hopCurrencyPayload, ed;
12165
12163
  return _regenerator().w(function (_context) {
12166
12164
  while (1) switch (_context.p = _context.n) {
12167
12165
  case 0:
12168
- api = _ref.api, chain = _ref.chain, feeData = _ref.feeData, originChain = _ref.originChain, asset = _ref.asset, currency = _ref.currency, senderAddress = _ref.senderAddress, ahAddress = _ref.ahAddress;
12166
+ api = _ref.api, chain = _ref.chain, feeData = _ref.feeData, originChain = _ref.originChain, asset = _ref.asset, currency = _ref.currency;
12169
12167
  hopApi = api.clone();
12170
12168
  _context.n = 1;
12171
12169
  return hopApi.init(chain);
12172
12170
  case 1:
12173
12171
  hopApi.setDisconnectAllowed(false);
12174
12172
  _context.p = 2;
12175
- resolvedAddress = isChainEvm(originChain) && ahAddress ? ahAddress : senderAddress;
12176
- _context.n = 3;
12177
- return getBalanceNativeInternal({
12178
- api: hopApi,
12179
- address: resolvedAddress,
12180
- chain: chain
12181
- });
12182
- case 3:
12183
- nativeBalanceOnHop = _context.v;
12184
- nativeAssetSymbolOnHop = getNativeAssetSymbol(chain);
12185
12173
  xcmFeeDetails = {
12186
12174
  fee: feeData.fee,
12187
- balance: nativeBalanceOnHop,
12188
- currencySymbol: nativeAssetSymbolOnHop,
12175
+ currencySymbol: asset.symbol,
12189
12176
  asset: asset
12190
12177
  };
12191
12178
  isBridgeHub = chain.includes('BridgeHub');
12192
12179
  if (!isBridgeHub) {
12193
- _context.n = 4;
12180
+ _context.n = 3;
12194
12181
  break;
12195
12182
  }
12196
12183
  return _context.a(2, {
12197
12184
  currencySymbol: getNativeAssetSymbol(chain),
12198
12185
  xcmFee: xcmFeeDetails
12199
12186
  });
12200
- case 4:
12187
+ case 3:
12201
12188
  hopAsset = findAssetOnDestOrThrow(originChain, chain, currency);
12202
12189
  hopCurrencyPayload = hopAsset.location ? {
12203
12190
  location: hopAsset.location
12204
12191
  } : {
12205
12192
  symbol: hopAsset.symbol
12206
12193
  };
12207
- _context.n = 5;
12208
- return getAssetBalanceInternal({
12209
- api: hopApi,
12210
- address: resolvedAddress,
12211
- chain: chain,
12212
- currency: hopCurrencyPayload
12213
- });
12214
- case 5:
12215
- balance = _context.v;
12216
- ed = getExistentialDeposit(chain, hopCurrencyPayload);
12217
- if (ed) {
12218
- _context.n = 6;
12219
- break;
12220
- }
12221
- throw new InvalidParameterError("Existential deposit not found for chain ".concat(chain, " with currency ").concat(JSON.stringify(hopCurrencyPayload)));
12222
- case 6:
12194
+ ed = getExistentialDepositOrThrow(chain, hopCurrencyPayload);
12223
12195
  return _context.a(2, {
12224
- balance: balance,
12225
12196
  currencySymbol: hopAsset.symbol,
12226
12197
  asset: hopAsset,
12227
- existentialDeposit: BigInt(ed),
12198
+ existentialDeposit: ed,
12228
12199
  xcmFee: xcmFeeDetails
12229
12200
  });
12230
- case 7:
12231
- _context.p = 7;
12201
+ case 4:
12202
+ _context.p = 4;
12232
12203
  hopApi.setDisconnectAllowed(true);
12233
- _context.n = 8;
12204
+ _context.n = 5;
12234
12205
  return hopApi.disconnect();
12235
- case 8:
12236
- return _context.f(7);
12237
- case 9:
12206
+ case 5:
12207
+ return _context.f(4);
12208
+ case 6:
12238
12209
  return _context.a(2);
12239
12210
  }
12240
- }, _callee, null, [[2,, 7, 9]]);
12211
+ }, _callee, null, [[2,, 4, 6]]);
12241
12212
  }));
12242
12213
  return function buildHopInfo(_x) {
12243
12214
  return _ref2.apply(this, arguments);
@@ -14378,6 +14349,41 @@ var GeneralBuilder = /*#__PURE__*/function () {
14378
14349
  }
14379
14350
  return getTransferInfo$1;
14380
14351
  }()
14352
+ /**
14353
+ * Returns the receivable amount on the destination after the transfer
14354
+ *
14355
+ * @returns The computed receivable amount.
14356
+ * @throws \{UnableToComputeError\} Thrown when the receivable amount cannot be determined.
14357
+ */
14358
+ )
14359
+ }, {
14360
+ key: "getReceivableAmount",
14361
+ value: (function () {
14362
+ var _getReceivableAmount = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14() {
14363
+ var _yield$this$getTransf, receivedAmount;
14364
+ return _regenerator().w(function (_context14) {
14365
+ while (1) switch (_context14.n) {
14366
+ case 0:
14367
+ _context14.n = 1;
14368
+ return this.getTransferInfo();
14369
+ case 1:
14370
+ _yield$this$getTransf = _context14.v;
14371
+ receivedAmount = _yield$this$getTransf.destination.receivedCurrency.receivedAmount;
14372
+ if (!(receivedAmount instanceof UnableToComputeError)) {
14373
+ _context14.n = 2;
14374
+ break;
14375
+ }
14376
+ throw receivedAmount;
14377
+ case 2:
14378
+ return _context14.a(2, receivedAmount);
14379
+ }
14380
+ }, _callee14, this);
14381
+ }));
14382
+ function getReceivableAmount() {
14383
+ return _getReceivableAmount.apply(this, arguments);
14384
+ }
14385
+ return getReceivableAmount;
14386
+ }()
14381
14387
  /**
14382
14388
  * Returns the API instance used by the builder.
14383
14389
  *