@grams-dev/types
v0.0.22
Published
Type definitions for Grams.
Downloads
26
Readme
@grams-dev/types
@grams-dev/types
is a cornerstone for developers in the Grams ecosystem. These TypeScript type declarations and interfaces are tailored for Grams applications, ensuring a consistent and streamlined development experience.
Installation
Embed Grams types into your projects:
npm install @grams-dev/types
How to Use
A sneak peek into leveraging Grams types for your applications:
Wallets and Transactions
import { Transaction, WalletOptions, IWallet } from '@grams-dev/types';
const walletOpts: WalletOptions = { encryption: true, backup: 'cloud' };
const newTransaction: Transaction = { sender: 'address_1', receiver: 'address_2', amount: 50 };
Organizations
import { Proposal } from '@grams-dev/types';
const newProposal: Proposal = { title: 'Enhance Security', details: 'Introducing 2FA...' };
Collectibles
import { Collectible } from '@grams-dev/types';
const newCollectible: Collectible = { name: 'Artifact', origin: 'Ancient era' };
Licensing
This project is governed by the Apache-2.0 License. Understand its terms before using or distributing this package.
Support
Questions? Referring to our comprehensive Wiki is the quickest way to find answers. Alternatively, feel free to raise an issue in this repository. We're here to help.