From 97242e1c3afab391ccf2dae7f2250f83eb63cdea Mon Sep 17 00:00:00 2001 From: piobab Date: Wed, 5 Jun 2024 16:30:22 +0200 Subject: [PATCH] Update schema. --- .../dist/assets/index-0d6505f2.js | 1114 +++++++++-------- .../mars-account-nft/MarsAccountNft.client.ts | 6 +- .../MarsAccountNft.react-query.ts | 177 ++- .../mars-account-nft/MarsAccountNft.types.ts | 2 +- .../generated/mars-account-nft/bundle.ts | 8 +- .../MarsAddressProvider.client.ts | 6 +- .../MarsAddressProvider.react-query.ts | 47 +- .../MarsAddressProvider.types.ts | 2 +- .../generated/mars-address-provider/bundle.ts | 8 +- .../MarsCreditManager.client.ts | 6 +- .../MarsCreditManager.react-query.ts | 114 +- .../MarsCreditManager.types.ts | 2 +- .../generated/mars-credit-manager/bundle.ts | 8 +- .../mars-incentives/MarsIncentives.client.ts | 6 +- .../MarsIncentives.react-query.ts | 105 +- .../mars-incentives/MarsIncentives.types.ts | 2 +- .../types/generated/mars-incentives/bundle.ts | 8 +- .../mars-mock-vault/MarsMockVault.client.ts | 6 +- .../MarsMockVault.react-query.ts | 98 +- .../mars-mock-vault/MarsMockVault.types.ts | 2 +- .../types/generated/mars-mock-vault/bundle.ts | 8 +- .../MarsOracleOsmosis.client.ts | 6 +- .../MarsOracleOsmosis.react-query.ts | 66 +- .../MarsOracleOsmosis.types.ts | 2 +- .../generated/mars-oracle-osmosis/bundle.ts | 8 +- .../mars-oracle-wasm/MarsOracleWasm.client.ts | 6 +- .../MarsOracleWasm.react-query.ts | 70 +- .../mars-oracle-wasm/MarsOracleWasm.types.ts | 2 +- .../generated/mars-oracle-wasm/bundle.ts | 8 +- .../mars-params/MarsParams.client.ts | 6 +- .../mars-params/MarsParams.react-query.ts | 127 +- .../generated/mars-params/MarsParams.types.ts | 2 +- scripts/types/generated/mars-params/bundle.ts | 8 +- .../mars-red-bank/MarsRedBank.client.ts | 6 +- .../mars-red-bank/MarsRedBank.react-query.ts | 175 ++- .../mars-red-bank/MarsRedBank.types.ts | 2 +- .../types/generated/mars-red-bank/bundle.ts | 8 +- .../MarsRewardsCollectorBase.client.ts | 6 +- .../MarsRewardsCollectorBase.react-query.ts | 20 +- .../MarsRewardsCollectorBase.types.ts | 2 +- .../mars-rewards-collector-base/bundle.ts | 8 +- .../MarsRoverHealthComputer.client.ts | 2 +- .../MarsRoverHealthComputer.react-query.ts | 2 +- .../MarsRoverHealthComputer.types.ts | 2 +- .../mars-rover-health-computer/bundle.ts | 8 +- .../MarsRoverHealth.client.ts | 6 +- .../MarsRoverHealth.react-query.ts | 44 +- .../MarsRoverHealth.types.ts | 2 +- .../generated/mars-rover-health/bundle.ts | 8 +- .../MarsSwapperAstroport.client.ts | 6 +- .../MarsSwapperAstroport.react-query.ts | 58 +- .../MarsSwapperAstroport.types.ts | 2 +- .../mars-swapper-astroport/bundle.ts | 8 +- .../MarsSwapperBase.client.ts | 6 +- .../MarsSwapperBase.react-query.ts | 66 +- .../MarsSwapperBase.types.ts | 2 +- .../generated/mars-swapper-base/bundle.ts | 8 +- .../MarsSwapperOsmosis.client.ts | 6 +- .../MarsSwapperOsmosis.react-query.ts | 58 +- .../MarsSwapperOsmosis.types.ts | 2 +- .../generated/mars-swapper-osmosis/bundle.ts | 8 +- .../generated/mars-vault/MarsVault.client.ts | 6 +- .../mars-vault/MarsVault.react-query.ts | 106 +- .../generated/mars-vault/MarsVault.types.ts | 2 +- scripts/types/generated/mars-vault/bundle.ts | 8 +- .../mars-zapper-base/MarsZapperBase.client.ts | 6 +- .../MarsZapperBase.react-query.ts | 19 +- .../mars-zapper-base/MarsZapperBase.types.ts | 2 +- .../generated/mars-zapper-base/bundle.ts | 8 +- 69 files changed, 1804 insertions(+), 930 deletions(-) diff --git a/scripts/health/example-react/dist/assets/index-0d6505f2.js b/scripts/health/example-react/dist/assets/index-0d6505f2.js index e14e51fc..84ebb287 100644 --- a/scripts/health/example-react/dist/assets/index-0d6505f2.js +++ b/scripts/health/example-react/dist/assets/index-0d6505f2.js @@ -15,8 +15,8 @@ $.crossorigin === 'use-credentials' ? (en.credentials = 'include') : $.crossorigin === 'anonymous' - ? (en.credentials = 'omit') - : (en.credentials = 'same-origin'), + ? (en.credentials = 'omit') + : (en.credentials = 'same-origin'), en ) } @@ -31,12 +31,12 @@ var commonjsGlobal = typeof globalThis < 'u' ? globalThis : typeof window < 'u' - ? window - : typeof global < 'u' - ? global - : typeof self < 'u' - ? self - : {} + ? window + : typeof global < 'u' + ? global + : typeof self < 'u' + ? self + : {} function getDefaultExportFromCjs(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default') ? e.default : e } @@ -842,8 +842,8 @@ function pa(e, o, _, b) { return b ? !1 : _ !== null - ? !_.acceptsBooleans - : ((e = e.toLowerCase().slice(0, 5)), e !== 'data-' && e !== 'aria-') + ? !_.acceptsBooleans + : ((e = e.toLowerCase().slice(0, 5)), e !== 'data-' && e !== 'aria-') default: return !1 } @@ -948,14 +948,14 @@ function ta(e, o, _, b) { b || $ === null ? oa(o) && (_ === null ? e.removeAttribute(o) : e.setAttribute(o, '' + _)) : $.mustUseProperty - ? (e[$.propertyName] = _ === null ? ($.type === 3 ? !1 : '') : _) - : ((o = $.attributeName), - (b = $.attributeNamespace), - _ === null - ? e.removeAttribute(o) - : (($ = $.type), - (_ = $ === 3 || ($ === 4 && _ === !0) ? '' : '' + _), - b ? e.setAttributeNS(b, o, _) : e.setAttribute(o, _)))) + ? (e[$.propertyName] = _ === null ? ($.type === 3 ? !1 : '') : _) + : ((o = $.attributeName), + (b = $.attributeNamespace), + _ === null + ? e.removeAttribute(o) + : (($ = $.type), + (_ = $ === 3 || ($ === 4 && _ === !0) ? '' : '' + _), + b ? e.setAttributeNS(b, o, _) : e.setAttribute(o, _)))) } var ua = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, va = Symbol.for('react.element'), @@ -1396,8 +1396,8 @@ function lb(e, o) { return e == null || e === 'http://www.w3.org/1999/xhtml' ? kb(o) : e === 'http://www.w3.org/2000/svg' && o === 'foreignObject' - ? 'http://www.w3.org/1999/xhtml' - : e + ? 'http://www.w3.org/1999/xhtml' + : e } var mb, nb = (function (e) { @@ -1487,8 +1487,8 @@ function rb(e, o, _) { return o == null || typeof o == 'boolean' || o === '' ? '' : _ || typeof o != 'number' || o === 0 || (pb.hasOwnProperty(e) && pb[e]) - ? ('' + o).trim() - : o + 'px' + ? ('' + o).trim() + : o + 'px' } function sb(e, o) { e = e.style @@ -2458,8 +2458,8 @@ var Qd = A({}, ud, { return e.type === 'keypress' ? ((e = od(e)), e === 13 ? 'Enter' : String.fromCharCode(e)) : e.type === 'keydown' || e.type === 'keyup' - ? Nd[e.keyCode] || 'Unidentified' - : '' + ? Nd[e.keyCode] || 'Unidentified' + : '' }, code: 0, location: 0, @@ -2480,8 +2480,8 @@ var Qd = A({}, ud, { return e.type === 'keypress' ? od(e) : e.type === 'keydown' || e.type === 'keyup' - ? e.keyCode - : 0 + ? e.keyCode + : 0 }, }), Rd = rd(Qd), @@ -2519,10 +2519,10 @@ var Qd = A({}, ud, { return 'deltaY' in e ? e.deltaY : 'wheelDeltaY' in e - ? -e.wheelDeltaY - : 'wheelDelta' in e - ? -e.wheelDelta - : 0 + ? -e.wheelDeltaY + : 'wheelDelta' in e + ? -e.wheelDelta + : 0 }, deltaZ: 0, deltaMode: 0, @@ -2707,14 +2707,14 @@ function Le(e, o) { ? e === o ? !0 : e && e.nodeType === 3 - ? !1 - : o && o.nodeType === 3 - ? Le(e, o.parentNode) - : 'contains' in e - ? e.contains(o) - : e.compareDocumentPosition - ? !!(e.compareDocumentPosition(o) & 16) - : !1 + ? !1 + : o && o.nodeType === 3 + ? Le(e, o.parentNode) + : 'contains' in e + ? e.contains(o) + : e.compareDocumentPosition + ? !!(e.compareDocumentPosition(o) & 16) + : !1 : !1 } function Me() { @@ -2962,8 +2962,8 @@ function pf(e, o, _, b) { ? e.addEventListener(o, _, { capture: !0, passive: $ }) : e.addEventListener(o, _, !0) : $ !== void 0 - ? e.addEventListener(o, _, { passive: $ }) - : e.addEventListener(o, _, !1) + ? e.addEventListener(o, _, { passive: $ }) + : e.addEventListener(o, _, !1) } function hd(e, o, _, b, $) { var en = b @@ -3113,8 +3113,8 @@ function hd(e, o, _, b, $) { Jn.window === Jn ? Jn : (Kn = Jn.ownerDocument) - ? Kn.defaultView || Kn.parentWindow - : window), + ? Kn.defaultView || Kn.parentWindow + : window), an ? ((xn = _.relatedTarget || _.toElement), (an = In), @@ -3328,10 +3328,10 @@ var Ff = typeof setTimeout == 'function' ? setTimeout : void 0, typeof queueMicrotask == 'function' ? queueMicrotask : typeof Hf < 'u' - ? function (e) { - return Hf.resolve(null).then(e).catch(If) - } - : Ff + ? function (e) { + return Hf.resolve(null).then(e).catch(If) + } + : Ff function If(e) { setTimeout(function () { throw e @@ -3972,8 +3972,8 @@ function oh(e, o, _, b, $, en, nn) { typeof e.shouldComponentUpdate == 'function' ? e.shouldComponentUpdate(b, en, nn) : o.prototype && o.prototype.isPureReactComponent - ? !Ie(_, b) || !Ie($, en) - : !0 + ? !Ie(_, b) || !Ie($, en) + : !0 ) } function ph(e, o, _) { @@ -4107,13 +4107,13 @@ function vh(e) { return Tn === ya ? Jn(kn, ln, yn.props.children, Cn, yn.key) : ln !== null && - (ln.elementType === Tn || - (typeof Tn == 'object' && Tn !== null && Tn.$$typeof === Ha && uh(Tn) === ln.type)) - ? ((Cn = $(ln, yn.props)), (Cn.ref = sh$1(kn, ln, yn)), (Cn.return = kn), Cn) - : ((Cn = yh(yn.type, yn.key, yn.props, null, kn.mode, Cn)), - (Cn.ref = sh$1(kn, ln, yn)), - (Cn.return = kn), - Cn) + (ln.elementType === Tn || + (typeof Tn == 'object' && Tn !== null && Tn.$$typeof === Ha && uh(Tn) === ln.type)) + ? ((Cn = $(ln, yn.props)), (Cn.ref = sh$1(kn, ln, yn)), (Cn.return = kn), Cn) + : ((Cn = yh(yn.type, yn.key, yn.props, null, kn.mode, Cn)), + (Cn.ref = sh$1(kn, ln, yn)), + (Cn.return = kn), + Cn) } function In(kn, ln, yn, Cn) { return ln === null || @@ -5368,20 +5368,20 @@ function sj(e, o, _, b, $, en, nn) { return o.flags & 256 ? ((o.flags &= -257), (b = Li(Error(p(422)))), tj(e, o, nn, b)) : o.memoizedState !== null - ? ((o.child = e.child), (o.flags |= 128), null) - : ((en = b.fallback), - ($ = o.mode), - (b = qj({ mode: 'visible', children: b.children }, $, 0, null)), - (en = Ah(en, $, nn, null)), - (en.flags |= 2), - (b.return = o), - (en.return = o), - (b.sibling = en), - (o.child = b), - o.mode & 1 && Bh(o, e.child, null, nn), - (o.child.memoizedState = oj(nn)), - (o.memoizedState = nj), - en) + ? ((o.child = e.child), (o.flags |= 128), null) + : ((en = b.fallback), + ($ = o.mode), + (b = qj({ mode: 'visible', children: b.children }, $, 0, null)), + (en = Ah(en, $, nn, null)), + (en.flags |= 2), + (b.return = o), + (en.return = o), + (b.sibling = en), + (o.child = b), + o.mode & 1 && Bh(o, e.child, null, nn), + (o.child.memoizedState = oj(nn)), + (o.memoizedState = nj), + en) if (!(o.mode & 1)) return tj(e, o, nn, null) if ($.data === '$!') { if (((b = $.nextSibling && $.nextSibling.dataset), b)) var sn = b.dgst @@ -5560,8 +5560,8 @@ function zj(e, o, _) { return b.dehydrated !== null ? (G(M, M.current & 1), (o.flags |= 128), null) : _ & o.child.childLanes - ? pj(e, o, _) - : (G(M, M.current & 1), (e = $i(e, o, _)), e !== null ? e.sibling : null) + ? pj(e, o, _) + : (G(M, M.current & 1), (e = $i(e, o, _)), e !== null ? e.sibling : null) G(M, M.current & 1) break case 19: @@ -5651,12 +5651,14 @@ Cj = function (e, o, _, b) { (sn = sn ? sn.__html : void 0), gn != null && sn !== gn && (en = en || []).push(In, gn)) : In === 'children' - ? (typeof gn != 'string' && typeof gn != 'number') || (en = en || []).push(In, '' + gn) - : In !== 'suppressContentEditableWarning' && - In !== 'suppressHydrationWarning' && - (ea.hasOwnProperty(In) - ? (gn != null && In === 'onScroll' && D('scroll', e), en || sn === gn || (en = [])) - : (en = en || []).push(In, gn)) + ? (typeof gn != 'string' && typeof gn != 'number') || + (en = en || []).push(In, '' + gn) + : In !== 'suppressContentEditableWarning' && + In !== 'suppressHydrationWarning' && + (ea.hasOwnProperty(In) + ? (gn != null && In === 'onScroll' && D('scroll', e), + en || sn === gn || (en = [])) + : (en = en || []).push(In, gn)) } _ && (en = en || []).push('style', _) var In = en @@ -5822,10 +5824,10 @@ function Fj(e, o, _) { (e.innerHTML = ''), (e = e.removeChild(e.firstChild))) : typeof b.is == 'string' - ? (e = nn.createElement(_, { is: b.is })) - : ((e = nn.createElement(_)), - _ === 'select' && - ((nn = e), b.multiple ? (nn.multiple = !0) : b.size && (nn.size = b.size))) + ? (e = nn.createElement(_, { is: b.is })) + : ((e = nn.createElement(_)), + _ === 'select' && + ((nn = e), b.multiple ? (nn.multiple = !0) : b.size && (nn.size = b.size))) : (e = nn.createElementNS(e, _)), (e[Of] = o), (e[Pf] = b), @@ -5881,17 +5883,17 @@ function Fj(e, o, _) { en === 'style' ? sb(e, gn) : en === 'dangerouslySetInnerHTML' - ? ((gn = gn ? gn.__html : void 0), gn != null && nb(e, gn)) - : en === 'children' - ? typeof gn == 'string' - ? (_ !== 'textarea' || gn !== '') && ob(e, gn) - : typeof gn == 'number' && ob(e, '' + gn) - : en !== 'suppressContentEditableWarning' && - en !== 'suppressHydrationWarning' && - en !== 'autoFocus' && - (ea.hasOwnProperty(en) - ? gn != null && en === 'onScroll' && D('scroll', e) - : gn != null && ta(e, en, gn, nn)) + ? ((gn = gn ? gn.__html : void 0), gn != null && nb(e, gn)) + : en === 'children' + ? typeof gn == 'string' + ? (_ !== 'textarea' || gn !== '') && ob(e, gn) + : typeof gn == 'number' && ob(e, '' + gn) + : en !== 'suppressContentEditableWarning' && + en !== 'suppressHydrationWarning' && + en !== 'autoFocus' && + (ea.hasOwnProperty(en) + ? gn != null && en === 'onScroll' && D('scroll', e) + : gn != null && ta(e, en, gn, nn)) } switch (_) { case 'input': @@ -6517,10 +6519,10 @@ function ek(e, o) { Jn === 'style' ? sb($, qn) : Jn === 'dangerouslySetInnerHTML' - ? nb($, qn) - : Jn === 'children' - ? ob($, qn) - : ta($, Jn, qn, In) + ? nb($, qn) + : Jn === 'children' + ? ob($, qn) + : ta($, Jn, qn, In) } switch (sn) { case 'input': @@ -6732,8 +6734,8 @@ function jk(e, o, _) { nn.tag === 22 && nn.memoizedState !== null ? kk($) : gn !== null - ? ((gn.return = nn), (V = gn)) - : kk($) + ? ((gn.return = nn), (V = gn)) + : kk($) for (; en !== null; ) (V = en), jk(en), (en = en.sibling) ;(V = $), (Kj = sn), (U = In) } @@ -6948,8 +6950,8 @@ function lh(e) { ? K$1 & 2 && Z !== 0 ? Z & -Z : Kg.transition !== null - ? (Ck === 0 && (Ck = yc()), Ck) - : ((e = C), e !== 0 || ((e = window.event), (e = e === void 0 ? 16 : jd(e.type))), e) + ? (Ck === 0 && (Ck = yc()), Ck) + : ((e = C), e !== 0 || ((e = window.event), (e = e === void 0 ? 16 : jd(e.type))), e) : 1 } function mh(e, o, _, b) { @@ -7063,16 +7065,16 @@ function Hk(e, o) { (120 > b ? 120 : 480 > b - ? 480 - : 1080 > b - ? 1080 - : 1920 > b - ? 1920 - : 3e3 > b - ? 3e3 - : 4320 > b - ? 4320 - : 1960 * mk(b / 1960)) - b), + ? 480 + : 1080 > b + ? 1080 + : 1920 > b + ? 1920 + : 3e3 > b + ? 3e3 + : 4320 > b + ? 4320 + : 1960 * mk(b / 1960)) - b), 10 < b) ) { e.timeoutHandle = Ff(Qk.bind(null, e, uk, vk), b) @@ -8667,12 +8669,12 @@ function partialDeepEqual(e, o) { return e === o ? !0 : typeof e != typeof o - ? !1 - : e && o && typeof e == 'object' && typeof o == 'object' - ? !Object.keys(o).some(function (_) { - return !partialDeepEqual(e[_], o[_]) - }) - : !1 + ? !1 + : e && o && typeof e == 'object' && typeof o == 'object' + ? !Object.keys(o).some(function (_) { + return !partialDeepEqual(e[_], o[_]) + }) + : !1 } function replaceEqualDeep(e, o) { if (e === o) return e @@ -8787,8 +8789,8 @@ var FocusManager = (function (e) { return typeof this.focused == 'boolean' ? this.focused : typeof document > 'u' - ? !0 - : [void 0, 'visible', 'prerender'].includes(document.visibilityState) + ? !0 + : [void 0, 'visible', 'prerender'].includes(document.visibilityState) }), o ) @@ -8850,8 +8852,8 @@ var FocusManager = (function (e) { return typeof this.online == 'boolean' ? this.online : typeof navigator > 'u' || typeof navigator.onLine > 'u' - ? !0 - : navigator.onLine + ? !0 + : navigator.onLine }), o ) @@ -10205,8 +10207,8 @@ var QueryClient$1 = (function () { return typeof this.options.refetchInterval == 'function' ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : ($ = this.options.refetchInterval) != null - ? $ - : !1 + ? $ + : !1 }), (_.updateRefetchInterval = function ($) { var en = this @@ -11424,10 +11426,10 @@ const __viteBrowserExternal = {}, dn < 67108864 ? ((this.words = [dn & 67108863]), (this.length = 1)) : dn < 4503599627370496 - ? ((this.words = [dn & 67108863, (dn / 67108864) & 67108863]), (this.length = 2)) - : (b(dn < 9007199254740992), - (this.words = [dn & 67108863, (dn / 67108864) & 67108863, 1]), - (this.length = 3)), + ? ((this.words = [dn & 67108863, (dn / 67108864) & 67108863]), (this.length = 2)) + : (b(dn < 9007199254740992), + (this.words = [dn & 67108863, (dn / 67108864) & 67108863, 1]), + (this.length = 3)), fn === 'le' && this._initArray(this.toArray(), Nn, fn) }), (en.prototype._initArray = function (dn, Nn, fn) { @@ -11629,8 +11631,8 @@ const __viteBrowserExternal = {}, this.length === 2 ? (dn += this.words[1] * 67108864) : this.length === 3 && this.words[2] === 1 - ? (dn += 4503599627370496 + this.words[1] * 67108864) - : this.length > 2 && b(!1, 'Number can only safely store up to 53 bits'), + ? (dn += 4503599627370496 + this.words[1] * 67108864) + : this.length > 2 && b(!1, 'Number can only safely store up to 53 bits'), this.negative !== 0 ? -dn : dn ) }), @@ -11838,10 +11840,10 @@ const __viteBrowserExternal = {}, return dn.negative !== 0 && this.negative === 0 ? ((dn.negative = 0), (Nn = this.sub(dn)), (dn.negative ^= 1), Nn) : dn.negative === 0 && this.negative !== 0 - ? ((this.negative = 0), (Nn = dn.sub(this)), (this.negative = 1), Nn) - : this.length > dn.length - ? this.clone().iadd(dn) - : dn.clone().iadd(this) + ? ((this.negative = 0), (Nn = dn.sub(this)), (this.negative = 1), Nn) + : this.length > dn.length + ? this.clone().iadd(dn) + : dn.clone().iadd(this) }), (en.prototype.isub = function (dn) { if (dn.negative !== 0) { @@ -12491,10 +12493,10 @@ const __viteBrowserExternal = {}, this.length === 10 && dn.length === 10 ? (fn = ln(this, dn, Nn)) : _n < 63 - ? (fn = kn(this, dn, Nn)) - : _n < 1024 - ? (fn = yn(this, dn, Nn)) - : (fn = Cn(this, dn, Nn)), + ? (fn = kn(this, dn, Nn)) + : _n < 1024 + ? (fn = yn(this, dn, Nn)) + : (fn = Cn(this, dn, Nn)), fn ) }), @@ -12639,10 +12641,10 @@ const __viteBrowserExternal = {}, dn < 0 ? this.isubn(-dn) : this.negative !== 0 - ? this.length === 1 && (this.words[0] | 0) <= dn - ? ((this.words[0] = dn - (this.words[0] | 0)), (this.negative = 0), this) - : ((this.negative = 0), this.isubn(dn), (this.negative = 1), this) - : this._iaddn(dn) + ? this.length === 1 && (this.words[0] | 0) <= dn + ? ((this.words[0] = dn - (this.words[0] | 0)), (this.negative = 0), this) + : ((this.negative = 0), this.isubn(dn), (this.negative = 1), this) + : this._iaddn(dn) ) }), (en.prototype._iaddn = function (dn) { @@ -12739,22 +12741,22 @@ const __viteBrowserExternal = {}, Nn !== 'div' && ((Ln = zn.mod.neg()), fn && Ln.negative !== 0 && Ln.iadd(dn)), { div: _n, mod: Ln }) : this.negative === 0 && dn.negative !== 0 - ? ((zn = this.divmod(dn.neg(), Nn)), - Nn !== 'mod' && (_n = zn.div.neg()), - { div: _n, mod: zn.mod }) - : this.negative & dn.negative - ? ((zn = this.neg().divmod(dn.neg(), Nn)), - Nn !== 'div' && ((Ln = zn.mod.neg()), fn && Ln.negative !== 0 && Ln.isub(dn)), - { div: zn.div, mod: Ln }) - : dn.length > this.length || this.cmp(dn) < 0 - ? { div: new en(0), mod: this } - : dn.length === 1 - ? Nn === 'div' - ? { div: this.divn(dn.words[0]), mod: null } - : Nn === 'mod' - ? { div: null, mod: new en(this.modrn(dn.words[0])) } - : { div: this.divn(dn.words[0]), mod: new en(this.modrn(dn.words[0])) } - : this._wordDiv(dn, Nn) + ? ((zn = this.divmod(dn.neg(), Nn)), + Nn !== 'mod' && (_n = zn.div.neg()), + { div: _n, mod: zn.mod }) + : this.negative & dn.negative + ? ((zn = this.neg().divmod(dn.neg(), Nn)), + Nn !== 'div' && ((Ln = zn.mod.neg()), fn && Ln.negative !== 0 && Ln.isub(dn)), + { div: zn.div, mod: Ln }) + : dn.length > this.length || this.cmp(dn) < 0 + ? { div: new en(0), mod: this } + : dn.length === 1 + ? Nn === 'div' + ? { div: this.divn(dn.words[0]), mod: null } + : Nn === 'mod' + ? { div: null, mod: new en(this.modrn(dn.words[0])) } + : { div: this.divn(dn.words[0]), mod: new en(this.modrn(dn.words[0])) } + : this._wordDiv(dn, Nn) }), (en.prototype.div = function (dn) { return this.divmod(dn, 'div', !1).div @@ -12775,8 +12777,8 @@ const __viteBrowserExternal = {}, return zn < 0 || (Ln === 1 && zn === 0) ? Nn.div : Nn.div.negative !== 0 - ? Nn.div.isubn(1) - : Nn.div.iaddn(1) + ? Nn.div.isubn(1) + : Nn.div.iaddn(1) }), (en.prototype.modrn = function (dn) { var Nn = dn < 0 @@ -13073,10 +13075,10 @@ const __viteBrowserExternal = {}, _n === 0 ? ((Nn.words[0] = 0), (Nn.length = 1)) : _n > 0 - ? Nn.isub(this.p) - : Nn.strip !== void 0 - ? Nn.strip() - : Nn._strip(), + ? Nn.isub(this.p) + : Nn.strip !== void 0 + ? Nn.strip() + : Nn._strip(), Nn ) }), @@ -13847,8 +13849,8 @@ function factory(e) { ? NaN : sn * (1 / 0) : gn === 0 - ? sn * 1401298464324817e-60 * In - : sn * Math.pow(2, gn - 150) * (In + 8388608) + ? sn * 1401298464324817e-60 * In + : sn * Math.pow(2, gn - 150) * (In + 8388608) } ;(e.readFloatLE = _.bind(null, readUintLE)), (e.readFloatBE = _.bind(null, readUintBE)) })(), @@ -13948,8 +13950,8 @@ function factory(e) { ? NaN : Jn * (1 / 0) : qn === 0 - ? Jn * 5e-324 * Kn - : Jn * Math.pow(2, qn - 1075) * (Kn + 4503599627370496) + ? Jn * 5e-324 * Kn + : Jn * Math.pow(2, qn - 1075) * (Kn + 4503599627370496) } ;(e.readDoubleLE = _.bind(null, readUintLE, 0, 4)), (e.readDoubleBE = _.bind(null, readUintBE, 4, 0)) @@ -13992,10 +13994,10 @@ var utf8$2 = {} en < 128 ? ($ += 1) : en < 2048 - ? ($ += 2) - : (en & 64512) === 55296 && (b.charCodeAt(nn + 1) & 64512) === 56320 - ? (++nn, ($ += 4)) - : ($ += 3) + ? ($ += 2) + : (en & 64512) === 55296 && (b.charCodeAt(nn + 1) & 64512) === 56320 + ? (++nn, ($ += 4)) + : ($ += 3) return $ }), (o.read = function (b, $, en) { @@ -14006,14 +14008,17 @@ var utf8$2 = {} Jn < 128 ? (gn[In++] = Jn) : Jn > 191 && Jn < 224 - ? (gn[In++] = ((Jn & 31) << 6) | (b[$++] & 63)) - : Jn > 239 && Jn < 365 - ? ((Jn = - (((Jn & 7) << 18) | ((b[$++] & 63) << 12) | ((b[$++] & 63) << 6) | (b[$++] & 63)) - - 65536), - (gn[In++] = 55296 + (Jn >> 10)), - (gn[In++] = 56320 + (Jn & 1023))) - : (gn[In++] = ((Jn & 15) << 12) | ((b[$++] & 63) << 6) | (b[$++] & 63)), + ? (gn[In++] = ((Jn & 31) << 6) | (b[$++] & 63)) + : Jn > 239 && Jn < 365 + ? ((Jn = + (((Jn & 7) << 18) | + ((b[$++] & 63) << 12) | + ((b[$++] & 63) << 6) | + (b[$++] & 63)) - + 65536), + (gn[In++] = 55296 + (Jn >> 10)), + (gn[In++] = 56320 + (Jn & 1023))) + : (gn[In++] = ((Jn & 15) << 12) | ((b[$++] & 63) << 6) | (b[$++] & 63)), In > 8191 && ((sn || (sn = [])).push(String.fromCharCode.apply(String, gn)), (In = 0)) return sn ? (In && sn.push(String.fromCharCode.apply(String, gn.slice(0, In))), sn.join('')) @@ -14025,17 +14030,17 @@ var utf8$2 = {} sn < 128 ? ($[en++] = sn) : sn < 2048 - ? (($[en++] = (sn >> 6) | 192), ($[en++] = (sn & 63) | 128)) - : (sn & 64512) === 55296 && ((gn = b.charCodeAt(In + 1)) & 64512) === 56320 - ? ((sn = 65536 + ((sn & 1023) << 10) + (gn & 1023)), - ++In, - ($[en++] = (sn >> 18) | 240), - ($[en++] = ((sn >> 12) & 63) | 128), - ($[en++] = ((sn >> 6) & 63) | 128), - ($[en++] = (sn & 63) | 128)) - : (($[en++] = (sn >> 12) | 224), - ($[en++] = ((sn >> 6) & 63) | 128), - ($[en++] = (sn & 63) | 128)) + ? (($[en++] = (sn >> 6) | 192), ($[en++] = (sn & 63) | 128)) + : (sn & 64512) === 55296 && ((gn = b.charCodeAt(In + 1)) & 64512) === 56320 + ? ((sn = 65536 + ((sn & 1023) << 10) + (gn & 1023)), + ++In, + ($[en++] = (sn >> 18) | 240), + ($[en++] = ((sn >> 12) & 63) | 128), + ($[en++] = ((sn >> 6) & 63) | 128), + ($[en++] = (sn & 63) | 128)) + : (($[en++] = (sn >> 12) | 224), + ($[en++] = ((sn >> 6) & 63) | 128), + ($[en++] = (sn & 63) | 128)) return en - nn }) })(utf8$2) @@ -14163,18 +14168,18 @@ function requireLongbits() { ? 1 : 2 : nn < 2097152 - ? 3 - : 4 + ? 3 + : 4 : sn < 16384 - ? sn < 128 - ? 5 - : 6 - : sn < 2097152 - ? 7 - : 8 + ? sn < 128 + ? 5 + : 6 + : sn < 2097152 + ? 7 + : 8 : gn < 128 - ? 9 - : 10 + ? 9 + : 10 }), longbits ) @@ -14243,10 +14248,10 @@ function requireMinimal() { ? o._Buffer_allocUnsafe(en) : new o.Array(en) : o.Buffer - ? o._Buffer_from(en) - : typeof Uint8Array > 'u' - ? en - : new Uint8Array(en) + ? o._Buffer_from(en) + : typeof Uint8Array > 'u' + ? en + : new Uint8Array(en) }), (o.Array = typeof Uint8Array < 'u' ? Uint8Array : Array), (o.Long = @@ -14667,8 +14672,8 @@ Reader$1.prototype.bytes = function e() { Array.isArray(this.buf) ? this.buf.slice(_, b) : _ === b - ? new this.buf.constructor(0) - : this._slice.call(this.buf, _, b) + ? new this.buf.constructor(0) + : this._slice.call(this.buf, _, b) ) } Reader$1.prototype.string = function e() { @@ -14914,8 +14919,8 @@ function fromValue$3(e, o) { return typeof e == 'number' ? fromNumber$3(e, o) : typeof e == 'string' - ? fromString$3(e, o) - : fromBits$3(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) + ? fromString$3(e, o) + : fromBits$3(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) } Long$3.fromValue = fromValue$3 var TWO_PWR_16_DBL$3 = 1 << 16, @@ -15040,14 +15045,14 @@ LongPrototype$3.compare = function e(o) { return _ && !b ? -1 : !_ && b - ? 1 - : this.unsigned - ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) - ? -1 - : 1 - : this.sub(o).isNegative() - ? -1 - : 1 + ? 1 + : this.unsigned + ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) + ? -1 + : 1 + : this.sub(o).isNegative() + ? -1 + : 1 } LongPrototype$3.comp = LongPrototype$3.compare LongPrototype$3.negate = function e() { @@ -15220,8 +15225,8 @@ LongPrototype$3.shiftLeft = function e(o) { (o &= 63) === 0 ? this : o < 32 - ? fromBits$3(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) - : fromBits$3(0, this.low << (o - 32), this.unsigned) + ? fromBits$3(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) + : fromBits$3(0, this.low << (o - 32), this.unsigned) ) } LongPrototype$3.shl = LongPrototype$3.shiftLeft @@ -15231,8 +15236,8 @@ LongPrototype$3.shiftRight = function e(o) { (o &= 63) === 0 ? this : o < 32 - ? fromBits$3((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) - : fromBits$3(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) + ? fromBits$3((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) + : fromBits$3(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) ) } LongPrototype$3.shr = LongPrototype$3.shiftRight @@ -15446,8 +15451,8 @@ function fromJsonTimestamp(e) { return e instanceof Date ? toTimestamp(e) : typeof e == 'string' - ? toTimestamp(new Date(e)) - : timestampFromJSON(e) + ? toTimestamp(new Date(e)) + : timestampFromJSON(e) } helpers.fromJsonTimestamp = fromJsonTimestamp function numberToLong(e) { @@ -43485,9 +43490,8 @@ function requireLibsodiumSumo() { ((g = h) - (h = Vs(a))) | 0) >>> 0 < 2 || - ((pn[ - 0 | (d = (a + h) | 0) - ] = 36), + ((pn[0 | (d = (a + h) | 0)] = + 36), (pn[(d + 1) | 0] = 0), (d = Nr( (d + 1) | 0, @@ -67506,10 +67510,10 @@ function requireLibsodiumSumo() { ar >= 240 ? ((nr = 4), (Dt = !0)) : ar >= 224 - ? ((nr = 3), (Dt = !0)) - : ar >= 192 - ? ((nr = 2), (Dt = !0)) - : ar < 128 && ((nr = 1), (Dt = !0)) + ? ((nr = 3), (Dt = !0)) + : ar >= 192 + ? ((nr = 2), (Dt = !0)) + : ar < 128 && ((nr = 1), (Dt = !0)) } while (!Dt) for (var kr = nr - (Et.length - Yt), Nr = 0; Nr < kr; Nr++) lt--, Et.pop() it += Jn(Et) @@ -67619,8 +67623,8 @@ function requireLibsodiumSumo() { ct instanceof Uint8Array ? ct : typeof ct == 'string' - ? In(ct) - : void Sn(ot, 'unsupported input type for ' + ut) + ? In(ct) + : void Sn(ot, 'unsupported input type for ' + ut) ) } function En(ot, ct, ut, it, lt, vt) { @@ -70895,12 +70899,12 @@ function f$1(e, o, _, b) { return e === 0 ? o ^ _ ^ b : e === 1 - ? (o & _) | (~o & b) - : e === 2 - ? (o | ~_) ^ b - : e === 3 - ? (o & b) | (_ & ~b) - : o ^ (_ | ~b) + ? (o & _) | (~o & b) + : e === 2 + ? (o | ~_) ^ b + : e === 3 + ? (o & b) | (_ & ~b) + : o ^ (_ | ~b) } const BUF = new Uint32Array(16) let RIPEMD160$1 = class extends _sha2_js_1.SHA2 { @@ -71115,10 +71119,10 @@ var utils$x = {}, Hn < 67108864 ? ((this.words = [Hn & 67108863]), (this.length = 1)) : Hn < 4503599627370496 - ? ((this.words = [Hn & 67108863, (Hn / 67108864) & 67108863]), (this.length = 2)) - : (b(Hn < 9007199254740992), - (this.words = [Hn & 67108863, (Hn / 67108864) & 67108863, 1]), - (this.length = 3)), + ? ((this.words = [Hn & 67108863, (Hn / 67108864) & 67108863]), (this.length = 2)) + : (b(Hn < 9007199254740992), + (this.words = [Hn & 67108863, (Hn / 67108864) & 67108863, 1]), + (this.length = 3)), dn === 'le' && this._initArray(this.toArray(), un, dn) }), (en.prototype._initArray = function (Hn, un, dn) { @@ -71298,8 +71302,8 @@ var utils$x = {}, this.length === 2 ? (Hn += this.words[1] * 67108864) : this.length === 3 && this.words[2] === 1 - ? (Hn += 4503599627370496 + this.words[1] * 67108864) - : this.length > 2 && b(!1, 'Number can only safely store up to 53 bits'), + ? (Hn += 4503599627370496 + this.words[1] * 67108864) + : this.length > 2 && b(!1, 'Number can only safely store up to 53 bits'), this.negative !== 0 ? -Hn : Hn ) }), @@ -71491,10 +71495,10 @@ var utils$x = {}, return Hn.negative !== 0 && this.negative === 0 ? ((Hn.negative = 0), (un = this.sub(Hn)), (Hn.negative ^= 1), un) : Hn.negative === 0 && this.negative !== 0 - ? ((this.negative = 0), (un = Hn.sub(this)), (this.negative = 1), un) - : this.length > Hn.length - ? this.clone().iadd(Hn) - : Hn.clone().iadd(this) + ? ((this.negative = 0), (un = Hn.sub(this)), (this.negative = 1), un) + : this.length > Hn.length + ? this.clone().iadd(Hn) + : Hn.clone().iadd(this) }), (en.prototype.isub = function (Hn) { if (Hn.negative !== 0) { @@ -72145,10 +72149,10 @@ var utils$x = {}, this.length === 10 && Hn.length === 10 ? (dn = mn(this, Hn, un)) : Nn < 63 - ? (dn = xn(this, Hn, un)) - : Nn < 1024 - ? (dn = Bn(this, Hn, un)) - : (dn = kn(this, Hn, un)), + ? (dn = xn(this, Hn, un)) + : Nn < 1024 + ? (dn = Bn(this, Hn, un)) + : (dn = kn(this, Hn, un)), dn ) } @@ -72403,10 +72407,10 @@ var utils$x = {}, Hn < 0 ? this.isubn(-Hn) : this.negative !== 0 - ? this.length === 1 && (this.words[0] | 0) < Hn - ? ((this.words[0] = Hn - (this.words[0] | 0)), (this.negative = 0), this) - : ((this.negative = 0), this.isubn(Hn), (this.negative = 1), this) - : this._iaddn(Hn) + ? this.length === 1 && (this.words[0] | 0) < Hn + ? ((this.words[0] = Hn - (this.words[0] | 0)), (this.negative = 0), this) + : ((this.negative = 0), this.isubn(Hn), (this.negative = 1), this) + : this._iaddn(Hn) ) }), (en.prototype._iaddn = function (Hn) { @@ -72503,22 +72507,22 @@ var utils$x = {}, un !== 'div' && ((fn = _n.mod.neg()), dn && fn.negative !== 0 && fn.iadd(Hn)), { div: Nn, mod: fn }) : this.negative === 0 && Hn.negative !== 0 - ? ((_n = this.divmod(Hn.neg(), un)), - un !== 'mod' && (Nn = _n.div.neg()), - { div: Nn, mod: _n.mod }) - : this.negative & Hn.negative - ? ((_n = this.neg().divmod(Hn.neg(), un)), - un !== 'div' && ((fn = _n.mod.neg()), dn && fn.negative !== 0 && fn.isub(Hn)), - { div: _n.div, mod: fn }) - : Hn.length > this.length || this.cmp(Hn) < 0 - ? { div: new en(0), mod: this } - : Hn.length === 1 - ? un === 'div' - ? { div: this.divn(Hn.words[0]), mod: null } - : un === 'mod' - ? { div: null, mod: new en(this.modn(Hn.words[0])) } - : { div: this.divn(Hn.words[0]), mod: new en(this.modn(Hn.words[0])) } - : this._wordDiv(Hn, un) + ? ((_n = this.divmod(Hn.neg(), un)), + un !== 'mod' && (Nn = _n.div.neg()), + { div: Nn, mod: _n.mod }) + : this.negative & Hn.negative + ? ((_n = this.neg().divmod(Hn.neg(), un)), + un !== 'div' && ((fn = _n.mod.neg()), dn && fn.negative !== 0 && fn.isub(Hn)), + { div: _n.div, mod: fn }) + : Hn.length > this.length || this.cmp(Hn) < 0 + ? { div: new en(0), mod: this } + : Hn.length === 1 + ? un === 'div' + ? { div: this.divn(Hn.words[0]), mod: null } + : un === 'mod' + ? { div: null, mod: new en(this.modn(Hn.words[0])) } + : { div: this.divn(Hn.words[0]), mod: new en(this.modn(Hn.words[0])) } + : this._wordDiv(Hn, un) }), (en.prototype.div = function (Hn) { return this.divmod(Hn, 'div', !1).div @@ -72539,8 +72543,8 @@ var utils$x = {}, return _n < 0 || (fn === 1 && _n === 0) ? un.div : un.div.negative !== 0 - ? un.div.isubn(1) - : un.div.iaddn(1) + ? un.div.isubn(1) + : un.div.iaddn(1) }), (en.prototype.modn = function (Hn) { b(Hn <= 67108863) @@ -72832,10 +72836,10 @@ var utils$x = {}, Nn === 0 ? ((un.words[0] = 0), (un.length = 1)) : Nn > 0 - ? un.isub(this.p) - : un.strip !== void 0 - ? un.strip() - : un._strip(), + ? un.isub(this.p) + : un.strip !== void 0 + ? un.strip() + : un._strip(), un ) }), @@ -73230,14 +73234,14 @@ if (typeof self == 'object') return self.crypto.getRandomValues(_), _ }) : self.msCrypto && self.msCrypto.getRandomValues - ? (Rand.prototype._rand = function (o) { - var _ = new Uint8Array(o) - return self.msCrypto.getRandomValues(_), _ - }) - : typeof window == 'object' && - (Rand.prototype._rand = function () { - throw new Error('Not implemented yet') - }) + ? (Rand.prototype._rand = function (o) { + var _ = new Uint8Array(o) + return self.msCrypto.getRandomValues(_), _ + }) + : typeof window == 'object' && + (Rand.prototype._rand = function () { + throw new Error('Not implemented yet') + }) else try { var crypto = require$$0$2 @@ -73327,8 +73331,8 @@ BaseCurve.prototype._wnafMul = function e(o, _) { ? (sn = sn.mixedAdd(en[(Jn - 1) >> 1])) : (sn = sn.mixedAdd(en[(-Jn - 1) >> 1].neg())) : Jn > 0 - ? (sn = sn.add(en[(Jn - 1) >> 1])) - : (sn = sn.add(en[(-Jn - 1) >> 1].neg())) + ? (sn = sn.add(en[(Jn - 1) >> 1])) + : (sn = sn.add(en[(-Jn - 1) >> 1].neg())) } return o.type === 'affine' ? sn.toP() : sn } @@ -73359,8 +73363,8 @@ BaseCurve.prototype._wnafMulAdd = function e(o, _, b, $, en) { _[xn].y.cmp(_[mn].y) === 0 ? ((Bn[1] = _[xn].add(_[mn])), (Bn[2] = _[xn].toJ().mixedAdd(_[mn].neg()))) : _[xn].y.cmp(_[mn].y.redNeg()) === 0 - ? ((Bn[1] = _[xn].toJ().mixedAdd(_[mn])), (Bn[2] = _[xn].add(_[mn].neg()))) - : ((Bn[1] = _[xn].toJ().mixedAdd(_[mn])), (Bn[2] = _[xn].toJ().mixedAdd(_[mn].neg()))) + ? ((Bn[1] = _[xn].toJ().mixedAdd(_[mn])), (Bn[2] = _[xn].add(_[mn].neg()))) + : ((Bn[1] = _[xn].toJ().mixedAdd(_[mn])), (Bn[2] = _[xn].toJ().mixedAdd(_[mn].neg()))) var kn = [-3, -1, -5, -7, 0, 7, 5, 1, 3], ln = getJSF(b[xn], b[mn]) for ( @@ -73753,10 +73757,10 @@ Point$2.prototype.mul = function e(o) { this.isInfinity() ? this : this._hasDoubles(o) - ? this.curve._fixedNafMul(this, o) - : this.curve.endo - ? this.curve._endoWnafMulAdd([this], [o]) - : this.curve._wnafMul(this, o) + ? this.curve._fixedNafMul(this, o) + : this.curve.endo + ? this.curve._endoWnafMulAdd([this], [o]) + : this.curve._wnafMul(this, o) ) } Point$2.prototype.mulAdd = function e(o, _, b) { @@ -73897,10 +73901,10 @@ JPoint.prototype.dbl = function e() { return this.isInfinity() ? this : this.curve.zeroA - ? this._zeroDbl() - : this.curve.threeA - ? this._threeDbl() - : this._dbl() + ? this._zeroDbl() + : this.curve.threeA + ? this._threeDbl() + : this._dbl() } JPoint.prototype._zeroDbl = function e() { var o, _, b @@ -74359,10 +74363,10 @@ Point.prototype.add = function e(o) { return this.isInfinity() ? o : o.isInfinity() - ? this - : this.curve.extended - ? this._extAdd(o) - : this._projAdd(o) + ? this + : this.curve.extended + ? this._extAdd(o) + : this._projAdd(o) } Point.prototype.mul = function e(o) { return this._hasDoubles(o) ? this.curve._fixedNafMul(this, o) : this.curve._wnafMul(this, o) @@ -74441,16 +74445,16 @@ function toArray(e, o) { en < 128 ? (_[b++] = en) : en < 2048 - ? ((_[b++] = (en >> 6) | 192), (_[b++] = (en & 63) | 128)) - : isSurrogatePair(e, $) - ? ((en = 65536 + ((en & 1023) << 10) + (e.charCodeAt(++$) & 1023)), - (_[b++] = (en >> 18) | 240), - (_[b++] = ((en >> 12) & 63) | 128), - (_[b++] = ((en >> 6) & 63) | 128), - (_[b++] = (en & 63) | 128)) - : ((_[b++] = (en >> 12) | 224), - (_[b++] = ((en >> 6) & 63) | 128), - (_[b++] = (en & 63) | 128)) + ? ((_[b++] = (en >> 6) | 192), (_[b++] = (en & 63) | 128)) + : isSurrogatePair(e, $) + ? ((en = 65536 + ((en & 1023) << 10) + (e.charCodeAt(++$) & 1023)), + (_[b++] = (en >> 18) | 240), + (_[b++] = ((en >> 12) & 63) | 128), + (_[b++] = ((en >> 6) & 63) | 128), + (_[b++] = (en & 63) | 128)) + : ((_[b++] = (en >> 12) | 224), + (_[b++] = ((en >> 6) & 63) | 128), + (_[b++] = (en & 63) | 128)) } else for ($ = 0; $ < e.length; $++) _[$] = e[$] | 0 return _ @@ -74482,18 +74486,18 @@ function zero8(e) { return e.length === 7 ? '0' + e : e.length === 6 - ? '00' + e - : e.length === 5 - ? '000' + e - : e.length === 4 - ? '0000' + e - : e.length === 3 - ? '00000' + e - : e.length === 2 - ? '000000' + e - : e.length === 1 - ? '0000000' + e - : e + ? '00' + e + : e.length === 5 + ? '000' + e + : e.length === 4 + ? '0000' + e + : e.length === 3 + ? '00000' + e + : e.length === 2 + ? '000000' + e + : e.length === 1 + ? '0000000' + e + : e } utils$r.zero8 = zero8 function join32(e, o, _, b) { @@ -75168,34 +75172,34 @@ function f(e, o, _, b) { return e <= 15 ? o ^ _ ^ b : e <= 31 - ? (o & _) | (~o & b) - : e <= 47 - ? (o | ~_) ^ b - : e <= 63 - ? (o & b) | (_ & ~b) - : o ^ (_ | ~b) + ? (o & _) | (~o & b) + : e <= 47 + ? (o | ~_) ^ b + : e <= 63 + ? (o & b) | (_ & ~b) + : o ^ (_ | ~b) } function K(e) { return e <= 15 ? 0 : e <= 31 - ? 1518500249 - : e <= 47 - ? 1859775393 - : e <= 63 - ? 2400959708 - : 2840853838 + ? 1518500249 + : e <= 47 + ? 1859775393 + : e <= 63 + ? 2400959708 + : 2840853838 } function Kh(e) { return e <= 15 ? 1352829926 : e <= 31 - ? 1548603684 - : e <= 47 - ? 1836072691 - : e <= 63 - ? 2053994217 - : 0 + ? 1548603684 + : e <= 47 + ? 1836072691 + : e <= 63 + ? 2053994217 + : 0 } var r = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, @@ -76055,8 +76059,8 @@ function requireSecp256k1() { In.type === 'short' ? (this.curve = new b.short(In)) : In.type === 'edwards' - ? (this.curve = new b.edwards(In)) - : (this.curve = new b.mont(In)), + ? (this.curve = new b.edwards(In)) + : (this.curve = new b.mont(In)), (this.g = this.curve.g), (this.n = this.curve.n), (this.hash = In.hash), @@ -76282,10 +76286,10 @@ KeyPair$3.prototype.validate = function e() { return o.isInfinity() ? { result: !1, reason: 'Invalid public key' } : o.validate() - ? o.mul(this.ec.curve.n).isInfinity() - ? { result: !0, reason: null } - : { result: !1, reason: 'Public key * N != O' } - : { result: !1, reason: 'Public key is not a point' } + ? o.mul(this.ec.curve.n).isInfinity() + ? { result: !0, reason: null } + : { result: !1, reason: 'Public key * N != O' } + : { result: !1, reason: 'Public key is not a point' } } KeyPair$3.prototype.getPublic = function e(o, _) { return ( @@ -78193,8 +78197,8 @@ function fromValue$2(e, o) { return typeof e == 'number' ? fromNumber$2(e, o) : typeof e == 'string' - ? fromString$2(e, o) - : fromBits$2(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) + ? fromString$2(e, o) + : fromBits$2(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) } Long$2.fromValue = fromValue$2 var TWO_PWR_16_DBL$2 = 1 << 16, @@ -78319,14 +78323,14 @@ LongPrototype$2.compare = function e(o) { return _ && !b ? -1 : !_ && b - ? 1 - : this.unsigned - ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) - ? -1 - : 1 - : this.sub(o).isNegative() - ? -1 - : 1 + ? 1 + : this.unsigned + ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) + ? -1 + : 1 + : this.sub(o).isNegative() + ? -1 + : 1 } LongPrototype$2.comp = LongPrototype$2.compare LongPrototype$2.negate = function e() { @@ -78499,8 +78503,8 @@ LongPrototype$2.shiftLeft = function e(o) { (o &= 63) === 0 ? this : o < 32 - ? fromBits$2(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) - : fromBits$2(0, this.low << (o - 32), this.unsigned) + ? fromBits$2(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) + : fromBits$2(0, this.low << (o - 32), this.unsigned) ) } LongPrototype$2.shl = LongPrototype$2.shiftLeft @@ -78510,8 +78514,8 @@ LongPrototype$2.shiftRight = function e(o) { (o &= 63) === 0 ? this : o < 32 - ? fromBits$2((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) - : fromBits$2(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) + ? fromBits$2((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) + : fromBits$2(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) ) } LongPrototype$2.shr = LongPrototype$2.shiftRight @@ -82883,16 +82887,16 @@ $root.ics23 = (function () { $.bytes === String ? $util.base64.encode(b.key, 0, b.key.length) : $.bytes === Array - ? Array.prototype.slice.call(b.key) - : b.key), + ? Array.prototype.slice.call(b.key) + : b.key), b.value != null && b.hasOwnProperty('value') && (en.value = $.bytes === String ? $util.base64.encode(b.value, 0, b.value.length) : $.bytes === Array - ? Array.prototype.slice.call(b.value) - : b.value), + ? Array.prototype.slice.call(b.value) + : b.value), b.leaf != null && b.hasOwnProperty('leaf') && (en.leaf = $root.ics23.LeafOp.toObject(b.leaf, $)), @@ -83026,8 +83030,8 @@ $root.ics23 = (function () { $.bytes === String ? $util.base64.encode(b.key, 0, b.key.length) : $.bytes === Array - ? Array.prototype.slice.call(b.key) - : b.key), + ? Array.prototype.slice.call(b.key) + : b.key), b.left != null && b.hasOwnProperty('left') && (en.left = $root.ics23.ExistenceProof.toObject(b.left, $)), @@ -83509,8 +83513,8 @@ $root.ics23 = (function () { $.bytes === String ? $util.base64.encode(b.prefix, 0, b.prefix.length) : $.bytes === Array - ? Array.prototype.slice.call(b.prefix) - : b.prefix), + ? Array.prototype.slice.call(b.prefix) + : b.prefix), en ) }), @@ -83593,10 +83597,10 @@ $root.ics23 = (function () { !((b.prefix && typeof b.prefix.length == 'number') || $util.isString(b.prefix)) ? 'prefix: buffer expected' : b.suffix != null && - b.hasOwnProperty('suffix') && - !((b.suffix && typeof b.suffix.length == 'number') || $util.isString(b.suffix)) - ? 'suffix: buffer expected' - : null + b.hasOwnProperty('suffix') && + !((b.suffix && typeof b.suffix.length == 'number') || $util.isString(b.suffix)) + ? 'suffix: buffer expected' + : null }), (o.fromObject = function (b) { if (b instanceof $root.ics23.InnerOp) return b @@ -83673,16 +83677,16 @@ $root.ics23 = (function () { $.bytes === String ? $util.base64.encode(b.prefix, 0, b.prefix.length) : $.bytes === Array - ? Array.prototype.slice.call(b.prefix) - : b.prefix), + ? Array.prototype.slice.call(b.prefix) + : b.prefix), b.suffix != null && b.hasOwnProperty('suffix') && (en.suffix = $.bytes === String ? $util.base64.encode(b.suffix, 0, b.suffix.length) : $.bytes === Array - ? Array.prototype.slice.call(b.suffix) - : b.suffix), + ? Array.prototype.slice.call(b.suffix) + : b.suffix), en ) }), @@ -83767,8 +83771,8 @@ $root.ics23 = (function () { return b.maxDepth != null && b.hasOwnProperty('maxDepth') && !$util.isInteger(b.maxDepth) ? 'maxDepth: integer expected' : b.minDepth != null && b.hasOwnProperty('minDepth') && !$util.isInteger(b.minDepth) - ? 'minDepth: integer expected' - : null + ? 'minDepth: integer expected' + : null }), (o.fromObject = function (b) { if (b instanceof $root.ics23.ProofSpec) return b @@ -84025,8 +84029,8 @@ $root.ics23 = (function () { $.bytes === String ? $util.base64.encode(b.emptyChild, 0, b.emptyChild.length) : $.bytes === Array - ? Array.prototype.slice.call(b.emptyChild) - : b.emptyChild), + ? Array.prototype.slice.call(b.emptyChild) + : b.emptyChild), b.hash != null && b.hasOwnProperty('hash') && (en.hash = $.enums === String ? $root.ics23.HashOp[b.hash] : b.hash), @@ -84615,16 +84619,16 @@ $root.ics23 = (function () { $.bytes === String ? $util.base64.encode(b.key, 0, b.key.length) : $.bytes === Array - ? Array.prototype.slice.call(b.key) - : b.key), + ? Array.prototype.slice.call(b.key) + : b.key), b.value != null && b.hasOwnProperty('value') && (en.value = $.bytes === String ? $util.base64.encode(b.value, 0, b.value.length) : $.bytes === Array - ? Array.prototype.slice.call(b.value) - : b.value), + ? Array.prototype.slice.call(b.value) + : b.value), b.leaf != null && b.hasOwnProperty('leaf') && (en.leaf = $root.ics23.LeafOp.toObject(b.leaf, $)), @@ -84758,8 +84762,8 @@ $root.ics23 = (function () { $.bytes === String ? $util.base64.encode(b.key, 0, b.key.length) : $.bytes === Array - ? Array.prototype.slice.call(b.key) - : b.key), + ? Array.prototype.slice.call(b.key) + : b.key), b.left != null && b.hasOwnProperty('left') && (en.left = $root.ics23.CompressedExistenceProof.toObject(b.left, $)), @@ -85883,8 +85887,8 @@ var defineProperties_1 = defineProperties$1, typeof self < 'u' ? (implementation_browser.exports = self) : typeof window < 'u' - ? (implementation_browser.exports = window) - : (implementation_browser.exports = Function('return this')()) + ? (implementation_browser.exports = window) + : (implementation_browser.exports = Function('return this')()) var implementation$1 = implementation_browserExports, polyfill$1 = function e() { return typeof commonjsGlobal != 'object' || @@ -87368,8 +87372,8 @@ function fromValue$1(e, o) { return typeof e == 'number' ? fromNumber$1(e, o) : typeof e == 'string' - ? fromString$1(e, o) - : fromBits$1(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) + ? fromString$1(e, o) + : fromBits$1(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) } Long$1.fromValue = fromValue$1 var TWO_PWR_16_DBL$1 = 1 << 16, @@ -87494,14 +87498,14 @@ LongPrototype$1.compare = function e(o) { return _ && !b ? -1 : !_ && b - ? 1 - : this.unsigned - ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) - ? -1 - : 1 - : this.sub(o).isNegative() - ? -1 - : 1 + ? 1 + : this.unsigned + ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) + ? -1 + : 1 + : this.sub(o).isNegative() + ? -1 + : 1 } LongPrototype$1.comp = LongPrototype$1.compare LongPrototype$1.negate = function e() { @@ -87674,8 +87678,8 @@ LongPrototype$1.shiftLeft = function e(o) { (o &= 63) === 0 ? this : o < 32 - ? fromBits$1(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) - : fromBits$1(0, this.low << (o - 32), this.unsigned) + ? fromBits$1(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) + : fromBits$1(0, this.low << (o - 32), this.unsigned) ) } LongPrototype$1.shl = LongPrototype$1.shiftLeft @@ -87685,8 +87689,8 @@ LongPrototype$1.shiftRight = function e(o) { (o &= 63) === 0 ? this : o < 32 - ? fromBits$1((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) - : fromBits$1(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) + ? fromBits$1((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) + : fromBits$1(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) ) } LongPrototype$1.shr = LongPrototype$1.shiftRight @@ -129375,10 +129379,10 @@ function merge() { isPlainObject(e[en]) && isPlainObject($) ? (e[en] = merge(e[en], $)) : isPlainObject($) - ? (e[en] = merge({}, $)) - : isArray($) - ? (e[en] = $.slice()) - : (e[en] = $) + ? (e[en] = merge({}, $)) + : isArray($) + ? (e[en] = $.slice()) + : (e[en] = $) } for (var _ = 0, b = arguments.length; _ < b; _++) forEach(arguments[_], o) return e @@ -129854,13 +129858,13 @@ var defaults$3 = { utils$5.isBlob(o) ? o : utils$5.isArrayBufferView(o) - ? o.buffer - : utils$5.isURLSearchParams(o) - ? (setContentTypeIfUnset(_, 'application/x-www-form-urlencoded;charset=utf-8'), - o.toString()) - : utils$5.isObject(o) || (_ && _['Content-Type'] === 'application/json') - ? (setContentTypeIfUnset(_, 'application/json'), stringifySafely(o)) - : o + ? o.buffer + : utils$5.isURLSearchParams(o) + ? (setContentTypeIfUnset(_, 'application/x-www-form-urlencoded;charset=utf-8'), + o.toString()) + : utils$5.isObject(o) || (_ && _['Content-Type'] === 'application/json') + ? (setContentTypeIfUnset(_, 'application/json'), stringifySafely(o)) + : o ) }, ], @@ -129996,10 +130000,10 @@ var dispatchRequest$1 = function e(o) { return utils$2.isPlainObject(Kn) && utils$2.isPlainObject(an) ? utils$2.merge(Kn, an) : utils$2.isPlainObject(an) - ? utils$2.merge({}, an) - : utils$2.isArray(an) - ? an.slice() - : an + ? utils$2.merge({}, an) + : utils$2.isArray(an) + ? an.slice() + : an } function In(Kn) { utils$2.isUndefined(_[Kn]) @@ -130177,8 +130181,8 @@ Axios$1.prototype.request = function e(o) { o.method ? (o.method = o.method.toLowerCase()) : this.defaults.method - ? (o.method = this.defaults.method.toLowerCase()) - : (o.method = 'get') + ? (o.method = this.defaults.method.toLowerCase()) + : (o.method = 'get') var _ = o.transitional _ !== void 0 && validator.assertOptions( @@ -130481,12 +130485,12 @@ var websocketclient = {}, typeof WebSocket < 'u' ? (ws = WebSocket) : typeof MozWebSocket < 'u' - ? (ws = MozWebSocket) - : typeof commonjsGlobal < 'u' - ? (ws = commonjsGlobal.WebSocket || commonjsGlobal.MozWebSocket) - : typeof window < 'u' - ? (ws = window.WebSocket || window.MozWebSocket) - : typeof self < 'u' && (ws = self.WebSocket || self.MozWebSocket) + ? (ws = MozWebSocket) + : typeof commonjsGlobal < 'u' + ? (ws = commonjsGlobal.WebSocket || commonjsGlobal.MozWebSocket) + : typeof window < 'u' + ? (ws = window.WebSocket || window.MozWebSocket) + : typeof self < 'u' && (ws = self.WebSocket || self.MozWebSocket) var browser = ws, __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || @@ -135339,8 +135343,8 @@ function fromValue(e, o) { return typeof e == 'number' ? fromNumber(e, o) : typeof e == 'string' - ? fromString(e, o) - : fromBits(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) + ? fromString(e, o) + : fromBits(e.low, e.high, typeof o == 'boolean' ? o : e.unsigned) } Long.fromValue = fromValue var TWO_PWR_16_DBL = 1 << 16, @@ -135465,14 +135469,14 @@ LongPrototype.compare = function e(o) { return _ && !b ? -1 : !_ && b - ? 1 - : this.unsigned - ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) - ? -1 - : 1 - : this.sub(o).isNegative() - ? -1 - : 1 + ? 1 + : this.unsigned + ? o.high >>> 0 > this.high >>> 0 || (o.high === this.high && o.low >>> 0 > this.low >>> 0) + ? -1 + : 1 + : this.sub(o).isNegative() + ? -1 + : 1 } LongPrototype.comp = LongPrototype.compare LongPrototype.negate = function e() { @@ -135642,8 +135646,8 @@ LongPrototype.shiftLeft = function e(o) { (o &= 63) === 0 ? this : o < 32 - ? fromBits(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) - : fromBits(0, this.low << (o - 32), this.unsigned) + ? fromBits(this.low << o, (this.high << o) | (this.low >>> (32 - o)), this.unsigned) + : fromBits(0, this.low << (o - 32), this.unsigned) ) } LongPrototype.shl = LongPrototype.shiftLeft @@ -135653,8 +135657,8 @@ LongPrototype.shiftRight = function e(o) { (o &= 63) === 0 ? this : o < 32 - ? fromBits((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) - : fromBits(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) + ? fromBits((this.low >>> o) | (this.high << (32 - o)), this.high >> o, this.unsigned) + : fromBits(this.high >> (o - 32), this.high >= 0 ? 0 : -1, this.unsigned) ) } LongPrototype.shr = LongPrototype.shiftRight @@ -139166,8 +139170,8 @@ var mainExports = {}, typeof window < 'u' && window.Math == Math ? window : typeof self < 'u' && self.Math == Math - ? self - : Function('return this')()) + ? self + : Function('return this')()) typeof __g == 'number' && (__g = en) }, function (b, $, en) { @@ -139283,28 +139287,28 @@ var mainExports = {}, yn && typeof En[mn] != 'function' ? xn[mn] : Gn && Bn - ? gn(kn, nn) - : Sn && En[mn] == kn - ? (function (Mn) { - var Hn = function (un, dn, Nn) { - if (this instanceof Mn) { - switch (arguments.length) { - case 0: - return new Mn() - case 1: - return new Mn(un) - case 2: - return new Mn(un, dn) + ? gn(kn, nn) + : Sn && En[mn] == kn + ? (function (Mn) { + var Hn = function (un, dn, Nn) { + if (this instanceof Mn) { + switch (arguments.length) { + case 0: + return new Mn() + case 1: + return new Mn(un) + case 2: + return new Mn(un, dn) + } + return new Mn(un, dn, Nn) + } + return Mn.apply(this, arguments) } - return new Mn(un, dn, Nn) - } - return Mn.apply(this, arguments) - } - return (Hn.prototype = Mn.prototype), Hn - })(kn) - : Tn && typeof kn == 'function' - ? gn(Function.call, kn) - : kn), + return (Hn.prototype = Mn.prototype), Hn + })(kn) + : Tn && typeof kn == 'function' + ? gn(Function.call, kn) + : kn), Tn && (((Zn.virtual || (Zn.virtual = {}))[mn] = kn), Kn & qn.R && tn && !tn[mn] && In(tn, mn, kn))) @@ -139641,18 +139645,18 @@ var mainExports = {}, return In === void 0 ? 'Undefined' : In === null - ? 'Null' - : typeof (qn = (function (an, xn) { - try { - return an[xn] - } catch {} - })((Jn = Object(In)), sn)) == 'string' - ? qn - : gn - ? nn(Jn) - : (Kn = nn(Jn)) == 'Object' && typeof Jn.callee == 'function' - ? 'Arguments' - : Kn + ? 'Null' + : typeof (qn = (function (an, xn) { + try { + return an[xn] + } catch {} + })((Jn = Object(In)), sn)) == 'string' + ? qn + : gn + ? nn(Jn) + : (Kn = nn(Jn)) == 'Object' && typeof Jn.callee == 'function' + ? 'Arguments' + : Kn } }, function (b, $) { @@ -139817,9 +139821,9 @@ var mainExports = {}, typeof _n == 'string' ? (fn.className = [fn.className, _n].filter(Boolean).join(' ')) : (_n === void 0 ? 'undefined' : (0, nn.default)(_n)) === 'object' - ? (fn.style = (0, sn.default)({}, fn.style, _n)) - : typeof _n == 'function' && - (fn = (0, sn.default)({}, fn, _n.apply(void 0, [fn].concat(Hn)))), + ? (fn.style = (0, sn.default)({}, fn.style, _n)) + : typeof _n == 'function' && + (fn = (0, sn.default)({}, fn, _n.apply(void 0, [fn].concat(Hn)))), fn ) }, @@ -139837,8 +139841,8 @@ var mainExports = {}, (En[Mn] = /^base/.test(Mn) ? yn(tn[Mn]) : Mn === 'scheme' - ? tn[Mn] + ':inverted' - : tn[Mn]), + ? tn[Mn] + ':inverted' + : tn[Mn]), En ) }, {}) @@ -139893,12 +139897,12 @@ var mainExports = {}, sn && typeof sn.ownKeys == 'function' ? sn.ownKeys : Object.getOwnPropertySymbols - ? function (Cn) { - return Object.getOwnPropertyNames(Cn).concat(Object.getOwnPropertySymbols(Cn)) - } - : function (Cn) { - return Object.getOwnPropertyNames(Cn) - } + ? function (Cn) { + return Object.getOwnPropertyNames(Cn).concat(Object.getOwnPropertySymbols(Cn)) + } + : function (Cn) { + return Object.getOwnPropertyNames(Cn) + } var In = Number.isNaN || function (Cn) { @@ -139952,8 +139956,8 @@ var mainExports = {}, (typeof En == 'function' ? (En = tn[Tn] = Sn ? [Gn, En] : [En, Gn]) : Sn - ? En.unshift(Gn) - : En.push(Gn), + ? En.unshift(Gn) + : En.push(Gn), (Zn = an(Cn)) > 0 && En.length > Zn && !En.warned) ) { En.warned = !0 @@ -139995,16 +139999,16 @@ var mainExports = {}, return Zn === void 0 ? [] : typeof Zn == 'function' - ? Gn - ? [Zn.listener || Zn] - : [Zn] - : Gn - ? (function (tn) { - for (var En = new Array(tn.length), Mn = 0; Mn < En.length; ++Mn) - En[Mn] = tn[Mn].listener || tn[Mn] - return En - })(Zn) - : yn(Zn, Zn.length) + ? Gn + ? [Zn.listener || Zn] + : [Zn] + : Gn + ? (function (tn) { + for (var En = new Array(tn.length), Mn = 0; Mn < En.length; ++Mn) + En[Mn] = tn[Mn].listener || tn[Mn] + return En + })(Zn) + : yn(Zn, Zn.length) } function ln(Cn) { var Tn = this._events @@ -140196,8 +140200,8 @@ var mainExports = {}, Jn !== sn.default.prototype ? 'symbol' : Jn === void 0 - ? 'undefined' - : gn(Jn) + ? 'undefined' + : gn(Jn) } }, function (b, $, en) { @@ -140221,16 +140225,16 @@ var mainExports = {}, ? '' : void 0 : (qn = an.charCodeAt(xn)) < 55296 || - qn > 56319 || - xn + 1 === mn || - (Kn = an.charCodeAt(xn + 1)) < 56320 || - Kn > 57343 - ? gn - ? an.charAt(xn) - : qn - : gn - ? an.slice(xn, xn + 2) - : Kn - 56320 + ((qn - 55296) << 10) + 65536 + qn > 56319 || + xn + 1 === mn || + (Kn = an.charCodeAt(xn + 1)) < 56320 || + Kn > 57343 + ? gn + ? an.charAt(xn) + : qn + : gn + ? an.slice(xn, xn + 2) + : Kn - 56320 + ((qn - 55296) << 10) + 65536 } } }, @@ -140337,10 +140341,10 @@ var mainExports = {}, nn(Jn, gn) ? Jn[gn] : typeof Jn.constructor == 'function' && Jn instanceof Jn.constructor - ? Jn.constructor.prototype - : Jn instanceof Object - ? In - : null + ? Jn.constructor.prototype + : Jn instanceof Object + ? In + : null ) } }, @@ -141197,26 +141201,26 @@ var mainExports = {}, } })(cr, ir, eo) : (ir != 32 && ir != 33) || Mr.length - ? Uo.apply(void 0, Pn) - : (function (dt, Ir, Lt, ur) { - var ho = 1 & Ir, - xo = mr(dt) - return function yo() { - for ( - var ga = -1, - Zo = arguments.length, - _o = -1, - zo = ur.length, - $a = Array(zo + Zo), - No = this && this !== Cn && this instanceof yo ? xo : dt; - ++_o < zo; + ? Uo.apply(void 0, Pn) + : (function (dt, Ir, Lt, ur) { + var ho = 1 & Ir, + xo = mr(dt) + return function yo() { + for ( + var ga = -1, + Zo = arguments.length, + _o = -1, + zo = ur.length, + $a = Array(zo + Zo), + No = this && this !== Cn && this instanceof yo ? xo : dt; + ++_o < zo; - ) - $a[_o] = ur[_o] - for (; Zo--; ) $a[_o++] = arguments[++ga] - return Tn(No, ho ? Lt : this, $a) - } - })(cr, ir, vn, gr) + ) + $a[_o] = ur[_o] + for (; Zo--; ) $a[_o++] = arguments[++ga] + return Tn(No, ho ? Lt : this, $a) + } + })(cr, ir, vn, gr) else var Xn = (function (dt, Ir, Lt) { var ur = 1 & Ir, @@ -141352,11 +141356,11 @@ var mainExports = {}, 1 / 0 || cr === -1 / 0 ? 17976931348623157e292 * (cr < 0 ? -1 : 1) : cr == cr + ? cr + : 0 + : cr === 0 ? cr : 0 - : cr === 0 - ? cr - : 0 } function $r(cr) { var ir = Fr(cr), @@ -142442,10 +142446,10 @@ var mainExports = {}, 6 * gn < 1 ? nn + 6 * (sn - nn) * gn : 2 * gn < 1 - ? sn - : 3 * gn < 2 - ? nn + (sn - nn) * (2 / 3 - gn) * 6 - : nn), + ? sn + : 3 * gn < 2 + ? nn + (sn - nn) * (2 / 3 - gn) * 6 + : nn), (In[xn] = 255 * Jn) return In } @@ -142733,10 +142737,10 @@ var mainExports = {}, nn(Kt, $t, Mt[$t]) }) : Object.getOwnPropertyDescriptors - ? Object.defineProperties(Kt, Object.getOwnPropertyDescriptors(Mt)) - : sn(Object(Mt)).forEach(function ($t) { - Object.defineProperty(Kt, $t, Object.getOwnPropertyDescriptor(Mt, $t)) - }) + ? Object.defineProperties(Kt, Object.getOwnPropertyDescriptors(Mt)) + : sn(Object(Mt)).forEach(function ($t) { + Object.defineProperty(Kt, $t, Object.getOwnPropertyDescriptor(Mt, $t)) + }) } return Kt } @@ -143540,8 +143544,8 @@ https://fb.me/react-async-component-lifecycle-hooks`, Mt === 'Map' || Mt === 'Set' ? Array.from(Kt) : Mt === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Mt) - ? An(Kt, Vt) - : void 0 + ? An(Kt, Vt) + : void 0 ) } } @@ -143693,8 +143697,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ? Wr.splice(Jr, 1) : delete Wr[Jr] : Jr !== null - ? (Wr[Jr] = Po) - : (vr = Po), + ? (Wr[Jr] = Po) + : (vr = Po), $t.set(Sr, 'global', 'src', vr), vr ) @@ -146476,10 +146480,10 @@ function App() { $.isLoading ? jsx(SyncLoader, { color: '#36d7b7' }) : $.error - ? 'error ❌' - : $.data - ? jsx(ReactJson, { src: $.data }) - : void 0, + ? 'error ❌' + : $.data + ? jsx(ReactJson, { src: $.data }) + : void 0, ], }), jsxs('div', { @@ -146489,10 +146493,10 @@ function App() { en.isLoading ? jsx(SyncLoader, { color: '#36d7b7' }) : en.error - ? 'error ❌' - : en.data - ? jsx(ReactJson, { src: en.data }) - : void 0, + ? 'error ❌' + : en.data + ? jsx(ReactJson, { src: en.data }) + : void 0, ], }), ], diff --git a/scripts/types/generated/mars-account-nft/MarsAccountNft.client.ts b/scripts/types/generated/mars-account-nft/MarsAccountNft.client.ts index e426677e..0f54b3e2 100644 --- a/scripts/types/generated/mars-account-nft/MarsAccountNft.client.ts +++ b/scripts/types/generated/mars-account-nft/MarsAccountNft.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -106,7 +106,6 @@ export interface MarsAccountNftReadOnlyInterface { export class MarsAccountNftQueryClient implements MarsAccountNftReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -125,7 +124,6 @@ export class MarsAccountNftQueryClient implements MarsAccountNftReadOnlyInterfac this.minter = this.minter.bind(this) this.ownership = this.ownership.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -403,7 +401,6 @@ export class MarsAccountNftClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -421,7 +418,6 @@ export class MarsAccountNftClient this.revokeAll = this.revokeAll.bind(this) this.updateOwnership = this.updateOwnership.bind(this) } - updateConfig = async ( { updates, diff --git a/scripts/types/generated/mars-account-nft/MarsAccountNft.react-query.ts b/scripts/types/generated/mars-account-nft/MarsAccountNft.react-query.ts index 385e0aaf..577ddee2 100644 --- a/scripts/types/generated/mars-account-nft/MarsAccountNft.react-query.ts +++ b/scripts/types/generated/mars-account-nft/MarsAccountNft.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -45,48 +45,123 @@ export const marsAccountNftQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsAccountNftQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsAccountNftQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, nextId: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'next_id', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'next_id', + args, + }, + ] as const, ownerOf: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'owner_of', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'owner_of', + args, + }, + ] as const, approval: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'approval', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'approval', + args, + }, + ] as const, approvals: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'approvals', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'approvals', + args, + }, ] as const, allOperators: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'all_operators', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'all_operators', + args, + }, ] as const, numTokens: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'num_tokens', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'num_tokens', + args, + }, ] as const, contractInfo: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'contract_info', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'contract_info', + args, + }, ] as const, nftInfo: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'nft_info', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'nft_info', + args, + }, + ] as const, allNftInfo: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'all_nft_info', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'all_nft_info', + args, + }, ] as const, tokens: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'tokens', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'tokens', + args, + }, + ] as const, allTokens: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'all_tokens', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'all_tokens', + args, + }, ] as const, minter: (contractAddress: string | undefined, args?: Record) => - [{ ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'minter', args }] as const, + [ + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'minter', + args, + }, + ] as const, ownership: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAccountNftQueryKeys.address(contractAddress)[0], method: 'ownership', args }, + { + ...marsAccountNftQueryKeys.address(contractAddress)[0], + method: 'ownership', + args, + }, ] as const, } export interface MarsAccountNftReactQuery { @@ -107,7 +182,10 @@ export function useMarsAccountNftOwnershipQuery({ return useQuery( marsAccountNftQueryKeys.ownership(client?.contractAddress), () => (client ? client.ownership() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftMinterQuery @@ -119,7 +197,10 @@ export function useMarsAccountNftMinterQuery({ return useQuery( marsAccountNftQueryKeys.minter(client?.contractAddress), () => (client ? client.minter() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftAllTokensQuery @@ -143,7 +224,10 @@ export function useMarsAccountNftAllTokensQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftTokensQuery @@ -169,7 +253,10 @@ export function useMarsAccountNftTokensQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftAllNftInfoQuery @@ -193,7 +280,10 @@ export function useMarsAccountNftAllNftInfoQuery @@ -215,7 +305,10 @@ export function useMarsAccountNftNftInfoQuery({ tokenId: args.tokenId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftContractInfoQuery @@ -227,7 +320,10 @@ export function useMarsAccountNftContractInfoQuery return useQuery( marsAccountNftQueryKeys.contractInfo(client?.contractAddress), () => (client ? client.contractInfo() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftNumTokensQuery @@ -239,7 +335,10 @@ export function useMarsAccountNftNumTokensQuery({ return useQuery( marsAccountNftQueryKeys.numTokens(client?.contractAddress), () => (client ? client.numTokens() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftAllOperatorsQuery @@ -267,7 +366,10 @@ export function useMarsAccountNftAllOperatorsQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftApprovalsQuery @@ -291,7 +393,10 @@ export function useMarsAccountNftApprovalsQuery({ tokenId: args.tokenId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftApprovalQuery @@ -317,7 +422,10 @@ export function useMarsAccountNftApprovalQuery({ tokenId: args.tokenId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftOwnerOfQuery @@ -341,7 +449,10 @@ export function useMarsAccountNftOwnerOfQuery({ tokenId: args.tokenId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftNextIdQuery extends MarsAccountNftReactQuery {} @@ -352,7 +463,10 @@ export function useMarsAccountNftNextIdQuery({ return useQuery( marsAccountNftQueryKeys.nextId(client?.contractAddress), () => (client ? client.nextId() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftConfigQuery @@ -364,7 +478,10 @@ export function useMarsAccountNftConfigQuery({ return useQuery( marsAccountNftQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAccountNftUpdateOwnershipMutation { diff --git a/scripts/types/generated/mars-account-nft/MarsAccountNft.types.ts b/scripts/types/generated/mars-account-nft/MarsAccountNft.types.ts index af857dcc..775b714d 100644 --- a/scripts/types/generated/mars-account-nft/MarsAccountNft.types.ts +++ b/scripts/types/generated/mars-account-nft/MarsAccountNft.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-account-nft/bundle.ts b/scripts/types/generated/mars-account-nft/bundle.ts index c7a0026c..8d86beba 100644 --- a/scripts/types/generated/mars-account-nft/bundle.ts +++ b/scripts/types/generated/mars-account-nft/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _0 from './MarsAccountNft.types' import * as _1 from './MarsAccountNft.client' import * as _2 from './MarsAccountNft.react-query' export namespace contracts { - export const MarsAccountNft = { ..._0, ..._1, ..._2 } + export const MarsAccountNft = { + ..._0, + ..._1, + ..._2, + } } diff --git a/scripts/types/generated/mars-address-provider/MarsAddressProvider.client.ts b/scripts/types/generated/mars-address-provider/MarsAddressProvider.client.ts index 97b9cab8..5e3193c4 100644 --- a/scripts/types/generated/mars-address-provider/MarsAddressProvider.client.ts +++ b/scripts/types/generated/mars-address-provider/MarsAddressProvider.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -33,7 +33,6 @@ export interface MarsAddressProviderReadOnlyInterface { export class MarsAddressProviderQueryClient implements MarsAddressProviderReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -42,7 +41,6 @@ export class MarsAddressProviderQueryClient implements MarsAddressProviderReadOn this.addresses = this.addresses.bind(this) this.allAddresses = this.allAddresses.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -102,7 +100,6 @@ export class MarsAddressProviderClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -111,7 +108,6 @@ export class MarsAddressProviderClient this.setAddress = this.setAddress.bind(this) this.updateOwner = this.updateOwner.bind(this) } - setAddress = async ( { address, diff --git a/scripts/types/generated/mars-address-provider/MarsAddressProvider.react-query.ts b/scripts/types/generated/mars-address-provider/MarsAddressProvider.react-query.ts index 67df3695..ba90f4c3 100644 --- a/scripts/types/generated/mars-address-provider/MarsAddressProvider.react-query.ts +++ b/scripts/types/generated/mars-address-provider/MarsAddressProvider.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -29,18 +29,35 @@ export const marsAddressProviderQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsAddressProviderQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsAddressProviderQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAddressProviderQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsAddressProviderQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, address: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAddressProviderQueryKeys.address(contractAddress)[0], method: 'address', args }, + { + ...marsAddressProviderQueryKeys.address(contractAddress)[0], + method: 'address', + args, + }, ] as const, addresses: (contractAddress: string | undefined, args?: Record) => [ - { ...marsAddressProviderQueryKeys.address(contractAddress)[0], method: 'addresses', args }, + { + ...marsAddressProviderQueryKeys.address(contractAddress)[0], + method: 'addresses', + args, + }, ] as const, allAddresses: (contractAddress: string | undefined, args?: Record) => [ @@ -81,7 +98,10 @@ export function useMarsAddressProviderAllAddressesQuery @@ -93,7 +113,10 @@ export function useMarsAddressProviderAddressesQuery( marsAddressProviderQueryKeys.addresses(client?.contractAddress), () => (client ? client.addresses() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAddressProviderAddressQuery @@ -105,7 +128,10 @@ export function useMarsAddressProviderAddressQuery( return useQuery( marsAddressProviderQueryKeys.address(client?.contractAddress), () => (client ? client.address() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAddressProviderConfigQuery @@ -117,7 +143,10 @@ export function useMarsAddressProviderConfigQuery({ return useQuery( marsAddressProviderQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsAddressProviderUpdateOwnerMutation { diff --git a/scripts/types/generated/mars-address-provider/MarsAddressProvider.types.ts b/scripts/types/generated/mars-address-provider/MarsAddressProvider.types.ts index 87688b41..a2545bd3 100644 --- a/scripts/types/generated/mars-address-provider/MarsAddressProvider.types.ts +++ b/scripts/types/generated/mars-address-provider/MarsAddressProvider.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-address-provider/bundle.ts b/scripts/types/generated/mars-address-provider/bundle.ts index 4bcba804..65400353 100644 --- a/scripts/types/generated/mars-address-provider/bundle.ts +++ b/scripts/types/generated/mars-address-provider/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _3 from './MarsAddressProvider.types' import * as _4 from './MarsAddressProvider.client' import * as _5 from './MarsAddressProvider.react-query' export namespace contracts { - export const MarsAddressProvider = { ..._3, ..._4, ..._5 } + export const MarsAddressProvider = { + ..._3, + ..._4, + ..._5, + } } diff --git a/scripts/types/generated/mars-credit-manager/MarsCreditManager.client.ts b/scripts/types/generated/mars-credit-manager/MarsCreditManager.client.ts index 41990d1b..2e299a37 100644 --- a/scripts/types/generated/mars-credit-manager/MarsCreditManager.client.ts +++ b/scripts/types/generated/mars-credit-manager/MarsCreditManager.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -153,7 +153,6 @@ export interface MarsCreditManagerReadOnlyInterface { export class MarsCreditManagerQueryClient implements MarsCreditManagerReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -173,7 +172,6 @@ export class MarsCreditManagerQueryClient implements MarsCreditManagerReadOnlyIn this.vaultPositionValue = this.vaultPositionValue.bind(this) this.vaultBindings = this.vaultBindings.bind(this) } - accountKind = async ({ accountId }: { accountId: string }): Promise => { return this.client.queryContractSmart(this.contractAddress, { account_kind: { @@ -430,7 +428,6 @@ export class MarsCreditManagerClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -445,7 +442,6 @@ export class MarsCreditManagerClient this.updateNftConfig = this.updateNftConfig.bind(this) this.callback = this.callback.bind(this) } - createCreditAccount = async ( accountKind: AccountKind, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-credit-manager/MarsCreditManager.react-query.ts b/scripts/types/generated/mars-credit-manager/MarsCreditManager.react-query.ts index 2ddd9121..9d1ea488 100644 --- a/scripts/types/generated/mars-credit-manager/MarsCreditManager.react-query.ts +++ b/scripts/types/generated/mars-credit-manager/MarsCreditManager.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -87,18 +87,35 @@ export const marsCreditManagerQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsCreditManagerQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsCreditManagerQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, accountKind: (contractAddress: string | undefined, args?: Record) => [ - { ...marsCreditManagerQueryKeys.address(contractAddress)[0], method: 'account_kind', args }, + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'account_kind', + args, + }, ] as const, accounts: (contractAddress: string | undefined, args?: Record) => [ - { ...marsCreditManagerQueryKeys.address(contractAddress)[0], method: 'accounts', args }, + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'accounts', + args, + }, ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsCreditManagerQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, vaultUtilization: (contractAddress: string | undefined, args?: Record) => [ @@ -118,7 +135,11 @@ export const marsCreditManagerQueryKeys = { ] as const, positions: (contractAddress: string | undefined, args?: Record) => [ - { ...marsCreditManagerQueryKeys.address(contractAddress)[0], method: 'positions', args }, + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'positions', + args, + }, ] as const, allCoinBalances: (contractAddress: string | undefined, args?: Record) => [ @@ -189,7 +210,11 @@ export const marsCreditManagerQueryKeys = { ] as const, vaultBindings: (contractAddress: string | undefined, args?: Record) => [ - { ...marsCreditManagerQueryKeys.address(contractAddress)[0], method: 'vault_bindings', args }, + { + ...marsCreditManagerQueryKeys.address(contractAddress)[0], + method: 'vault_bindings', + args, + }, ] as const, } export interface MarsCreditManagerReactQuery { @@ -222,7 +247,10 @@ export function useMarsCreditManagerVaultBindingsQuery @@ -244,7 +272,10 @@ export function useMarsCreditManagerVaultPositionValueQuery @@ -266,7 +297,10 @@ export function useMarsCreditManagerEstimateWithdrawLiquidityQuery @@ -290,7 +324,10 @@ export function useMarsCreditManagerEstimateProvideLiquidityQuery @@ -312,7 +349,10 @@ export function useMarsCreditManagerAllVaultPositionsQuery< startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAllTotalDebtSharesQuery @@ -336,7 +376,10 @@ export function useMarsCreditManagerAllTotalDebtSharesQuery @@ -348,7 +391,10 @@ export function useMarsCreditManagerTotalDebtSharesQuery({ return useQuery( marsCreditManagerQueryKeys.totalDebtShares(client?.contractAddress), () => (client ? client.totalDebtShares() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAllDebtSharesQuery @@ -372,7 +418,10 @@ export function useMarsCreditManagerAllDebtSharesQuery @@ -396,7 +445,10 @@ export function useMarsCreditManagerAllCoinBalancesQuery @@ -418,7 +470,10 @@ export function useMarsCreditManagerPositionsQuery({ accountId: args.accountId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAllVaultUtilizationsQuery @@ -440,7 +495,10 @@ export function useMarsCreditManagerAllVaultUtilizationsQuery< startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerVaultUtilizationQuery @@ -462,7 +520,10 @@ export function useMarsCreditManagerVaultUtilizationQuery @@ -474,7 +535,10 @@ export function useMarsCreditManagerConfigQuery({ return useQuery( marsCreditManagerQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAccountsQuery @@ -500,7 +564,10 @@ export function useMarsCreditManagerAccountsQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerAccountKindQuery @@ -522,7 +589,10 @@ export function useMarsCreditManagerAccountKindQuery({ accountId: args.accountId, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsCreditManagerCallbackMutation { diff --git a/scripts/types/generated/mars-credit-manager/MarsCreditManager.types.ts b/scripts/types/generated/mars-credit-manager/MarsCreditManager.types.ts index f82b39d5..07ac81bd 100644 --- a/scripts/types/generated/mars-credit-manager/MarsCreditManager.types.ts +++ b/scripts/types/generated/mars-credit-manager/MarsCreditManager.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-credit-manager/bundle.ts b/scripts/types/generated/mars-credit-manager/bundle.ts index 5d5cd8bd..1e6f6811 100644 --- a/scripts/types/generated/mars-credit-manager/bundle.ts +++ b/scripts/types/generated/mars-credit-manager/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _6 from './MarsCreditManager.types' import * as _7 from './MarsCreditManager.client' import * as _8 from './MarsCreditManager.react-query' export namespace contracts { - export const MarsCreditManager = { ..._6, ..._7, ..._8 } + export const MarsCreditManager = { + ..._6, + ..._7, + ..._8, + } } diff --git a/scripts/types/generated/mars-incentives/MarsIncentives.client.ts b/scripts/types/generated/mars-incentives/MarsIncentives.client.ts index 45c8c554..d5b01536 100644 --- a/scripts/types/generated/mars-incentives/MarsIncentives.client.ts +++ b/scripts/types/generated/mars-incentives/MarsIncentives.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -111,7 +111,6 @@ export interface MarsIncentivesReadOnlyInterface { export class MarsIncentivesQueryClient implements MarsIncentivesReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -126,7 +125,6 @@ export class MarsIncentivesQueryClient implements MarsIncentivesReadOnlyInterfac this.userUnclaimedRewards = this.userUnclaimedRewards.bind(this) this.whitelist = this.whitelist.bind(this) } - activeEmissions = async ({ collateralDenom, }: { @@ -406,7 +404,6 @@ export class MarsIncentivesClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -423,7 +420,6 @@ export class MarsIncentivesClient this.updateOwner = this.updateOwner.bind(this) this.migrate = this.migrate.bind(this) } - updateWhitelist = async ( { addDenoms, diff --git a/scripts/types/generated/mars-incentives/MarsIncentives.react-query.ts b/scripts/types/generated/mars-incentives/MarsIncentives.react-query.ts index a512c6ea..61315422 100644 --- a/scripts/types/generated/mars-incentives/MarsIncentives.react-query.ts +++ b/scripts/types/generated/mars-incentives/MarsIncentives.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -42,20 +42,43 @@ export const marsIncentivesQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsIncentivesQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsIncentivesQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, activeEmissions: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'active_emissions', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'active_emissions', + args, + }, ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, incentiveState: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'incentive_state', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'incentive_state', + args, + }, ] as const, incentiveStates: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'incentive_states', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'incentive_states', + args, + }, ] as const, stakedLpPositions: (contractAddress: string | undefined, args?: Record) => [ @@ -74,10 +97,20 @@ export const marsIncentivesQueryKeys = { }, ] as const, emission: (contractAddress: string | undefined, args?: Record) => - [{ ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'emission', args }] as const, + [ + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'emission', + args, + }, + ] as const, emissions: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'emissions', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'emissions', + args, + }, ] as const, userUnclaimedRewards: (contractAddress: string | undefined, args?: Record) => [ @@ -89,7 +122,11 @@ export const marsIncentivesQueryKeys = { ] as const, whitelist: (contractAddress: string | undefined, args?: Record) => [ - { ...marsIncentivesQueryKeys.address(contractAddress)[0], method: 'whitelist', args }, + { + ...marsIncentivesQueryKeys.address(contractAddress)[0], + method: 'whitelist', + args, + }, ] as const, } export interface MarsIncentivesReactQuery { @@ -110,7 +147,10 @@ export function useMarsIncentivesWhitelistQuery({ return useQuery( marsIncentivesQueryKeys.whitelist(client?.contractAddress), () => (client ? client.whitelist() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesUserUnclaimedRewardsQuery @@ -140,7 +180,10 @@ export function useMarsIncentivesUserUnclaimedRewardsQuery( user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesEmissionsQuery @@ -168,7 +211,10 @@ export function useMarsIncentivesEmissionsQuery startAfterTimestamp: args.startAfterTimestamp, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesEmissionQuery @@ -194,7 +240,10 @@ export function useMarsIncentivesEmissionQuery({ timestamp: args.timestamp, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesStakedLpPositionQuery @@ -218,7 +267,10 @@ export function useMarsIncentivesStakedLpPositionQuery @@ -242,7 +294,10 @@ export function useMarsIncentivesStakedLpPositionsQuery< startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesIncentiveStatesQuery @@ -268,7 +323,10 @@ export function useMarsIncentivesIncentiveStatesQuery @@ -292,7 +350,10 @@ export function useMarsIncentivesIncentiveStateQuery @@ -304,7 +365,10 @@ export function useMarsIncentivesConfigQuery({ return useQuery( marsIncentivesQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsIncentivesActiveEmissionsQuery @@ -326,7 +390,10 @@ export function useMarsIncentivesActiveEmissionsQuery => { return this.client.queryContractSmart(this.contractAddress, { vault_standard_info: {}, @@ -148,7 +146,6 @@ export class MarsMockVaultClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -158,7 +155,6 @@ export class MarsMockVaultClient this.redeem = this.redeem.bind(this) this.vaultExtension = this.vaultExtension.bind(this) } - deposit = async ( { amount, diff --git a/scripts/types/generated/mars-mock-vault/MarsMockVault.react-query.ts b/scripts/types/generated/mars-mock-vault/MarsMockVault.react-query.ts index c718b679..0f7588c4 100644 --- a/scripts/types/generated/mars-mock-vault/MarsMockVault.react-query.ts +++ b/scripts/types/generated/mars-mock-vault/MarsMockVault.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -32,7 +32,12 @@ export const marsMockVaultQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsMockVaultQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsMockVaultQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, vaultStandardInfo: (contractAddress: string | undefined, args?: Record) => [ { @@ -42,18 +47,36 @@ export const marsMockVaultQueryKeys = { }, ] as const, info: (contractAddress: string | undefined, args?: Record) => - [{ ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'info', args }] as const, + [ + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'info', + args, + }, + ] as const, previewDeposit: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'preview_deposit', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'preview_deposit', + args, + }, ] as const, previewRedeem: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'preview_redeem', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'preview_redeem', + args, + }, ] as const, totalAssets: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'total_assets', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'total_assets', + args, + }, ] as const, totalVaultTokenSupply: (contractAddress: string | undefined, args?: Record) => [ @@ -65,15 +88,27 @@ export const marsMockVaultQueryKeys = { ] as const, convertToShares: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'convert_to_shares', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'convert_to_shares', + args, + }, ] as const, convertToAssets: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'convert_to_assets', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'convert_to_assets', + args, + }, ] as const, vaultExtension: (contractAddress: string | undefined, args?: Record) => [ - { ...marsMockVaultQueryKeys.address(contractAddress)[0], method: 'vault_extension', args }, + { + ...marsMockVaultQueryKeys.address(contractAddress)[0], + method: 'vault_extension', + args, + }, ] as const, } export interface MarsMockVaultReactQuery { @@ -94,7 +129,10 @@ export function useMarsMockVaultVaultExtensionQuery({ return useQuery( marsMockVaultQueryKeys.vaultExtension(client?.contractAddress), () => (client ? client.vaultExtension() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultConvertToAssetsQuery @@ -116,7 +154,10 @@ export function useMarsMockVaultConvertToAssetsQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultConvertToSharesQuery @@ -138,7 +179,10 @@ export function useMarsMockVaultConvertToSharesQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultTotalVaultTokenSupplyQuery @@ -150,7 +194,10 @@ export function useMarsMockVaultTotalVaultTokenSupplyQuery({ return useQuery( marsMockVaultQueryKeys.totalVaultTokenSupply(client?.contractAddress), () => (client ? client.totalVaultTokenSupply() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultTotalAssetsQuery @@ -162,7 +209,10 @@ export function useMarsMockVaultTotalAssetsQuery({ return useQuery( marsMockVaultQueryKeys.totalAssets(client?.contractAddress), () => (client ? client.totalAssets() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultPreviewRedeemQuery @@ -184,7 +234,10 @@ export function useMarsMockVaultPreviewRedeemQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultPreviewDepositQuery @@ -206,7 +259,10 @@ export function useMarsMockVaultPreviewDepositQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultInfoQuery @@ -218,7 +274,10 @@ export function useMarsMockVaultInfoQuery({ return useQuery( marsMockVaultQueryKeys.info(client?.contractAddress), () => (client ? client.info() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultVaultStandardInfoQuery @@ -230,7 +289,10 @@ export function useMarsMockVaultVaultStandardInfoQuery( marsMockVaultQueryKeys.vaultStandardInfo(client?.contractAddress), () => (client ? client.vaultStandardInfo() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsMockVaultVaultExtensionMutation { diff --git a/scripts/types/generated/mars-mock-vault/MarsMockVault.types.ts b/scripts/types/generated/mars-mock-vault/MarsMockVault.types.ts index 9db4ece1..ae9bab1e 100644 --- a/scripts/types/generated/mars-mock-vault/MarsMockVault.types.ts +++ b/scripts/types/generated/mars-mock-vault/MarsMockVault.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-mock-vault/bundle.ts b/scripts/types/generated/mars-mock-vault/bundle.ts index 02170260..a3e22b9e 100644 --- a/scripts/types/generated/mars-mock-vault/bundle.ts +++ b/scripts/types/generated/mars-mock-vault/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _12 from './MarsMockVault.types' import * as _13 from './MarsMockVault.client' import * as _14 from './MarsMockVault.react-query' export namespace contracts { - export const MarsMockVault = { ..._12, ..._13, ..._14 } + export const MarsMockVault = { + ..._12, + ..._13, + ..._14, + } } diff --git a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.client.ts b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.client.ts index 1cb05610..6e1aa645 100644 --- a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.client.ts +++ b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -53,7 +53,6 @@ export interface MarsOracleOsmosisReadOnlyInterface { export class MarsOracleOsmosisQueryClient implements MarsOracleOsmosisReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -63,7 +62,6 @@ export class MarsOracleOsmosisQueryClient implements MarsOracleOsmosisReadOnlyIn this.price = this.price.bind(this) this.prices = this.prices.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -166,7 +164,6 @@ export class MarsOracleOsmosisClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -178,7 +175,6 @@ export class MarsOracleOsmosisClient this.updateConfig = this.updateConfig.bind(this) this.custom = this.custom.bind(this) } - setPriceSource = async ( { denom, diff --git a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.react-query.ts b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.react-query.ts index 10b6cc76..31bb3814 100644 --- a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.react-query.ts +++ b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -37,24 +37,51 @@ export const marsOracleOsmosisQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsOracleOsmosisQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsOracleOsmosisQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, priceSource: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'price_source', args }, + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'price_source', + args, + }, ] as const, priceSources: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'price_sources', args }, + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'price_sources', + args, + }, ] as const, price: (contractAddress: string | undefined, args?: Record) => - [{ ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'price', args }] as const, + [ + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'price', + args, + }, + ] as const, prices: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], method: 'prices', args }, + { + ...marsOracleOsmosisQueryKeys.address(contractAddress)[0], + method: 'prices', + args, + }, ] as const, } export interface MarsOracleOsmosisReactQuery { @@ -89,7 +116,10 @@ export function useMarsOracleOsmosisPricesQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleOsmosisPriceQuery @@ -113,7 +143,10 @@ export function useMarsOracleOsmosisPriceQuery({ kind: args.kind, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleOsmosisPriceSourcesQuery @@ -137,7 +170,10 @@ export function useMarsOracleOsmosisPriceSourcesQuery @@ -159,7 +195,10 @@ export function useMarsOracleOsmosisPriceSourceQuery @@ -171,7 +210,10 @@ export function useMarsOracleOsmosisConfigQuery({ return useQuery( marsOracleOsmosisQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleOsmosisCustomMutation { diff --git a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.types.ts b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.types.ts index 14650c33..c2c4a573 100644 --- a/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.types.ts +++ b/scripts/types/generated/mars-oracle-osmosis/MarsOracleOsmosis.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-oracle-osmosis/bundle.ts b/scripts/types/generated/mars-oracle-osmosis/bundle.ts index 9428a689..fecefc5f 100644 --- a/scripts/types/generated/mars-oracle-osmosis/bundle.ts +++ b/scripts/types/generated/mars-oracle-osmosis/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _15 from './MarsOracleOsmosis.types' import * as _16 from './MarsOracleOsmosis.client' import * as _17 from './MarsOracleOsmosis.react-query' export namespace contracts { - export const MarsOracleOsmosis = { ..._15, ..._16, ..._17 } + export const MarsOracleOsmosis = { + ..._15, + ..._16, + ..._17, + } } diff --git a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.client.ts b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.client.ts index cda2b0a7..2f9abfdd 100644 --- a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.client.ts +++ b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -51,7 +51,6 @@ export interface MarsOracleWasmReadOnlyInterface { export class MarsOracleWasmQueryClient implements MarsOracleWasmReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -61,7 +60,6 @@ export class MarsOracleWasmQueryClient implements MarsOracleWasmReadOnlyInterfac this.price = this.price.bind(this) this.prices = this.prices.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -169,7 +167,6 @@ export class MarsOracleWasmClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -181,7 +178,6 @@ export class MarsOracleWasmClient this.updateConfig = this.updateConfig.bind(this) this.custom = this.custom.bind(this) } - setPriceSource = async ( { denom, diff --git a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.react-query.ts b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.react-query.ts index 1d2c23cf..1b5becd2 100644 --- a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.react-query.ts +++ b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -35,21 +35,52 @@ export const marsOracleWasmQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsOracleWasmQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsOracleWasmQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, priceSource: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'price_source', args }, + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'price_source', + args, + }, ] as const, priceSources: (contractAddress: string | undefined, args?: Record) => [ - { ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'price_sources', args }, + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'price_sources', + args, + }, ] as const, price: (contractAddress: string | undefined, args?: Record) => - [{ ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'price', args }] as const, + [ + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'price', + args, + }, + ] as const, prices: (contractAddress: string | undefined, args?: Record) => - [{ ...marsOracleWasmQueryKeys.address(contractAddress)[0], method: 'prices', args }] as const, + [ + { + ...marsOracleWasmQueryKeys.address(contractAddress)[0], + method: 'prices', + args, + }, + ] as const, } export interface MarsOracleWasmReactQuery { client: MarsOracleWasmQueryClient | undefined @@ -83,7 +114,10 @@ export function useMarsOracleWasmPricesQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleWasmPriceQuery @@ -107,7 +141,10 @@ export function useMarsOracleWasmPriceQuery({ kind: args.kind, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleWasmPriceSourcesQuery @@ -131,7 +168,10 @@ export function useMarsOracleWasmPriceSourcesQuery @@ -153,7 +193,10 @@ export function useMarsOracleWasmPriceSourceQuery @@ -165,7 +208,10 @@ export function useMarsOracleWasmConfigQuery({ return useQuery( marsOracleWasmQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsOracleWasmCustomMutation { diff --git a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.types.ts b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.types.ts index 9250d189..fb643cb5 100644 --- a/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.types.ts +++ b/scripts/types/generated/mars-oracle-wasm/MarsOracleWasm.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-oracle-wasm/bundle.ts b/scripts/types/generated/mars-oracle-wasm/bundle.ts index 96d688af..8555a023 100644 --- a/scripts/types/generated/mars-oracle-wasm/bundle.ts +++ b/scripts/types/generated/mars-oracle-wasm/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _18 from './MarsOracleWasm.types' import * as _19 from './MarsOracleWasm.client' import * as _20 from './MarsOracleWasm.react-query' export namespace contracts { - export const MarsOracleWasm = { ..._18, ..._19, ..._20 } + export const MarsOracleWasm = { + ..._18, + ..._19, + ..._20, + } } diff --git a/scripts/types/generated/mars-params/MarsParams.client.ts b/scripts/types/generated/mars-params/MarsParams.client.ts index 6b320bd9..40e7ea01 100644 --- a/scripts/types/generated/mars-params/MarsParams.client.ts +++ b/scripts/types/generated/mars-params/MarsParams.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -83,7 +83,6 @@ export interface MarsParamsReadOnlyInterface { export class MarsParamsQueryClient implements MarsParamsReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -98,7 +97,6 @@ export class MarsParamsQueryClient implements MarsParamsReadOnlyInterface { this.totalDeposit = this.totalDeposit.bind(this) this.allTotalDepositsV2 = this.allTotalDepositsV2.bind(this) } - owner = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { owner: {}, @@ -239,7 +237,6 @@ export class MarsParamsClient extends MarsParamsQueryClient implements MarsParam client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -252,7 +249,6 @@ export class MarsParamsClient extends MarsParamsQueryClient implements MarsParam this.updateVaultConfig = this.updateVaultConfig.bind(this) this.emergencyUpdate = this.emergencyUpdate.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-params/MarsParams.react-query.ts b/scripts/types/generated/mars-params/MarsParams.react-query.ts index 1325824b..f39396e4 100644 --- a/scripts/types/generated/mars-params/MarsParams.react-query.ts +++ b/scripts/types/generated/mars-params/MarsParams.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -52,38 +52,91 @@ export const marsParamsQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsParamsQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsParamsQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, owner: (contractAddress: string | undefined, args?: Record) => - [{ ...marsParamsQueryKeys.address(contractAddress)[0], method: 'owner', args }] as const, + [ + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'owner', + args, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsParamsQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, assetParams: (contractAddress: string | undefined, args?: Record) => - [{ ...marsParamsQueryKeys.address(contractAddress)[0], method: 'asset_params', args }] as const, + [ + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'asset_params', + args, + }, + ] as const, allAssetParams: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'all_asset_params', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'all_asset_params', + args, + }, ] as const, vaultConfig: (contractAddress: string | undefined, args?: Record) => - [{ ...marsParamsQueryKeys.address(contractAddress)[0], method: 'vault_config', args }] as const, + [ + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'vault_config', + args, + }, + ] as const, allVaultConfigs: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'all_vault_configs', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'all_vault_configs', + args, + }, ] as const, allVaultConfigsV2: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'all_vault_configs_v2', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'all_vault_configs_v2', + args, + }, ] as const, targetHealthFactor: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'target_health_factor', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'target_health_factor', + args, + }, ] as const, totalDeposit: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'total_deposit', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'total_deposit', + args, + }, ] as const, allTotalDepositsV2: (contractAddress: string | undefined, args?: Record) => [ - { ...marsParamsQueryKeys.address(contractAddress)[0], method: 'all_total_deposits_v2', args }, + { + ...marsParamsQueryKeys.address(contractAddress)[0], + method: 'all_total_deposits_v2', + args, + }, ] as const, } export interface MarsParamsReactQuery { @@ -114,7 +167,10 @@ export function useMarsParamsAllTotalDepositsV2Query< startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsTotalDepositQuery @@ -136,7 +192,10 @@ export function useMarsParamsTotalDepositQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsTargetHealthFactorQuery @@ -148,7 +207,10 @@ export function useMarsParamsTargetHealthFactorQuery({ return useQuery( marsParamsQueryKeys.targetHealthFactor(client?.contractAddress), () => (client ? client.targetHealthFactor() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsAllVaultConfigsV2Query @@ -170,7 +232,10 @@ export function useMarsParamsAllVaultConfigsV2Query< startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsAllVaultConfigsQuery @@ -194,7 +259,10 @@ export function useMarsParamsAllVaultConfigsQuery @@ -216,7 +284,10 @@ export function useMarsParamsVaultConfigQuery({ address: args.address, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsAllAssetParamsQuery @@ -240,7 +311,10 @@ export function useMarsParamsAllAssetParamsQuery @@ -262,7 +336,10 @@ export function useMarsParamsAssetParamsQuery extends MarsParamsReactQuery {} @@ -273,7 +350,10 @@ export function useMarsParamsConfigQuery({ return useQuery( marsParamsQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsOwnerQuery extends MarsParamsReactQuery {} @@ -284,7 +364,10 @@ export function useMarsParamsOwnerQuery({ return useQuery( marsParamsQueryKeys.owner(client?.contractAddress), () => (client ? client.owner() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsParamsEmergencyUpdateMutation { diff --git a/scripts/types/generated/mars-params/MarsParams.types.ts b/scripts/types/generated/mars-params/MarsParams.types.ts index 529ef565..c274a4f7 100644 --- a/scripts/types/generated/mars-params/MarsParams.types.ts +++ b/scripts/types/generated/mars-params/MarsParams.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-params/bundle.ts b/scripts/types/generated/mars-params/bundle.ts index 66f5f4a3..595e7ecd 100644 --- a/scripts/types/generated/mars-params/bundle.ts +++ b/scripts/types/generated/mars-params/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _21 from './MarsParams.types' import * as _22 from './MarsParams.client' import * as _23 from './MarsParams.react-query' export namespace contracts { - export const MarsParams = { ..._21, ..._22, ..._23 } + export const MarsParams = { + ..._21, + ..._22, + ..._23, + } } diff --git a/scripts/types/generated/mars-red-bank/MarsRedBank.client.ts b/scripts/types/generated/mars-red-bank/MarsRedBank.client.ts index 10300bd5..8aa61f4b 100644 --- a/scripts/types/generated/mars-red-bank/MarsRedBank.client.ts +++ b/scripts/types/generated/mars-red-bank/MarsRedBank.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -126,7 +126,6 @@ export interface MarsRedBankReadOnlyInterface { export class MarsRedBankQueryClient implements MarsRedBankReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -147,7 +146,6 @@ export class MarsRedBankQueryClient implements MarsRedBankReadOnlyInterface { this.underlyingLiquidityAmount = this.underlyingLiquidityAmount.bind(this) this.underlyingDebtAmount = this.underlyingDebtAmount.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -502,7 +500,6 @@ export class MarsRedBankClient extends MarsRedBankQueryClient implements MarsRed client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -520,7 +517,6 @@ export class MarsRedBankClient extends MarsRedBankQueryClient implements MarsRed this.updateAssetCollateralStatus = this.updateAssetCollateralStatus.bind(this) this.migrate = this.migrate.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-red-bank/MarsRedBank.react-query.ts b/scripts/types/generated/mars-red-bank/MarsRedBank.react-query.ts index ed3631f2..7f848782 100644 --- a/scripts/types/generated/mars-red-bank/MarsRedBank.react-query.ts +++ b/scripts/types/generated/mars-red-bank/MarsRedBank.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -41,36 +41,99 @@ export const marsRedBankQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsRedBankQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsRedBankQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, market: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'market', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'market', + args, + }, + ] as const, marketV2: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'market_v2', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'market_v2', + args, + }, + ] as const, markets: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'markets', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'markets', + args, + }, + ] as const, marketsV2: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'markets_v2', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'markets_v2', + args, + }, + ] as const, userDebt: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_debt', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_debt', + args, + }, + ] as const, userDebts: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_debts', args }] as const, + [ + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_debts', + args, + }, + ] as const, userCollateral: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_collateral', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_collateral', + args, + }, ] as const, userCollaterals: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_collaterals', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_collaterals', + args, + }, ] as const, userCollateralsV2: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_collaterals_v2', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_collaterals_v2', + args, + }, ] as const, userPosition: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'user_position', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'user_position', + args, + }, ] as const, userPositionLiquidationPricing: ( contractAddress: string | undefined, @@ -93,7 +156,11 @@ export const marsRedBankQueryKeys = { ] as const, scaledDebtAmount: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRedBankQueryKeys.address(contractAddress)[0], method: 'scaled_debt_amount', args }, + { + ...marsRedBankQueryKeys.address(contractAddress)[0], + method: 'scaled_debt_amount', + args, + }, ] as const, underlyingLiquidityAmount: ( contractAddress: string | undefined, @@ -145,7 +212,10 @@ export function useMarsRedBankUnderlyingDebtAmountQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUnderlyingLiquidityAmountQuery @@ -169,7 +239,10 @@ export function useMarsRedBankUnderlyingLiquidityAmountQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankScaledDebtAmountQuery @@ -193,7 +266,10 @@ export function useMarsRedBankScaledDebtAmountQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankScaledLiquidityAmountQuery @@ -217,7 +293,10 @@ export function useMarsRedBankScaledLiquidityAmountQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUserPositionLiquidationPricingQuery @@ -241,7 +320,10 @@ export function useMarsRedBankUserPositionLiquidationPricingQuery @@ -265,7 +347,10 @@ export function useMarsRedBankUserPositionQuery({ user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUserCollateralsV2Query @@ -291,7 +376,10 @@ export function useMarsRedBankUserCollateralsV2Query< user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUserCollateralsQuery @@ -319,7 +407,10 @@ export function useMarsRedBankUserCollateralsQuery @@ -345,7 +436,10 @@ export function useMarsRedBankUserCollateralQuery @@ -371,7 +465,10 @@ export function useMarsRedBankUserDebtsQuery({ user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankUserDebtQuery @@ -395,7 +492,10 @@ export function useMarsRedBankUserDebtQuery({ user: args.user, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankMarketsV2Query @@ -419,7 +519,10 @@ export function useMarsRedBankMarketsV2Query @@ -443,7 +546,10 @@ export function useMarsRedBankMarketsQuery({ startAfter: args.startAfter, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankMarketV2Query @@ -465,7 +571,10 @@ export function useMarsRedBankMarketV2Query({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankMarketQuery extends MarsRedBankReactQuery { @@ -486,7 +595,10 @@ export function useMarsRedBankMarketQuery({ denom: args.denom, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankConfigQuery @@ -498,7 +610,10 @@ export function useMarsRedBankConfigQuery({ return useQuery( marsRedBankQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRedBankMigrateMutation { diff --git a/scripts/types/generated/mars-red-bank/MarsRedBank.types.ts b/scripts/types/generated/mars-red-bank/MarsRedBank.types.ts index 31ae935e..bd54d453 100644 --- a/scripts/types/generated/mars-red-bank/MarsRedBank.types.ts +++ b/scripts/types/generated/mars-red-bank/MarsRedBank.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-red-bank/bundle.ts b/scripts/types/generated/mars-red-bank/bundle.ts index 6eed8763..706a30f9 100644 --- a/scripts/types/generated/mars-red-bank/bundle.ts +++ b/scripts/types/generated/mars-red-bank/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _24 from './MarsRedBank.types' import * as _25 from './MarsRedBank.client' import * as _26 from './MarsRedBank.react-query' export namespace contracts { - export const MarsRedBank = { ..._24, ..._25, ..._26 } + export const MarsRedBank = { + ..._24, + ..._25, + ..._26, + } } diff --git a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.client.ts b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.client.ts index 2d05d8c9..0c4d5c3f 100644 --- a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.client.ts +++ b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -39,13 +39,11 @@ export class MarsRewardsCollectorBaseQueryClient { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress this.config = this.config.bind(this) } - config = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { config: {}, @@ -146,7 +144,6 @@ export class MarsRewardsCollectorBaseClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -160,7 +157,6 @@ export class MarsRewardsCollectorBaseClient this.swapAsset = this.swapAsset.bind(this) this.claimIncentiveRewards = this.claimIncentiveRewards.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.react-query.ts b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.react-query.ts index de5be0cf..08e66795 100644 --- a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.react-query.ts +++ b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -42,10 +42,19 @@ export const marsRewardsCollectorBaseQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsRewardsCollectorBaseQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsRewardsCollectorBaseQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRewardsCollectorBaseQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsRewardsCollectorBaseQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, } export interface MarsRewardsCollectorBaseReactQuery { @@ -66,7 +75,10 @@ export function useMarsRewardsCollectorBaseConfigQuery({ return useQuery( marsRewardsCollectorBaseQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRewardsCollectorBaseClaimIncentiveRewardsMutation { diff --git a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.types.ts b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.types.ts index 19494ede..eddc861d 100644 --- a/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.types.ts +++ b/scripts/types/generated/mars-rewards-collector-base/MarsRewardsCollectorBase.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-rewards-collector-base/bundle.ts b/scripts/types/generated/mars-rewards-collector-base/bundle.ts index cb483255..dea007b4 100644 --- a/scripts/types/generated/mars-rewards-collector-base/bundle.ts +++ b/scripts/types/generated/mars-rewards-collector-base/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _27 from './MarsRewardsCollectorBase.types' import * as _28 from './MarsRewardsCollectorBase.client' import * as _29 from './MarsRewardsCollectorBase.react-query' export namespace contracts { - export const MarsRewardsCollectorBase = { ..._27, ..._28, ..._29 } + export const MarsRewardsCollectorBase = { + ..._27, + ..._28, + ..._29, + } } diff --git a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.client.ts b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.client.ts index 7489b612..d7a0ed68 100644 --- a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.client.ts +++ b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.react-query.ts b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.react-query.ts index b89502a5..dea04321 100644 --- a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.react-query.ts +++ b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.types.ts b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.types.ts index e416a7b5..cd1c1ba5 100644 --- a/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.types.ts +++ b/scripts/types/generated/mars-rover-health-computer/MarsRoverHealthComputer.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-rover-health-computer/bundle.ts b/scripts/types/generated/mars-rover-health-computer/bundle.ts index 27b5d1eb..9bf5785e 100644 --- a/scripts/types/generated/mars-rover-health-computer/bundle.ts +++ b/scripts/types/generated/mars-rover-health-computer/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _33 from './MarsRoverHealthComputer.types' import * as _34 from './MarsRoverHealthComputer.client' import * as _35 from './MarsRoverHealthComputer.react-query' export namespace contracts { - export const MarsRoverHealthComputer = { ..._33, ..._34, ..._35 } + export const MarsRoverHealthComputer = { + ..._33, + ..._34, + ..._35, + } } diff --git a/scripts/types/generated/mars-rover-health/MarsRoverHealth.client.ts b/scripts/types/generated/mars-rover-health/MarsRoverHealth.client.ts index 8b863418..1568d5df 100644 --- a/scripts/types/generated/mars-rover-health/MarsRoverHealth.client.ts +++ b/scripts/types/generated/mars-rover-health/MarsRoverHealth.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -46,7 +46,6 @@ export interface MarsRoverHealthReadOnlyInterface { export class MarsRoverHealthQueryClient implements MarsRoverHealthReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -54,7 +53,6 @@ export class MarsRoverHealthQueryClient implements MarsRoverHealthReadOnlyInterf this.healthState = this.healthState.bind(this) this.config = this.config.bind(this) } - healthValues = async ({ accountId, action, @@ -122,7 +120,6 @@ export class MarsRoverHealthClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -131,7 +128,6 @@ export class MarsRoverHealthClient this.updateOwner = this.updateOwner.bind(this) this.updateConfig = this.updateConfig.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-rover-health/MarsRoverHealth.react-query.ts b/scripts/types/generated/mars-rover-health/MarsRoverHealth.react-query.ts index 6da6d48a..7557fd9f 100644 --- a/scripts/types/generated/mars-rover-health/MarsRoverHealth.react-query.ts +++ b/scripts/types/generated/mars-rover-health/MarsRoverHealth.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -30,17 +30,36 @@ export const marsRoverHealthQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsRoverHealthQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsRoverHealthQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, healthValues: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRoverHealthQueryKeys.address(contractAddress)[0], method: 'health_values', args }, + { + ...marsRoverHealthQueryKeys.address(contractAddress)[0], + method: 'health_values', + args, + }, ] as const, healthState: (contractAddress: string | undefined, args?: Record) => [ - { ...marsRoverHealthQueryKeys.address(contractAddress)[0], method: 'health_state', args }, + { + ...marsRoverHealthQueryKeys.address(contractAddress)[0], + method: 'health_state', + args, + }, ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsRoverHealthQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsRoverHealthQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, } export interface MarsRoverHealthReactQuery { client: MarsRoverHealthQueryClient | undefined @@ -60,7 +79,10 @@ export function useMarsRoverHealthConfigQuery({ return useQuery( marsRoverHealthQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRoverHealthHealthStateQuery @@ -86,7 +108,10 @@ export function useMarsRoverHealthHealthStateQuery({ kind: args.kind, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsRoverHealthHealthValuesQuery @@ -112,7 +137,10 @@ export function useMarsRoverHealthHealthValuesQuery => { return this.client.queryContractSmart(this.contractAddress, { owner: {}, @@ -200,7 +198,6 @@ export class MarsSwapperAstroportClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -212,7 +209,6 @@ export class MarsSwapperAstroportClient this.transferResult = this.transferResult.bind(this) this.updateConfig = this.updateConfig.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.react-query.ts b/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.react-query.ts index 8dbd0082..87e4d330 100644 --- a/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.react-query.ts +++ b/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -43,18 +43,35 @@ export const marsSwapperAstroportQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsSwapperAstroportQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsSwapperAstroportQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, owner: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], method: 'owner', args }, + { + ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], + method: 'owner', + args, + }, ] as const, route: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], method: 'route', args }, + { + ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], + method: 'route', + args, + }, ] as const, routes: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], method: 'routes', args }, + { + ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], + method: 'routes', + args, + }, ] as const, estimateExactInSwap: (contractAddress: string | undefined, args?: Record) => [ @@ -66,7 +83,11 @@ export const marsSwapperAstroportQueryKeys = { ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsSwapperAstroportQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, } export interface MarsSwapperAstroportReactQuery { @@ -87,7 +108,10 @@ export function useMarsSwapperAstroportConfigQuery({ return useQuery( marsSwapperAstroportQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperAstroportEstimateExactInSwapQuery @@ -111,7 +135,10 @@ export function useMarsSwapperAstroportEstimateExactInSwapQuery< route: args.route, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperAstroportRoutesQuery @@ -135,7 +162,10 @@ export function useMarsSwapperAstroportRoutesQuery @@ -159,7 +189,10 @@ export function useMarsSwapperAstroportRouteQuery denomOut: args.denomOut, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperAstroportOwnerQuery @@ -171,7 +204,10 @@ export function useMarsSwapperAstroportOwnerQuery({ return useQuery( marsSwapperAstroportQueryKeys.owner(client?.contractAddress), () => (client ? client.owner() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperAstroportUpdateConfigMutation { diff --git a/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.types.ts b/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.types.ts index d2e1faa2..92909899 100644 --- a/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.types.ts +++ b/scripts/types/generated/mars-swapper-astroport/MarsSwapperAstroport.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-swapper-astroport/bundle.ts b/scripts/types/generated/mars-swapper-astroport/bundle.ts index 05c745c1..79f61688 100644 --- a/scripts/types/generated/mars-swapper-astroport/bundle.ts +++ b/scripts/types/generated/mars-swapper-astroport/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _36 from './MarsSwapperAstroport.types' import * as _37 from './MarsSwapperAstroport.client' import * as _38 from './MarsSwapperAstroport.react-query' export namespace contracts { - export const MarsSwapperAstroport = { ..._36, ..._37, ..._38 } + export const MarsSwapperAstroport = { + ..._36, + ..._37, + ..._38, + } } diff --git a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.client.ts b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.client.ts index 7ec62c05..820f369c 100644 --- a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.client.ts +++ b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -58,7 +58,6 @@ export interface MarsSwapperBaseReadOnlyInterface { export class MarsSwapperBaseQueryClient implements MarsSwapperBaseReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -68,7 +67,6 @@ export class MarsSwapperBaseQueryClient implements MarsSwapperBaseReadOnlyInterf this.estimateExactInSwap = this.estimateExactInSwap.bind(this) this.config = this.config.bind(this) } - owner = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { owner: {}, @@ -196,7 +194,6 @@ export class MarsSwapperBaseClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -208,7 +205,6 @@ export class MarsSwapperBaseClient this.transferResult = this.transferResult.bind(this) this.updateConfig = this.updateConfig.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.react-query.ts b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.react-query.ts index 4daaa901..c711daa7 100644 --- a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.react-query.ts +++ b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -36,13 +36,36 @@ export const marsSwapperBaseQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsSwapperBaseQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsSwapperBaseQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, owner: (contractAddress: string | undefined, args?: Record) => - [{ ...marsSwapperBaseQueryKeys.address(contractAddress)[0], method: 'owner', args }] as const, + [ + { + ...marsSwapperBaseQueryKeys.address(contractAddress)[0], + method: 'owner', + args, + }, + ] as const, route: (contractAddress: string | undefined, args?: Record) => - [{ ...marsSwapperBaseQueryKeys.address(contractAddress)[0], method: 'route', args }] as const, + [ + { + ...marsSwapperBaseQueryKeys.address(contractAddress)[0], + method: 'route', + args, + }, + ] as const, routes: (contractAddress: string | undefined, args?: Record) => - [{ ...marsSwapperBaseQueryKeys.address(contractAddress)[0], method: 'routes', args }] as const, + [ + { + ...marsSwapperBaseQueryKeys.address(contractAddress)[0], + method: 'routes', + args, + }, + ] as const, estimateExactInSwap: (contractAddress: string | undefined, args?: Record) => [ { @@ -52,7 +75,13 @@ export const marsSwapperBaseQueryKeys = { }, ] as const, config: (contractAddress: string | undefined, args?: Record) => - [{ ...marsSwapperBaseQueryKeys.address(contractAddress)[0], method: 'config', args }] as const, + [ + { + ...marsSwapperBaseQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, + ] as const, } export interface MarsSwapperBaseReactQuery { client: MarsSwapperBaseQueryClient | undefined @@ -72,7 +101,10 @@ export function useMarsSwapperBaseConfigQuery({ return useQuery( marsSwapperBaseQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperBaseEstimateExactInSwapQuery @@ -98,7 +130,10 @@ export function useMarsSwapperBaseEstimateExactInSwapQuery @@ -122,7 +157,10 @@ export function useMarsSwapperBaseRoutesQuery @@ -146,7 +184,10 @@ export function useMarsSwapperBaseRouteQuery({ denomOut: args.denomOut, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperBaseOwnerQuery @@ -158,7 +199,10 @@ export function useMarsSwapperBaseOwnerQuery({ return useQuery( marsSwapperBaseQueryKeys.owner(client?.contractAddress), () => (client ? client.owner() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperBaseUpdateConfigMutation { diff --git a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.types.ts b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.types.ts index 8cd96168..17a006cf 100644 --- a/scripts/types/generated/mars-swapper-base/MarsSwapperBase.types.ts +++ b/scripts/types/generated/mars-swapper-base/MarsSwapperBase.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-swapper-base/bundle.ts b/scripts/types/generated/mars-swapper-base/bundle.ts index 43ad2b7a..95e00774 100644 --- a/scripts/types/generated/mars-swapper-base/bundle.ts +++ b/scripts/types/generated/mars-swapper-base/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _39 from './MarsSwapperBase.types' import * as _40 from './MarsSwapperBase.client' import * as _41 from './MarsSwapperBase.react-query' export namespace contracts { - export const MarsSwapperBase = { ..._39, ..._40, ..._41 } + export const MarsSwapperBase = { + ..._39, + ..._40, + ..._41, + } } diff --git a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.client.ts b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.client.ts index 1f5a07bf..f1bc80e8 100644 --- a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.client.ts +++ b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -61,7 +61,6 @@ export interface MarsSwapperOsmosisReadOnlyInterface { export class MarsSwapperOsmosisQueryClient implements MarsSwapperOsmosisReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -71,7 +70,6 @@ export class MarsSwapperOsmosisQueryClient implements MarsSwapperOsmosisReadOnly this.estimateExactInSwap = this.estimateExactInSwap.bind(this) this.config = this.config.bind(this) } - owner = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { owner: {}, @@ -199,7 +197,6 @@ export class MarsSwapperOsmosisClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -211,7 +208,6 @@ export class MarsSwapperOsmosisClient this.transferResult = this.transferResult.bind(this) this.updateConfig = this.updateConfig.bind(this) } - updateOwner = async ( ownerUpdate: OwnerUpdate, fee: number | StdFee | 'auto' = 'auto', diff --git a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.react-query.ts b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.react-query.ts index 969c367d..025b339d 100644 --- a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.react-query.ts +++ b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -42,18 +42,35 @@ export const marsSwapperOsmosisQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsSwapperOsmosisQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsSwapperOsmosisQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, owner: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], method: 'owner', args }, + { + ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], + method: 'owner', + args, + }, ] as const, route: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], method: 'route', args }, + { + ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], + method: 'route', + args, + }, ] as const, routes: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], method: 'routes', args }, + { + ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], + method: 'routes', + args, + }, ] as const, estimateExactInSwap: (contractAddress: string | undefined, args?: Record) => [ @@ -65,7 +82,11 @@ export const marsSwapperOsmosisQueryKeys = { ] as const, config: (contractAddress: string | undefined, args?: Record) => [ - { ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], method: 'config', args }, + { + ...marsSwapperOsmosisQueryKeys.address(contractAddress)[0], + method: 'config', + args, + }, ] as const, } export interface MarsSwapperOsmosisReactQuery { @@ -86,7 +107,10 @@ export function useMarsSwapperOsmosisConfigQuery({ return useQuery( marsSwapperOsmosisQueryKeys.config(client?.contractAddress), () => (client ? client.config() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperOsmosisEstimateExactInSwapQuery @@ -112,7 +136,10 @@ export function useMarsSwapperOsmosisEstimateExactInSwapQuery @@ -136,7 +163,10 @@ export function useMarsSwapperOsmosisRoutesQuery @@ -160,7 +190,10 @@ export function useMarsSwapperOsmosisRouteQuery({ denomOut: args.denomOut, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperOsmosisOwnerQuery @@ -172,7 +205,10 @@ export function useMarsSwapperOsmosisOwnerQuery({ return useQuery( marsSwapperOsmosisQueryKeys.owner(client?.contractAddress), () => (client ? client.owner() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsSwapperOsmosisUpdateConfigMutation { diff --git a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.types.ts b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.types.ts index d76d682d..0f549650 100644 --- a/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.types.ts +++ b/scripts/types/generated/mars-swapper-osmosis/MarsSwapperOsmosis.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-swapper-osmosis/bundle.ts b/scripts/types/generated/mars-swapper-osmosis/bundle.ts index c0c3a3d7..06363205 100644 --- a/scripts/types/generated/mars-swapper-osmosis/bundle.ts +++ b/scripts/types/generated/mars-swapper-osmosis/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _42 from './MarsSwapperOsmosis.types' import * as _43 from './MarsSwapperOsmosis.client' import * as _44 from './MarsSwapperOsmosis.react-query' export namespace contracts { - export const MarsSwapperOsmosis = { ..._42, ..._43, ..._44 } + export const MarsSwapperOsmosis = { + ..._42, + ..._43, + ..._44, + } } diff --git a/scripts/types/generated/mars-vault/MarsVault.client.ts b/scripts/types/generated/mars-vault/MarsVault.client.ts index 7d99e384..46ab6249 100644 --- a/scripts/types/generated/mars-vault/MarsVault.client.ts +++ b/scripts/types/generated/mars-vault/MarsVault.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -35,7 +35,6 @@ export interface MarsVaultReadOnlyInterface { export class MarsVaultQueryClient implements MarsVaultReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress @@ -49,7 +48,6 @@ export class MarsVaultQueryClient implements MarsVaultReadOnlyInterface { this.convertToAssets = this.convertToAssets.bind(this) this.vaultExtension = this.vaultExtension.bind(this) } - vaultStandardInfo = async (): Promise => { return this.client.queryContractSmart(this.contractAddress, { vault_standard_info: {}, @@ -142,7 +140,6 @@ export class MarsVaultClient extends MarsVaultQueryClient implements MarsVaultIn client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -152,7 +149,6 @@ export class MarsVaultClient extends MarsVaultQueryClient implements MarsVaultIn this.redeem = this.redeem.bind(this) this.vaultExtension = this.vaultExtension.bind(this) } - deposit = async ( { amount, diff --git a/scripts/types/generated/mars-vault/MarsVault.react-query.ts b/scripts/types/generated/mars-vault/MarsVault.react-query.ts index 2195d484..d7098785 100644 --- a/scripts/types/generated/mars-vault/MarsVault.react-query.ts +++ b/scripts/types/generated/mars-vault/MarsVault.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -29,23 +29,52 @@ export const marsVaultQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsVaultQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsVaultQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, vaultStandardInfo: (contractAddress: string | undefined, args?: Record) => [ - { ...marsVaultQueryKeys.address(contractAddress)[0], method: 'vault_standard_info', args }, + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'vault_standard_info', + args, + }, ] as const, info: (contractAddress: string | undefined, args?: Record) => - [{ ...marsVaultQueryKeys.address(contractAddress)[0], method: 'info', args }] as const, + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'info', + args, + }, + ] as const, previewDeposit: (contractAddress: string | undefined, args?: Record) => [ - { ...marsVaultQueryKeys.address(contractAddress)[0], method: 'preview_deposit', args }, + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'preview_deposit', + args, + }, ] as const, previewRedeem: (contractAddress: string | undefined, args?: Record) => [ - { ...marsVaultQueryKeys.address(contractAddress)[0], method: 'preview_redeem', args }, + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'preview_redeem', + args, + }, ] as const, totalAssets: (contractAddress: string | undefined, args?: Record) => - [{ ...marsVaultQueryKeys.address(contractAddress)[0], method: 'total_assets', args }] as const, + [ + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'total_assets', + args, + }, + ] as const, totalVaultTokenSupply: (contractAddress: string | undefined, args?: Record) => [ { @@ -56,15 +85,27 @@ export const marsVaultQueryKeys = { ] as const, convertToShares: (contractAddress: string | undefined, args?: Record) => [ - { ...marsVaultQueryKeys.address(contractAddress)[0], method: 'convert_to_shares', args }, + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'convert_to_shares', + args, + }, ] as const, convertToAssets: (contractAddress: string | undefined, args?: Record) => [ - { ...marsVaultQueryKeys.address(contractAddress)[0], method: 'convert_to_assets', args }, + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'convert_to_assets', + args, + }, ] as const, vaultExtension: (contractAddress: string | undefined, args?: Record) => [ - { ...marsVaultQueryKeys.address(contractAddress)[0], method: 'vault_extension', args }, + { + ...marsVaultQueryKeys.address(contractAddress)[0], + method: 'vault_extension', + args, + }, ] as const, } export interface MarsVaultReactQuery { @@ -84,7 +125,10 @@ export function useMarsVaultVaultExtensionQuery({ return useQuery( marsVaultQueryKeys.vaultExtension(client?.contractAddress), () => (client ? client.vaultExtension() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsVaultConvertToAssetsQuery extends MarsVaultReactQuery { @@ -105,7 +149,10 @@ export function useMarsVaultConvertToAssetsQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsVaultConvertToSharesQuery extends MarsVaultReactQuery { @@ -126,7 +173,10 @@ export function useMarsVaultConvertToSharesQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsVaultTotalVaultTokenSupplyQuery @@ -138,7 +188,10 @@ export function useMarsVaultTotalVaultTokenSupplyQuery({ return useQuery( marsVaultQueryKeys.totalVaultTokenSupply(client?.contractAddress), () => (client ? client.totalVaultTokenSupply() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsVaultTotalAssetsQuery extends MarsVaultReactQuery {} @@ -149,7 +202,10 @@ export function useMarsVaultTotalAssetsQuery({ return useQuery( marsVaultQueryKeys.totalAssets(client?.contractAddress), () => (client ? client.totalAssets() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsVaultPreviewRedeemQuery extends MarsVaultReactQuery { @@ -170,7 +226,10 @@ export function useMarsVaultPreviewRedeemQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsVaultPreviewDepositQuery extends MarsVaultReactQuery { @@ -191,7 +250,10 @@ export function useMarsVaultPreviewDepositQuery({ amount: args.amount, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsVaultInfoQuery extends MarsVaultReactQuery {} @@ -202,7 +264,10 @@ export function useMarsVaultInfoQuery({ return useQuery( marsVaultQueryKeys.info(client?.contractAddress), () => (client ? client.info() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsVaultVaultStandardInfoQuery @@ -214,7 +279,10 @@ export function useMarsVaultVaultStandardInfoQuery( marsVaultQueryKeys.vaultStandardInfo(client?.contractAddress), () => (client ? client.vaultStandardInfo() : Promise.reject(new Error('Invalid client'))), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsVaultVaultExtensionMutation { diff --git a/scripts/types/generated/mars-vault/MarsVault.types.ts b/scripts/types/generated/mars-vault/MarsVault.types.ts index c2c8175e..a2a64011 100644 --- a/scripts/types/generated/mars-vault/MarsVault.types.ts +++ b/scripts/types/generated/mars-vault/MarsVault.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-vault/bundle.ts b/scripts/types/generated/mars-vault/bundle.ts index 50ac4cd1..2541d6ed 100644 --- a/scripts/types/generated/mars-vault/bundle.ts +++ b/scripts/types/generated/mars-vault/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _45 from './MarsVault.types' import * as _46 from './MarsVault.client' import * as _47 from './MarsVault.react-query' export namespace contracts { - export const MarsVault = { ..._45, ..._46, ..._47 } + export const MarsVault = { + ..._45, + ..._46, + ..._47, + } } diff --git a/scripts/types/generated/mars-zapper-base/MarsZapperBase.client.ts b/scripts/types/generated/mars-zapper-base/MarsZapperBase.client.ts index 4a10eb33..fc6161fc 100644 --- a/scripts/types/generated/mars-zapper-base/MarsZapperBase.client.ts +++ b/scripts/types/generated/mars-zapper-base/MarsZapperBase.client.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -31,14 +31,12 @@ export interface MarsZapperBaseReadOnlyInterface { export class MarsZapperBaseQueryClient implements MarsZapperBaseReadOnlyInterface { client: CosmWasmClient contractAddress: string - constructor(client: CosmWasmClient, contractAddress: string) { this.client = client this.contractAddress = contractAddress this.estimateProvideLiquidity = this.estimateProvideLiquidity.bind(this) this.estimateWithdrawLiquidity = this.estimateWithdrawLiquidity.bind(this) } - estimateProvideLiquidity = async ({ coinsIn, lpTokenOut, @@ -104,7 +102,6 @@ export class MarsZapperBaseClient client: SigningCosmWasmClient sender: string contractAddress: string - constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) { super(client, contractAddress) this.client = client @@ -114,7 +111,6 @@ export class MarsZapperBaseClient this.withdrawLiquidity = this.withdrawLiquidity.bind(this) this.callback = this.callback.bind(this) } - provideLiquidity = async ( { lpTokenOut, diff --git a/scripts/types/generated/mars-zapper-base/MarsZapperBase.react-query.ts b/scripts/types/generated/mars-zapper-base/MarsZapperBase.react-query.ts index 870dc73c..8c17ecd8 100644 --- a/scripts/types/generated/mars-zapper-base/MarsZapperBase.react-query.ts +++ b/scripts/types/generated/mars-zapper-base/MarsZapperBase.react-query.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -26,7 +26,12 @@ export const marsZapperBaseQueryKeys = { }, ] as const, address: (contractAddress: string | undefined) => - [{ ...marsZapperBaseQueryKeys.contract[0], address: contractAddress }] as const, + [ + { + ...marsZapperBaseQueryKeys.contract[0], + address: contractAddress, + }, + ] as const, estimateProvideLiquidity: (contractAddress: string | undefined, args?: Record) => [ { @@ -75,7 +80,10 @@ export function useMarsZapperBaseEstimateWithdrawLiquidityQuery @@ -99,7 +107,10 @@ export function useMarsZapperBaseEstimateProvideLiquidityQuery( lpTokenOut: args.lpTokenOut, }) : Promise.reject(new Error('Invalid client')), - { ...options, enabled: !!client && (options?.enabled != undefined ? options.enabled : true) }, + { + ...options, + enabled: !!client && (options?.enabled != undefined ? options.enabled : true), + }, ) } export interface MarsZapperBaseCallbackMutation { diff --git a/scripts/types/generated/mars-zapper-base/MarsZapperBase.types.ts b/scripts/types/generated/mars-zapper-base/MarsZapperBase.types.ts index dbb6c81f..b9b89b3f 100644 --- a/scripts/types/generated/mars-zapper-base/MarsZapperBase.types.ts +++ b/scripts/types/generated/mars-zapper-base/MarsZapperBase.types.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ diff --git a/scripts/types/generated/mars-zapper-base/bundle.ts b/scripts/types/generated/mars-zapper-base/bundle.ts index 8f6aad8f..a5afaad7 100644 --- a/scripts/types/generated/mars-zapper-base/bundle.ts +++ b/scripts/types/generated/mars-zapper-base/bundle.ts @@ -1,6 +1,6 @@ // @ts-nocheck /** - * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3. + * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run the @cosmwasm/ts-codegen generate command to regenerate this file. */ @@ -9,5 +9,9 @@ import * as _48 from './MarsZapperBase.types' import * as _49 from './MarsZapperBase.client' import * as _50 from './MarsZapperBase.react-query' export namespace contracts { - export const MarsZapperBase = { ..._48, ..._49, ..._50 } + export const MarsZapperBase = { + ..._48, + ..._49, + ..._50, + } }