New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aresrpg/aresrpg-sdk

Package Overview
Dependencies
Maintainers
0
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aresrpg/aresrpg-sdk

General SDK to interract with AresRPG

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
907
increased by390.27%
Maintainers
0
Weekly downloads
 
Created
Source

@aresrpg/aresrpg-sdk

fully in javascript powered by lsd Chat

A collection of queries to read AresRPG on chain

Installation

This README is uncomplete! It is recommended to use moduleResolution: "nodenext" in your tsconfig

npm install @aresrpg/aresrpg-sdk

Exports

You have access to a few packages

import * from '@aresrpg/aresrpg-sdk/sui'
import * from '@aresrpg/aresrpg-sdk/chunk'
import * from '@aresrpg/aresrpg-sdk/experience'
import * from '@aresrpg/aresrpg-sdk/stats'
import * from '@aresrpg/aresrpg-sdk/spells' // json file
import * from '@aresrpg/aresrpg-sdk/types' // some additonnal types

Usage (WIP)

To start using the SDK, you need to configure it with the appropriate network details:

import { SDK } from '@aresrpg/aresrpg-sdk/sui'

const sdk = await SDK({
  rpc_url: 'https://fullnode.testnet.sui.io/',
  wss_url: 'wss://fullnode.testnet.sui.io/',
  network: 'testnet', // required for modules addresses
})

Usage

Fetching Locked Characters

Get a list of characters locked in the AresRPG extension of personal kiosks for an address:

const lockedCharacters = await sdk.get_locked_characters('0x00')
console.log(lockedCharacters)

Fetching Unlocked Characters

Get a list of characters locked in every personal kiosks (unselected):

const unlockedCharacters = await sdk.get_unlocked_characters('0x00')
console.log(unlockedCharacters)

Subscribing to Events

Subscribe to blockchain events:

const unsubscribe = await sdk.subscribe(sui_event => {
  console.log('New event:', sui_event)
})

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to improve the library or suggest new features.

Keywords

FAQs

Package last updated on 04 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc