Skip to main content
This release is 0 versions behind 0.3.0 — the latest version of @planetarium/lib9c. Jump to latest

@planetarium/lib9c@0.3.0-dev.202409050418328490+a0f10cfc224db7fa7ce4a8b22b44e98122405a1b
Built and signed on GitHub Actions

This package works with Node.js, BrowsersIt is unknown whether this package works with Cloudflare Workers, Deno, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
88%
Published
a week ago (0.3.0-dev.202409050418328490+a0f10cfc224db7fa7ce4a8b22b44e98122405a1b)
T
AlgorithmNames

The hash algorithms used by Nine Chronicles. Currently, only "SHA256" is supported.

c
ApprovePledge
No documentation available
T
ApprovePledgeArgs
No documentation available
T
ClaimData

The list of claim data pairs.The first element of the pair is the address of the avatar to claim the item,and the second element is the list of the amount of item tokens to convert.

c
ClaimItems

The ClaimItems action is used to convert an item token to an item.

T
ClaimItemsArgs

The arguments of the ClaimItems action.

c
ClaimStakeReward
No documentation available
T
ClaimStakeRewardArgs

The arguments of the ClaimStakeReward action.

c
CreateAvatar

The CreateAvatar action is used to create a new avatar that owned by agent.

T
CreateAvatarArgs
No documentation available
v
CRYSTAL

CRYSTAL is the currency used for crafting and upgrading items in the Nine Chronicles.

c
DailyReward

The DailyReward action is used to claim the daily reward.

T
DailyRewardArgs
No documentation available
c
DeliverToOtherGarages

The DeliverToOtherGarages action is used to deliver fungible assets to other garages.

T
DeliverToOtherGaragesArgs
No documentation available
f
fav

Creates a new FungibleAssetValue with the given currency and number-like values. If the number-like value is a string, it is parsed and multiplied by 10 times currency.decimalPlaces to return the FungibleAssetValue. The same is true if it is a number. However, in the case of number, beware of the possibility of an incorrect decimal value. The same is true for bigint, but due to the nature of the bigint type, decimals are not allowed.

c
GameAction
No documentation available
T
GameActionArgs

The arguments for the GameAction constructor.

v
GARAGE

GARAGE is the currency used to make items or fungible asset values able to transfer to others.See NCIP-16

f
generateGuid
No documentation available
c
HashDigest

Represents a hash digest. It is the same with Libplanet HashDigeset.

v
HEIMDALL_GENESIS_HASH

The genesis hash of the Heimdall network.

c
LoadIntoMyGarages

The LoadIntoMyGarages action is used to load the fungible assets and items into the signer's garages.

T
LoadIntoMyGaragesArgs

The arguments of the LoadIntoMyGarages action.

c
MakeGuild
No documentation available
v
MEAD

MEAD is the currency used for transaction fee in the Nine Chronicles.

c
MigratePledgeToGuild
No documentation available
T
MigratePledgeToGuildArgs
No documentation available
v
MINTERLESS_NCG

NCG but without minters. It can used as NCG in heimdall mainnet network.

v
NCG

The main currency of the Nine Chronicles. It should be used in the Odin mainnet network.

v
ODIN_GENESIS_HASH

The genesis hash of the Odin network.

c
PolymorphicAction
No documentation available
c
Stake

The Stake action is used to stake the NCG.

T
StakeArgs

The arguments of the Stake action.

c
TransferAsset

The TransferAsset action is used to transfer a fungible asset from one address to another.

T
TransferAssetArgs

The arguments of the TransferAsset action.

c
TransferAssets

The TransferAssets action is used to transfer fungible assets from one address to multiple recipients at once.

T
TransferAssetsArgs

The arguments of the TransferAssets action.

f
uuidToGuidBytes
No documentation available