@vleap/warps-adapter-fastset 0.1.0-alpha.33 → 0.1.0-alpha.35
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 +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- 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();
|
|
@@ -23,7 +25,7 @@ function stringToUint8Array(str) {
|
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
// src/helpers/general.ts
|
|
26
|
-
import {
|
|
28
|
+
import { getProviderConfig } from "@vleap/warps";
|
|
27
29
|
|
|
28
30
|
// src/sdk/FastsetClient.ts
|
|
29
31
|
import * as bech32 from "bech32";
|
|
@@ -1466,8 +1468,8 @@ var FastsetClient = class {
|
|
|
1466
1468
|
|
|
1467
1469
|
// src/helpers/general.ts
|
|
1468
1470
|
var getConfiguredFastsetClient = (config, chain2) => {
|
|
1469
|
-
const
|
|
1470
|
-
return new FastsetClient(
|
|
1471
|
+
const providerConfig = getProviderConfig(config, chain2.name, config.env, chain2.defaultApiUrl);
|
|
1472
|
+
return new FastsetClient(providerConfig.url);
|
|
1471
1473
|
};
|
|
1472
1474
|
|
|
1473
1475
|
// src/tokens/fastset.ts
|
|
@@ -2931,15 +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
|
-
chain: chainName,
|
|
2941
2942
|
chainInfo,
|
|
2942
|
-
prefix: chainPrefix,
|
|
2943
2943
|
builder: () => fallback.builder(),
|
|
2944
2944
|
executor: new WarpFastsetExecutor(config, chainInfo),
|
|
2945
2945
|
results: new WarpFastsetResults(config, chainInfo),
|
|
@@ -2953,7 +2953,7 @@ function createFastsetAdapter(chainName, chainPrefix, chainInfos) {
|
|
|
2953
2953
|
};
|
|
2954
2954
|
};
|
|
2955
2955
|
}
|
|
2956
|
-
var getFastsetAdapter = createFastsetAdapter(WarpChainName.Fastset,
|
|
2956
|
+
var getFastsetAdapter = createFastsetAdapter(WarpChainName.Fastset, {
|
|
2957
2957
|
mainnet: {
|
|
2958
2958
|
name: WarpChainName.Fastset,
|
|
2959
2959
|
displayName: "FastSet",
|