open-index/open-npm huggingface dataset:
npm package: @grumble-studios/rug-or-rumble
Description: Smart contract ABIs and TypeScript types for Rug Rumble game
Latest version: 2.1.0

# Rug or Rumble Contract ABIs

This package contains the ABIs and TypeScript types for the Rug or Rumble smart contracts.

## Installation

```bash
npm install @rug-or-rumble/contracts
# or
yarn add @rug-or-rumble/contracts
# or
pnpm add @rug-or-rumble/contracts
```

## Usage

### Import all ABIs

```typescript
import { ABIs } from '@rug-or-rumble/contracts';

console.log(ABIs.RugRumble); // Access the RugRumble ABI
```

### Import specific contract ABI

```typescript
import { RugRumbleABI } from '@rug-or-rumble/contracts';
// or
import RugRumble from '@rug-or-rumble/contracts/RugRumble';
```

### Use with ethers.js

```typescript
import { ethers } from 'ethers';
import { RugRumbleABI } from '@rug-or-rumble/contracts';

const contract = new ethers.Contract(
  contractAddress,
  RugRumbleABI,
  signerOrProvider
);
```

### Use with viem

```typescript
import { getContract } from 'viem';
import { RugRumbleABI } from '@rug-or-rumble/contracts';

const contract = getContract({
  address: contractAddress,
  abi: RugRumbleABI,
  client: publicClient,
});
```

## Available Contracts

- RugRumble

## TypeScript Support

This package includes TypeScript type definitions for all ABIs.

## License

ISC