5.0.0 • Published 9 months ago

@shadow-drive/sdk v5.0.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
9 months 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 "@coral-xyz/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}", "confirmed");
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
5.0.0

9 months ago

4.1.0

9 months ago

4.0.3

10 months ago

4.0.2

11 months ago

4.0.1-beta.0

11 months ago

4.0.1

12 months ago

4.0.0

12 months ago

4.0.0-rc1

12 months ago

3.3.0

1 year ago

3.2.2

1 year ago

3.2.1

1 year ago

3.2.0

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.10

1 year ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.4

2 years ago

2.1.0-beta.1

2 years ago

3.0.3

2 years ago

2.1.0-beta.0

2 years ago

3.0.2

2 years ago

2.1.0-beta.3

2 years ago

3.0.1

2 years ago

2.1.0-beta.2

2 years ago

2.1.0-beta.4

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.0

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

3.0.5-beta.0

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago