4.3.2 • Published 8 months ago

@aresrpg/aresrpg-sdk v4.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.

4.3.2

8 months ago

4.3.1

9 months ago

4.3.0

9 months ago

4.2.0

9 months ago

4.1.8

10 months ago

4.1.7

11 months ago

2.2.1

1 year ago

2.2.0

1 year ago

2.4.1

1 year ago

2.2.3

1 year ago

2.4.0

1 year ago

2.2.2

1 year ago

2.4.3

1 year ago

2.4.2

1 year ago

2.2.4

1 year ago

3.0.4

1 year ago

3.0.3

1 year ago

3.2.0

1 year ago

3.0.10

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

3.0.5

1 year ago

2.1.9

1 year ago

3.0.0

1 year ago

4.0.5

1 year ago

4.0.4

1 year ago

4.0.10

1 year ago

4.0.7

1 year ago

4.0.6

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

4.0.3

1 year ago

4.0.2

1 year ago

4.0.9

1 year ago

4.0.8

1 year ago

2.3.0

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

3.0.9

1 year ago

3.1.0

1 year ago

4.1.4

1 year ago

4.1.3

1 year ago

4.1.6

12 months ago

4.1.5

12 months ago

4.1.2

1 year ago

4.1.1

1 year ago

2.1.6

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.5

1 year ago

2.1.0

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago