diff --git a/cli/index.html b/cli/index.html index d1637a953..6abc04e67 100644 --- a/cli/index.html +++ b/cli/index.html @@ -494,61 +494,41 @@
Create ActivateAccount action.
Create MigrationActivatedAccountsState action and dump it.
Create MigrationAvatarState action and dump it.
accountDiffs
+ This field allows you to query the diffs based accountAddress between two blocks. baseIndex
is the reference block index, and changedIndex is the block index from which to check what changes have occurred relative to baseIndex
. Both indices must not be higher than the current block on the chain nor lower than the genesis block index (0). The difference between the two blocks must be greater than zero for a valid comparison and less than ten for performance reasons.
Returns [StateDiff!]!
+
query AccountDiffs(
+ $accountAddress: Address!,
+ $baseIndex: Long!,
+ $changedIndex: Long!
+) {
+ accountDiffs(
+ accountAddress: $accountAddress,
+ baseIndex: $baseIndex,
+ changedIndex: $changedIndex
+ ) {
+ baseState
+ changedState
+ path
+ }
+}
+
+
+
+ {
+ "accountAddress": Address,
+ "baseIndex": {},
+ "changedIndex": {}
+}
+
+
+
+ {
+ "data": {
+ "accountDiffs": [
+ {
+ "baseState": "xyz789",
+ "changedState": "xyz789",
+ "path": "xyz789"
+ }
+ ]
+ }
+}
+
+
+
+ actionQuery
query ActionQuery {
actionQuery {
- activateAccount
approvePledge
auraSummon
claimItems
@@ -336,6 +460,7 @@ Query
grinding
hackAndSlash
hackAndSlashSweep
+ issueToken
itemEnhancement
loadIntoMyGarages
migrateMonsterCollection
@@ -366,7 +491,6 @@ Response
{
"data": {
"actionQuery": {
- "activateAccount": ByteString,
"approvePledge": ByteString,
"auraSummon": ByteString,
"claimItems": ByteString,
@@ -384,6 +508,7 @@ Response
"grinding": ByteString,
"hackAndSlash": ByteString,
"hackAndSlashSweep": ByteString,
+ "issueToken": ByteString,
"itemEnhancement": ByteString,
"loadIntoMyGarages": ByteString,
"migrateMonsterCollection": ByteString,
@@ -481,7 +606,6 @@ Query
publicKey: $publicKey,
timestamp: $timestamp
)
{
- activateAccount
approvePledge
auraSummon
claimItems
@@ -502,6 +626,7 @@ Query
grinding
hackAndSlash
hackAndSlashSweep
+ issueToken
itemEnhancement
loadIntoMyGarages
migrateMonsterCollection
@@ -551,7 +676,6 @@ Response
{
"data": {
"actionTxQuery": {
- "activateAccount": ByteString,
"approvePledge": ByteString,
"auraSummon": ByteString,
"claimItems": ByteString,
@@ -569,6 +693,7 @@ Response
"grinding": ByteString,
"hackAndSlash": ByteString,
"hackAndSlashSweep": ByteString,
+ "issueToken": ByteString,
"itemEnhancement": ByteString,
"loadIntoMyGarages": ByteString,
"migrateMonsterCollection": ByteString,
@@ -731,7 +856,7 @@ Query
Variables
- {"invitationCode": "abc123"}
+ {"invitationCode": "xyz789"}
@@ -786,7 +911,6 @@ Query
query ActivationStatus {
activationStatus {
- activated
addressActivated
}
}
@@ -798,7 +922,7 @@ Query
Response
- {"data": {"activationStatus": {"activated": false, "addressActivated": true}}}
+ {"data": {"activationStatus": {"addressActivated": false}}}
@@ -910,11 +1034,23 @@ Query
...BlockFragment
}
}
+ evidenceQuery {
+ committedEvidence {
+ ...EvidenceFragment
+ }
+ evidence {
+ ...EvidenceFragment
+ }
+ pendingEvidence {
+ ...EvidenceFragment
+ }
+ }
helperQuery {
bencodexValue {
...IValueFragment
}
currencyHash
+ keyHex
}
nodeState {
peers {
@@ -925,6 +1061,11 @@ Query
...BoundPeerFragment
}
}
+ rawStateQuery {
+ trie {
+ ...TrieFragment
+ }
+ }
stateQuery {
balance {
...FungibleAssetValueFragment
@@ -971,13 +1112,115 @@ Response
"data": {
"chainQuery": {
"blockQuery": BlockQuery,
+ "evidenceQuery": EvidenceQuery,
"helperQuery": HelperQuery,
"nodeState": NodeState,
+ "rawStateQuery": RawStateQuery,
"stateQuery": LibplanetStateQuery,
"transactionQuery": TransactionQuery
}
}
}
+
+
+
+
+
+
+ diffs
+ This field allows you to query the diffs between two blocks. baseIndex
is the reference block index, and changedIndex is the block index from which to check what changes have occurred relative to baseIndex
. Both indices must not be higher than the current block on the chain nor lower than the genesis block index (0). The difference between the two blocks must be greater than zero for a valid comparison and less than ten for performance reasons.
Returns [Diff!]!
+
query Diffs(
+ $baseIndex: Long!,
+ $changedIndex: Long!
+) {
+ diffs(
+ baseIndex: $baseIndex,
+ changedIndex: $changedIndex
+ ) {
+ ... on RootStateDiff {
+ diffs {
+ ...StateDiffFragment
+ }
+ path
+ }
+ ... on StateDiff {
+ baseState
+ changedState
+ path
+ }
+ }
+}
+
+
+
+ {"baseIndex": {}, "changedIndex": {}}
+
+
+
+ {"data": {"diffs": [RootStateDiff]}}
@@ -1076,10 +1319,10 @@ {"data": {"goldBalance": "xyz789"}}
+ {"data": {"goldBalance": "abc123"}}
@@ -1372,7 +1615,7 @@ Response
"data": {
"monsterCollectionStatus": {
"fungibleAssetValue": FungibleAssetValueType,
- "lockup": false,
+ "lockup": true,
"rewardInfos": [MonsterCollectionRewardInfoType],
"tipIndex": {}
}
@@ -1530,14 +1773,14 @@ Response
"data": {
"nodeStatus": {
"appProtocolVersion": AppProtocolVersionType,
- "bootstrapEnded": true,
+ "bootstrapEnded": false,
"genesis": BlockHeader,
"informationalVersion": "abc123",
- "isMining": false,
+ "isMining": true,
"preloadEnded": true,
"productVersion": "abc123",
"stagedTxIds": [TxId],
- "stagedTxIdsCount": 987,
+ "stagedTxIdsCount": 123,
"subscriberAddresses": [Address],
"subscriberAddressesCount": 123,
"tip": BlockHeader,
@@ -1596,7 +1839,7 @@ Response
{
"data": {
- "peerChainState": {"state": ["abc123"]}
+ "peerChainState": {"state": ["xyz789"]}
}
}
@@ -1665,9 +1908,9 @@ Response
"clients": [Address],
"clientsByDevice": [Address],
"clientsByIps": [MultiAccountInfo],
- "clientsCountByIps": 987,
+ "clientsCountByIps": 123,
"totalCount": 123,
- "totalCountByDevice": 123
+ "totalCountByDevice": 987
}
}
}
@@ -1720,6 +1963,12 @@ Arguments
The hash of the block used to fetch state from chain.
+
+
+ index
- Long
+
+ The index of the block used to fetch state from chain.
+
query State(
$accountAddress: Address!,
$address: Address!,
- $hash: ByteString
+ $hash: ByteString,
+ $index: Long
) {
state(
accountAddress: $accountAddress,
address: $address,
- hash: $hash
+ hash: $hash,
+ index: $index
)
}
@@ -1752,7 +2003,8 @@ {
"accountAddress": Address,
"address": Address,
- "hash": ByteString
+ "hash": ByteString,
+ "index": {}
}
@@ -1800,6 +2052,12 @@ index
- Long
+ query StateQuery($hash: ByteString) {
- stateQuery(hash: $hash) {
+ query StateQuery(
+ $hash: ByteString,
+ $index: Long
+) {
+ stateQuery(
+ hash: $hash,
+ index: $index
+ ) {
agent {
address
avatarStates {
@@ -1853,7 +2117,6 @@ Query
agentAddress
blockIndex
characterId
- combinationSlotAddresses
combinationSlots {
...CombinationSlotStateTypeFragment
}
@@ -1902,7 +2165,6 @@ Query
agentAddress
blockIndex
characterId
- combinationSlotAddresses
combinationSlots {
...CombinationSlotStateTypeFragment
}
@@ -2089,7 +2351,7 @@ Query
startedBlockIndex
}
}
-}
+}
@@ -2098,7 +2360,7 @@ Query
Variables
- {"hash": ByteString}
+ {"hash": ByteString, "index": {}}
@@ -2133,7 +2395,7 @@ Response
"stakeRewards": StakeRewardsType,
"stakeState": StakeStateType,
"stakeStates": [StakeStateType],
- "unlockedRecipeIds": [123],
+ "unlockedRecipeIds": [987],
"unlockedWorldIds": [987],
"weeklyArena": WeeklyArenaStateType,
"worldBossKillRewardRecord": WorldBossKillRewardRecordType,
@@ -2352,7 +2614,7 @@ Response
{
"amount": "abc123",
"blockHash": ByteString,
- "memo": "abc123",
+ "memo": "xyz789",
"recipient": Address,
"sender": Address,
"txId": ByteString
@@ -2413,7 +2675,7 @@ Response
{
"data": {
- "validation": {"metadata": true, "privateKey": false, "publicKey": false}
+ "validation": {"metadata": false, "privateKey": true, "publicKey": true}
}
}
@@ -2474,55 +2736,6 @@ Response
}
}
}
-
-
-
-
activationStatus
- Returns an ActivationStatusMutation
-
mutation ActivationStatus {
- activationStatus {
- activateAccount
- }
-}
-
-
-
- {"data": {"activationStatus": {"activateAccount": true}}}
@@ -2813,7 +3026,7 @@ {"payload": "abc123"}
+ {"payload": "xyz789"}
@@ -3013,7 +3226,7 @@ Variables
{
- "amount": "xyz789",
+ "amount": "abc123",
"recipient": Address
}
@@ -3090,7 +3303,7 @@ Variables
Response
- {"data": {"balanceByAgent": "xyz789"}}
+ {"data": {"balanceByAgent": "abc123"}}
@@ -3148,7 +3361,7 @@ Response
"data": {
"differentAppProtocolVersionEncounter": {
"localVersion": AppProtocolVersionType,
- "peer": "xyz789",
+ "peer": "abc123",
"peerVersion": AppProtocolVersionType
}
}
@@ -3198,8 +3411,8 @@ Response
{
"data": {
"nodeException": {
- "code": 123,
- "message": "abc123"
+ "code": 987,
+ "message": "xyz789"
}
}
}
@@ -3280,14 +3493,14 @@ Response
"data": {
"nodeStatus": {
"appProtocolVersion": AppProtocolVersionType,
- "bootstrapEnded": true,
+ "bootstrapEnded": false,
"genesis": BlockHeader,
"informationalVersion": "xyz789",
"isMining": true,
- "preloadEnded": false,
- "productVersion": "xyz789",
+ "preloadEnded": true,
+ "productVersion": "abc123",
"stagedTxIds": [TxId],
- "stagedTxIdsCount": 987,
+ "stagedTxIdsCount": 123,
"subscriberAddresses": [Address],
"subscriberAddressesCount": 987,
"tip": BlockHeader,
@@ -3340,7 +3553,7 @@ Response
{
"data": {
"notification": {
- "message": "xyz789",
+ "message": "abc123",
"type": "BUYER"
}
}
@@ -3356,9 +3569,16 @@ Response
-
+
preloadProgress
+
+
+
+ Since Libplanet 5.3.0 preload progress is no longer reported.
+
+
+
@@ -3530,7 +3750,7 @@ Query
Variables
- {"actionType": "abc123"}
+ {"actionType": "xyz789"}
@@ -3574,9 +3794,10 @@ Fields
- balance
- IValue
+ balance
- IValue
+
+ Balance at given address and currency hash pair. Does not work post block protocol version 7.
- Balance at given address and currency hash pair.
@@ -3598,9 +3819,10 @@ currencyHash
- balances
- [IValue]!
+ balances
- [IValue]!
+
+ Balances at given addresses and currency hash pair. Does not work post block protocol version 7.
- Balances at given addresses and currency hash pair.
@@ -3665,9 +3887,10 @@ addresses
- totalSupply
- IValue
+ totalSupply
- IValue
+
+ Total supply in circulation, if recorded, for given currency hash. Does not work post block protocol version 7.
- Total supply in circulation, if recorded, for given currency hash.
@@ -3684,9 +3907,10 @@ currencyHash
- validatorSet
- IValue
+ validatorSet
- IValue
+
+ The validator set. Does not work post block protocol version 6.
- The validator set.
@@ -3797,9 +4021,10 @@ Fields
- chargeActionPoint
- TxId!
+ chargeActionPoint
- TxId!
+
+ Charge Action Points using Material. This API is insecure and must not be used.
- Charge Action Points using Material.
@@ -3816,9 +4041,10 @@ avatarAddress<
- combinationConsumable
- TxId!
+ combinationConsumable
- TxId!
+
+ Combine new Consumable. This API is insecure and must not be used.
- Combine new Consumable.
@@ -3845,9 +4071,10 @@ slotIndex
- combinationEquipment
- TxId!
+ combinationEquipment
- TxId!
+
+ Combine new equipment. This API is insecure and must not be used.
- Combine new equipment.
@@ -3879,9 +4106,10 @@ subRecipeId
- createAvatar
- TxId!
+ createAvatar
- TxId!
+
+ Create new avatar. This API is insecure and must not be used.
- Create new avatar.
@@ -3923,9 +4151,10 @@ tailIndex
- dailyReward
- TxId!
+ dailyReward
- TxId!
+
+ Get daily reward. This API is insecure and must not be used.
- Get daily reward.
@@ -3942,9 +4171,10 @@ avatarAddress<
- hackAndSlash
- TxId!
+ hackAndSlash
- TxId!
+
+ Start stage to get material. This API is insecure and must not be used.
- Start stage to get material.
@@ -3991,9 +4221,10 @@ worldId
- itemEnhancement
- TxId!
+ itemEnhancement
- TxId!
+
+ Upgrade equipment. This API is insecure and must not be used.
- Upgrade equipment.
@@ -4066,27 +4297,6 @@ Fields
-
- activateAccount
- ByteString!
-
-
- Since NCIP-15, it doesn't care account activation.
-
-
-
-
-
- Arguments
-
-
- activationCode
- String!
-
- Activation code that you've get.
-
-
-
-
-
approvePledge
- ByteString!
@@ -4587,6 +4797,36 @@ worldId
+
+ issueToken
- ByteString!
+
+
+
+
+
+
+
+ Arguments
+
+
+ avatarAddress
- Address!
+
+ Avatar address
+
+
+ fungibleAssetValues
- [FungibleAssetValueInputType!]!
+
+ List of FungibleAssetValues for wrapping token
+
+
+ items
- [IssueTokenItemsInputType!]!
+
+ List of pair of item id, count for wrapping token
+
+
+
+
+
itemEnhancement
- ByteString!
@@ -4789,9 +5029,9 @@ avatarAddress<
Avatar address to execute rapid combination
- slotIndex
- Int!
+ slotIndexList
- [Int!]!
-
Slot index to execute rapid
+ Slot index list to execute rapid
@@ -5090,7 +5330,6 @@ Example
{
- "activateAccount": ByteString,
"approvePledge": ByteString,
"auraSummon": ByteString,
"claimItems": ByteString,
@@ -5108,6 +5347,7 @@ Example
"grinding": ByteString,
"hackAndSlash": ByteString,
"hackAndSlashSweep": ByteString,
+ "issueToken": ByteString,
"itemEnhancement": ByteString,
"loadIntoMyGarages": ByteString,
"migrateMonsterCollection": ByteString,
@@ -5150,27 +5390,6 @@ Fields
-
- activateAccount
- ByteString!
-
-
- Since NCIP-15, it doesn't care account activation.
-
-
-
-
-
- Arguments
-
-
- activationCode
- String!
-
- Activation code that you've get.
-
-
-
-
-
approvePledge
- ByteString!
@@ -5671,6 +5890,36 @@ worldId
+
+ issueToken
- ByteString!
+
+
+
+
+
+
+
+ Arguments
+
+
+ avatarAddress
- Address!
+
+ Avatar address
+
+
+ fungibleAssetValues
- [FungibleAssetValueInputType!]!
+
+ List of FungibleAssetValues for wrapping token
+
+
+ items
- [IssueTokenItemsInputType!]!
+
+ List of pair of item id, count for wrapping token
+
+
+
+
+
itemEnhancement
- ByteString!
@@ -5873,9 +6122,9 @@ avatarAddress<
Avatar address to execute rapid combination
- slotIndex
- Int!
+ slotIndexList
- [Int!]!
-
Slot index to execute rapid
+ Slot index list to execute rapid
@@ -6174,7 +6423,6 @@ Example
{
- "activateAccount": ByteString,
"approvePledge": ByteString,
"auraSummon": ByteString,
"claimItems": ByteString,
@@ -6192,6 +6440,7 @@ Example
"grinding": ByteString,
"hackAndSlash": ByteString,
"hackAndSlashSweep": ByteString,
+ "issueToken": ByteString,
"itemEnhancement": ByteString,
"loadIntoMyGarages": ByteString,
"migrateMonsterCollection": ByteString,
@@ -6210,60 +6459,6 @@ Example
"unlockEquipmentRecipe": ByteString,
"unlockWorld": ByteString
}
-
-
-
-
-
-
-
-
-
- Types
-
- ActivationStatusMutation
-
-
- activated
- Boolean!
-
-
- Since NCIP-15, it doesn't care account activation.
-
-
addressActivated
- Boolean!
@@ -6324,7 +6512,7 @@ address
Example
- {"activated": false, "addressActivated": true}
+ {"addressActivated": true}
@@ -6589,8 +6777,8 @@ Example
"address": Address,
"avatarStates": [AvatarStateType],
"crystal": "xyz789",
- "gold": "abc123",
- "hasTradedItem": false,
+ "gold": "xyz789",
+ "hasTradedItem": true,
"monsterCollectionLevel": {},
"monsterCollectionRound": {},
"pledge": MeadPledgeType
@@ -6738,9 +6926,9 @@ Example
"agentAddress": Address,
"arenaRecord": ArenaRecordType,
"avatarAddress": Address,
- "avatarName": "xyz789",
+ "avatarName": "abc123",
"dailyChallengeCount": 987,
- "score": 987
+ "score": 123
}
@@ -6826,10 +7014,10 @@ Example
{
"address": Address,
"avatarAddress": Address,
- "lose": 987,
- "purchasedTicketCount": 123,
+ "lose": 123,
+ "purchasedTicketCount": 987,
"score": 987,
- "ticket": 987,
+ "ticket": 123,
"ticketResetCount": 987,
"win": 987
}
@@ -6914,8 +7102,8 @@ Example
{
"avatarAddr": Address,
"cp": 987,
- "level": 987,
- "loseScore": 987,
+ "level": 123,
+ "loseScore": 123,
"nameWithHash": "xyz789",
"portraitId": 987,
"rank": 123,
@@ -6973,7 +7161,7 @@ Fields
Example
- {"draw": 123, "lose": 987, "win": 987}
+ {"draw": 987, "lose": 123, "win": 987}
@@ -7023,11 +7211,6 @@ Fields
Character ID from CharacterSheet.
-
- combinationSlotAddresses
- [Address!]!
-
- Address list of combination slot.
-
combinationSlots
- [CombinationSlotStateType!]!
@@ -7146,12 +7329,11 @@ Example
"actionPoint": 987,
"address": Address,
"agentAddress": Address,
- "blockIndex": 123,
+ "blockIndex": 987,
"characterId": 987,
- "combinationSlotAddresses": [Address],
"combinationSlots": [CombinationSlotStateType],
"dailyRewardReceivedIndex": {},
- "ear": 987,
+ "ear": 123,
"eventMap": CollectionMapType,
"exp": 987,
"hair": 123,
@@ -7159,7 +7341,7 @@ Example
"inventory": InventoryType,
"inventoryAddress": Address,
"itemMap": CollectionMapType,
- "lens": 123,
+ "lens": 987,
"level": 987,
"mailBox": MailBoxType,
"monsterMap": CollectionMapType,
@@ -7167,7 +7349,7 @@ Example
"questList": QuestListType,
"runes": [RuneStateType],
"stageMap": CollectionMapType,
- "tail": 987,
+ "tail": 123,
"updatedAt": {},
"worldInformation": WorldInformationType
}
@@ -7292,6 +7474,11 @@ Fields
The mining difficulty that the block's nonce has to satisfy. Block does not have Difficulty field in PBFT.
+
+ evidence
- [Evidence!]!
+
+ Evidence belonging to the block.
+
hash
- ID!
@@ -7328,6 +7515,11 @@ Fields
The previous block. If it's a genesis block (i.e., its index is 0) this must be null.
+
+ protocolVersion
- Int!
+
+ The protocol version number of the block.
+
publicKey
- PublicKey
@@ -7371,6 +7563,7 @@ Example
{
"difficulty": {},
+ "evidence": [Evidence],
"hash": 4,
"index": {},
"lastCommit": BlockCommit,
@@ -7378,6 +7571,7 @@ Example
"nonce": ByteString,
"preEvaluationHash": ByteString,
"previousBlock": Block,
+ "protocolVersion": 123,
"publicKey": PublicKey,
"signature": ByteString,
"stateRootHash": ByteString,
@@ -7439,7 +7633,7 @@ Example
{
- "blockHash": 4,
+ "blockHash": "4",
"height": {},
"round": 123,
"votes": [Vote]
@@ -7591,21 +7785,11 @@ desc
Whether to query blocks in descending order or not.
-
- excludeEmptyTxs
- Boolean!
-
- Whether to include empty blocks with no transactions or not. Default is set to false, i.e. to return empty blocks.
-
limit
- Int
The maximum number of blocks to return. This limits the offset index range to query, not the result, i.e. excluded blocks due to a block being empty or not matching the miner (if specified in other arguments) are still counted.
-
- miner
- Address
-
- If not null, returns blocks only by mined by the address given. Default is set to null.
-
offset
- Int!
@@ -7645,15 +7829,6 @@ Description
-
- Example
-
-
- true
-
-
-
-
@@ -7699,8 +7874,8 @@ Example
{
- "endPoint": "abc123",
- "publicIpAddress": "xyz789",
+ "endPoint": "xyz789",
+ "publicIpAddress": "abc123",
"publicKey": PublicKey
}
@@ -7796,6 +7971,52 @@ Example
"avatarAddress": Address,
"fungibleAssetValues": [FungibleAssetValueInputType]
}
+
+
+
+
+
+
+
+
+
+ Types
+
+ ClearedStageType
+
+
+
+
+
+
+ Example
+
+
+ {"stageId": 987, "worldId": 123}
@@ -7841,7 +8062,7 @@ Fields
Example
- {"count": 123, "pairs": [123]}
+ {"count": 987, "pairs": [987]}
@@ -7871,6 +8092,16 @@ Fields
Address of combination slot.
+
+ index
- Int!
+
+ Slot Index at the combination slot
+
+
+ isUnlocked
- Boolean!
+
+ Is the combination slot unlocked
+
petId
- Int
@@ -7886,11 +8117,6 @@ Fields
Block index at the combination slot can be usable.
-
- unlockStage
- Int!
-
- Stage id at the combination slot unlock.
-
@@ -7902,10 +8128,11 @@ Example
{
"address": Address,
- "petId": 987,
+ "index": 123,
+ "isUnlocked": true,
+ "petId": 123,
"startBlockIndex": {},
- "unlockBlockIndex": {},
- "unlockStage": 987
+ "unlockBlockIndex": {}
}
@@ -7986,7 +8213,7 @@ Example
{
"elementalType": "FIRE",
"grade": 987,
- "id": 123,
+ "id": 987,
"itemId": Guid,
"itemSubType": "AP_STONE",
"itemType": "CONSUMABLE",
@@ -8071,7 +8298,7 @@ Example
"elementalType": "FIRE",
"equipped": true,
"grade": 987,
- "id": 123,
+ "id": 987,
"itemId": Guid,
"itemSubType": "AP_STONE",
"itemType": "CONSUMABLE",
@@ -8342,8 +8569,8 @@ Example
"hash": ByteString,
"maximumSupply": FungibleAssetValue,
"minters": [Address],
- "ticker": "abc123",
- "totalSupplyTrackable": false
+ "ticker": "xyz789",
+ "totalSupplyTrackable": true
}
@@ -8401,33 +8628,75 @@ Values
-
-
-
-
-
-
- Example
-
-
- "CRYSTAL"
-
-
-
-
-
-
+
|
+ + | +
+
|
+ + | +
+
|
+ + | +
+
|
+ + | +
+
|
+ + | +
+
|
+ + | +
"CRYSTAL"
+
+
+
+ Input Field | @@ -8487,8 +8756,8 @@
---|
Union Types | +
---|
+ + | +
+ + | +
RootStateDiff
@@ -8901,20 +9213,225 @@ {
"buffSkills": [SkillType],
"elementalType": "FIRE",
- "equipped": false,
- "exp": 987,
+ "equipped": true,
+ "exp": 123,
"grade": 123,
"id": 987,
"itemId": Guid,
"itemSubType": "AP_STONE",
"itemType": "CONSUMABLE",
- "level": 123,
+ "level": 987,
"requiredBlockIndex": {},
"setId": 987,
"skills": [SkillType],
"stat": DecimalStatType,
"statsMap": StatsMapType
}
+
+
+
+ Field Name | +Description | +
---|---|
height - Long!
+ |
+ Indicates the block height that infraction has been occurred. | +
id - ID!
+ |
+ A unique identifier derived from this Evidence content | +
targetAddress - Address!
+ |
+ Indicates the address of the target that caused the infraction. | +
timestamp - DateTimeOffset!
+ |
+ Indicates the timestamp the infraction occurred. | +
type - String!
+ |
+ Evidence type. | +
{
+ "height": {},
+ "id": 4,
+ "targetAddress": Address,
+ "timestamp": DateTimeOffset,
+ "type": "abc123"
+}
+
+
+
+ EvidenceId
+
+
+
+ Retrieve evidence information.
+Field Name | +Description | +
---|---|
committedEvidence - [Evidence!]!
+ |
+ + | +
+ + | +|
evidence - Evidence
+ |
+ + | +
+
+
+ Arguments+
+
+
+
+
+ |
+ |
pendingEvidence - [Evidence!]!
+ |
+ + | +
+ + | +
{
+ "committedEvidence": [Evidence],
+ "evidence": Evidence,
+ "pendingEvidence": [Evidence]
+}
@@ -8945,6 +9462,12 @@ evidenceQuery
- EvidenceQuery
+ helperQuery
- HelperQuery
rawStateQuery
- RawStateQuery
+ stateQuery
- LibplanetStateQuery
{
"blockQuery": BlockQuery,
+ "evidenceQuery": EvidenceQuery,
"helperQuery": HelperQuery,
"nodeState": NodeState,
+ "rawStateQuery": RawStateQuery,
"stateQuery": LibplanetStateQuery,
"transactionQuery": TransactionQuery
}
@@ -9175,7 +9706,7 @@ Example
{
- "currency": "xyz789",
+ "currency": "abc123",
"quantity": "abc123"
}
@@ -9238,7 +9769,7 @@ Example
{
"currency": CurrencyType,
- "quantity": "abc123"
+ "quantity": "xyz789"
}
@@ -9285,7 +9816,7 @@ Fields
Example
- {"count": 987, "fungibleId": "xyz789"}
+ {"count": 123, "fungibleId": "abc123"}
@@ -9346,7 +9877,7 @@ Example
{
"addr": Address,
"count": 987,
- "fungibleItemId": "abc123",
+ "fungibleItemId": "xyz789",
"item": FungibleItemType
}
@@ -9618,6 +10149,25 @@ currency
keyHex
- KeyBytes!
+ value
- String!
+ The string value to convert to key hex.
+{
"bencodexValue": IValue,
- "currencyHash": HashDigestSHA1
+ "currencyHash": HashDigestSHA1,
+ "keyHex": KeyBytes
}
@@ -9655,7 +10206,7 @@ 4
+ "4"
@@ -9711,7 +10262,7 @@ Example
{
"base64": "xyz789",
- "hex": "xyz789",
+ "hex": "abc123",
"inspection": "xyz789",
"json": "xyz789"
}
@@ -9739,7 +10290,7 @@ Description
Example
- 987
+ 123
@@ -9814,8 +10365,8 @@ Example
{
"count": 987,
- "fungibleItemId": "xyz789",
- "id": 123,
+ "fungibleItemId": "abc123",
+ "id": 987,
"itemType": "CONSUMABLE",
"lockId": Guid,
"locked": true,
@@ -9934,6 +10485,58 @@ Example
"items": [InventoryItemType],
"materials": [MaterialType]
}
+
+
+
+
{"count": 123, "itemId": 987, "tradable": false}
@@ -9994,6 +10597,13 @@ CIRCLE
EAR_COSTUME
GRIMOIRE
HAIR_COSTUME
SCROLL
TAIL_COSTUME
{
"elementalType": "FIRE",
"grade": 987,
- "id": 123,
+ "id": 987,
"itemId": Guid,
"itemSubType": "AP_STONE",
"itemType": "CONSUMABLE",
"requiredBlockIndex": {}
}
+
+
+
+
+
+
+
+ KeyBytes
@@ -10647,7 +11292,7 @@ {"count": 987, "mails": [MailType]}
+ {"count": 123, "mails": [MailType]}
@@ -10824,7 +11469,7 @@ Fields
Example
- {"materialId": 987, "quantity": 987}
+ {"materialId": 123, "quantity": 123}
@@ -10876,7 +11521,7 @@ Fields
Example
- {"approved": false, "mead": 123, "patronAddress": Address}
+ {"approved": true, "mead": 987, "patronAddress": Address}
@@ -10922,7 +11567,7 @@ Fields
Example
- {"itemId": 123, "quantity": 123}
+ {"itemId": 987, "quantity": 987}
@@ -10975,7 +11620,7 @@ Example
{
- "level": 123,
+ "level": 987,
"requiredGold": 987,
"rewards": [MonsterCollectionRewardInfoType]
}
@@ -11232,9 +11877,9 @@ Example
{
"agents": ["xyz789"],
"agentsCount": 987,
- "ips": ["abc123"],
+ "ips": ["xyz789"],
"ipsCount": 987,
- "key": "abc123"
+ "key": "xyz789"
}
@@ -11279,7 +11924,7 @@ Fields
Example
- {"code": 123, "message": "abc123"}
+ {"code": 987, "message": "xyz789"}
@@ -11479,12 +12124,12 @@ Example
"genesis": BlockHeader,
"informationalVersion": "abc123",
"isMining": true,
- "preloadEnded": true,
- "productVersion": "abc123",
+ "preloadEnded": false,
+ "productVersion": "xyz789",
"stagedTxIds": [TxId],
- "stagedTxIdsCount": 123,
+ "stagedTxIdsCount": 987,
"subscriberAddresses": [Address],
- "subscriberAddressesCount": 123,
+ "subscriberAddressesCount": 987,
"tip": BlockHeader,
"topmostBlocks": [BlockHeader]
}
@@ -11792,7 +12437,7 @@ Fields
Example
- {"state": ["abc123"]}
+ {"state": ["xyz789"]}
@@ -11847,7 +12492,7 @@ Example
{
"currentCount": {},
"totalCount": {},
- "type": "abc123"
+ "type": "xyz789"
}
@@ -12113,7 +12758,7 @@ Fields
Example
- {"completedQuestIds": [987]}
+ {"completedQuestIds": [123]}
@@ -12223,15 +12868,15 @@ Example
"claimedBlockIndex": {},
"cp": 123,
"highScore": 987,
- "iconId": 123,
+ "iconId": 987,
"latestBossLevel": 987,
"latestRewardRank": 987,
"level": 987,
- "purchaseCount": 123,
+ "purchaseCount": 987,
"refillBlockIndex": {},
- "remainChallengeCount": 987,
+ "remainChallengeCount": 123,
"totalChallengeCount": 987,
- "totalScore": 987
+ "totalScore": 123
}
@@ -12310,9 +12955,9 @@ Example
"agentAddress": Address,
"armorId": 123,
"avatarAddress": Address,
- "avatarName": "xyz789",
+ "avatarName": "abc123",
"exp": {},
- "level": 987,
+ "level": 123,
"stageClearedBlockIndex": {},
"updatedAt": {}
}
@@ -12366,9 +13011,61 @@ Example
{
"address": Address,
- "capacity": 987,
+ "capacity": 123,
"rankingInfos": [RankingInfoType]
}
+
+
+
+
Field Name | +Description | +
---|---|
trie - Trie!
+ |
+ Retrieves trie from given state root hash. | +
+
+
+ Arguments+
+
+
+
+
+ |
+
{"trie": Trie}
@@ -12420,6 +13117,53 @@ Field Name | +Description | +
---|---|
diffs - [StateDiff!]!
+ |
+ List of state differences under this root. | +
path - String!
+ |
+ The path to the root state difference. | +
{
+ "diffs": [StateDiff],
+ "path": "xyz789"
+}
@@ -12541,7 +13285,7 @@ {"runeId": 987, "slotIndex": 123}
+ {"runeId": 123, "slotIndex": 987}
@@ -12634,7 +13378,7 @@ Fields
Example
- {"level": 123, "runeId": 987}
+ {"level": 987, "runeId": 987}
@@ -12767,7 +13511,7 @@ Example
{
"costume": CostumeType,
"itemUsable": ItemUsableType,
- "price": "xyz789",
+ "price": "abc123",
"productId": Guid,
"sellerAgentAddress": Address,
"sellerAvatarAddress": Address
@@ -12902,7 +13646,7 @@ Example
{
"currencyEnum": "CRYSTAL",
"currencyTicker": "abc123",
- "value": "xyz789"
+ "value": "abc123"
}
@@ -12977,9 +13721,9 @@ Example
"chance": 987,
"elementalType": "FIRE",
"id": 987,
- "power": 987,
+ "power": 123,
"referencedStatType": "ARMOR_PENETRATION",
- "statPowerRatio": 123
+ "statPowerRatio": 987
}
@@ -13078,7 +13822,7 @@ Fields
Example
- {"count": 123, "itemId": 123}
+ {"count": 123, "itemId": 987}
@@ -13152,8 +13896,8 @@ Example
"currencyDecimalPlaces": 123,
"currencyTicker": "abc123",
"decimalRate": Decimal,
- "itemId": 123,
- "rate": 987,
+ "itemId": 987,
+ "rate": 123,
"type": "CURRENCY"
}
@@ -13394,7 +14138,7 @@ Example
"address": Address,
"cancellableBlockIndex": {},
"claimableBlockIndex": {},
- "deposit": "xyz789",
+ "deposit": "abc123",
"receivedBlockIndex": {},
"stakeRewards": StakeRewardsType,
"startedBlockIndex": {}
@@ -13517,6 +14261,59 @@ Example
"ARMOR_PENETRATION"
+
+
+
+
{
+ "baseState": "xyz789",
+ "changedState": "abc123",
+ "path": "xyz789"
+}
@@ -14062,7 +14859,7 @@ {"aTK": 987, "cRI": 123, "dEF": 987, "hIT": 123, "hP": 123, "sPD": 987}
+ {"aTK": 123, "cRI": 987, "dEF": 123, "hIT": 987, "hP": 987, "sPD": 123}
@@ -14312,7 +15109,7 @@ Example
{
"actions": [Action],
"blockRef": Block,
- "id": 4,
+ "id": "4",
"nonce": {},
"publicKey": ByteString,
"serializedPayload": "abc123",
@@ -14448,6 +15245,11 @@ startingBlockI
start block index for query tx.
txStatusFilter
- [TxStatus!]
+ filter txStatus.
+Field Name | +Description | +
---|---|
value - IValue
+ |
+ Gets the value stored at given key. | +
+
+
+ Arguments+
+
+
+
+
+ |
+ |
values - IValue
+ |
+ Gets the values stored at given multiple keys. | +
+
+
+ Arguments+
+
+
+
+
+ |
+
{"value": IValue, "values": IValue}
@@ -15067,7 +15941,7 @@ {
- "blockHash": "abc123",
+ "blockHash": "xyz789",
"blockIndex": {},
"exceptionNames": ["abc123"],
"inputState": HashDigest_SHA256,
@@ -15285,7 +16159,7 @@ hex
Example
- {"metadata": false, "privateKey": false, "publicKey": false}
+ {"metadata": false, "privateKey": true, "publicKey": true}
@@ -15388,6 +16262,11 @@ Fields
The time this vote was created and signed.
validatorPower
- BigInt
+ validatorPublicKey
- PublicKey!
{
"currentHp": {},
"endedBlockIndex": {},
- "id": 123,
- "level": 123,
+ "id": 987,
+ "level": 987,
"startedBlockIndex": {}
}
@@ -15700,6 +16580,12 @@ worldId
lastClearedStage
- ClearedStageType!
+ world
- WorldType!
{
- "isStageCleared": true,
+ "isStageCleared": false,
"isWorldUnlocked": false,
+ "lastClearedStage": ClearedStageType,
"world": WorldType
}
@@ -15795,6 +16682,30 @@ addresses
balance
- FungibleAssetValue!
+ address
- Address!
+ The address to look up.
+currency
- CurrencyInput!
+ The currency to look up.
+legacy
- Boolean!
addresses
The state root hash of the world state.
totalSupply
- FungibleAssetValue!
+ currency
- CurrencyInput!
+ The currency to look up.
+validatorSet
- IValue!
+ version
- Int!
{
"account": AccountState,
"accounts": [AccountState],
+ "balance": FungibleAssetValue,
"legacy": true,
"stateRootHash": HashDigestSHA256,
- "version": 123
+ "totalSupply": FungibleAssetValue,
+ "validatorSet": IValue,
+ "version": 987
}
@@ -15915,9 +16853,9 @@ {
"id": 987,
- "isStageCleared": false,
+ "isStageCleared": true,
"isUnlocked": true,
- "name": "abc123",
+ "name": "xyz789",
"stageBegin": 123,
"stageClearedBlockIndex": {},
"stageClearedId": 123,
diff --git a/graphql/javascripts/spectaql.min.js b/graphql/javascripts/spectaql.min.js
index 0b7aea058..6ef3202c2 100644
--- a/graphql/javascripts/spectaql.min.js
+++ b/graphql/javascripts/spectaql.min.js
@@ -1 +1 @@
-"use strict";function scrollSpy(){var c=5,e=document.querySelector("html"),l=(e&&(e=window.getComputedStyle(e).scrollPaddingTop)&&"string"==typeof e&&"auto"!==e&&e.endsWith("px")&&(c+=parseInt(e.split("px")[0])),"nav-scroll-active"),i=null,d=[];function t(){i=null;var e=document.querySelectorAll("[data-traverse-target]");Array.prototype.forEach.call(e,function(e){d.push({id:e.id,top:e.offsetTop})})}var n=debounce(function(){t(),o()},500),o=debounce(function(){var e,t,n,o,r=function(e){for(var t=e+c,n=0;n=d[n].top&&(!o||t{toggleMenu(),scrollSpy()});
\ No newline at end of file
+function scrollSpy(){var l=5,e=document.querySelector("html"),c=(e&&(e=window.getComputedStyle(e).scrollPaddingTop)&&"string"==typeof e&&"auto"!==e&&e.endsWith("px")&&(l+=parseInt(e.split("px")[0])),"nav-scroll-active"),i=null,d=[];function t(){i=null;var e=document.querySelectorAll("[data-traverse-target]");Array.prototype.forEach.call(e,function(e){d.push({id:e.id,top:e.offsetTop})})}var n=debounce(function(){t(),o()},500),o=debounce(function(){var e,t,n,o,r=(e=>{for(var t=e+l,n=0;n=d[n].top&&(!o||t{toggleMenu(),scrollSpy()});
\ No newline at end of file
diff --git a/schema.graphql b/schema.graphql
index ca8d73be0..6156a0d8e 100644
--- a/schema.graphql
+++ b/schema.graphql
@@ -15,7 +15,7 @@ type AccountState {
"""The currency hash to look up."""
currencyHash: HashDigestSHA1!
- ): IValue
+ ): IValue @deprecated(reason: "Does not work post block protocol version 7.")
"""Balances at given addresses and currency hash pair."""
balances(
@@ -24,7 +24,7 @@ type AccountState {
"""The currency hash to look up."""
currencyHash: HashDigestSHA1!
- ): [IValue]!
+ ): [IValue]! @deprecated(reason: "Does not work post block protocol version 7.")
"""The state at given address."""
state(
@@ -45,10 +45,10 @@ type AccountState {
totalSupply(
"""The currency hash to look up."""
currencyHash: HashDigestSHA1!
- ): IValue
+ ): IValue @deprecated(reason: "Does not work post block protocol version 7.")
"""The validator set."""
- validatorSet: IValue
+ validatorSet: IValue @deprecated(reason: "Does not work post block protocol version 6.")
}
type Action {
@@ -67,7 +67,7 @@ type ActionMutation {
chargeActionPoint(
"""Avatar to use potion."""
avatarAddress: Address!
- ): TxId!
+ ): TxId! @deprecated(reason: "This API is insecure and must not be used.")
"""Combine new Consumable."""
combinationConsumable(
@@ -79,7 +79,7 @@ type ActionMutation {
"""The empty combination slot index to combine consumable. 0 ~ 3"""
slotIndex: Int!
- ): TxId!
+ ): TxId! @deprecated(reason: "This API is insecure and must not be used.")
"""Combine new equipment."""
combinationEquipment(
@@ -94,7 +94,7 @@ type ActionMutation {
"""EquipmentSubRecipe ID from EquipmentSubRecipeSheet."""
subRecipeId: Int
- ): TxId!
+ ): TxId! @deprecated(reason: "This API is insecure and must not be used.")
"""Create new avatar."""
createAvatar(
@@ -115,13 +115,13 @@ type ActionMutation {
"""The index of character tail color. 0 ~ 8"""
tailIndex: Int!
- ): TxId!
+ ): TxId! @deprecated(reason: "This API is insecure and must not be used.")
"""Get daily reward."""
dailyReward(
"""Avatar address to receive reward."""
avatarAddress: Address!
- ): TxId!
+ ): TxId! @deprecated(reason: "This API is insecure and must not be used.")
"""Start stage to get material."""
hackAndSlash(
@@ -145,7 +145,7 @@ type ActionMutation {
"""World ID containing the stage ID."""
worldId: Int!
- ): TxId!
+ ): TxId! @deprecated(reason: "This API is insecure and must not be used.")
"""Upgrade equipment."""
itemEnhancement(
@@ -160,14 +160,10 @@ type ActionMutation {
"""The empty combination slot index to upgrade equipment. 0 ~ 3"""
slotIndex: Int!
- ): TxId!
+ ): TxId! @deprecated(reason: "This API is insecure and must not be used.")
}
type ActionQuery {
- activateAccount(
- """Activation code that you've get."""
- activationCode: String!
- ): ByteString! @deprecated(reason: "Since NCIP-15, it doesn't care account activation.")
approvePledge(patronAddress: Address!): ByteString!
auraSummon(
"""Avatar address to get summoned items"""
@@ -328,6 +324,16 @@ type ActionQuery {
"""World ID containing the stage ID."""
worldId: Int!
): ByteString!
+ issueToken(
+ """Avatar address"""
+ avatarAddress: Address!
+
+ """List of FungibleAssetValues for wrapping token"""
+ fungibleAssetValues: [FungibleAssetValueInputType!]!
+
+ """List of pair of item id, count for wrapping token"""
+ items: [IssueTokenItemsInputType!]!
+ ): ByteString!
itemEnhancement(
"""Avatar address to enhance item"""
avatarAddress: Address!
@@ -395,8 +401,8 @@ type ActionQuery {
"""Avatar address to execute rapid combination"""
avatarAddress: Address!
- """Slot index to execute rapid"""
- slotIndex: Int!
+ """Slot index list to execute rapid"""
+ slotIndexList: [Int!]!
): ByteString!
requestPledge(agentAddress: Address!, mead: Int = 4): ByteString!
retrieveAvatarAssets(
@@ -486,10 +492,6 @@ type ActionQuery {
}
type ActionTxQuery {
- activateAccount(
- """Activation code that you've get."""
- activationCode: String!
- ): ByteString! @deprecated(reason: "Since NCIP-15, it doesn't care account activation.")
approvePledge(patronAddress: Address!): ByteString!
auraSummon(
"""Avatar address to get summoned items"""
@@ -650,6 +652,16 @@ type ActionTxQuery {
"""World ID containing the stage ID."""
worldId: Int!
): ByteString!
+ issueToken(
+ """Avatar address"""
+ avatarAddress: Address!
+
+ """List of FungibleAssetValues for wrapping token"""
+ fungibleAssetValues: [FungibleAssetValueInputType!]!
+
+ """List of pair of item id, count for wrapping token"""
+ items: [IssueTokenItemsInputType!]!
+ ): ByteString!
itemEnhancement(
"""Avatar address to enhance item"""
avatarAddress: Address!
@@ -717,8 +729,8 @@ type ActionTxQuery {
"""Avatar address to execute rapid combination"""
avatarAddress: Address!
- """Slot index to execute rapid"""
- slotIndex: Int!
+ """Slot index list to execute rapid"""
+ slotIndexList: [Int!]!
): ByteString!
requestPledge(agentAddress: Address!, mead: Int = 4): ByteString!
retrieveAvatarAssets(
@@ -807,12 +819,7 @@ type ActionTxQuery {
): ByteString
}
-type ActivationStatusMutation {
- activateAccount(encodedActivationKey: String!): Boolean! @deprecated(reason: "Since NCIP-15, it doesn't care account activation.")
-}
-
type ActivationStatusQuery {
- activated: Boolean! @deprecated(reason: "Since NCIP-15, it doesn't care account activation.")
addressActivated(address: Address!): Boolean! @deprecated(reason: "Since NCIP-15, it doesn't care account activation.")
}
@@ -967,9 +974,6 @@ type AvatarStateType {
"""Character ID from CharacterSheet."""
characterId: Int!
- """Address list of combination slot."""
- combinationSlotAddresses: [Address!]!
-
"""Combination slots."""
combinationSlots: [CombinationSlotStateType!]!
@@ -1050,6 +1054,9 @@ type Block {
"""The mining difficulty that the block's nonce has to satisfy."""
difficulty: Long! @deprecated(reason: "Block does not have Difficulty field in PBFT.")
+ """Evidence belonging to the block."""
+ evidence: [Evidence!]!
+
"""A block's hash."""
hash: ID!
@@ -1073,6 +1080,9 @@ type Block {
"""
previousBlock: Block
+ """The protocol version number of the block."""
+ protocolVersion: Int!
+
"""The public key of the Miner."""
publicKey: PublicKey
@@ -1125,21 +1135,11 @@ type BlockQuery {
"""Whether to query blocks in descending order or not."""
desc: Boolean! = false
- """
- Whether to include empty blocks with no transactions or not. Default is set to false, i.e. to return empty blocks.
- """
- excludeEmptyTxs: Boolean! = false
-
"""
The maximum number of blocks to return. This limits the offset index range to query, not the result, i.e. excluded blocks due to a block being empty or not matching the miner (if specified in other arguments) are still counted.
"""
limit: Int
- """
- If not null, returns blocks only by mined by the address given. Default is set to null.
- """
- miner: Address
-
"""The offset of the first queried block."""
offset: Int! = 0
): [Block!]!
@@ -1165,6 +1165,11 @@ input ClaimDataInputType {
fungibleAssetValues: [FungibleAssetValueInputType!]!
}
+type ClearedStageType {
+ stageId: Int!
+ worldId: Int!
+}
+
type CollectionMapType {
count: Int!
pairs: [[Int]!]!
@@ -1174,6 +1179,12 @@ type CombinationSlotStateType {
"""Address of combination slot."""
address: Address!
+ """Slot Index at the combination slot"""
+ index: Int!
+
+ """Is the combination slot unlocked"""
+ isUnlocked: Boolean!
+
"""Pet id used in equipment"""
petId: Int
@@ -1182,9 +1193,6 @@ type CombinationSlotStateType {
"""Block index at the combination slot can be usable."""
unlockBlockIndex: Long!
-
- """Stage id at the combination slot unlock."""
- unlockStage: Int!
}
type ConsumableType {
@@ -1299,6 +1307,12 @@ enum CurrencyEnum {
GARAGE
MEAD
NCG
+ RUNESTONE_FREYA_BLESSING
+ RUNESTONE_FREYA_LIBERATION
+ RUNESTONE_ODIN_WEAKNESS
+ RUNESTONE_ODIN_WISDOM
+ RUNE_ADVENTURER
+ RUNE_GOLDENLEAF
}
input CurrencyInput {
@@ -1339,6 +1353,8 @@ type DecimalStatType {
totalValue: Decimal!
}
+union Diff = RootStateDiff | StateDiff
+
type DifferentAppProtocolVersionEncounterType {
localVersion: AppProtocolVersionType!
peer: String!
@@ -1381,10 +1397,38 @@ type EquipmentType {
statsMap: StatsMapType!
}
+type Evidence {
+ """Indicates the block height that infraction has been occurred."""
+ height: Long!
+
+ """A unique identifier derived from this Evidence content"""
+ id: ID!
+
+ """Indicates the address of the target that caused the infraction."""
+ targetAddress: Address!
+
+ """Indicates the timestamp the infraction occurred."""
+ timestamp: DateTimeOffset!
+
+ """Evidence type."""
+ type: String!
+}
+
+scalar EvidenceId
+
+"""Retrieve evidence information."""
+type EvidenceQuery {
+ committedEvidence(blockHash: BlockHash, desc: Boolean = false, limit: Int = 100, offset: Int = 0): [Evidence!]!
+ evidence(id: EvidenceId): Evidence
+ pendingEvidence(desc: Boolean = false, limit: Int = 100, offset: Int = 0): [Evidence!]!
+}
+
type ExplorerQuery {
blockQuery: BlockQuery
+ evidenceQuery: EvidenceQuery
helperQuery: HelperQuery
nodeState: NodeState!
+ rawStateQuery: RawStateQuery
stateQuery: LibplanetStateQuery
transactionQuery: TransactionQuery
}
@@ -1478,6 +1522,12 @@ type HelperQuery {
"""The currency to convert."""
currency: CurrencyInput!
): HashDigestSHA1!
+
+ """Converts string to key hex representation"""
+ keyHex(
+ """The string value to convert to key hex."""
+ value: String!
+ ): KeyBytes!
}
type IValue {
@@ -1552,24 +1602,38 @@ type InventoryType {
materials: [MaterialType!]!
}
+input IssueTokenItemsInputType {
+ """Count"""
+ count: Int!
+
+ """item ID"""
+ itemId: Int!
+
+ """item can be tradable"""
+ tradable: Boolean!
+}
+
enum ItemSubType {
AP_STONE
ARMOR
AURA
BELT
CHEST @deprecated(reason: "ItemSubType.Chest has never been used outside the MaterialItemSheet. And we won't use it in the future until we have a specific reason.")
+ CIRCLE
EAR_COSTUME
EQUIPMENT_MATERIAL
EYE_COSTUME
FOOD
FOOD_MATERIAL
FULL_COSTUME
+ GRIMOIRE
HAIR_COSTUME
HOURGLASS
MONSTER_PART
NECKLACE
NORMAL_MATERIAL
RING
+ SCROLL
TAIL_COSTUME
TITLE
WEAPON
@@ -1603,6 +1667,8 @@ type ItemUsableType {
requiredBlockIndex: Long
}
+scalar KeyBytes
+
type KeyStoreMutation {
createPrivateKey(passphrase: String!, privateKey: ByteString): PrivateKeyType!
revokePrivateKey(address: Address!): ProtectedPrivateKeyType!
@@ -1970,11 +2036,24 @@ type RankingMapStateType {
rankingInfos: [RankingInfoType!]!
}
+type RawStateQuery {
+ """Retrieves trie from given state root hash."""
+ trie(stateRootHash: HashDigest_SHA256): Trie!
+}
+
input RecipientsInputType {
amount: FungibleAssetValueInputType!
recipient: Address!
}
+type RootStateDiff {
+ """List of state differences under this root."""
+ diffs: [StateDiff!]!
+
+ """The path to the root state difference."""
+ path: String!
+}
+
type RpcInformationQuery {
"""List of address connected to this node."""
clients: [Address]!
@@ -2148,7 +2227,6 @@ type StakeStateType {
type StandaloneMutation {
action: ActionMutation
- activationStatus: ActivationStatusMutation @deprecated(reason: "Since NCIP-15, it doesn't care account activation.")
keyStore: KeyStoreMutation @deprecated(reason: "Use `planet key` command instead. https://www.npmjs.com/package/@planetarium/cli")
"""Add a new transaction to staging and return TxId"""
@@ -2190,6 +2268,20 @@ type StandaloneMutation {
}
type StandaloneQuery {
+ """
+ This field allows you to query the diffs based accountAddress between two blocks. `baseIndex` is the reference block index, and changedIndex is the block index from which to check what changes have occurred relative to `baseIndex`. Both indices must not be higher than the current block on the chain nor lower than the genesis block index (0). The difference between the two blocks must be greater than zero for a valid comparison and less than ten for performance reasons.
+ """
+ accountDiffs(
+ """The target accountAddress."""
+ accountAddress: Address!
+
+ """The index of the reference block from which the state is retrieved."""
+ baseIndex: Long!
+
+ """The index of the target block for comparison."""
+ changedIndex: Long!
+ ): [StateDiff!]!
+
"""Query to create action transaction."""
actionQuery: ActionQuery!
actionTxQuery(
@@ -2213,6 +2305,17 @@ type StandaloneQuery {
"""Query to get derived address."""
addressQuery: AddressQuery!
chainQuery: ExplorerQuery! @deprecated(reason: "Use /graphql/explorer")
+
+ """
+ This field allows you to query the diffs between two blocks. `baseIndex` is the reference block index, and changedIndex is the block index from which to check what changes have occurred relative to `baseIndex`. Both indices must not be higher than the current block on the chain nor lower than the genesis block index (0). The difference between the two blocks must be greater than zero for a valid comparison and less than ten for performance reasons.
+ """
+ diffs(
+ """The index of the reference block from which the state is retrieved."""
+ baseIndex: Long!
+
+ """The index of the target block for comparison."""
+ changedIndex: Long!
+ ): [Diff!]!
getTx(
"""transaction id."""
txId: TxId!
@@ -2254,10 +2357,16 @@ type StandaloneQuery {
"""The hash of the block used to fetch state from chain."""
hash: ByteString
+
+ """The index of the block used to fetch state from chain."""
+ index: Long
): ByteString
stateQuery(
"""Offset block hash for query."""
hash: ByteString
+
+ """Offset block index for query."""
+ index: Long
): StateQuery!
"""Query for transaction."""
@@ -2277,7 +2386,7 @@ type StandaloneSubscription {
nodeException: NodeExceptionType!
nodeStatus: NodeStatusType
notification: NotificationType!
- preloadProgress: PreloadStateType
+ preloadProgress: PreloadStateType @deprecated(reason: "Since Libplanet 5.3.0 preload progress is no longer reported.")
tipChanged: TipChanged
tx(
"""A regular expression to filter transactions based on action type."""
@@ -2300,6 +2409,17 @@ enum StatType {
THORN
}
+type StateDiff {
+ """The base state before changes."""
+ baseState: String!
+
+ """The state after changes."""
+ changedState: String
+
+ """The path of the state difference."""
+ path: String!
+}
+
type StateQuery {
"""State for agent."""
agent(
@@ -2523,6 +2643,9 @@ type TransactionHeadlessQuery {
"""start block index for query tx."""
startingBlockIndex: Long!
+
+ """filter txStatus."""
+ txStatusFilter: [TxStatus!]
): [TransactionType]
nextTxNonce(
"""Target address to query"""
@@ -2635,6 +2758,20 @@ type TransferNCGHistoryType {
txId: ByteString!
}
+type Trie {
+ """Gets the value stored at given key."""
+ value(
+ """The key to search."""
+ key: KeyBytes!
+ ): IValue
+
+ """Gets the values stored at given multiple keys."""
+ values(
+ """The list of keys to search."""
+ keys: [KeyBytes!]!
+ ): IValue
+}
+
scalar TxId
type TxResultType {
@@ -2713,6 +2850,9 @@ type Vote {
"""The time this vote was created and signed."""
timestamp: DateTimeOffset!
+ """Power of the validator which is subject of the vote."""
+ validatorPower: BigInt
+
"""Public key of the validator which is subject of the vote."""
validatorPublicKey: PublicKey!
}
@@ -2756,6 +2896,7 @@ type WorldBossStateType {
type WorldInformationType {
isStageCleared(stageId: Int!): Boolean!
isWorldUnlocked(worldId: Int!): Boolean!
+ lastClearedStage: ClearedStageType!
world(worldId: Int!): WorldType!
}
@@ -2772,12 +2913,30 @@ type WorldState {
addresses: [Address!]!
): [AccountState!]!
+ """Balance at given address and currency pair."""
+ balance(
+ """The address to look up."""
+ address: Address!
+
+ """The currency to look up."""
+ currency: CurrencyInput!
+ ): FungibleAssetValue!
+
"""The legacy flag of the world state."""
legacy: Boolean!
"""The state root hash of the world state."""
stateRootHash: HashDigestSHA256!
+ """Total supply in circulation for given currency."""
+ totalSupply(
+ """The currency to look up."""
+ currency: CurrencyInput!
+ ): FungibleAssetValue!
+
+ """The validator set."""
+ validatorSet: IValue!
+
"""The version of the bakcing data model."""
version: Int!
}