@gera2ld/lib-dex 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, n) => {
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
|
|
3
3
|
let r = {};
|
|
4
4
|
for (var i in e) t(r, i, {
|
|
5
5
|
get: e[i],
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./chunk-
|
|
1
|
+
import { n as e, r as t, t as n } from "./chunk-BPfpcrXh.js";
|
|
2
2
|
import { BigNumber as r } from "bignumber.js";
|
|
3
3
|
import { delay as i, memoize as a } from "es-toolkit";
|
|
4
4
|
import { asyncMemo as o } from "@gera2ld/async-memo";
|
|
@@ -42,7 +42,7 @@ function P(e) {
|
|
|
42
42
|
return e === ne ? re : e;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
|
-
//#region
|
|
45
|
+
//#region ../common/dist/index.js
|
|
46
46
|
var ie = "=", ae = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", oe;
|
|
47
47
|
function se() {
|
|
48
48
|
return oe ||= ce(ae), oe;
|
|
@@ -3122,11 +3122,13 @@ var Hi = class e extends Bi {
|
|
|
3122
3122
|
payable;
|
|
3123
3123
|
gas;
|
|
3124
3124
|
constructor(e, t, n, r, i, a) {
|
|
3125
|
-
super(e, "function", t, r), Object.defineProperty(this, Ai, { value: Ii }), i = Object.freeze(i.slice())
|
|
3126
|
-
|
|
3125
|
+
super(e, "function", t, r), Object.defineProperty(this, Ai, { value: Ii }), i = Object.freeze(i.slice());
|
|
3126
|
+
let o = n === "view" || n === "pure", s = n === "payable";
|
|
3127
|
+
L(this, {
|
|
3128
|
+
constant: o,
|
|
3127
3129
|
gas: a,
|
|
3128
3130
|
outputs: i,
|
|
3129
|
-
payable:
|
|
3131
|
+
payable: s,
|
|
3130
3132
|
stateMutability: n
|
|
3131
3133
|
});
|
|
3132
3134
|
}
|
|
@@ -6436,7 +6438,11 @@ ${h(e)}
|
|
|
6436
6438
|
this.bytes = "0x";
|
|
6437
6439
|
return;
|
|
6438
6440
|
}
|
|
6439
|
-
typeof e == "string"
|
|
6441
|
+
if (typeof e == "string") (0, n.default)((0, i.isHexBytes)(e), "Init bytes must be valid hex bytes"), this.bytes = e;
|
|
6442
|
+
else {
|
|
6443
|
+
let t = e instanceof r.BN ? e : new r.BN(e);
|
|
6444
|
+
this.bytes = t.toHex();
|
|
6445
|
+
}
|
|
6440
6446
|
}
|
|
6441
6447
|
get length() {
|
|
6442
6448
|
return Number(this.bytes.length / 2 - 1);
|
|
@@ -7972,7 +7978,11 @@ var gc = /* @__PURE__ */ function() {
|
|
|
7972
7978
|
this.bytes = "0x";
|
|
7973
7979
|
return;
|
|
7974
7980
|
}
|
|
7975
|
-
typeof e == "string"
|
|
7981
|
+
if (typeof e == "string") (0, n.default)((0, i.isHexBytes)(e), "Init bytes must be valid hex bytes"), this.bytes = e;
|
|
7982
|
+
else {
|
|
7983
|
+
let t = e instanceof r.BN ? e : new r.BN(e);
|
|
7984
|
+
this.bytes = t.toHex();
|
|
7985
|
+
}
|
|
7976
7986
|
}
|
|
7977
7987
|
get length() {
|
|
7978
7988
|
return Number(this.bytes.length / 2 - 1);
|
package/dist/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gera2ld/lib-dex",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@1inch/fusion-sdk": "^2.4.7",
|
|
24
24
|
"assert": "^2.1.0",
|
|
25
|
-
"@gera2ld/common": "^0.0.
|
|
25
|
+
"@gera2ld/common": "^0.0.6"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@project-serum/anchor": "^0.26.0",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"clean": "del-cli dist tsconfig.tsbuildinfo",
|
|
43
43
|
"build:types": "tsc",
|
|
44
44
|
"build:js": "vite build",
|
|
45
|
-
"build": "pnpm clean && pnpm /^build:/"
|
|
45
|
+
"build": "pnpm run clean && pnpm run /^build:/"
|
|
46
46
|
}
|
|
47
47
|
}
|