@folks-finance/xchain-sdk 0.0.11 → 0.0.12
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,4 +1,4 @@
|
|
|
1
1
|
import { AdapterType } from "../types/message.js";
|
|
2
|
-
export declare const TOKEN_ADAPTERS: AdapterType
|
|
3
|
-
export declare const DATA_ADAPTERS: AdapterType
|
|
4
|
-
export declare const HUB_ADAPTERS: AdapterType
|
|
2
|
+
export declare const TOKEN_ADAPTERS: readonly [AdapterType.WORMHOLE_CCTP, AdapterType.CCIP_TOKEN];
|
|
3
|
+
export declare const DATA_ADAPTERS: readonly [AdapterType.WORMHOLE_DATA, AdapterType.CCIP_DATA];
|
|
4
|
+
export declare const HUB_ADAPTERS: readonly [AdapterType.HUB];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../src/common/constants/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,WAAW,CAAC,aAAa,EAAE,WAAW,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../src/common/constants/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,WAAW,CAAC,aAAa,EAAE,WAAW,CAAC,UAAU,CAAU,CAAC;AAC3F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,WAAW,CAAC,aAAa,EAAE,WAAW,CAAC,SAAS,CAAU,CAAC;AACzF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,WAAW,CAAC,GAAG,CAAU,CAAC"}
|
|
@@ -6,6 +6,9 @@ export declare function assertAdapterSupportsDataMessage(folksChainId: FolksChai
|
|
|
6
6
|
export declare function doesAdapterSupportTokenMessage(folksChainId: FolksChainId, adapterId: AdapterType): boolean;
|
|
7
7
|
export declare function assertAdapterSupportsTokenMessage(folksChainId: FolksChainId, adapterId: AdapterType): void;
|
|
8
8
|
export declare function getSupportedMessageAdapters(params: MessageAdapterParams): {
|
|
9
|
-
adapterIds: AdapterType[];
|
|
9
|
+
adapterIds: readonly [AdapterType.WORMHOLE_CCTP, AdapterType.CCIP_TOKEN] | readonly [AdapterType.WORMHOLE_DATA, AdapterType.CCIP_DATA] | readonly [AdapterType.HUB];
|
|
10
10
|
returnAdapterIds: AdapterType[];
|
|
11
|
+
} | {
|
|
12
|
+
adapterIds: readonly [AdapterType.WORMHOLE_CCTP, AdapterType.CCIP_TOKEN] | readonly [AdapterType.WORMHOLE_DATA, AdapterType.CCIP_DATA] | readonly [AdapterType.HUB];
|
|
13
|
+
returnAdapterIds: readonly [AdapterType.WORMHOLE_CCTP, AdapterType.CCIP_TOKEN] | readonly [AdapterType.WORMHOLE_DATA, AdapterType.CCIP_DATA] | readonly [AdapterType.HUB];
|
|
11
14
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdapterType } from "../types/message.js";
|
|
2
2
|
|
|
3
|
-
export const TOKEN_ADAPTERS = [AdapterType.WORMHOLE_CCTP, AdapterType.CCIP_TOKEN];
|
|
4
|
-
export const DATA_ADAPTERS = [AdapterType.WORMHOLE_DATA, AdapterType.CCIP_DATA];
|
|
5
|
-
export const HUB_ADAPTERS = [AdapterType.HUB];
|
|
3
|
+
export const TOKEN_ADAPTERS = [AdapterType.WORMHOLE_CCTP, AdapterType.CCIP_TOKEN] as const;
|
|
4
|
+
export const DATA_ADAPTERS = [AdapterType.WORMHOLE_DATA, AdapterType.CCIP_DATA] as const;
|
|
5
|
+
export const HUB_ADAPTERS = [AdapterType.HUB] as const;
|