0.3.26 • Published 2 months ago

@spyre-io/js v0.3.26

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Spyre JS SDK

A typescript and react module for building games on Spyre. This library provides a simple interface for interaction between the Thirdweb SDK, TanStack Query, Nakama SDK, and Spyre-specific hooks for game wallet interaction.

Quickstart

import { SpyreClientProvider } from "@spyre-io/js";

function Example() {
 return (
   <SpyreClientProvider
    config={{
      thirdweb: {
        clientId: "Thirdweb Client Id",
        metadata: {}, // thirdweb app metadata
      },
      name: "Base Mainnet",
      chainId: 8453,
      contracts: {
        staking: { addr: "Game Wallet Address" },
        usdc: { addr: "USDC Address" },
      },
      network: base,
      blockExplorer: 'https://basescan.org',
    }}>
     <App />
  </SpyreClientProvider>
  );
}

Development Quickstart

pnpm install
pnpm dev

License

This project is open-source and available under the MIT License.

0.3.9

6 months ago

0.3.17

5 months ago

0.3.16

5 months ago

0.3.15

5 months ago

0.3.14

6 months ago

0.3.13

6 months ago

0.3.12

6 months ago

0.3.11

6 months ago

0.3.10

6 months ago

0.1.13-beta.1

8 months ago

0.3.20

4 months ago

0.3.26

2 months ago

0.3.25

3 months ago

0.3.24

3 months ago

0.3.23

3 months ago

0.3.22

3 months ago

0.3.21

4 months ago

0.3.0

8 months ago

0.2.1

8 months ago

0.2.0

8 months ago

0.3.19

4 months ago

0.3.18

4 months ago

0.3.6

8 months ago

0.3.5

8 months ago

0.3.8

7 months ago

0.3.7

8 months ago

0.3.2

8 months ago

0.3.1

8 months ago

0.2.2

8 months ago

0.3.4

8 months ago

0.3.3

8 months ago

0.1.13

9 months ago

0.1.12-beta.1

9 months ago

0.1.12

9 months ago

0.1.11

9 months ago

0.1.10

10 months ago

0.1.8

10 months ago

0.1.9

10 months ago

0.1.7

10 months ago

0.1.6

10 months ago