open-index/open-npm huggingface dataset:
npm package: @argent/login-react
Description: Official React component for Login with Argent
Author: Argent Labs
Latest version: 0.1.0-beta.4

# @argent/login-react

Official React package for @argent/login

## Setup

```sh
yarn add @argent/login-react
```

## Basic usage

```typescript
import React, { FC, useState } from "react";
import { ethers } from "ethers";
import { ArgentLoginButton, IEthereumProvider } from "@argent/login-react";

export const App: FC = () => {
  const [provider, setProvider] = useState<ethers.providers.Web3Provider>();

  const handleConnect = async (ethereumProvider: IEthereumProvider) => {
    const provider = new ethers.providers.Web3Provider(ethereumProvider);
    setProvider(provider);
  };

  const handleDisconnect = async () => {
    localStorage.removeItem("walletconnect"); // to make sure WC is disconnected
    setProvider(undefined);
  };

  return (
    <div>
      {!provider ? (
        <ArgentLoginButton
          options={{
            chainId: 280,
            rpcUrl: "https://zksync2-testnet.zksync.dev",
          }}
          onConnect={handleConnect}
          onError={console.error}
        />
      ) : (
        <>
          <h2>Connected as {provider.getSigner()._address}</h2>
          <p>
            <button onClick={handleDisconnect}>Disconnect</button>
          </p>
        </>
      )}
    </div>
  );
};
```

Full example [here](../dapp/index.tsx)
npm package: @argent/starknet-react-webwallet-connector
Description: `@argent/starknet-react-webwallet-connector` is a convenient package for integrating Argent's Web Wallet with StarkNet applications using the starknet-react library. This connector enables you to easily connect to the Argent Web Wallet for user authentica
Latest version: 6.6.0

# `starknet-react` connector for webwallet

`@argent/starknet-react-webwallet-connector` is a convenient package for integrating Argent's Web Wallet with StarkNet applications using the starknet-react library. This connector enables you to easily connect to the Argent Web Wallet for user authentication and StarkNet-based transactions.

## Installation

To install the `@argent/starknet-react-webwallet-connector`, use the following command:

```bash
npm install @argent/starknet-react-webwallet-connector
```

## Example with `starknet-react`

```typescript
import { WebWalletConnector } from "@argent/starknet-react-webwallet-connector";
import { InjectedConnector, StarknetConfig } from "@starknet-react/core";
import type { AppProps } from "next/app";

export default function App({ Component, pageProps }: AppProps) {
  const connectors = [
    new InjectedConnector({ options: { id: "argentX" } }),
    // ...

    new WebWalletConnector(),
    // or for testnet:
    new WebWalletConnector({ url: "https://web.hydrogen.argent47.net" }),
  ];

  return (
    <StarknetConfig autoConnect connectors={connectors}>
      <Component {...pageProps} />
    </StarknetConfig>
  );
}
```

## Usage explained

To use the `@argent/starknet-react-webwallet-connector` in your application, follow the steps below:

1. Import the necessary components:

```typescript
import { WebWalletConnector } from "@argent/starknet-react-webwallet-connector";
import { StarknetConfig } from "@starknet-react/core";
```

Add the WebWalletConnector to your existing connectors array, specifying the wallet URL:

```typescript
const connectors = [
  // ...your other connectors
  new WebWalletConnector({
    url: "https://web.hydrogen.argent47.net",
  }),
];
```

Wrap your app component with the StarknetConfig component, providing the connectors array:

```typescript
function App({ Component, pageProps }) {
  return (
    <StarknetConfig autoConnect connectors={connectors}>
      <Component {...pageProps} />
    </StarknetConfig>
  );
}
```

With these changes, your application will now be able to connect to the Argent Web Wallet for user authentication and StarkNet-based transactions.
npm package: @argoplatform/transfer-sdk
Description: Transfer SDK for Argo's APIs
Author: Argo
Latest version: 0.5.2

# Transfer SDK for Web Apps

The Transfer SDK is a comprehensive Web SDK that makes interaction with the Transfer API simple.

## Getting started

```
npm i @argoplatform/transfer-sdk
```

After installing, import as such:

```ts
import { Transfer } from "transfer-sdk";
```

To initialize:

```ts
// apiKey can be any value for now.
const settings = {
  apiKey: "DEMO",
};

const transfer = new Transfer(settings);
```

## Functionality

These are the currently supported functions with the Transfer SDK:

- `getSupportedChains`: returns a list of supported chains by the Transfer SDK.
- `getSupportedTokens`: returns a list of supported tokens within a given chain.
- `getTransfer`: returns route info and transaction request for a requested transfer.
- `execute`: performs the transfer.

### getSupportedChains()

```ts
const supportedChains = await transfer.getSupportedChains();
```

Returns an Array of SupportedChain object:

```ts
{
  name: string;
  chainId: number;
  logoURI?: string;
  isTestnet: boolean;
}
```

### getSupportedTokens()

```ts
const supportedChains = await transfer.getSupportedTokens(chainId?);
```

`chainId` is the ID `number` of the chain you want the supported tokens from.
If no `chainId` is provided, it will return all the supported tokens for every chain.

Returns an Array of SupportedToken object:

```ts
{
  name: string;
  chainId: number;
  address: string;
  decimals: number;
  logoURI?: string;
}
```

### getTransfer()

Returns `transactionRequest` and `routeInfo`.
Make sure to multiply the amount by the `10 ^ fromToken.decimals`

```ts
const txnBody = await transfer.getTransfer(TransferRequest);
```

`TransferRequest` parameter:

```ts
{
  qty: string; // amount of `srcChainToken` transferring
  srcChainId: string; // eg 5 for ETH Goerli
  dstChainId: string;
  srcChainTokenAddress: string; // erc20 token address
  dstChainTokenAddress: string;
  fromAddress: string;
  toAddress: string;
}
```

Returns `TransferResult`:

```ts
{
  bestRoute: Route;
  alternateRoutes: Route[];
}
```

Route interface:

```ts
{
  dstAmountEstimate: number;
  dstChainSwapDexs: Dex[];
  srcChainSwapDexs: Dex[];
  bridgeInfo: BridgeInfo;
  transactionRequest: TransactionRequest; // ethers.js TransactionRequest object
  approvalInfo: {
    srcChainContractToApprove: string;
    srcChainTokenAddress: string;
    srcChainTokenAmount: number;
  };
}
```

Dex interface:

```ts
{
  name: string;
  logoURI?: string;
}
```

BridgeInfo interface:

```ts
{
  name: string;
  logoURI?: string;
}
```
npm package: @argos-ci/mask-fingerprint-darwin-arm64
Description: Fast, deterministic visual diff fingerprinting for PNG images, exposed as a Node.js native module via N-API.
Latest version: 0.1.3

# `@argos-ci/mask-fingerprint-darwin-arm64`

This is the **aarch64-apple-darwin** binary for `@argos-ci/mask-fingerprint`