0.1.11 • Published 10 months ago

inertialrush-game-test v0.1.11

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Inertial Rush Game Package

This package enables the integration of the Inertial Rush game into any React application, making it easy to showcase the game.

Usage

Installation

npm i inertialrush-game

Component

import React from "react";
import { useWallet } from "@aptos-labs/wallet-adapter-react";
import { InertialRushGame } from "inertialrush-game";

function InertialRushGame() {
  const { account, signAndSubmitTransaction } = useWallet();

  const setConnectModalOpen = async (isOpen) => {
    console.log(isOpen);
  };
  return (
    <InertialRushGame
      signAndSubmitTransaction={signAndSubmitTransaction}
      setConnectModalOpen={setConnectModalOpen}
      accountAddress={account?.address?.toString()}
    />
  );
}

export default InertialRushGame;
0.1.11

10 months ago

0.1.10

10 months ago

0.1.9

10 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago