@joai/warps-adapter-fastset 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -175,11 +175,11 @@ function radix(num) {
|
|
|
175
175
|
var genBase58 = /* @__NO_SIDE_EFFECTS__ */ (abc) => /* @__PURE__ */ chain(/* @__PURE__ */ radix(58), /* @__PURE__ */ alphabet(abc), /* @__PURE__ */ join(""));
|
|
176
176
|
var base58 = /* @__PURE__ */ genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");
|
|
177
177
|
|
|
178
|
-
// node_modules/@mysten/utils/dist/esm/b58.js
|
|
178
|
+
// ../../node_modules/@mysten/utils/dist/esm/b58.js
|
|
179
179
|
var toBase58 = (buffer) => base58.encode(buffer);
|
|
180
180
|
var fromBase58 = (str) => base58.decode(str);
|
|
181
181
|
|
|
182
|
-
// node_modules/@mysten/utils/dist/esm/b64.js
|
|
182
|
+
// ../../node_modules/@mysten/utils/dist/esm/b64.js
|
|
183
183
|
function fromBase64(base64String) {
|
|
184
184
|
return Uint8Array.from(atob(base64String), (char) => char.charCodeAt(0));
|
|
185
185
|
}
|
|
@@ -196,7 +196,7 @@ function toBase64(bytes) {
|
|
|
196
196
|
return btoa(output);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
// node_modules/@mysten/utils/dist/esm/hex.js
|
|
199
|
+
// ../../node_modules/@mysten/utils/dist/esm/hex.js
|
|
200
200
|
function fromHex(hexStr) {
|
|
201
201
|
const normalized = hexStr.startsWith("0x") ? hexStr.slice(2) : hexStr;
|
|
202
202
|
const padded = normalized.length % 2 === 0 ? normalized : `0${normalized}`;
|
|
@@ -210,7 +210,7 @@ function toHex(bytes) {
|
|
|
210
210
|
return bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, "0"), "");
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
// node_modules/@mysten/bcs/dist/esm/uleb.js
|
|
213
|
+
// ../../node_modules/@mysten/bcs/dist/esm/uleb.js
|
|
214
214
|
function ulebEncode(num) {
|
|
215
215
|
let bigNum = BigInt(num);
|
|
216
216
|
const arr = [];
|
|
@@ -253,7 +253,7 @@ function ulebDecode(arr) {
|
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
// node_modules/@mysten/bcs/dist/esm/reader.js
|
|
256
|
+
// ../../node_modules/@mysten/bcs/dist/esm/reader.js
|
|
257
257
|
var BcsReader = class {
|
|
258
258
|
/**
|
|
259
259
|
* @param {Uint8Array} data Data to use as a buffer.
|
|
@@ -366,7 +366,7 @@ var BcsReader = class {
|
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
368
|
|
|
369
|
-
// node_modules/@mysten/bcs/dist/esm/utils.js
|
|
369
|
+
// ../../node_modules/@mysten/bcs/dist/esm/utils.js
|
|
370
370
|
function encodeStr(data, encoding) {
|
|
371
371
|
switch (encoding) {
|
|
372
372
|
case "base58":
|
|
@@ -380,7 +380,7 @@ function encodeStr(data, encoding) {
|
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
// node_modules/@mysten/bcs/dist/esm/writer.js
|
|
383
|
+
// ../../node_modules/@mysten/bcs/dist/esm/writer.js
|
|
384
384
|
var BcsWriter = class {
|
|
385
385
|
constructor({
|
|
386
386
|
initialSize = 1024,
|
|
@@ -552,7 +552,7 @@ function toLittleEndian(bigint, size) {
|
|
|
552
552
|
return result;
|
|
553
553
|
}
|
|
554
554
|
|
|
555
|
-
// node_modules/@mysten/bcs/dist/esm/bcs-type.js
|
|
555
|
+
// ../../node_modules/@mysten/bcs/dist/esm/bcs-type.js
|
|
556
556
|
var __typeError = (msg) => {
|
|
557
557
|
throw TypeError(msg);
|
|
558
558
|
};
|
|
@@ -901,7 +901,7 @@ var BcsTuple = class extends BcsType {
|
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
903
|
|
|
904
|
-
// node_modules/@mysten/bcs/dist/esm/bcs.js
|
|
904
|
+
// ../../node_modules/@mysten/bcs/dist/esm/bcs.js
|
|
905
905
|
function fixedArray(size, type, options) {
|
|
906
906
|
return new BcsType({
|
|
907
907
|
read: (reader) => {
|
|
@@ -1843,7 +1843,7 @@ var WarpFastsetOutput = class {
|
|
|
1843
1843
|
this.chain = chain2;
|
|
1844
1844
|
this.serializer = new WarpFastsetSerializer();
|
|
1845
1845
|
}
|
|
1846
|
-
async getActionExecution(warp, actionIndex, tx) {
|
|
1846
|
+
async getActionExecution(warp, actionIndex, tx, _resolvedInputs) {
|
|
1847
1847
|
const success = this.isTransactionSuccessful(tx);
|
|
1848
1848
|
const transactionHash = this.extractTransactionHash(tx);
|
|
1849
1849
|
const blockNumber = this.extractBlockNumber(tx);
|