JSPM

  • Created
  • Published
  • Downloads 65890
  • Score
    100M100P100Q164667F
  • License MIT

Shared TypeScript definitions for Starknet projects

Package Exports

  • @starknet-io/types-js
  • @starknet-io/types-js/package.json

Readme

Starknet types JS/TS

🐺 Starknet TypeScript types 🚀

GitHub Workflow Status Project license Pull Requests welcome

Shared TypeScript type definitions for Starknet projects

Installation

npm i @starknet-io/types-js

Types

API Starknet JSON RPC Specification

// type import
import type { SomeApiType } from '@starknet-io/types-js';
// or entire namespace import
import { API } from '@starknet-io/types-js';

Wallet API Wallet JSON RPC Specification

// type import
import type { SomeWalletApiType } from '@starknet-io/types-js';
// or entire namespace import
import { WALLET_API } from '@starknet-io/types-js';
SNIP-12 Hashing and signing typed structured data
  • /src/wallet-api/typedData.ts

Versioning

Starknet types-js v0.7 == Starknet Spec v0.7 Starknet types-js v0.8 == Starknet Spec v0.8

(MAJOR.MINOR) Version of this package follow starknet-spec semantic versioning. PATCH version can diverge based on bug-fixes

Devs Build

npm run build

Devs Testing

npm run lint

License

This repository is licensed under the MIT License, see LICENSE for more information.