open-index/open-npm huggingface dataset:
npm package: @moveindustries/cross-chain-core
Description: Movement Cross Chain Core
Author: movementlabs.xyz
Latest version: 5.4.12

# Aptos Cross Chain CCTP

A wrapper for CCTP cross chain transactions.

#### Supported Providers

- Wormhole

### Usage

Install the `@movement-labs/cross-chain-core` package

```cli
pnpm i @movement-labs/cross-chain-core
```

Import the `CrossChainCore` class

```ts
import { CrossChainCore } from "@movement-labs/cross-chain-core";
```

Initialize `CrossChainCore` and chosen provider

```ts
const crossChainCore = new CrossChainCore({
  dappConfig: { aptosNetwork: dappNetwork },
});

const provider = crossChainCore.getProvider("Wormhole");
```

Once you have your provider setup, you can use it to query for:

- `getQuote` can be used to calculate the cost and parameters for transferring tokens between different blockchain networks using the provider's cross-chain bridge.

```ts
const quote = await provider?.getQuote({
  // How much to transfer
  amount,
  // The origin network involved (besides Aptos, e.g Solana, Ethereum)
  originChain: sourceChain,
  // The transaction type:
  // transfer - transfer funds from a cross chain (Solana, Ethereum) wallet to Aptos
  // withdraw - transfer funds from an Aptos wallet to a cross chain (Solana, Ethereum) wallet
  type: "transfer",
});
```

The function returns pricing, fees, and transfer details needed to execute the cross-chain transaction.

- `transfer` can be used to initiate a transfer of USDC funds from the source chain wallet to Aptos wallet

```ts
const { originChainTxnId, destinationChainTxnId } = await provider.transfer({
  // The blockchain to transfer from
  sourceChain,
  // The source chain wallet to sign the transfer transaction
  wallet,
  // The destination address for the funds to go to
  destinationAddress: account?.address?.toString() ?? "",
  // The wallet/signer for the destination (Aptos) chain
  mainSigner,
  // (optional) Account to sponsor gas fees
  sponsorAccount,
});
```

This function returns:
`originChainTxnId`: Transaction hash on the source chain
`destinationChainTxnId`: Transaction hash on the Aptos destination chain

- `withdraw` can be used to initiate a transfer of USDC funds an Aptos wallet to the destination chain wallet

```ts
const { originChainTxnId, destinationChainTxnId } = await provider.withdraw({
  // The blockchain to transfer from
  sourceChain,
  // The source chain wallet to sign the transfer transaction
  wallet,
  // The destination address for the funds to go to
  destinationAddress: originWalletDetails?.address.toString(),
  // (optional) Account to sponsor gas fees
  sponsorAccount,
});
```

This function returns:
`originChainTxnId`: Transaction hash on the source chain
`destinationChainTxnId`: Transaction hash on the Aptos destination chain
npm package: @moveindustries/movement-cli
Description: Movement CLI available from npmjs
Author: Move Industries
Latest version: 1.1.0

# Movement CLI

> [!NOTE]
> This Movement CLI repo is forked from github.com/aptos-labs prior to the date on which the Aptos Foundation implemented its Innovation-Enabling Source Code License in substitution for the prior Apache License, Version 2.0  governing this repository. 
>
> Move Industries continues to maintain, develop, modify, and distribute this repository solely under the Apache License, Version 2.0, as existed at the time of the fork and without application of the license instituted by the Aptos Foundation.
npm package: @moveindustries/movement-client
Description: Client package for accessing the Movement network API.
Author: Move Industries
Latest version: 2.0.0

