From e55617cddf86195c76f808e2d9fae14fe49488b9 Mon Sep 17 00:00:00 2001 From: imsk17 Date: Thu, 17 Oct 2024 22:35:41 +0530 Subject: [PATCH] feat(aptos): add to config --- src/factory/config.ts | 8 ++++++++ src/handlers/aptos/types.ts | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/factory/config.ts b/src/factory/config.ts index 8fac2099..ce452ce2 100644 --- a/src/factory/config.ts +++ b/src/factory/config.ts @@ -1,3 +1,4 @@ +import { Network } from "@aptos-labs/ts-sdk"; import { HttpAgent } from "@dfinity/agent"; import { Principal } from "@dfinity/principal"; import { ProxyNetworkProvider } from "@multiversx/sdk-network-providers/out"; @@ -135,6 +136,13 @@ export namespace ChainFactoryConfigs { royaltySalePrice: 10000, storage, }, + aptosParams: { + bridge: + "eea0db4fdc3d8915808c67268a668f3ee0810e864a40b4bde6c371b09337250a", + identifier: "APTOS", + network: Network.TESTNET, + storage, + }, } satisfies Partial; } diff --git a/src/handlers/aptos/types.ts b/src/handlers/aptos/types.ts index 6fec6d99..443fe469 100644 --- a/src/handlers/aptos/types.ts +++ b/src/handlers/aptos/types.ts @@ -1,5 +1,9 @@ -import { Account, Aptos, PendingTransactionResponse } from "@aptos-labs/ts-sdk"; -import { Network } from "aptos"; +import { + Account, + Aptos, + Network, + PendingTransactionResponse, +} from "@aptos-labs/ts-sdk"; import { BridgeStorage } from "../../contractsTypes/evm"; import { DeployNFTCollection, MintNft, TNftChain } from "../types"; import { TClaimData } from "./bridge-client";