@bifrost-finance/type-definitions
Advanced tools
Comparing version
@@ -507,6 +507,3 @@ { | ||
}, | ||
"AssetInstance": "AssetInstanceV1", | ||
"MultiAsset": "MultiAssetV1", | ||
"Xcm": "XcmV1", | ||
"XcmOrder": "XcmOrderV1" | ||
"AssetInstance": "AssetInstanceV1" | ||
} |
{ | ||
"name": "@bifrost-finance/type-definitions", | ||
"version": "1.2.50", | ||
"version": "1.3.0", | ||
"description": "Polkadot.js type definations for Acala Network", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,2 +9,9 @@ value: true | ||
exports.default = void 0; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
const TokenSymbol = { | ||
@@ -20,16 +29,24 @@ _enum: { | ||
}; | ||
const xcmV0 = { | ||
MultiAsset: 'MultiAssetV0', | ||
Xcm: 'XcmV0', | ||
XcmOrder: 'XcmOrderV0', | ||
MultiLocation: 'MultiLocationV0' | ||
}; | ||
const xcmV1 = { | ||
MultiAsset: 'MultiAssetV1', | ||
Xcm: 'XcmV1', | ||
XcmOrder: 'XcmOrderV1', | ||
MultiLocation: 'MultiLocationV1' | ||
}; | ||
const versioned = [{ | ||
minmax: [0, 557119], | ||
types: { | ||
TokenSymbol, | ||
MultiLocation: 'MultiLocationV0' | ||
} | ||
minmax: [0, 901], | ||
types: _objectSpread({ | ||
TokenSymbol | ||
}, xcmV0) | ||
}, { | ||
minmax: [557120, undefined], | ||
types: { | ||
TokenSymbol, | ||
MultiLocation: 'MultiLocationV1' | ||
} | ||
minmax: [902, undefined], | ||
types: _objectSpread({}, xcmV1) | ||
}]; | ||
var _default = versioned; | ||
exports.default = _default; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,2 +9,9 @@ value: true | ||
exports.default = void 0; | ||
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
const TokenSymbol = { | ||
@@ -16,16 +25,26 @@ _enum: { | ||
}; | ||
const xcmV0 = { | ||
MultiAsset: 'MultiAssetV0', | ||
Xcm: 'XcmV0', | ||
XcmOrder: 'XcmOrderV0', | ||
MultiLocation: 'MultiLocationV0' | ||
}; | ||
const xcmV1 = { | ||
MultiAsset: 'MultiAssetV1', | ||
Xcm: 'XcmV1', | ||
XcmOrder: 'XcmOrderV1', | ||
MultiLocation: 'MultiLocationV1' | ||
}; | ||
const versioned = [{ | ||
minmax: [0, 557119], | ||
types: { | ||
TokenSymbol, | ||
MultiLocation: 'MultiLocationV0' | ||
} | ||
minmax: [0, 901], | ||
types: _objectSpread({ | ||
TokenSymbol | ||
}, xcmV0) | ||
}, { | ||
minmax: [557120, undefined], | ||
types: { | ||
TokenSymbol, | ||
MultiLocation: 'MultiLocationV1' | ||
} | ||
minmax: [902, undefined], | ||
types: _objectSpread({ | ||
TokenSymbol | ||
}, xcmV1) | ||
}]; | ||
var _default = versioned; | ||
exports.default = _default; |
@@ -5,7 +5,4 @@ declare const _default: { | ||
AssetInstance: string; | ||
MultiAsset: string; | ||
Xcm: string; | ||
XcmOrder: string; | ||
}; | ||
}; | ||
export default _default; |
@@ -10,8 +10,5 @@ "use strict"; | ||
types: { | ||
AssetInstance: 'AssetInstanceV1', | ||
MultiAsset: 'MultiAssetV1', | ||
Xcm: 'XcmV1', | ||
XcmOrder: 'XcmOrderV1' | ||
AssetInstance: 'AssetInstanceV1' | ||
} | ||
}; | ||
exports.default = _default; |
Sorry, the diff of this file is too big to display
199253
1.18%5456
0.39%