ccxt-ir 4.8.0 → 4.8.1
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/README.md +6 -6
- package/dist/ccxt.browser.min.js +1 -1
- package/dist/cjs/ccxt.js +1 -1
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/base/Exchange.d.ts +2 -2
- package/js/src/coinbaseexchange.d.ts +1 -1
- package/js/src/protobuf/mexc/compiled.d.cts +0 -6
- package/js/src/static_dependencies/fflake/browser.d.ts +5 -5
- package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
- package/js/src/static_dependencies/qs/formats.d.cts +0 -6
- package/js/src/static_dependencies/qs/index.d.cts +0 -6
- package/js/src/static_dependencies/qs/parse.d.cts +0 -6
- package/js/src/static_dependencies/qs/stringify.d.cts +0 -6
- package/js/src/static_dependencies/qs/utils.d.cts +0 -6
- package/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -243,20 +243,20 @@ console.log(version, Object.keys(exchanges));
|
|
|
243
243
|
All-in-one browser bundle (dependencies included), served from a CDN of your choice:
|
|
244
244
|
|
|
245
245
|
<<<<<<< HEAD
|
|
246
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.8.
|
|
247
|
-
* unpkg: https://unpkg.com/ccxt@4.8.
|
|
246
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.8.1/dist/ccxt.browser.min.js
|
|
247
|
+
* unpkg: https://unpkg.com/ccxt@4.8.1/dist/ccxt.browser.min.js
|
|
248
248
|
=======
|
|
249
|
-
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.8.
|
|
250
|
-
* unpkg: https://unpkg.com/ccxt@4.8.
|
|
249
|
+
* jsDelivr: https://cdn.jsdelivr.net/npm/ccxt@4.8.1/dist/ccxt.browser.min.js
|
|
250
|
+
* unpkg: https://unpkg.com/ccxt@4.8.1/dist/ccxt.browser.min.js
|
|
251
251
|
>>>>>>> master
|
|
252
252
|
|
|
253
253
|
CDNs are not updated in real-time and may have delays. Defaulting to the most recent version without specifying the version number is not recommended. Please, keep in mind that we are not responsible for the correct operation of those CDN servers.
|
|
254
254
|
|
|
255
255
|
```HTML
|
|
256
256
|
<<<<<<< HEAD
|
|
257
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.8.
|
|
257
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.8.1/dist/ccxt.browser.min.js"></script>
|
|
258
258
|
=======
|
|
259
|
-
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.8.
|
|
259
|
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/ccxt@4.8.1/dist/ccxt.browser.min.js"></script>
|
|
260
260
|
>>>>>>> master
|
|
261
261
|
console.log (ccxt.exchanges) // print all available exchanges
|
|
262
262
|
```
|
package/dist/ccxt.browser.min.js
CHANGED
|
@@ -30,4 +30,4 @@ Code licensed under the BSD License:
|
|
|
30
30
|
http://developer.yahoo.com/yui/license.html
|
|
31
31
|
version: 2.9.0
|
|
32
32
|
*/
|
|
33
|
-
var s={};s.lang={extend:function(e,t,i){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var s=function(){};if(s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),i){var r;for(r in i)e.prototype[r]=i[r];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(e,t){for(r=0;r<o.length;r+=1){var i=o[r],s=t[i];"function"==typeof s&&s!=Object.prototype[i]&&(e[i]=s)}})}catch(e){}a(e.prototype,i)}}}},917:(e,t,i)=>{function s(e,t){if(t&&t.multiple&&!Array.isArray(e))throw new Error("Invalid argument type: Expected an Array to serialize multiple values.");const i=4294967296;let s,r,a=new Uint8Array(128),o=0;if(t&&t.multiple)for(let t=0;t<e.length;t++)n(e[t]);else n(e);return a.subarray(0,o);function n(e,a){switch(typeof e){case"undefined":d(e);break;case"boolean":!function(e){c(e?195:194)}(e);break;case"number":!function(e){if(isFinite(e)&&Math.floor(e)===e)if(e>=0&&e<=127)c(e);else if(e<0&&e>=-32)c(e);else if(e>0&&e<=255)l([204,e]);else if(e>=-128&&e<=127)l([208,e]);else if(e>0&&e<=65535)l([205,e>>>8,e]);else if(e>=-32768&&e<=32767)l([209,e>>>8,e]);else if(e>0&&e<=4294967295)l([206,e>>>24,e>>>16,e>>>8,e]);else if(e>=-2147483648&&e<=2147483647)l([210,e>>>24,e>>>16,e>>>8,e]);else if(e>0&&e<=0x10000000000000000){let t=e/i,s=e%i;l([207,t>>>24,t>>>16,t>>>8,t,s>>>24,s>>>16,s>>>8,s])}else e>=-0x8000000000000000&&e<=0x8000000000000000?(c(211),u(e)):l(e<0?[211,128,0,0,0,0,0,0,0]:[207,255,255,255,255,255,255,255,255]);else r||(s=new ArrayBuffer(8),r=new DataView(s)),r.setFloat64(0,e),c(203),l(new Uint8Array(s))}(e);break;case"string":!function(e){let t=function(e){let t=!0,i=e.length;for(let s=0;s<i;s++)if(e.charCodeAt(s)>127){t=!1;break}let s=0,r=new Uint8Array(e.length*(t?1:4));for(let t=0;t!==i;t++){let a=e.charCodeAt(t);if(a<128)r[s++]=a;else{if(a<2048)r[s++]=a>>6|192;else{if(a>55295&&a<56320){if(++t>=i)throw new Error("UTF-8 encode: incomplete surrogate pair");let o=e.charCodeAt(t);if(o<56320||o>57343)throw new Error("UTF-8 encode: second surrogate character 0x"+o.toString(16)+" at index "+t+" out of range");a=65536+((1023&a)<<10)+(1023&o),r[s++]=a>>18|240,r[s++]=a>>12&63|128}else r[s++]=a>>12|224;r[s++]=a>>6&63|128}r[s++]=63&a|128}}return t?r:r.subarray(0,s)}(e),i=t.length;i<=31?c(160+i):l(i<=255?[217,i]:i<=65535?[218,i>>>8,i]:[219,i>>>24,i>>>16,i>>>8,i]);l(t)}(e);break;case"object":null===e?d(e):e instanceof Date?function(e){let t=e.getTime()/1e3;if(0===e.getMilliseconds()&&t>=0&&t<4294967296)l([214,255,t>>>24,t>>>16,t>>>8,t]);else if(t>=0&&t<17179869184){let s=1e6*e.getMilliseconds();l([215,255,s>>>22,s>>>14,s>>>6,s<<2>>>0|t/i,t>>>24,t>>>16,t>>>8,t])}else{let i=1e6*e.getMilliseconds();l([199,12,255,i>>>24,i>>>16,i>>>8,i]),u(t)}}(e):Array.isArray(e)?h(e):e instanceof Uint8Array||e instanceof Uint8ClampedArray?function(e){let t=e.length;l(t<=15?[196,t]:t<=65535?[197,t>>>8,t]:[198,t>>>24,t>>>16,t>>>8,t]);l(e)}(e):e instanceof Int8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array?h(e):function(e){let t=0;for(let i in e)void 0!==e[i]&&t++;t<=15?c(128+t):l(t<=65535?[222,t>>>8,t]:[223,t>>>24,t>>>16,t>>>8,t]);for(let t in e){let i=e[t];void 0!==i&&(n(t),n(i))}}(e);break;default:if(a||!t||!t.invalidTypeReplacement)throw new Error("Invalid argument type: The type '"+typeof e+"' cannot be serialized.");"function"==typeof t.invalidTypeReplacement?n(t.invalidTypeReplacement(e),!0):n(t.invalidTypeReplacement,!0)}}function d(e){c(192)}function h(e){let t=e.length;t<=15?c(144+t):l(t<=65535?[220,t>>>8,t]:[221,t>>>24,t>>>16,t>>>8,t]);for(let i=0;i<t;i++)n(e[i])}function c(e){if(a.length<o+1){let e=2*a.length;for(;e<o+1;)e*=2;let t=new Uint8Array(e);t.set(a),a=t}a[o]=e,o++}function l(e){if(a.length<o+e.length){let t=2*a.length;for(;t<o+e.length;)t*=2;let i=new Uint8Array(t);i.set(a),a=i}a.set(e,o),o+=e.length}function u(e){let t,s;e>=0?(t=e/i,s=e%i):(e++,t=Math.abs(e)/i,s=Math.abs(e)%i,t=~t,s=~s),l([t>>>24,t>>>16,t>>>8,t,s>>>24,s>>>16,s>>>8,s])}}i.d(t,{l:()=>s})},7661:(e,t,i)=>{let s;i.d(t,{$s:()=>I,Ay:()=>ge,H3:()=>oe,JF:()=>C,KR:()=>F,qj:()=>_});const r=new Array(128).fill(void 0);function a(e){return r[e]}r.push(void 0,null,!0,!1);let o=r.length;function n(e){const t=a(e);return function(e){e<132||(r[e]=o,o=e)}(e),t}function d(e){o===r.length&&r.push(r.length+1);const t=o;return o=r[t],r[t]=e,t}const h="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&h.decode();let c=null;function l(){return null!==c&&0!==c.byteLength||(c=new Uint8Array(s.memory.buffer)),c}function u(e,t){return e>>>=0,h.decode(l().subarray(e,e+t))}function f(e){return null==e}let p=null;let m=null;function g(){return null!==m&&0!==m.byteLength||(m=new Int32Array(s.memory.buffer)),m}let v=0;const y="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},w="function"==typeof y.encodeInto?function(e,t){return y.encodeInto(e,t)}:function(e,t){const i=y.encode(e);return t.set(i),{read:e.length,written:i.length}};function b(e,t,i){if(void 0===i){const i=y.encode(e),s=t(i.length,1)>>>0;return l().subarray(s,s+i.length).set(i),v=i.length,s}let s=e.length,r=t(s,1)>>>0;const a=l();let o=0;for(;o<s;o++){const t=e.charCodeAt(o);if(t>127)break;a[r+o]=t}if(o!==s){0!==o&&(e=e.slice(o)),r=i(r,s,s=o+3*e.length,1)>>>0;const t=l().subarray(r+o,r+s);o+=w(e,t).written,r=i(r,s,o,1)>>>0}return v=o,r}let k=null;function S(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let i="[";t>0&&(i+=S(e[0]));for(let s=1;s<t;s++)i+=", "+S(e[s]);return i+="]",i}const i=/\[object ([^\]]+)\]/.exec(toString.call(e));let s;if(!(i.length>1))return toString.call(e);if(s=i[1],"Object"==s)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:s}const O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>{s.__wbindgen_export_2.get(e.dtor)(e.a,e.b)}));function T(e,t,i,r){const a={a:e,b:t,cnt:1,dtor:i},o=(...e)=>{a.cnt++;const t=a.a;a.a=0;try{return r(t,a.b,...e)}finally{0==--a.cnt?(s.__wbindgen_export_2.get(a.dtor)(t,a.b),O.unregister(a)):a.a=t}};return o.original=a,O.register(o,a,a),o}function P(e,t){s.__wbindgen_export_3(e,t)}function M(e,t,i){s.__wbindgen_export_4(e,t,d(i))}function I(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16);s.newRpcSignerWithProvider(r,d(e));var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return Q.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}function x(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}let A=null;function _(e){x(e,oe);var t=e.__destroy_into_raw();const i=s.newTransfer(t);return re.__wrap(i)}function C(e){x(e,F);var t=e.__destroy_into_raw();const i=s.newContract(t);return q.__wrap(i)}function B(e,t){try{return e.apply(this,t)}catch(e){s.__wbindgen_export_6(d(e))}}Object.freeze({Success:0,0:"Success",Failed:1,1:"Failed",Pending:2,2:"Pending"}),Object.freeze({OnChain:0,0:"OnChain",EthECDSA:1,1:"EthECDSA",EthCREATE2:2,2:"EthCREATE2"}),Object.freeze({Eth:0,0:"Eth",Eip1271:1,1:"Eip1271",Stark:2,2:"Stark"}),Object.freeze({Deposit:1,1:"Deposit",FullExit:5,5:"FullExit",ChangePubKey:6,6:"ChangePubKey",Transfer:4,4:"Transfer",Withdraw:3,3:"Withdraw",ForcedExit:7,7:"ForcedExit",OrderMatching:8,8:"OrderMatching",AutoDeleveraging:11,11:"AutoDeleveraging",ContractMatching:9,9:"ContractMatching",Funding:13,13:"Funding",Liquidation:10,10:"Liquidation",UpdateGlobalVar:12,12:"UpdateGlobalVar"}),Object.freeze({Latest:0,0:"Latest",Finalized:1,1:"Finalized",Safe:2,2:"Safe",Earliest:3,3:"Earliest",Pending:4,4:"Pending",Number:5,5:"Number"}),Object.freeze({FeeAccount:0,0:"FeeAccount",InsuranceFundAccount:1,1:"InsuranceFundAccount",MarginInfo:2,2:"MarginInfo",FundingInfos:3,3:"FundingInfos",ContractInfo:4,4:"ContractInfo"}),Object.freeze({AccountId:0,0:"AccountId",Address:1,1:"Address"}),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_accountquery_free(e>>>0)));const E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_autodeleveraging_free(e>>>0)));class L{static __wrap(e){e>>>=0;const t=Object.create(L.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_autodeleveraging_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.autodeleveraging_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.autodeleveraging_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_autodeleveragingbuilder_free(e>>>0)));const R="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_changepubkey_free(e>>>0)));class N{static __wrap(e){e>>>=0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,R.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_changepubkey_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.changepubkey_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getChangePubkeyMessage(e,t){let i,r;try{const f=s.__wbindgen_add_to_stack_pointer(-16),p=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),m=v;s.changepubkey_getChangePubkeyMessage(f,this.__wbg_ptr,e,p,m);var a=g()[f/4+0],o=g()[f/4+1],d=g()[f/4+2],h=g()[f/4+3],c=a,l=o;if(h)throw c=0,l=0,n(d);return i=c,r=l,u(c,l)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(i,r,1)}}getEthSignMsg(e,t){let i,r;try{const n=s.__wbindgen_add_to_stack_pointer(-16);s.changepubkey_getEthSignMsg(n,this.__wbg_ptr,e,t);var a=g()[n/4+0],o=g()[n/4+1];return i=a,r=o,u(a,o)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(i,r,1)}}setEthAuthData(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.changepubkey_setEthAuthData(r,this.__wbg_ptr,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return n(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.changepubkey_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_changepubkeybuilder_free(e>>>0)));const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contract_free(e>>>0)));class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contract_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.contract_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.contract_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contractbuilder_free(e>>>0)));class F{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contractbuilder_free(e)}constructor(e,t,i,r,a,o,d,h,c,l,u){try{const m=s.__wbindgen_add_to_stack_pointer(-16),y=b(o,s.__wbindgen_export_0,s.__wbindgen_export_1),w=v,k=b(d,s.__wbindgen_export_0,s.__wbindgen_export_1),S=v;s.contractbuilder_new(m,e,t,i,r,a,y,w,k,S,h,c,l,u);var f=g()[m/4+0],p=g()[m/4+1];if(g()[m/4+2])throw n(p);return this.__wbg_ptr=f>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}build(){const e=this.__destroy_into_raw(),t=s.contractbuilder_build(e);return q.__wrap(t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractinfo_free(e>>>0)));const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contractmatching_free(e>>>0)));class G{static __wrap(e){e>>>=0;const t=Object.create(G.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contractmatching_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.contractmatching_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.contractmatching_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractmatchingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractprice_free(e>>>0)));const U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_create2data_free(e>>>0)));class W{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_create2data_free(e)}constructor(e,t,i){try{const o=s.__wbindgen_add_to_stack_pointer(-16),d=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),h=v,c=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),l=v,u=b(i,s.__wbindgen_export_0,s.__wbindgen_export_1),f=v;s.create2data_new(o,d,h,c,l,u,f);var r=g()[o/4+0],a=g()[o/4+1];if(g()[o/4+2])throw n(a);return this.__wbg_ptr=r>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}salt(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.create2data_salt(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.create2data_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_ethtxoption_free(e>>>0)));const j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_forcedexit_free(e>>>0)));class K{static __wrap(e){e>>>=0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_forcedexit_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.forcedexit_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.forcedexit_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_forcedexitbuilder_free(e>>>0)));const z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_funding_free(e>>>0)));class Y{static __wrap(e){e>>>=0;const t=Object.create(Y.prototype);return t.__wbg_ptr=e,z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_funding_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.funding_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.funding_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_fundingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_fundinginfo_free(e>>>0)));const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_jsonrpcsigner_free(e>>>0)));class Q{static __wrap(e){e>>>=0;const t=Object.create(Q.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_jsonrpcsigner_free(e)}initZklinkSigner(e){var t=f(e)?0:b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),i=v;return n(s.jsonrpcsigner_initZklinkSigner(this.__wbg_ptr,t,i))}getPubkey(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_getPubkey(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}pubkeyHash(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_pubkeyHash(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}address(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_address(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];let r;return 0!==e&&(r=u(e,t).slice(),s.__wbindgen_export_5(e,1*t,1)),r}finally{s.__wbindgen_add_to_stack_pointer(16)}}signatureSeed(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_signatureSeed(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}signChangePubkeyWithOnchain(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,N);var t=e.__destroy_into_raw();s.jsonrpcsigner_signChangePubkeyWithOnchain(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signChangePubkeyWithEthEcdsaAuth(e){x(e,N);var t=e.__destroy_into_raw();return n(s.jsonrpcsigner_signChangePubkeyWithEthEcdsaAuth(this.__wbg_ptr,t))}signChangePubkeyWithCreate2DataAuth(e,t){try{const d=s.__wbindgen_add_to_stack_pointer(-16);x(e,N);var i=e.__destroy_into_raw();x(t,W);var r=t.__destroy_into_raw();s.jsonrpcsigner_signChangePubkeyWithCreate2DataAuth(d,this.__wbg_ptr,i,r);var a=g()[d/4+0],o=g()[d/4+1];if(g()[d/4+2])throw n(o);return n(a)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signTransfer(e,t){x(e,re);var i=e.__destroy_into_raw();const r=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),a=v;return n(s.jsonrpcsigner_signTransfer(this.__wbg_ptr,i,r,a))}createSignedOrder(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ee);var t=e.__destroy_into_raw();s.jsonrpcsigner_createSignedOrder(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signOrderMatching(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ie);var t=e.__destroy_into_raw();s.jsonrpcsigner_signOrderMatching(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signWithdraw(e,t){x(e,ce);var i=e.__destroy_into_raw();const r=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),a=v;return n(s.jsonrpcsigner_signWithdraw(this.__wbg_ptr,i,r,a))}signForcedExit(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,K);var t=e.__destroy_into_raw();s.jsonrpcsigner_signForcedExit(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signAutoDeleveraging(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,L);var t=e.__destroy_into_raw();s.jsonrpcsigner_signAutoDeleveraging(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}createSignedContract(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,q);var t=e.__destroy_into_raw();s.jsonrpcsigner_createSignedContract(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signContractMatching(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,G);var t=e.__destroy_into_raw();s.jsonrpcsigner_signContractMatching(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signFunding(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,Y);var t=e.__destroy_into_raw();s.jsonrpcsigner_signFunding(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signLiquidation(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,$);var t=e.__destroy_into_raw();s.jsonrpcsigner_signLiquidation(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signMusig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=function(e,t){const i=t(1*e.length,1)>>>0;return l().set(e,i/1),v=e.length,i}(e,s.__wbindgen_export_0),o=v;s.jsonrpcsigner_signMusig(r,this.__wbg_ptr,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return de.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getZkLinkSigner(){const e=s.jsonrpcsigner_getZkLinkSigner(this.__wbg_ptr);return ue.__wrap(e)}}const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_liquidation_free(e>>>0)));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_liquidation_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.liquidation_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.liquidation_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_liquidationbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_margininfo_free(e>>>0)));const J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_order_free(e>>>0)));class ee{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_order_free(e)}constructor(e,t,i,r,a,o,d,h,c,l,u,f){try{const y=s.__wbindgen_add_to_stack_pointer(-16),w=b(d,s.__wbindgen_export_0,s.__wbindgen_export_1),k=v,S=b(h,s.__wbindgen_export_0,s.__wbindgen_export_1),O=v;s.order_new(y,e,t,i,r,a,o,w,k,S,O,c,l,u,f);var p=g()[y/4+0],m=g()[y/4+1];if(g()[y/4+2])throw n(m);return this.__wbg_ptr=p>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.order_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.order_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const te="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_ordermatching_free(e>>>0)));class ie{static __wrap(e){e>>>=0;const t=Object.create(ie.prototype);return t.__wbg_ptr=e,te.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,te.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_ordermatching_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.ordermatching_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_ordermatchingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_parameter_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_requestarguments_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_rpcclient_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_spotpriceinfo_free(e>>>0)));const se="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_transfer_free(e>>>0)));class re{static __wrap(e){e>>>=0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,se.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,se.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_transfer_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.transfer_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getEthSignMsg(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.transfer_getEthSignMsg(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.transfer_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_transferbuilder_free(e>>>0)));class oe{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ae.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_transferbuilder_free(e)}constructor(e,t,i,r,a,o,d,h,c){try{const p=s.__wbindgen_add_to_stack_pointer(-16),m=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),y=v,w=b(o,s.__wbindgen_export_0,s.__wbindgen_export_1),k=v,S=b(d,s.__wbindgen_export_0,s.__wbindgen_export_1),O=v;s.transferbuilder_new(p,e,m,y,i,r,a,w,k,S,O,h,!f(c),f(c)?0:c);var l=g()[p/4+0],u=g()[p/4+1];if(g()[p/4+2])throw n(u);return this.__wbg_ptr=l>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}build(){const e=this.__destroy_into_raw(),t=s.transferbuilder_build(e);return re.__wrap(t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_txlayer1signature_free(e>>>0)));const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_txzklinksignature_free(e>>>0)));class de{static __wrap(e){e>>>=0;const t=Object.create(de.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_txzklinksignature_free(e)}constructor(e,t){try{const a=s.__wbindgen_add_to_stack_pointer(-16),o=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v,h=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),c=v;s.txzklinksignature_new(a,o,d,h,c);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return this.__wbg_ptr=i>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}pubKey(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.txzklinksignature_pubKey(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}signature(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.txzklinksignature_signature(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_updateglobalvar_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_updateglobalvarbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_wallet_free(e>>>0)));const he="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_withdraw_free(e>>>0)));class ce{static __wrap(e){e>>>=0;const t=Object.create(ce.prototype);return t.__wbg_ptr=e,he.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,he.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_withdraw_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.withdraw_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getEthSignMsg(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.withdraw_getEthSignMsg(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.withdraw_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_withdrawbuilder_free(e>>>0)));const le="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_zklinksigner_free(e>>>0)));class ue{static __wrap(e){e>>>=0;const t=Object.create(ue.prototype);return t.__wbg_ptr=e,le.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,le.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_zklinksigner_free(e)}static ethSig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.zklinksigner_ethSig(r,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return ue.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}static starknetSig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.zklinksigner_starknetSig(r,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return ue.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_zklinktx_free(e>>>0)));function fe(){const e={wbg:{}};return e.wbg.__wbindgen_object_drop_ref=function(e){n(e)},e.wbg.__wbg_request_aa80f2dd90291bcc=function(){return B((function(e,t){return d(a(e).request(n(t)))}),arguments)},e.wbg.__wbg_signMessage_31620e519ceecf94=function(){return B((function(e,t){return d(a(e).signMessage(a(t)))}),arguments)},e.wbg.__wbindgen_number_new=function(e){return d(e)},e.wbg.__wbindgen_string_new=function(e,t){return d(u(e,t))},e.wbg.__wbindgen_is_undefined=function(e){return void 0===a(e)},e.wbg.__wbindgen_in=function(e,t){return a(e)in a(t)},e.wbg.__wbindgen_boolean_get=function(e){const t=a(e);return"boolean"==typeof t?t?1:0:2},e.wbg.__wbindgen_is_bigint=function(e){return"bigint"==typeof a(e)},e.wbg.__wbindgen_number_get=function(e,t){const i=a(t),r="number"==typeof i?i:void 0;(null!==p&&0!==p.byteLength||(p=new Float64Array(s.memory.buffer)),p)[e/8+1]=f(r)?0:r,g()[e/4+0]=!f(r)},e.wbg.__wbindgen_bigint_from_i64=function(e){return d(e)},e.wbg.__wbindgen_jsval_eq=function(e,t){return a(e)===a(t)},e.wbg.__wbindgen_string_get=function(e,t){const i=a(t),r="string"==typeof i?i:void 0;var o=f(r)?0:b(r,s.__wbindgen_export_0,s.__wbindgen_export_1),n=v;g()[e/4+1]=n,g()[e/4+0]=o},e.wbg.__wbindgen_is_object=function(e){const t=a(e);return"object"==typeof t&&null!==t},e.wbg.__wbindgen_bigint_from_u64=function(e){return d(BigInt.asUintN(64,e))},e.wbg.__wbindgen_object_clone_ref=function(e){return d(a(e))},e.wbg.__wbindgen_as_number=function(e){return+a(e)},e.wbg.__wbindgen_error_new=function(e,t){return d(new Error(u(e,t)))},e.wbg.__wbg_performance_eeefc685c9bc38b4=function(e){return d(a(e).performance)},e.wbg.__wbg_now_e0d8ec93dd25766a=function(e){return a(e).now()},e.wbg.__wbg_selectedAddress_e88960714bb47d11=function(e,t){const i=a(t).selectedAddress;var r=f(i)?0:b(i,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;g()[e/4+1]=o,g()[e/4+0]=r},e.wbg.__wbg_address_b7ff4a10022d02d8=function(e,t){const i=b(a(t).address,s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbindgen_jsval_loose_eq=function(e,t){return a(e)==a(t)},e.wbg.__wbg_String_389b54bd9d25375f=function(e,t){const i=b(String(a(t)),s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbg_getwithrefkey_4a92a5eca60879b9=function(e,t){return d(a(e)[a(t)])},e.wbg.__wbg_set_9182712abebf82ef=function(e,t,i){a(e)[n(t)]=n(i)},e.wbg.__wbindgen_cb_drop=function(e){const t=n(e).original;if(1==t.cnt--)return t.a=0,!0;return!1},e.wbg.__wbg_clearTimeout_76877dbc010e786d=function(e){return d(clearTimeout(n(e)))},e.wbg.__wbg_setTimeout_75cb9b6991a4031d=function(){return B((function(e,t){return d(setTimeout(a(e),t))}),arguments)},e.wbg.__wbg_fetch_6a2624d7f767e331=function(e){return d(fetch(a(e)))},e.wbg.__wbg_fetch_693453ca3f88c055=function(e,t){return d(a(e).fetch(a(t)))},e.wbg.__wbg_new_7a20246daa6eec7e=function(){return B((function(){return d(new Headers)}),arguments)},e.wbg.__wbg_append_aa3f462f9e2b5ff2=function(){return B((function(e,t,i,s,r){a(e).append(u(t,i),u(s,r))}),arguments)},e.wbg.__wbg_newwithstrandinit_f581dff0d19a8b03=function(){return B((function(e,t,i){return d(new Request(u(e,t),a(i)))}),arguments)},e.wbg.__wbg_signal_3c701f5f40a5f08d=function(e){return d(a(e).signal)},e.wbg.__wbg_new_0ae46f44b7485bb2=function(){return B((function(){return d(new AbortController)}),arguments)},e.wbg.__wbg_abort_2c4fb490d878d2b2=function(e){a(e).abort()},e.wbg.__wbg_instanceof_Response_4c3b1446206114d1=function(e){let t;try{t=a(e)instanceof Response}catch(e){t=!1}return t},e.wbg.__wbg_url_83a6a4f65f7a2b38=function(e,t){const i=b(a(t).url,s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbg_status_d6d47ad2837621eb=function(e){return a(e).status},e.wbg.__wbg_headers_24def508a7518df9=function(e){return d(a(e).headers)},e.wbg.__wbg_arrayBuffer_5b2688e3dd873fed=function(){return B((function(e){return d(a(e).arrayBuffer())}),arguments)},e.wbg.__wbg_queueMicrotask_481971b0d87f3dd4=function(e){queueMicrotask(a(e))},e.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6=function(e){return d(a(e).queueMicrotask)},e.wbg.__wbindgen_is_function=function(e){return"function"==typeof a(e)},e.wbg.__wbg_crypto_58f13aa23ffcb166=function(e){return d(a(e).crypto)},e.wbg.__wbg_process_5b786e71d465a513=function(e){return d(a(e).process)},e.wbg.__wbg_versions_c2ab80650590b6a2=function(e){return d(a(e).versions)},e.wbg.__wbg_node_523d7bd03ef69fba=function(e){return d(a(e).node)},e.wbg.__wbindgen_is_string=function(e){return"string"==typeof a(e)},e.wbg.__wbg_require_2784e593a4674877=function(){return B((function(){return d(module.require)}),arguments)},e.wbg.__wbg_msCrypto_abcb1295e768d1f2=function(e){return d(a(e).msCrypto)},e.wbg.__wbg_randomFillSync_a0d98aa11c81fe89=function(){return B((function(e,t){a(e).randomFillSync(n(t))}),arguments)},e.wbg.__wbg_getRandomValues_504510b5564925af=function(){return B((function(e,t){a(e).getRandomValues(a(t))}),arguments)},e.wbg.__wbg_get_bd8e338fbd5f5cc8=function(e,t){return d(a(e)[t>>>0])},e.wbg.__wbg_length_cd7af8117672b8b8=function(e){return a(e).length},e.wbg.__wbg_new_16b304a2cfa7ff4a=function(){return d(new Array)},e.wbg.__wbg_newnoargs_e258087cd0daa0ea=function(e,t){return d(new Function(u(e,t)))},e.wbg.__wbg_new_d9bc3a0147634640=function(){return d(new Map)},e.wbg.__wbg_next_40fc327bfc8770e6=function(e){return d(a(e).next)},e.wbg.__wbg_next_196c84450b364254=function(){return B((function(e){return d(a(e).next())}),arguments)},e.wbg.__wbg_done_298b57d23c0fc80c=function(e){return a(e).done},e.wbg.__wbg_value_d93c65011f51a456=function(e){return d(a(e).value)},e.wbg.__wbg_iterator_2cee6dadfd956dfa=function(){return d(Symbol.iterator)},e.wbg.__wbg_get_e3c254076557e348=function(){return B((function(e,t){return d(Reflect.get(a(e),a(t)))}),arguments)},e.wbg.__wbg_call_27c0f87801dedf93=function(){return B((function(e,t){return d(a(e).call(a(t)))}),arguments)},e.wbg.__wbg_new_72fb9a18b5ae2624=function(){return d(new Object)},e.wbg.__wbg_self_ce0dbfc45cf2f5be=function(){return B((function(){return d(self.self)}),arguments)},e.wbg.__wbg_window_c6fb939a7f436783=function(){return B((function(){return d(window.window)}),arguments)},e.wbg.__wbg_globalThis_d1e6af4856ba331b=function(){return B((function(){return d(globalThis.globalThis)}),arguments)},e.wbg.__wbg_global_207b558942527489=function(){return B((function(){return d(global.global)}),arguments)},e.wbg.__wbg_set_d4638f722068f043=function(e,t,i){a(e)[t>>>0]=n(i)},e.wbg.__wbg_isArray_2ab64d95e09ea0ae=function(e){return Array.isArray(a(e))},e.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2=function(e){let t;try{t=a(e)instanceof ArrayBuffer}catch(e){t=!1}return t},e.wbg.__wbg_call_b3ca7c6051f9bec1=function(){return B((function(e,t,i){return d(a(e).call(a(t),a(i)))}),arguments)},e.wbg.__wbg_set_8417257aaedc936b=function(e,t,i){return d(a(e).set(a(t),a(i)))},e.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2=function(e){return Number.isSafeInteger(a(e))},e.wbg.__wbg_entries_95cc2c823b285a09=function(e){return d(Object.entries(a(e)))},e.wbg.__wbg_new_81740750da40724f=function(e,t){try{var i={a:e,b:t};const r=new Promise(((e,t)=>{const r=i.a;i.a=0;try{return function(e,t,i,r){s.__wbindgen_export_7(e,t,d(i),d(r))}(r,i.b,e,t)}finally{i.a=r}}));return d(r)}finally{i.a=i.b=0}},e.wbg.__wbg_resolve_b0083a7967828ec8=function(e){return d(Promise.resolve(a(e)))},e.wbg.__wbg_then_0c86a60e8fcfe9f6=function(e,t){return d(a(e).then(a(t)))},e.wbg.__wbg_then_a73caa9a87991566=function(e,t,i){return d(a(e).then(a(t),a(i)))},e.wbg.__wbg_buffer_12d079cc21e14bdb=function(e){return d(a(e).buffer)},e.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb=function(e,t,i){return d(new Uint8Array(a(e),t>>>0,i>>>0))},e.wbg.__wbg_new_63b92bc8671ed464=function(e){return d(new Uint8Array(a(e)))},e.wbg.__wbg_set_a47bac70306a19a7=function(e,t,i){a(e).set(a(t),i>>>0)},e.wbg.__wbg_length_c20a40f15020d68a=function(e){return a(e).length},e.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6=function(e){let t;try{t=a(e)instanceof Uint8Array}catch(e){t=!1}return t},e.wbg.__wbg_newwithlength_e9b4878cebadb3d3=function(e){return d(new Uint8Array(e>>>0))},e.wbg.__wbg_subarray_a1f73cd4b5b42fe1=function(e,t,i){return d(a(e).subarray(t>>>0,i>>>0))},e.wbg.__wbg_has_0af94d20077affa2=function(){return B((function(e,t){return Reflect.has(a(e),a(t))}),arguments)},e.wbg.__wbg_set_1f9b04f170055d33=function(){return B((function(e,t,i){return Reflect.set(a(e),a(t),a(i))}),arguments)},e.wbg.__wbg_stringify_8887fe74e1c50d81=function(){return B((function(e){return d(JSON.stringify(a(e)))}),arguments)},e.wbg.__wbindgen_bigint_get_as_i64=function(e,t){const i=a(t),r="bigint"==typeof i?i:void 0;(null!==k&&0!==k.byteLength||(k=new BigInt64Array(s.memory.buffer)),k)[e/8+1]=f(r)?BigInt(0):r,g()[e/4+0]=!f(r)},e.wbg.__wbindgen_debug_string=function(e,t){const i=b(S(a(t)),s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbindgen_throw=function(e,t){throw new Error(u(e,t))},e.wbg.__wbindgen_memory=function(){return d(s.memory)},e.wbg.__wbindgen_closure_wrapper3897=function(e,t,i){return d(T(e,t,699,P))},e.wbg.__wbindgen_closure_wrapper7350=function(e,t,i){return d(T(e,t,1724,M))},e}function pe(e,t){return s=e.exports,me.__wbindgen_wasm_module=t,k=null,p=null,m=null,A=null,c=null,s}async function me(e){if(void 0!==s)return s;void 0===e&&(e="https://qa.omni.apex.exchange/api/v3/download/zklink-sdk-web_bg.wasm");const t=fe();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:i,module:r}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const i=await e.arrayBuffer();return await WebAssembly.instantiate(i,t)}{const i=await WebAssembly.instantiate(e,t);return i instanceof WebAssembly.Instance?{instance:i,module:e}:i}}(await e,t);return pe(i,r)}const ge=me}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(i,s){if(1&s&&(i=this(i)),8&s)return i;if("object"==typeof i&&i){if(4&s&&i.__esModule)return i;if(16&s&&"function"==typeof i.then)return i}var r=Object.create(null);o.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var n=2&s&&i;"object"==typeof n&&!~e.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,o.d(r,a),r},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,i)=>(o.f[i](e,t),t)),[])),o.u=e=>e+".ccxt.browser.min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i={},s="ccxt:",o.l=(e,t,r,a)=>{if(i[e])i[e].push(t);else{var n,d;if(void 0!==r)for(var h=document.getElementsByTagName("script"),c=0;c<h.length;c++){var l=h[c];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==s+r){n=l;break}}n||(d=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,o.nc&&n.setAttribute("nonce",o.nc),n.setAttribute("data-webpack",s+r),n.src=e),i[e]=[t];var u=(t,s)=>{n.onerror=n.onload=null,clearTimeout(f);var r=i[e];if(delete i[e],n.parentNode&&n.parentNode.removeChild(n),r&&r.forEach((e=>e(s))),t)return t(s)},f=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),d&&document.head.appendChild(n)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var s=i.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=i[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={792:0};o.f.j=(t,i)=>{var s=o.o(e,t)?e[t]:void 0;if(0!==s)if(s)i.push(s[2]);else{var r=new Promise(((i,r)=>s=e[t]=[i,r]));i.push(s[2]=r);var a=o.p+o.u(t),n=new Error;o.l(a,(i=>{if(o.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var r=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;n.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",n.name="ChunkLoadError",n.type=r,n.request=a,s[1](n)}}),"chunk-"+t,t)}};var t=(t,i)=>{var s,r,[a,n,d]=i,h=0;if(a.some((t=>0!==e[t]))){for(s in n)o.o(n,s)&&(o.m[s]=n[s]);if(d)d(o)}for(t&&t(i);h<a.length;h++)r=a[h],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0},i=self.webpackChunkccxt=self.webpackChunkccxt||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var n={};o.r(n),o.d(n,{AccountNotEnabled:()=>l.AccountNotEnabled,AccountSuspended:()=>l.AccountSuspended,AddressPending:()=>l.AddressPending,ArgumentsRequired:()=>l.ArgumentsRequired,AuthenticationError:()=>l.AuthenticationError,BadRequest:()=>l.BadRequest,BadResponse:()=>l.BadResponse,BadSymbol:()=>l.BadSymbol,BaseError:()=>l.BaseError,CancelPending:()=>l.CancelPending,ChecksumError:()=>l.ChecksumError,ContractUnavailable:()=>l.ContractUnavailable,DDoSProtection:()=>l.DDoSProtection,DuplicateOrderId:()=>l.DuplicateOrderId,Exchange:()=>d.k,ExchangeClosedByUser:()=>l.ExchangeClosedByUser,ExchangeError:()=>l.ExchangeError,ExchangeNotAvailable:()=>l.ExchangeNotAvailable,InsufficientFunds:()=>l.InsufficientFunds,InvalidAddress:()=>l.InvalidAddress,InvalidNonce:()=>l.InvalidNonce,InvalidOrder:()=>l.InvalidOrder,InvalidProxySettings:()=>l.InvalidProxySettings,ManualInteractionNeeded:()=>l.ManualInteractionNeeded,MarginModeAlreadySet:()=>l.MarginModeAlreadySet,MarketClosed:()=>l.MarketClosed,NetworkError:()=>l.NetworkError,NoChange:()=>l.NoChange,NotSupported:()=>l.NotSupported,NullResponse:()=>l.NullResponse,OnMaintenance:()=>l.OnMaintenance,OperationFailed:()=>l.OperationFailed,OperationRejected:()=>l.OperationRejected,OrderImmediatelyFillable:()=>l.OrderImmediatelyFillable,OrderNotCached:()=>l.OrderNotCached,OrderNotFillable:()=>l.OrderNotFillable,OrderNotFound:()=>l.OrderNotFound,PermissionDenied:()=>l.PermissionDenied,Precise:()=>h.Y,RateLimitExceeded:()=>l.RateLimitExceeded,RequestTimeout:()=>l.RequestTimeout,RestrictedLocation:()=>l.RestrictedLocation,UnsubscribeError:()=>l.UnsubscribeError,abantether:()=>u.A,afratether:()=>f.A,alpaca:()=>p.A,apex:()=>m.A,arzinja:()=>g.A,arzplus:()=>v.A,ascendex:()=>y.A,bequant:()=>w.A,bigone:()=>b.A,binance:()=>k.A,binancecoinm:()=>S.A,binanceus:()=>O.A,binanceusdm:()=>T.A,bingx:()=>P.A,bit24:()=>M.A,bit2c:()=>I.A,bitbank:()=>x.A,bitbns:()=>A.A,bitfinex:()=>_.A,bitflyer:()=>C.A,bitget:()=>B.A,bithumb:()=>E.A,bitimen:()=>L.A,bitir:()=>R.A,bitmart:()=>N.A,bitmex:()=>D.A,bitopro:()=>q.A,bitpin:()=>V.A,bitrue:()=>F.A,bitso:()=>H.A,bitstamp:()=>G.A,bitteam:()=>U.A,bittrade:()=>W.A,bitvavo:()=>j.A,blockchaincom:()=>K.A,blofin:()=>z.A,btcalpha:()=>Y.A,btcbox:()=>X.A,btcmarkets:()=>Q.A,btcturk:()=>Z.A,bybit:()=>$.A,cex:()=>J.A,coinbase:()=>ee.A,coinbaseadvanced:()=>te.A,coinbaseexchange:()=>ie.A,coinbaseinternational:()=>se.A,coincatch:()=>re.A,coincheck:()=>ae.A,coinex:()=>oe.A,coinmate:()=>ne.A,coinmetro:()=>de.A,coinone:()=>he.A,coinsph:()=>ce.A,coinspot:()=>le.A,cryptocom:()=>ue.A,cryptomus:()=>fe.A,default:()=>ns,defx:()=>pe.A,delta:()=>me.A,deribit:()=>ge.A,derive:()=>ve.A,digifinex:()=>ye.A,ellipx:()=>we.A,errors:()=>l,eterex:()=>be.A,exchanges:()=>as,excoino:()=>ke.A,exir:()=>Se.A,exmo:()=>Oe.A,exnovin:()=>Te.A,farhadexchange:()=>Pe.A,fmfwio:()=>Me.A,foxbit:()=>Ie.A,functions:()=>c,gate:()=>xe.A,gateio:()=>Ae.A,gemini:()=>_e.A,hashkey:()=>Ce.A,hibachi:()=>Be.A,hitbtc:()=>Ee.A,hitobit:()=>Le.A,hollaex:()=>Re.A,htx:()=>Ne.A,huobi:()=>De.A,hyperliquid:()=>qe.A,independentreserve:()=>Ve.A,indodax:()=>Fe.A,jibitex:()=>He.A,kcex:()=>Ge.A,kraken:()=>Ue.A,krakenfutures:()=>We.A,kucoin:()=>je.A,kucoinfutures:()=>Ke.A,latoken:()=>ze.A,lbank:()=>Ye.A,luno:()=>Xe.A,mercado:()=>Qe.A,mexc:()=>Ze.A,modetrade:()=>$e.A,myokx:()=>Je.A,ndax:()=>et.A,nobitex:()=>tt.A,novadax:()=>it.A,oceanex:()=>st.A,okcoin:()=>rt.A,okexchange:()=>at.A,okx:()=>ot.A,okxus:()=>nt.A,ompfinex:()=>dt.A,onetrading:()=>ht.A,oxfun:()=>ct.A,p2b:()=>lt.A,paradex:()=>ut.A,paymium:()=>ft.A,phemex:()=>pt.A,poloniex:()=>mt.A,pro:()=>os,probit:()=>gt.A,ramzinex:()=>vt.A,sarmayex:()=>yt.A,sarrafex:()=>wt.A,tabdeal:()=>bt.A,tetherland:()=>kt.A,timex:()=>St.A,tokocrypto:()=>Ot.A,toobit:()=>Tt.A,tradeogre:()=>Pt.A,twox:()=>Mt.A,ubitex:()=>It.A,upbit:()=>xt.A,version:()=>rs,vertex:()=>At.A,wallex:()=>_t.A,wavesexchange:()=>Ct.A,whitebit:()=>Bt.A,woo:()=>Et.A,woofipro:()=>Lt.A,xt:()=>Rt.A,yobit:()=>Nt.A,zaif:()=>Dt.A,zonda:()=>qt.A});var d=o(2961),h=o(5147),c=o(5095),l=o(2079),u=o(1656),f=o(5566),p=o(7930),m=o(4920),g=o(6371),v=o(2065),y=o(1411),w=o(9002),b=o(8698),k=o(3192),S=o(1510),O=o(8228),T=o(2171),P=o(2480),M=o(1183),I=o(2342),x=o(7399),A=o(6328),_=o(8657),C=o(1787),B=o(7757),E=o(357),L=o(4456),R=o(9314),N=o(1837),D=o(9523),q=o(2753),V=o(9558),F=o(9061),H=o(3019),G=o(382),U=o(112),W=o(2263),j=o(3727),K=o(3205),z=o(2520),Y=o(3413),X=o(5376),Q=o(4936),Z=o(9265),$=o(5462),J=o(8846),ee=o(7504),te=o(3278),ie=o(4293),se=o(1558),re=o(570),ae=o(2741),oe=o(9344),ne=o(6016),de=o(8692),he=o(5377),ce=o(2692),le=o(1669),ue=o(6068),fe=o(870),pe=o(6077),me=o(1080),ge=o(2591),ve=o(1839),ye=o(779),we=o(1962),be=o(6415),ke=o(9335),Se=o(9098),Oe=o(7057),Te=o(9169),Pe=o(6711),Me=o(3042),Ie=o(448),xe=o(9403),Ae=o(784),_e=o(8823),Ce=o(2937),Be=o(5106),Ee=o(7996),Le=o(675),Re=o(4455),Ne=o(9946),De=o(63),qe=o(1936),Ve=o(4162),Fe=o(7325),He=o(835),Ge=o(1199),Ue=o(8042),We=o(2300),je=o(1397),Ke=o(6217),ze=o(8146),Ye=o(3144),Xe=o(9248),Qe=o(6419),Ze=o(2403),$e=o(5345),Je=o(8982),et=o(4460),tt=o(1561),it=o(8473),st=o(3805),rt=o(7915),at=o(79),ot=o(3660),nt=o(3536),dt=o(848),ht=o(3573),ct=o(6358),lt=o(4998),ut=o(6993),ft=o(3280),pt=o(9075),mt=o(288),gt=o(5037),vt=o(676),yt=o(5822),wt=o(9702),bt=o(5619),kt=o(7497),St=o(6213),Ot=o(2490),Tt=o(237),Pt=o(5887),Mt=o(8586),It=o(3551),xt=o(930),At=o(4910),_t=o(8633),Ct=o(7073),Bt=o(5336),Et=o(669),Lt=o(9641),Rt=o(5344),Nt=o(7469),Dt=o(1530),qt=o(6022),Vt=o(6810),Ft=o(136),Ht=o(1657),Gt=o(9338),Ut=o(9544),Wt=o(902),jt=o(8788),Kt=o(8251),zt=o(9456),Yt=o(1038),Xt=o(205),Qt=o(6181),Zt=o(3069),$t=o(3731),Jt=o(4401),ei=o(3333),ti=o(3326),ii=o(2391),si=o(1327),ri=o(8693),ai=o(1672),oi=o(8518),ni=o(3774),di=o(8160),hi=o(5918),ci=o(1925),li=o(998),ui=o(3242),fi=o(5317),pi=o(9088),mi=o(8673),gi=o(6292),vi=o(8717),yi=o(7791),wi=o(2127),bi=o(5233),ki=o(9195),Si=o(5843),Oi=o(375),Ti=o(1481),Pi=o(4524),Mi=o(8247),Ii=o(3898),xi=o(6335),Ai=o(3984),_i=o(98),Ci=o(9050),Bi=o(6396),Ei=o(4965),Li=o(905),Ri=o(1736),Ni=o(2208),Di=o(9219),qi=o(49),Vi=o(3062),Fi=o(3887),Hi=o(6187),Gi=o(8588),Ui=o(3296),Wi=o(4357),ji=o(550),Ki=o(4934),zi=o(1057),Yi=o(1619),Xi=o(3456),Qi=o(5738),Zi=o(8719),$i=o(5794),Ji=o(910),es=o(4712),ts=o(5869),is=o(8713),ss=o(2368);const rs="4.8.0";d.k.ccxtVersion=rs;const as={abantether:u.A,afratether:f.A,alpaca:p.A,apex:m.A,arzinja:g.A,arzplus:v.A,ascendex:y.A,bequant:w.A,bigone:b.A,binance:k.A,binancecoinm:S.A,binanceus:O.A,binanceusdm:T.A,bingx:P.A,bit24:M.A,bit2c:I.A,bitbank:x.A,bitbns:A.A,bitfinex:_.A,bitflyer:C.A,bitget:B.A,bithumb:E.A,bitimen:L.A,bitir:R.A,bitmart:N.A,bitmex:D.A,bitopro:q.A,bitpin:V.A,bitrue:F.A,bitso:H.A,bitstamp:G.A,bitteam:U.A,bittrade:W.A,bitvavo:j.A,blockchaincom:K.A,blofin:z.A,btcalpha:Y.A,btcbox:X.A,btcmarkets:Q.A,btcturk:Z.A,bybit:$.A,cex:J.A,coinbase:ee.A,coinbaseadvanced:te.A,coinbaseexchange:ie.A,coinbaseinternational:se.A,coincatch:re.A,coincheck:ae.A,coinex:oe.A,coinmate:ne.A,coinmetro:de.A,coinone:he.A,coinsph:ce.A,coinspot:le.A,cryptocom:ue.A,cryptomus:fe.A,defx:pe.A,delta:me.A,deribit:ge.A,derive:ve.A,digifinex:ye.A,ellipx:we.A,eterex:be.A,excoino:ke.A,exir:Se.A,exmo:Oe.A,exnovin:Te.A,farhadexchange:Pe.A,fmfwio:Me.A,foxbit:Ie.A,gate:xe.A,gateio:Ae.A,gemini:_e.A,hashkey:Ce.A,hibachi:Be.A,hitbtc:Ee.A,hitobit:Le.A,hollaex:Re.A,htx:Ne.A,huobi:De.A,hyperliquid:qe.A,independentreserve:Ve.A,indodax:Fe.A,jibitex:He.A,kcex:Ge.A,kraken:Ue.A,krakenfutures:We.A,kucoin:je.A,kucoinfutures:Ke.A,latoken:ze.A,lbank:Ye.A,luno:Xe.A,mercado:Qe.A,mexc:Ze.A,modetrade:$e.A,myokx:Je.A,ndax:et.A,nobitex:tt.A,novadax:it.A,oceanex:st.A,okcoin:rt.A,okexchange:at.A,okx:ot.A,okxus:nt.A,ompfinex:dt.A,onetrading:ht.A,oxfun:ct.A,p2b:lt.A,paradex:ut.A,paymium:ft.A,phemex:pt.A,poloniex:mt.A,probit:gt.A,ramzinex:vt.A,sarmayex:yt.A,sarrafex:wt.A,tabdeal:bt.A,tetherland:kt.A,timex:St.A,tokocrypto:Ot.A,toobit:Tt.A,tradeogre:Pt.A,twox:Mt.A,ubitex:It.A,upbit:xt.A,vertex:At.A,wallex:_t.A,wavesexchange:Ct.A,whitebit:Bt.A,woo:Et.A,woofipro:Lt.A,xt:Rt.A,yobit:Nt.A,zaif:Dt.A,zonda:qt.A},os={alpaca:Vt.A,apex:Ft.A,ascendex:Ht.A,bequant:Gt.A,binance:Ut.A,binancecoinm:Wt.A,binanceus:jt.A,binanceusdm:Kt.A,bingx:zt.A,bitfinex:Yt.A,bitget:Xt.A,bithumb:Qt.A,bitmart:Zt.A,bitmex:$t.A,bitopro:Jt.A,bitrue:ei.A,bitstamp:ti.A,bittrade:ii.A,bitvavo:si.A,blockchaincom:ri.A,blofin:ai.A,bybit:oi.A,cex:ni.A,coinbase:di.A,coinbaseadvanced:hi.A,coinbaseexchange:ci.A,coinbaseinternational:li.A,coincatch:ui.A,coincheck:fi.A,coinex:pi.A,coinone:mi.A,cryptocom:gi.A,defx:vi.A,deribit:yi.A,derive:wi.A,exmo:bi.A,gate:ki.A,gateio:Si.A,gemini:Oi.A,hashkey:Ti.A,hitbtc:Pi.A,hollaex:Mi.A,htx:Ii.A,huobi:xi.A,hyperliquid:Ai.A,independentreserve:_i.A,kraken:Ci.A,krakenfutures:Bi.A,kucoin:Ei.A,kucoinfutures:Li.A,lbank:Ri.A,luno:Ni.A,mexc:Di.A,modetrade:qi.A,myokx:Vi.A,ndax:Fi.A,okcoin:Hi.A,okx:Gi.A,okxus:Ui.A,onetrading:Wi.A,oxfun:ji.A,p2b:Ki.A,paradex:zi.A,phemex:Yi.A,poloniex:Xi.A,probit:Qi.A,tradeogre:Zi.A,upbit:$i.A,vertex:Ji.A,whitebit:es.A,woo:ts.A,woofipro:is.A,xt:ss.A};for(const e in os);os.exchanges=Object.keys(os),os.Exchange=d.k;const ns=Object.assign({version:rs,Exchange:d.k,Precise:h.Y,exchanges:Object.keys(as),pro:os},as,c,l);self.ccxt=n})();
|
|
33
|
+
var s={};s.lang={extend:function(e,t,i){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var s=function(){};if(s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),i){var r;for(r in i)e.prototype[r]=i[r];var a=function(){},o=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(e,t){for(r=0;r<o.length;r+=1){var i=o[r],s=t[i];"function"==typeof s&&s!=Object.prototype[i]&&(e[i]=s)}})}catch(e){}a(e.prototype,i)}}}},917:(e,t,i)=>{function s(e,t){if(t&&t.multiple&&!Array.isArray(e))throw new Error("Invalid argument type: Expected an Array to serialize multiple values.");const i=4294967296;let s,r,a=new Uint8Array(128),o=0;if(t&&t.multiple)for(let t=0;t<e.length;t++)n(e[t]);else n(e);return a.subarray(0,o);function n(e,a){switch(typeof e){case"undefined":d(e);break;case"boolean":!function(e){c(e?195:194)}(e);break;case"number":!function(e){if(isFinite(e)&&Math.floor(e)===e)if(e>=0&&e<=127)c(e);else if(e<0&&e>=-32)c(e);else if(e>0&&e<=255)l([204,e]);else if(e>=-128&&e<=127)l([208,e]);else if(e>0&&e<=65535)l([205,e>>>8,e]);else if(e>=-32768&&e<=32767)l([209,e>>>8,e]);else if(e>0&&e<=4294967295)l([206,e>>>24,e>>>16,e>>>8,e]);else if(e>=-2147483648&&e<=2147483647)l([210,e>>>24,e>>>16,e>>>8,e]);else if(e>0&&e<=0x10000000000000000){let t=e/i,s=e%i;l([207,t>>>24,t>>>16,t>>>8,t,s>>>24,s>>>16,s>>>8,s])}else e>=-0x8000000000000000&&e<=0x8000000000000000?(c(211),u(e)):l(e<0?[211,128,0,0,0,0,0,0,0]:[207,255,255,255,255,255,255,255,255]);else r||(s=new ArrayBuffer(8),r=new DataView(s)),r.setFloat64(0,e),c(203),l(new Uint8Array(s))}(e);break;case"string":!function(e){let t=function(e){let t=!0,i=e.length;for(let s=0;s<i;s++)if(e.charCodeAt(s)>127){t=!1;break}let s=0,r=new Uint8Array(e.length*(t?1:4));for(let t=0;t!==i;t++){let a=e.charCodeAt(t);if(a<128)r[s++]=a;else{if(a<2048)r[s++]=a>>6|192;else{if(a>55295&&a<56320){if(++t>=i)throw new Error("UTF-8 encode: incomplete surrogate pair");let o=e.charCodeAt(t);if(o<56320||o>57343)throw new Error("UTF-8 encode: second surrogate character 0x"+o.toString(16)+" at index "+t+" out of range");a=65536+((1023&a)<<10)+(1023&o),r[s++]=a>>18|240,r[s++]=a>>12&63|128}else r[s++]=a>>12|224;r[s++]=a>>6&63|128}r[s++]=63&a|128}}return t?r:r.subarray(0,s)}(e),i=t.length;i<=31?c(160+i):l(i<=255?[217,i]:i<=65535?[218,i>>>8,i]:[219,i>>>24,i>>>16,i>>>8,i]);l(t)}(e);break;case"object":null===e?d(e):e instanceof Date?function(e){let t=e.getTime()/1e3;if(0===e.getMilliseconds()&&t>=0&&t<4294967296)l([214,255,t>>>24,t>>>16,t>>>8,t]);else if(t>=0&&t<17179869184){let s=1e6*e.getMilliseconds();l([215,255,s>>>22,s>>>14,s>>>6,s<<2>>>0|t/i,t>>>24,t>>>16,t>>>8,t])}else{let i=1e6*e.getMilliseconds();l([199,12,255,i>>>24,i>>>16,i>>>8,i]),u(t)}}(e):Array.isArray(e)?h(e):e instanceof Uint8Array||e instanceof Uint8ClampedArray?function(e){let t=e.length;l(t<=15?[196,t]:t<=65535?[197,t>>>8,t]:[198,t>>>24,t>>>16,t>>>8,t]);l(e)}(e):e instanceof Int8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array?h(e):function(e){let t=0;for(let i in e)void 0!==e[i]&&t++;t<=15?c(128+t):l(t<=65535?[222,t>>>8,t]:[223,t>>>24,t>>>16,t>>>8,t]);for(let t in e){let i=e[t];void 0!==i&&(n(t),n(i))}}(e);break;default:if(a||!t||!t.invalidTypeReplacement)throw new Error("Invalid argument type: The type '"+typeof e+"' cannot be serialized.");"function"==typeof t.invalidTypeReplacement?n(t.invalidTypeReplacement(e),!0):n(t.invalidTypeReplacement,!0)}}function d(e){c(192)}function h(e){let t=e.length;t<=15?c(144+t):l(t<=65535?[220,t>>>8,t]:[221,t>>>24,t>>>16,t>>>8,t]);for(let i=0;i<t;i++)n(e[i])}function c(e){if(a.length<o+1){let e=2*a.length;for(;e<o+1;)e*=2;let t=new Uint8Array(e);t.set(a),a=t}a[o]=e,o++}function l(e){if(a.length<o+e.length){let t=2*a.length;for(;t<o+e.length;)t*=2;let i=new Uint8Array(t);i.set(a),a=i}a.set(e,o),o+=e.length}function u(e){let t,s;e>=0?(t=e/i,s=e%i):(e++,t=Math.abs(e)/i,s=Math.abs(e)%i,t=~t,s=~s),l([t>>>24,t>>>16,t>>>8,t,s>>>24,s>>>16,s>>>8,s])}}i.d(t,{l:()=>s})},7661:(e,t,i)=>{let s;i.d(t,{$s:()=>I,Ay:()=>ge,H3:()=>oe,JF:()=>C,KR:()=>F,qj:()=>_});const r=new Array(128).fill(void 0);function a(e){return r[e]}r.push(void 0,null,!0,!1);let o=r.length;function n(e){const t=a(e);return function(e){e<132||(r[e]=o,o=e)}(e),t}function d(e){o===r.length&&r.push(r.length+1);const t=o;return o=r[t],r[t]=e,t}const h="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&h.decode();let c=null;function l(){return null!==c&&0!==c.byteLength||(c=new Uint8Array(s.memory.buffer)),c}function u(e,t){return e>>>=0,h.decode(l().subarray(e,e+t))}function f(e){return null==e}let p=null;let m=null;function g(){return null!==m&&0!==m.byteLength||(m=new Int32Array(s.memory.buffer)),m}let v=0;const y="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},w="function"==typeof y.encodeInto?function(e,t){return y.encodeInto(e,t)}:function(e,t){const i=y.encode(e);return t.set(i),{read:e.length,written:i.length}};function b(e,t,i){if(void 0===i){const i=y.encode(e),s=t(i.length,1)>>>0;return l().subarray(s,s+i.length).set(i),v=i.length,s}let s=e.length,r=t(s,1)>>>0;const a=l();let o=0;for(;o<s;o++){const t=e.charCodeAt(o);if(t>127)break;a[r+o]=t}if(o!==s){0!==o&&(e=e.slice(o)),r=i(r,s,s=o+3*e.length,1)>>>0;const t=l().subarray(r+o,r+s);o+=w(e,t).written,r=i(r,s,o,1)>>>0}return v=o,r}let k=null;function S(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let i="[";t>0&&(i+=S(e[0]));for(let s=1;s<t;s++)i+=", "+S(e[s]);return i+="]",i}const i=/\[object ([^\]]+)\]/.exec(toString.call(e));let s;if(!(i.length>1))return toString.call(e);if(s=i[1],"Object"==s)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:s}const O="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>{s.__wbindgen_export_2.get(e.dtor)(e.a,e.b)}));function T(e,t,i,r){const a={a:e,b:t,cnt:1,dtor:i},o=(...e)=>{a.cnt++;const t=a.a;a.a=0;try{return r(t,a.b,...e)}finally{0==--a.cnt?(s.__wbindgen_export_2.get(a.dtor)(t,a.b),O.unregister(a)):a.a=t}};return o.original=a,O.register(o,a,a),o}function P(e,t){s.__wbindgen_export_3(e,t)}function M(e,t,i){s.__wbindgen_export_4(e,t,d(i))}function I(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16);s.newRpcSignerWithProvider(r,d(e));var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return Q.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}function x(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`);return e.ptr}let A=null;function _(e){x(e,oe);var t=e.__destroy_into_raw();const i=s.newTransfer(t);return re.__wrap(i)}function C(e){x(e,F);var t=e.__destroy_into_raw();const i=s.newContract(t);return q.__wrap(i)}function B(e,t){try{return e.apply(this,t)}catch(e){s.__wbindgen_export_6(d(e))}}Object.freeze({Success:0,0:"Success",Failed:1,1:"Failed",Pending:2,2:"Pending"}),Object.freeze({OnChain:0,0:"OnChain",EthECDSA:1,1:"EthECDSA",EthCREATE2:2,2:"EthCREATE2"}),Object.freeze({Eth:0,0:"Eth",Eip1271:1,1:"Eip1271",Stark:2,2:"Stark"}),Object.freeze({Deposit:1,1:"Deposit",FullExit:5,5:"FullExit",ChangePubKey:6,6:"ChangePubKey",Transfer:4,4:"Transfer",Withdraw:3,3:"Withdraw",ForcedExit:7,7:"ForcedExit",OrderMatching:8,8:"OrderMatching",AutoDeleveraging:11,11:"AutoDeleveraging",ContractMatching:9,9:"ContractMatching",Funding:13,13:"Funding",Liquidation:10,10:"Liquidation",UpdateGlobalVar:12,12:"UpdateGlobalVar"}),Object.freeze({Latest:0,0:"Latest",Finalized:1,1:"Finalized",Safe:2,2:"Safe",Earliest:3,3:"Earliest",Pending:4,4:"Pending",Number:5,5:"Number"}),Object.freeze({FeeAccount:0,0:"FeeAccount",InsuranceFundAccount:1,1:"InsuranceFundAccount",MarginInfo:2,2:"MarginInfo",FundingInfos:3,3:"FundingInfos",ContractInfo:4,4:"ContractInfo"}),Object.freeze({AccountId:0,0:"AccountId",Address:1,1:"Address"}),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_accountquery_free(e>>>0)));const E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_autodeleveraging_free(e>>>0)));class L{static __wrap(e){e>>>=0;const t=Object.create(L.prototype);return t.__wbg_ptr=e,E.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_autodeleveraging_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.autodeleveraging_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.autodeleveraging_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_autodeleveragingbuilder_free(e>>>0)));const R="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_changepubkey_free(e>>>0)));class N{static __wrap(e){e>>>=0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,R.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_changepubkey_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.changepubkey_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getChangePubkeyMessage(e,t){let i,r;try{const f=s.__wbindgen_add_to_stack_pointer(-16),p=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),m=v;s.changepubkey_getChangePubkeyMessage(f,this.__wbg_ptr,e,p,m);var a=g()[f/4+0],o=g()[f/4+1],d=g()[f/4+2],h=g()[f/4+3],c=a,l=o;if(h)throw c=0,l=0,n(d);return i=c,r=l,u(c,l)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(i,r,1)}}getEthSignMsg(e,t){let i,r;try{const n=s.__wbindgen_add_to_stack_pointer(-16);s.changepubkey_getEthSignMsg(n,this.__wbg_ptr,e,t);var a=g()[n/4+0],o=g()[n/4+1];return i=a,r=o,u(a,o)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(i,r,1)}}setEthAuthData(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.changepubkey_setEthAuthData(r,this.__wbg_ptr,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return n(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.changepubkey_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_changepubkeybuilder_free(e>>>0)));const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contract_free(e>>>0)));class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,D.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contract_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.contract_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.contract_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contractbuilder_free(e>>>0)));class F{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contractbuilder_free(e)}constructor(e,t,i,r,a,o,d,h,c,l,u){try{const m=s.__wbindgen_add_to_stack_pointer(-16),y=b(o,s.__wbindgen_export_0,s.__wbindgen_export_1),w=v,k=b(d,s.__wbindgen_export_0,s.__wbindgen_export_1),S=v;s.contractbuilder_new(m,e,t,i,r,a,y,w,k,S,h,c,l,u);var f=g()[m/4+0],p=g()[m/4+1];if(g()[m/4+2])throw n(p);return this.__wbg_ptr=f>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}build(){const e=this.__destroy_into_raw(),t=s.contractbuilder_build(e);return q.__wrap(t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractinfo_free(e>>>0)));const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_contractmatching_free(e>>>0)));class G{static __wrap(e){e>>>=0;const t=Object.create(G.prototype);return t.__wbg_ptr=e,H.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_contractmatching_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.contractmatching_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.contractmatching_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractmatchingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_contractprice_free(e>>>0)));const U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_create2data_free(e>>>0)));class W{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_create2data_free(e)}constructor(e,t,i){try{const o=s.__wbindgen_add_to_stack_pointer(-16),d=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),h=v,c=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),l=v,u=b(i,s.__wbindgen_export_0,s.__wbindgen_export_1),f=v;s.create2data_new(o,d,h,c,l,u,f);var r=g()[o/4+0],a=g()[o/4+1];if(g()[o/4+2])throw n(a);return this.__wbg_ptr=r>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}salt(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.create2data_salt(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.create2data_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_ethtxoption_free(e>>>0)));const j="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_forcedexit_free(e>>>0)));class K{static __wrap(e){e>>>=0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_forcedexit_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.forcedexit_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.forcedexit_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_forcedexitbuilder_free(e>>>0)));const z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_funding_free(e>>>0)));class Y{static __wrap(e){e>>>=0;const t=Object.create(Y.prototype);return t.__wbg_ptr=e,z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_funding_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.funding_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.funding_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_fundingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_fundinginfo_free(e>>>0)));const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_jsonrpcsigner_free(e>>>0)));class Q{static __wrap(e){e>>>=0;const t=Object.create(Q.prototype);return t.__wbg_ptr=e,X.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_jsonrpcsigner_free(e)}initZklinkSigner(e){var t=f(e)?0:b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),i=v;return n(s.jsonrpcsigner_initZklinkSigner(this.__wbg_ptr,t,i))}getPubkey(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_getPubkey(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}pubkeyHash(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_pubkeyHash(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}address(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_address(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];let r;return 0!==e&&(r=u(e,t).slice(),s.__wbindgen_export_5(e,1*t,1)),r}finally{s.__wbindgen_add_to_stack_pointer(16)}}signatureSeed(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.jsonrpcsigner_signatureSeed(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}signChangePubkeyWithOnchain(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,N);var t=e.__destroy_into_raw();s.jsonrpcsigner_signChangePubkeyWithOnchain(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signChangePubkeyWithEthEcdsaAuth(e){x(e,N);var t=e.__destroy_into_raw();return n(s.jsonrpcsigner_signChangePubkeyWithEthEcdsaAuth(this.__wbg_ptr,t))}signChangePubkeyWithCreate2DataAuth(e,t){try{const d=s.__wbindgen_add_to_stack_pointer(-16);x(e,N);var i=e.__destroy_into_raw();x(t,W);var r=t.__destroy_into_raw();s.jsonrpcsigner_signChangePubkeyWithCreate2DataAuth(d,this.__wbg_ptr,i,r);var a=g()[d/4+0],o=g()[d/4+1];if(g()[d/4+2])throw n(o);return n(a)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signTransfer(e,t){x(e,re);var i=e.__destroy_into_raw();const r=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),a=v;return n(s.jsonrpcsigner_signTransfer(this.__wbg_ptr,i,r,a))}createSignedOrder(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ee);var t=e.__destroy_into_raw();s.jsonrpcsigner_createSignedOrder(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signOrderMatching(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ie);var t=e.__destroy_into_raw();s.jsonrpcsigner_signOrderMatching(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signWithdraw(e,t){x(e,ce);var i=e.__destroy_into_raw();const r=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),a=v;return n(s.jsonrpcsigner_signWithdraw(this.__wbg_ptr,i,r,a))}signForcedExit(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,K);var t=e.__destroy_into_raw();s.jsonrpcsigner_signForcedExit(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signAutoDeleveraging(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,L);var t=e.__destroy_into_raw();s.jsonrpcsigner_signAutoDeleveraging(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}createSignedContract(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,q);var t=e.__destroy_into_raw();s.jsonrpcsigner_createSignedContract(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signContractMatching(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,G);var t=e.__destroy_into_raw();s.jsonrpcsigner_signContractMatching(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signFunding(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,Y);var t=e.__destroy_into_raw();s.jsonrpcsigner_signFunding(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signLiquidation(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,$);var t=e.__destroy_into_raw();s.jsonrpcsigner_signLiquidation(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}signMusig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=function(e,t){const i=t(1*e.length,1)>>>0;return l().set(e,i/1),v=e.length,i}(e,s.__wbindgen_export_0),o=v;s.jsonrpcsigner_signMusig(r,this.__wbg_ptr,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return de.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getZkLinkSigner(){const e=s.jsonrpcsigner_getZkLinkSigner(this.__wbg_ptr);return ue.__wrap(e)}}const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_liquidation_free(e>>>0)));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,Z.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_liquidation_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.liquidation_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.liquidation_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_liquidationbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_margininfo_free(e>>>0)));const J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_order_free(e>>>0)));class ee{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_order_free(e)}constructor(e,t,i,r,a,o,d,h,c,l,u,f){try{const y=s.__wbindgen_add_to_stack_pointer(-16),w=b(d,s.__wbindgen_export_0,s.__wbindgen_export_1),k=v,S=b(h,s.__wbindgen_export_0,s.__wbindgen_export_1),O=v;s.order_new(y,e,t,i,r,a,o,w,k,S,O,c,l,u,f);var p=g()[y/4+0],m=g()[y/4+1];if(g()[y/4+2])throw n(m);return this.__wbg_ptr=p>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.order_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.order_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const te="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_ordermatching_free(e>>>0)));class ie{static __wrap(e){e>>>=0;const t=Object.create(ie.prototype);return t.__wbg_ptr=e,te.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,te.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_ordermatching_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.ordermatching_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_ordermatchingbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_parameter_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_requestarguments_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_rpcclient_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_spotpriceinfo_free(e>>>0)));const se="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_transfer_free(e>>>0)));class re{static __wrap(e){e>>>=0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,se.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,se.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_transfer_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.transfer_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getEthSignMsg(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.transfer_getEthSignMsg(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.transfer_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}const ae="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_transferbuilder_free(e>>>0)));class oe{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ae.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_transferbuilder_free(e)}constructor(e,t,i,r,a,o,d,h,c){try{const p=s.__wbindgen_add_to_stack_pointer(-16),m=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),y=v,w=b(o,s.__wbindgen_export_0,s.__wbindgen_export_1),k=v,S=b(d,s.__wbindgen_export_0,s.__wbindgen_export_1),O=v;s.transferbuilder_new(p,e,m,y,i,r,a,w,k,S,O,h,!f(c),f(c)?0:c);var l=g()[p/4+0],u=g()[p/4+1];if(g()[p/4+2])throw n(u);return this.__wbg_ptr=l>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}build(){const e=this.__destroy_into_raw(),t=s.transferbuilder_build(e);return re.__wrap(t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_txlayer1signature_free(e>>>0)));const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_txzklinksignature_free(e>>>0)));class de{static __wrap(e){e>>>=0;const t=Object.create(de.prototype);return t.__wbg_ptr=e,ne.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_txzklinksignature_free(e)}constructor(e,t){try{const a=s.__wbindgen_add_to_stack_pointer(-16),o=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v,h=b(t,s.__wbindgen_export_0,s.__wbindgen_export_1),c=v;s.txzklinksignature_new(a,o,d,h,c);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return this.__wbg_ptr=i>>>0,this}finally{s.__wbindgen_add_to_stack_pointer(16)}}pubKey(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.txzklinksignature_pubKey(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}signature(){let e,t;try{const a=s.__wbindgen_add_to_stack_pointer(-16);s.txzklinksignature_signature(a,this.__wbg_ptr);var i=g()[a/4+0],r=g()[a/4+1];return e=i,t=r,u(i,r)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(e,t,1)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_updateglobalvar_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_updateglobalvarbuilder_free(e>>>0)));"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_wallet_free(e>>>0)));const he="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_withdraw_free(e>>>0)));class ce{static __wrap(e){e>>>=0;const t=Object.create(ce.prototype);return t.__wbg_ptr=e,he.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,he.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_withdraw_free(e)}jsValue(){try{const i=s.__wbindgen_add_to_stack_pointer(-16);s.withdraw_jsValue(i,this.__wbg_ptr);var e=g()[i/4+0],t=g()[i/4+1];if(g()[i/4+2])throw n(t);return n(e)}finally{s.__wbindgen_add_to_stack_pointer(16)}}getEthSignMsg(e){let t,i;try{const o=s.__wbindgen_add_to_stack_pointer(-16),n=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),d=v;s.withdraw_getEthSignMsg(o,this.__wbg_ptr,n,d);var r=g()[o/4+0],a=g()[o/4+1];return t=r,i=a,u(r,a)}finally{s.__wbindgen_add_to_stack_pointer(16),s.__wbindgen_export_5(t,i,1)}}sign(e){try{const a=s.__wbindgen_add_to_stack_pointer(-16);x(e,ue);var t=e.__destroy_into_raw();s.withdraw_sign(a,this.__wbg_ptr,t);var i=g()[a/4+0],r=g()[a/4+1];if(g()[a/4+2])throw n(r);return n(i)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_withdrawbuilder_free(e>>>0)));const le="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>s.__wbg_zklinksigner_free(e>>>0)));class ue{static __wrap(e){e>>>=0;const t=Object.create(ue.prototype);return t.__wbg_ptr=e,le.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,le.unregister(this),e}free(){const e=this.__destroy_into_raw();s.__wbg_zklinksigner_free(e)}static ethSig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.zklinksigner_ethSig(r,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return ue.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}static starknetSig(e){try{const r=s.__wbindgen_add_to_stack_pointer(-16),a=b(e,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;s.zklinksigner_starknetSig(r,a,o);var t=g()[r/4+0],i=g()[r/4+1];if(g()[r/4+2])throw n(i);return ue.__wrap(t)}finally{s.__wbindgen_add_to_stack_pointer(16)}}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>s.__wbg_zklinktx_free(e>>>0)));function fe(){const e={wbg:{}};return e.wbg.__wbindgen_object_drop_ref=function(e){n(e)},e.wbg.__wbg_request_aa80f2dd90291bcc=function(){return B((function(e,t){return d(a(e).request(n(t)))}),arguments)},e.wbg.__wbg_signMessage_31620e519ceecf94=function(){return B((function(e,t){return d(a(e).signMessage(a(t)))}),arguments)},e.wbg.__wbindgen_number_new=function(e){return d(e)},e.wbg.__wbindgen_string_new=function(e,t){return d(u(e,t))},e.wbg.__wbindgen_is_undefined=function(e){return void 0===a(e)},e.wbg.__wbindgen_in=function(e,t){return a(e)in a(t)},e.wbg.__wbindgen_boolean_get=function(e){const t=a(e);return"boolean"==typeof t?t?1:0:2},e.wbg.__wbindgen_is_bigint=function(e){return"bigint"==typeof a(e)},e.wbg.__wbindgen_number_get=function(e,t){const i=a(t),r="number"==typeof i?i:void 0;(null!==p&&0!==p.byteLength||(p=new Float64Array(s.memory.buffer)),p)[e/8+1]=f(r)?0:r,g()[e/4+0]=!f(r)},e.wbg.__wbindgen_bigint_from_i64=function(e){return d(e)},e.wbg.__wbindgen_jsval_eq=function(e,t){return a(e)===a(t)},e.wbg.__wbindgen_string_get=function(e,t){const i=a(t),r="string"==typeof i?i:void 0;var o=f(r)?0:b(r,s.__wbindgen_export_0,s.__wbindgen_export_1),n=v;g()[e/4+1]=n,g()[e/4+0]=o},e.wbg.__wbindgen_is_object=function(e){const t=a(e);return"object"==typeof t&&null!==t},e.wbg.__wbindgen_bigint_from_u64=function(e){return d(BigInt.asUintN(64,e))},e.wbg.__wbindgen_object_clone_ref=function(e){return d(a(e))},e.wbg.__wbindgen_as_number=function(e){return+a(e)},e.wbg.__wbindgen_error_new=function(e,t){return d(new Error(u(e,t)))},e.wbg.__wbg_performance_eeefc685c9bc38b4=function(e){return d(a(e).performance)},e.wbg.__wbg_now_e0d8ec93dd25766a=function(e){return a(e).now()},e.wbg.__wbg_selectedAddress_e88960714bb47d11=function(e,t){const i=a(t).selectedAddress;var r=f(i)?0:b(i,s.__wbindgen_export_0,s.__wbindgen_export_1),o=v;g()[e/4+1]=o,g()[e/4+0]=r},e.wbg.__wbg_address_b7ff4a10022d02d8=function(e,t){const i=b(a(t).address,s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbindgen_jsval_loose_eq=function(e,t){return a(e)==a(t)},e.wbg.__wbg_String_389b54bd9d25375f=function(e,t){const i=b(String(a(t)),s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbg_getwithrefkey_4a92a5eca60879b9=function(e,t){return d(a(e)[a(t)])},e.wbg.__wbg_set_9182712abebf82ef=function(e,t,i){a(e)[n(t)]=n(i)},e.wbg.__wbindgen_cb_drop=function(e){const t=n(e).original;if(1==t.cnt--)return t.a=0,!0;return!1},e.wbg.__wbg_clearTimeout_76877dbc010e786d=function(e){return d(clearTimeout(n(e)))},e.wbg.__wbg_setTimeout_75cb9b6991a4031d=function(){return B((function(e,t){return d(setTimeout(a(e),t))}),arguments)},e.wbg.__wbg_fetch_6a2624d7f767e331=function(e){return d(fetch(a(e)))},e.wbg.__wbg_fetch_693453ca3f88c055=function(e,t){return d(a(e).fetch(a(t)))},e.wbg.__wbg_new_7a20246daa6eec7e=function(){return B((function(){return d(new Headers)}),arguments)},e.wbg.__wbg_append_aa3f462f9e2b5ff2=function(){return B((function(e,t,i,s,r){a(e).append(u(t,i),u(s,r))}),arguments)},e.wbg.__wbg_newwithstrandinit_f581dff0d19a8b03=function(){return B((function(e,t,i){return d(new Request(u(e,t),a(i)))}),arguments)},e.wbg.__wbg_signal_3c701f5f40a5f08d=function(e){return d(a(e).signal)},e.wbg.__wbg_new_0ae46f44b7485bb2=function(){return B((function(){return d(new AbortController)}),arguments)},e.wbg.__wbg_abort_2c4fb490d878d2b2=function(e){a(e).abort()},e.wbg.__wbg_instanceof_Response_4c3b1446206114d1=function(e){let t;try{t=a(e)instanceof Response}catch(e){t=!1}return t},e.wbg.__wbg_url_83a6a4f65f7a2b38=function(e,t){const i=b(a(t).url,s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbg_status_d6d47ad2837621eb=function(e){return a(e).status},e.wbg.__wbg_headers_24def508a7518df9=function(e){return d(a(e).headers)},e.wbg.__wbg_arrayBuffer_5b2688e3dd873fed=function(){return B((function(e){return d(a(e).arrayBuffer())}),arguments)},e.wbg.__wbg_queueMicrotask_481971b0d87f3dd4=function(e){queueMicrotask(a(e))},e.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6=function(e){return d(a(e).queueMicrotask)},e.wbg.__wbindgen_is_function=function(e){return"function"==typeof a(e)},e.wbg.__wbg_crypto_58f13aa23ffcb166=function(e){return d(a(e).crypto)},e.wbg.__wbg_process_5b786e71d465a513=function(e){return d(a(e).process)},e.wbg.__wbg_versions_c2ab80650590b6a2=function(e){return d(a(e).versions)},e.wbg.__wbg_node_523d7bd03ef69fba=function(e){return d(a(e).node)},e.wbg.__wbindgen_is_string=function(e){return"string"==typeof a(e)},e.wbg.__wbg_require_2784e593a4674877=function(){return B((function(){return d(module.require)}),arguments)},e.wbg.__wbg_msCrypto_abcb1295e768d1f2=function(e){return d(a(e).msCrypto)},e.wbg.__wbg_randomFillSync_a0d98aa11c81fe89=function(){return B((function(e,t){a(e).randomFillSync(n(t))}),arguments)},e.wbg.__wbg_getRandomValues_504510b5564925af=function(){return B((function(e,t){a(e).getRandomValues(a(t))}),arguments)},e.wbg.__wbg_get_bd8e338fbd5f5cc8=function(e,t){return d(a(e)[t>>>0])},e.wbg.__wbg_length_cd7af8117672b8b8=function(e){return a(e).length},e.wbg.__wbg_new_16b304a2cfa7ff4a=function(){return d(new Array)},e.wbg.__wbg_newnoargs_e258087cd0daa0ea=function(e,t){return d(new Function(u(e,t)))},e.wbg.__wbg_new_d9bc3a0147634640=function(){return d(new Map)},e.wbg.__wbg_next_40fc327bfc8770e6=function(e){return d(a(e).next)},e.wbg.__wbg_next_196c84450b364254=function(){return B((function(e){return d(a(e).next())}),arguments)},e.wbg.__wbg_done_298b57d23c0fc80c=function(e){return a(e).done},e.wbg.__wbg_value_d93c65011f51a456=function(e){return d(a(e).value)},e.wbg.__wbg_iterator_2cee6dadfd956dfa=function(){return d(Symbol.iterator)},e.wbg.__wbg_get_e3c254076557e348=function(){return B((function(e,t){return d(Reflect.get(a(e),a(t)))}),arguments)},e.wbg.__wbg_call_27c0f87801dedf93=function(){return B((function(e,t){return d(a(e).call(a(t)))}),arguments)},e.wbg.__wbg_new_72fb9a18b5ae2624=function(){return d(new Object)},e.wbg.__wbg_self_ce0dbfc45cf2f5be=function(){return B((function(){return d(self.self)}),arguments)},e.wbg.__wbg_window_c6fb939a7f436783=function(){return B((function(){return d(window.window)}),arguments)},e.wbg.__wbg_globalThis_d1e6af4856ba331b=function(){return B((function(){return d(globalThis.globalThis)}),arguments)},e.wbg.__wbg_global_207b558942527489=function(){return B((function(){return d(global.global)}),arguments)},e.wbg.__wbg_set_d4638f722068f043=function(e,t,i){a(e)[t>>>0]=n(i)},e.wbg.__wbg_isArray_2ab64d95e09ea0ae=function(e){return Array.isArray(a(e))},e.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2=function(e){let t;try{t=a(e)instanceof ArrayBuffer}catch(e){t=!1}return t},e.wbg.__wbg_call_b3ca7c6051f9bec1=function(){return B((function(e,t,i){return d(a(e).call(a(t),a(i)))}),arguments)},e.wbg.__wbg_set_8417257aaedc936b=function(e,t,i){return d(a(e).set(a(t),a(i)))},e.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2=function(e){return Number.isSafeInteger(a(e))},e.wbg.__wbg_entries_95cc2c823b285a09=function(e){return d(Object.entries(a(e)))},e.wbg.__wbg_new_81740750da40724f=function(e,t){try{var i={a:e,b:t};const r=new Promise(((e,t)=>{const r=i.a;i.a=0;try{return function(e,t,i,r){s.__wbindgen_export_7(e,t,d(i),d(r))}(r,i.b,e,t)}finally{i.a=r}}));return d(r)}finally{i.a=i.b=0}},e.wbg.__wbg_resolve_b0083a7967828ec8=function(e){return d(Promise.resolve(a(e)))},e.wbg.__wbg_then_0c86a60e8fcfe9f6=function(e,t){return d(a(e).then(a(t)))},e.wbg.__wbg_then_a73caa9a87991566=function(e,t,i){return d(a(e).then(a(t),a(i)))},e.wbg.__wbg_buffer_12d079cc21e14bdb=function(e){return d(a(e).buffer)},e.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb=function(e,t,i){return d(new Uint8Array(a(e),t>>>0,i>>>0))},e.wbg.__wbg_new_63b92bc8671ed464=function(e){return d(new Uint8Array(a(e)))},e.wbg.__wbg_set_a47bac70306a19a7=function(e,t,i){a(e).set(a(t),i>>>0)},e.wbg.__wbg_length_c20a40f15020d68a=function(e){return a(e).length},e.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6=function(e){let t;try{t=a(e)instanceof Uint8Array}catch(e){t=!1}return t},e.wbg.__wbg_newwithlength_e9b4878cebadb3d3=function(e){return d(new Uint8Array(e>>>0))},e.wbg.__wbg_subarray_a1f73cd4b5b42fe1=function(e,t,i){return d(a(e).subarray(t>>>0,i>>>0))},e.wbg.__wbg_has_0af94d20077affa2=function(){return B((function(e,t){return Reflect.has(a(e),a(t))}),arguments)},e.wbg.__wbg_set_1f9b04f170055d33=function(){return B((function(e,t,i){return Reflect.set(a(e),a(t),a(i))}),arguments)},e.wbg.__wbg_stringify_8887fe74e1c50d81=function(){return B((function(e){return d(JSON.stringify(a(e)))}),arguments)},e.wbg.__wbindgen_bigint_get_as_i64=function(e,t){const i=a(t),r="bigint"==typeof i?i:void 0;(null!==k&&0!==k.byteLength||(k=new BigInt64Array(s.memory.buffer)),k)[e/8+1]=f(r)?BigInt(0):r,g()[e/4+0]=!f(r)},e.wbg.__wbindgen_debug_string=function(e,t){const i=b(S(a(t)),s.__wbindgen_export_0,s.__wbindgen_export_1),r=v;g()[e/4+1]=r,g()[e/4+0]=i},e.wbg.__wbindgen_throw=function(e,t){throw new Error(u(e,t))},e.wbg.__wbindgen_memory=function(){return d(s.memory)},e.wbg.__wbindgen_closure_wrapper3897=function(e,t,i){return d(T(e,t,699,P))},e.wbg.__wbindgen_closure_wrapper7350=function(e,t,i){return d(T(e,t,1724,M))},e}function pe(e,t){return s=e.exports,me.__wbindgen_wasm_module=t,k=null,p=null,m=null,A=null,c=null,s}async function me(e){if(void 0!==s)return s;void 0===e&&(e="https://qa.omni.apex.exchange/api/v3/download/zklink-sdk-web_bg.wasm");const t=fe();("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));const{instance:i,module:r}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const i=await e.arrayBuffer();return await WebAssembly.instantiate(i,t)}{const i=await WebAssembly.instantiate(e,t);return i instanceof WebAssembly.Instance?{instance:i,module:e}:i}}(await e,t);return pe(i,r)}const ge=me}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(i,s){if(1&s&&(i=this(i)),8&s)return i;if("object"==typeof i&&i){if(4&s&&i.__esModule)return i;if(16&s&&"function"==typeof i.then)return i}var r=Object.create(null);o.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var n=2&s&&i;"object"==typeof n&&!~e.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach((e=>a[e]=()=>i[e]));return a.default=()=>i,o.d(r,a),r},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,i)=>(o.f[i](e,t),t)),[])),o.u=e=>e+".ccxt.browser.min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i={},s="ccxt:",o.l=(e,t,r,a)=>{if(i[e])i[e].push(t);else{var n,d;if(void 0!==r)for(var h=document.getElementsByTagName("script"),c=0;c<h.length;c++){var l=h[c];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==s+r){n=l;break}}n||(d=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,o.nc&&n.setAttribute("nonce",o.nc),n.setAttribute("data-webpack",s+r),n.src=e),i[e]=[t];var u=(t,s)=>{n.onerror=n.onload=null,clearTimeout(f);var r=i[e];if(delete i[e],n.parentNode&&n.parentNode.removeChild(n),r&&r.forEach((e=>e(s))),t)return t(s)},f=setTimeout(u.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=u.bind(null,n.onerror),n.onload=u.bind(null,n.onload),d&&document.head.appendChild(n)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var s=i.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=i[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={792:0};o.f.j=(t,i)=>{var s=o.o(e,t)?e[t]:void 0;if(0!==s)if(s)i.push(s[2]);else{var r=new Promise(((i,r)=>s=e[t]=[i,r]));i.push(s[2]=r);var a=o.p+o.u(t),n=new Error;o.l(a,(i=>{if(o.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var r=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;n.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",n.name="ChunkLoadError",n.type=r,n.request=a,s[1](n)}}),"chunk-"+t,t)}};var t=(t,i)=>{var s,r,[a,n,d]=i,h=0;if(a.some((t=>0!==e[t]))){for(s in n)o.o(n,s)&&(o.m[s]=n[s]);if(d)d(o)}for(t&&t(i);h<a.length;h++)r=a[h],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0},i=self.webpackChunkccxt=self.webpackChunkccxt||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var n={};o.r(n),o.d(n,{AccountNotEnabled:()=>l.AccountNotEnabled,AccountSuspended:()=>l.AccountSuspended,AddressPending:()=>l.AddressPending,ArgumentsRequired:()=>l.ArgumentsRequired,AuthenticationError:()=>l.AuthenticationError,BadRequest:()=>l.BadRequest,BadResponse:()=>l.BadResponse,BadSymbol:()=>l.BadSymbol,BaseError:()=>l.BaseError,CancelPending:()=>l.CancelPending,ChecksumError:()=>l.ChecksumError,ContractUnavailable:()=>l.ContractUnavailable,DDoSProtection:()=>l.DDoSProtection,DuplicateOrderId:()=>l.DuplicateOrderId,Exchange:()=>d.k,ExchangeClosedByUser:()=>l.ExchangeClosedByUser,ExchangeError:()=>l.ExchangeError,ExchangeNotAvailable:()=>l.ExchangeNotAvailable,InsufficientFunds:()=>l.InsufficientFunds,InvalidAddress:()=>l.InvalidAddress,InvalidNonce:()=>l.InvalidNonce,InvalidOrder:()=>l.InvalidOrder,InvalidProxySettings:()=>l.InvalidProxySettings,ManualInteractionNeeded:()=>l.ManualInteractionNeeded,MarginModeAlreadySet:()=>l.MarginModeAlreadySet,MarketClosed:()=>l.MarketClosed,NetworkError:()=>l.NetworkError,NoChange:()=>l.NoChange,NotSupported:()=>l.NotSupported,NullResponse:()=>l.NullResponse,OnMaintenance:()=>l.OnMaintenance,OperationFailed:()=>l.OperationFailed,OperationRejected:()=>l.OperationRejected,OrderImmediatelyFillable:()=>l.OrderImmediatelyFillable,OrderNotCached:()=>l.OrderNotCached,OrderNotFillable:()=>l.OrderNotFillable,OrderNotFound:()=>l.OrderNotFound,PermissionDenied:()=>l.PermissionDenied,Precise:()=>h.Y,RateLimitExceeded:()=>l.RateLimitExceeded,RequestTimeout:()=>l.RequestTimeout,RestrictedLocation:()=>l.RestrictedLocation,UnsubscribeError:()=>l.UnsubscribeError,abantether:()=>u.A,afratether:()=>f.A,alpaca:()=>p.A,apex:()=>m.A,arzinja:()=>g.A,arzplus:()=>v.A,ascendex:()=>y.A,bequant:()=>w.A,bigone:()=>b.A,binance:()=>k.A,binancecoinm:()=>S.A,binanceus:()=>O.A,binanceusdm:()=>T.A,bingx:()=>P.A,bit24:()=>M.A,bit2c:()=>I.A,bitbank:()=>x.A,bitbns:()=>A.A,bitfinex:()=>_.A,bitflyer:()=>C.A,bitget:()=>B.A,bithumb:()=>E.A,bitimen:()=>L.A,bitir:()=>R.A,bitmart:()=>N.A,bitmex:()=>D.A,bitopro:()=>q.A,bitpin:()=>V.A,bitrue:()=>F.A,bitso:()=>H.A,bitstamp:()=>G.A,bitteam:()=>U.A,bittrade:()=>W.A,bitvavo:()=>j.A,blockchaincom:()=>K.A,blofin:()=>z.A,btcalpha:()=>Y.A,btcbox:()=>X.A,btcmarkets:()=>Q.A,btcturk:()=>Z.A,bybit:()=>$.A,cex:()=>J.A,coinbase:()=>ee.A,coinbaseadvanced:()=>te.A,coinbaseexchange:()=>ie.A,coinbaseinternational:()=>se.A,coincatch:()=>re.A,coincheck:()=>ae.A,coinex:()=>oe.A,coinmate:()=>ne.A,coinmetro:()=>de.A,coinone:()=>he.A,coinsph:()=>ce.A,coinspot:()=>le.A,cryptocom:()=>ue.A,cryptomus:()=>fe.A,default:()=>ns,defx:()=>pe.A,delta:()=>me.A,deribit:()=>ge.A,derive:()=>ve.A,digifinex:()=>ye.A,ellipx:()=>we.A,errors:()=>l,eterex:()=>be.A,exchanges:()=>as,excoino:()=>ke.A,exir:()=>Se.A,exmo:()=>Oe.A,exnovin:()=>Te.A,farhadexchange:()=>Pe.A,fmfwio:()=>Me.A,foxbit:()=>Ie.A,functions:()=>c,gate:()=>xe.A,gateio:()=>Ae.A,gemini:()=>_e.A,hashkey:()=>Ce.A,hibachi:()=>Be.A,hitbtc:()=>Ee.A,hitobit:()=>Le.A,hollaex:()=>Re.A,htx:()=>Ne.A,huobi:()=>De.A,hyperliquid:()=>qe.A,independentreserve:()=>Ve.A,indodax:()=>Fe.A,jibitex:()=>He.A,kcex:()=>Ge.A,kraken:()=>Ue.A,krakenfutures:()=>We.A,kucoin:()=>je.A,kucoinfutures:()=>Ke.A,latoken:()=>ze.A,lbank:()=>Ye.A,luno:()=>Xe.A,mercado:()=>Qe.A,mexc:()=>Ze.A,modetrade:()=>$e.A,myokx:()=>Je.A,ndax:()=>et.A,nobitex:()=>tt.A,novadax:()=>it.A,oceanex:()=>st.A,okcoin:()=>rt.A,okexchange:()=>at.A,okx:()=>ot.A,okxus:()=>nt.A,ompfinex:()=>dt.A,onetrading:()=>ht.A,oxfun:()=>ct.A,p2b:()=>lt.A,paradex:()=>ut.A,paymium:()=>ft.A,phemex:()=>pt.A,poloniex:()=>mt.A,pro:()=>os,probit:()=>gt.A,ramzinex:()=>vt.A,sarmayex:()=>yt.A,sarrafex:()=>wt.A,tabdeal:()=>bt.A,tetherland:()=>kt.A,timex:()=>St.A,tokocrypto:()=>Ot.A,toobit:()=>Tt.A,tradeogre:()=>Pt.A,twox:()=>Mt.A,ubitex:()=>It.A,upbit:()=>xt.A,version:()=>rs,vertex:()=>At.A,wallex:()=>_t.A,wavesexchange:()=>Ct.A,whitebit:()=>Bt.A,woo:()=>Et.A,woofipro:()=>Lt.A,xt:()=>Rt.A,yobit:()=>Nt.A,zaif:()=>Dt.A,zonda:()=>qt.A});var d=o(2961),h=o(5147),c=o(5095),l=o(2079),u=o(1656),f=o(5566),p=o(7930),m=o(4920),g=o(6371),v=o(2065),y=o(1411),w=o(9002),b=o(8698),k=o(3192),S=o(1510),O=o(8228),T=o(2171),P=o(2480),M=o(1183),I=o(2342),x=o(7399),A=o(6328),_=o(8657),C=o(1787),B=o(7757),E=o(357),L=o(4456),R=o(9314),N=o(1837),D=o(9523),q=o(2753),V=o(9558),F=o(9061),H=o(3019),G=o(382),U=o(112),W=o(2263),j=o(3727),K=o(3205),z=o(2520),Y=o(3413),X=o(5376),Q=o(4936),Z=o(9265),$=o(5462),J=o(8846),ee=o(7504),te=o(3278),ie=o(4293),se=o(1558),re=o(570),ae=o(2741),oe=o(9344),ne=o(6016),de=o(8692),he=o(5377),ce=o(2692),le=o(1669),ue=o(6068),fe=o(870),pe=o(6077),me=o(1080),ge=o(2591),ve=o(1839),ye=o(779),we=o(1962),be=o(6415),ke=o(9335),Se=o(9098),Oe=o(7057),Te=o(9169),Pe=o(6711),Me=o(3042),Ie=o(448),xe=o(9403),Ae=o(784),_e=o(8823),Ce=o(2937),Be=o(5106),Ee=o(7996),Le=o(675),Re=o(4455),Ne=o(9946),De=o(63),qe=o(1936),Ve=o(4162),Fe=o(7325),He=o(835),Ge=o(1199),Ue=o(8042),We=o(2300),je=o(1397),Ke=o(6217),ze=o(8146),Ye=o(3144),Xe=o(9248),Qe=o(6419),Ze=o(2403),$e=o(5345),Je=o(8982),et=o(4460),tt=o(1561),it=o(8473),st=o(3805),rt=o(7915),at=o(79),ot=o(3660),nt=o(3536),dt=o(848),ht=o(3573),ct=o(6358),lt=o(4998),ut=o(6993),ft=o(3280),pt=o(9075),mt=o(288),gt=o(5037),vt=o(676),yt=o(5822),wt=o(9702),bt=o(5619),kt=o(7497),St=o(6213),Ot=o(2490),Tt=o(237),Pt=o(5887),Mt=o(8586),It=o(3551),xt=o(930),At=o(4910),_t=o(8633),Ct=o(7073),Bt=o(5336),Et=o(669),Lt=o(9641),Rt=o(5344),Nt=o(7469),Dt=o(1530),qt=o(6022),Vt=o(6810),Ft=o(136),Ht=o(1657),Gt=o(9338),Ut=o(9544),Wt=o(902),jt=o(8788),Kt=o(8251),zt=o(9456),Yt=o(1038),Xt=o(205),Qt=o(6181),Zt=o(3069),$t=o(3731),Jt=o(4401),ei=o(3333),ti=o(3326),ii=o(2391),si=o(1327),ri=o(8693),ai=o(1672),oi=o(8518),ni=o(3774),di=o(8160),hi=o(5918),ci=o(1925),li=o(998),ui=o(3242),fi=o(5317),pi=o(9088),mi=o(8673),gi=o(6292),vi=o(8717),yi=o(7791),wi=o(2127),bi=o(5233),ki=o(9195),Si=o(5843),Oi=o(375),Ti=o(1481),Pi=o(4524),Mi=o(8247),Ii=o(3898),xi=o(6335),Ai=o(3984),_i=o(98),Ci=o(9050),Bi=o(6396),Ei=o(4965),Li=o(905),Ri=o(1736),Ni=o(2208),Di=o(9219),qi=o(49),Vi=o(3062),Fi=o(3887),Hi=o(6187),Gi=o(8588),Ui=o(3296),Wi=o(4357),ji=o(550),Ki=o(4934),zi=o(1057),Yi=o(1619),Xi=o(3456),Qi=o(5738),Zi=o(8719),$i=o(5794),Ji=o(910),es=o(4712),ts=o(5869),is=o(8713),ss=o(2368);const rs="4.8.1";d.k.ccxtVersion=rs;const as={abantether:u.A,afratether:f.A,alpaca:p.A,apex:m.A,arzinja:g.A,arzplus:v.A,ascendex:y.A,bequant:w.A,bigone:b.A,binance:k.A,binancecoinm:S.A,binanceus:O.A,binanceusdm:T.A,bingx:P.A,bit24:M.A,bit2c:I.A,bitbank:x.A,bitbns:A.A,bitfinex:_.A,bitflyer:C.A,bitget:B.A,bithumb:E.A,bitimen:L.A,bitir:R.A,bitmart:N.A,bitmex:D.A,bitopro:q.A,bitpin:V.A,bitrue:F.A,bitso:H.A,bitstamp:G.A,bitteam:U.A,bittrade:W.A,bitvavo:j.A,blockchaincom:K.A,blofin:z.A,btcalpha:Y.A,btcbox:X.A,btcmarkets:Q.A,btcturk:Z.A,bybit:$.A,cex:J.A,coinbase:ee.A,coinbaseadvanced:te.A,coinbaseexchange:ie.A,coinbaseinternational:se.A,coincatch:re.A,coincheck:ae.A,coinex:oe.A,coinmate:ne.A,coinmetro:de.A,coinone:he.A,coinsph:ce.A,coinspot:le.A,cryptocom:ue.A,cryptomus:fe.A,defx:pe.A,delta:me.A,deribit:ge.A,derive:ve.A,digifinex:ye.A,ellipx:we.A,eterex:be.A,excoino:ke.A,exir:Se.A,exmo:Oe.A,exnovin:Te.A,farhadexchange:Pe.A,fmfwio:Me.A,foxbit:Ie.A,gate:xe.A,gateio:Ae.A,gemini:_e.A,hashkey:Ce.A,hibachi:Be.A,hitbtc:Ee.A,hitobit:Le.A,hollaex:Re.A,htx:Ne.A,huobi:De.A,hyperliquid:qe.A,independentreserve:Ve.A,indodax:Fe.A,jibitex:He.A,kcex:Ge.A,kraken:Ue.A,krakenfutures:We.A,kucoin:je.A,kucoinfutures:Ke.A,latoken:ze.A,lbank:Ye.A,luno:Xe.A,mercado:Qe.A,mexc:Ze.A,modetrade:$e.A,myokx:Je.A,ndax:et.A,nobitex:tt.A,novadax:it.A,oceanex:st.A,okcoin:rt.A,okexchange:at.A,okx:ot.A,okxus:nt.A,ompfinex:dt.A,onetrading:ht.A,oxfun:ct.A,p2b:lt.A,paradex:ut.A,paymium:ft.A,phemex:pt.A,poloniex:mt.A,probit:gt.A,ramzinex:vt.A,sarmayex:yt.A,sarrafex:wt.A,tabdeal:bt.A,tetherland:kt.A,timex:St.A,tokocrypto:Ot.A,toobit:Tt.A,tradeogre:Pt.A,twox:Mt.A,ubitex:It.A,upbit:xt.A,vertex:At.A,wallex:_t.A,wavesexchange:Ct.A,whitebit:Bt.A,woo:Et.A,woofipro:Lt.A,xt:Rt.A,yobit:Nt.A,zaif:Dt.A,zonda:qt.A},os={alpaca:Vt.A,apex:Ft.A,ascendex:Ht.A,bequant:Gt.A,binance:Ut.A,binancecoinm:Wt.A,binanceus:jt.A,binanceusdm:Kt.A,bingx:zt.A,bitfinex:Yt.A,bitget:Xt.A,bithumb:Qt.A,bitmart:Zt.A,bitmex:$t.A,bitopro:Jt.A,bitrue:ei.A,bitstamp:ti.A,bittrade:ii.A,bitvavo:si.A,blockchaincom:ri.A,blofin:ai.A,bybit:oi.A,cex:ni.A,coinbase:di.A,coinbaseadvanced:hi.A,coinbaseexchange:ci.A,coinbaseinternational:li.A,coincatch:ui.A,coincheck:fi.A,coinex:pi.A,coinone:mi.A,cryptocom:gi.A,defx:vi.A,deribit:yi.A,derive:wi.A,exmo:bi.A,gate:ki.A,gateio:Si.A,gemini:Oi.A,hashkey:Ti.A,hitbtc:Pi.A,hollaex:Mi.A,htx:Ii.A,huobi:xi.A,hyperliquid:Ai.A,independentreserve:_i.A,kraken:Ci.A,krakenfutures:Bi.A,kucoin:Ei.A,kucoinfutures:Li.A,lbank:Ri.A,luno:Ni.A,mexc:Di.A,modetrade:qi.A,myokx:Vi.A,ndax:Fi.A,okcoin:Hi.A,okx:Gi.A,okxus:Ui.A,onetrading:Wi.A,oxfun:ji.A,p2b:Ki.A,paradex:zi.A,phemex:Yi.A,poloniex:Xi.A,probit:Qi.A,tradeogre:Zi.A,upbit:$i.A,vertex:Ji.A,whitebit:es.A,woo:ts.A,woofipro:is.A,xt:ss.A};for(const e in os);os.exchanges=Object.keys(os),os.Exchange=d.k;const ns=Object.assign({version:rs,Exchange:d.k,Precise:h.Y,exchanges:Object.keys(as),pro:os},as,c,l);self.ccxt=n})();
|
package/dist/cjs/ccxt.js
CHANGED
|
@@ -223,7 +223,7 @@ var xt$1 = require('./src/pro/xt.js');
|
|
|
223
223
|
|
|
224
224
|
//-----------------------------------------------------------------------------
|
|
225
225
|
// this is updated by vss.js when building
|
|
226
|
-
const version = '4.8.
|
|
226
|
+
const version = '4.8.1';
|
|
227
227
|
Exchange["default"].ccxtVersion = version;
|
|
228
228
|
const exchanges = {
|
|
229
229
|
'abantether': abantether["default"],
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.8.
|
|
7
|
+
declare const version = "4.8.1";
|
|
8
8
|
import abantether from './src/abantether.js';
|
|
9
9
|
import afratether from './src/afratether.js';
|
|
10
10
|
import alpaca from './src/alpaca.js';
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.8.
|
|
41
|
+
const version = '4.8.1';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import abantether from './src/abantether.js';
|
|
@@ -252,7 +252,7 @@ export default class Exchange {
|
|
|
252
252
|
outputLen: number;
|
|
253
253
|
blockLen: number;
|
|
254
254
|
create(): import("../static_dependencies/noble-hashes/utils.js").Hash<import("../static_dependencies/noble-hashes/utils.js").Hash<any>>;
|
|
255
|
-
}, digest?: "
|
|
255
|
+
}, digest?: "binary" | "hex" | "base64") => any;
|
|
256
256
|
arrayConcat: (a: any[], b: any[]) => any[];
|
|
257
257
|
encode: (str: string) => Uint8Array;
|
|
258
258
|
urlencode: (object: object, sort?: boolean) => string;
|
|
@@ -261,7 +261,7 @@ export default class Exchange {
|
|
|
261
261
|
outputLen: number;
|
|
262
262
|
blockLen: number;
|
|
263
263
|
create(): import("../static_dependencies/noble-hashes/utils.js").Hash<import("../static_dependencies/noble-hashes/utils.js").Hash<any>>;
|
|
264
|
-
}, digest?: "
|
|
264
|
+
}, digest?: "binary" | "hex" | "base64") => any;
|
|
265
265
|
numberToString: typeof functions.numberToString;
|
|
266
266
|
parseTimeframe: (timeframe: string) => number;
|
|
267
267
|
safeInteger2: (o: any, k1: IndexType, k2: IndexType, $default?: number) => number;
|
|
@@ -311,7 +311,7 @@ export default class coinbaseexchange extends Exchange {
|
|
|
311
311
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
312
312
|
*/
|
|
313
313
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
314
|
-
parseTransactionStatus(transaction: any): "
|
|
314
|
+
parseTransactionStatus(transaction: any): "pending" | "ok" | "failed" | "canceled";
|
|
315
315
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
316
316
|
/**
|
|
317
317
|
* @method
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
1
|
export = $root;
|
|
8
2
|
declare var $root: {};
|
|
@@ -5,7 +5,7 @@ export function deflate(data: any, opts: any, cb: any): () => void;
|
|
|
5
5
|
* @param opts The compression options
|
|
6
6
|
* @returns The deflated version of the data
|
|
7
7
|
*/
|
|
8
|
-
export function deflateSync(data: any, opts: any): Uint8Array |
|
|
8
|
+
export function deflateSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
|
|
9
9
|
export function inflate(data: any, opts: any, cb: any): () => void;
|
|
10
10
|
/**
|
|
11
11
|
* Expands DEFLATE data with no wrapper
|
|
@@ -21,7 +21,7 @@ export function gzip(data: any, opts: any, cb: any): () => void;
|
|
|
21
21
|
* @param opts The compression options
|
|
22
22
|
* @returns The gzipped version of the data
|
|
23
23
|
*/
|
|
24
|
-
export function gzipSync(data: any, opts: any): Uint8Array |
|
|
24
|
+
export function gzipSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
|
|
25
25
|
export function gunzip(data: any, opts: any, cb: any): () => void;
|
|
26
26
|
/**
|
|
27
27
|
* Expands GZIP data
|
|
@@ -37,7 +37,7 @@ export function zlib(data: any, opts: any, cb: any): () => void;
|
|
|
37
37
|
* @param opts The compression options
|
|
38
38
|
* @returns The zlib-compressed version of the data
|
|
39
39
|
*/
|
|
40
|
-
export function zlibSync(data: any, opts: any): Uint8Array |
|
|
40
|
+
export function zlibSync(data: any, opts: any): Uint8Array | Uint32Array | Uint16Array;
|
|
41
41
|
export function unzlib(data: any, opts: any, cb: any): () => void;
|
|
42
42
|
/**
|
|
43
43
|
* Expands Zlib data
|
|
@@ -61,7 +61,7 @@ export function decompressSync(data: any, out: any): any;
|
|
|
61
61
|
* not need to be true unless decoding a binary string.
|
|
62
62
|
* @returns The string encoded in UTF-8/Latin-1 binary
|
|
63
63
|
*/
|
|
64
|
-
export function strToU8(str: any, latin1: any): Uint8Array |
|
|
64
|
+
export function strToU8(str: any, latin1: any): Uint8Array | Uint32Array | Uint16Array;
|
|
65
65
|
/**
|
|
66
66
|
* Converts a Uint8Array to a string
|
|
67
67
|
* @param dat The data to decode to string
|
|
@@ -69,7 +69,7 @@ export function strToU8(str: any, latin1: any): Uint8Array | Uint16Array | Uint3
|
|
|
69
69
|
* not need to be true unless encoding to binary string.
|
|
70
70
|
* @returns The original UTF-8/Latin-1 string
|
|
71
71
|
*/
|
|
72
|
-
export function strFromU8(dat: any, latin1: any): string | Uint8Array |
|
|
72
|
+
export function strFromU8(dat: any, latin1: any): string | Uint8Array | Uint32Array | Uint16Array;
|
|
73
73
|
export function zip(data: any, opts: any, cb: any): () => void;
|
|
74
74
|
/**
|
|
75
75
|
* Synchronously creates a ZIP file. Prefer using `zip` for better performance
|
|
@@ -15,7 +15,7 @@ export declare class BigInteger {
|
|
|
15
15
|
protected intValue(): number;
|
|
16
16
|
protected byteValue(): number;
|
|
17
17
|
protected shortValue(): number;
|
|
18
|
-
protected signum():
|
|
18
|
+
protected signum(): 1 | 0 | -1;
|
|
19
19
|
toByteArray(): number[];
|
|
20
20
|
protected equals(a: BigInteger): boolean;
|
|
21
21
|
protected min(a: BigInteger): BigInteger;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
1
|
declare const _default: string;
|
|
8
2
|
export declare namespace formatters {
|
|
9
3
|
function RFC1738(value: any): string;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
1
|
import formats = require("./formats.cjs");
|
|
8
2
|
import parse = require("./parse.cjs");
|
|
9
3
|
import stringify = require("./stringify.cjs");
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
1
|
declare function _exports(str: any, opts: any): any;
|
|
8
2
|
export = _exports;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
1
|
declare function _exports(object: any, opts: any): string;
|
|
8
2
|
export = _exports;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
// ----------------------------------------------------------------------------
|
|
2
|
-
|
|
3
|
-
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
-
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
-
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
-
|
|
7
1
|
export function arrayToObject(source: any, options: any): any;
|
|
8
2
|
export function assign(target: any, source: any): any;
|
|
9
3
|
export function combine(a: any, b: any): any[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Abi, FunctionAbi, RawArgs } from '../../../types/index.js';
|
|
2
2
|
import { AbiParserInterface } from './interface.js';
|
|
3
3
|
export declare function createAbiParser(abi: Abi): AbiParserInterface;
|
|
4
|
-
export declare function getAbiVersion(abi: Abi):
|
|
4
|
+
export declare function getAbiVersion(abi: Abi): 1 | 0 | 2;
|
|
5
5
|
export declare function isNoConstructorValid(method: string, argsCalldata: RawArgs, abiMethod?: FunctionAbi): boolean;
|
package/package.json
CHANGED