@stable-io/cctp-sdk-cctpr-definitions
Version:
Definitions for the CCTPR corridor of the CCTP SDK
19 lines • 868 B
JavaScript
// Copyright (c) 2025 Stable Technologies Inc
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
export const getCorridors = (network) => async function (sourceDomain, destinationDomain, gasDropoff) {
//overloaded: requires amount but only if S is a v2 chain (and not Avalanche)
//TODO impl
//check if gas dropoff is supported and below max
return await Promise.resolve([]);
};
// export async function* transfer<
// const S extends SupportedDomain,
// const D extends SupportedDomain,
// //... provider<S>,
// >(sourceDomain: S, destinationDomain: D, amount: number):
// Promise<AsyncGenerator<WalletInteractionPrepper<PlatformOf<S>>>> {
// yield 1;
// }
//# sourceMappingURL=transfer.js.map