diff --git a/scripts/health/example-react/dist/assets/index-0d6505f2.js b/scripts/health/example-react/dist/assets/index-0d6505f2.js
index 84ebb287..e14e51fc 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,14 +5651,12 @@ 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
@@ -5824,10 +5822,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),
@@ -5883,17 +5881,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':
@@ -6519,10 +6517,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':
@@ -6734,8 +6732,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)
}
@@ -6950,8 +6948,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) {
@@ -7065,16 +7063,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)
@@ -8669,12 +8667,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
@@ -8789,8 +8787,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
)
@@ -8852,8 +8850,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
)
@@ -10207,8 +10205,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
@@ -11426,10 +11424,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) {
@@ -11631,8 +11629,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
)
}),
@@ -11840,10 +11838,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) {
@@ -12493,10 +12491,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
)
}),
@@ -12641,10 +12639,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) {
@@ -12741,22 +12739,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
@@ -12777,8 +12775,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
@@ -13075,10 +13073,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
)
}),
@@ -13849,8 +13847,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))
})(),
@@ -13950,8 +13948,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))
@@ -13994,10 +13992,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) {
@@ -14008,17 +14006,14 @@ 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(''))
@@ -14030,17 +14025,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)
@@ -14168,18 +14163,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
)
@@ -14248,10 +14243,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 =
@@ -14672,8 +14667,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() {
@@ -14919,8 +14914,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,
@@ -15045,14 +15040,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() {
@@ -15225,8 +15220,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
@@ -15236,8 +15231,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
@@ -15451,8 +15446,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) {
@@ -43490,8 +43485,9 @@ 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,
@@ -67510,10 +67506,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)
@@ -67623,8 +67619,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) {
@@ -70899,12 +70895,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 {
@@ -71119,10 +71115,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) {
@@ -71302,8 +71298,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
)
}),
@@ -71495,10 +71491,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) {
@@ -72149,10 +72145,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
)
}
@@ -72407,10 +72403,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) {
@@ -72507,22 +72503,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
@@ -72543,8 +72539,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)
@@ -72836,10 +72832,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
)
}),
@@ -73234,14 +73230,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
@@ -73331,8 +73327,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
}
@@ -73363,8 +73359,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 (
@@ -73757,10 +73753,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) {
@@ -73901,10 +73897,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
@@ -74363,10 +74359,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)
@@ -74445,16 +74441,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 _
@@ -74486,18 +74482,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) {
@@ -75172,34 +75168,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,
@@ -76059,8 +76055,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),
@@ -76286,10 +76282,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 (
@@ -78197,8 +78193,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,
@@ -78323,14 +78319,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() {
@@ -78503,8 +78499,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
@@ -78514,8 +78510,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
@@ -82887,16 +82883,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, $)),
@@ -83030,8 +83026,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, $)),
@@ -83513,8 +83509,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
)
}),
@@ -83597,10 +83593,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
@@ -83677,16 +83673,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
)
}),
@@ -83771,8 +83767,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
@@ -84029,8 +84025,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),
@@ -84619,16 +84615,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, $)),
@@ -84762,8 +84758,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, $)),
@@ -85887,8 +85883,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' ||
@@ -87372,8 +87368,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,
@@ -87498,14 +87494,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() {
@@ -87678,8 +87674,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
@@ -87689,8 +87685,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
@@ -129379,10 +129375,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
@@ -129858,13 +129854,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
)
},
],
@@ -130000,10 +129996,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])
@@ -130181,8 +130177,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(
@@ -130485,12 +130481,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) ||
@@ -135343,8 +135339,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,
@@ -135469,14 +135465,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() {
@@ -135646,8 +135642,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
@@ -135657,8 +135653,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
@@ -139170,8 +139166,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) {
@@ -139287,28 +139283,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)
- }
- return new Mn(un, dn, Nn)
- }
- return Mn.apply(this, arguments)
+ ? 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 (Hn.prototype = Mn.prototype), Hn
- })(kn)
- : Tn && typeof kn == 'function'
- ? gn(Function.call, kn)
- : kn),
+ 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),
Tn &&
(((Zn.virtual || (Zn.virtual = {}))[mn] = kn),
Kn & qn.R && tn && !tn[mn] && In(tn, mn, kn)))
@@ -139645,18 +139641,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, $) {
@@ -139821,9 +139817,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
)
},
@@ -139841,8 +139837,8 @@ var mainExports = {},
(En[Mn] = /^base/.test(Mn)
? yn(tn[Mn])
: Mn === 'scheme'
- ? tn[Mn] + ':inverted'
- : tn[Mn]),
+ ? tn[Mn] + ':inverted'
+ : tn[Mn]),
En
)
}, {})
@@ -139897,12 +139893,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) {
@@ -139956,8 +139952,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
@@ -139999,16 +139995,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
@@ -140200,8 +140196,8 @@ var mainExports = {},
Jn !== sn.default.prototype
? 'symbol'
: Jn === void 0
- ? 'undefined'
- : gn(Jn)
+ ? 'undefined'
+ : gn(Jn)
}
},
function (b, $, en) {
@@ -140225,16 +140221,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
}
}
},
@@ -140341,10 +140337,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
)
}
},
@@ -141201,26 +141197,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,
@@ -141356,11 +141352,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),
@@ -142446,10 +142442,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
}
@@ -142737,10 +142733,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
}
@@ -143544,8 +143540,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
)
}
}
@@ -143697,8 +143693,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
)
@@ -146480,10 +146476,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', {
@@ -146493,10 +146489,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 0f54b3e2..e426677e 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,6 +106,7 @@ export interface MarsAccountNftReadOnlyInterface {
export class MarsAccountNftQueryClient implements MarsAccountNftReadOnlyInterface {
client: CosmWasmClient
contractAddress: string
+
constructor(client: CosmWasmClient, contractAddress: string) {
this.client = client
this.contractAddress = contractAddress
@@ -124,6 +125,7 @@ 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: {},
@@ -401,6 +403,7 @@ export class MarsAccountNftClient
client: SigningCosmWasmClient
sender: string
contractAddress: string
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
super(client, contractAddress)
this.client = client
@@ -418,6 +421,7 @@ 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 577ddee2..385e0aaf 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,123 +45,48 @@ 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 {
@@ -182,10 +107,7 @@ 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
@@ -197,10 +119,7 @@ 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
@@ -224,10 +143,7 @@ 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
@@ -253,10 +169,7 @@ 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
@@ -280,10 +193,7 @@ export function useMarsAccountNftAllNftInfoQuery
@@ -305,10 +215,7 @@ 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
@@ -320,10 +227,7 @@ 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
@@ -335,10 +239,7 @@ 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
@@ -366,10 +267,7 @@ 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
@@ -393,10 +291,7 @@ 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
@@ -422,10 +317,7 @@ 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
@@ -449,10 +341,7 @@ 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 {}
@@ -463,10 +352,7 @@ 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
@@ -478,10 +364,7 @@ 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 775b714d..af857dcc 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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 8d86beba..c7a0026c 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,9 +9,5 @@ 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 5e3193c4..97b9cab8 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,6 +33,7 @@ export interface MarsAddressProviderReadOnlyInterface {
export class MarsAddressProviderQueryClient implements MarsAddressProviderReadOnlyInterface {
client: CosmWasmClient
contractAddress: string
+
constructor(client: CosmWasmClient, contractAddress: string) {
this.client = client
this.contractAddress = contractAddress
@@ -41,6 +42,7 @@ 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: {},
@@ -100,6 +102,7 @@ export class MarsAddressProviderClient
client: SigningCosmWasmClient
sender: string
contractAddress: string
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
super(client, contractAddress)
this.client = client
@@ -108,6 +111,7 @@ 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 ba90f4c3..67df3695 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,35 +29,18 @@ 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) =>
[
@@ -98,10 +81,7 @@ export function useMarsAddressProviderAllAddressesQuery
@@ -113,10 +93,7 @@ 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
@@ -128,10 +105,7 @@ 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
@@ -143,10 +117,7 @@ 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 a2545bd3..87688b41 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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 65400353..4bcba804 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,9 +9,5 @@ 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 f94341d1..1db80b33 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
*/
@@ -144,6 +144,7 @@ export interface MarsCreditManagerReadOnlyInterface {
export class MarsCreditManagerQueryClient implements MarsCreditManagerReadOnlyInterface {
client: CosmWasmClient
contractAddress: string
+
constructor(client: CosmWasmClient, contractAddress: string) {
this.client = client
this.contractAddress = contractAddress
@@ -162,6 +163,7 @@ export class MarsCreditManagerQueryClient implements MarsCreditManagerReadOnlyIn
this.estimateWithdrawLiquidity = this.estimateWithdrawLiquidity.bind(this)
this.vaultPositionValue = this.vaultPositionValue.bind(this)
}
+
accountKind = async ({ accountId }: { accountId: string }): Promise => {
return this.client.queryContractSmart(this.contractAddress, {
account_kind: {
@@ -404,6 +406,7 @@ export class MarsCreditManagerClient
client: SigningCosmWasmClient
sender: string
contractAddress: string
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
super(client, contractAddress)
this.client = client
@@ -418,6 +421,7 @@ 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 d239a18c..723192d8 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
*/
@@ -85,35 +85,18 @@ 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) =>
[
@@ -133,11 +116,7 @@ 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) =>
[
@@ -235,10 +214,7 @@ export function useMarsCreditManagerVaultPositionValueQuery
@@ -260,10 +236,7 @@ export function useMarsCreditManagerEstimateWithdrawLiquidityQuery
@@ -287,10 +260,7 @@ export function useMarsCreditManagerEstimateProvideLiquidityQuery
@@ -312,10 +282,7 @@ 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
@@ -339,10 +306,7 @@ export function useMarsCreditManagerAllTotalDebtSharesQuery
@@ -354,10 +318,7 @@ 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
@@ -381,10 +342,7 @@ export function useMarsCreditManagerAllDebtSharesQuery
@@ -408,10 +366,7 @@ export function useMarsCreditManagerAllCoinBalancesQuery
@@ -433,10 +388,7 @@ 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
@@ -458,10 +410,7 @@ 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
@@ -483,10 +432,7 @@ export function useMarsCreditManagerVaultUtilizationQuery
@@ -498,10 +444,7 @@ 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
@@ -527,10 +470,7 @@ 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
@@ -552,10 +492,7 @@ 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 0334b640..a5bf6c21 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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 1e6f6811..5d5cd8bd 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,9 +9,5 @@ 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 b457b5a6..179b43fa 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
*/
@@ -119,6 +119,7 @@ export interface MarsIncentivesReadOnlyInterface {
export class MarsIncentivesQueryClient implements MarsIncentivesReadOnlyInterface {
client: CosmWasmClient
contractAddress: string
+
constructor(client: CosmWasmClient, contractAddress: string) {
this.client = client
this.contractAddress = contractAddress
@@ -134,6 +135,7 @@ export class MarsIncentivesQueryClient implements MarsIncentivesReadOnlyInterfac
this.userUnclaimedRewards = this.userUnclaimedRewards.bind(this)
this.whitelist = this.whitelist.bind(this)
}
+
stakedAstroLpRewards = async ({
accountId,
lpDenom,
@@ -427,6 +429,7 @@ export class MarsIncentivesClient
client: SigningCosmWasmClient
sender: string
contractAddress: string
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
super(client, contractAddress)
this.client = client
@@ -443,6 +446,7 @@ 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 b2d1165b..ffe0d82a 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,12 +43,7 @@ export const marsIncentivesQueryKeys = {
},
] as const,
address: (contractAddress: string | undefined) =>
- [
- {
- ...marsIncentivesQueryKeys.contract[0],
- address: contractAddress,
- },
- ] as const,
+ [{ ...marsIncentivesQueryKeys.contract[0], address: contractAddress }] as const,
stakedAstroLpRewards: (contractAddress: string | undefined, args?: Record) =>
[
{
@@ -59,51 +54,23 @@ export const marsIncentivesQueryKeys = {
] 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,
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,
stakedAstroLpPositions: (contractAddress: string | undefined, args?: Record) =>
[
@@ -131,11 +98,7 @@ 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 {
@@ -156,10 +119,7 @@ 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
@@ -189,10 +149,7 @@ 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 MarsIncentivesStakedAstroLpPositionQuery
@@ -216,10 +173,7 @@ export function useMarsIncentivesStakedAstroLpPositionQuery
@@ -243,10 +197,7 @@ export function useMarsIncentivesStakedAstroLpPositionsQuery<
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 MarsIncentivesEmissionsQuery
@@ -274,10 +225,7 @@ 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
@@ -303,10 +251,7 @@ 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 MarsIncentivesIncentiveStatesQuery
@@ -332,10 +277,7 @@ export function useMarsIncentivesIncentiveStatesQuery
@@ -359,10 +301,7 @@ export function useMarsIncentivesIncentiveStateQuery
@@ -374,10 +313,7 @@ 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
@@ -399,10 +335,7 @@ export function useMarsIncentivesActiveEmissionsQuery
@@ -424,10 +357,7 @@ export function useMarsIncentivesStakedAstroLpRewardsQuery<
lpDenom: args.lpDenom,
})
: 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 MarsIncentivesMigrateMutation {
diff --git a/scripts/types/generated/mars-incentives/MarsIncentives.types.ts b/scripts/types/generated/mars-incentives/MarsIncentives.types.ts
index f1afbf92..a5309949 100644
--- a/scripts/types/generated/mars-incentives/MarsIncentives.types.ts
+++ b/scripts/types/generated/mars-incentives/MarsIncentives.types.ts
@@ -1,6 +1,6 @@
// @ts-nocheck
/**
- * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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-incentives/bundle.ts b/scripts/types/generated/mars-incentives/bundle.ts
index 88c9525a..da717f0e 100644
--- a/scripts/types/generated/mars-incentives/bundle.ts
+++ b/scripts/types/generated/mars-incentives/bundle.ts
@@ -1,6 +1,6 @@
// @ts-nocheck
/**
- * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,9 +9,5 @@ import * as _9 from './MarsIncentives.types'
import * as _10 from './MarsIncentives.client'
import * as _11 from './MarsIncentives.react-query'
export namespace contracts {
- export const MarsIncentives = {
- ..._9,
- ..._10,
- ..._11,
- }
+ export const MarsIncentives = { ..._9, ..._10, ..._11 }
}
diff --git a/scripts/types/generated/mars-mock-vault/MarsMockVault.client.ts b/scripts/types/generated/mars-mock-vault/MarsMockVault.client.ts
index 2348405e..fd8ec78d 100644
--- a/scripts/types/generated/mars-mock-vault/MarsMockVault.client.ts
+++ b/scripts/types/generated/mars-mock-vault/MarsMockVault.client.ts
@@ -1,6 +1,6 @@
// @ts-nocheck
/**
- * This file was automatically generated by @cosmwasm/ts-codegen@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
*/
@@ -38,6 +38,7 @@ export interface MarsMockVaultReadOnlyInterface {
export class MarsMockVaultQueryClient implements MarsMockVaultReadOnlyInterface {
client: CosmWasmClient
contractAddress: string
+
constructor(client: CosmWasmClient, contractAddress: string) {
this.client = client
this.contractAddress = contractAddress
@@ -51,6 +52,7 @@ export class MarsMockVaultQueryClient implements MarsMockVaultReadOnlyInterface
this.convertToAssets = this.convertToAssets.bind(this)
this.vaultExtension = this.vaultExtension.bind(this)
}
+
vaultStandardInfo = async (): Promise => {
return this.client.queryContractSmart(this.contractAddress, {
vault_standard_info: {},
@@ -146,6 +148,7 @@ export class MarsMockVaultClient
client: SigningCosmWasmClient
sender: string
contractAddress: string
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
super(client, contractAddress)
this.client = client
@@ -155,6 +158,7 @@ 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 0f7588c4..c718b679 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,12 +32,7 @@ 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) =>
[
{
@@ -47,36 +42,18 @@ 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) =>
[
@@ -88,27 +65,15 @@ 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 {
@@ -129,10 +94,7 @@ 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
@@ -154,10 +116,7 @@ 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
@@ -179,10 +138,7 @@ 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
@@ -194,10 +150,7 @@ 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
@@ -209,10 +162,7 @@ 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
@@ -234,10 +184,7 @@ 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
@@ -259,10 +206,7 @@ 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
@@ -274,10 +218,7 @@ 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
@@ -289,10 +230,7 @@ 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 ae9bab1e..9db4ece1 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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 a3e22b9e..02170260 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,9 +9,5 @@ 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 6e1aa645..1cb05610 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,6 +53,7 @@ export interface MarsOracleOsmosisReadOnlyInterface {
export class MarsOracleOsmosisQueryClient implements MarsOracleOsmosisReadOnlyInterface {
client: CosmWasmClient
contractAddress: string
+
constructor(client: CosmWasmClient, contractAddress: string) {
this.client = client
this.contractAddress = contractAddress
@@ -62,6 +63,7 @@ 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: {},
@@ -164,6 +166,7 @@ export class MarsOracleOsmosisClient
client: SigningCosmWasmClient
sender: string
contractAddress: string
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
super(client, contractAddress)
this.client = client
@@ -175,6 +178,7 @@ 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 31bb3814..10b6cc76 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,51 +37,24 @@ 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 {
@@ -116,10 +89,7 @@ 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
@@ -143,10 +113,7 @@ 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
@@ -170,10 +137,7 @@ export function useMarsOracleOsmosisPriceSourcesQuery
@@ -195,10 +159,7 @@ export function useMarsOracleOsmosisPriceSourceQuery
@@ -210,10 +171,7 @@ 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 c2c4a573..14650c33 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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 fecefc5f..9428a689 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,9 +9,5 @@ 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 2f9abfdd..cda2b0a7 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,6 +51,7 @@ export interface MarsOracleWasmReadOnlyInterface {
export class MarsOracleWasmQueryClient implements MarsOracleWasmReadOnlyInterface {
client: CosmWasmClient
contractAddress: string
+
constructor(client: CosmWasmClient, contractAddress: string) {
this.client = client
this.contractAddress = contractAddress
@@ -60,6 +61,7 @@ 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: {},
@@ -167,6 +169,7 @@ export class MarsOracleWasmClient
client: SigningCosmWasmClient
sender: string
contractAddress: string
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
super(client, contractAddress)
this.client = client
@@ -178,6 +181,7 @@ 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 1b5becd2..1d2c23cf 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,52 +35,21 @@ 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
@@ -114,10 +83,7 @@ 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
@@ -141,10 +107,7 @@ 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
@@ -168,10 +131,7 @@ export function useMarsOracleWasmPriceSourcesQuery
@@ -193,10 +153,7 @@ export function useMarsOracleWasmPriceSourceQuery
@@ -208,10 +165,7 @@ 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 fb643cb5..9250d189 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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 8555a023..96d688af 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,9 +9,5 @@ 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 40e7ea01..6b320bd9 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,6 +83,7 @@ export interface MarsParamsReadOnlyInterface {
export class MarsParamsQueryClient implements MarsParamsReadOnlyInterface {
client: CosmWasmClient
contractAddress: string
+
constructor(client: CosmWasmClient, contractAddress: string) {
this.client = client
this.contractAddress = contractAddress
@@ -97,6 +98,7 @@ 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: {},
@@ -237,6 +239,7 @@ 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
@@ -249,6 +252,7 @@ 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 f39396e4..1325824b 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,91 +52,38 @@ 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 {
@@ -167,10 +114,7 @@ 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
@@ -192,10 +136,7 @@ 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
@@ -207,10 +148,7 @@ 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
@@ -232,10 +170,7 @@ 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
@@ -259,10 +194,7 @@ export function useMarsParamsAllVaultConfigsQuery
@@ -284,10 +216,7 @@ 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
@@ -311,10 +240,7 @@ export function useMarsParamsAllAssetParamsQuery
@@ -336,10 +262,7 @@ export function useMarsParamsAssetParamsQuery extends MarsParamsReactQuery {}
@@ -350,10 +273,7 @@ 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 {}
@@ -364,10 +284,7 @@ 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 c274a4f7..529ef565 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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 595e7ecd..66f5f4a3 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,9 +9,5 @@ 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 8aa61f4b..10300bd5 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,6 +126,7 @@ export interface MarsRedBankReadOnlyInterface {
export class MarsRedBankQueryClient implements MarsRedBankReadOnlyInterface {
client: CosmWasmClient
contractAddress: string
+
constructor(client: CosmWasmClient, contractAddress: string) {
this.client = client
this.contractAddress = contractAddress
@@ -146,6 +147,7 @@ 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: {},
@@ -500,6 +502,7 @@ 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
@@ -517,6 +520,7 @@ 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 7f848782..ed3631f2 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,99 +41,36 @@ 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,
@@ -156,11 +93,7 @@ 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,
@@ -212,10 +145,7 @@ 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
@@ -239,10 +169,7 @@ 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
@@ -266,10 +193,7 @@ 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
@@ -293,10 +217,7 @@ 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
@@ -320,10 +241,7 @@ export function useMarsRedBankUserPositionLiquidationPricingQuery
@@ -347,10 +265,7 @@ 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
@@ -376,10 +291,7 @@ 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
@@ -407,10 +319,7 @@ export function useMarsRedBankUserCollateralsQuery
@@ -436,10 +345,7 @@ export function useMarsRedBankUserCollateralQuery
@@ -465,10 +371,7 @@ 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
@@ -492,10 +395,7 @@ 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
@@ -519,10 +419,7 @@ export function useMarsRedBankMarketsV2Query
@@ -546,10 +443,7 @@ 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
@@ -571,10 +465,7 @@ 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 {
@@ -595,10 +486,7 @@ 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
@@ -610,10 +498,7 @@ 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 bd54d453..31ae935e 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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 706a30f9..6eed8763 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,9 +9,5 @@ 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 0c4d5c3f..2d05d8c9 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,11 +39,13 @@ 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: {},
@@ -144,6 +146,7 @@ export class MarsRewardsCollectorBaseClient
client: SigningCosmWasmClient
sender: string
contractAddress: string
+
constructor(client: SigningCosmWasmClient, sender: string, contractAddress: string) {
super(client, contractAddress)
this.client = client
@@ -157,6 +160,7 @@ 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 08e66795..de5be0cf 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@1.10.0.
+ * This file was automatically generated by @cosmwasm/ts-codegen@0.35.3.
* 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,19 +42,10 @@ 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 {
@@ -75,10 +66,7 @@ export function useMarsRewardsCollectorBaseConfigQuery({
return useQuery