3.2.0 • Published 3 years ago

react-native-shadow-drive v3.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Typescript components for Shadow Drive.

Quick Setup

Install

Install these dependencies:

yarn add @shadow-drive/sdk

Setup (React)

import React, { useEffect } from "react";
import * as anchor from "@project-serum/anchor";
import { ShdwDrive } from "@shadow-drive/sdk";
import {
    AnchorWallet,
    useAnchorWallet,
    useConnection,
} from "@solana/wallet-adapter-react";

export default function Drive() {
    const { connection } = useConnection();
    const wallet = useAnchorWallet();
    useEffect(() => {
        (async () => {
            if (wallet?.publicKey) {
                const drive = await new ShdwDrive(connection, wallet).init();
            }
        })();
    }, [wallet?.publicKey]);
    return <div></div>;
}

Setup (NodeJS)

import { ShdwDrive } from "@shadow-drive/sdk";
import * as web3 from "@solana/web3.js";
const connection = new web3.Connection("{rpc-url}", "processed");
const drive = await new ShdwDrive(connection, wallet).init();

Examples

packagedescription
reactUsing shadow-drive in a react/browser environment

Build From Source

  1. Clone the project:
git clone https://github.com/genesysgo/shadow-drive.git
  1. Install dependencies:
cd shadow-drive
yarn install
3.1.9

3 years ago

3.2.0

3 years ago

3.1.8

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.9991

4 years ago

3.0.999

4 years ago

3.0.998

4 years ago

3.0.997

4 years ago

3.0.996

4 years ago

3.0.995

4 years ago

3.0.994

4 years ago

3.0.993

4 years ago

3.0.992

4 years ago

3.0.991

4 years ago

3.0.98

4 years ago

3.0.97

4 years ago

3.0.96

4 years ago

3.0.95

4 years ago

3.0.94

4 years ago

3.0.93

4 years ago

3.0.92

4 years ago

3.0.91

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago