Skip to content

Latest commit

 

History

History
69 lines (46 loc) · 1.94 KB

README.md

File metadata and controls

69 lines (46 loc) · 1.94 KB

Starknet types JS/TS

🐺 Starknet TypeScript types 🚀

GitHub Workflow Status Project license Pull Requests welcome

Shared TypeScript type definitions for Starknet projects

Installation

RPC 0.7 - Latest

npm i @starknet-io/types-js

RPC 0.8 (rc3) - Beta

npm i @starknet-io/types-js@beta

Types

// type import
import type { SomeApiType } from '@starknet-io/types-js';
// or entire namespace import
import { API } from '@starknet-io/types-js';
// type import
import type { SomeWalletApiType } from '@starknet-io/types-js';
// or entire namespace import
import { WALLET_API } from '@starknet-io/types-js';
  • /src/wallet-api/typedData.ts

Versioning

(MAJOR.MINOR) Version of this package follow starknet-spec semantic versioning. PATCH version can diverge based on bug-fixes. Starknet types v0.7 <-> Starknet Spec v0.7 Starknet types v0.8 <-> Starknet Spec v0.8

Devs Build

npm run build

Devs Testing

npm run lint

License

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