From f02e20f5757b0611532f3d3697368b04512cfdb3 Mon Sep 17 00:00:00 2001 From: Nikita <63471940+Daelon02@users.noreply.github.com> Date: Tue, 6 Jul 2021 17:33:49 +0300 Subject: [PATCH] Update types for Realis.Network (#5773) * Update types for Realis.Network * Update types for Realis.Network * Update types for Realis.Network Co-authored-by: Daelon02 --- packages/apps-config/src/api/spec/realis.ts | 25 +++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/packages/apps-config/src/api/spec/realis.ts b/packages/apps-config/src/api/spec/realis.ts index 18c1d34a3e..0a50505407 100644 --- a/packages/apps-config/src/api/spec/realis.ts +++ b/packages/apps-config/src/api/spec/realis.ts @@ -32,19 +32,37 @@ const definitions: OverrideBundleDefinition = { 'Weapon' ] }, - pallet_nfts: 'u8', - Basic: 'u8', Params: { strength: 'u8', agility: 'u8', intelligence: 'u8' }, + pallet_nfts: 'u8', + TokenId: 'U256', + Basic: 'u8', + Type: { + _enum: { + Mergeable: 'Mergeable', + Stackable: 'Stackable', + Basic: 'Basic' + } + }, Token: { - token_id: 'TokenId', + id: 'TokenId', + token_type: 'Type' + }, + Mergeable: { rarity: 'Rarity', socket: 'Socket', params: 'Params' }, + Stackable: { + _enum: [ + 'Silver', + 'Gold', + 'Diamond' + ] + }, AttributeTransaction: { signature: 'Signature', name: 'Vec', @@ -119,7 +137,6 @@ const definitions: OverrideBundleDefinition = { ResourceId: 'Vec', ExchangeId: 'u64', CurrencyOf: 'Balance', - TokenId: 'U256', RealisTokenId: 'u32', Erc721Token: { id: 'NftId'