![License][github-license]
[![NPM Package Version][npm-image-version]][npm-url]
![Node Version](https://img.shields.io/node/v/%40moveindustries%2Fmovement-client)
![NPM bundle size](https://img.shields.io/bundlephobia/min/%40moveindustries/movement-client)
[![NPM Package Downloads][npm-image-downloads]][npm-url]

# Movement Client

> [!NOTE]
> This Movement Client repo is forked from github.com/aptos-labs prior to the date on which the Movement Foundation implemented its Innovation-Enabling Source Code License in substitution for the prior Apache License, Version 2.0  governing this repository. 
>
> Move Industries continues to maintain, develop, modify, and distribute this repository solely under the Apache License, Version 2.0, as existed at the time of the fork and without application of the license instituted by the Movement Foundation.
npm package: @moveindustries/wallet-adapter-ant-design
Description: Movement Wallet Adapter ant-design
Author: movementlabs.xyz
Latest version: 5.4.4

# Movement Wallet Adapter Selector Ant Design

Package for wallet selector modal using [Ant Design](https://ant.design/). Includes a `wallet connect` button when clicked, opens up a `wallet select modal`.

If wallet is already connected, the button would display the connected account address truncated (i.e `0x123...abc`), in that case, clicking the button would disconnect the wallet.

### Usage

Make sure you have [@movement-labs/wallet-adapter-react](../wallet-adapter-react/README.md) installed

```
npm install @movement-labs/wallet-adapter-ant-design
```

on `index.tsx` / `_app.tsx` import the `ant-design` package `.css` file as

```
// If you use a local css file in your app, import it before the package's file as order matters
import "./my-style-file.css";

import "@movement-labs/wallet-adapter-ant-design/dist/index.css";
```

On the page you want to include the `wallet connect` button, import the `WalletSelector` module.

```
import { WalletSelector } from "@movement-labs/wallet-adapter-ant-design";
...
return (
  <WalletSelector />
)
```

That would add a `Connect Wallet` button when clicked opens up a `wallet selector` modal.

#### Override styles

You can override these classes

```
.wallet-selector-modal
.wallet-selector-icon
.wallet-selector-text
.wallet-menu-wrapper
.wallet-name-wrapper
.wallet-connect-button
.wallet-connect-install
.wallet-button
.wallet-modal-title
.aptos-connect-button
.aptos-connect-privacy-policy-wrapper
.aptos-connect-privacy-policy-text
.aptos-connect-privacy-policy-link
.aptos-connect-powered-by
.about-aptos-connect-trigger-wrapper
.about-aptos-connect-trigger
.about-aptos-connect-header
.about-aptos-connect-graphic-wrapper
.about-aptos-connect-text-wrapper
.about-aptos-connect-title
.about-aptos-connect-description
.about-aptos-connect-footer-wrapper
.about-aptos-connect-screen-indicators-wrapper
.about-aptos-connect-screen-indicator
```

For example, to override the `connect wallet` button background color, you can use the `.wallet-button` class in your local `.css` file

```
.wallet-button{
  background-color: red;
}
```

![walletSelector](../../walletselector.png)
npm package: @moveindustries/wallet-adapter-core
Description: Movement Wallet Adapter Core
Author: movementlabs.xyz
Latest version: 7.11.4

# Movement Wallet Adapter core functionality

The core functionality for the wallet adapter that holds and manages the adapter state, validations and interaction with the current connected wallet.

### Usage

```ts
import { WalletCore } from "@movement-labs/wallet-adapter-core";

const walletCore = new WalletCore([], dappConfig);

const wallets = walletCore.wallets();
```
npm package: @moveindustries/wallet-standard
Description: Movement wallet standard
Latest version: 0.6.0

# Movement Wallet Standard

> [!NOTE]
> This Movement Client repo is forked from github.com/aptos-labs prior to the date on which the Movement Foundation implemented its Innovation-Enabling Source Code License in substitution for the prior Apache License, Version 2.0  governing this repository. 
>
> Move Industries continues to maintain, develop, modify, and distribute this repository solely under the Apache License, Version 2.0, as existed at the time of the fork and without application of the license instituted by the Aptos Foundation.

The Movement Wallet Standard defines APIs for wallet and application interactions for the Movement ecosystem.

It is based on a general [Wallet Standard](https://github.com/wallet-standard/wallet-standard) which is is a chain-agnostic set of interfaces and conventions that aim to improve how applications interact with injected wallets.

## Code

- [MovementWallet](./src/wallet.ts) and [MovementWalletAccount](./src/account.ts) interfaces
- Wallet [registerWallet](https://github.com/wallet-standard/wallet-standard/blob/master/packages/core/wallet/src/register.ts#L25) function
- App [getMovementWallets](./src/detect.ts) function
- Example of a [wallet integration](./example/basic/wallet.ts)