@joai/warps-adapter-fastset 1.1.0 → 1.1.2
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +16 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChainAdapterFactory, WarpChainAsset, AdapterWarpExecutor, WarpClientConfig, WarpChainInfo, WarpExecutable, WarpAdapterGenericTransaction, AdapterWarpWallet, WarpWalletDetails, WarpWalletProvider } from '@joai/warps';
|
|
2
2
|
|
|
3
3
|
declare const NativeTokenSet: WarpChainAsset;
|
|
4
4
|
declare const FastsetAdapter: ChainAdapterFactory;
|
|
@@ -12,6 +12,8 @@ declare class WarpFastsetExecutor implements AdapterWarpExecutor {
|
|
|
12
12
|
createTransferTransaction(executable: WarpExecutable): Promise<WarpAdapterGenericTransaction>;
|
|
13
13
|
createContractCallTransaction(executable: WarpExecutable): Promise<any>;
|
|
14
14
|
executeQuery(executable: WarpExecutable): Promise<any>;
|
|
15
|
+
createDeployTransaction(): Promise<never>;
|
|
16
|
+
createUpgradeTransaction(): Promise<never>;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
declare class WarpFastsetWallet implements AdapterWarpWallet {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChainAdapterFactory, WarpChainAsset, AdapterWarpExecutor, WarpClientConfig, WarpChainInfo, WarpExecutable, WarpAdapterGenericTransaction, AdapterWarpWallet, WarpWalletDetails, WarpWalletProvider } from '@joai/warps';
|
|
2
2
|
|
|
3
3
|
declare const NativeTokenSet: WarpChainAsset;
|
|
4
4
|
declare const FastsetAdapter: ChainAdapterFactory;
|
|
@@ -12,6 +12,8 @@ declare class WarpFastsetExecutor implements AdapterWarpExecutor {
|
|
|
12
12
|
createTransferTransaction(executable: WarpExecutable): Promise<WarpAdapterGenericTransaction>;
|
|
13
13
|
createContractCallTransaction(executable: WarpExecutable): Promise<any>;
|
|
14
14
|
executeQuery(executable: WarpExecutable): Promise<any>;
|
|
15
|
+
createDeployTransaction(): Promise<never>;
|
|
16
|
+
createUpgradeTransaction(): Promise<never>;
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
declare class WarpFastsetWallet implements AdapterWarpWallet {
|
package/dist/index.js
CHANGED
|
@@ -210,11 +210,11 @@ function radix(num) {
|
|
|
210
210
|
var genBase58 = /* @__NO_SIDE_EFFECTS__ */ (abc) => /* @__PURE__ */ chain(/* @__PURE__ */ radix(58), /* @__PURE__ */ alphabet(abc), /* @__PURE__ */ join(""));
|
|
211
211
|
var base58 = /* @__PURE__ */ genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");
|
|
212
212
|
|
|
213
|
-
// node_modules/@mysten/utils/dist/esm/b58.js
|
|
213
|
+
// ../../node_modules/@mysten/utils/dist/esm/b58.js
|
|
214
214
|
var toBase58 = (buffer) => base58.encode(buffer);
|
|
215
215
|
var fromBase58 = (str) => base58.decode(str);
|
|
216
216
|
|
|
217
|
-
// node_modules/@mysten/utils/dist/esm/b64.js
|
|
217
|
+
// ../../node_modules/@mysten/utils/dist/esm/b64.js
|
|
218
218
|
function fromBase64(base64String) {
|
|
219
219
|
return Uint8Array.from(atob(base64String), (char) => char.charCodeAt(0));
|
|
220
220
|
}
|
|
@@ -231,7 +231,7 @@ function toBase64(bytes) {
|
|
|
231
231
|
return btoa(output);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
// node_modules/@mysten/utils/dist/esm/hex.js
|
|
234
|
+
// ../../node_modules/@mysten/utils/dist/esm/hex.js
|
|
235
235
|
function fromHex(hexStr) {
|
|
236
236
|
const normalized = hexStr.startsWith("0x") ? hexStr.slice(2) : hexStr;
|
|
237
237
|
const padded = normalized.length % 2 === 0 ? normalized : `0${normalized}`;
|
|
@@ -245,7 +245,7 @@ function toHex(bytes) {
|
|
|
245
245
|
return bytes.reduce((str, byte) => str + byte.toString(16).padStart(2, "0"), "");
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
// node_modules/@mysten/bcs/dist/esm/uleb.js
|
|
248
|
+
// ../../node_modules/@mysten/bcs/dist/esm/uleb.js
|
|
249
249
|
function ulebEncode(num) {
|
|
250
250
|
let bigNum = BigInt(num);
|
|
251
251
|
const arr = [];
|
|
@@ -288,7 +288,7 @@ function ulebDecode(arr) {
|
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
// node_modules/@mysten/bcs/dist/esm/reader.js
|
|
291
|
+
// ../../node_modules/@mysten/bcs/dist/esm/reader.js
|
|
292
292
|
var BcsReader = class {
|
|
293
293
|
/**
|
|
294
294
|
* @param {Uint8Array} data Data to use as a buffer.
|
|
@@ -401,7 +401,7 @@ var BcsReader = class {
|
|
|
401
401
|
}
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
-
// node_modules/@mysten/bcs/dist/esm/utils.js
|
|
404
|
+
// ../../node_modules/@mysten/bcs/dist/esm/utils.js
|
|
405
405
|
function encodeStr(data, encoding) {
|
|
406
406
|
switch (encoding) {
|
|
407
407
|
case "base58":
|
|
@@ -415,7 +415,7 @@ function encodeStr(data, encoding) {
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
// node_modules/@mysten/bcs/dist/esm/writer.js
|
|
418
|
+
// ../../node_modules/@mysten/bcs/dist/esm/writer.js
|
|
419
419
|
var BcsWriter = class {
|
|
420
420
|
constructor({
|
|
421
421
|
initialSize = 1024,
|
|
@@ -587,7 +587,7 @@ function toLittleEndian(bigint, size) {
|
|
|
587
587
|
return result;
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
// node_modules/@mysten/bcs/dist/esm/bcs-type.js
|
|
590
|
+
// ../../node_modules/@mysten/bcs/dist/esm/bcs-type.js
|
|
591
591
|
var __typeError = (msg) => {
|
|
592
592
|
throw TypeError(msg);
|
|
593
593
|
};
|
|
@@ -936,7 +936,7 @@ var BcsTuple = class extends BcsType {
|
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
938
|
|
|
939
|
-
// node_modules/@mysten/bcs/dist/esm/bcs.js
|
|
939
|
+
// ../../node_modules/@mysten/bcs/dist/esm/bcs.js
|
|
940
940
|
function fixedArray(size, type, options) {
|
|
941
941
|
return new BcsType({
|
|
942
942
|
read: (reader) => {
|
|
@@ -1724,6 +1724,12 @@ var WarpFastsetExecutor = class {
|
|
|
1724
1724
|
async executeQuery(executable) {
|
|
1725
1725
|
throw new Error("WarpFastsetExecutor: Not implemented");
|
|
1726
1726
|
}
|
|
1727
|
+
async createDeployTransaction() {
|
|
1728
|
+
throw new Error("WarpFastsetExecutor: Contract deployment not supported");
|
|
1729
|
+
}
|
|
1730
|
+
async createUpgradeTransaction() {
|
|
1731
|
+
throw new Error("WarpFastsetExecutor: Contract upgrade not supported");
|
|
1732
|
+
}
|
|
1727
1733
|
};
|
|
1728
1734
|
|
|
1729
1735
|
// src/WarpFastsetExplorer.ts
|
|
@@ -1868,7 +1874,7 @@ var WarpFastsetOutput = class {
|
|
|
1868
1874
|
this.chain = chain2;
|
|
1869
1875
|
this.serializer = new WarpFastsetSerializer();
|
|
1870
1876
|
}
|
|
1871
|
-
async getActionExecution(warp, actionIndex, tx) {
|
|
1877
|
+
async getActionExecution(warp, actionIndex, tx, _resolvedInputs) {
|
|
1872
1878
|
const success = this.isTransactionSuccessful(tx);
|
|
1873
1879
|
const transactionHash = this.extractTransactionHash(tx);
|
|
1874
1880
|
const blockNumber = this.extractBlockNumber(tx);
|