@vleap/warps-adapter-fastset 0.1.0-alpha.34 → 0.1.0-alpha.36
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.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,9 @@ var __export = (target, all) => {
|
|
|
7
7
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
8
|
|
|
9
9
|
// src/main.ts
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
WarpChainName
|
|
12
|
+
} from "@vleap/warps";
|
|
11
13
|
|
|
12
14
|
// src/helpers/encode.ts
|
|
13
15
|
var encoder = new TextEncoder();
|
|
@@ -1883,7 +1885,7 @@ var WarpFastsetResults = class {
|
|
|
1883
1885
|
actionIndex,
|
|
1884
1886
|
inputs,
|
|
1885
1887
|
this.serializer.coreSerializer,
|
|
1886
|
-
this.config
|
|
1888
|
+
this.config
|
|
1887
1889
|
)
|
|
1888
1890
|
};
|
|
1889
1891
|
}
|
|
@@ -2931,14 +2933,13 @@ var NativeTokenSet = {
|
|
|
2931
2933
|
decimals: 0,
|
|
2932
2934
|
logoUrl: "https://vleap.ai/images/tokens/set.svg"
|
|
2933
2935
|
};
|
|
2934
|
-
function createFastsetAdapter(chainName,
|
|
2936
|
+
function createFastsetAdapter(chainName, chainInfos) {
|
|
2935
2937
|
return (config, fallback) => {
|
|
2936
2938
|
const chainInfo = chainInfos[config.env];
|
|
2937
2939
|
if (!chainInfo) throw new Error(`FastsetAdapter: chain info not found for chain ${chainName}`);
|
|
2938
2940
|
if (!fallback) throw new Error("Fastset adapter requires a fallback adapter");
|
|
2939
2941
|
return {
|
|
2940
2942
|
chainInfo,
|
|
2941
|
-
prefix: chainPrefix,
|
|
2942
2943
|
builder: () => fallback.builder(),
|
|
2943
2944
|
executor: new WarpFastsetExecutor(config, chainInfo),
|
|
2944
2945
|
results: new WarpFastsetResults(config, chainInfo),
|
|
@@ -2952,7 +2953,7 @@ function createFastsetAdapter(chainName, chainPrefix, chainInfos) {
|
|
|
2952
2953
|
};
|
|
2953
2954
|
};
|
|
2954
2955
|
}
|
|
2955
|
-
var getFastsetAdapter = createFastsetAdapter(WarpChainName.Fastset,
|
|
2956
|
+
var getFastsetAdapter = createFastsetAdapter(WarpChainName.Fastset, {
|
|
2956
2957
|
mainnet: {
|
|
2957
2958
|
name: WarpChainName.Fastset,
|
|
2958
2959
|
displayName: "FastSet",
|