inertialrush-game-test
TypeScript icon, indicating that this package has built-in type declarations

0.1.11 • Public • Published

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;

Package Sidebar

Install

npm i inertialrush-game-test

Weekly Downloads

155

Version

0.1.11

License

MIT

Unpacked Size

144 MB

Total Files

178

Last publish

Collaborators

  • ex2team