Catalog npm
Back to packageRELEASE DETAILS

0.3.2

npm

@0xsaturn/sdk

Typescript SDK for 0xSaturn.

Published19 Apr 2022
Direct dependencies22
Transitive dependenciesNot calculated

README

Current package documentation

0xSaturn Typescript SDK

The Typescript SDK for building your dApps with ease. ✨

🚀 Installation

Ensure that you have Node.js installed locally, to install the Typescript SDK (PS: It works for both Typescript and JavaScript!).

npm install @0xsaturn/sdk
# OR
yarn add @0xsaturn/sdk

✨ Usage

Quickly get started by initializing the SDK.

import { ethers } from 'ethers';
import { SaturnClient } from '@0xsaturn/sdk';

// Create the wallet which has the Signer and Provider.
const wallet = new ethers.Wallet(
  '<WALLET_PRIVATE_KEY>',
  ethers.getDefaultProvider('https://polygon-rpc.com')
);

// Initialize the client with the signer.
// You can directly use the RPC URL instead of wallet, which gives you read-only access.
const client = new SaturnClient(wallet);

Perfect. Now, deploy your first contract (The cool kids call it "module")!

const address = await client.deployNFTModule({
  name: 'My NFT Module',
  symbol: 'MYNFT'
});

console.log('✨ Deployed NFT module at:', address);

Keep a note of the address, where the contract is deployed! Let's use it to interact with the contract.

import fs from 'fs';

// Initialize the NFT Module.
const module = await client.getNFTModule('<DEPLOYED_NFT_MODULE_ADDRESS>');

// Mint a NFT.
const { transactionHash } = await module.mint({
  name: 'My NFT!',
  description: 'This is my NFT, minted using 0xSaturn!',
  image: fs.readFileSync('my-nft-image.png')
});

console.log('Minted NFT with transaction hash:', transactionHash);

This should mint your NFT! You can verify using the transaction hash on the respective scan website for the chain used.

💬 Get in touch

Have various suggestions, questions, or any comments? Or, just want to discuss with our community?

Check out our Github Discussions or reach out to us on twitter!

👋 Show your support

Be sure to drop a 🌟 if you like the project!

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 22

Native requirements
22 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0xsaturn/protocols
Environment
{
  "local_name": "@0xsaturn/protocols",
  "alias": false,
  "peer_metadata": null
}
^0.2.7runtime
@ethersproject/bignumber
Environment
{
  "local_name": "@ethersproject/bignumber",
  "alias": false,
  "peer_metadata": null
}
^5.6.0runtime
@ethersproject/constants
Environment
{
  "local_name": "@ethersproject/constants",
  "alias": false,
  "peer_metadata": null
}
^5.6.0runtime
@ethersproject/providers
Environment
{
  "local_name": "@ethersproject/providers",
  "alias": false,
  "peer_metadata": null
}
^5.6.4runtime
@web-std/file
Environment
{
  "local_name": "@web-std/file",
  "alias": false,
  "peer_metadata": null
}
^3.0.2runtime
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^0.26.1runtime
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^5.6.4runtime
form-data
Environment
{
  "local_name": "form-data",
  "alias": false,
  "peer_metadata": null
}
^4.0.0runtime
ipfs-http-client
Environment
{
  "local_name": "ipfs-http-client",
  "alias": false,
  "peer_metadata": null
}
^56.0.2runtime
tslib
Environment
{
  "local_name": "tslib",
  "alias": false,
  "peer_metadata": null
}
^2.3.1runtime
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^17.0.24development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
^5.19.0development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
^5.19.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
^8.13.0development
eslint-config-prettier
Environment
{
  "local_name": "eslint-config-prettier",
  "alias": false,
  "peer_metadata": null
}
^8.5.0development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^2.6.2development
serve
Environment
{
  "local_name": "serve",
  "alias": false,
  "peer_metadata": null
}
^13.0.2development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
^10.7.0development
ts-toolbelt
Environment
{
  "local_name": "ts-toolbelt",
  "alias": false,
  "peer_metadata": null
}
^9.6.0development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
^0.22.15development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.6.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "20c09800915be5f72818363c86fccaabebbd0435",
  "integrity": "sha512-yJ4KmUQ5AUpIxwtOHZewC0uPQTo7p+jDFIqqEvBnwJXklxNuWEcCqO+p3BgCPKuins/FpwqjyRpeXXkc//BRBw==",
  "tarball": "https://registry.npmjs.org/@0xsaturn/sdk/-/sdk-0.3.2.tgz",
  "fileCount": 253,
  "unpackedSize": 348197,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIEA+EXsqgRSeO5ZH3C5lvlfofApTfO1h+srxYS0QElaRAiEA5Dc4MhT8tUlUcasPsTJfUU7I+7YZBGrWim9CB5pb9vo="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXulCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrGA/+M0ss7h7fSoctZNfnLg393Pi5/d1h5S1CAaKHRbYqdMTYmSom\r\nwBu4ZZwLMt0sar2soq81XNCWNfVzXtWLCGandZVdUaOcZLN+6ZOx+Vn6nAkr\r\nbtxF/4x1Bnt1C4bzG7KSMRhCk9ui1E99wrb0YvnkkSJ2bFer6VR4Arj1ixu4\r\noG6TBHuCKiuIEWpCij4avxFm2zYhnRR1YKsD8qbs9UDNVbafrCB8RFscK1r4\r\nswa4lQKf2M+DSPn4Xf9RzGVpZ5KJkt1fzGHS9dh0a1GKcbleBYcS93NtsXBL\r\nayPylSqADbxzYGe/pPHnmAoW198lkQyT0D4inz4ObR2QC/Pv8WZOWqfpyDF3\r\nN1JubVKUX/wI5+LQAcuDy49KgibGsT4Dr/TMrCrLzYESKXMH5lZefqxEtfV+\r\nFUKiVkf2G5tos8Y5EzBCFu2qRJ902R7h9aKQPb4BIkqunUWZh2ifd3N31t2U\r\nmcU5XXe2rRKhWkASbkZ9nJz+YhOZL5IOSQlDQkkIjNwkOlEhFoszK8VN6nbs\r\nk9egfHiqK3bLTzJmcu0GycMCrVExbh+ZGPHe0gh13OvhcGeAjB3p2M4pHkY1\r\n7SIvL9PcjPkXAZdNaxvBddtftcXC8/1ktV2c/JfBerR+Pe6JvHDDWQ84ocVO\r\n8utGlQRzQCDWsm/lE/4hf58CyxnD0xo1T8w=\r\n=ay/K\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0xsaturn/saturn-sdk-ts

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:2f7e2c0671c43dd71bc614957f5a28ac0fc545ee60e823219649084eac624366

Other collected versions

0.3.629 Apr0.3.525 Apr0.3.424 Apr0.3.322 Apr0.3.111 Apr0.3.07 AprView all collected versions →