# @sbinft/contracts

> Open source contracts by SBINFT

Latest version **1.24.6** (published 2025-06-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @sbinft/contracts
pnpm add @sbinft/contracts
yarn add @sbinft/contracts
bun add @sbinft/contracts
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.24.6 |
| Published | 2025-06-19 |
| First published | 2022-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 457.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | SBINFT |
| Maintainers | shinsuny, toshiki.isawa, yuuuuut, sbinft-ma, kazunori.hiwatashi, sbinft-higa, sbinft-aoyama |
| Keywords | solidity, ethereum, smart, contracts, nft |

## Links

- npm: https://www.npmjs.com/package/@sbinft/contracts
- Repository: https://github.com/gobase/sbinft-contracts
- Homepage: https://github.com/gobase/sbinft-contracts#readme
- Issues: https://github.com/gobase/sbinft-contracts/issues
- npm.io page: https://npm.io/package/@sbinft/contracts

## Dependencies (2)

- [@openzeppelin/contracts](https://npm.io/package/@openzeppelin/contracts.md) ^4.6.0
- [@openzeppelin/contracts-upgradeable](https://npm.io/package/@openzeppelin/contracts-upgradeable.md) ^4.6.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.24.6 (latest) — 2025-06-19
- 1.24.5 — 2025-04-14
- 1.24.4 — 2025-02-06
- 1.24.3 — 2025-02-06
- 1.24.2 — 2024-12-13
- 1.24.1 — 2024-11-21
- 1.24.0 — 2024-11-20
- 1.23.1 — 2024-10-10
- 1.23.0 — 2024-10-02
- 1.22.0 — 2024-08-22
- 1.21.5 — 2024-08-20
- 1.21.4 — 2024-08-14
- 1.21.3 — 2024-08-14
- 1.21.2 — 2024-07-10
- 1.21.1 — 2024-07-09
- … 53 more at https://npm.io/package/@sbinft/contracts/versions

## README

# @sbinft/contracts
Open source contracts by SBINFT

# Installation

```
yarn add @sbinft/contracts
```

# Usage
## [contracts](https://github.com/gobase/sbinft-contracts/tree/master/contracts)

```solidity
pragma solidity ^0.8.0;

import "@sbinft/contracts/upgradeable/access/AdminUpgradeable.sol";

contract Mock is AdminUpgradeable {}
```

you can use the functions in the imported contracts.

```solidity
contract Mock is AdminUpgradeable {
    function myFunction() public {
        // some code...

        addAdmin([address1,address2]) // <- `addAdmin` is defined in AdminUpgradeable.sol

        // ...some code
    }
}
```

## [abi](https://github.com/gobase/sbinft-contracts/tree/master/abi/)

you can import abi from `@sbinft/contracts/abi`.

``` javascipt
const { abi, } = require("@sbinft/contracts/abi/sbinft/market/v1/exchange/Exchange.sol/Exchange.json");

// OR
const exchangeJSON = require("@sbinft/contracts/abi/sbinft/market/v1/exchange/Exchange.sol/Exchange.json");

console.log(abi);
console.log(exchangeJSON.abi);
```

# [constants](https://github.com/gobase/sbinft-contracts/tree/master/constant)
It contains address and data type definition for signing using EIP-712.
### Supported network:

| Network Name                  | Network ID    |
| ----------------------------- | ------------- |
| Ethereum Mainnet              | 1             |
| Ethereum Testnet (Sepolia)    | 11155111      |
| Polygon Mainnet               | 137           |
| Polygon Testnet (Amoy)        | 80002         |
| Avalanche Mainnet             | 43114         |
| Avalanche Testnet (Fuji)      | 43113         |
| Oasys Hub L1 Mainnet          | 248           |
| Oasys Hub L1 Testnet          | 9372          |
| HOME Verse Mainnet            | 19011         |
| HOME Verse Testnet            | 40875         |
| TCG Verse Mainnet             | 2400          |
| TCG Verse Testnet             | 12005         |
| MCH Verse Mainnet             | 29548         |
| MCH Verse Testnet             | 420           |
| GESO Verse Mainnet            | 428           |
| GESO Verse Testnet            | 42801         |

### Its divided into:
- GATEWAY_V1
  - `SBINFTForwarder` : *Upgradable*
  - `SBINFTMultiCall` : *Upgradable*
- MARKET_V1
  -  `Exchange` : *Upgradable*
  -  `RoyaltyRegistry` : *Upgradable*
  -  `TransferProxy` : *Upgradable*
  -  `PlatformRegistry` : *Upgradable*
- COLLECTION
  -  `NANAKUSA_FACTORY`

For Upgradable contracts use proxy address `[CONST].address.[NETWORK].proxy.[CONTRACT_NAME]` to call the contract.

---
_Source: https://npm.io/package/@sbinft/contracts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
