UNPKG

ccxt

Version:

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

74 lines (68 loc) 2.17 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var index = require('./long/index.cjs.js'); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n["default"] = e; return Object.freeze(n); } /** * This file and any referenced files were automatically generated by @osmonauts/telescope@0.86.0 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ let _m0; let loaded = false; (async () => { await loadProtoBuf(); })(); if (!loaded) { (async () => { await loadProtoBuf(); })(); } // @ts-ignore // const Long = (long !== undefined && long.default !== undefined) ? long.default : long; if (_m0 && _m0.util.Long !== index["default"]) { _m0.util.Long = index["default"]; _m0.configure(); } async function loadProtoBuf() { try { if (loaded) { return; } loaded = true; // import _m0 from "protobufjs/minimal.js"; _m0 = (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('protobufjs/minimal.js')); })).default; } catch (e) { // do nothing } } var globalThis = (() => { if (typeof globalThis !== 'undefined') return globalThis; if (typeof self !== 'undefined') return self; if (typeof window !== 'undefined') return window; if (typeof global !== 'undefined') return global; throw 'Unable to locate global object'; })(); globalThis.atob || ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary')); globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64')); exports.Long = index["default"];