diff --git a/packages/apps-config/src/api/spec/subgame.ts b/packages/apps-config/src/api/spec/subgame.ts index dfa52cf478..0aa733e072 100644 --- a/packages/apps-config/src/api/spec/subgame.ts +++ b/packages/apps-config/src/api/spec/subgame.ts @@ -14,8 +14,6 @@ const definitions: OverrideBundleDefinition = { types: { GameIndex: 'u32', GameMode: 'u8', - CommodityId: 'u128', - CommodityInfo: 'Vec', CommodityLimit: 'u128', UserCommodityLimit: 'u64', ChipBalance: 'u128', @@ -71,6 +69,53 @@ const definitions: OverrideBundleDefinition = { balance: 'u64', isFrozen: 'bool', isZombie: 'bool' + }, + SGAssetBalance: 'u64', + CommodityId: 'Hash', + Commodity: { + id: 'CommodityId', + info: 'Vec' + }, + ProgramId: 'u64', + Program: { + program_id: 'ProgramId', + stake_amount: 'u128', + valid_day_count: 'u64' + }, + PalletId: 'u64', + PalletInfo: { + pallet_id: 'PalletId', + name: 'Vec' + }, + NftId: 'Hash', + LeaseInfo: { + pallet_id: 'PalletId', + nft_id: 'NftId' + }, + StakeInfo: { + pallet_id: 'PalletId', + program_id: 'ProgramId', + stake_amount: 'Balance', + expires_at: 'Moment', + nft_id: 'NftId' + }, + Moment: 'u64', + MomentOf: 'Moment', + SwapId: 'u32', + SwapSender: 'AccountId', + SwapPoolOwner: 'AccountId', + SwapAssetX: 'u32', + SwapAssetY: 'u32', + SwapAmountX: 'u64', + SwapAmountY: 'u64', + SwapAmountLP: 'u64', + SwapPoolDetails: { + swap_id: 'u32', + account: 'AccountId', + asset_a: 'u32', + asset_b: 'u32', + asset_lp: 'u32', + swap_k: 'u128' } } }